//Function to change page from option list
function linkURL(URL) {
	
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;	
	return true;
}

//Function to open pop up window
function winOpener(theURL, winName, scrollbars, resizable, width, height) {
	
	winFeatures = 'left=' + (screen.availWidth-10-width)/2 + ',top=' + (screen.availHeight-30-height)/2 + ',scrollbars=' + scrollbars + ',resizable=' + resizable + ',width=' + width + ',height=' + height + ',toolbar=0,location=0,status=1,menubar=0'
  	window.open(theURL, winName, winFeatures);
}

function onOver(imgName){ document.getElementById(imgName).src = 'images/' + imgName + '_over.gif';}
function onOff(imgName){ document.getElementById(imgName).src = 'images/' + imgName + '_up.gif';}
function onDown(imgName){ document.getElementById(imgName).src = 'images/' + imgName + '_down.gif';}

function onOverP(imgName){ document.getElementById(imgName).src = 'images/' + imgName + '_over.png';}
function onOffP(imgName){ document.getElementById(imgName).src = 'images/' + imgName + '_up.png';}
function onDownP(imgName){ document.getElementById(imgName).src = 'images/' + imgName + '_down.png';}

var myImages = new Array();

function preloadImages(){
	for (x=0; x<preloadImages.arguments.length; x++){
		myImages[x] = new Image();
		myImages[x].src = preloadImages.arguments[x];
	}
}

