function showHide(id)
{
	oElement = document.getElementById(id);
	
	if(oElement.style.display == 'block')
	{
		oElement.style.display = 'none';
	}
	else
	{
		oElement.style.display = 'block';
	}
}

startList = function()
{
	if (document.all&&document.getElementById)
	{
		navRoot = document.getElementById("menu");
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function()
				{
					this.className+=" over";
			  	}
			  	node.onmouseout=function()
			  	{
			  		this.className=this.className.replace(" over", "");
			   	}
			}
		}
	}
}

function replaceUrl()
{
	var arr = document.getElementsByTagName('a');
	
	for (i = 0; i < arr.length; i++)
	{
		menuClass = false;
		
		classArray = arr[i].className.split(" ");
		
		for(a = 0; a < classArray.length; a++)
		{
			if(classArray[a] != 'menu')
			{
				menuClass = false;
			}
            if(classArray[a] == 'menu')
            {
                menuClass = true;
            }
        }
		
		if(menuClass == false)
		{
			arr[i].href = 'redirect.php?link=' + arr[i].href;
		}
	}
}

function init()
{
	startList();
	//replaceUrl();
}

window.onload=init;