function cfg_menu_3dhouse(  ) {
	
	this.mon		= 0;
	this.show		= 400;
	this.hide		= 300;
	
	this.interval	= 10;
}

cm3d	= new cfg_menu_3dhouse(  );

function menu_main_over( id ) {
	
	bid		= 'mmb_' + id;
	lid		= 'mml_' + id;
	sid		= 'mms_' + id;
	
	cm3d.mon	= sid;
	
	if ( document.getElementById( bid ) )	{	document.getElementById( bid ).className		= 'menu_main_item_over';		}
	if ( document.getElementById( lid ) )	{	document.getElementById( lid ).style.color		= '#FFFFFF';					}
	
	setTimeout( "menu_main_show( '" + sid + "' );", cm3d.interval );
}

function menu_main_out( id ) {
	
	bid		= 'mmb_' + id;
	lid		= 'mml_' + id;
	sid		= 'mms_' + id;
	
	cm3d.mon	= 0;
	
	if ( document.getElementById( bid ) )	{	document.getElementById( bid ).className		= 'menu_main_item_out';		}
	if ( document.getElementById( lid ) )	{	document.getElementById( lid ).style.color		= '#999999';				}
	
	setTimeout( "menu_main_hide( '" + sid + "' );", cm3d.interval );
}

function menu_second_over( id ) {
	
	bid		= 'msb_' + id;
	lid		= 'msl_' + id;
	
	if ( document.getElementById( bid ) )	{	document.getElementById( bid ).className		= 'menu_second_item_over';		}
	if ( document.getElementById( lid ) )	{	document.getElementById( lid ).className		= 'menu_second_item_img_over';	}
}

function menu_second_out( id ) {
	
	bid		= 'msb_' + id;
	lid		= 'msl_' + id;
	
	if ( document.getElementById( bid ) )	{	document.getElementById( bid ).className		= 'menu_second_item_out';		}
	if ( document.getElementById( lid ) )	{	document.getElementById( lid ).className		= 'menu_second_item_img_out';	}
}

function menu_third_over( id ) {
	
	bid		= 'mtb_' + id;
	lid		= 'mtl_' + id;
	
	if ( document.getElementById( bid ) )	{	document.getElementById( bid ).className		= 'menu_third_item_over';		}
	if ( document.getElementById( lid ) )	{	document.getElementById( lid ).className		= 'menu_third_item_img_over';	}
}

function menu_third_out( id ) {
	
	bid		= 'mtb_' + id;
	lid		= 'mtl_' + id;
	
	if ( document.getElementById( bid ) )	{	document.getElementById( bid ).className		= 'menu_third_item_out';		}
	if ( document.getElementById( lid ) )	{	document.getElementById( lid ).className		= 'menu_third_item_img_out';	}
}

function menu_main_show( elid ) {
	
	if ( cm3d.mon && cm3d.mon == elid ) {
		
		$( "#" + elid ).animate( {width : "show"}, cm3d.show );
	}
}

function menu_main_hide( elid ) {
	
	if ( !cm3d.mon || cm3d.mon != elid ) {
		
		$( "#" + elid ).animate( {width : "hide"}, cm3d.hide );
	}
}

function menu_main_click( link ) {
	
	document.location.href	= link;
}
