$(document).ready(function() {
/*
/*effect on search form*/
$('#primary-menu > li').each(function(indice){
    $ul = $(this).children('ul');
    $(this).remove('ul');
    $(this).html('<span>'+$(this).html()+'</span>');
    $(this).append($ul);
    if(indice == ($('#primary-menu > li').size()-1)){
        Cufon.now();
    };
});



 $("li.clicli").mouseover(function () {
   $(this).children(".picture").fadeTo('slow', 0.6, function() {
      // Animation complete.
    });
  });

$("li.clicli").mouseout(function () {
 $(this).children(".picture").fadeTo('slow', 1, function() {
      // Animation complete.
    });
  });

$('div.rech form').submit(function(e) {
  if ($(this).find('.input input').val() == '' ||$(this).find('.input input').val() == 'Rechercher') e.preventDefault();
});


$('div.search div.chapo form').submit(function(e) {
  if ($(this).find('#keywords_input').val() == '' ||$(this).find('#keywords_input').val() == 'Rechercher') e.preventDefault();
});
$('div.fancybox').each(function(e) {
  $(this).fancybox();
  $(this).click();
});



});
