/*

	Javascript for Veganica Menus

*/

/*

	Header can be shown large or small

*/
function switch_header_style()
{
}

/*

	Apply a fix for older IE

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

				for (j=0; j<top_item.childNodes.length; j++)
				{
					child_list = top_item.childNodes[j]
					if (child_list.nodeName=="UL")
					{
						for (k=0; k<child_list.childNodes.length; k++)
						{
							sub_item = child_list.childNodes[k]
							if (sub_item.nodeName=="LI")
							{
								sub_item.onmouseover = function() { this.className+=" over"; }
								sub_item.onmouseout = function() { this.className = this.className.replace(" over", ""); }
							}
						}
					}
		 		}
			}
 		}
	}
}

window.onload=startList;


