 var Icone = Class.create(); Icone.prototype = { initialize: function(ToolIcones,id,w,h,posBackGrdLeft,posBackGrdTop,posToolBLeft,posToolBTop,toolT,isIndependentIcon) { this.A0='images/icons_enabled.gif'; this.A1=false; this.A2=ToolIcones; this.A3=toolT; this.A4='icon_'+id; this.A5=isIndependentIcon; var html = '<div id ="'+this.A4+'" style="position: absolute;top:'+posToolBTop+'px;left:'+posToolBLeft+'px;width:'+w+'px;height:'+h+'px;overflow:hidden">'+ '<div style="position:absolute;left:'+posBackGrdLeft+'px;top:'+posBackGrdTop+'px;">'+ '<img alt="'+toolT+'" src="'+this.A0+'" title="'+toolT+'" />'+ '</div>'+ '</div>'; new Insertion.Bottom($(this.A2.A3),html); this.A6=this.A10.bindAsEventListener(this); Event.observe($(this.A4),'click',this.A6); }, A8:function() { this.A1=true; $(this.A4).addClassName("iconeActive"); }, A9:function() { this.A1=false; $(this.A4).removeClassName("iconeActive"); }, A10:function() { if(!this.A5){ if(this.A1){ this.A9(); this.A2.A9(); } else { this.A2.A7(); this.A8(); this.A2.A8(this.A3); } } else this.A2.A8(this.A3); } }
