function showSubmenu(s1, s2, s3) {
	if(document.oldsubmenu) {
		document.oldsubmenu.style.display = 'none';
	}
	if(document.oldmenuL) {
		document.oldmenuL.className = 'menuNormal';
	}
	if(s1) {
		var s1o = document.getElementById('submenucontainer' + s1);
		if(s1o) {
			s1o.style.display = 'block';
			document.oldsubmenu = s1o;
		}
		var s1l = document.getElementById('menu' + s1);
		if(s1l && s1l.className != 'menuActive') {
			s1l.className = 'menuBold';
			document.oldmenuL = s1l;
		}
	}
	if(document.oldsubsubmenu) {
		document.oldsubsubmenu.style.display = 'none';
	}
	if(document.oldsubmenuL) {
		document.oldsubmenuL.className = 'menuNormal';
	}
	if(s2) {
		var s2o = document.getElementById('subsubmenucontainer' + s1 + '_' + s2);
		if(s2o) {
			document.oldsubsubmenu = s2o;
			s2o.style.display = 'block';
		}
		var s2l = document.getElementById('submenu' + s1 + '_' + s2);
		if(s2l && s2l.className != 'menuActive') {
			document.oldsubmenuL = s2l;
			s2l.className = 'menuBold';
		}
	}
}
function popupWin(url) {
	frwin=window.open(url + "&target=" + window.name,"frwin","width=580,height=700,scrollbars=yes,top=200,left=300,resizable=yes");
	window.frwin.focus();
}
function checkTickerPos(){
	if(document.body.clientHeight) {
		var h = document.body.clientHeight;
		var ticker = document.getElementById('newsline');
		if(h < 400) {
			// fix the position of the news bar
			ticker.style.bottom = 'auto';
			ticker.style.top = '328px';
		}
		else {
			// ticker.style.position = 'absolute';
			ticker.style.top = 'auto';
			ticker.style.bottom = '48px';
		}
	}
}