// JavaScript Document

this.imagePreview = function(){	


	



	 $("a.mypreviewbox").hover(function(e) 
		 {
			 
			 
			
			
			var imgPath=$(this).find("img:first").attr("imgPath");
			var image=new Image();
			var _this =  $(this); 
			
			$(image).load(function(){
								   
								   
				
				var imgHeight=$(_this).find("img").height();
				var position = $(_this).find("img").position();
				
				
				
				
				var _top= eval(position.top) + eval(imgHeight) + 4;
				
				var _left= eval(position.left);
				
							   
				$("#preview_holder")
				.css("top",(_top) + "px")
				.css("left",(_left) + "px")
				.html(this).show();					   
								   
			}).attr("src",imgPath);
			
			
		 
	}, function() {
	
		$('#preview_holder').html("").hide();
			
		});


};
