sfHover = function() {
	if (document.getElementById("nav")){
		var sfEls = document.getElementById("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);

try{
	document.execCommand('BackgroundImageCache', false, true); 
}
catch(e) {}




$(document).ready( function() {
	$("#ma-of").submit( function() {
		var bool = true;
		/*
		$("#product-info-table select").each( function() {
			if($(this).val() == "Select") {
				alert("Please select an option");
				bool = false;
			}
		});
		*/
		$(".ma-chk-box").each( function() {
			if(($(this).is(":checked")) && ($(this).parent().parent().find("select").val() == "Select")) {
				alert("Please select an option");
				bool = false;
			}
		});
		
		/*$(".ma-chk-box").is(":checked") && $(".ma-opts select").val() == "Select" {
			if($(this).val() == "Select") {
				alert("Please select an option");
				bool = false;
			}
		}*/
		
		if(bool){
			return true;
		}else{
			return false;	
		}
	});
	
	$("#pitform").submit( function() {
		var bool = true;
		
		$("#product-info-table select").each( function() {
			if($(this).val() == "Select") {
				alert("Please select an option");
				bool = false;
			}
		});		
		
		if(bool){
			return true;
		}else{
			return false;	
		}
		
	});								 
});
