<!--
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_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_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 Load_HP_Nav() {
	MM_preloadImages('site-images/hp_contact_over.gif','site-images/hp_search_over.gif','site-images/hp_about_over.gif','site-images/hp_artists_over.gif','site-images/hp_art_issues_over.gif','site-images/hp_exhibitions_over.gif');
}

function Load_Nav() {
	MM_preloadImages('site-images/nav_contact_over.gif','site-images/nav_search_over.gif','site-images/nav_about_over.gif','site-images/nav_artists_over.gif','site-images/nav_issues_over.gif','site-images/nav_exhibitions_over.gif','site-images/btn_listartists_over.gif','site-images/btn_listissues_over.gif','site-images/btn_listexhibitions_over.gif','site-images/icon_exhibitionartist_over.gif','site-images/icon_exhibitionreview_over.gif','site-images/icon_artwork_over.gif','site-images/icon_video_over.gif','site-images/icon_transcript_over.gif');
}


var boardNum = 0;
var boardSpeed = 3000;
var bbLink = "index.cfm";



billBoard = new Array();

	billBoard[0] = new Image();
	billBoard[0].src = "promos/Upcoming_01_hpe.jpg";
	billBoard[1] = new Image();
	billBoard[1].src = "promos/mignolo_01_hpe.jpg";
	billBoard[2] = new Image();
	billBoard[2].src = "promos/ramirez_01_hpe.jpg";
	billBoard[3] = new Image();
	billBoard[3].src = "promos/tup_01_hpe.jpg";
	
function changeBoard() {

		if (boardNum < billBoard.length -1)
			boardNum++;
		else
			boardNum = 0;
		document.board.src = billBoard[boardNum].src;
		setTimeout("changeBoard()",boardSpeed);
	
}

function startUp() {
	///alert("starting up");

		setTimeout("changeBoard()",boardSpeed);
	
}

function formSubmit(){
strEmail = document.theReg.email.value;
strEmail2 = document.theReg.email2.value;
	if (strEmail == "") {
	alert ('You must enter your email address.');
	return false;
	}
	if (strEmail != strEmail2) {
	alert ('Your email address is entered incorrectly, please correct.');
    document.theReg.email.value = ""
    document.theReg.email2.value = ""
    document.theReg.email.focus()
	return false;
	}
strCountry = document.theReg.country.options[document.theReg.country.selectedIndex].value;
	if (strCountry == "") {
	alert ('You must enter the country of your residence.');
	return false;
	}
strIncome = document.theReg.income.options[document.theReg.income.selectedIndex].value;
	if (strIncome == "") {
	alert ('You must select your income level.');
	return false;
	}
strGender = document.theReg.gender.options[document.theReg.gender.selectedIndex].value;
	if (strGender == "") {
	alert ('You must select your gender.');
	return false;
	}
strProfession = document.theReg.profession.options[document.theReg.profession.selectedIndex].value;
	if (strProfession == "") {
	alert ('You must select your occupation.');
	return false;
	}
}
	  var agent = navigator.userAgent.toLowerCase();
	  this.major = parseInt(navigator.appVersion);
	  this.minor = parseFloat(navigator.appVersion);
	  this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	  this.win = (agent.indexOf("win")!=-1);
	  this.mac = (agent.indexOf("mac")!=-1);

	if (this.mac == false){
	document.write('<link rel="stylesheet" href="main.css">');
	}
	else {
	document.write('<link rel="styl<I></I>esheet" href="mac.css">');
	}
	
function formSubmit2(){
strEmail = document.logonForm.email.value;
	if (strEmail == "") {
	alert ('You must enter your email address.');
	return false;
	}
}

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function showAndHide(theId) 
{ 
   var el = document.getElementById(theId) 

   if (el.style.display=="none") 
   { 
      el.style.display="block"; //show element 
   } 
   else 
   { 
      el.style.display="none"; //hide element 
   } 
} 

//-->
