var jzoom = function(obj,args){
	this.args=args;
	this.zoomsrc=obj;	
	this.small=$("#small");
	this.large=$("#large");	
}

jzoom.prototype={	
	init:function(){	
		var me=this;
		$(this.large).children("img").draggable();
		$(this.small).click(function(e){
			$(me.small).fadeOut(500,me.callBackZoomIn(e,me));
		});				
		$(this.large).click(function(e){
			$(me.large).fadeOut(500,me.callBackZoomOut(e,me));
		});
	},
	callBackZoomIn : function(e,parent){
		$(parent.small).css("z-index","-1");
		$(parent.large).css("z-index","1");
		$(parent.large).fadeIn(500,function(){});
	}
	,
	callBackZoomOut : function(e,parent){
		$(parent.large).css("z-index","-1");
		$(parent.small).css("z-index","1");
		$(parent.small).fadeIn(500,function(){});
	}
}
