/* Main Navigation hover for IE6 
-------------------------------------*/
sfHover = function() {
var sfEls = document.getElementById("main-nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


$(document).ready(function() {
	 //cufon for titles
     Cufon.replace('#product-banner h1');
	 Cufon.replace('#main-content h2');
	 Cufon.replace('#sidebar h3');
	 Cufon.replace('#sidebar h4');
	 Cufon.replace('#footer h4');
	 Cufon.replace('h1.main-title');
	 Cufon.replace('h2.main-title');
	 
	 Cufon.replace('.exterior h3');
	 Cufon.replace('.interior-decor h3');
	 Cufon.replace('.key-features h3');
	
	 $(".radio").change(function(){	 
		var val = $(this).val();    
		if(val != "ca") {
			$('#textzip').val('Enter Zip Code');
			$('#selectstate').show();
			$('#selectprovince').hide();
		} else {
			$('#textzip').val('Enter Postal Code');
			$('#selectstate').hide();
			$('#selectprovince').show();
		}
	});
	$(document).pngFix(); 
	$(document).ready(function(){
		$(".thickbox[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
		//$("#nll").prettyPhoto({theme:'facebook'});
	});//+navigator.appVersion

	if (navigator.appName == 'Microsoft Internet Explorer' && $.browser.version  < 7 && SINFFER ){
		$.prettyPhoto.open('#sniffer_text','','');
	}
	
});
