$(document).ready(
	function() {
		Cufon.replace('#nav-links', { fontFamily: 'Sansumi-ExtraBold', hover: true });
		Cufon.replace('#sec-links h2', { fontFamily: 'Sansumi-ExtraBold', hover: true });
		Cufon.replace('#sec-links h3', { fontFamily: 'Sansumi-ExtraBold', hover: true });
		Cufon.replace('#page-heading h1', { fontFamily: 'Sansumi-ExtraBold', hover: true });
		Cufon.replace('#left-nav ul li', { fontFamily: 'Sansumi-ExtraBold', hover: true });
		Cufon.replace('#footer', { fontFamily: 'Sansumi-ExtraBold', hover: true });
		$('#banner-cont').flash({swf:'assets/imgs/banner.swf',width:1002,height:279});
		
		if($(".prods a").length){
			$(".prods a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_square'});
		}

		if($("#thumbs a").length){
			$("#thumbs a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_square'});
		}
	
		$("#sec-links li").hover(function() { //On hover...
		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
		//Set a background image(thumbOver) on the &lt;a&gt; tag 
		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center -101px'});
		//Fade the image to 0 
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		}); 
	} , function() { //on hover out...
		//Fade the image to 1 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});
	
	$('textarea').keypress(function (event){ return event.keyCode == 13 ? false : true; });
	$("#noscript").hide();
	$('input[title!=""]').hint();
	$('textarea[title!=""]').hint();
	$("#formID").validationEngine({
		ajaxSubmit: true,
		ajaxSubmitFile: "ajaxSubmit.php",
		ajaxSubmitMessage: "Thank you, your message has been received!",
		success : false,
		failure : function(){}
	})
	}
);

