/*
 * Url preview script 
 * powered by jQuery (http://www.jquery.com)
 * 
 * written by Alen Grakalic (http://cssglobe.com)
 * 
 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
 *
 */
 
this.screenshot2Preview = function(){	
	/* CONFIG */
		
		xOffset = 160;
		yOffset = 100;
		var firstRoll=false;
		
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
	/* END CONFIG */
	$("a.screenshot2").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "" + this.t : "";
		firstRoll=true;
		if (firstRoll==true)
		{
			$("#tiptip2").append("<div id='screenshot2'></div>");								 
			$("#screenshot2").css("top","px").css("left", "px").show();	
		}
		$("#screenshot2").html("<p>"+ c +"</p><img src='"+ this.rel +"' widht='150px' height='100px' alt='url preview' />");
    },
	function(){
		this.title = this.t;	
		$("#screenshot2").remove();
		//alert(this.title);
    });	
	};


// starting the script on page load
$(document).ready(function(){
	screenshot2Preview();
});