//
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//

	// These are the navigation on buttons
	img1on = new Image();           
	img1on.src = "images/nav/home_2.png";  
	img2on = new Image();           
	img2on.src = "images/nav/biography_2.png";  
	img3on = new Image();           
	img3on.src = "images/nav/tour_2.png";
	img4on = new Image();           
	img4on.src = "images/nav/download_2.png";
	img5on = new Image();           
	img5on.src = "images/nav/press_2.png";
	img6on = new Image();
	img6on.src = "images/nav/contact_2.png";
	img7on = new Image();
	img7on.src = "images/nav/store_2.png";

	// These are the navigation off buttons
	img1off = new Image();           
	img1off.src = "images/nav/home_1.png";  
	img2off = new Image();           
	img2off.src = "images/nav/biography_1.png";  
	img3off = new Image();           
	img3off.src = "images/nav/tour_1.png";
	img4off = new Image();           
	img4off.src = "images/nav/download_1.png";
	img5off = new Image();           
	img5off.src = "images/nav/press_1.png";
	img6off = new Image();
	img6off.src = "images/nav/contact_1.png";
	img7off = new Image();
	img7off.src = "images/nav/store_1.png";

	
	// This function is responsible for MouseOver events
	function On(imgname) {
		if(document.images) {
			document[imgname].src=eval(imgname+"on.src");
		}
	}
	
	// This function is responsible for MouseOut events
	function Off(imgname) {
		self.status=' ';
		if(document.images) {
			document[imgname].src=eval(imgname+"off.src");
		}
	}
	

		function newWindow(url, w, h) {
	window.open(url,"popupthing","width="+w+",height="+h+",status=yes");
	return false;
}

function imagePopup(picfile) {
	window.open('merch-image.php?pic=' + picfile,'largepic','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,copyhistory=no,width=400,height=400');
}


function newWindow(url, w, h) {
	window.open(url,"popupthing","width="+w+",height="+h+",status=yes");
	return false;
}

function merchPopup(picfile) {
	window.open('slideshow.php?pic=' + picfile,'largepic','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,copyhistory=no,width=400,height=400');
}




