//Browser Check
var browserType=new checkBrowserType();
var osType=new checkOsType();
function checkBrowserType(){
	this.IE=(navigator.userAgent.indexOf("MSIE")!=-1);
	this.Gecko=(navigator.userAgent.indexOf("Gecko")!=-1);
	this.IE6=(navigator.userAgent.indexOf("MSIE 6.")!=-1);
	this.IE5=(navigator.userAgent.indexOf("MSIE 5.")!=-1);
	this.Opera=(navigator.userAgent.indexOf("Opera")!=-1);
	this.Safari=(navigator.userAgent.indexOf("Safari")!=-1);
	this.NC71=(navigator.userAgent.indexOf("Netscape/7.1")!=-1);
	this.NC70=(navigator.userAgent.indexOf("Netscape/7.0")!=-1);
	this.NC6=(navigator.userAgent.indexOf("Netscape/6.")!=-1);
	this.NC7=(navigator.userAgent.indexOf("Netscape/7.")!=-1);
	this.NC4=(navigator.userAgent.indexOf("Netscape/4.")!=-1);
}
function checkOsType(){
	this.Win=(navigator.appVersion.indexOf("Win")!=-1);
	this.Mac=(navigator.appVersion.indexOf("Mac")!=-1);
	this.Unix=(navigator.appVersion.indexOf("X11")!=-1);
}

//UDSwitch
function writeUDSwitch(){
}

//GoPageTop
function goPageTop(){
}

//SetCSS
if(document.compatMode!="CSS1Compat" && browserType.IE){
	document.write('<style type="text/css">body,td,th{font-size:x-small;}</style>');
}




//MenuPalette
var selectedMenuName="";
var menuTimer=0;
function mouseoverMb(pObj){
}

function mouseoutMb(pObj){
}




//MenuPalette
var selectedMenuName="";
var menuTimer=0;

function mouseoverMP(obj,pMenuName){
	clearTimeout(menuTimer);
	if(selectedMenuName!=""){
		hideMP(obj,selectedMenuName);
	}
	showMP(obj,pMenuName);
}

function mouseoutMP(obj){
	menuTimer=setTimeout("hideMP('"+obj+"','"+selectedMenuName+"');",500);
}

function showMP(obj,pMenuName){
	setDivPos("MP"+pMenuName,getMenuPosX(obj)+80,getMenuPosY(obj)+obj.offsetHeight-8);
	setDivVisibility("MP"+pMenuName,"visible");
	selectedMenuName=pMenuName;

}

function hideMP(obj,pMenuName){
	setDivVisibility("MP"+pMenuName,"hidden");
	selectedMenuName="";
}

function keepMP(){
	clearTimeout(menuTimer);
}

function getMenuPosX(obj){
	if(browserType.Safari){
		var x=obj.offsetLeft;
	}
	else if(browserType.IE){
		var x=obj.offsetLeft+document.all["body"].offsetLeft;
	}
	else{
		var x=obj.offsetLeft+document.getElementById("body").offsetLeft;
	}
	return x;
}

function getMenuPosY(obj){
	if(browserType.Safari){
		var x=obj.offsetTop;
	}
	else if(browserType.IE){
		var x=obj.offsetTop+document.all["body"].offsetTop;
	}
	else{
		var x=obj.offsetTop+document.getElementById("body").offsetTop;
	}
	return x;
}

function setDivPos(objName,x,y){
	if(browserType.IE){
		document.all[objName].style.pixelLeft=x;
		document.all[objName].style.pixelTop=y;
	}
	else{
		document.getElementById(objName).style.left=x+"px";
		document.getElementById(objName).style.top=y+"px";
	}
}

function setDivVisibility(objName,val){
	if(browserType.IE){
		document.all[objName].style.visibility=val;
	}
	else{
		document.getElementById(objName).style.visibility=val;
	}
}

//SetCSS
if(document.compatMode!="CSS1Compat" && browserType.IE){
	document.write('<style type="text/css">body,td,th{font-size:x-small;}');
        document.write('.n{font-size:x-small}');
        document.write('</style>');
}

