var tdo = null, dotd = 0, mmode = 0, aid = 0;
		function showM( tdo, dotd, mmode, aid )
		{
			if( tdo )
			{
				if( dotd == 1 )
				{
					tdo.className = ( ( mmode == 1 ) ? 'mainLh' : 'mainL' );
				}
				if( mmode == 1 )
				{
					// näytä
					if( document.getElementById( 'submenu' + aid ) && loaded )
					{
						document.getElementById( 'submenu' + aid ).style.visibility = 'visible';
						dopops( aid );
               }
				}
				else
				{
					// piilota
					start_hideNavi();
				}
			}
		}
		
function CUIPopUp( cui_url, cui_parameters, popname )
{
 if( popname != '' )
 {
	 var usename = popname;
 }
 else
 {
	 var random_windowname = Math.round( ( Math.random() * 100 ) );
	 var usename = 'CUIpop' + random_windowname;
 }
 newWindow = window.open( cui_url, usename, cui_parameters );
}

function CUIImageChange( cui_img_name, cui_img_src )
{
 if( document.images[ cui_img_name ] )
 {
	 document.images[ cui_img_name ].src = cui_img_src;
 }
}