<!--
window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
//-->

function ShowBanner(x)
{
  	if(x==1)
   	{
  		var imgArray1 = new Array();
   		imgArray1[0] = "images/header1.JPG";
   		imgArray1[1] = "images/header.JPG";
  	}
  	else
  	{
   		var imgArray1 = new Array();
   		imgArray1[0] = "images/header.JPG";
   		imgArray1[1] = "images/header1.JPG";
  	}
    	slideshowMerge('Slideshow1','',imgArray1,20,5000);
}

var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};

	el.floatIt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 40);
	}
	return el;
}
function validin() {
	if (document.frm_logon.usrname.value == 0) {
		alert( "Please enter username." );
		document.frm_logon.usrname.focus();
		return false ;
	}
	else if (document.frm_logon.pswd.value == 0) {
		alert( "Please enter password." );
		document.frm_logon.pswd.focus();
		return false ;
    } else {
		document.frm_logon.action = "index.php?log=in";
		document.frm_logon.method = "post";
		document.frm_logon.submit();
    } 
}
function validout() {
 	var return_msg=confirm("log out?.")
	if (return_msg == true) {
		document.frm_logon.action = "../index.php?log=out";
		document.frm_logon.method = "post";
		document.frm_logon.submit();
	} else {
		return false ;
	}
}

function mShow(tblid) {
	document.getElementById(tblid).style.display = '';	}

function mHide(tblid) {
	document.getElementById(tblid).style.display = 'none'; }

