<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.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];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  myWindow = window.open(theURL,winName,features);
  myWindow.focus();
}

imgWindow = 0;
myWindow = 0;

function imgPopup(imgSrc, wd, ht, imgTitle) {
  if (imgWindow) {
    imgWindow.close();
  }
  imgWindow = window.open('imgpopup.php?imgsrc='+imgSrc+'&title='+imgTitle, 'imgBanksideWindow', 'resizable=0,width='+wd+',height='+ht+',scrollbars=0');
}

function formPop(wID){
	MM_openBrWindow('mship_form.php?formid='+wID,'mshippop','status=yes,scrollbars=yes,width=337,height=500')
}

function mailPop(){
	MM_openBrWindow('maillist_form.php','mshippop','status=yes,scrollbars=yes,width=337,height=500')
}

function iLink(myURL){
	if (window.opener) {
		window.opener.location.href=myURL;
	} else {
		document.location.href=myURL;
	}
}

function archPop(){
	MM_openBrWindow('news_archive.php','narchive','status=yes,scrollbars=yes,width=337,height=500')
}

function newsPop(){
	MM_openBrWindow('member_news.php','mnewspop','status=yes,scrollbars=yes,width=337,height=500')
}

function applPop() {
	MM_openBrWindow('application_form.php','mapplpop','status=yes,scrollbars=yes,width=530,height=500')
}

function exhibGuide() {
	MM_openBrWindow('exhib_guide.php','exhibguide','status=yes,scrollbars=yes,width=530,height=500')
}

function printable(page) {
	//MM_openBrWindow(page+'_print.php',''+page+'','status=yes,scrollbars=yes,width=530,height=500')
	MM_openBrWindow(page+'_print.php',''+page+'','status=yes,scrollbars=yes,width=530,height=500')
}

function residGuide() {
	MM_openBrWindow('resi_guide.php','resiguide','status=yes,scrollbars=yes,width=530,height=500')
}

function artistDetail(wID) {
	MM_openBrWindow('artist_detail.php?id='+wID,'artistdetail','status=yes,scrollbars=yes,width=800,height=600')
}

function exhibDetail(wID) {
	MM_openBrWindow('exhib_detail.php?id='+wID,'exhibdetail','status=yes,scrollbars=yes,width=800,height=600')
}

function eventDetail(wID) {
	MM_openBrWindow('event_detail.php?id='+wID,'eventdetail','status=yes,scrollbars=yes,width=800,height=600')
}

function showDetail(wID) {
	MM_openBrWindow('show_detail.php?id='+wID,'showdetail','status=yes,scrollbars=yes,width=800,height=600')
}

function genrPop(wID, re) {
	if (re) {
		myURL = 'genr_form.php?id='+wID+'&re='+re;
	} else {
		myURL = 'genr_form.php?id='+wID;
	}
	MM_openBrWindow(myURL,'genrform','status=yes,scrollbars=yes,width=530,height=500')
}

animLogo = 0;
DiTheLogo = false;

function overLogo() {
	if (animLogo == 0) {
		animLogo = 1;
		MM_swapImage('logo','','images/logo_.gif',1);
		DiTheLogo = setTimeout('DiLogo()',3000);
	}
}

function DiLogo() {
	animLogo = 0;
	MM_swapImage('logo','','images/logo.gif',1);
}

function overImg(wImg) {
//	if (MenuOvr == 0) {
		MM_swapImage('img_'+wImg,'',imgoArr[wImg-1],1);
		changeObjectVisibility('cap-'+wImg, 'visible');
		changeObjectVisibility('basecap', 'hidden');
//		menuOutImg = 0;
//	} else {
//		menuOutImg = wImg;
//	}
}

function outImg(wImg) {
//	menuOutImg = 0;
	MM_swapImage('img_'+wImg,'',imgsArr[wImg-1],1);
	changeObjectVisibility('cap-'+wImg, 'hidden');
	changeObjectVisibility('basecap', 'visible');
}

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
		styleObject.visibility = newVisibility;
		return true;
    } else {
		// we couldn't find the object, so we can't change its visibility
		return false;
    }
}

//-->