function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}

var bw=new lib_bwcheck() //Making browsercheck object
if (bw.bw) isMenu = true;
if(isMenu) br = "n3";
if (bw.ns4) {
        origWidth = innerWidth;
	origHeight = innerHeight;
}
function reDo() {
        if (innerWidth != origWidth || innerHeight != origHeight) 
        location.reload();
        }
        
if (bw.ns4) onresize = reDo;
// Create image objects, preload all active and inactive images.
    if (br == "n3") {
    _7on = new Image();
    _7on.src = "images/7.gif";
    _2on = new Image();
    _2on.src = "images/2.gif";
    _3on = new Image();
    _3on.src = "images/3.gif";
    _5on = new Image();
    _5on.src = "images/5.gif";
    _6on = new Image();
    _6on.src = "images/6.gif";
    _8on = new Image();
    _8on.src = "images/8.gif";
    _newsletteron = new Image();
    _newsletteron.src = "images/newsletter.gif";
    _abouton = new Image();
    _abouton.src = "images/about.gif";
    _welcomeon = new Image();
    _welcomeon.src = "images/welcome.gif";
	
	
}

// Function to "activate" images.
function imgAct(imgName) {
    if (br == "n3") 
    {
    		top.content.topNav.document["ban"].src = eval("_" + imgName + "on.src");
    }
}
// Function to "deactivate" images.
function imgInact(imgName) {

    if (br == "n3") 
    {
    		top.content.topNav.document["ban"].src = eval(imgName + "off.src");
    }
}

function changeFrame(url,page)
{
	top.content.main.location.replace(url);
	imgAct(page);	
}
