<!-- 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)
{
	document.body.onclick = hideallMenu;
	document.body.onscroll = hideallMenu;
}

function writeMenus()
{

	if (ie||ns6)
	{
		strMenu = '<div id="mnuService" onmouseover="clearTimeout(timer)" onmouseout="Timeout();" class="txtMenuItem" style="visibility:hidden; position:absolute; top:76; left:53; width:100; background-color:#970130; padding-left:10;">\n';

		strMenu +=  '<table width="100" cellpadding="0" cellspacing="4" bgcolor="#970130">\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/services/default.asp">Yleistä</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/services/benefits.asp">Hyödyt</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/services/plans.asp">Tukisopimukset</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/services/other.asp#consulting">Konsultointi</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/services/other.asp#installations">Asennukset</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/services/request_quote.asp">Pyydä tarjous</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:76; left:121; width:100; background-color:#970130; padding-left:10;">\n';

		strMenu +=  '<table width="100" cellpadding="0" cellspacing="4" bgcolor="#970130">\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/contact/default.asp">Yhteystiedot</a>';
		strMenu += '</td></tr>\n';

		strMenu += '<tr><td align="left" valign="top">';
		strMenu += '<a href="/contact/request_info.asp">Pyydä lisätietoa</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;
}

//-->