// JavaScript Document
function show(layerId){
 if(is.ie) document.all[layerId].style.visibility='visible'; 
 if(is.ns5) document.getElementById(layerId).style.visibility='visible'; 
 if (is.ns4)document.layers[layerId].visibility='show'; 
}

function hide(layerId){
 if(is.ie) document.all[layerId].style.visibility='hidden'; 
 if(is.ns5) document.getElementById(layerId).style.visibility='hidden'; 
 if (is.ns4) document.layers[layerId].visibility='hide'; 
}

function setTop(layerId, pos){
 positionAbs(layerId);
 if(is.ie) document.all[layerId].style.top=pos; 
 if(is.ns5) document.getElementById(layerId).style.top=pos; 
 if (is.ns4) document.layers[layerId].top=pos; 
}

function setLeft(layerId, pos){
 positionAbs(layerId);
 if(is.ie) document.all[layerId].style.left=pos; 
 if(is.ns5) document.getElementById(layerId).style.left=pos; 
 if (is.ns4) document.layers[layerId].left=pos; 
}

function positionAbs(layerId){
 if(is.ie) document.all[layerId].style.position = 'absolute'; 
 if(is.ns5) document.getElementById(layerId).style.position = 'absolute'; 
 if (is.ns4)document.layers[layerId].position = 'absolute';
}

function positionRel(layerId){
 if(is.ie) document.all[layerId].style.position = 'relative'; 
 if(is.ns5) document.getElementById(layerId).style.position = 'relative'; 
 if (is.ns4)document.layers[layerId].position = 'relative';
}


// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()
