	/*function ajaxGetContent(link, wrapper) {
		var wrapper = wrapper ? $(wrapper) : $("mainBoxContent");
		fadeOut(wrapper);

		window.setTimeout(function() {
			var xhr = new Ajax.Request(link, {
				method:"get",
				onSuccess: function(t) { wrapper.innerHTML = t.responseText; fadeIn(wrapper); },
				on404: function(t) { wrapper.innerHTML = "Error 404: location " + link + " was not found"; fadeIn(wrapper); },
				onFailure: function(t) { wrapper.innerHTML = "Error " + t.status + " -- " + t.statusText; fadeIn(wrapper); }
			});
		}, 500);
		return false;
	}
	function fadeIn(wrapper)  { $("loader").style.display = "none"; new Effect.Opacity(wrapper, { from:0, to:1, duration:0.3 }); }
	function fadeOut(wrapper) { $("loader").style.display = "block"; new Effect.Opacity(wrapper, { from:1, to:0, duration:0.5 }); }
	function smartLoad()      { fadeOut($("subContent")); window.setTimeout(function() { return true; }, 500); }*/
	
	
	/*var links = $("mainMenu").getElementsByTagName("a");
	
	for(var i=0, n=links.length; i<n; i++) {
		links[i].onclick = smartLoad;
	}
	if($("subMenu")) {
		var links = $("subMenu").getElementsByTagName("a");
		for(var i=0, n=links.length; i<n; i++) {
			links[i].onclick = function() { ajaxGetContent(this+"&ajax=1", false);return false; }
		}
	}
	$("loader").style.display = "none";
	
	$("lnkContact").onclick = smartLoad;*/
	
	jQuery(function($) {
		
		// On masque le GIF de chargement une fois le document chargé
		$('#loader').hide();
		
		// fadeOut si click menu
		$('#mainMenu a').add('#lnkContact').not($('#item-references a')).click(function() {
			$('#loader').show();
			$('.mainBoxContent').fadeOut('fast');
		});
		
		// Emulation pseudo-classe focus sur les champs de formulaire
		$('input').add('textarea').add('select').focus(function() { $(this).addClass('focus'); });
		$('input').add('textarea').add('select').blur(function() { $(this).removeClass('focus'); });
		
		// Liens externes
		$('a.lnkOut').attr('target', '_blank');
	});
	
	