$(document).ready(function() {
   $("#not_nested").hover(function(){
     $("#banner ul.first_level li.active a:first").animate({opacity: 0.3}, 500 );
   },function(){
     $("#banner ul.first_level li.active a:first").animate({opacity: 1}, 500 );
     });
     
   $("#contents ul.first_level").hover(function(){
     $("#contents ul.first_level li.active a:first").animate({opacity: 0.3}, 500 );
   },function(){
     $("#contents ul.first_level li.active a:first").animate({opacity: 1}, 500 );
     });
   
   $("#rightbar ul.first_level").hover(function(){
     $("#rightbar ul.first_level li.active a:first").animate({color: "#93AE01"}, 300 );
   },function(){
     $("#rightbar ul.first_level li.active a:first").animate({color: "#ffffff"}, 300 );
     });
  
   $(".boxshorcuttools ul").hover(function(){
     $(".boxshorcuttools ul li.active a:first").animate({color: "#93AE01"}, 300 );
   },function(){
     $(".boxshorcuttools ul li.active a:first").animate({color: "#ffffff"}, 300 );
   }); 
   
     
    var iconPdf = $("table").find("img[alt=pdf]");
    iconPdf.attr("src","/images/iconpdf.png");
    
    var listeinput = $("div.guestbook").find(".row input"), 
        firstinput = listeinput.eq(0),
        addvalue = function(elt){   
          elt.attr("value","titre"); 
        };      
    addvalue(firstinput);
    
    var listerow = $("div.guestbook").find(".row"), 
        firstrow = listerow.eq(0),
        hiderow = function(elt){   
          elt.hide(); 
        };
    hiderow(firstrow);
    
    $("#eventretour a").attr("href","javascript:history.back()");
    
});  
