$.preloadImages.addA(['images/textePlus02.png', 'images/texteMoins02.png', 'images/mail02.png', 'images/imprimer02.png', 'images/favoris02.png', 'images/haut02.png', 'images/ok02.jpg']);$(function() {   var q = $('#qRecherche');   var boutonOK = $('#lancerRecherche');   if (q.length == 0 || boutonOK.length == 0) {      return;   }   var texteVide = q.attr('title');   q.removeAttr('title');   if (q.val() == '' || q.val() == texteVide) {      q.val(texteVide);      if (!q.hasClass('vide')) {         q.addClass("vide");      }   }   else       if (q.hasClass('vide')) {         q.removeClass('vide');      }   boutonOK.click(function() {      if (q.val() == texteVide) {         q.val('');      }      $('#formRecherche').submit();   });   q.focus(function() {      if (this.value == texteVide) {         this.value = '';         if (this.className.indexOf('vide') != -1) {            this.className = this.className.replace(/vide/gi, '');         }      }   });   q.blur(function() {      if (this.value == '') {         if (!$(this).hasClass('vide')) {            $(this).addClass("vide");         }         this.value = texteVide;      }   });});