var BOM_Lexique=Class.create();BOM_Lexique.prototype={vignette:undefined,myHTML:{head:undefined,corps:undefined,footer:undefined,lien:undefined,close:undefined},eventQueue:null,initialize:function(elm){if(!arguments.callee.singleton){if(!document.createElement)return;var conteneur=!!arguments.length?$(arguments[0]):document.body;var listeLiens=$A($(conteneur).getElementsByClassName('termeLexique'));if(listeLiens.length==0)return;BOM_Lexique.prototype.myHTML.head=Builder.node('a',{id:'BOM-Lexique-nameHead',href:'#'});BOM_Lexique.prototype.myHTML.corps=Builder.node('div',{id:'BOM-Lexique-def'});BOM_Lexique.prototype.myHTML.footer=Builder.node('strong',{id:'BOM-Lexique-nameFooter'});BOM_Lexique.prototype.myHTML.lien=Builder.node('a',{id:'BOM-Lexique-link',href:'#'},['> Voir la définition ',BOM_Lexique.prototype.myHTML.footer,' et les termes associés']);BOM_Lexique.prototype.myHTML.close=Builder.node('a',{id:'BOM-Lexique-close',href:'#'},'X');BOM_Lexique.prototype.myHTML.logo=Builder.node('span',{id:'BOM-Lexique-logo'});BOM_Lexique.prototype.myHTML.title=Builder.node('span',{id:'BOM-Lexique-strong'},'Définition : ');BOM_Lexique.prototype.vignette=Builder.node('div',{id:'BOM-Lexique',style:'display: none'},Builder.node('table',[Builder.node('thead',Builder.node('tr',Builder.node('th',[BOM_Lexique.prototype.myHTML.close,BOM_Lexique.prototype.myHTML.logo,'Lexique Tom\'s Hardware']))),Builder.node('tbody',Builder.node('tr',Builder.node('td',[BOM_Lexique.prototype.myHTML.title,BOM_Lexique.prototype.myHTML.head,BOM_Lexique.prototype.myHTML.corps,BOM_Lexique.prototype.myHTML.lien])))]));document.body.appendChild(this.vignette);arguments.callee.singleton=true;listeLiens.each(function(link){new BOM_Lexique(link)})}else{this.titre=elm.firstChild.nodeValue;this.contenu=elm.getElementsBySelector('span')[0].innerHTML;this.lien=elm.href;elm.href = 'javascript:void(0);';elm.title='';Event.observe(elm,'mouseover',this._showMeAt.bindAsEventListener(this,5));Event.observe(this.vignette,'mouseover',this._showMe.bindAsEventListener(this));Event.observe(elm,'mouseout',this._hideMe.bindAsEventListener(this,0));Event.observe(this.vignette,'mouseout',this._hideMe.bindAsEventListener(this,0));Event.observe(this.myHTML.close,'click',this._hideMe.bindAsEventListener(this))}},_showMeAt:function(e,delay){this.myHTML.head.innerHTML=this.titre;this.myHTML.footer.innerHTML=this.titre;this.myHTML.corps.innerHTML=this.contenu;this.myHTML.lien.href=this.lien;this.myHTML.head.href=this.lien;this.vignette.style.top=Event.pointerY(e)+5+'px';this.vignette.style.left=Event.pointerX(e)+5+'px';BOM_Lexique.prototype.eventQueue = setTimeout(function() { $('BOM-Lexique').show();}, delay*100);},_showMe:function(){clearTimeout(this.eventQueue);this.vignette.show()},_hideMe:function(e,delay){if(arguments.length==2&&typeof arguments[1]=='number'){clearTimeout(this.eventQueue);BOM_Lexique.prototype.eventQueue=setTimeout(function(){$('BOM-Lexique').hide()},delay*0)}else{this.vignette.hide();Event.stop(e)}}}