/* scripts for rollovers */

function preload(imgObj,imgSrc) {
   eval(imgObj+' = new Image()')
   eval(imgObj+'.src = "'+imgSrc+'"')
}


function img_toggle( imgName, mode ) {
   
   if( document.images ) {
      document[ imgName ].src = eval( imgName + "_" + mode + ".src" );
   }

}


// opens a basic popup window
function openPopup() {
	url = theImage + ".html";
	showPopup(450, 350, url);
}

// updates text description
function updateText(text) {
	document.getElementById("desc").innerHTML = text;
}





/* script for popup window */

function showPopup( width, height, file) {
	x = (640 - width)/2, y = (480 - height)/2;

	if (screen) {
	y = (screen.availHeight - height)/2;
	x = (screen.availWidth - width)/2;
	}
	if (screen.availWidth > 1800) {
	x = ((screen.availWidth/2) - width)/2;
	}

   	var newWindow =

	window.open(file,'','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars=no,resizable=yes,toolbar=no,menubar=no,status=no');

}