// ©2009 Max Barel a_x@ac-mb.info

$(function(){$('#entete h1 a').each(function(){var txt=this.text||this.innerText,self=$(this).empty(),spans=[];for(var i=0;i<txt.length;i++)spans.push($('<span/>').append(txt.charAt(i)).appendTo(self));$('span',self).width((100.0/txt.length-.1)+'%');});var menu_gene=$("#menu_gene").delay(function(){if(!menu_gene.over)menu_gene.stop().animate({opacity:.2});},1000);$('#entete').hover(function(){menu_gene.stop().animate({opacity:1.0},'fast');},function(){menu_gene.stop().animate({opacity:.2});}).mousemove(function(){menu_gene.over=true;$(this).unbind('mousemove');});});$.fn.delay_init=function(t_def){return this.each(function(){this.t_def=t_def});};$.fn.delay=function(f,t){return this.each(function(){var t_=t||this.t_def||100;clearTimeout(this.t_id);this.t_id=setTimeout(f,t_);});};$.fn.delay_clear=function(){return this.each(function(){clearTimeout(this.t_id);});};$.fn.delay_anim=function(prop,speed,easing,callback){return this.each(function(){var t=this.t_def||100,self=$(this);clearTimeout(this.t_id);this.t_id=setTimeout(function(){self.animate(prop,speed,easing,callback)},t);});};
