$(document).ready(function() {
   $("a[rel='external']").addClass('external').attr("target","_blank");
   $("ul#mozaique_prog li a").hover(function(){
        lib = $(this).attr("title");
        
        $("span#info").html(lib);
   }, 
      function () {
        $("span#info").html('');
      });
  /* $('.nom_artiste a').hover(function(){
			id_conteneur = $(this).parent().parent().attr('id');
			//alert(id_conteneur);
			$("#"+id_conteneur).parent().css('background','#f00');
									  },
		function(){
			$("#"+id_conteneur).parent().css('background','transparent');
		});*/
   $('.nom_artiste').hover(function(){
			liste_class = '';
			id_conteneur = $(this).attr('id');
			
			//alert(id_conteneur);
			//$("#"+id_conteneur).css('background','#ffe4bf');
			$("#"+id_conteneur).parent().addClass('survol_artiste');
			//alert( $(this).next().attr('class') );
			$(this).next().css({'background' : '#ffe4bf','color':'#494037'});
									  },
		function(){
			//$("#"+id_conteneur).css('background','transparent');//parent()
			$(this).next().css({'background':'#494037','color':'#ffe4bf'});
			$("#"+id_conteneur).parent().removeClass('survol_artiste');
		});
   /*tabs*/
   var myFile = document.location.toString();
   if (myFile.match('#')) { // the URL contains an anchor
     // click the navigation item corresponding to the anchor
     var myAnchor = myFile.split('#')[1];
   $("#tabs ul").idTabs(myAnchor);
   } else {
      
     $("#tabs ul").idTabs("telechargements");
   }
   $("a.lien_vignette_produit > img").hover(function(){
        src_vignette = $(this).attr('src');
        var reg=new RegExp("(vign)", "g");
        src_vignette_survol = src_vignette.replace(reg,"$1-hover");
         //alert("Vign : "+src_vignette+"\n"+src_vignette_survol);
         $(this).attr("src",src_vignette_survol);
   }, 
      function () {
        //$("span#info").html('');
        $(this).attr("src",src_vignette);
      });
   //var newYear = new Date();
date_festival = new Date(2009, 10, 10,13, 45, 0);
//date_festival = new Date(2009, 10, 09,23, 29, 0);
/*$.countdown.setDefaults($.countdown.regional['fr']);
$('#compte_a_rebours').countdown({until: date_festival,onExpiry: festivalGo});
function festivalGo(){
   alert("Le festival des Rendez-vous Soniques vient de d\351buter avec le concert du Quartier Enchantant ! Vous nous rejoignez ?");
   $("#conteneur_car").slideUp();
}*/


});
