
//Hover-up Menu Bar: By Dynamicdrive.com
//Credit must stay intact for use
//Visit http://www.dynamicdrive.com for this script and more

//CSS stylesheet for menu bar
//Customize background color (#FFF2BF) and link color (black):
//var cssdefinition='<style>\n.menuitems{\nborder:2.5px solid #f5deb5;\n}\n\n.menuitems a{\ntext-decoration:none;\ncolor:696969;\n}\n<\/style>'

//No need to edit beyond here
//if (document.all||document.getElementById)
//document.write(cssdefinition)

function over_effect(e,state, bgcolor)
{
	if (document.all)
		source4=event.srcElement;
	else if (document.getElementById)
		source4=e.target;
	if (source4.className=="menuitems")
	{
		//source4.style.borderStyle=state;
		event.srcElement.style.color=bgcolor;
		//if( state != "none" )
		//{
		//	source4.style.backgroundColor=bgcolor;
		//	source4.style.borderWidth="2.5px"
		//}
	}
	else
	{
		while(source4.tagName!="TD")
		{
			source4=document.getElementById? source4.parentNode : source4.parentElement;
			if (source4.className=="menuitems")
			{
				event.srcElement.style.color=bgcolor;
				//source4.style.borderStyle=state;
				//if( state != "none" )
				//{
				//	source4.style.backgroundColor=bgcolor;
				//	source4.style.borderWidth="2.5px"
				//}
			}
		}
	}
}

