var browser=true;
if (document.layers && !document.getElementById) browser=false;

function createObj(obj) {
if (document.all) obj=document.all['SubMenu_'+obj];
else obj=document.getElementById('SubMenu_'+obj);
return obj;
}

function showSubMenu(obj) {
	if (browser)
	{
	hideallSubs();
	obj=createObj(obj);
	obj.style.visibility='visible';
	}
}
function check(e,obj) {
if (browser) {
	if (document.all) 
		{
		if ((e.y <= 122)||(e.x <= 220 )||(e.y >= 174) )
			{
			
			hideSubMenu(obj);	
			}
		}
	else {
		if ((e.clientY<=122)||(e.x <= 220 )||(e.y >= 174))
			{
			hideSubMenu(obj);
			}
		}
	}
}

function hideSubMenu(obj) {
	if (browser)
	{
	obj=createObj(obj);

	obj.style.visibility='hidden';
	}
}

function hideallSubs() {
if (browser)
	{
	if (document.all) {
		for (var i=0; i<document.all.length;i++) {
			if (document.all[i].id && document.all[i].id.indexOf('SubMenu_')!=-1) document.all[i].style.visibility='hidden';
			}
		}
	else {
		for (var i=0; i<document.getElementById.length;i++) {
			if (document.getElementById[i].id && document.getElementById[i].id.indexOf('SubMenu_')!=-1) document.getElementById[i].style.visibility='hidden';
			}
		}
	}
}