var oBw=new yg_Browser();

function yg_Browser(){
d=document;
this.agt=navigator.userAgent.toLowerCase();
this.major=parseInt(navigator.appVersion);
this.dom=(d.getElementById);
this.ns=(d.layers);
this.ns4up=(this.ns && this.major>=4);
this.ns6=(this.dom&&navigator.appName=="Netscape");
this.op=(window.opera);
if(d.all)this.ie=1;else this.ie=0;
this.ie4=(d.all&&!this.dom);
this.ie4up=(this.ie&&this.major>=4);
this.ie5=(d.all&&this.dom);
this.ie6=(d.nodeType);
this.sf=(this.agt.indexOf("safari")!=-1);
this.win=((this.agt.indexOf("win")!=-1)||(this.agt.indexOf("16bit")!=-1));
this.winme=(this.agt.indexOf("win 9x 4.90")!=-1);
this.xpsp2=(this.agt.indexOf("sv1")!=-1);
this.mac=(this.agt.indexOf("mac")!=-1);
}

var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
function hidelayer(lay) {
if (ie4) {document.all[lay].style.visibility = "hidden";}
if (ns4) {document.layers[lay].visibility = "hide";}
if (ns6) {document.getElementById([lay]).style.display = "none";}
}
function showlayer(lay) {
if (ie4) {document.all[lay].style.visibility = "visible";}
if (ns4) {document.layers[lay].visibility = "show";}
if (ns6) {document.getElementById([lay]).style.display = "block";}
}