/**
 * @Copyright CSSJockey
 * @Website: http://www.cssjockey.com
 * This message must stay intact, read more about terms of use here: http://www.cssjockey.com/terms-of-use
 * Do not change anything in this document unless you know what you are doing.
 */
$(document).ready(function(){

/**** APPLY PNG FIX FOR IE6 ***************************/
$("#topnav ul li a").addClass("pngfix");

/**** FEATURED SLIDER ***************************/
	$('#featured').cycle({ 
	    fx:      'scrollLeft', 
	    speed:    500, 
	    timeout:  4000 
	});

/**** THUMB IMG DISPLAY WITH MOUSE ***************************/
	$(".thumb").hover(function(){
		$(this).mousemove(function(e){
			var pageCoords = "( " + e.pageX + ", " + e.pageY + " )";
			$(this).parent().find(".preview").removeClass('hidden');
			$(this).parent().find(".preview").fadeIn(100);
			
			$(this).parent().find(".preview").css({"top":e.pageY,"left":e.pageX})
		});
	},function(){
		$(this).parent().find(".preview").fadeOut(100);
	})


/**** THUMB IMG DISPLAY WITH MOUSE ***************************/
	$(".sthumb").hover(function(){
		$(this).mousemove(function(e){
			var pageCoords = "( " + e.pageX + ", " + e.pageY + " )";
			$(this).parent().find(".preview").removeClass('hidden');
			$(this).parent().find(".preview").fadeIn(100);
			
			$(this).parent().find(".preview").css({"top":e.pageY,"left":e.pageX})
		});
	},function(){
		$(this).parent().find(".preview").fadeOut(100);
	})

})

