	
	// BrowserCheck Object
	function BrowserCheck() {
		var b = navigator.appName
		if (b=="Netscape") this.b = "ns"
		else if (b=="Microsoft Internet Explorer") this.b = "ie"
		else this.b = b
		this.version = navigator.appVersion
		this.v = parseInt(this.version)
		this.ns = (this.b=="ns" && this.v>=4)
		this.ns4 = (this.b=="ns" && this.v==4)
		this.ns5 = (this.b=="ns" && this.v==5)
		this.ns6 = (this.b=="ns" && this.v==6)
		this.ie = (this.b=="ie" && this.v>=4)
		this.ie4 = (this.version.indexOf('MSIE 4')>0)
		this.ie5 = (this.version.indexOf('MSIE 5')>0)
		this.ie6 = (this.version.indexOf('MSIE 6')>0)
		this.min = (this.ns||this.ie)
	}
	is = new BrowserCheck()
	
	var isIE = (is.ie) ? true:false;
	
	// TOP NAVIGATION
	if (document.images) {
		var lnav_off = new Array();
		var lnav_on = new Array();
		
		for (i = 1; i < 8; i++) {
			lnav_off[i] = new Image();
			lnav_off[i].src = "img/lnav" + i + "_f.gif";
			lnav_on[i] = new Image();
			lnav_on[i].src = "img/lnav" + i + "_o.gif";
		}
	}
	
	function overLeftNav(idx) {
		if (idx != 0)
			document.images["lnav" + idx].src = lnav_on[idx].src;
	}

	function outLeftNav(idx) {
		if (idx != currentLeft)
			document.images["lnav" + idx].src = lnav_off[idx].src;
	}
	
	// NAV SYNCHRONIZATION
	function syncNav() {
		overLeftNav(currentLeft);
	}
	
	function jumpPage(obj) {
		if (obj.value != "") {
			document.location = obj.value;
		}
	}
	
	// POPUP WINDOW
	var zoomwindow;

	function deplace(window,width,height) {
		var scr_x = screen.width;
		var scr_y = screen.height;
		if (is.v >= 4) {
			if (!isIE) {
				window.moveTo((scr_x/2)-(width/2), (scr_y/2)-(height/2));
			} else {
				window.moveTo(parent.window.screenLeft+300, parent.window.screenTop+150);
			}
		}
	}
		
	var movePopup = 1;
	var scrollPopup = 1;
	var modalDialog = 0;
	var windowName = "ZOOMWINDOW";
	
	function openPopup(url,width,height) {
		movePopup = 1;
		scrollPopup = 1;
		modalDialog = 0;
		if (openPopup.arguments.length >= 4) {
			if (openPopup.arguments[3] != "") {
				windowName = openPopup.arguments[3];
			}
		}
		if (openPopup.arguments.length >= 5)
			movePopup = (openPopup.arguments[4]) ? 1:0; // MOVE ON/OFF
		if (openPopup.arguments.length >= 6)
			scrollPopup = (openPopup.arguments[5]) ? 1:0; // SCROLL ON/OFF
		if (openPopup.arguments.length >= 7)
			modalDialog = (openPopup.arguments[6]) ? 1:0; // MODALDIALOG ON/OFF
		if (url != "") {
			var features;
			if (zoomwindow != null) {
				if (!zoomwindow.closed)
					zoomwindow.close();
			}
			if (modalDialog) {
				width += 6;
				height += 25;
				features = "center:" + movePopup + "; help:0; unadorned:1; status:off; scroll:no; resizable:no; dialogWidth:" + width + "px; dialogHeight:" + height + "px";
				zoomwindow = window.showModalDialog(url,"",features);
			} else {
				features = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + scrollPopup + ",resizable=0,width=" + width + ",height=" + height + "'";
				zoomwindow = window.open(url,windowName,features);
				if (is.v == 3 || is.v == 4) {
					zoomwindow.focus();
				}
				//if (movePopup) deplace(zoomwindow,width,height);
			}
		}
	}
	
