window.timer={};function start(a,b){if(b&&!ifStarted(b)){return}window.timer[a]={start:new Date().getTime()}}function end(a,b){if(b&&!ifStarted(b)){return}if(!window.timer[a]){console.log("Unknown subject: "+a);return}window.timer[a].end=new Date().getTime()}function increment(b,a){if(!window.timer[b]){window.timer[b]={incremented:true,total:0}}window.timer[b].total+=a}function total(b){if(!window.timer[b]){console.log("Unknown subject: "+b);return}var a=window.timer[b];if(a.incremented){return a.total}else{if(a){return a.end-a.start}else{return null}}}function ifStarted(c){for(var b in window.timer){var a=window.timer[b];if(b==c&&a.start!==undefined&&a.end===undefined){return true}}return false}function report(){for(var b in window.timer){var a=total(b);if(a!==null){console.log(b+": "+a+"ms")}}}(function(){window.svgns="http://www.w3.org/2000/svg";window.xlinkns="http://www.w3.org/1999/xlink";svgnsFake="urn:__fake__internal__namespace";var b=false,i=false,e=false,s=false,u=false,H=false,o=false;function M(){var aa=navigator,W=aa.userAgent,Z=aa.appVersion,Y=parseFloat(Z);if(W.indexOf("Opera")>=0){b=Y}var X=Math.max(Z.indexOf("WebKit"),Z.indexOf("Safari"),0);if(X){i=parseFloat(Z.split("Version/")[1])||(parseFloat(Z.substr(X+7))>419.3)?3:2}if(W.indexOf("AdobeAIR")>=0){u=1}if(Z.indexOf("Konqueror")>=0||i){H=Y}if(W.indexOf("Gecko")>=0&&!H){e=Y}if(e){o=parseFloat(W.split("Firefox/")[1])||undefined}if(document.all&&!b){s=parseFloat(Z.split("MSIE ")[1])||undefined}if(document.documentMode){isStandardsMode=(document.documentMode>5)}else{isStandardsMode=(document.compatMode=="CSS1Compat")}}M();function m(){var X=false;var W=document.getElementsByTagName("script");for(var Y=0;Y<W.length;Y++){if(/svg(?:\-uncompressed)?\.js/.test(W[Y].src)){var Z=W[Y].getAttribute("data-debug");X=(Z==="true"||Z===true)?true:false}}return X}var D=m();if(typeof console=="undefined"||!console.log){var k=[];console={};if(!D){console.log=function(){}}else{console.log=function(ab){var W=null;var Y=false;try{W=document.getElementsByTagName("body")[0]}catch(aa){Y=true}if(s){try{document.documentElement.doScroll("left")}catch(aa){Y=true}}if(Y){k.push(ab);return}var Z;while(k.length){var X=k.shift();Z=document.createElement("p");Z.appendChild(document.createTextNode(X));W.appendChild(Z)}Z=document.createElement("p");Z.appendChild(document.createTextNode(ab));W.appendChild(Z)};if(s){function q(){while(k.length){var W=k.shift();p=document.createElement("p");p.appendChild(document.createTextNode(W));document.body.appendChild(p)}}var c=window.setInterval(function(){if(document.readyState=="complete"){q();window.clearTimeout(c)}},50)}}}function v(Y,W){for(var X in W){Y.prototype[X]=W[X]}}function S(Y,W){for(var X in W){Y[X]=W[X]}}function T(ah,Z,ai,Y){if(!Z){Z=ah.documentElement}if(typeof XPathEvaluator!="undefined"){var ae=new XPathEvaluator();var ab=ah.createNSResolver(Z);var ak=ae.evaluate(ai,Z,ab,0,null);var aj=I(),ag;while(ag=ak.iterateNext()){aj.push(ag)}return aj}else{ah.setProperty("SelectionLanguage","XPath");if(Y){var W="";var X={};for(var ad=0;ad<Y.length;ad++){var aa=Y[ad];var af=Y["_"+aa];if(!X["_"+aa]){if(af=="xmlns"){W+='xmlns="'+aa+'" '}else{W+="xmlns:"+af+'="'+aa+'" '}X["_"+aa]=aa}}ah.setProperty("SelectionNamespaces",W)}var aj=Z.selectNodes(ai);if(aj===null||typeof aj=="undefined"){aj=I()}var ac=I();for(var ad=0;ad<aj.length;ad++){ac.push(aj[ad])}return ac}}function N(aa,Z){if(Z===undefined){Z=false}var ae;if(typeof DOMParser!="undefined"){var W=new DOMParser();try{ae=W.parseFromString(aa,"application/xml")}catch(ac){throw ac}var ad=ae.documentElement;if(ad.nodeName=="parsererror"){throw new Error("There is a bug in your SVG: "+(new XMLSerializer().serializeToString(ad)))}}else{var X=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0"];var ae;for(var Y=0;Y<X.length;Y++){try{ae=new ActiveXObject(X[Y]);if(ae){break}}catch(ac){}}if(!ae){throw new Error("Unable to instantiate XML parser")}try{ae.preserveWhiteSpace=Z;ae.resolveExternals=false;ae.validateOnParse=false;ae.setProperty("ProhibitDTD",false);ae.async="false";var ab=ae.loadXML(aa);if(!ab||ae.parseError.errorCode!==0){throw new Error(ae.parseError.reason)}}catch(ac){console.log(ac.message);throw new Error("Unable to parse SVG: "+ac.message)}}return ae}function P(W,X){if(typeof X=="string"){X=W[X]}return function(){return X.apply(W,(arguments.length)?arguments:[])}}var w=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];function a(){if(typeof XMLHttpRequest!="undefined"){return new XMLHttpRequest()}else{if(ActiveXObject){var Y=null;var W;for(W=0;W<w.length&&!Y;++W){try{Y=new ActiveXObject(w[W])}catch(X){}}if(!Y){throw new Error("XMLHttpRequest object not available on this platform")}return Y}}}var R=0;function A(){return"_"+R++}function z(){this._setXDomain();this.libraryPath=this._getLibraryPath();this.htcFilename=this._getHTCFilename();if(s){K._prepareBehavior(this.libraryPath,this.htcFilename)}this._interceptOnloadListeners();this._initDOMContentLoaded()}v(z,{libraryPath:"./",config:null,pageLoaded:false,handlers:[],totalLoaded:0,_guidLookup:[],_loadListeners:[],_removedNodes:[],addOnLoad:function(X,Z,W){if(Z){var Y=W.frameElement;if(Z&&this.getHandlerType()=="flash"){X.apply(W)}else{if(Y._svgHandler){Y._svgHandler._onObjectLoad(X,W)}else{Y._svgWindow=W;Y._svgFunc=X}}}else{this._loadListeners.push(X)}},getHandlerType:function(){if(this.renderer==K){return"flash"}else{if(this.renderer==h){return"native"}}},appendChild:function(ab,Z){if(ab.nodeName.toLowerCase()=="object"&&ab.getAttribute("type")=="image/svg+xml"){this.totalSVG++;this._svgObjects.push(ab);if(this.getHandlerType()=="native"){Z.appendChild(ab)}var aa=ab;if(this.getHandlerType()=="flash"){if(ab.onload){ab.addEventListener("load",ab.onload,false)}var ac=document._createElement("div");for(var Y=0;Y<ab.attributes.length;Y++){var W=ab.attributes[Y];if(!W.nodeValue&&W.nodeValue!=="true"){continue}ac.setAttribute(W.nodeName,W.nodeValue)}Z.appendChild(ac);ac._listeners=ab._listeners;aa=ac}var X=this._processSVGObject(aa);ab._objID=X}},removeChild:function(aa,ai){if(aa.nodeName.toLowerCase()=="object"||aa.nodeName.toLowerCase()=="embed"){this.totalSVG=this.totalSVG==0?0:this.totalSVG-1;this.totalLoaded=this.totalLoaded==0?0:this.totalLoaded-1;var ae=aa.getAttribute("id");var af=this.handlers[ae];var W=[];for(var ad=0;ad<this.handlers.length;ad++){var X=this.handlers[ad];if(X!=af){W[X.id]=X;W.push(X)}}this.handlers=W;if(this.getHandlerType()=="flash"&&af.document&&af.document.defaultView){var ac=af.document.defaultView;for(var ad=0;ad<ac._intervalIDs.length;ad++){ac.clearInterval(ac._intervalIDs[ad])}for(var ad=0;ad<ac._timeoutIDs.length;ad++){ac.clearTimeout(ac._timeoutIDs[ad])}for(var ad=0;ad<af._keyboardListeners.length;ad++){var ab=af._keyboardListeners[ad];if(s){document.detachEvent("onkeydown",ab)}else{document.removeEventListener("keydown",ab,true);document.removeEventListener("keydown",ab,false)}}}for(var ad=0;ad<svgweb._svgObjects.length;ad++){if(svgweb._svgObjects[ad]._objID===ae){svgweb._svgObjects.splice(ad,1);break}}aa.parentNode.removeChild(aa);if(this.getHandlerType()=="flash"){var Y=document.getElementById("__htc_container");if(Y){for(var ad=0;ad<Y.childNodes.length;ad++){var Z=Y.childNodes[ad];if(typeof Z.ownerDocument!="undefined"&&Z.ownerDocument==af._svgObject.document){if(typeof Z._fakeNode!="undefined"&&typeof Z._fakeNode._htcNode!="undefined"){Z._fakeNode._htcNode=null}Z._fakeNode=null;Z._handler=null;Y.removeChild(Z)}}}for(var ah in svgweb._guidLookup){var Z=svgweb._guidLookup[ah];if(Z._fake&&Z.ownerDocument===af.document){delete svgweb._guidLookup[ah]}}af._finishedCallback=null;af.flash.contentDocument=null;af.flash=null;af._xml=null;if(af.window){af.window._scope=null;af.window=null}var ag=af._svgObject;var aj=ag.document;aj._nodeById=null;aj._xml=null;aj.defaultView=null;aj.documentElement=null;aj.rootElement=null;aj.defaultView=null;aj=null;ag._svgNode=null;ag._handler=null;if(ac){ac._setTimeout=null;ac.setTimeout=null;ac._setInterval=null;ac.setInterval=null}af._svgObject=null;ag=null;af=null;ac=null}}},_initDOMContentLoaded:function(){var Y=this;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){Y._saveWindowOnload();Y._onDOMContentLoaded()},false)}else{document.write("<script id=__ie__svg__onload defer src=javascript:void(0)><\/script>");var X=document.getElementById("__ie__svg__onload");X.onreadystatechange=function(){if(this.readyState!="complete"&&window.onload){Y._saveWindowOnload()}else{if(this.readyState=="complete"){Y._onDOMContentLoaded()}}};var W=function(){if(window.onload){Y._saveWindowOnload();document.detachEvent("onreadystatechange",W)}};document.attachEvent("onreadystatechange",W)}},_setXDomain:function(){var W=document.getElementsByTagName("script");for(var Z=0;Z<W.length;Z++){if(/svg(?:\-uncompressed)?\.js/.test(W[Z].src)&&/^https?/.test(W[Z].src)){var Y=W[Z].src.replace(/svg(?:\-uncompressed)?\.js/,"");var aa=Y.match(/https?\:\/\/[^\/]*/)[0];var X=window.location.protocol.replace(/:|\//g,"")+"://"+window.location.host;if(aa!=X){this.xDomainURL=Y;this._isXDomain=true;return}}}this._isXDomain=false},_getLibraryPath:function(){var Y="./";var W=document.getElementsByTagName("script");for(var X=0;X<W.length;X++){if(/svg(?:\-uncompressed)?\.js/.test(W[X].src)&&W[X].getAttribute("data-path")){Y=W[X].getAttribute("data-path");break}}if(Y.charAt(Y.length-1)!="/"){Y+="/"}return Y},_getHTCFilename:function(){var X="svg.htc";var Z=window.location.toString();if(Z.indexOf("svg.htcFilename=svg-htc.php")!=-1){return"svg-htc.php"}else{if(Z.indexOf("svg.htcFilename=svg-htc.jsp")!=-1){return"svg-htc.jsp"}else{if(Z.indexOf("svg.htcFilename=svg-htc.asp")!=-1){return"svg-htc.asp"}}}var W=document.getElementsByTagName("script");for(var Y=0;Y<W.length;Y++){if(/svg(?:\-uncompressed)?\.js/.test(W[Y].src)&&W[Y].getAttribute("data-htc-filename")){X=W[Y].getAttribute("data-htc-filename");break}}return X},_onDOMContentLoaded:function(){if(arguments.callee.done){return}arguments.callee.done=true;this._startTime=new Date().getTime();var Z=document.getElementById("__ie__svg__onload");if(Z){Z.parentNode.removeChild(Z);Z.onreadystatechange=null;Z=null}this.config=new j();if(s){this._watchUnload()}this._svgScripts=this._getSVGScripts();this._svgObjects=this._getSVGObjects();this.totalSVG=this._svgScripts.length+this._svgObjects.length;this._cleanupSVGObjects();this._handleHTMLTitleBug();if(!this.config.supported){this._displayNotSupported(this.config.reason);this._fireOnLoad();return}this.renderer;if(this.config.use=="flash"){this.renderer=K}else{if(this.config.use=="native"){this.renderer=h}}this.renderer._patchBrowserObjects(window,document);if(this.totalSVG===0){this._fireOnLoad();return}var W=this;for(var Y=0;Y<this._svgScripts.length;Y++){this._processSVGScript(this._svgScripts[Y])}for(var Y=0;Y<this._svgObjects.length;Y++){var X=this._processSVGObject(this._svgObjects[Y]);this._svgObjects[Y]._objID=X}if(this.config.use=="flash"){this._createResizeListener();this._attachResizeListener()}},_createResizeListener:function(){var W=this;if(s){this._resizeFunc=(function(X){return function(){X._onWindowResize()}})(this)}else{this._resizeFunc=P(this,function(){this._onWindowResize()})}},_attachResizeListener:function(){if(s){window.attachEvent("onresize",this._resizeFunc)}else{window.addEventListener("resize",this._resizeFunc,false)}},_detachResizeListener:function(){if(s){window.detachEvent("onresize",this._resizeFunc)}else{window.removeEventListener("resize",this._resizeFunc,false)}},_onWindowResize:function(){if(!this.pageLoaded){return}this._detachResizeListener();for(var X=0;X<this.handlers.length;X++){var Y=this.handlers[X];var W=Y._inserter._determineSize();Y.flash.width=W.width;Y.flash.height=W.height;Y.sendToFlash("jsHandleResize",[W.pixelsWidth,W.pixelsHeight])}this._attachResizeListener()},_getSVGScripts:function(){var W=document.getElementsByTagName("script");var Y=[];for(var X=0;X<W.length;X++){if(W[X].type=="image/svg+xml"){Y.push(W[X])}}return Y},_getSVGObjects:function(){var Y=document.getElementsByTagName("object");var X=[];for(var W=0;W<Y.length;W++){if(Y[W].getAttribute("classid")=="image/svg+xml"){X.push(Y[W])}else{if(Y[W].getAttribute("type")=="image/svg+xml"){X.push(Y[W])}}}return X},_displayNotSupported:function(ac){for(var Y=0;Y<this._svgObjects.length;Y++){var ab=this._svgObjects[Y];if(!ab.childNodes.length||(ab.childNodes.length==1&&ab.childNodes[0].nodeType==3&&/^[ ]*$/m.test(ab.childNodes[0].nodeValue))){var aa=document.createElement("span");aa.className="svg-noscript";aa.appendChild(document.createTextNode(ac));ab.parentNode.replaceChild(aa,ab)}}for(var Y=0;Y<this._svgScripts.length;Y++){var X=this._svgScripts[Y];var W=document.createElement("span");W.className="svg-noscript";var Z=X.nextSibling;while(Z&&Z.nodeType!=1){Z=Z.nextSibling}if(Z&&Z.nodeName.toLowerCase()=="noscript"){var ad=Z;W.innerHTML=ad.innerHTML}else{W.appendChild(document.createTextNode(ac))}X.parentNode.insertBefore(W,X)}},_fireOnLoad:function(){if(this.handlers.length<this._svgObjects.length){return}var W=true;for(var Y=0;Y<this.handlers.length;Y++){var Z=this.handlers[Y];if(!Z._loaded){W=false;break}}if(!W){return}this.pageLoaded=true;this._endTime=new Date().getTime();if(this._loadListeners.length){var X=this;window.setTimeout(function(){var ab=X._loadListeners;X._loadListeners=[];this.totalLoaded=0;for(var aa=0;aa<ab.length;aa++){try{ab[aa]()}catch(ac){console.log("Error while firing onload: "+(ac.message||ac))}}},1)}},_cleanSVG:function(an,W,ad){if(W){if(/\<\?xml/m.test(an)==false){an='<?xml version="1.0"?>\n'+an}if(an.indexOf(":svg ")==-1){if(/xmlns\=['"]http:\/\/www\.w3\.org\/2000\/svg['"]/.test(an)==false){an=an.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"')}}if(/xmlns:[^=]+=['"]http:\/\/www\.w3\.org\/1999\/xlink['"]/.test(an)==false){an=an.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')}}if(an.charAt(0)!="<"){an=an.replace(/\s*<\?xml/,"<?xml")}RegExp.lastIndex=0;var ah;var aj=/<!ENTITY\s+(\S+)\s+"([^"]*)"/g;while((ah=aj.exec(an))!=null){var ai=RegExp.$1;var al=RegExp.$2;an=an.replace("&"+ai+";",al)}if(ad){an=an.replace(/\>\s+\</gm,"><")}if(this.renderer==K){var ap=/<!\-\-/g;RegExp.lastIndex=0;ah=ap.exec(an);var aq=0;var ao=an;while(ah&&RegExp.lastMatch){var at=RegExp.rightContext.indexOf("-->")+3;var X="<!--"+RegExp.rightContext.substring(0,at);ao=ao.replace(X,"");ah=ap.exec(an);aq++}an=ao;an=an.replace(/<(svg:)?svg/,"<$1SVGROOT");an=an.replace(/<(svg:)?svg/g,"<$1NESTEDSVG");an=an.replace(/<(svg:)?SVGROOT/,"<$1svg");var ac=an.match(/<[a-zA-Z_-]*:?svg/)[0];var af=an.split(/<[a-zA-Z_-]*:?svg/);var ar=(af[1].indexOf("<![CDATA[")!=-1);if(ar){RegExp.lastIndex=0;var am=/<\!\[CDATA\[/g;ah=am.exec(af[1]);var Z=[];aq=0;while(ah&&RegExp.rightContext){var ae=am.lastIndex-"<![CDATA[".length;var Y=RegExp.rightContext;var au=am.lastIndex+Y.indexOf("]]>")+2;var ag=Y.substring(0,Y.indexOf("]]>"));ag="<![CDATA["+ag+"]]>";Z.push(ag);var ak=af[1].substring(0,ae);var aa=af[1].substring(au+1,af[1].length);af[1]=ak+"__SVG_CDATA_TOKEN_"+aq+aa;ah=am.exec(af[1]);aq++}}af[1]=af[1].replace(/>([^>]+)</g,"><__text>$1</__text><");if(ar){for(var aq=0;aq<Z.length;aq++){af[1]=af[1].replace("__SVG_CDATA_TOKEN_"+aq,Z[aq])}}an=af[0]+ac+af[1];for(var aq=2;aq<af.length;aq++){an=an+af[aq]}}an=an.replace(/<(svg:)?NESTEDSVG/g,"<$1svg");if(this.renderer==K){an=K._encodeFlashData(an);an=an.replace(/xmlns(\:[^=]*)?=['"]http\:\/\/www\.w3\.org\/2000\/svg['"]/g,"xmlns$1='"+svgnsFake+"'")}var ab=this._addTracking(an,ad);if(typeof XMLSerializer!="undefined"){an=(new XMLSerializer()).serializeToString(ab)}else{an=ab.xml}if(this.renderer==K){an=an.replace(new RegExp(svgnsFake,"g"),svgns)}return{svg:an,xml:ab}},_processSVGScript:function(af){var X=af.innerHTML;var Z=this._cleanSVG(X,true,true);var ac=Z.svg;var ab=Z.xml;var W=ab.documentElement.getAttribute("id");var aa=ab.documentElement.getAttribute("onload");if(aa){var ad='var evt = { target: document.getElementById("'+W+'") ,currentTarget: document.getElementById("'+W+'") ,preventDefault: function() { this.returnValue=false; }};';aa=new Function(ad+aa);var ae=(function(ai,aj){return function(){var al=svgweb.handlers[aj];var ak;if(svgweb.getHandlerType()=="flash"){ak=al.document.documentElement._getProxyNode()}else{ak=document.getElementById(aj)}return ai.apply(ak)}})(aa,W);this._loadListeners.push(ae)}var ah=this;var Y=function(aj,ai){af=null;ab=null;ah._handleDone(aj,ai)};var ag=new this.renderer({type:"script",svgID:W,xml:ab,svgString:ac,origSVG:X,scriptNode:af,finishedCallback:Y});this.handlers[W]=ag;this.handlers.push(ag)},_processSVGObject:function(Z){var W=Z.getAttribute("id");if(!W){Z.setAttribute("id",svgweb._generateID("__svg__random__","__object"));W=Z.getAttribute("id")}var X=(function(aa){return function(ac,ab){aa._handleDone(ac,ab)}})(this);var Y=new this.renderer({type:"object",objID:W,objNode:Z,finishedCallback:X});this.handlers[W]=Y;this.handlers.push(Y);return W},_generateID:function(W,X){if(!X){X=""}if(!W){W=""}return W+A()+X},_addTracking:function(X,Y){var Z=!Y;var ab=N(X,Z);var W=ab.documentElement;if(W&&!W.getAttribute("id")){W.setAttribute("id",this._generateID("__svg__random__",null))}if(this.getHandlerType()!="flash"){return ab}var ac=W;while(ac){if(ac.nodeType==C.ELEMENT_NODE){ac.setAttribute("__guid",A())}if(ac.nodeType==C.ELEMENT_NODE&&!ac.getAttribute("id")){ac.setAttribute("id",svgweb._generateID("__svg__random__",null))}var aa=ac.firstChild;if(aa){ac=aa;continue}while(ac){if(ac!=W){aa=ac.nextSibling;if(aa){ac=aa;break}}if(ac==W){ac=null}else{ac=ac.parentNode;if(ac.nodeType!=1||ac.nodeName.toUpperCase()=="SVG"){ac=null}}}}return ab},_handleDone:function(X,W){this.totalLoaded++;if(this.totalLoaded>=this.totalSVG){this._fireOnLoad()}},_handleHTMLTitleBug:function(){var W=document.getElementsByTagName("head")[0];var X=W.getElementsByTagName("title");if(X.length===0){X=document.createElement("title");W.appendChild(X)}},_fireFlashError:function(W){},_exportID:function(W){W.__defineGetter__("id",function(){return W.getAttribute("id")});W.__defineSetter__("id",function(X){return W.setAttribute("id",X)})},_watchUnload:function(){window.attachEvent("onunload",function(W){window.detachEvent("onunload",arguments.callee);svgweb._fireUnload()})},_fireUnload:function(){if(!s){return}for(var X=0;X<svgweb.handlers.length;X++){if(svgweb.handlers[X].type=="object"){var aa=svgweb.handlers[X].flash;if(aa.parentNode){svgweb.removeChild(aa,aa.parentNode)}}else{svgweb.handlers[X].document.documentElement=null}}var W=document.getElementById("__htc_container");if(W){for(var X=0;X<W.childNodes.length;X++){var ab=W.childNodes[X];if(ab.nodeType==1&&ab.namespaceURI==svgns){ab.detachEvent("onpropertychange",ab._fakeNode.style._changeListener);ab.style.item=null;ab.style.setProperty=null;ab.style.getPropertyValue=null}if(ab._fakeNode){ab._fakeNode._htcNode=null}ab._fakeNode=null;ab._handler=null}W.parentNode.removeChild(W);W=null}for(var X=0;X<svgweb.handlers.length;X++){var Y=svgweb.handlers[X];Y.flash=null}svgweb.handlers=null;for(var X=0;X<svgweb._removedNodes.length;X++){var Z=svgweb._removedNodes[X];if(Z._fakeNode){Z._fakeNode._htcNode=null}Z._fakeNode=null;Z._handler=null}svgweb._removedNodes=null;document.getElementById=document._getElementById;document._getElementById=null;document.getElementsByTagNameNS=document._getElementsByTagNameNS;document._getElementsByTagNameNS=null;document.createElementNS=document._createElementNS;document._createElementNS=null;document.createElement=document._createElement;document._createElement=null;document.createTextNode=document._createTextNode;document._createTextNode=null;document._importNodeFunc=null;document.createDocumentFragment=document._createDocumentFragment;document._createDocumentFragment=null;window.addEventListener=null;window._addEventListener=null;window.attachEvent=window._attachEvent;window._attachEvent=null},_cleanupSVGObjects:function(){if(this.config.use=="flash"&&this.config.hasNativeSVG()){for(var Y=0;Y<this._svgObjects.length;Y++){var Z=this._svgObjects[Y];var ab=document.createElement("div");for(var X=0;X<Z.attributes.length;X++){var W=Z.attributes[X];ab.setAttribute(W.nodeName,W.nodeValue)}var aa=Z.innerHTML;ab.innerHTML=aa;Z.parentNode.replaceChild(ab,Z);this._svgObjects[Y]=ab}}for(var Y=0;Y<this._svgObjects.length;Y++){this._svgObjects[Y].style.visibility="hidden"}},_interceptOnloadListeners:function(){if(window.addEventListener){window._addEventListener=window.addEventListener;window.addEventListener=function(X,Y,W){if(X!="load"){return window._addEventListener(X,Y,W)}else{svgweb.addOnLoad(Y)}}}if(s&&window.attachEvent){window._attachEvent=window.attachEvent;window.attachEvent=function(W,X){if(W!="onload"){return window._attachEvent(W,X)}else{svgweb.addOnLoad(X)}}}},_saveWindowOnload:function(){if(window.onload){if(s){this._loadListeners.splice(0,0,window.onload)}else{this._loadListeners.push(window.onload)}window.onload=null}}});function j(){if(!this._forceFlash()){if(this.hasNativeSVG()){this.supported=true;this.use="native";return}}else{console.log("Forcing Flash SVG viewer for this browser")}var W=new l();if(W.capable){if(W.isVersionOrAbove(9,0,0)){this.supported=true;this.use="flash"}else{this.supported=false;this.reason="Flash 9+ required"}}else{this.supported=false;this.reason="Flash 9+ or a different browser required"}}v(j,{supported:false,reason:null,use:null,_forceFlash:function(){var Y=false;var W=false;var Z=document.getElementsByTagName("meta");for(var X=0;X<Z.length;X++){if(Z[X].name=="svg.render.forceflash"&&Z[X].content.toLowerCase()=="true"){Y=true;W=true}}if(window.location.search.indexOf("svg.render.forceflash=true")!=-1){Y=true}else{if(W&&window.location.search.indexOf("svg.render.forceflash=false")!=-1){Y=false}}return Y},hasNativeSVG:function(){if(document.implementation&&document.implementation.hasFeature){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}else{return false}}});function l(){this._detectVersion()}l.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:false,isVersionOrAbove:function(Y,W,X){X=parseFloat("."+X);if(this.versionMajor>=Y&&this.versionMinor>=W&&this.versionRevision>=X){return true}else{return false}},_detectVersion:function(){var ad;for(var X=25;X>0;X--){if(s){var Y;try{if(X>6){Y=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+X)}else{Y=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}if(typeof Y=="object"){if(X==6){Y.AllowScriptAccess="always"}ad=Y.GetVariable("$version")}}catch(ac){continue}}else{ad=this._JSFlashInfo(X)}if(ad==-1){this.capable=false;return}else{if(ad!==0){var aa;if(s){var ab=ad.split(" ");var Z=ab[1];aa=Z.split(",")}else{aa=ad.split(".")}this.versionMajor=aa[0];this.versionMinor=aa[1];this.versionRevision=aa[2];var W=this.versionMajor+"."+this.versionRevision;this.version=parseFloat(W);this.capable=true;break}}}},_JSFlashInfo:function(X){if(navigator.plugins!==null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var ad=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var ae=navigator.plugins["Shockwave Flash"+ad].description;var Z=ae.split(" ");var aa=Z[2].split(".");var W=aa[0];var af=aa[1];var Y=(Z[3]||Z[4]).split("r");var ab=Y[1]>0?Y[1]:0;var ac=W+"."+af+"."+ab;return ac}}return -1}};function K(W){this.type=W.type;this._finishedCallback=W.finishedCallback;this._keyboardListeners=[];this._redrawManager=new d(this);if(this.type=="script"){this.id=W.svgID;this._xml=W.xml;this._svgString=W.svgString;this._origSVG=W.origSVG;this._scriptNode=W.scriptNode;this._handleScript()}else{if(this.type=="object"){this.id=W.objID;this._objNode=W.objNode;this._handleObject()}}}K._unattachedDoc=N('<?xml version="1.0"?>\n<svg xmlns="'+svgns+'"></svg>',false);K._prepareBehavior=function(Z,W){var Y=null;for(var X=0;X<document.namespaces.length;X++){if(document.namespaces.item(X).name=="svg"){Y=document.namespaces.item(X);break}}if(Y===null){Y=document.namespaces.add("svg",svgns)}Y.doImport(Z+W)};K._getNode=function(X,Y){var Z;Z=svgweb._guidLookup["_"+X.getAttribute("__guid")];var W=false;if(!Z&&X.nodeName=="__text"){W=true}if(!Z&&!W&&X.nodeType==C.ELEMENT_NODE){Z=new J(X.nodeName,X.prefix,X.namespaceURI,X,Y,true)}else{if(!Z&&(X.nodeType==C.TEXT_NODE||W)){Z=new C("#text",C.TEXT_NODE,null,null,X,Y,false)}else{if(!Z){throw new Error("Unknown node type given to _getNode: "+X.nodeType)}}}return Z._getProxyNode()};K._patchBrowserObjects=function(X,W){if(W._getElementById){return}document._getElementById=document.getElementById;document.getElementById=K._getElementById;document._getElementsByTagNameNS=document.getElementsByTagNameNS;document.getElementsByTagNameNS=K._getElementsByTagNameNS;document._createElementNS=document.createElementNS;document.createElementNS=K._createElementNS;document._createElement=document.createElement;document.createElement=K._createElement;document._createTextNode=document.createTextNode;document.createTextNode=K._createTextNode;document._importNodeFunc=K._importNodeFunc;document._createDocumentFragment=document.createDocumentFragment;document.createDocumentFragment=K._createDocumentFragment};K._getElementById=function(Y){var W=document._getElementById(Y);if(W!==null){return W}for(var X=0;X<svgweb.handlers.length;X++){if(svgweb.handlers[X].type=="script"){W=svgweb.handlers[X].document.getElementById(Y)}if(W){return W}}return null};K._getElementsByTagNameNS=function(aa,W){var Z=I();if(document._getElementsByTagNameNS){var ab=document._getElementsByTagNameNS(aa,W);for(var X=0;X<ab.length;X++){Z.push(ab[X])}}for(var Y=0;Y<svgweb.handlers.length;Y++){if(svgweb.handlers[Y].type=="script"){var ac=svgweb.handlers[Y].document;var ab=ac.getElementsByTagNameNS(aa,W);for(var X=0;X<ab.length;X++){Z.push(ab[X])}}}return Z};K._createElementNS=function(X,ab){if(X===null||X=="http://www.w3.org/1999/xhtml"){if(s){return document.createElement(ab)}else{return document._createElementNS(X,ab)}}if(X==svgns){X=svgnsFake}if(!s){var aa=false;for(var W=0;W<svgweb.handlers.length;W++){if(svgweb.handlers[W].type=="script"&&svgweb.handlers[W].document._namespaces["_"+X]){aa=true;break}}if(!aa){return document._createElementNS(X,ab)}}var Z;for(var W=0;W<svgweb.handlers.length;W++){if(svgweb.handlers[W].type=="script"){Z=svgweb.handlers[W].document._namespaces["_"+X];if(Z){break}}}if(Z=="xmlns"||!Z){Z=null}var Y=new J(ab,Z,X);return Y._getProxyNode()};K._createElement=function(Z,W){if(!W){return document._createElement(Z)}else{if(W&&Z.toLowerCase()=="object"){var Y=document._createElement("object");Y._listeners=[];var X=Y.addEventListener;(function(ab,aa){ab.addEventListener=function(ad,ae,ac){if(ad=="load"){this._listeners.push(ae)}else{if(!X){this.attachEvent("on"+ad,ae)}else{aa(ad,ae,ac)}}}})(Y,X);return Y}}};K._createTextNode=function(Y,X){if(!X){return document._createTextNode(Y)}else{var Z=K._unattachedDoc;var W;if(s){W=Z.createElement("__text")}else{W=Z.createElementNS(svgnsFake,"__text")}W.appendChild(Z.createTextNode(Y));var aa=new C("#text",C.TEXT_NODE,null,null,W);aa._nodeValue=Y;aa.ownerDocument=document;return aa._getProxyNode()}};K._importNodeFunc=function(ac,aa,W){switch(aa.nodeType){case 1:var Z=ac.createElement(aa.nodeName);if(aa.attributes&&aa.attributes.length>0){for(var Y=0;Y<aa.attributes.length;Y++){var X=aa.attributes[Y].nodeName;var ab=aa.getAttribute(X);Z.setAttribute(X,ab)}}if(W&&aa.childNodes&&aa.childNodes.length>0){for(var Y=0;Y<aa.childNodes.length;Y++){Z.appendChild(document._importNodeFunc(ac,aa.childNodes[Y],W))}}return Z;break;case 3:return ac.createTextNode(aa.nodeValue);break}};K._createDocumentFragment=function(W){if(W){return new V(document)._getProxyNode()}else{return document._createDocumentFragment()}};K._encodeFlashData=function(W){W=W.toString().replace(/\\/g,"\\\\");W=W.replace(/&/g,"__SVG__AMPERSAND");return W};v(K,{flashID:null,flash:null,_stringToMsg:function(ac){if(ac==null||typeof ac!="string"){return ac}var Y={};var aa=ac.split(/__SVG__DELIMIT/g);for(var X=0;X<aa.length;X++){var W=aa[X].indexOf(":");var Z=aa[X].substring(0,W);var ab=aa[X].substring(W+1);if(ab==="true"){ab=true}else{if(ab==="false"){ab=false}else{if(ab==="null"){ab=null}else{if(ab==="undefined"){ab=undefined}}}}Y[Z]=ab}return Y},debugMsg:function(Y){if(Y===undefined){return"undefined"}else{if(Y===null){return"null"}}var W=[];for(var X in Y){W.push(X+":"+Y[X])}W=W.join(", ");return"{"+W+"}"},sendToFlash:function(X,W){var Y=W.join("__SVG__DELIMIT");if(this._redrawManager.isSuspended()){this._redrawManager.batch(X,Y)}else{return this.flash[X](Y)}},onMessage:function(W){W=this._stringToMsg(W);if(W.type=="event"){this._onEvent(W);return}else{if(W.type=="log"){this._onLog(W);return}else{if(W.type=="script"){this._onObjectScript(W);return}else{if(W.type=="viewsource"){this._onViewSource();return}else{if(W.type=="error"){this._onFlashError(W)}}}}}},fireOnLoad:function(X,W){this._finishedCallback(X,W)},_handleScript:function(){this.document=new g(this._xml,this);this.document.documentElement=new B(this._xml.documentElement,this._svgString,this._scriptNode,this)},_handleObject:function(){this._svgObject=new r(this._objNode,this);this._objNode=null},_onLog:function(W){console.log("FLASH: "+W.logString)},_onEvent:function(W){if(W.eventType.substr(0,5)=="mouse"||W.eventType=="click"){this._onMouseEvent(W);return}else{if(W.eventType=="onRenderingFinished"){if(this.type=="script"){this.document.documentElement._onRenderingFinished(W)}else{if(this.type=="object"){this._svgObject._onRenderingFinished(W)}}return}else{if(W.eventType=="onFlashLoaded"){if(this.type=="script"){this.document.documentElement._onFlashLoaded(W)}else{if(this.type=="object"){this._svgObject._onFlashLoaded(W)}}return}}}},_onMouseEvent:function(X){var ac=this._getElementByGuid(X.targetGUID);var W=this._getElementByGuid(X.currentTargetGUID);var ae={target:ac._getProxyNode(),currentTarget:W._getProxyNode(),clientX:new Number(X.stageX),clientY:new Number(X.stageY),screenX:new Number(X.stageX),screenY:new Number(X.stageY),altKey:X.altKey,ctrlKey:X.ctrlKey,shiftKey:X.shiftKey,preventDefault:function(){this.returnValue=false}};var Z=W._listeners[X.eventType];if(Z){for(var aa=0;aa<Z.length;aa++){var af=Z[aa];var Y=af.listener;Y(ae)}}if(X.scriptCode!=null){if(this.type=="object"){var ab='var evt = { target: document.getElementById("'+ac._getProxyNode().getAttribute("id")+'") ,\ncurrentTarget:document.getElementById("'+W._getProxyNode().getAttribute("id")+'") ,\nclientX: '+new Number(X.stageX)+",\nclientY: "+new Number(X.stageY)+",\nscreenX: "+new Number(X.stageX)+",\nscreenY: "+new Number(X.stageY)+",\naltKey: "+X.altKey+",\nctrlKey: "+X.ctrlKey+",\nshiftKey: "+X.shiftKey+",\npreventDefault: function() { this.returnValue=false; }\n};\n";var ad=";(function (evt) { "+X.scriptCode+"; }).call(evt.target, evt);\n";this.sandbox_eval(this._svgObject._sandboxedScript(ab+ad))}else{}}},_getElementByGuid:function(X){var Z=svgweb._guidLookup["_"+X];if(Z){return Z}var Y;if(this.type=="script"){Y=T(this._xml,null,'//*[@__guid="'+X+'"]')}else{if(this.type=="object"){Y=T(this._svgObject._xml,null,'//*[@__guid="'+X+'"]')}}var W,Z;if(Y.length){W=Y[0]}else{return null}Z=K._getNode(W,this);Z._passThrough=true;return Z},_onFlashError:function(W){this._onLog(W);svgweb._fireFlashError("FLASH: "+W.logString);throw new Error("FLASH: "+W.logString)},_onObjectScript:function(W){this._svgObject._scriptsToExec.push(W.script)},_onViewSource:function(){var X=this._origSVG;if(!X){X="SVG Source Not Available"}X=X.replace(/>/g,"&gt;").replace(/</g,"&lt;");var W=window.open("","_blank");W.document.write("<html><body><pre>"+X+"</pre></body></html>");W.document.close()}});function h(W){this.type=W.type;this._finishedCallback=W.finishedCallback;this._xml=W.xml;if(this.type=="object"){this.id=W.objID;this._objNode=W.objNode;this._handleObject()}else{if(this.type=="script"){this.id=W.svgID;this._svgString=W.svgString;this._scriptNode=W.scriptNode;this._handleScript()}}}h._patchBrowserObjects=function(X,W){if(W._getElementById){return}W._getElementById=W.getElementById;W.getElementById=function(aa){var Y=W._getElementById(aa);if(Y!==null){if(Y.parentNode===null){return null}else{return Y}}Y=T(W,null,'//*[@id="'+aa+'"]');if(Y.length){var Z=Y[0];if(Z.namespaceURI!==null&&Z.namespaceURI!=svgns&&Z.namespaceURI!="http://www.w3.org/1999/xhtml"){svgweb._exportID(Z)}return Z}else{return null}};W._getElementsByTagNameNS=W.getElementsByTagNameNS;W.getElementsByTagNameNS=function(ae,aa){var ah=W._getElementsByTagNameNS(ae,aa);if(ah!==null&&ah.length!==0){if(ae!==null&&ae!="http://www.w3.org/1999/xhtml"&&ae!=svgns){for(var ac=0;ac<ah.length;ac++){var Y=ah[ac];svgweb._exportID(Y)}return ah}return ah}if(ah===null||ah.length===0){ah=I()}var Z;for(var ac=0;ac<svgweb.handlers.length;ac++){var ag=svgweb.handlers[ac];if(ag.type=="object"){continue}var ad=ag._namespaces["_"+ae];if(!ad){continue}var af;if(ad=="xmlns"){af="//*[namespace-uri()='"+svgns+"' and name()='"+aa+"']"}else{if(ad){af="//"+ad+":"+aa}else{af="//"+aa}}Z=T(W,ag._svgRoot,af,ag._namespaces);if(Z!==null&&Z!==undefined&&Z.length>0){for(var ab=0;ab<Z.length;ab++){var Y=Z[ab];if(Y.namespaceURI!==null&&Y.namespaceURI!=svgns&&Y.namespaceURI!="http://www.w3.org/1999/xhtml"){svgweb._exportID(Y)}ah.push(Y)}return ah}}return I()};if(o){h._patchStyleObject(X)}};h._patchStyleObject=function(Z){var W=Z.CSSStyleDeclaration;for(var Y=0;Y<G._allStyles.length;Y++){var X=G._allStyles[Y];var aa=X.replace(/([A-Z])/g,"-$1").toLowerCase();(function(ab,ac){W.prototype.__defineSetter__(ab,function(ad){return this.setProperty(ac,ad,null)});W.prototype.__defineGetter__(ab,function(){return this.getPropertyValue(ac)})})(X,aa)}};v(h,{_handleScript:function(){this._namespaces=this._getNamespaces();this._processSVGScript(this._xml,this._svgString,this._scriptNode);this._loaded=true;this._finishedCallback(this.id,"script")},_handleObject:function(){this._objNode.style.overflow="hidden";this._objNode.style.visibility="visible";if(this._objNode._svgWindow){this._onObjectLoad(this._objNode._svgFunc,this._objNode._svgWindow)}else{this._objNode._svgHandler=this;var W=this;this._objNode.addEventListener("load",function(){var X=W._objNode.contentDocument.defaultView;W._onObjectLoad(W._objNode._svgFunc,X)},false)}},_onObjectLoad:function(W,Y){if(this._loaded){return}this._loaded=true;var X=Y.document;h._patchBrowserObjects(Y,X);Y.svgns=svgns;Y.xlinkns=xlinkns;this._namespaces=this._getNamespaces(X);if(W){W.apply(Y)}svgweb._fireOnLoad()},_processSVGScript:function(X,Y,W){var Z=document.importNode(X.documentElement,true);W.parentNode.replaceChild(Z,W);this._svgRoot=Z},_getNamespaces:function(ad){var ab=[];var Z;if(ad){Z=ad.documentElement.attributes}else{Z=this._xml.documentElement.attributes}for(var aa=0;aa<Z.length;aa++){var X=Z[aa];if(/^xmlns:?(.*)$/.test(X.nodeName)){var W=X.nodeName.match(/^xmlns:?(.*)$/);var ac=(W[1]?W[1]:"xmlns");var Y=X.nodeValue;if(!ab["_"+ac]){ab["_"+ac]=Y;ab["_"+Y]=ac;ab.push(Y)}}}return ab}});function d(W){this._handler=W;this._batch=[];this._nextID=1;this._ids=[];this._timeoutIDs={}}v(d,{isSuspended:function(){return(this._ids.length>0)},batch:function(X,W){this._batch.push(X+":"+W)},suspendRedraw:function(X){if(X===undefined){throw"Not enough arguments to suspendRedraw"}var Z=this._nextID;this._nextID++;var W=this;var Y=window.setTimeout(function(){W.unsuspendRedraw(Z);delete W._timeoutIDs["_"+Z]},X);this._ids.push(Z);this._timeoutIDs["_"+Z]=Y;this._handler.flash.jsSuspendRedraw();return Z},unsuspendRedraw:function(aa){var W=-1;for(var Y=0;Y<this._ids.length;Y++){if(this._ids[Y]==aa){W=Y;break}}if(W==-1){throw"Unknown id passed to unsuspendRedraw: "+aa}if(this._timeoutIDs["_"+aa]!=undefined){window.clearTimeout(this._timeoutIDs["_"+aa])}this._ids.splice(W,1);delete this._timeoutIDs["_"+aa];if(this.isSuspended()){return}var X=this._batch.join("__SVG__METHOD__DELIMIT");this._batch=[];try{this._handler.flash.jsUnsuspendRedrawAll(X)}catch(Z){console.log("unsuspendRedraw exception: "+Z)}},unsuspendRedrawAll:function(){for(var W=0;W<this._ids.length;W++){this.unsuspendRedraw(this._ids[W])}},forceRedraw:function(){}});function y(){}v(y,{hasFeature:function(X,W){}});function C(ad,W,ab,Z,Y,aa,ac){if(ad===undefined&&W===undefined){return}this.nodeName=ad;this._nodeXML=Y;this._handler=aa;this._listeners={};this._detachedListeners=[];this.fake=true;if(Z==svgnsFake){Z=svgns}this._attached=true;if(!this._handler){this._attached=false}if(W==C.ELEMENT_NODE&&!this._nodeXML&&!this._handler){var X='<?xml version="1.0"?>\n';if(Z==svgns&&!ab){X+="<"+ad+' xmlns="'+svgnsFake+'"/>'}else{X+="<"+ad+" xmlns:"+ab+'="'+Z+'"/>'}this._nodeXML=N(X).documentElement}else{if(W==C.DOCUMENT_FRAGMENT_NODE){var X='<?xml version="1.0"?>\n<__document__fragment></__document__fragment>';this._nodeXML=N(X).documentElement}}if(W!=C.DOCUMENT_NODE&&this._nodeXML){if(!this._nodeXML.getAttribute("__guid")){this._nodeXML.setAttribute("__guid",A())}this._guid=this._nodeXML.getAttribute("__guid");svgweb._guidLookup["_"+this._guid]=this}if(W==C.ELEMENT_NODE){if(ad.indexOf(":")!=-1){this.localName=ad.match(/^[^:]*:(.*)$/)[1]}else{this.localName=ad}}if(W){this.nodeType=W}else{this.nodeType=C.ELEMENT_NODE}if(W==C.ELEMENT_NODE||W==C.DOCUMENT_NODE||W==C.DOCUMENT_FRAGMENT_NODE){this.prefix=ab;this.namespaceURI=Z;this._nodeValue=null}else{if(W==C.TEXT_NODE){this._nodeValue=this._nodeXML.firstChild.nodeValue;this.prefix=null;this.namespaceURI=null;if(this._nodeValue===undefined){this._nodeValue=null}}}if(this._attached){if(this._handler.type=="script"){this.ownerDocument=document}else{if(this._handler.type=="object"){this.ownerDocument=this._handler.document}}}if(ac===undefined){ac=false}this._passThrough=ac;if(s){this._createEmptyMethods()}this._childNodes=this._createChildNodes();if(W==C.TEXT_NODE){this._nodeXML.setAttribute("__fakeTextNode",true)}if(!s){this._defineNodeAccessors()}else{if(s&&this.nodeType!=C.DOCUMENT_NODE){this._createHTC()}}}S(C,{ELEMENT_NODE:1,TEXT_NODE:3,DOCUMENT_NODE:9,DOCUMENT_FRAGMENT_NODE:11});v(C,{_listeners:null,_detachedListeners:null,insertBefore:function(aa,ac){if(this.nodeType!=C.ELEMENT_NODE&&this.nodeType!=C.DOCUMENT_FRAGMENT_NODE){throw"Not supported"}aa=this._getFakeNode(aa);ac=this._getFakeNode(ac);var X=(aa.nodeType==C.DOCUMENT_FRAGMENT_NODE);var ae;if(X){ae=aa._getChildNodes(true)}if(X&&ae.length==0){aa._reset();return aa._getProxyNode()}var W=this._findChild(ac);if(W===null){throw new Error("Invalid child passed to insertBefore")}var ab=W.position;var Y=[];if(X){for(var Z=0;Z<ae.length;Z++){Y.push(ae[Z])}}else{Y.push(aa)}for(var Z=0;Z<Y.length;Z++){var af=this._importNode(Y[Z],false);this._nodeXML.insertBefore(af,ac._nodeXML);this._processAppendedChildren(Y[Z],this,this._attached,this._passThrough)}if(this._attached&&this._passThrough){var ad=K._encodeFlashData(this._toXML(aa));this._handler.sendToFlash("jsInsertBefore",[ac._guid,this._guid,ab,ad])}if(!s){for(var Z=0;Z<Y.length;Z++){this._defineChildNodeAccessor(this._childNodes.length);this._childNodes.length++}}if(aa.nodeType==C.DOCUMENT_FRAGMENT_NODE){aa._reset()}return aa._getProxyNode()},replaceChild:function(ac,aa){if(this.nodeType!=C.ELEMENT_NODE&&this.nodeType!=C.DOCUMENT_FRAGMENT_NODE){throw"Not supported"}ac=this._getFakeNode(ac);aa=this._getFakeNode(aa);var X=(ac.nodeType==C.DOCUMENT_FRAGMENT_NODE);var ag;if(X){ag=ac._getChildNodes(true)}if(X&&ag.length==0){ac._reset();return ac._getProxyNode()}var W=this._findChild(aa);if(W===null){throw new Error("Invalid child passed to replaceChild")}var ad=W.position;this.removeChild(aa);var Z=[];if(X){for(var ab=0;ab<ag.length;ab++){Z.push(ag[ab])}}else{Z.push(ac)}if(!s){for(var ab=0;ab<Z.length;ab++){this._defineChildNodeAccessor(this._childNodes.length);this._childNodes.length++}}var ae=false;if(ad>=this._nodeXML.childNodes.length){ae=true}var Y=ad;for(var ab=0;ab<Z.length;ab++){var ai=this._importNode(Z[ab],false);if(ae){this._nodeXML.appendChild(ai)}else{var ah=this._nodeXML.childNodes[Y];this._nodeXML.insertBefore(ai,ah);Y++}}if(this._attached&&this._passThrough){var af=K._encodeFlashData(this._toXML(ac));this._handler.sendToFlash("jsAddChildAt",[this._guid,ad,af])}this._processAppendedChildren(ac,this,this._attached,this._passThrough);aa._setUnattached();svgweb._removedNodes.push(aa._getProxyNode());if(ac.nodeType==C.DOCUMENT_FRAGMENT_NODE){ac._reset()}return aa._getProxyNode()},removeChild:function(Z){if(this.nodeType!=C.ELEMENT_NODE&&this.nodeType!=C.DOCUMENT_FRAGMENT_NODE){throw"Not supported"}if(Z.nodeType!=C.ELEMENT_NODE&&Z.nodeType!=C.TEXT_NODE){throw"Not supported"}Z=this._getFakeNode(Z);var X=this._findChild(Z);if(X===null){throw new Error("Invalid child passed to removeChild")}var W=X.position;this._nodeXML.removeChild(X.nodeXML);if(Z.nodeType==C.ELEMENT_NODE){var Y=Z._getId();if(Y&&this._attached){this._handler.document._nodeById["_"+Y]=undefined}}Z._persistEventListeners();if(!s){delete this._childNodes[this._childNodes.length-1];this._childNodes.length--}else{this._childNodes.splice(W,1)}if(this._attached&&this._passThrough){this._handler.sendToFlash("jsRemoveChild",[Z._guid])}Z._setUnattached();svgweb._removedNodes.push(Z._getProxyNode());return Z._getProxyNode()},appendChild:function(aa){if(this.nodeType!=C.ELEMENT_NODE&&this.nodeType!=C.DOCUMENT_FRAGMENT_NODE){throw"Not supported"}aa=this._getFakeNode(aa);var Z=(aa.nodeType==C.DOCUMENT_FRAGMENT_NODE);var Y;if(Z){Y=aa._getChildNodes(true)}if(Z&&Y.length==0){aa._reset();return aa._getProxyNode()}if(Z){for(var W=0;W<Y.length;W++){this._importNode(Y[W])}}else{this._importNode(aa)}if(s){if(Z){for(var W=0;W<Y.length;W++){this._childNodes.push(Y[W]._htcNode)}}else{this._childNodes.push(aa._htcNode)}}else{if(Z){for(var W=0;W<Y.length;W++){this._defineChildNodeAccessor(this._childNodes.length);this._childNodes.length++}}else{this._defineChildNodeAccessor(this._childNodes.length);this._childNodes.length++}}if(this._attached&&this._passThrough){var X=K._encodeFlashData(this._toXML(aa));this._handler.sendToFlash("jsAppendChild",[this._guid,X])}this._processAppendedChildren(aa,this,this._attached,this._passThrough);if(aa.nodeType==C.DOCUMENT_FRAGMENT_NODE){aa._reset()}return aa._getProxyNode()},hasChildNodes:function(){return(this._getChildNodes().length>0)},isSupported:function(X,W){if(W=="2.0"){if(X=="Core"){return true}else{if(X=="Events"||X=="UIEvents"||X=="MouseEvents"){return true}}}else{return false}},hasAttributes:function(){if(this.nodeType==C.ELEMENT_NODE){for(var W in this._attributes){if(/^_xmlns/i.test(W)){continue}if(W=="_id"&&/^__svg__random__/.test(this._attributes[W])){continue}if(W=="___guid"&&/^__guid/.test(this._attributes[W])){continue}if(W=="___fakeTextNode"&&/^__fakeTextNode/.test(this._attributes[W])){continue}if(/^_.*/.test(W)&&this._attributes.hasOwnProperty(W)){return true}}return false}else{return false}},addEventListener:function(Z,aa,W,Y){if(this.nodeType!=C.ELEMENT_NODE&&this.nodeType!=C.TEXT_NODE){throw"Not supported"}if(!Y&&!this._attached){this._detachedListeners.push({type:Z,listener:aa,useCapture:W});return}if(this._listeners[Z]===undefined){this._listeners[Z]=[]}this._listeners[Z].push({type:Z,listener:aa,useCapture:W});this._listeners[Z]["_"+aa.toString()+":"+W]=aa;if(Z=="keydown"){var X=(function(ab){return function(ac){if(!ac.preventDefault){ac.preventDefault=function(){this.returnValue=false;ac=null}}ab(ac)}})(aa);this._handler._keyboardListeners.push(X);this._addEvent(document,Z,X);return}this._handler.sendToFlash("jsAddEventListener",[this._guid,Z])},removeEventListener:function(X,Y,W){if(this.nodeType!=C.ELEMENT_NODE&&this.nodeType!=C.TEXT_NODE){throw"Not supported"}},getScreenCTM:function(){var W=this._handler.sendToFlash("jsGetScreenCTM",[this._guid]);W=this._handler._stringToMsg(W);return new f(new Number(W.a),new Number(W.b),new Number(W.c),new Number(W.d),new Number(W.e),new Number(W.f),this._handler)},getCTM:function(){return this.getScreenCTM()},toString:function(){if(this.namespaceURI==svgns){return"[_SVG"+this.localName.charAt(0).toUpperCase()+this.localName.substring(1)+"]"}else{if(this.prefix){return"["+this.prefix+":"+this.localName+"]"}else{if(this.localName){return"["+this.localName+"]"}else{return"["+this.nodeName+"]"}}}},_addEvent:function(Y,X,W){if(Y.addEventListener){Y.addEventListener(X,W,false)}else{if(Y.attachEvent){Y["e"+X+W]=W;Y[X+W]=(function(ab,aa,Z){return function(){ab["e"+aa+Z](window.event)}})(Y,X,W);Y.attachEvent("on"+X,Y[X+W])}}},nodeName:null,nodeType:null,ownerDocument:null,namespaceURI:null,localName:null,prefix:null,_getParentNode:function(){if(this.nodeType==C.DOCUMENT_NODE||this.nodeType==C.DOCUMENT_FRAGMENT_NODE){return null}if(this.nodeName=="svg"&&this._handler.type=="script"){return this._handler.flash.parentNode}else{if(this.nodeName=="svg"&&this._handler.type=="object"){return this._handler.document}}var W=this._nodeXML.parentNode;if(W===null||W.nodeType==C.DOCUMENT_NODE){return null}var X=K._getNode(W,this._handler);return X},_getFirstChild:function(){if(this.nodeType==C.TEXT_NODE){return null}var X=this._nodeXML.firstChild;if(X===null){return null}var W=K._getNode(X,this._handler);this._getFakeNode(W)._passThrough=this._passThrough;return W},_getLastChild:function(){if(this.nodeType==C.TEXT_NODE){return null}var X=this._nodeXML.lastChild;if(X===null){return null}var W=K._getNode(X,this._handler);this._getFakeNode(W)._passThrough=this._passThrough;return W},_getPreviousSibling:function(){if(this.nodeType==C.DOCUMENT_NODE||this.nodeType==C.DOCUMENT_FRAGMENT_NODE){return null}if(this.nodeName=="svg"&&this._handler.type=="script"){var W=this._handler.flash.previousSibling;if(W&&W.nodeType==1&&W.className&&W.className.indexOf("embedssvg")!=-1){var Z=W.getAttribute("id").replace("_flash","");var X=svgweb.handlers[Z].document.documentElement;return X._getProxyNode()}else{return W}}var Y=this._nodeXML.previousSibling;if(Y===null||Y.nodeType==7){return null}var X=K._getNode(Y,this._handler);this._getFakeNode(X)._passThrough=this._passThrough;return X},_getNextSibling:function(){if(this.nodeType==C.DOCUMENT_NODE||this.nodeType==C.DOCUMENT_FRAGMENT_NODE){return null}if(this.nodeName=="svg"&&this._handler.type=="script"){var W=this._handler.flash.nextSibling;if(W&&W.nodeType==1&&W.className&&W.className.indexOf("embedssvg")!=-1){var Z=W.getAttribute("id").replace("_flash","");var X=this._handler.document._nodeById["_"+Z];return X._getProxyNode()}else{return W}}var Y=this._nodeXML.nextSibling;if(Y===null){return null}var X=K._getNode(Y,this._handler);this._getFakeNode(X)._passThrough=this._passThrough;return X},_passThrough:false,_attached:true,_fake:true,_defineNodeAccessors:function(){this.__defineGetter__("parentNode",P(this,this._getParentNode));this.__defineGetter__("firstChild",P(this,this._getFirstChild));this.__defineGetter__("lastChild",P(this,this._getLastChild));this.__defineGetter__("previousSibling",P(this,this._getPreviousSibling));this.__defineGetter__("nextSibling",P(this,this._getNextSibling));this.__defineGetter__("childNodes",(function(Y){return function(){return Y._childNodes}})(this));if(this.nodeName=="#text"){this._childNodes.length=0}else{var X=this._nodeXML.childNodes;this._childNodes.length=X.length;for(var W=0;W<X.length;W++){this._defineChildNodeAccessor(W)}}if(this.nodeType==C.TEXT_NODE){this.__defineGetter__("data",(function(Y){return function(){return Y._nodeValue}})(this));this.__defineSetter__("data",(function(Y){return function(Z){return Y._setNodeValue(Z)}})(this));this.__defineGetter__("textContent",(function(Y){return function(){return Y._nodeValue}})(this));this.__defineSetter__("textContent",(function(Y){return function(Z){return Y._setNodeValue(Z)}})(this))}else{this.__defineGetter__("textContent",(function(){return function(){return""}})())}this.__defineGetter__("nodeValue",(function(Y){return function(){return Y._nodeValue}})(this));this.__defineSetter__("nodeValue",(function(Y){return function(Z){return Y._setNodeValue(Z)}})(this))},_defineChildNodeAccessor:function(X){var W=this;this._childNodes.__defineGetter__(X,function(){var Z=W._nodeXML.childNodes[X];var Y=K._getNode(Z,W._handler);Y._passThrough=W._passThrough;return Y})},_getChildNodes:function(Y){if(!s){return this._childNodes}if(Y===undefined){Y=false}var X=I();if(this.nodeName=="#text"){return X}if(this._nodeXML.childNodes.length==this._childNodes.length&&!Y){return this._childNodes}else{for(var W=0;W<this._nodeXML.childNodes.length;W++){var aa=this._nodeXML.childNodes[W];var Z=K._getNode(aa,this._handler);Z._fakeNode._passThrough=this._passThrough;if(Y){Z=Z._fakeNode}X.push(Z)}this._childNodes=X;return X}},_createHTC:function(){if(!this._htcContainer){this._htcContainer=document.getElementById("__htc_container");if(!this._htcContainer){var W=document.getElementsByTagName("body")[0];var Y=document.createElement("div");Y.id="__htc_container";Y.style.position="absolute";Y.style.top="-5000px";Y.style.left="-5000px";W.appendChild(Y);this._htcContainer=Y}}var X=document.createElement("svg:"+this.nodeName);X._fakeNode=this;X._handler=this._handler;this._htcContainer.appendChild(X);this._htcNode=X},_setNodeValue:function(Y){if(this.nodeType!=C.TEXT_NODE){return Y}this._nodeValue=Y;this._nodeXML.firstChild.nodeValue=Y;if(this._attached&&this._passThrough){var W=K._encodeFlashData(Y);var X=this._nodeXML.parentNode.getAttribute("__guid");this._handler.sendToFlash("jsSetText",[X,this._guid,W])}return Y},_getFakeNode:function(W){if(s&&W._fakeNode){W=W._fakeNode}return W},_processAppendedChildren:function(aa,ah,X,ac){var af;var ae;if(aa.nodeType==C.DOCUMENT_FRAGMENT_NODE){af=this._getFakeNode(aa._getFirstChild());if(X&&ac){ae=this._handler._redrawManager.suspendRedraw(10000)}}else{af=aa}while(af){var ai=af._nodeXML;af._handler=this._handler;var Y=ai.getAttribute("id");if(X&&af.nodeType==C.ELEMENT_NODE&&Y){this._handler.document._nodeById["_"+Y]=af}if(X){if(this._handler.type=="script"){af.ownerDocument=document}else{if(this._handler.type=="object"){af.ownerDocument=this._handler.document}}}if(X){for(var ab=0;ab<af._detachedListeners.length;ab++){var W=af._detachedListeners[ab];af.addEventListener(W.type,W.listener,W.useCapture,true)}af._detachedListeners=[]}var ag=af;var Z=af._getChildNodes();var ad=(Z&&Z.length>0)?Z[0]:null;if(ad){af=ad;if(s){af=af._fakeNode}}while(!ad&&af){if(af!=aa){ad=af._getNextSibling();if(ad){af=ad;if(s){af=af._fakeNode}break}}if(af==aa){af=null}else{af=af._getParentNode();if(af&&s){af=af._fakeNode}if(af&&(af.nodeType!=1||af.nodeName.toUpperCase()=="SVG")){af=null}}}ag._attached=X;ag._passThrough=ac}if(aa.nodeType==C.DOCUMENT_FRAGMENT_NODE&&X&&ac){this._handler._redrawManager.unsuspendRedraw(ae)}},_toXML:function(aa){var X=aa._nodeXML;var W;if(typeof XMLSerializer!="undefined"){W=(new XMLSerializer().serializeToString(X))}else{W=X.xml}W=W.replace(/urn\:__fake__internal__namespace/g,svgns);var ac='xmlns="'+svgns+'" ';for(var Y=0;Y<this._handler.document._namespaces.length;Y++){var Z=this._handler.document._namespaces[Y];var ab=this._handler.document._namespaces["_"+Z];if(Z==svgnsFake){Z=svgns}if(ab!="xmlns"){ac+="xmlns:"+ab+'="'+Z+'" '}else{ac+='xmlns="'+Z+'" '}}W=W.replace(/<([^ ]+)/,"<$1 "+ac+" ");return W},_importNode:function(Z,Y){if(typeof Y=="undefined"){Y=true}var X;if(this._attached){X=this._handler.document._xml}else{X=this._nodeXML.ownerDocument}var W;if(typeof X.importNode=="undefined"){W=document._importNodeFunc(X,Z._nodeXML,true)}else{W=X.importNode(Z._nodeXML,true)}if(Y){this._nodeXML.appendChild(W)}Z._importChildXML(W);return W},_importChildXML:function(Z){this._nodeXML=Z;var X=this._getChildNodes();for(var W=0;W<X.length;W++){var Y=X[W];if(s&&Y._fakeNode){Y=Y._fakeNode}Y._nodeXML=this._nodeXML.childNodes[W];Y._importChildXML(this._nodeXML.childNodes[W])}},_findChild:function(ab,Z){if(Z===undefined){Z=false}var X={};var Y=0;for(var W=0;W<this._nodeXML.childNodes.length;W++){var aa=this._nodeXML.childNodes[W];if(aa.nodeType!=C.ELEMENT_NODE&&aa.nodeType!=C.TEXT_NODE){continue}if(Z&&(aa.getAttribute("__fakeTextNode")||aa.nodeType==C.TEXT_NODE)){continue}if(aa.nodeType==C.ELEMENT_NODE){Y++}if(aa.nodeType==C.ELEMENT_NODE&&aa.getAttribute("__guid")==ab._guid){X.position=(Z)?Y:W;X.nodeXML=aa;return X}}return null},_setUnattached:function(){var X=this._getChildNodes();for(var W=0;W<X.length;W++){var Y=X[W];if(s){Y=Y._fakeNode}Y._setUnattached()}this._attached=false;this._passThrough=false;this._handler=null},_getProxyNode:function(){if(!s){return this}else{return this._htcNode}},_createChildNodes:function(){var W;if(!s){W={};W.item=function(X){if(X>=this.length){return null}else{return this[X]}}}else{W=I()}return W},_getTextContent:function(){if(this.nodeType==C.TEXT_NODE){return this._nodeValue}else{return""}},_setTextContent:function(W){if(this.nodeType==C.TEXT_NODE){return this._setNodeValue(W)}else{return""}},_getData:function(){if(this.nodeType==C.TEXT_NODE){return this._nodeValue}else{return undefined}},_setData:function(W){if(this.nodeType==C.TEXT_NODE){return this._setNodeValue(W)}else{return undefined}},_createEmptyMethods:function(){if(this.nodeType==C.TEXT_NODE){this.getAttribute=this.setAttribute=this.setAttributeNS=this._getId=this._setId=this._getX=this._getY=this._getWidth=this._getHeight=function(){return undefined}}},_persistEventListeners:function(){for(var Z in this._listeners){for(var Y=0;Y<this._listeners[Z].length;Y++){var W=this._listeners[Z][Y];this._detachedListeners.push({type:W.type,listener:W.listener,useCapture:W.useCapture})}}this._listeners=[];var X=this._getChildNodes();for(var Y=0;Y<X.length;Y++){var aa=X[Y];if(aa._fakeNode){aa=aa._fakeNode}aa._persistEventListeners()}}});function J(ab,Z,X,W,Y,aa){if(ab===undefined&&X===undefined&&W===undefined&&Y===undefined){return}C.apply(this,[ab,C.ELEMENT_NODE,Z,X,W,Y,aa]);this._attributes={};this._attributes._id="";this._importAttributes(this,this._nodeXML);if(!s){this._defineAccessors()}if(this.namespaceURI==svgns){if(s&&this._attached&&this._handler.type=="script"&&this.nodeName=="svg"){}else{this.style=new G(this)}if(s&&this._attached&&this._handler.type=="script"&&this.nodeName=="svg"){}else{if(s){this.style._ignoreStyleChanges=false}}}}J.prototype=new C;v(J,{getAttribute:function(W){var X;if(W=="__guid"){return null}if(this._attached&&this._passThrough&&!this._handler._redrawManager.isSuspended()){X=this._handler.sendToFlash("jsGetAttribute",[this._guid,false,false,null,W])}else{X=this._nodeXML.getAttribute(W);if(W=="id"&&!X){return""}}if(X===undefined||X===null||/^[ ]*$/.test(X)){return null}return X},setAttribute:function(W,X){this.setAttributeNS(null,W,X)},removeAttribute:function(W){},getAttributeNS:function(X,W){},setAttributeNS:function(ac,ab,Z){var X=this._nodeXML.getAttribute("id");var W=ab;if(ab.indexOf(":")!=-1){W=ab.split(":")[1]}if(this._attached&&ab=="id"){var ad=this._handler.document;ad._nodeById["_"+X]=undefined;ad._nodeById["_"+Z]=this}if(i&&W=="style"&&this._nodeXML.parentNode!==null&&this._nodeXML.parentNode.nodeName=="clipPath"){var Y=this._nodeXML.nextSibling;var ae=this._nodeXML.parentNode;this._nodeXML.parentNode.removeChild(this._nodeXML);this._nodeXML.setAttribute("style",Z);if(Y){ae.insertBefore(this._nodeXML,Y)}else{ae.appendChild(this._nodeXML)}}else{this._nodeXML.setAttribute(ab,Z)}this._attributes["_"+ab]=Z;if(this._attached&&this._passThrough){var aa=K._encodeFlashData(Z);this._handler.sendToFlash("jsSetAttribute",[this._guid,false,ac,W,aa])}},removeAttributeNS:function(X,W){},getElementsByTagNameNS:function(X,W){},hasAttributeNS:function(X,W){},style:null,_setClassName:function(W){},_getClassName:function(){},_setTransform:function(W){},_getTransform:function(){},_getViewBox:function(){},_getId:function(){if(this._attributes._id){return this._attributes._id}else{return""}},_setId:function(W){return this.setAttribute("id",W)},ownerSVGElement:null,_getX:function(){var W=this._trimMeasurement(this.getAttribute("x"));return new x(new Q(new Number(W)))},_getY:function(){var W=this._trimMeasurement(this.getAttribute("y"));return new x(new Q(new Number(W)))},_getWidth:function(){var W=this._trimMeasurement(this.getAttribute("width"));return new x(new Q(new Number(W)))},_getHeight:function(){var W=this._trimMeasurement(this.getAttribute("height"));return new x(new Q(new Number(W)))},_getCurrentScale:function(){return 1},_getCurrentTranslate:function(){return new n(0,0)},_trimMeasurement:function(W){if(W!==null){W=W.replace(/[a-z]/gi,"")}return W},_getInnerHTML:function(){},_setInnerHTML:function(W){},_allEvents:["onfocusin","onfocusout","onactivate","onclick","onmousedown","onmouseup","onmouseover","onmousemove","onmouseout","onload","onunload","onabort","onerror","onresize","onscroll","onzoom","onbegin","onend","onrepeat"],_handleEvent:function(W){},_prepareEvents:function(){},_attributes:null,_importAttributes:function(Z,X){for(var Y=0;Y<X.attributes.length;Y++){var W=X.attributes[Y];this._attributes["_"+W.nodeName]=W.nodeValue}},_defineAccessors:function(){var X;var W=this;if(this.nodeName=="svg"||this.nodeName=="use"){this.__defineGetter__("x",function(){return W._getX()});this.__defineGetter__("y",function(){return W._getY()});this.__defineGetter__("width",function(){return W._getWidth()});this.__defineGetter__("height",function(){return W._getHeight()})}this.__defineGetter__("id",P(this,this._getId));this.__defineSetter__("id",P(this,this._setId))},_defineAccessor:function(aa,Y){var X=this;var Z=function(){return X.getAttribute(aa)};this.__defineGetter__(aa,Z);if(Y){var W=function(ab){return X.setAttribute(aa,ab)};this.__defineSetter__(aa,W)}}});function V(W){C.apply(this,["#document-fragment",C.DOCUMENT_FRAGMENT_NODE,null,null,null,null]);this.ownerDocument=W}V.prototype=new C;v(V,{_reset:function(){while(this._nodeXML.firstChild){this._nodeXML.removeChild(this._nodeXML.firstChild)}this._childNodes=this._createChildNodes();if(!s){this._defineNodeAccessors()}}});function G(W){this._element=W;this._setup()}G._allStyles=["font","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","direction","letterSpacing","textDecoration","unicodeBidi","wordSpacing","clip","color","cursor","display","overflow","visibility","clipPath","clipRule","mask","opacity","enableBackground","filter","floodColor","floodOpacity","lightingColor","stopColor","stopOpacity","pointerEvents","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","fill","fillOpacity","fillRule","imageRendering","marker","markerEnd","markerMid","markerStart","shapeRendering","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textRendering","alignmentBaseline","baselineShift","dominantBaseline","glyphOrientationHorizontal","glyphOrientationVertical","kerning","textAnchor","writingMode"];v(G,{_ignoreStyleChanges:true,_setup:function(){this._normalizeStyle();if(!s){for(var aa=0;aa<G._allStyles.length;aa++){var Z=G._allStyles[aa];this._defineAccessor(Z)}this.__defineGetter__("length",P(this,this._getLength))}else{var Y=this._element._htcNode.style;var W=this._fromStyleString();for(var aa=0;aa<W.length;aa++){var Z=this._toCamelCase(W[aa].styleName);var X=W[aa].styleValue;Y[Z]=X}Y.length=0;this.length=0;Y.item=P(this,this.item);Y.setProperty=P(this,this.setProperty);Y.getPropertyValue=P(this,this.getPropertyValue);this._changeListener=P(this,this._onPropertyChange);this._element._htcNode.attachEvent("onpropertychange",this._changeListener)}},_defineAccessor:function(X){var W=this;this.__defineGetter__(X,function(){return W._getStyleAttribute(X)});this.__defineSetter__(X,function(Y){return W._setStyleAttribute(X,Y)})},_setStyleAttribute:function(X,ae){var W=this._fromCamelCase(X);var ab=this._fromStyleString();var Y=false;for(var Z=0;Z<ab.length;Z++){if(ab[Z].styleName===W){ab[Z].styleValue=ae;Y=true;break}}if(!Y){ab.push({styleName:W,styleValue:ae})}var ad=this._toStyleString(ab);this._element._nodeXML.setAttribute("style",ad);this._element._attributes._style=ad;if(s){var aa=this._element._htcNode.style;if(!Y){aa.length++;this.length++}this._ignoreStyleChanges=true;aa[X]=ae;this._ignoreStyleChanges=false}if(this._element._attached&&this._element._passThrough){var ac=K._encodeFlashData(ae);this._element._handler.sendToFlash("jsSetAttribute",[this._element._guid,true,null,W,ac])}},_getStyleAttribute:function(Y){var aa=this._fromCamelCase(Y);if(this._element._attached&&this._element._passThrough&&!this._element._handler._redrawManager.isSuspended()){var Z=this._element._handler.sendToFlash("jsGetAttribute",[this._element._guid,true,false,null,aa]);return Z}else{var W=this._fromStyleString();for(var X=0;X<W.length;X++){if(W[X].styleName===aa){return W[X].styleValue}}return null}},_fromStyleString:function(){var ae=this._element._nodeXML.getAttribute("style");if(ae===null||ae===undefined){return[]}var aa;if(ae.indexOf(";")==-1){aa=[ae]}else{aa=ae.split(/\s*;\s*/);if(!aa[aa.length-1]){aa=aa.slice(0,aa.length-1)}}var Y=[];for(var Z=0;Z<aa.length;Z++){var W=aa[Z];var X=W.split(":");if(X.length==2){var ac=X[0];var ab=X[1];ac=ac.replace(/^\s+/,"");ab=ab.replace(/^\s+/,"");var ad={styleName:ac,styleValue:ab};Y.push(ad)}}return Y},_toStyleString:function(W){var Y="";for(var X=0;X<W.length;X++){Y+=W[X].styleName+": ";Y+=W[X].styleValue+";";if(X!=(W.length-1)){Y+=" "}}return Y},_fromCamelCase:function(W){return W.replace(/([A-Z])/g,"-$1").toLowerCase()},_toCamelCase:function(Y){if(Y.indexOf("-")==-1){return Y}var X="";var Z=Y.split("-");X+=Z[0];for(var W=1;W<Z.length;W++){X+=Z[W].charAt(0).toUpperCase()+Z[W].substring(1)}return X},setProperty:function(Z,W,Y){var X=this._toCamelCase(Z);this._setStyleAttribute(X,W);return W},getPropertyValue:function(X){var W=this._toCamelCase(X);return this._getStyleAttribute(W)},item:function(X){var W=this._fromStyleString();return W[X].styleName},_getLength:function(){var W=this._fromStyleString();return W.length},_normalizeStyle:function(){if(!this._element._nodeXML.getAttribute("style")){return}if(!/[A-Z]/.test(this._element._nodeXML.getAttribute("style"))){return}var W=this._fromStyleString();for(var Y=0;Y<W.length;Y++){W[Y].styleName=W[Y].styleName.toLowerCase();if(W[Y].styleValue.indexOf("url(")==-1){W[Y].styleValue=W[Y].styleValue.toLowerCase()}}var X="";for(var Y=0;Y<W.length;Y++){X+=W[Y].styleName+": "+W[Y].styleValue+"; "}if(X.charAt(X.length-1)==" "){X=X.substring(0,X.length-1)}var Z=this._element._passThrough;this._element._passThrough=false;this._element.setAttribute("style",X);this._element._passThrough=Z},_onPropertyChange:function(){if(this._ignoreStyleChanges){return}var Y=window.event.propertyName;if(Y&&/^style\./.test(Y)&&Y!="style.length"){var X=Y.match(/^style\.(.*)$/)[1];var W=this._element._htcNode.style[X];this._setStyleAttribute(X,W)}}});function r(Z,Y){this._handler=Y;this._svgNode=Z;this._scriptsToExec=[];this._htcLoaded=false;this._swfLoaded=false;for(var X=0;this._svgNode._listeners&&X<this._svgNode._listeners.length;X++){var W=(function(aa,ab){return function(){ab.apply(aa.flash)}})(this._handler,this._svgNode._listeners[X]);svgweb.addOnLoad(W)}if(s){this._loadHTC()}this.url=this._svgNode.getAttribute("src");if(!this.url){this.url=this._svgNode.getAttribute("data")}this._fetchURL(this.url,P(this,function(ac){this._handler._origSVG=ac;var ab=svgweb._cleanSVG(ac,true,false);this._svgString=ab.svg;this._xml=ab.xml;this.document=new g(this._xml,this._handler);this._handler.document=this.document;var aa=this._xml.documentElement;this._savedParams=this._getPARAMs(this._svgNode);this._handler._inserter=new L("object",this._xml.documentElement,this._svgNode,this._handler)}),P(this,this._fallback))}v(r,{_scriptsToExec:null,_utf8encode:function(X){X=X.replace(/\r\n/g,"\n");var W="";for(var Z=0;Z<X.length;Z++){var Y=X.charCodeAt(Z);if(Y<128){W+=String.fromCharCode(Y)}else{if((Y>127)&&(Y<2048)){W+=escape(String.fromCharCode((Y>>6)|192));W+=escape(String.fromCharCode((Y&63)|128))}else{W+=escape(String.fromCharCode((Y>>12)|224));W+=escape(String.fromCharCode(((Y>>6)&63)|128));W+=escape(String.fromCharCode((Y&63)|128))}}}return W},_fetchURL:function(W,Z,X){var Y=a();if(s){W=this._utf8encode(W);W+=(W.indexOf("?")==-1)?"?":"&";W+=new Date().getTime()}Y.onreadystatechange=function(){if(Y.readyState==4){if(Y.status==200){Z(Y.responseText)}else{X(Y.status+": "+Y.statusText)}Y=null}};Y.open("GET",W,true);Y.send(null)},_fallback:function(W){console.log("onError (fallback), error="+W)},_loadHTC:function(){this._dummyNode=document.createElement("svg:__force__load");this._dummyNode._handler=this._handler;this._readyStateListener=P(this,this._onHTCLoaded);this._dummyNode.attachEvent("onreadystatechange",this._readyStateListener);var W=document.getElementsByTagName("head")[0];W.appendChild(this._dummyNode)},_onFlashLoaded:function(Y){this._handler.flash=document.getElementById(this._handler.flashID);if(this._savedParams.length){for(var W=0;W<this._savedParams.length;W++){var X=this._savedParams[W];this._handler.flash.appendChild(X);X=null}this._savedParams=null}this._handler.flash.top=this._handler.flash.parent=window;this._swfLoaded=true;if(!s||this._htcLoaded){this._onEverythingLoaded()}},_onHTCLoaded:function(){var W=document.getElementsByTagName("head")[0];W.removeChild(this._dummyNode);this._dummyNode.detachEvent("onreadystatechange",this._readyStateListener);this._dummyNode=null;W=null;this._htcLoaded=true;if(this._swfLoaded){this._onEverythingLoaded()}},_onEverythingLoaded:function(){var W=this._handler._inserter._determineSize();this._handler.sendToFlash("jsHandleLoad",[this._getRelativeTo("object"),this._getRelativeTo("page"),W.pixelsWidth,W.pixelsHeight,false,this._svgString])},_onRenderingFinished:function(X){this._handler.flash.style.visibility="visible";var ad=this._xml.documentElement;var W=ad.getAttribute("id");var ab=new B(ad,null,null,this._handler);var ac=this._handler.document;ac.documentElement=ab._getProxyNode();ac.rootElement=ab._getProxyNode();ac._nodeById["_"+W]=ab;if(s){this._handler.flash.setAttribute("contentDocument",null)}this._handler.flash.contentDocument=ac;this._handler.window=new t(this._handler);ac.defaultView=this._handler.window;var Y=ab.getAttribute("onload");if(Y){var aa='var evt = { target: document.getElementById("'+ab.getAttribute("id")+'") ,currentTarget: document.getElementById("'+ab.getAttribute("id")+'") ,preventDefault: function() { this.returnValue=false; }};';Y="(function(){"+aa+Y+"}).apply(document.documentElement);";this._scriptsToExec.push(Y)}var ae="";for(var Z=0;Z<this._scriptsToExec.length;Z++){ae+=this._scriptsToExec[Z]+"\n"}this._executeScript(ae);this._handler._loaded=true;this._handler.fireOnLoad(this._handler.id,"object")},_getRelativeTo:function(X){var W="";if(X=="object"){var Y=this.url.replace(/[^:]*:\/\/[^\/]*/).match(/\/?[^\?\#]*/)[0];if(Y&&Y.length>0&&Y.indexOf("/")!=-1){W=Y.replace(/\/([^/]*)$/,"/")}}else{var Y=window.location.pathname.toString();if(Y&&Y.length>0&&Y.indexOf("/")!=-1){W=Y.replace(/\/([^/]*)$/,"/")}}return W},_executeScript:function(X){var Y=document.createElement("iframe");Y.setAttribute("src","about:blank");Y.style.position="absolute";Y.style.top="-1000px";Y.style.left="-1000px";var W=document.getElementsByTagName("body")[0];W.appendChild(Y);var aa=(Y.contentDocument)?Y.contentDocument:Y.contentWindow.document;var Z=Y.contentWindow;this._handler.document.defaultView=Z;X=this._sandboxedScript(X);X=X+";__svgHandler.sandbox_eval = "+(s?"window.eval;":"function(scriptCode) { return window.eval(scriptCode) };");aa.write("<script>"+X+"<\/script>");aa.close();this._handler.window._fireOnload()},_sandboxedScript:function(X){var Y='var __svgHandler = top.svgweb.handlers["'+this._handler.id+'"];\nwindow.svgns = "'+svgns+'";\nwindow.xlinkns = "'+xlinkns+'";\n';var Z="window._timeoutIDs = [];\nwindow._setTimeout = window.setTimeout;\nwindow.setTimeout = \n       (function() {\n          return function(f, ms) {\n            var timeID = window._setTimeout(f, ms);\n            window._timeoutIDs.push(timeID);\n            return timeID;\n          };\n        })();\n";var W="window._intervalIDs = [];\nwindow._setInterval = window.setInterval;\nwindow.setInterval = \n       (function() {\n          return function(f, ms) {\n            var timeID = window._setInterval(f, ms);\n            window._intervalIDs.push(timeID);\n            return timeID;\n          };\n        })();\n";X=Y+Z+W+"\n\n"+X;X=X.replace(/top\.document/g,"top.DOCUMENT");X=X.replace(/top\.window/g,"top.WINDOW");X=X.replace(/(^|[^A-Za-z0-9_])document(\.|'|"|\,| |\))/g,"$1__svgHandler.document$2");X=X.replace(/window\.(location|addEventListener|onload|frameElement)/g,"__svgHandler.window.$1");X=X.replace(/top\.DOCUMENT/g,"top.document");X=X.replace(/top\.WINDOW/g,"top.window");return X},_getPARAMs:function(X){var Y=[];for(var W=0;W<X.childNodes.length;W++){var Z=X.childNodes[W];if(Z.nodeName.toUpperCase()=="PARAM"){Y.push(Z.cloneNode(false))}}return Y}});function t(W){this._handler=W;this.fake=true;this.frameElement=this._handler.flash;this.location=this._createLocation();this.alert=window.alert;this.top=this.parent=window;this._onloadListeners=[]}v(t,{addEventListener:function(X,Y,W){if(X=="load"||X=="SVGLoad"){this._onloadListeners.push(Y)}},_fireOnload:function(){for(var W=0;W<this._onloadListeners.length;W++){try{this._onloadListeners[W]()}catch(X){console.log("The following exception occurred from an SVG onload listener: "+(X.message||X))}}if(this.onload){try{this.onload()}catch(X){console.log("The following exception occurred from an SVG onload listener: "+(X.message||X))}}},_createLocation:function(ab){var ad={};var X=this._handler._svgObject.url;var ac;if(ab){ac=ab}else{ac=window.location}if(/^http/.test(X)){}else{if(X.charAt(0)=="/"){X=ac.protocol+"//"+ac.host+X}else{if(ac.pathname.indexOf("/")==-1){X=ac.protocol+"//"+ac.host+"/"+X}else{var aa=ac.pathname;for(var Z=aa.length-1;Z>=0;Z--){if(aa.charAt(Z)=="/"){break}aa=aa.substring(0,Z)}X=ac.protocol+"//"+ac.host+aa+X}}}var Y=X.match(/^(https?:)\/\/([^\/:]*):?([0-9]*)([^\?#]*)([^#]*)(#.*)?$/);ad.protocol=(Y[1])?Y[1]:ac.href;if(ad.protocol.charAt(ad.protocol.length-1)!=":"){ad.protocol+=":"}ad.hostname=Y[2];ad.port="";if(Y[3]){ad.port=Y[3]}var W=true;if(ad.protocol!=ac.protocol||ad.hostname!=ac.hostname||(ad.port&&ad.port!=ac.port)){W=false}if(W&&!ad.port){ad.port=ac.port}if(ad.port){ad.host=ad.hostname+":"+ad.port}else{ad.host=ad.hostname}ad.pathname=(Y[4])?Y[4]:"";ad.search=(Y[5])?Y[5]:"";ad.hash=(Y[6])?Y[6]:"";ad.href=ad.protocol+"//"+ad.host+ad.pathname+ad.search+ad.hash;ad.toString=function(){return this.protocol+"//"+this.host+this.pathname+this.search+this.hash};return ad}});function L(Z,W,Y,X){this._embedType=Z;this._nodeXML=W;this._replaceMe=Y;this._handler=X;this._parentNode=Y.parentNode;if(this._embedType=="object"){this._explicitWidth=this._replaceMe.getAttribute("width");this._explicitHeight=this._replaceMe.getAttribute("height")}this._setupFlash()}v(L,{_setupFlash:function(){var aa=this._determineSize();var Z=this._determineBackground();var ac=this._determineStyle();var ab=this._determineClassName();var X=this._determineCustomAttrs();var W;if(this._embedType=="script"){W=this._nodeXML.getAttribute("id");this._handler.flashID=W+"_flash"}else{if(this._embedType=="object"){W=this._replaceMe.getAttribute("id");this._handler.flashID=W}}var Y=this._createFlash(aa,W,Z,ac,ab,X);this._insertFlash(Y)},_insertFlash:function(Z){if(!s){var ab=document.createElement("div");ab.innerHTML=Z;var Y=ab.childNodes[0];ab.removeChild(Y);for(var aa=0;aa<Y.childNodes.length;aa++){var W=Y.childNodes[aa];if(W.nodeName.toUpperCase()=="EMBED"){Y=W;break}}this._replaceMe.parentNode.replaceChild(Y,this._replaceMe);return Y}else{var X=this;window.setTimeout(function(){X._replaceMe.outerHTML=Z;X=null},1)}},_determineSize:function(){if(isStandardsMode){return this._getStandardsSize()}else{return this._getQuirksSize()}},_getQuirksSize:function(){var X,ae;var ag=this._parentNode.clientWidth;var ab=this._parentNode.clientHeight;if(ag==0){ag=this._parentNode.offsetWidth}if(this._embedType=="script"){var Y=this._parentNode;while(Y&&Y.style){if(Y.nodeName.toLowerCase()=="div"){break}if(Y.nodeName.toLowerCase()=="body"){if(window.innerHeight&&window.innerHeight>0){ab=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight&&document.documentElement.clientHeight>0){ab=document.documentElement.clientHeight}else{ab=document.body.clientHeight}}break}Y=Y.parentNode}}if(!i){ag-=this._getMargin(this._parentNode,"margin-left");ag-=this._getMargin(this._parentNode,"margin-right");ab-=this._getMargin(this._parentNode,"margin-top");ab-=this._getMargin(this._parentNode,"margin-bottom")}var ad=this._explicitWidth;var af=this._explicitHeight;var aa=this._nodeXML.getAttribute("width");var W=this._nodeXML.getAttribute("height");if(ad&&af){if(ad.indexOf("%")!=-1){X=ag*parseInt(ad)/100}else{X=ad}if(af.indexOf("%")!=-1){if(ab>0){ae=ab*parseInt(af)/100}else{console.log("SVGWeb: unhandled resize scenario.");ab=200}}else{ae=af}return{width:ad,height:ae,pixelsWidth:X,pixelsHeight:ae,clipMode:this._nodeXML.getAttribute("viewBox")?"neither":"both"}}var ah,Z,ac;if(ad){if(ad.indexOf("%")!=-1){X=ag*parseInt(ad)/100}else{X=ad}if(this._nodeXML.getAttribute("viewBox")){if(aa&&aa.indexOf("%")==-1&&W&&W.indexOf("%")==-1){af=X*(W/aa)}else{ah=this._nodeXML.getAttribute("viewBox").split(/\s+|,/);Z=ah[2];ac=ah[3];af=X*(ac/Z)}return{width:ad,height:af,pixelsWidth:X,pixelsHeight:af,clipMode:"neither"}}else{if(aa&&aa.indexOf("%")==-1&&W&&W.indexOf("%")==-1){af=X*(W/aa)}else{if(W&&W.indexOf("%")==-1){af=W}else{af=150}}return{width:ad,height:af,pixelsWidth:X,pixelsHeight:af,clipMode:"both"}}}if(af){if(af.indexOf("%")!=-1){ae=ab*parseInt(af)/100}else{ae=af}if(this._nodeXML.getAttribute("viewBox")){if(aa&&aa.indexOf("%")==-1&&W&&W.indexOf("%")==-1){ad=ae*(aa/W)}else{ah=this._nodeXML.getAttribute("viewBox").split(/\s+|,/);Z=ah[2];ac=ah[3];ad=ae*(Z/ac)}return{width:ad,height:af,pixelsWidth:ad,pixelsHeight:ae,clipMode:"neither"}}else{if(aa&&aa.indexOf("%")==-1&&W&&W.indexOf("%")==-1){ad=ae*(aa/W);X=ad}else{if(aa){ad=aa}else{ad="100%"}if(ad.indexOf("%")!=-1){X=ag*parseInt(ad)/100}else{X=ad}}return{width:ad,height:af,pixelsWidth:X,pixelsHeight:ae,clipMode:"both"}}}if(aa){ad=aa}else{ad="100%"}if(ad.indexOf("%")!=-1){X=ag*parseInt(ad)/100}else{X=ad}if(W&&W.indexOf("%")==-1){af=W;return{width:ad,height:af,pixelsWidth:X,pixelsHeight:af,clipMode:this._nodeXML.getAttribute("viewBox")?"neither":"both"}}else{if(this._nodeXML.getAttribute("viewBox")){if(this._embedType=="script"&&(W==null||W.indexOf("%")!=-1)&&ab>0){if(W==null){W="100%"}if(af==null){af="100%"}ae=ab*parseInt(W)/100;return{width:ad,height:af,pixelsWidth:X,pixelsHeight:ae,clipMode:"neither"}}var ah=this._nodeXML.getAttribute("viewBox").split(/\s+|,/);var Z=ah[2];var ac=ah[3];af=X*(ac/Z);return{width:ad,height:af,pixelsWidth:X,pixelsHeight:af,clipMode:"neither"}}else{af=150;return{width:ad,height:af,pixelsWidth:X,pixelsHeight:af,clipMode:"both"}}}},_getStandardsSize:function(){var Z,X;var ac=this._parentNode.clientWidth;var aa=this._parentNode.clientHeight;if(aa==0){this.invalidParentHeight=true}if(!i){ac-=this._getMargin(this._parentNode,"margin-left");ac-=this._getMargin(this._parentNode,"margin-right");aa-=this._getMargin(this._parentNode,"margin-top");aa-=this._getMargin(this._parentNode,"margin-bottom")}var W=this._explicitWidth;var ad=this._explicitHeight;var Y=this._nodeXML.getAttribute("width");var ab=this._nodeXML.getAttribute("height");if(W&&!ad){return this._getQuirksSize()}if(!W&&!ad){return this._getQuirksSize()}if(!W&&ad){if(Y){W=Y}else{W="100%"}if(W.indexOf("%")!=-1){Z=ac*parseInt(W)/100}else{Z=W}if(ad.indexOf("%")==-1){X=ad;if(Y&&Y.indexOf("%")==-1&&ab&&ab.indexOf("%")==-1){W=ad*(Y/ab);Z=W}else{if(this._nodeXML.getAttribute("viewBox")){viewBox=this._nodeXML.getAttribute("viewBox").split(/\s+|,/);boxWidth=viewBox[2];boxHeight=viewBox[3];W=X*(boxWidth/boxHeight);Z=W}}return{width:W,height:ad,pixelsWidth:Z,pixelsHeight:ad,clipMode:this._nodeXML.getAttribute("viewBox")?"neither":"both"}}else{if(ab&&ab.indexOf("%")==-1){X=ab}else{if(this._nodeXML.getAttribute("viewBox")){viewBox=this._nodeXML.getAttribute("viewBox").split(/\s+|,/);boxWidth=viewBox[2];boxHeight=viewBox[3];X=Z*(boxHeight/boxWidth)}else{X=150}}return{width:W,height:X,pixelsWidth:Z,pixelsHeight:X,clipMode:this._nodeXML.getAttribute("viewBox")?"neither":"both"}}}if(W&&ad){if(W.indexOf("%")!=-1){Z=ac*parseInt(W)/100}else{Z=W}if(ad.indexOf("%")==-1){return{width:W,height:ad,pixelsWidth:Z,pixelsHeight:ad,clipMode:this._nodeXML.getAttribute("viewBox")?"neither":"both"}}else{if(Y&&Y.indexOf("%")==-1&&ab&&ab.indexOf("%")==-1){X=Z*(ab/Y);return{width:W,height:X,pixelsWidth:Z,pixelsHeight:X,clipMode:"neither"}}else{if(!this.invalidParentHeight){X=aa*parseInt(ad)/100;return{width:W,height:X,pixelsWidth:Z,pixelsHeight:X,clipMode:"neither"}}else{if(this._nodeXML.getAttribute("viewBox")){viewBox=this._nodeXML.getAttribute("viewBox").split(/\s+|,/);boxWidth=viewBox[2];boxHeight=viewBox[3];ad=Z*(boxHeight/boxWidth);return{width:W,height:ad,pixelsWidth:Z,pixelsHeight:ad,clipMode:"neither"}}else{if(ab&&ab.indexOf("%")==-1){X=ab}else{X=150}return{width:W,height:X,pixelsWidth:Z,pixelsHeight:X,clipMode:"both"}}}}}}},_getMargin:function(X,W){var Y;if(X.currentStyle){Y=parseInt(X.currentStyle[W])}else{if(window.getComputedStyle){Y=parseInt(document.defaultView.getComputedStyle(X,null).getPropertyValue(W))}}if(Y){return Y}else{return 0}},_determineBackground:function(){var Z=false;var X=null;var Y=this._nodeXML.getAttribute("style");if(Y&&Y.indexOf("background-color")!=-1){var W=Y.match(/background\-color:\s*([^;]*)/);if(W){X=W[1]}}if(X===null){Z=true}return{color:X,transparent:Z}},_determineStyle:function(){var W=this._nodeXML.getAttribute("style");if(!W&&this._embedType=="object"){W=this._replaceMe.getAttribute("style")}if(!W){W=""}if(W.length>0&&W.charAt(W.length-1)!=";"){W+=";"}if(this._embedType=="script"&&W.indexOf("display:")==-1){W+="display: inline;"}if(this._embedType=="script"&&W.indexOf("overflow:")==-1){W+="overflow: hidden;"}return W},_determineClassName:function(){var W=this._nodeXML.getAttribute("class");if(!W){return"embedssvg"}else{return W+" embedssvg"}},_determineCustomAttrs:function(){var aa=[];if(this._embedType=="object"){var ab=this._replaceMe;var Y=document._createElement("object");for(var X=0;X<ab.attributes.length;X++){var W=ab.attributes[X];var Z=W.nodeName;var ac=W.nodeValue;if(!ac&&ac!=="true"){continue}if(Y.getAttribute(Z)){continue}if(/^(id|name|width|height|data|class|style|codebase|type|_listeners|addEventListener|onload)$/.test(Z)){continue}aa.push({attrName:Z.toString(),attrValue:ac.toString()})}}return aa},_createFlash:function(ah,af,Y,X,ae,ab){var ad="uniqueId="+encodeURIComponent(af)+"&sourceType=string&clipMode="+ah.clipMode+"&debug=true&svgId="+encodeURIComponent(af);var W;if(this._isXDomain){W=svgweb.xDomainURL+"svg.swf"}else{W=svgweb.libraryPath+"svg.swf"}var ag=window.location.protocol;if(ag.charAt(ag.length-1)==":"){ag=ag.substring(0,ag.length-1)}var Z="";for(var aa=0;aa<ab.length;aa++){Z+=" "+ab[aa].attrName+'="'+ab[aa].attrValue+'"'}var ac='<object\n classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"\n codebase="'+ag+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"\n width="'+ah.width+'"\n height="'+ah.height+'"\n id="'+this._handler.flashID+'"\n name="'+this._handler.flashID+'"\n style="'+X+'"\n class="'+ae+'"\n '+Z+'\n>\n <param name="allowScriptAccess" value="always"></param>\n <param name="movie" value="'+W+'"></param>\n <param name="quality" value="high"></param>\n <param name="FlashVars" value="'+ad+'"></param>\n '+(Y.color?'<param name="bgcolor" value="'+Y.color+'"></param>\n ':"")+(Y.transparent?'<param name="wmode" value="transparent"></param>\n ':"")+'<embed src="'+W+'" quality="high" '+(Y.color?'bgcolor="'+Y.color+'" \n':"")+(Y.transparent?'wmode="transparent" \n':"")+'width="'+ah.width+'" height="'+ah.height+'" id="'+this._handler.flashID+'" name="'+this._handler.flashID+'" swLiveConnect="true" allowScriptAccess="always" type="application/x-shockwave-flash" FlashVars="'+ad+'" pluginspage="'+ag+'://www.macromedia.com/go/getflashplayer" style="'+X+'"\n class="'+ae+'"\n '+Z+"\n /></object>";return ac}});function B(X,Y,W,Z){J.apply(this,["svg",null,svgns,X,Z,true]);this._nodeXML=X;this._svgString=Y;this._scriptNode=W;this._htcLoaded=false;this._swfLoaded=false;if(this._handler.type=="script"){var ab=this._nodeXML.getAttribute("id");var aa=this._handler.document;aa._nodeById["_"+ab]=this}if(s&&this._handler.type=="script"){this._addRedrawMethods();this.style=new G(this);this._readyStateListener=P(this,this._onHTCLoaded);this._htcNode.attachEvent("onreadystatechange",this._readyStateListener)}else{if(s&&this._handler.type=="object"){this._addRedrawMethods()}}if(this._handler.type=="script"){this._handler._inserter=new L("script",this._nodeXML,this._scriptNode,this._handler)}}B.prototype=new J;v(B,{suspendRedraw:function(W){return this._handler._redrawManager.suspendRedraw(W)},unsuspendRedraw:function(W){this._handler._redrawManager.unsuspendRedraw(W)},unsuspendRedrawAll:function(){this._handler._redrawManager.unsuspendRedrawAll()},forceRedraw:function(){},nearestViewportElement:null,farthestViewportElement:null,getBBox:function(){},getTransformToElement:function(W){},_onHTCLoaded:function(){this._htcNode.detachEvent("onreadystatechange",this._readyStateListener);this.style._ignoreStyleChanges=false;this._htcLoaded=true;if(this._swfLoaded){this._onEverythingLoaded()}},_onFlashLoaded:function(W){this._handler.flash=document.getElementById(this._handler.flashID);this._swfLoaded=true;if(!s||this._htcLoaded){this._onEverythingLoaded()}},_onEverythingLoaded:function(){var W=this._handler._inserter._determineSize();this._handler.sendToFlash("jsHandleLoad",[this._getRelativeTo("object"),this._getRelativeTo("page"),W.pixelsWidth,W.pixelsHeight,true,this._svgString])},_onRenderingFinished:function(X){if(this._handler.type=="script"){this._handler.flash.documentElement=this._getProxyNode()}var W=this._nodeXML.getAttribute("id");this._handler._loaded=true;this._handler.fireOnLoad(W,"script")},_getRelativeTo:function(){var W="";var X=window.location.pathname.toString();if(X&&X.length>0&&X.indexOf("/")!=-1){W=X.replace(/\/([^/]*)$/,"/")}return W},_addRedrawMethods:function(){this._htcNode.suspendRedraw=(function(){return function(W){return this._fakeNode.suspendRedraw(W)}})();this._htcNode.unsuspendRedraw=(function(){return function(W){return this._fakeNode.unsuspendRedraw(W)}})();this._htcNode.unsuspendRedrawAll=(function(){return function(){return this._fakeNode.unsuspendRedrawAll()}})();this._htcNode.forceRedraw=(function(){return function(){return this._fakeNode.forceRedraw()}})()}});function g(W,X){C.apply(this,["#document",C.DOCUMENT_NODE,null,null,W,X],svgns);this._xml=W;this._handler=X;this._nodeById={};this._namespaces=this._getNamespaces();this.implementation=new y();if(this._handler.type=="script"){this.defaultView=window}else{if(this._handler.type=="object"){}}}g.prototype=new C;v(g,{_nodeById:null,implementation:null,documentElement:null,createElementNS:function(W,Z){var Y=this._namespaces["_"+W];if(Y=="xmlns"||!Y){Y=null}var X=new J(Z,Y,W);return X._getProxyNode()},createTextNode:function(X){var Y=K._unattachedDoc;var W;if(s){W=Y.createElement("__text")}else{W=Y.createElementNS(svgnsFake,"__text")}W.appendChild(Y.createTextNode(X));var Z=new C("#text",C.TEXT_NODE,null,null,W,this._handler);Z._nodeValue=X;Z.ownerDocument=this;return Z._getProxyNode()},createDocumentFragment:function(W){return new V(this)._getProxyNode()},getElementById:function(Z){var X=T(this._xml,null,'//*[@id="'+Z+'"]');var W,Y;if(X.length){W=X[0]}else{return null}Y=K._getNode(W,this._handler);Y._passThrough=true;return Y},getElementsByTagNameNS:function(ae,Y){var Z=I();var ab;if(ae==""){ae=null}if(ae==svgns){ae=svgnsFake}if(this._xml.getElementsByTagNameNS){Z=this._xml.getElementsByTagNameNS(ae,Y)}else{var ac="xmlns";if(ae&&ae!="*"){ac=this._namespaces["_"+ae];if(ac===undefined){return I()}}var ad;if(ae=="*"&&Y=="*"){ad="//*"}else{if(ae=="*"){ad="//*[namespace-uri()='*' and local-name()='"+Y+"']"}else{if(Y=="*"){ad="//*[namespace-uri()='"+ae+"']"}else{ad="//"+Y+" | //*[namespace-uri()='"+ae+"' and local-name()='"+Y+"']"}}}ab=T(this._xml,null,ad,this._namespaces);if(ab!==null&&ab!==undefined&&ab.length>0){for(var aa=0;aa<ab.length;aa++){Z.push(ab[aa])}}}var W=I();for(var aa=0;aa<Z.length;aa++){var X=K._getNode(Z[aa],this._handler);X._passThrough=true;W.push(X)}return W},_getNamespaces:function(){var ab=[];var Z=this._xml.documentElement.attributes;for(var aa=0;aa<Z.length;aa++){var X=Z[aa];if(/^xmlns:?(.*)$/.test(X.nodeName)){var W=X.nodeName.match(/^xmlns:?(.*)$/);var ac=(W[1]?W[1]:"xmlns");var Y=X.nodeValue;if(!ab["_"+ac]){ab["_"+ac]=Y;ab["_"+Y]=ac;ab.push(Y)}}}return ab}});function I(){var W=[];W.item=function(X){if(X>=this.length){return null}else{return this[X]}};return W}function F(X){var W=(X!==undefined)?new String(X):new String();W.data=W.toString();return W}function f(X,W,ac,ab,aa,Z,Y){this.a=X;this.b=W;this.c=ac;this.d=ab;this.e=aa;this.f=Z;this._handler=Y}v(f,{multiply:function(W){},inverse:function(){var W=this._handler.sendToFlash("jsMatrixInvert",[this.a,this.b,this.c,this.d,this.e,this.f]);W=this._handler._stringToMsg(W);return new f(new Number(W.a),new Number(W.b),new Number(W.c),new Number(W.d),new Number(W.e),new Number(W.f),this._handler)},translate:function(W,X){},scale:function(W){},scaleNonUniform:function(W,X){},rotate:function(W){},rotateFromVector:function(W,X){},flipX:function(){},flipY:function(){},skewX:function(W){},skewY:function(W){}});function Q(W){this.value=W}function x(W){this.baseVal=W;this.animVal=undefined}function E(X,W,Y){this.type=X;this.matrix=W;this.angle=Y}S(E,{SVG_TRANSFORM_UNKNOWN:0,SVG_TRANSFORM_MATRIX:1,SVG_TRANSFORM_TRANSLATE:2,SVG_TRANSFORM_SCALE:3,SVG_TRANSFORM_ROTATE:4,SVG_TRANSFORM_SKEWX:5,SVG_TRANSFORM_SKEWY:6});v(E,{type:null,matrix:null,angle:null,setMatrix:function(W){},setTranslate:function(X,W){},setScale:function(X,W){},setRotate:function(X,W,Y){},setSkewX:function(W){},setSkewY:function(W){}});function n(W,X){this.x=W;this.y=X}v(n,{matrixTransform:function(W){return new n(W.a*this.x+W.c*this.y+W.e,W.b*this.x+W.d*this.y+W.f)}});function O(){return new n(0,0)}function U(){return{x:0,y:0,width:0,height:0}}v(C,{createSVGPoint:O,createSVGRect:U});window.svgweb=new z()})();
