d = document;
function verifyCompatibleBrowser(){ 
	this.ver=navigator.appVersion;
	this.dom=d.getElementById ? 1 : 0;
	this.ie5=(this.ver.indexOf("MSIE 5") > -1 && this.dom) ? 1 : 0; 
	this.ie4=(d.all && !this.dom) ? 1 : 0; 
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ? 1 : 0;
	this.ns4=(d.layers && !this.dom) ? 1 : 0; 
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
}

bw=new verifyCompatibleBrowser();
 
function co(obj,nest){ 
	nest=(!nest) ? '' : 'd.'+nest+'.';
	this.el=bw.dom ? d.getElementById(obj) : bw.ie4 ? d.all[obj] : bw.ns4 ? eval(nest+'d.'+obj) : 0; 
	this.css=bw.dom ? d.getElementById(obj).style : bw.ie4 ? d.all[obj].style : bw.ns4 ? eval(nest+'d.'+obj) : 0;
	return this;
}

function hide(val) {
	currentvalue = ( co(val).css.display == 'block' ) ? 1 : 0;
	co(val).css.display = (currentvalue) ? 'none' : 'block';
}
