/* =============================================================================
   Super slick page transition module
   Author: Kenny Scott

			
$(document).ready(function() {
	$("body").css("display", "none");
    $("body").fadeIn(200);
	$("a").click(function(event){
		event.preventDefault();
		linkLocation = this.href;
		$("body").fadeOut(100, redirectPage);		
	});
	function redirectPage() {
		window.location = linkLocation;
	}
});
   ========================================================================== */
/* =============================================================================
   Simple jQuery function to hide or display the appropriate sub-navigation list
   Author: Kenny Scott
   ========================================================================== */
$(window).load(function(){
$("#subnav-none").show();
	$("#about").bind("mouseover",function(){
				$("#subnav-products").hide();
				$("#subnav-none").hide();	
				$("#subnav-about").stop(true, true).fadeIn(500);
	});
	$("#products").bind("mouseover",function(){
				$("#subnav-about").hide();
				$("#subnav-none").hide();	
				$("#subnav-products").stop(true, true).fadeIn(500);
		});		
	$("#slideshow-container, #home, #samples, #order, #contact, #blog").bind("mouseover",function(){
				$("#subnav-products").hide();
				$("#subnav-about").hide();
				$("#subnav-none").show();
	});
		$("#subnav-products, #subnav-about").bind("mouseleave",function(){
				$("#subnav-products").hide();
				$("#subnav-about").hide();
				$("#subnav-none").show();
	});
});



  $.fn.slideShow = function(timeOut) {
   var $elem = this;
   this.children(':gt(0)').hide();
   setInterval(function() {
    $elem.children().eq(0).fadeOut(1500).next().fadeIn(800).end().appendTo($elem);
   }, 
	 timeOut || 3000);
  };

