$(document).ready(function() {
		
		// Preload all rollovers
		$("#menu img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			if (!rollsrc.match(/_active/)) {
			rollON = rollsrc.replace(/.gif$/ig,"_on.gif");
			$("<img>").attr("src", rollON);
			}
		});
		
		// Navigation rollovers
		$("#menu a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_on/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.gif$/ig,"_on.gif"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#menu a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
	
	});

//CLEAR FIELDfunction clearIt(field) {
if (field.value == "Search Artists" || field.value =="Email Address") {field.value="";
}}

// CHECK REGISTRATION
function SignupCheck(form) {
valcheck = form.email;hasDot = valcheck.value.indexOf(".");hasAt = valcheck.value.indexOf("@");if (hasDot == -1 || hasAt == -1) {	alert("Please enter your Email Address.");	valcheck.focus();	return false;}//First Name Checkvalcheck = document.getElementById("CustomFields_1_36");if (valcheck.value == "") {	alert("Please enter your First Name");	valcheck.focus();	return false;}//Last Name Check			valcheck = document.getElementById("CustomFields_2_36");if (valcheck.value == "") {	alert("Please enter your Last Name");	valcheck.focus();	return false;}  else {	return true;}}
