 ///////////////////////////////////////////////
 //       Copyright (c) 2006 MaiNada.Net      //
 //       http://www.mainada.net/inputdraw/   //
 //    					                      //
 //		 inEvo: http://www.inEvo.pt           //
 //					                          //
 //		 Autor: Tiago Cardoso	              //
 ///////////////////////////////////////////////
var mainada=new Object();var inputdraw_instancies=new Array();var inputdraw_objects=new Array();mainada.BrowserUtil=new Object();if(Array.prototype.push==null){Array.prototype.push=function(_1){this[this.length]=_1;return this.length;};}mainada.InputDraw=function(_2,_3,_4){if(!document.getElementById){return;}this.attributes=new Object();var _5={};_5.menu="false";_5.swliveconnect="true";_5.allowscriptaccess="always";if(!_4["color"]){_5.wmode="transparent";}else{_5.bgcolor=_4["color"];}var _6={};_6.id=_3+"_swf"+Math.floor(Math.random()*100000);if(_4["id"]){_6.id=_4["id"]+"_"+_6.id;}_6.name=_6.id;this.setAttribute("swf_id",_6.id);var _7={};_7.self_id=_6.id;if(_4["id"]){_7.id=_4["id"];this.setAttribute("id",_4["id"]);}if(_4["src_id"]){_7.src_id=_4["src_id"];}else{if(_4["src_svg"]){_7.src_svg=_4["src_svg"].replace(/"/g,"'");}else{if(_4["src"]){_7.src=_4["src"];}else{if(_4["id"]){_7.src_id=_4["id"];}}}}if(_4["animation"]){_7.animation=_4["animation"];}if(_4["stroke_style"]){_7.stroke_style=_4["stroke_style"];}if(_4["grid_style"]){_7.grid_style=_4["grid_style"];}if(_4["grid_geom"]){_7.grid_geom=_4["grid_geom"];}if(_4["background_image"]){_7.background_image=_4["background_image"];}if(_4["form_integration"]){_7.form_integration=_4["form_integration"];}if(_4["undo"]){_7.undo=_4["undo"];}if(_4["clean"]){_7.clean=_4["clean"];}if(_4["tools_color"]){_7.color=_4["tools_color"];}if(_4["disable"]){_7.disable=_4["disable"];}if(_4["onpath"]){_7.onpath=_4["onpath"];}if(_4["onsvg"]){_7.onsvg=_4["onsvg"];}this.setAttribute("runing",false);this.setAttribute("swf",_2);this.setAttribute("place_id",_3);this.setAttribute("params",_5);this.setAttribute("flash_attributes",_6);this.setAttribute("flashvars",_7);this.setAttribute("width",_4["width"]);this.setAttribute("height",_4["height"]);inputdraw_instancies.push(this);if(!_InputDrawSetOnLoadChecked){swfobject.addLoadEvent(mainada.BrowserUtil.loadInputDraw);_InputDrawSetOnLoadChecked=true;}};mainada.InputDraw.prototype={setAttribute:function(_8,_9){this.attributes[_8]=_9;},getAttribute:function(_a){return this.attributes[_a];},Undo:function(){this.attributes["swfobject"].Undo();},Clean:function(){this.attributes["swfobject"].Clean();},OnSvg:function(_b){if(this.attributes["runing"]){this.attributes["swfobject"].OnSvg(_b);}else{var _c=this.getAttribute("flashvars");_c.onsvg=_b;this.setAttribute("flashvars",_c);}},OnPath:function(_d){if(this.attributes["runing"]){this.attributes["swfobject"].OnPath(_d);}else{var _e=this.getAttribute("flashvars");_e.onpath=_d;this.setAttribute("flashvars",_e);}},AddSvg:function(_f){if(this.attributes["runing"]){this.attributes["swfobject"].AddSvg(_f);}else{var _10=this.getAttribute("flashvars");_10.src_svg=_f;this.setAttribute("flashvars",_10);}},AddSvgAnimated:function(svg,_12){this.attributes["swfobject"].AddSvgAnimated(svg,_12);},AddPath:function(_13){this.attributes["swfobject"].AddPath(_13);},SetStyle:function(_14){this.attributes["swfobject"].SetStyle(_14);}};var inputdrw=0;mainada.BrowserUtil.loadInputDraw=function(){if(inputdrw!=0){inputdraw_objects[inputdrw.getAttribute("swf_id")]=document.getElementById(inputdrw.getAttribute("swf_id"));inputdrw.setAttribute("swfobject",inputdraw_objects[inputdrw.getAttribute("swf_id")]);inputdrw.setAttribute("runing",true);if(inputdrw.getAttribute("id")){inputdraw_objects[inputdrw.getAttribute("id")]=document.getElementById(inputdrw.getAttribute("id"));}inputdraw_instancies.splice(inputdraw_instancies.length-1,1);}if(inputdraw_instancies.length>0){var x=inputdraw_instancies.length-1;inputdrw=inputdraw_instancies[x];swfobject.embedSWF(inputdrw.getAttribute("swf"),inputdrw.getAttribute("place_id"),inputdrw.getAttribute("width"),inputdrw.getAttribute("height"),"8.0.23",false,inputdrw.getAttribute("flashvars"),inputdrw.getAttribute("params"),inputdrw.getAttribute("flash_attributes"));swfobject.addDomLoadEvent(mainada.BrowserUtil.loadInputDraw);}};var _InputDrawSetOnLoadChecked=null;var InputDraw=mainada.InputDraw;var InputDrawLoad=mainada.BrowserUtil.loadsInputDraw;