		var links = new Array("lnkAccueil", "lnkQui_Sommes_Nous", "lnkCarriere", "lnkContact");
		var currentAnchor = null;
		var lastLoadedPage = null;
		var loading = true;

		/**
		 * @objective 	: Load the requested page.
		 * @method 		: Check the anchor in the URL, if it is one of the accepted pages, load it.
		 * @input		: ---
		 * @output 		: ---
		 * @hypothesis	: The pages must be defined here.
		 **/
		function checkURL(){
			var anchor = jQuery.url.attr('anchor');
			switch(anchor){
				case "Accueil":
					loadHTML('Accueil');
					break;
				case "Qui_Sommes_Nous":
					loadHTML('Qui_Sommes_Nous');
					break;
				case "Carriere":
					loadHTML('Carriere');
					break;
				case "Contact":
					loadHTML('Contact');
					break;
				default:
					loadHTML('Accueil');
			} // switch
		}

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function setHeight(){
			var inner_height = document.getElementById("inner_wrap").scrollHeight;
			//alert(inner_height);
			$('#vbottom_wrap').css("top", inner_height-120);
		}

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function equalizeColumns(){
			$("#left, #right").equalizeCols();
			$("#news, #solutions").equalizeCols();
		}

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function loadHTML(page, id){
		alert(page);
			for (var i in links)
			{
				if (links[i] == 'lnk'+page)
				{
					//$('#'+links[i]).css('color','#FE9800');
					$('#'+links[i]).removeClass();
					$('#'+links[i]).addClass("active");
				}
				else
				{
					//$('#'+links[i]).css('color','#003466');
					$('#'+links[i]).removeClass();
					$('#'+links[i]).addClass("inactive");
				}
			}
			$(id).slideUp('slow', function(){
				$.ajax({
				  url: '_page/'+page+'.html',
				  cache: false,
				  success: function(html){
				    $(id).html(html);
					$(id).slideDown('slow');
					equalizeColumns();
					document.location.href = '#'+page;

				  }
				});
			});
		}

		function loadHTML(page){
			lastLoadedPage = page;
			loading = true;
			var id = "#content";
			for (var i in links)
			{
				if (links[i] == 'lnk'+page)
				{
					//$('#'+links[i]).css('color','#FE9800');
					$('#'+links[i]).removeClass();
					$('#'+links[i]).addClass("active");
				}
				else
				{
					//$('#'+links[i]).css('color','#003466');
					$('#'+links[i]).removeClass();
					$('#'+links[i]).addClass("inactive");
				}
			}
			var timersetHeight = setInterval(setHeight, 1);
			$(id).slideUp('slow', function(){
				$.ajax({
				  url: '_page/'+page+'.html',
				  cache: false,
				  success: function(html){
				    $(id).html(html);
					$(id).slideDown('slow', function(){
						equalizeColumns();
						setHeight();
						clearInterval( timersetHeight );
						loading = false;
					});

					document.location.href = '#'+page;

				  }
				});
			});
			return false;
		}

		/**
		  * @objective		: Redirect to a new URL.
		  * @method			: Change the document.location.href property. Should work in all browsers.
		  * @input			: URL - The URL to redirect to.
		  * @output			: ---
		  * @hypothesis		: The URL must be formatted correctly.
		  **/
		 function redirect(URL){
			document.location.href = URL;
		 }

		/**
		 * @objective		: Check if the anchor has changed.
		 * @access public
		 * @return void
		 **/
		function checkAnchor(){
			if (currentAnchor != document.location.hash) {
				currentAnchor = document.location.hash;
				var currentPage = currentAnchor.replace("#","");
				//alert(currentPage);
				//alert(lastLoadedPage);
				if (loading != true) {
					loadHTML(currentPage);
				}

			}
		}
		
		function changeURL(URL){
			document.location.href = URL;
			return false;
		}