if(document.all){Brwsr = "IE"};
if(document.layers){Brwsr = "NN4"};
if(document.getElementById && window.sidebar){Brwsr = "NN6"};
if(navigator.appName =="Opera"){Brwsr = "Opera"};
function noErrMsg(){return true};window.onerror = noErrMsg;
thefile="";theoldfile="";
function checkmf(){
if(document.getElementById){
loc=parent.frames.main.location.href; 
aloc=loc.lastIndexOf('/');filenam1=loc.substring(aloc+1);
thefilearr = filenam1.split(".");
thefile=thefilearr[0];
if(thefile !== theoldfile){
changemenu(thefile,theoldfile)
}
theoldfile = thefile
setTimeout('checkmf()',500)
}
}

function changemenu(thefile,theoldfile){
if(document.getElementById(thefile)!=null){
document.getElementById(thefile).style.color = "black"
document.getElementById(thefile).style.backgroundColor = "white"
}
if(theoldfile.length>1 && document.getElementById(theoldfile)!=null){
document.getElementById(theoldfile).style.color = "white"
document.getElementById(theoldfile).style.backgroundColor = "#009900" 
}
}

function shownfo(linkID,act){
theLayer = "Layer" + linkID
if(Brwsr=="IE"){
if (act == "over"){
eval('document.all.' + theLayer + '.style.visibility = "visible"')
}
if (act == "out"){
eval('document.all.' + theLayer + '.style.visibility = "hidden"')
}
}
if(Brwsr=="NN6"){
if (act == "over"){
eval('document.getElementById("' + theLayer + '").style.visibility = "visible"')
}
if (act == "out"){
eval('document.getElementById("' + theLayer + '").style.visibility = "hidden"')
}
}
if(Brwsr=="NN4"){
if (act == "over"){
eval('document.layers["' + theLayer + '"].visibility = "show"')
}
if (act == "out"){
eval('document.layers["' + theLayer + '"].visibility = "hide"')
}
}
}
