// JavaScript Document

function show(menupos, menudiv, element)
{
  
 
  var targetElement = document.getElementById(menudiv);
  var positionDiv = document.getElementById("onlinevideo");
  /*
  targetElement.style.top = positionDiv.offsetTop + 150 + (30 * (menupos - 1));
  targetElement.style.left = positionDiv.offsetLeft + 250;
  */
  
  
  targetElement.style.visibility ="visible";
  
	targetElement.onmouseover = function()
  {
   targetElement.style.visibility ="visible";
	}
  targetElement.onmouseout = function()
  {
   targetElement.style.visibility ="hidden";
	}
	
	element.onmouseover = function()
	{
	 element.style.backgroundPosition = "0px -1px";
	 element.style.color = "white";
	 targetElement.style.visibility ="visible";
	}
  element.onmouseout = function()
	{
	 element.style.backgroundPosition = "0px 29px";
	 element.style.color = "#666666";
	 targetElement.style.visibility ="hidden";
	}	
}


function hide(menudiv, listitem)
{
  
  var targetElement = document.getElementById(menudiv);
  targetElement.style.visibility ="hidden";
	
}

function setbg(listitem)
{

var menu = document.getElementById("menuwrap");
var lis = menu.getElementsByTagName("li");
for( var i=0; i < lis.length; i++)
{
	if(lis[i].firstChild.innerHTML == listitem)
	{
	 lis[i].firstChild.style.backgroundPosition = "0px -1px";
	 lis[i].firstChild.style.color = "white";
	}
	
}
}


function unsetbg(listitem)
{
var menu = document.getElementById("menuwrap");
var lis = menu.getElementsByTagName("li");
for( var i=0; i < lis.length; i++)
{
	if(lis[i].firstChild.innerHTML == listitem)
	{
	 lis[i].firstChild.style.backgroundPosition = "0px 29px";
	 lis[i].firstChild.style.color = "#666666";
	}
}
}


function mouseevent(currentdiv)
{
 var activediv = document.getElementById(currentdiv);
 activediv.onmouseover  
}

