
var fhTimer=fhClasse.creer({initialise:function(param){if(param['fonction'])this.fonction=param['fonction'];if(param['duree'])this.duree=param['duree'];if(param['intervalle'])this.intervalle=param['intervalle'];if(!param['attendre'])this.demarrer();this.arreter_=false;},fonction:function(){},duree:500,intervalle:false,demarrer:function(){this.arreter_=false;this.demarrer_();},demarrer_:function(){var o=this;if(this.intervalle){if(!this.arreter_){this.timer=setTimeout(function(){o.fonction();o.demarrer_();},this.duree);}}else{this.timer=setTimeout(this.fonction.attacher(this),this.duree);}},arreter:function(){if(this.intervalle){clearTimeout(this.timer);}else{clearTimeout(this.timer);}
this.arreter_=true;}});