this.tooltip = function()
{
		xOffset = 10;
		yOffset = 20;
		// these 2 variable determine popup's distance from the cursor
		// you might want to adjust to get the right result
	/* END CONFIG */
	$("ul.success-stories li").hover(function(e)
	{
		$("body").append('<div id="tooltip"></div>');
		$("#tooltip").html($(".preview", $(this)).html());
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");
    },
	function()
	{
		$("#tooltip").remove();
    });	
	$("ul.success-stories li").mousemove(function(e)
	{
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});
};

$(function()
{
	tooltip();
	$("#homepage-slideshow img").hide();
	$("#homepage-slideshow img:eq(" + Math.floor(Math.random() * $("#homepage-slideshow img").length) + ")").show();
	$("ul.success-stories .preview").hide();
});