startList = function()
{

    if (window.XMLHttpRequest)
    {
    }
    else
    {
	if (document.all&&document.getElementById)
	{
		navRoot = document.getElementById("mainNav");
		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", "");
				}
			}
		}
	}
    }
}
window.onload=startList;

function changeBackground(id, backgroundImage)
{
	identity=document.getElementById(id);
	lBlog=document.getElementById("linkBlog");
	lNews=document.getElementById("linkNews");
	lNotices=document.getElementById("linkNotices");
	clinkBlog=document.getElementById("linkBlog");
	clinkNews=document.getElementById("linkNews");
	clinkNotices=document.getElementById("linkNotices");
	cBlog=document.getElementById("contentBlog");
	cNews=document.getElementById("contentNews");
	cNotices=document.getElementById("contentNotices");
	identity.style.background=backgroundImage;

	if (backgroundImage=="url(images/top-0.jpg)")
	{
		
		cBlog.style.display="block";
		/* clinkNews.style.background="url(images/top-bal-transf-off.jpg)"; */
		cNews.style.display="none";
		cNews.style.display="none";
		cNotices.style.display="none";
                identity.style.backgroundRepeat="no-repeat";
	}

	if (backgroundImage=="url(images/top-bal-transf-life.jpg)")
	{
		
		cBlog.style.display="none";
	/*	clinkBlog.style.background="url(images/top-bal-transf.jpg)"; */
		cNews.style.display="block";
		cNotices.style.display="none";
                identity.style.backgroundRepeat="no-repeat";
	}

	if (backgroundImage=="url(images/Best-Bal-transf.jpg)")
	{
		
		cBlog.style.display="none";
		cNews.style.display="none";
		cNotices.style.display="block";
                identity.style.backgroundRepeat="no-repeat";
	}
}