function initMenu(){
	var nodes = document.getElementById("menu").getElementsByTagName("li");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
if (document.all && !window.opera) attachEvent("onload", initMenu);

function initPopup(){
	var t_btn = document.getElementsByTagName('span');
	for(var i = 0; i < t_btn.length; i++){
		if(t_btn[i].className.indexOf('feature') != -1){
			if(t_btn[i].getElementsByTagName('strong')[0]){
				initHover(t_btn[i].getElementsByTagName('strong')[0]);
			}
		}
	}
	function initHover(_btn){
		var _f = true;
		var _popup = document.getElementById(_btn.className);
		var _t;
		_btn.onmouseover = function(){
			if(_popup) _popup.style.display = 'block';
			if(_t) clearTimeout(_t);
		}
		_btn.onmouseout = function(){
			_t = setTimeout(function(){ 
				if(_popup) _popup.style.display = 'none';
			}, 10);
		}
		if(_popup){
			_popup.onmouseover = function(){
				if(_t) clearTimeout(_t);
			}
			_popup.onmouseout = function(){
				_t = setTimeout(function(){
					if(_popup) _popup.style.display = 'none';
				}, 10);
			}
		}
	}
}
if (window.addEventListener){
	window.addEventListener("load", initPopup, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initPopup);
}