function WriteLayer(ID,parentID,sText) {
	if (document.layers) {
		var oLayer = (parentID)? eval('document.' + parentID + '.document.' + ID + '.document') : document.layers[ID].document;
		oLayer.open();
		oLayer.write(sText);
		oLayer.close();
	}
	else if (document.all) document.all[ID].innerHTML = sText
	else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape") {
		document.getElementById(ID).innerHTML = sText;
	}
}

function unlite() {
  WriteLayer('MyLayer',null,'<font color="#893B11">&nbsp;&nbsp;&nbsp;</font>');
}

function navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#A5ADC6';
				tableCellRef.style.cursor = 'hand';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#CE6329';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function goTo( url ) {
	window.location.href = url;
}

function navBarClick( tableCellRef, navStyle, url ) {
	navBar( tableCellRef, 0, navStyle );
	goTo( url );
}

function popupimg(fn,w,h){
         bName = navigator.appName;
         bVer = parseInt(navigator.appVersion); 
         if (bName == "Netscape" && bVer >= 2) ver = "n2";
         else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e3";
         if (ver == "n2" || ver == "e3"){
	       u = "showimg.php?imgloc="+fn;
           win=open(u,"winnow", 'width='+w+',height='+h);
         }
}


