﻿
function LinkTopMenuMouseHover(tdID, hoverClass)
{
    document.getElementById(tdID).className = hoverClass;
}

function LinkTopMenuMouseOut(tdID, normClass)
{
    document.getElementById(tdID).className = normClass;
}

function ShowHideTopSubMenu(pnlMenuItem, pnlChilds)
{
    if(document.getElementById(pnlChilds).style.display == "none")
	   ShowTopSubMenu(pnlMenuItem, pnlChilds);
    else
	   HideTopSubMenu(pnlChilds);
}

function ShowTopSubMenu(pnlMenuItem, pnlChilds)
{
    SetPnlChildsWidth(pnlMenuItem, pnlChilds);
    document.getElementById(pnlChilds).style.display = "block";
}

function HideTopSubMenu(pnlChilds)
{
    document.getElementById(pnlChilds).style.display = "none";
}

function SetPnlChildsWidth(pnlMenuItem, pnlChilds)
{
    document.getElementById(pnlChilds).style.width = 
	   document.getElementById(pnlMenuItem).clientWidth + "px";
}

function CustomDropDownList_MouseOver(pnlID)
{
    document.getElementById(pnlID).style.display = "block";
}

function CustomDropDownList_MouseOut(pnlID)
{
    document.getElementById(pnlID).style.display = "none";
}

function SelectItem(hiddenID,itemValue)
{
    document.getElementById(hiddenID).value = itemValue;
    return true;
}

function LinkBtnMouseOverOut(linkID,color)
{
    document.getElementById(linkID).style.color=color;
}

function CustomDropDownList_MouseClick(pnlID)
{
    document.getElementById(pnlID).style.display = "block";
    return false;
}



