$(document).ready(function(){
	
	$("#lien-presentation-1").hover(
	  function () {	$("#texte-presentation-1").addClass("hover"); },
	  function () {	$("#texte-presentation-1").removeClass("hover"); } 
	);
	$("#lien-presentation-2").hover(
	  function () {	$("#texte-presentation-2").addClass("hover"); },
	  function () {	$("#texte-presentation-2").removeClass("hover"); } 
	); 
	$("#lien-presentation-3").hover(
	  function () {	$("#texte-presentation-3").addClass("hover"); },
	  function () {	$("#texte-presentation-3").removeClass("hover"); } 
	); 
	$("#lien-presentation-4").hover(
	  function () {	$("#texte-presentation-4").addClass("hover"); },
	  function () {	$("#texte-presentation-4").removeClass("hover"); } 
	); 
	$("#lien-presentation-5").hover(
	  function () {	$("#texte-presentation-5").addClass("hover"); },
	  function () {	$("#texte-presentation-5").removeClass("hover"); } 
	); 
	$("#lien-presentation-6").hover(
	  function () {	$("#texte-presentation-6").addClass("hover"); },
	  function () {	$("#texte-presentation-6").removeClass("hover"); } 
	); 
	$("#lien-presentation-7").hover(
	  function () {	$("#texte-presentation-7").addClass("hover"); },
	  function () {	$("#texte-presentation-7").removeClass("hover"); } 
	); 
	$("#lien-presentation-8").hover(
	  function () {	$("#texte-presentation-8").addClass("hover"); },
	  function () {	$("#texte-presentation-8").removeClass("hover"); } 
	); 
	$("#lien-presentation-9").hover(
	  function () {	$("#texte-presentation-9").addClass("hover"); },
	  function () {	$("#texte-presentation-9").removeClass("hover"); } 
	); 
	$("#lien-presentation-10").hover(
	  function () {	$("#texte-presentation-10").addClass("hover"); },
	  function () {	$("#texte-presentation-10").removeClass("hover"); } 
	); 

	$('a.thumb-realisation, a.thumb-travaux').hover(
		function(){
			var obj = $(this);
				obj.find('.over').stop(false, true).fadeIn(300);
				obj.find('.details').stop(false, true).fadeIn(200);
				obj.find('.details').stop(false, true).animate({bottom:"0px"},{queue:false,duration:300});
			return false;
		},
		function(){
			var obj = $(this);
				obj.find('.over').stop(false, true).fadeOut(300);
				obj.find('.details').stop(false, true).animate({bottom:"-62px"},{queue:false,duration:300});
			return false;
		}
	);

});

function addOnFocusToA(){
	var as = document.getElementsByTagName('a');
	
	for(var i  =0 ; i < as.length ; i++){
		if (window.addEventListener) { // Mozilla, Netscape, Firefox
			as[i].addEventListener('focus', function(){
				if (this.blur) 
					this.blur()
			}, false);
		}else{
			as[i].attachEvent('focus', function(){
				if (this.blur) 
					this.blur()
			}, false);
		}
	}
}

