function doMenu1Click( nID )
{
	//Setting topmenu
	var objTopmenu = document.getElementById( "topmenu" );
	var bFirst = true;
	for( var i = 0; i < objTopmenu.childNodes.length; i++ )
	{
		if( objTopmenu.childNodes[ i ].tagName == "DIV" )
		{
			if( objTopmenu.childNodes[ i ].id == "mt" + nID )
			{
				if( bFirst )
					objTopmenu.childNodes[ i ].className = "m1s m1f";
				else
					objTopmenu.childNodes[ i ].className = "m1s m1n";
				objTopmenu.childNodes[ i ].setAttribute( "sel", "1" );
			}
			else
			{
				if( bFirst )
					objTopmenu.childNodes[ i ].className = "m1i m1f";
				else
					objTopmenu.childNodes[ i ].className = "m1i m1n";
				objTopmenu.childNodes[ i ].setAttribute( "sel", "0" );
				doM1Out( objTopmenu.childNodes[ i ] );
			}
			bFirst = false;
		}
	}

	//Setting submenu
	var objSubmenu = document.getElementById( "submenu" );
	objSubmenu.className = "mbtm";
	for( var i = 0; i < objSubmenu.childNodes.length; i++ )
	{
		if( objSubmenu.childNodes[ i ].tagName == "DIV" )
		{
			if( objSubmenu.childNodes[ i ].id == "mh" + nID )
				objSubmenu.childNodes[ i ].className = "mholder";
			else
				objSubmenu.childNodes[ i ].className = "mhidden";
			
		}
	}
}

function doM1Over( objElement )
{
   if( objElement.getAttribute( "sel" ) != "1" )
   {
   		objElement.style.color = "#F0F0F0";
   }
   else
   {
   		objElement.style.color = "#000000";
   }
}
 
function doM1Out( objElement )
{
   if( objElement.getAttribute( "sel" ) != "1" )
   {
   		objElement.style.color = "#FFFFFF";
   	}
   	else
   	{
   		objElement.style.color = "#000000";
   	}
}
function menuGo( strURL )
{
	window.I1.location.href = strURL;
}
function mError()
{
	alert('Error - Template for the page is not valid');
}
