




// Maryanna Nesina
// www.webprogramming.boom.ru

// Christian Fecteau
// www.metaw3.ca

window.isIE5Mac = (!window.showModelessDialog && window.ActiveXObject && document.getElementById);
var oTime;

function antichambre()
{
	oTime = setTimeout('showmenu()',250);
}

function showmenu(name)
{
	if (name) { clearTimeout(oTime); }
	var ii, m=6, qq, nen;
	NeMenu =  new Array()
	nename = new Array()
	for (ii=1; ii<=m; ii++)
	{
		nen="menu" + ii;
		nename[ii]=nen;
		if (name)
		{
			if (nen==name) qq=ii;
		}
	}
	if (document.getElementById)
	{
		if (name)
		{
			document.getElementById(name).style.visibility='visible';
		}
		for (ii=1; ii<=m; ii++)
		{
			if (ii!=qq)
			{
				NeMenu[ii] = document.getElementById(nename[ii]);
				NeMenu[ii].style.visibility='hidden';
			}
		}
		return true;
	}
	if (document.all)
	{
		if (name) document.all[name].style.visibility = 'visible';
		for (ii=1; ii<=m; ii++)
		{
			if (ii!=qq) document.all[nename[ii]].style.visibility = 'hidden';
		}
		return true;
	}
/*
	if (document.layers)
	{
		if (name) document.layers[name].visibility = 'show';
		for (ii=1; ii<=m; ii++)
		{
			if (ii!=qq) document.layers[nename[ii]].visibility = 'hide';
    		}
		return true;
	}
*/
}



function swapImg(){
   Arr_Arg=swapImg.arguments;
   Arr_Arg[0].src=Arr_Arg[1];
}





function alertSize()
{
	if (!document.getElementById) { return; }
	var myHeight = 0;
	if (typeof window.innerWidth == 'number')
	{
		//Non-IE
		myHeight = window.innerHeight;
		newHeight = myHeight - 130;
	}
	else if (	document.documentElement &&
			(document.documentElement.clientWidth || document.documentElement.clientHeight )	)
	{
		//IE 6+ in 'standards compliant mode'
		myHeight = document.documentElement.clientHeight;
		newHeight = myHeight - 124;
	}
	else if (	document.body &&
			(document.body.clientWidth || document.body.clientHeight)	)
	{
		//IE 4 compatible
		myHeight = document.body.clientHeight;
		newHeight = myHeight - 124;
	}
	prod = document.getElementById('products');
	if (prod) { prod.style.height = newHeight + 'px'; }
}

window.onresize = alertSize;
