/*
 *
 */
 this.imagePreviewZero = function(){	
	/* CONFIG */
		
		x1 = 145;   // Move Up Go More Positive
		y1 = -365;  // Move Left Go More Negative
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.previewZero").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		//$("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");								 		
		$("body").append("<p id='previewZero'><img src='"+ "../images/imagesEng/cnnBig.jpg" +"'/>"+ c +"</p>");								 
		
		$("#previewZero")
			//.css("top",(e.pageY - xOffset) + "px")
			//.css("left",(e.pageX + yOffset) + "px")
		
			.css("top",(e.pageY - x1) + "px")
			.css("left",(e.pageX + y1) + "px")			
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;	
		$("#previewZero").remove();
    });	
	$("a.previewZero").mousemove(function(e){
		$("#previewZero")
			.css("top",(e.pageY - x1) + "px")
			.css("left",(e.pageX + y1) + "px");
	});			
};




/*
 *
 */
 
 
 
 
 
this.imagePreviewOne = function(){	
	/* CONFIG */
		
		x1 = 145;   // Move Up Go More Positive
		y1 = -365;  // Move Left Go More Negative
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		//$("body").append("<p id='preview'><img src='"+ this.href +"' alt='Image preview' />"+ c +"</p>");								 		
		$("body").append("<p id='preview'><img src='"+ "../images/imagesEng/waterbig.jpg" +"'/>"+ c +"</p>");								 
		
		$("#preview")
			//.css("top",(e.pageY - xOffset) + "px")
			//.css("left",(e.pageX + yOffset) + "px")
		
			.css("top",(e.pageY - x1) + "px")
			.css("left",(e.pageX + y1) + "px")			
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;	
		$("#preview").remove();
    });	
	$("a.preview").mousemove(function(e){
		$("#preview")
			.css("top",(e.pageY - x1) + "px")
			.css("left",(e.pageX + y1) + "px");
	});			
};




/*
 *
 */
 
this.imagePreviewTwo = function(){	
	/* CONFIG */
		
		x2 = 200;   // Move Up Go More Positive
		y2 = -365;  // Move Left Go More Negative
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
		
	/* END CONFIG */
	$("a.previewTwo").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='previewTwo'><img src='"+ "../images/imagesEng/germansBig.jpg" +"'/>"+ c +"</p>");								 
		
		$("#previewTwo")	
			.css("top",(e.pageY - x2) + "px")
			.css("left",(e.pageX + y2) + "px")
			.fadeIn("fast");		

    },
	function(){
		this.title = this.t;	
		$("#previewTwo").remove();
    });	
	$("a.previewTwo").mousemove(function(e){
		$("#previewTwo")
			.css("top",(e.pageY - x2) + "px")
			.css("left",(e.pageX + y2) + "px");
	});			
};

// starting the script on page load
$(document).ready(function(){
	imagePreviewOne();
	imagePreviewTwo();
	imagePreviewZero();
});
