/*
   dropdown.js
   76 Design Created
*/


function addLoadEvent(func)
{
	var oldonload = window.onload;

	if (typeof window.onload != 'function')
	{
		window.onload = func;
	}
	else
	{

		window.onload = function()
		{
			oldonload();
			func();
		}

	}

}

startList = function()
{

	if (document.all && document.getElementById)
	{
		navWrapper = document.getElementById("topmenu");
		colList = navWrapper.getElementsByTagName("LI");

		for (i = 0; i < colList.length; i++)
		{
			node = colList[i];

			if (node.nodeName == "LI")
			{

				node.onmouseover = function()
				{
					this.className += " over";
				}

				node.onmouseout = function()
				{
					this.className = this.className.replace(" over", "");
				}

			}

		}

	}

}

addLoadEvent(startList);

function setCookie(name, value)
{
	document.cookie = name + "=" + value;
}

function getCookie(name)
{
	var dc = document.cookie;
	var prefix = name + "=";
	var begin = dc.indexOf("; " + prefix);

	if (begin == -1)
	{
		begin = dc.indexOf(prefix);

		if (begin != 0) return null;

	}
	else
		begin += 2;

	var end = document.cookie.indexOf(";", begin);

	if (end == -1)
		end = dc.length;

	return unescape(dc.substring(begin + prefix.length, end));
}