/*
 *
 *
*/

function modifyMenu()
{
	//var MSIE = navigator.appVersion.indexOf('MSIE')+5;
	//var semi = navigator.appVersion.indexOf(';',MSIE);
	//var vers = parseInt(navigator.appVersion.substr(MSIE,(semi-MSIE)));
	
	if (document.all&&document.getElementById)
	//if (true)
	{
		var root = document.getElementById('menu');
		if(root && root.childNodes)
		{
			for (var i = 0; i < root.childNodes.length; i++)
			{
				if (root.childNodes[i].className == 'menu_group')
				{
					root.childNodes[i].onmouseover = function(){this.className = 'menu_group_over';};
					root.childNodes[i].onmouseout = function(){this.className = 'menu_group';};
				}
			}
		}
	}	
}

function flip(that){
	
	var obj = that;
	
	var bg = obj.parentNode;
	if (bg.className != "cur_menugroup"){ 
		obj.style.color = "#134AB1";
		bg.style.backgroundImage = 'url(layout/images/top_menu_hover_bg.jpg)';
		bg.nextSibling.src = 'http://remarkablelife.net/layout/images/top_menu_hover_right.jpg';
		bg.previousSibling.src = 'http://remarkablelife.net/layout/images/top_menu_hover_left.jpg';
	}
	
}



function unflip(that){
	
	var obj = that;
	
	var bg = obj.parentNode;
	if (bg.className != "cur_menugroup"){ 
		obj.style.color = "#FFFFFF";
		bg.style.backgroundImage = 'url(layout/images/top_menu_middle_bg.jpg)';
		bg.nextSibling.src = 'http://remarkablelife.net/layout/images/top_menu_right_bg.jpg';
		bg.previousSibling.src = 'http://remarkablelife.net/layout/images/top_menu_left_bg.jpg';
	}
}