this.screenshotPreview = function(){	
	xOffset = 10;
	yOffset = 15;
	$("#product-icons-outer a").hover(function(e){
		a = $("img", this).attr("alt");
		$("img", this).attr("alt","");
		//$((this)+" img").attr("alt") = "";
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? this.t : "";
		$("body").append("<p id='tooltip'><strong>"+ a + "</strong><br />" + c +"</p>");								 
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		$("img", this).attr("alt",a);
		this.title = this.t;	
		$("#tooltip").remove();
    });	
	$("#product-icons-outer a").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});
};


$(document).ready(function() {
	if($('a.photo').length)
		$('a.photo').lightBox({
			imageLoading: '/estore/images/loading.gif',
			imageBtnClose: '/estore/images/close.gif',
			imageBtnPrev: '/estore/images/prev.gif',
			imageBtnNext: '/estore/images/next.gif',
			imageBlank: '/estore/images/blank.gif'
		});
	
	$(".product-outer .header-outer h3").each(function(){
		var p = $(this).parent();
		if($(this).width()>p.width()){
			p.addClass("shrink");
		}
	});

	screenshotPreview();

	$('.image_rotate').innerfade({ 
		animationtype: 'fade',
		speed: 'medium', 
		timeout: 6000, 
		type: 'random_start', 
		containerheight: '94px'
	});
	
});
