function CB(){// check Browser
	this.version=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie6=((this.version.indexOf("MSIE 6")>-1 && this.dom))?1:0;
	this.ie5=((this.version.indexOf("MSIE 5")>-1 && this.dom))?1:0;
	this.ie4=(document.all && (this.version.indexOf("MSIE 4")>-1))?1:0;
	this.nn6=(this.dom && parseInt(this.version) >= 5) ?1:0;
	this.nn4=(document.layers && !this.dom)?1:0;
	this.macie4=(this.ie4 && navigator.userAgent.indexOf("Mac")>-1)?1:0;
	this.macie5=(this.ie5 && navigator.userAgent.indexOf("Mac")>-1)?1:0;
	this.macnn6=(this.nn6 && navigator.userAgent.indexOf("Mac")>-1)?1:0;
	this.macnn4=(this.nn4 && navigator.userAgent.indexOf("Mac")>-1)?1:0;
	this.mac=(navigator.userAgent.indexOf("Mac")>-1)?1:0;

	this.ie=(document.all)?1:0;
	return this;
}

var k_bc = new CB();

function chk(){alert(k_bc.version);}

function v_Layer(lname, sw){// visible on & off
	if(sw){
		if(k_bc.ie)document.all[lname].style.visibility='visible';
		if(k_bc.nn4)document.layers[lname].visibility='show';
		if(k_bc.nn6)document.getElementById(lname).style.visibility = 'visible';
	} else {
		if(k_bc.ie)document.all[lname].style.visibility='hidden';
		if(k_bc.nn4)document.layers[lname].visibility='hide';
		if(k_bc.nn6)document.getElementById(lname).style.visibility = 'hidden';
	}
}

