navArray = new Array("bandNews","shop","boards","news","about","noggin","home","concerts","kids","list","contact","giving");

function navOn(whichIMG) {

	document["nav_"+whichIMG].src="images/nav_"+whichIMG+"_on.jpg";
	
	for (i=0;i<navArray.length;i++) {
		
		if (navArray[i] != whichIMG) {
			var x = new getObj("nav_"+navArray[i]+"_sub");
			x.style.display = "none";
		} else {
			// nothing
		}
		
	}
	
	var y = new getObj("nav_"+whichIMG+"_sub");
	y.style.display = "block";
	
	
	
}



function navOff(whichIMG) {
	document["nav_"+whichIMG].src="images/nav_"+whichIMG+".jpg";
}







function on(whichIMG) {
	document[whichIMG].src="images/"+whichIMG+"_on.gif";
}



function off(whichIMG) {
	document[whichIMG].src="images/"+whichIMG+".gif";
}






function clearMenu() {

	for (i=0;i<navArray.length;i++) {
		var x = new getObj("nav_"+navArray[i]+"_sub");
		x.style.display = "none";	
	}
	
	
	
}



function getObj(name) {
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}



//////// MAILING LIST
function checkForm() {

	if (  
		(document.forms.mailingList.firstName.value!="") &&
		(document.forms.mailingList.lastName.value!="") &&
		(document.forms.mailingList.state.value!="") &&
		(document.forms.mailingList.email.value!="")   
	) { 
		
		if (document.forms.mailingList.address1.value == "") {
			document.forms.mailingList.submit();
		} else {
		
			if ( (document.forms.mailingList.city.value!="") && (document.forms.mailingList.zip.value!="")  ) {
				document.forms.mailingList.submit();
			} else {
				alert("please enter your city and zip code to receive our updates in the mail!");
			}
		
		}
		
		
		 
	 } else {
		alert("please fill out each required item");
	 }
	

}




function checkForm2() {

	if (  
		(document.forms.updateInfo.firstName.value!="") &&
		(document.forms.updateInfo.lastName.value!="") &&
		(document.forms.updateInfo.state.value!="") &&
		(document.forms.updateInfo.email.value!="") &&
		(document.forms.updateInfo.oldEmail.value!="")   
	) { 
		
		if (document.forms.updateInfo.address1.value == "") {
			document.forms.updateInfo.submit();
		} else {
		
			if ( (document.forms.updateInfo.city.value!="") && (document.forms.updateInfo.zip.value!="")  ) {
				document.forms.updateInfo.submit();
			} else {
				alert("please enter your city and zip code to receive our updates in the mail!");
			}
		
		}
		
		
		 
	 } else {
		alert("please fill out each required item");
	 }
	

}




/////// QUICKTIMES


function writeVideoClip01()
{
document.write('<object classid=""clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="320" height="256" autoplay="false">\n');
document.write('<embed src="video/farm.mov" width="320" height="256" autoplay="false"></embed>\n');
document.write('<param name="src" value="video/farm.mov" />\n');
document.write('<param name="width" value="320" />\n');
document.write('<param name="height" value="256" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('</object>\n');
}




function writeVideoClip02()
{
document.write('<object classid=""clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0" width="320" height="256" autoplay="false">\n');
document.write('<embed src="video/pumpkins.mov" width="320" height="256" autoplay="false"></embed>\n');
document.write('<param name="src" value="video/pumpkins.mov" />\n');
document.write('<param name="width" value="320" />\n');
document.write('<param name="height" value="256" />\n');
document.write('<param name="autoplay" value="false" />\n');
document.write('</object>\n');
}