/*js - css drop down menu*/

function activatemenu()
{
	var dropmenu = document.getElementsByTagName('li');
	for(var i = 0; i < dropmenu.length; i++)
	{
		if(dropmenu[i].className == 'dropped')
		{
			dropmenu[i].firstChild.onclick = dropit;
			dropmenu[i].className = 'drop';
		}
	}
}


function dropit()
{
	d = this.parentNode;
	cn = this.parentNode.className;

	var dropmenu = document.getElementsByTagName('li');
	for(var i = 0; i < dropmenu.length; i++)
	{
	    if(dropmenu[i].className == 'dropped')
		{
			dropmenu[i].className = 'drop';
		}
	}

	if (cn == 'drop')
	{
		this.parentNode.className = 'dropped';
	}
}

      
function dropit2()
{
	if (this.parentNode.className == 'dropped')
	{
		this.parentNode.className = 'drop';
	}
	else
	{
		this.parentNode.className = 'dropped';
	}
 }


 
