function menu()
{
	//--------------------------------------
	// VAR
	//--------------------------------------
	var AtiveBlog = true;
	var AtiveAbout = false;
	
	
	
	
	//--------------------------------------
	// INIT
	//--------------------------------------
	
	this.init = function( page )
	{
		this.setMenu( page );
		
		$( "#searchInputID" ).attr( "value", "Busca" );
	}
	
	
	
	//--------------------------------------
	// SET MENU
	//--------------------------------------
	
	this.setMenu = function( page )
	{
		if( page == 'blog' )
		{
			AtiveBlog = true;
			AtiveAbout = false;
			
			$( '#header_menu_blog a' ).css( "color", "#aeaeaf" );
			$( '#header_menu_about a' ).css( "color", "#464646" );
		}
		else if(page == 'about')
		{
			AtiveAbout = true;
			AtiveBlog = false;
			
			$( '#header_menu_about a' ).css( "color", "#aeaeaf" );
			$( '#header_menu_blog a' ).css( "color", "#464646" );
		}
		else
		{
			$( '#header_menu_about a' ).css( "color", "#464646" );
			$( '#header_menu_blog a' ).css( "color", "#464646" );
		}
	}
	
	//--------------------------------------
	// OVER/OUT/CLICK MENU
	//--------------------------------------
	
	this.overObj = function( id )
	{
		if( id == 'header_menu_about' )
		{
			if( AtiveBlog == true && AtiveAbout == false )
			$( '#header_menu_about a' ).css( "color", "#aeaeaf" );
		}
		else
		{
			if( AtiveBlog == false && AtiveAbout == true )
			$( '#header_menu_blog a' ).css( "color", "#aeaeaf" );
		}
	}
	
	this.outObj = function( id )
	{
		if( id == 'header_menu_about' )
		{
			if( AtiveBlog == true && AtiveAbout == false )
			$( '#header_menu_about a' ).css( "color", "#464646" );
		}
		else
		{
			if( AtiveBlog == false && AtiveAbout == true )
			$( '#header_menu_blog a' ).css( "color", "#464646" );
		}
	}
	
	this.ClickObj = function( id )
	{
		if( id == 'header_menu_about' )
		{
			$( '#header_menu_about a' ).css( "color", "#aeaeaf" );
			$( '#header_menu_blog a' ).css( "color", "#464646" );
		}
		else
		{
			$( '#header_menu_blog a' ).css( "color", "#aeaeaf" );
			$( '#header_menu_about a' ).css( "color", "#464646" );
		}
	}
	
	//--------------------------------------
	// BUSCA
	//--------------------------------------
	
	this.buscaClick = function( id )
	{	
		if( id.value == 'Busca') $("#searchInputID").attr( "value", "" );
		if( id == 'clickBusca' ) $("#searchInputID").attr( "value", "" );
	}
	
	this.buscaFocus = function()
	{
		// FUNCTION KEY STATUS
		keyStatus = false;
	}
	
	this.buscaBlur = function()
	{
		if( $("#searchInputID").attr("value") == " " ) $("#searchInputID").attr( "value", "Busca" );
			
		// FUNCTION KEY STATUS
		keyStatus = true;
	}
	
	//--------------------------------------
	// MOTION HEADER INIT
	//--------------------------------------
	
	this.AdressMotionInit = function( _duration )
	{
		$( "address" ).delay( 0 ).animate
		(
			{   opacity: "show" }, 
			{
				duration: _duration,
				easing: 'easeInBack'
			} 
		);
	}
	
	this.headerMotionInit = function( _duration )
	{
	
		$( "#header" ).delay( 0 ).animate(
		{   opacity: "show", height: "show" }, 
		{
			duration: _duration,
			easing: 'easeOutCubic'
		} 
		);
	}
	
	this.footerMotionInit = function( _duration )
	{
		$( "#footer" ).delay( 1000 ).animate
		(
			{   opacity: "show" }, 
			{
				duration: _duration,
				easing: 'easeInBack'
			} 
		);
	}
	
}
