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