// JavaScript Document

var type = "IE";

Sniffer();

function Sniffer() {
if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";
else if (document.all) type="IE"; //Internet Explorer e.g. IE4 upwards
else if (document.layers) type="NN"; //Netscape Communicator 4
else if (!document.all && document.getElementById) type="MO";
else type = "IE";
}

function ProcessLayer(id, action){
if (type=="IE") eval("document.all." + id + ".style.visibility='" + action + "'");
if (type=="NN") eval("document." + id + ".visibility='" + action + "'");
if (type=="MO" || type=="OP") eval("document.getElementById('" + id + "').style.visibility='" + action + "'");
}

var pre="";
function replace(id)
{

if (type=="MO" || type=="OP" || type=="IE")
{
if (pre!="") eval("document.getElementById('" + pre + "').style.display='none'");
if (eval("document.getElementById('" + id + "').style.display") != 'block') eval("document.getElementById('" + id + "').style.display='block'");
}
if (type=="NN")
{
if (pre!="") eval("document." + pre + ".display='none'");
if (eval("document." + id + ".display") != 'block') eval("document." + id + ".display='block'");
}
pre=id;
}