//ROLLOVER IMAGE SWAP


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
if (document.images) {
	//if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}















ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false





// SHOW AND HIDE

function showObject(id) {
	if (ns4) document.layers[id].visibility = "show";
	//else if (ie4) document.all[id].style.visibility = "visible";
	else document.getElementById(id).style.visibility = "visible";


}


function hideObject(id) {
	if (ns4) document.layers[id].visibility = "hide";
	//else if (ie4) document.all[id].style.visibility = "hidden";
	else document.getElementById(id).style.visibility = "hidden";
}





// POP WINDOW

function popWindow(urlpass,windowNumber,imageWidth,imageHeight,posLeft,posTop) {  
newWindow=window.open(urlpass,windowNumber,"width="+imageWidth+",height="+imageHeight+",scrollbars=no,resizable=no,left="+posLeft+",top="+posTop);
newWindow.focus();
} 





// NETSCAPE REFRESH

function reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}


reloadPage(true);












