var Preload = new Array('home','recentWork','music','studio','bio','contact');



// ROLLVERS
	function on(name) {
		document[name].src = "images/" + name + "_on.jpg";
	}
	
	function off(name) {
		document[name].src = "images/" + name + ".jpg";
	}
	
	


// POPUP WINDOWS
	function popUp(page) {
		newWindow = window.open(page,'display','width=450,height=450,menubar=yes,resize=no,titlebar=no,status=no,toolbar=no,scrollbars=yes');
		newWindow.focus();
	}
	
	
	function movieClip(page) {
		newWindow = window.open('movies/' + page + '.html',page,'width=400,height=300,menubar=yes,resize=no,titlebar=no,status=no,toolbar=no,scrollbars=auto');
		newWindow.focus();
	}
	
	function showPhoto(photo) {
		newWindow = window.open('photo.php?photo=' + photo,'photos','width=800,height=550,menubar=yes,resize=no,titlebar=no,status=no,toolbar=no,scrollbars=auto');
		newWindow.focus();
	}
	
	function showPhotoVert(photo) {
		newWindow = window.open('photo.php?photo=' + photo,'photos','width=550,height=800,menubar=yes,resize=no,titlebar=no,status=no,toolbar=no,scrollbars=auto');
		newWindow.focus();
	}

		
		
		
		
// DROP DOWNS		

function navOn(whichIMG) {

	document[whichIMG].src="images/"+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(whichIMG+"_sub");
	y.style.display = "block";
	
	
}



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



var navArray = new Array('music','bio');


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];
  }
}