function currentPage()
{
	// VARS
	this.textCurrentPage = "blog";
	this.currentPageWidth = 0;
	
	//--------------------------------------
	// INIT
	//--------------------------------------
	
	this.init = function()
	{
		//
	}
	
	//--------------------------------------
	// SET TEXTO
	//--------------------------------------
	
	this.setText = function( _Text )
	{
		// SET TEXT
		this.textCurrentPage = _Text;
		$( "#current_page" ).text( this.textCurrentPage );
		
		// BLOCK LUPA
		this.blockLupa();
		
		// MOTION CURRENT PAGE
		this.motionCurrentPage();

	}
	
	//--------------------------------------
	// BLOCK LUPA
	//--------------------------------------
	
	this.blockLupa = function()
	{
		if( this.textCurrentPage != "blog" && this.textCurrentPage != "Quem Somos" )
		$( "#current_page_img" ).css( 'display', 'block' );
		else
		$( "#current_page_img" ).css( 'display', 'none' );
	}
	
	//--------------------------------------
	// MOTION CURRENT PAGE
	//--------------------------------------
	
	this.motionCurrentPage = function()
	{
		//INIT POS
		$( "#nav_current_page" ).css( 'display', 'none' );
		this.currentPageWidth = document.getElementById( 'nav_current_page' ).offsetWidth * ( -1 );
		$( "#nav_current_page" ).css( {'marginRight': this.currentPageWidth } );
		
		//SEG POS
		window.setTimeout 
		( 
			function() 
			{ 	
				$( "#clip_controllers" ).css( 'width', 529 );
				$( "#clip_controllers" ).css( 'marginLeft', -529 );
				$( "#nav_current_page" ).css( 'display', 'block' );
				$( '#nav_current_page' ).stop().animate( { marginRight: 130 }, 300, 'easeOutCubic' );
			}
		
		, 700 
		);
		
		//TER POS
		window.setTimeout 
		( 
			function() 
			{ 
				this.currentPageWidth = document.getElementById( 'nav_current_page' ).offsetWidth * ( -1 );
				$( '#nav_current_page' ).stop().animate( { marginRight: this.currentPageWidth  }, 300, 'easeInCubic' );
			
				window.setTimeout 
				( 
					function() 
					{ 
						$( "#clip_controllers" ).css( 'width', 129 );
						$( "#clip_controllers" ).css( 'marginLeft', -129 );
					}
				
				, 600 
				);	
			}
		
		, 2500 
		);
	
	}
}
