Wtf.ux.WtfAlert=function(A){Wtf.ux.WtfAlert.superclass.constructor.call(this,A)};Wtf.extend(Wtf.ux.WtfAlert,Wtf.Component,{width:300,height:20,imgWidth:4,imgHeight:4,initialized:false,imgObj:null,zoomLevel:0.11,initComponent:function(){Wtf.ux.WtfAlert.superclass.initComponent.call(this)},onRender:function(){this.elDom=Wtf.get(this.renderTo).createChild({tag:"li",cls:"wtfalert"});this.image=Wtf.get(this.elDom.dom.appendChild(document.createElement("img")));this.label=Wtf.get(this.elDom.dom.appendChild(document.createElement("span")));this.labelShadow=Wtf.get(this.elDom.dom.appendChild(document.createElement("span")));this.image.dom.src=this.imgSrc;this.image.dom.alt=this.caption;this.imgX=Math.ceil(this.width/2-this.imgWidth/2);this.imgY=Math.ceil(this.width/2-this.imgHeight/2-15);this.image.setXY([this.image.getX(),this.image.getY()]);this.shadow=new Wtf.Shadow({offset:5});this.shadow.show(this.image);this.label.dom.innerHTML=this.caption;this.label.dom.className="label";this.labelShadow.dom.innerHTML=this.caption;this.labelShadow.dom.className="labelShadow";this.elDom.addListener("mouseover",this.onHover,this);this.elDom.addListener("mouseout",this.onOut,this);this.imgObj=this.image;this.elDom.dom.style.display="none";this.docID=document.getElementById(this.elDom.id)},onHover:function(C,B,A){this.docID.style.background="url(images/alertbackground.png) no-repeat 0 0";this.docID.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/alertbackground.png', sizingMethod='crop')"},onOut:function(C,B,A){this.docID.style.background="";this.docID.style.filter=""},onClick:function(C,B,A){C.preventDefault()},addData:function(C,B,D,A){this.elDom.dom.style.display="block";this.image.dom.src=C;this.image.dom.alt=B;this.id=D;this.label.dom.innerHTML=B;this.labelShadow.dom.innerHTML=B;this.caption=B},removeButton:function(){this.elDom.dom.parentNode.removeChild(this.elDom.dom)},hideButton:function(){this.elDom.dom.style.display="none"}});Wtf.reg("wtfalert",Wtf.ux.WtfAlert)