var timeout = 100000;
var t;
//var elem;
function menuDyn() 
{
	window['lksNav'] =  document.getElementById('omenu').getElementsByTagName('li');
	if(navigator.userAgent.indexOf('MSIE 6') > -1 ) window['isIE6'] = true;
	for(var i in window['lksNav']) 
	{
		window['lksNav'][i].onmouseover = function() 
		{
			clearTimeout(t);
			if(typeof(window['ssNavOn']) != 'undefined') window['ssNavOn'].style.display = 'none';
			var ssNav = this.getElementsByTagName('ul');
			if(typeof(ssNav[0]) != 'undefined') 
			{
				window['ssNavOn'] = ssNav[0];
				window['ssNavOn'].style.display = 'inline';
				if(window['isIE6']) 
					this.getElementsByTagName('iframe')[0].style.display = 'block';
				this.className = "sel";
				
//				elem = this;			
				this.onmouseout = function() 
				{
					this.className = "";
					t = window.setTimeout('hide()',timeout);
				}
			}
		}
	}
}

function hide() {
	window['ssNavOn'].style.display = 'none';
	// if (window['isIE6']) this.getElementsByTagName('iframe')[0].style.display = 'none';
	
	//	this.className = "";
	//	elem.className = "";
	clearTimeout(t);
}


function addLoadEvent(func) {	
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
    	window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

addLoadEvent(menuDyn);

