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";
}







function selectCurrent(idSelected) {

	hideAll();

	// Reveal Current Selection
	if (idSelected) showObject("title"+idSelected);
}

function selectNext(id) {

	hideAll();

	// Reveal Next Selection
	showObject(id);
}

function hideAll() {

	for (var z=1; z < idTotal+1; z++) {

		hideObject("title"+z);
	}
}


// POP WINDOW

function popWindow(urlpass,windowNumber,imageWidth,imageHeight,posLeft,posTop) {  
newWindow=window.open(urlpass,windowNumber,"width="+imageWidth+",height="+imageHeight+",scrollbars=yes,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);




// PRINT OPTION
function macPrint() {
	if (document.all && window.print) document.write("<br><br><a href='javascript:window.print();'>&lt;Click to Print&gt;</a>");
}








