function browser() {
	if(document.layers)
		return "ns4";
	else if(document.all)
		return "ie"
	else if(document.getElementById)
		return "ns6";
}

function getElementStyle(id) {
	switch(browser()) {
		case "ns4":
			return document.layers[id];
		case "ns6":
			return document.getElementById(id).style;
		case "ie":
			return document.all[id].style;
	}		
}

function init() {
	getElementStyle("scrollable").height = getWindowHeight()-190+"px";
	getElementStyle("logoFooter").top = getWindowHeight()-40+"px";
	getElementStyle("line3").height = getWindowHeight()-160+"px";
	getElementStyle("line4").top = getWindowHeight()-20+"px";
	showElement('scrollable', true);
	showElement('logoFooter', true);
	showElement('line3', true);
	showElement('line4', true);
}

function getWindowHeight() {
	switch(browser()) {
		case "ns4":
		case "ns6":
			return window.innerHeight;
		case "ie":
			if (document.body.clientHeight>170) // hack by plb 3.11.2003, ie6 does not work properly
				return document.body.clientHeight;
			else
				return document.documentElement.clientHeight;
	}
}

function showElement(id, visible) {
	var st = getElementStyle(id);
	if(st)
		st.visibility = (browser() != "ns4" ?
			(visible ? "visible" : "hidden") :
			(visible ? "show" : "hide")
		);
}

function openNewWindow(fileName) {
	win4471 = open(fileName,"IntraManagement","width=620,height=490,left=100,top=100,dependent=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
}

function openDetails(fileName) {
	win4471 = open(fileName,"IntraManagement","width=620,height=700,left=100,top=50,dependent=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=yes");
}

