<!--
var dNavTo;

function init() { dNav = new dNav; dNav.init(); }

function dNav() {
    
    // timeouts
    this.gDiv = ["dNavDiv0","dNavDiv1","dNavDiv2","dNavDiv3","dNavDiv4"];
    this.gToSub = 400;

	this.VERSION = "0.0.9";
    this.inited = false;
    this.init = dNavInit;
    
	return this;
}

function dNavInit() {
    b = new dNavBrowObj;
    dNav.inited = true;
}

// userAgent:
// IE 5.5: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)
// NS 4.7: Mozilla/4.72 [de] (Windows NT 5.0; U)
// NS 6:

function dNavBrowObj() {
	this.ua = navigator.userAgent;
	this.ie = ((this.ua.indexOf("MSIE") != -1) && (document.all)) ? true : null;
	this.ns = ((this.ua.indexOf("Mozilla") != -1) && (document.layers)) ? true : null; 
	this.n6 = ((this.ua.indexOf("Mozilla") != -1) && (this.ua.indexOf("Netscape6") != -1)) ? true : null; 
	this.op = (window.opera) ? true : null;
	this.browserNotSupported = ((!this.ie) && (!this.ns) && (!this.n6) && (!this.op)) ? true : null;
	return this;
}

function dNavSwap(dDir,dWait,dDiv,dNSFix) {
    if (!dNav.inited) return void(null);
    if (dNSFix) { if (!b.ns) return void(null); }
    dDiv = "dNavDiv"+dDiv;
    if (dDir) {
        dNavVis(dDiv,"v");
        dNavHideOthers(dDiv);
    }
    else if (!dDir) {
        if (dWait) dNavTo = window.setTimeout("dNavVis(\""+dDiv+"\",\"h\")",dNav.gToSub);  
        else dNavVis(dDiv,"h");
    }
}

function dNavHideOthers(dDiv) {
    for (i=0;i<dNav.gDiv.length;i++) {
        if (dDiv.indexOf(String(i)) == -1) dNavVis(String(dNav.gDiv[i]),"h");
        else continue;
    }
}

function dNavCTo() {
    
    if (!dNav.inited) return void(null);
    if (dNavTo) window.clearTimeout(dNavTo);
    return true;
}

function dNavVis(dDiv,dMeth) {
    dMeth = (((b.ie) || (b.n6)) && (dMeth == "v")) ? "visible":dMeth;
    dMeth = ((b.ns) && (dMeth == "v")) ? "show":dMeth;    
    dMeth = (((b.ie) || (b.n6)) && (dMeth == "h")) ? "hidden":dMeth;
    dMeth = ((b.ns) && (dMeth == "h")) ? "hide":dMeth;
    if (b.ie) document.all[dDiv].style.visibility = dMeth;
    else if (b.ns) document.layers[dDiv].visibility = dMeth;
    else if (b.n6) document.getElementById(dDiv).style.visibility = dMeth;
}

	// function to open a new window width height and width of the image...
	function popup(PopUpPath, Xstart, Ystart, PopUpWidth, PopUpHeight){
	//	check, if the popupwindow is not larger then the screenresolution...
		if (PopUpHeight > screen.height || PopUpWidth > screen.width){
			PopUpHeight = screen.height - 70;
			PopUpWidth = screen.width - 70;
		}
		window.open(PopUpPath, "popup", "width="+ PopUpWidth +",height="+ PopUpHeight +"ScreenX="+Xstart+",ScreenY="+Ystart+",resizable=yes,scrollbars=yes");
	}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}	

window.onerror = e;
function e() { return true; }
//-->
