this.screenshotPreview = function(){	

	/* CONFIG */

		

		xOffset = 10;

		yOffset = 30;

		

		// these 2 variable determine popup's distance from the cursor

		// you might want to adjust to get the right result

		

	/* END CONFIG */

	$("a.screenshot").hover(function(e){

		this.t = this.title;

		this.title = "";	

		var c = (this.t != "") ? "<br/>" + this.t : "";

		$("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");								 

		$("#screenshot")

			.css("top",(e.pageY - xOffset) + "px")

			.css("left",(e.pageX + yOffset) + "px")

			.fadeIn("fast");						

    },

	function(){

		this.title = this.t;	

		$("#screenshot").remove();

    });	

	$("a.screenshot").mousemove(function(e){

		$("#screenshot")

			.css("top",(e.pageY - xOffset) + "px")

			.css("left",(e.pageX + yOffset) + "px");

	});			

};


function slide(navigation_id, pad_out, pad_in, time, multiplier) {
	var list_elements = navigation_id + " li.sliding-element";
	var link_elements = list_elements + " a";
	var timer = 0;
	$(link_elements).each(function(i) {
		$(this).hover(
		function() {
			$(this).animate({ paddingLeft: pad_out }, 150);
			
		},		
		function() {
			$(this).animate({ paddingLeft: pad_in }, 150);
			
		});
	});
}


this.screenshotPreview = function(){	

	/* CONFIG */
	xOffset = 10;
	yOffset = 30;

	// these 2 variable determine popup's distance from the cursor
	// you might want to adjust to get the right result

	/* END CONFIG */

	$("a.screenshot").hover(function(e){

		$("body").append("<p id='screenshot'>url preview<br /><img src='"+ this.id +"' /></p>");								 
		$("#screenshot")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px")
		.fadeIn("fast");						
    	},

	function(){

		$("#screenshot").remove();

   	 });	

	$("a.screenshot").mousemove(function(e){
		$("#screenshot")
		.css("top",(e.pageY - xOffset) + "px")
		.css("left",(e.pageX + yOffset) + "px");
	});			

};



jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}
        

