function offTimer() {
    if (document.timer) {
        window.clearTimeout(document.timer);
		document.timer = null;
	}
}

function show(obj) {
	document.getElementById(obj).style.display = 'block';
}

function hide() {
	if (document.vis_l3) {
		document.getElementById(document.vis_l3).style.display = 'none';
		document.vis_l3 = null;
    };
	document.getElementById(document.vis).style.display = 'none';
}

function on_2 (obj2) {
	if (document.timer2) window.clearInterval(document.timer2);
	if (document.vis_l3) document.getElementById(document.vis_l3).style.display = 'none';
		document.getElementById(obj2).style.display = 'block';
		document.vis_l3 = obj2;
}

function hide_2() {
	e = document.getElementById(document.vis_l3);
    if ( e == null ) return; 
    e.style.display = 'none';
}

function on(obj) {
    if(!document.getElementById(obj)) return;    
	offTimer();
		if (document.vis) {
			hide();
		}
	show(obj);
}

function off(obj) {
    if(!document.getElementById(obj)) return;    
	document.vis = obj;
	document.timer = window.setTimeout('hide()', 900);
}

if (navigator.appVersion.indexOf('MSIE 5') >= 0 && navigator.userAgent.indexOf('Opera') == -1) {
    document.write('<style type="text/css" media="all">#menu .right {text-align:right}</style>');
};
