<!-- hide

var timer;
var activeMenu;

var sOffBorderColor = "#EEEEEE";
var sOverBorderColor = "#FFFFFF #808080 #808080 #FFFFFF";

window.onerror = new Function("return true")

if (document.all)
	{n = 0; ie = 1; ns6 = 0}
if (document.getElementById&&!document.all)
	{n = 0; ie = 0; ns6 = 1}
if (document.layers)
	{n = 1; ie = 0; ns6 = 0}

if (ie||ns6)
{
	if(document.body){
	 document.body.onclick = hideallMenu;
	 document.body.onscroll = hideallMenu;
	}
}

function writeMenus()
{

	if (ie||ns6)
	{
		strMenu = ''
		strMenu += '<div id="mnuAlbum"  onmouseover="clearTimeout(timer)" onmouseout="Timeout();" class="txtMenuItem" style="visibility:hidden; position:absolute; top:132; left:67; width:114; background-color:#EEEEEE; padding-left:10;">\n';

		strMenu +=  '<table width="114" cellpadding="0" cellspacing="4" bgcolor="#EEEEEE">\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/album/albumListNew.aspx">Tulevat julkaisut</a>';
		strMenu += '</td></tr>\n';
/*
		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/mobile/Default.aspx">edel musicbar</a>';
		strMenu += '</td></tr>\n';
*/
		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/album/albumSearch.aspx">Haku</a>';
		strMenu += '</td></tr>\n';

		strMenu += '</table>\n';

		strMenu += '</div>\n';

		strMenu += '<div id="mnuExtra" onmouseover="clearTimeout(timer)" onmouseout="Timeout();" class="txtMenuItem" style="visibility:hidden; position:absolute; top:132; left:496; width:114; background-color:#EEEEEE; padding-left:10;">\n';

		strMenu +=  '<table width="114" cellpadding="0" cellspacing="4" bgcolor="#EEEEEE">\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/extranet/login.aspx">Kirjaudu</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/extranet/fileExplorer/default.aspx" target="_blank">Kuvapankki</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/extranet/releaseListList.aspx">Julkaisulistat</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/extranet/releaseListNew.aspx">Tulevat julkaisut</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/extranet/requestAccount.aspx">Tunnushakemus</a>';
		strMenu += '</td></tr>\n';

		strMenu += '</table>\n';

		strMenu += '</div>\n';

		strMenu += '<div id="mnuContact" onmouseover="clearTimeout(timer)" onmouseout="Timeout();" class="txtMenuItem" style="visibility:hidden; position:absolute; top:132; left:603; width:114; background-color:#EEEEEE; padding-left:10;">\n';

		strMenu +=  '<table width="114" cellpadding="0" cellspacing="4" bgcolor="#EEEEEE">\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/contact/default.aspx">Ota yhteytt&auml;</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td nowrap align="left" valign="top">';
		strMenu += '<a href="/contact/demohelp.aspx">Demojen l&auml;hetys</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td nowrap align="left" valign="top">';
		strMenu += '<a href="/contact/distributionhelp.aspx">Jakelu</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/contact/about.aspx">Yritystiedot</a>';
		strMenu += '</td></tr>\n';

		strMenu += '</table>\n';

		strMenu += '</div>\n';
	}
	
	document.writeln(strMenu);
}

function displayMenu(which)
{
	var targetMenu;

	if (ie||ns6)
	{
		if(timer) clearTimeout(timer);
		targetMenu =  ie? eval(which + ".style") : document.getElementById(which).style;
		targetMenu.visibility = "visible";	

		if (activeMenu != null && activeMenu != targetMenu) hideallMenu();

		activeMenu = targetMenu;

	}
}

function hideallMenu()
{
	if (ie||ns6)
	{
		if (activeMenu != null)
		{
			activeMenu.visibility = "hidden";
		}
	}
}

function Timeout()
{
	timer = setTimeout("hideallMenu()", 500);
}

function menu2Item_over(eButton)
{

	if (window.event && eButton.contains(window.event.fromElement)) return false;

	eButton.style.borderColor = sOverBorderColor;
}

function menu2Item_out(eButton)
{
	if (window.event && eButton.contains(window.event.toElement)) return false;

	eButton.style.borderColor = sOffBorderColor;
}

//-->