var menuColor = "#DCFBFF";
var menuBorderColor = "#D4D0C8";
function showMenu(menucall)
{
    i=infoOfBrowser();
    if (i==1)
    {
	return true;
    }
    
    for (argument=0;argument<arguments.length;argument++)
    {
	    
	a = document.getElementById(arguments[argument]);
	clearTimeout(a.hidelink);
	a.style.visibility='visible';
	if (i>3)
	{
	    a.firstChild.style.filter='alpha(opacity=100)';
	    a.firstChild.opacity=100;
	}
	if (i==3)
	{
	    a.style.MozOpacity=0.99;
	}
    }
}
function hideMenu(menucall)
{
    i=infoOfBrowser();
    if (i==1)
    {
	return true;
    }
    										
    for (argument=0;argument<arguments.length;argument++)
    {
	a = document.getElementById(arguments[argument]);
	clearTimeout(a.hidelink);
	a.hidelink=setTimeout("fadeMenu('"+arguments[argument]+"')",200);
    }
}
function fadeMenu(uniqueid)
{
    i=infoOfBrowser();
    a = document.getElementById(uniqueid);
    switch (i)
    {
	case   3:a.style.MozOpacity = a.style.MozOpacity - 0.1
	if (parseFloat(a.style.MozOpacity)>0)
	{
	    a.hidelink=setTimeout("fadeMenu('"+uniqueid+"')",5);
	}
	else
	{
	    a.style.visibility='hidden';
	}
	break;
	case   2:a.style.visibility='hidden';
	break;
	default :a.firstChild.opacity=a.firstChild.opacity>20?parseFloat(parseFloat(a.firstChild.opacity)-20):0;
	a.firstChild.style.filter='alpha(opacity='+document.getElementById(uniqueid).firstChild.opacity+')';
	if (a.firstChild.opacity>0)
	{
	    a.hidelink=setTimeout("fadeMenu('"+uniqueid+"')",50);
	}
	else
	{
	    a.style.visibility='hidden';
	}
	break;
    }
}
function infoOfBrowser()
{
    if (window.clipboardData)          { return  5 }
    else if (window.clientInformation) { return  4 }
    else if (window.sidebar)           { return  3 }
    else if (window.opera)             { return  2 }
    else if (window.crypto)            { return  1 }
    else if (window.alert)             { return  0 }
    else                               { return -1 }
}
function menuOut(menuVar) 
{
    n = ""
    topTable = "<div ID=\"" + menuVar + "\" style=\"position: absolute; ";
    if(arguments.length>1) 
    {
	if(arguments[1]=='r') {topTable +="top: 0px; left: 693px;";}
        else {topTable += "top: 0px; left: 693px;"}
    }
    else {topTable +="top: 0px; left: 693px;"; }
//    topTable +=" -moz-opacity: 0; visibility: hidden; z-index:10\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse; border-width: 2px;\" width=\"100px\" height=\"20px\" bgcolor=\"" + menuColor +"\" bordercolor=\"" + menuBorderColor +"\" >";
    topTable +=" -moz-opacity: 0; visibility: hidden; z-index:100\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-width: 2px;\" width=\"80px\" height=\"20px\" bgcolor=\"" + menuColor +"\" style=\"border: 2px solid" + menuBorderColor +";\" >";
    topTable += "<tr><td width=\"100%\" onmouseover=\"javascript:showMenu('" + menuVar + "');\" onmouseout=\"javascript:hideMenu('" + menuVar + "');\" class=\"language\" style=\"border: 2px solid" + menuBorderColor +";\">";
    btmTable = "</td></tr></table></div>";
    n += topTable
    n += eval(menuVar)
    n += btmTable
    return n
}