function PanelOnglet(){var a=document.createElement("div");a.id="pOnglet";var b=document.createElement("ul");a.appendChild(b);this.objPanel=a}PanelOnglet.prototype={'objPanel':null,'attachment':null,'lstOnglet':new Array(),'cOnglet':null,'addOnglet':function(c,d){var e=document.createElement("li");e.innerHTML=c;e.className="current";e.onclick=function(a,b){if(this.cOnglet!=null)this.cOnglet.className="";b.className="current";this.cOnglet=b;a()}.bind(this,d,e);if(this.cOnglet!=null)this.cOnglet.className="";this.cOnglet=e;this.objPanel.firstChild.appendChild(e)},'removeOnglet':function(a){var b=this.objPanel.firstChild.childNodes;for(var i=0;i<b.length;i++){if(b[i].innerHTML==a){b[i].parentNode.removeChild(b[i]);break}}}};PanelOnglet.extend(Panel);