(function(e){var l,o,i,p;function g(a){return e.data(a,"tooltip")}function a(a){g(this).delay?j=setTimeout(d,g(this).delay):d();q=!!g(this).track;e(document.body).bind("mousemove",c);c(a)}function b(){if(!e.tooltip.blocked&&!(this==f||!this.tooltipText&&!g(this).bodyHandler)){f=this;m=this.tooltipText;if(g(this).bodyHandler){o.hide();var b=g(this).bodyHandler.call(this);b.nodeType||b.jquery?i.empty().append(b):i.html(b);i.show()}else if(g(this).showBody){b=m.split(g(this).showBody);o.html(b.shift()).show();i.empty();for(var c=0,d;d=b[c];c++)c>0&&i.append("<br/>"),i.append(d);i.hideWhenEmpty()}else o.html(m).show(),i.hide();g(this).showURL&&e(this).url()?p.html(e(this).url().replace("http://","")).show():p.hide();l.addClass(g(this).extraClass);g(this).fixPNG&&l.fixPNG();a.apply(this,arguments)}}function d(){j=null;(!k||!e.fn.bgiframe)&&g(f).fade?l.is(":animated")?l.stop().show().fadeTo(g(f).fade,f.tOpacity):l.is(":visible")?l.fadeTo(g(f).fade,f.tOpacity):l.fadeIn(g(f).fade):l.show();c()}function c(a){if(!e.tooltip.blocked&&!(a&&a.target.tagName=="OPTION"))if(!q&&l.is(":visible")&&e(document.body).unbind("mousemove",c),f==null)e(document.body).unbind("mousemove",c);else{l.removeClass("viewport-right").removeClass("viewport-bottom");var b=l[0].offsetLeft,d=l[0].offsetTop;a&&(b=a.pageX+g(f).left,d=a.pageY+g(f).top,a="auto",g(f).positionLeft&&(a=e(window).width()-b,b="auto"),l.css({left:b,right:a,top:d}));var a=e(window).scrollLeft(),h=e(window).scrollTop(),j=e(window).width(),k=e(window).height(),m=l[0];a+j<m.offsetLeft+m.offsetWidth&&(b-=m.offsetWidth+20+g(f).left,l.css({left:b+"px"}).addClass("viewport-right"));h+k<m.offsetTop+m.offsetHeight&&(d-=m.offsetHeight+20+g(f).top,l.css({top:d+"px"}).addClass("viewport-bottom"))}}function h(){function a(){l.removeClass(b.extraClass).hide().css("opacity","")}if(!e.tooltip.blocked){j&&clearTimeout(j);f=null;var b=g(this);(!k||!e.fn.bgiframe)&&b.fade?l.is(":animated")?l.stop().fadeTo(b.fade,0,a):l.stop().fadeOut(b.fade,a):a();g(this).fixPNG&&l.unfixPNG()}}l=void 0;o=void 0;i=void 0;p=void 0;var f,m,j,k=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),q=!1;e.tooltip={blocked:!1,defaults:{delay:0,fade:100,showURL:!1,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(a){a=e.extend({},e.tooltip.defaults,a);l||(l=e('<div id="'+a.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide(),e.fn.bgiframe&&l.bgiframe(),o=e("h3",l),i=e("div.body",l),p=e("div.url",l));return this.each(function(){e.data(this,"tooltip",a);this.tOpacity=l.css("opacity");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(b).mouseout(h).click(h)},fixPNG:k?function(){return this.each(function(){var a=e(this).css("backgroundImage");if(a.match(/^url\(["']?(.*\.png)["']?\)$/i))a=RegExp.$1,e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+a+"')"}).each(function(){var a=e(this).css("position");a!="absolute"&&a!="relative"&&e(this).css("position","relative")})})}:function(){return this},unfixPNG:k?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})})(jQuery);(function(e){function l(){this._settings=[];this._extensions=[];this.regional=[];this.regional[""]={errorLoadingText:"Error loading",notSupportedText:"This browser does not support SVG"};this.local=this.regional[""];this._uuid=(new Date).getTime();var a;try{a=!(!window.ActiveXObject||!new ActiveXObject("RenesisX.RenesisCtrl"))}catch(b){a=!1}this._renesis=a}function o(a,b){this._svg=a;this._container=b;for(var d=0;d<e.svg._extensions.length;d++){var c=e.svg._extensions[d];this[c[0]]=new c[1](this)}}function i(){this._path=""}function p(){this._parts=[]}function g(a){return a&&a.constructor==Array}e.extend(l.prototype,{markerClassName:"hasSVG",svgNS:"http://www.w3.org/2000/svg",xlinkNS:"http://www.w3.org/1999/xlink",_wrapperClass:o,_attrNames:{class_:"class",in_:"in",alignmentBaseline:"alignment-baseline",baselineShift:"baseline-shift",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",vertAdvY:"vert-adv-y",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode"},_attachSVG:function(a,b){var d=a.namespaceURI==this.svgNS?a:null,a=d?null:a;if(!e(a||d).hasClass(this.markerClassName)){typeof b=="string"?b={loadURL:b}:typeof b=="function"&&(b={onLoad:b});e(a||d).addClass(this.markerClassName);try{d||(d=document.createElementNS(this.svgNS,"svg"),d.setAttribute("version","1.1"),b.width?d.setAttribute("width",b.width):d.setAttribute("width",a.clientWidth),b.height?d.setAttribute("height",b.height):d.setAttribute("height",a.clientHeight),a.appendChild(d)),this._afterLoad(a,d,b||{})}catch(c){if(e.browser.msie){if(!a.id)a.id="svg"+this._uuid++;this._settings[a.id]=b;a.innerHTML='<embed type="image/svg+xml" width="100%" height="100%" src="'+(b.initPath||"")+'blank.svg"/>'}else a.innerHTML='<p class="svg_error">'+this.local.notSupportedText+"</p>"}}},_registerSVG:function(){for(var a=0;a<document.embeds.length;a++){var b=document.embeds[a].parentNode;if(e(b).hasClass(e.svg.markerClassName)&&!e.data(b,"svgwrapper")){var d=null;try{d=document.embeds[a].getSVGDocument()}catch(c){setTimeout(e.svg._registerSVG,250);break}(d=d?d.documentElement:null)&&e.svg._afterLoad(b,d)}}},_afterLoad:function(a,b,d){d=d||this._settings[a.id];this._settings[a?a.id:""]=null;var c=new this._wrapperClass(b,a);e.data(a||b,"svgwrapper",c);try{d.loadURL&&c.load(d.loadURL,d),d.settings&&c.configure(d.settings),d.onLoad&&!d.loadURL&&d.onLoad.apply(a||b,[c])}catch(h){alert(h)}},_getSVG:function(a){a=typeof a=="string"?e(a)[0]:a.jquery?a[0]:a;return e.data(a,"svgwrapper")},_destroySVG:function(a){var b=e(a);b.hasClass(this.markerClassName)&&(b.removeClass(this.markerClassName),a.namespaceURI!=this.svgNS&&b.empty(),e.removeData(a,"svgwrapper"))},addExtension:function(a,b){this._extensions.push([a,b])}});e.extend(o.prototype,{_width:function(){return this._container?this._container.clientWidth:this._svg.width},_height:function(){return this._container?this._container.clientHeight:this._svg.height},root:function(){return this._svg},configure:function(a,b){if(b)for(var d=this._svg.attributes.length-1;d>=0;d--){var c=this._svg.attributes.item(d);c.nodeName=="onload"||c.nodeName=="version"||c.nodeName.substring(0,5)=="xmlns"||this._svg.attributes.removeNamedItem(c.nodeName)}for(var e in a)this._svg.setAttribute(e,a[e]);return this},getElementById:function(a){return this._svg.ownerDocument.getElementById(a)},change:function(a,b){if(a)for(var d in b)b[d]==null?a.removeAttribute(d):a.setAttribute(d,b[d]);return this},_args:function(a,b,d){b.splice(0,0,"parent");b.splice(b.length,0,"settings");var c={},h=0;a[0]!=null&&a[0].jquery&&(a[0]=a[0][0]);if(a[0]!=null&&!(typeof a[0]=="object"&&a[0].nodeName))c.parent=null,h=1;for(var f=0;f<a.length;f++)c[b[f+h]]=a[f];d&&e.each(d,function(a,b){if(typeof c[b]=="object")c.settings=c[b],c[b]=null});return c},title:function(a,b,d){var c=this._args(arguments,["text"]),e=this._makeNode(c.parent,"title",c.settings||{});e.appendChild(this._svg.ownerDocument.createTextNode(c.text));return e},describe:function(a,b,d){var c=this._args(arguments,["text"]),e=this._makeNode(c.parent,"desc",c.settings||{});e.appendChild(this._svg.ownerDocument.createTextNode(c.text));return e},defs:function(a,b,d){var c=this._args(arguments,["id"],["id"]);return this._makeNode(c.parent,"defs",e.extend(c.id?{id:c.id}:{},c.settings||{}))},symbol:function(a,b,d,c,h,f,m){var j=this._args(arguments,["id","x1","y1","width","height"]);return this._makeNode(j.parent,"symbol",e.extend({id:j.id,viewBox:j.x1+" "+j.y1+" "+j.width+" "+j.height},j.settings||{}))},marker:function(a,b,d,c,h,f,m,j){var k=this._args(arguments,"id,refX,refY,mWidth,mHeight,orient".split(","),["orient"]);return this._makeNode(k.parent,"marker",e.extend({id:k.id,refX:k.refX,refY:k.refY,markerWidth:k.mWidth,markerHeight:k.mHeight,orient:k.orient||"auto"},k.settings||{}))},style:function(a,b,d){var c=this._args(arguments,["styles"]),h=this._makeNode(c.parent,"style",e.extend({type:"text/css"},c.settings||{}));h.appendChild(this._svg.ownerDocument.createTextNode(c.styles));e.browser.opera&&e("head").append('<style type="text/css">'+c.styles+"</style>");return h},script:function(a,b,d,c){var h=this._args(arguments,["script","type"],["type"]),f=this._makeNode(h.parent,"script",e.extend({type:h.type||"text/javascript"},h.settings||{}));f.appendChild(this._svg.ownerDocument.createTextNode(this._escapeXML(h.script)));e.browser.mozilla||e.globalEval(h.script);return f},linearGradient:function(a,b,d,c,h,f,m,j){var k=this._args(arguments,"id,stops,x1,y1,x2,y2".split(","),["x1"]),g=e.extend({id:k.id},k.x1!=null?{x1:k.x1,y1:k.y1,x2:k.x2,y2:k.y2}:{});return this._gradient(k.parent,"linearGradient",e.extend(g,k.settings||{}),k.stops)},radialGradient:function(a,b,d,c,h,f,m,j,k){var g=this._args(arguments,"id,stops,cx,cy,r,fx,fy".split(","),["cx"]),l=e.extend({id:g.id},g.cx!=null?{cx:g.cx,cy:g.cy,r:g.r,fx:g.fx,fy:g.fy}:{});return this._gradient(g.parent,"radialGradient",e.extend(l,g.settings||{}),g.stops)},_gradient:function(a,b,d,c){a=this._makeNode(a,b,d);for(b=0;b<c.length;b++)d=c[b],this._makeNode(a,"stop",e.extend({offset:d[0],stopColor:d[1]},d[2]!=null?{stopOpacity:d[2]}:{}));return a},pattern:function(a,b,d,c,h,f,g,j,k,l,i){var n=this._args(arguments,"id,x,y,width,height,vx,vy,vwidth,vheight".split(","),["vx"]),o=e.extend({id:n.id,x:n.x,y:n.y,width:n.width,height:n.height},n.vx!=null?{viewBox:n.vx+" "+n.vy+" "+n.vwidth+" "+n.vheight}:{});return this._makeNode(n.parent,"pattern",e.extend(o,n.settings||{}))},mask:function(a,b,d,c,h,f,g){var j=this._args(arguments,["id","x","y","width","height"]);return this._makeNode(j.parent,"mask",e.extend({id:j.id,x:j.x,y:j.y,width:j.width,height:j.height},j.settings||{}))},createPath:function(){return new i},createText:function(){return new p},svg:function(a,b,d,c,h,f,g,j,k,l){var i=this._args(arguments,"x,y,width,height,vx,vy,vwidth,vheight".split(","),["vx"]),n=e.extend({x:i.x,y:i.y,width:i.width,height:i.height},i.vx!=null?{viewBox:i.vx+" "+i.vy+" "+i.vwidth+" "+i.vheight}:{});return this._makeNode(i.parent,"svg",e.extend(n,i.settings||{}))},group:function(a,b,d){var c=this._args(arguments,["id"],["id"]);return this._makeNode(c.parent,"g",e.extend({id:c.id},c.settings||{}))},use:function(a,b,d,c,h,f,g){var j=this._args(arguments,["x","y","width","height","ref"]);if(typeof j.x=="string")j.ref=j.x,j.settings=j.y,j.x=j.y=j.width=j.height=null;var k=this._makeNode(j.parent,"use",e.extend({x:j.x,y:j.y,width:j.width,height:j.height},j.settings||{}));k.setAttributeNS(e.svg.xlinkNS,"href",j.ref);return k},link:function(a,b,d){var c=this._args(arguments,["ref"]),h=this._makeNode(c.parent,"a",c.settings);h.setAttributeNS(e.svg.xlinkNS,"href",c.ref);return h},image:function(a,b,d,c,h,f,g){var j=this._args(arguments,["x","y","width","height","ref"]),k=this._makeNode(j.parent,"image",e.extend({x:j.x,y:j.y,width:j.width,height:j.height},j.settings||{}));k.setAttributeNS(e.svg.xlinkNS,"href",j.ref);return k},path:function(a,b,d){var c=this._args(arguments,["path"]);return this._makeNode(c.parent,"path",e.extend({d:c.path.path?c.path.path():c.path},c.settings||{}))},rect:function(a,b,d,c,h,f,g,j){var k=this._args(arguments,"x,y,width,height,rx,ry".split(","),["rx"]);return this._makeNode(k.parent,"rect",e.extend({x:k.x,y:k.y,width:k.width,height:k.height},k.rx?{rx:k.rx,ry:k.ry}:{},k.settings||{}))},circle:function(a,b,d,c,h){var f=this._args(arguments,["cx","cy","r"]);return this._makeNode(f.parent,"circle",e.extend({cx:f.cx,cy:f.cy,r:f.r},f.settings||{}))},ellipse:function(a,b,d,c,h,f){var g=this._args(arguments,["cx","cy","rx","ry"]);return this._makeNode(g.parent,"ellipse",e.extend({cx:g.cx,cy:g.cy,rx:g.rx,ry:g.ry},g.settings||{}))},line:function(a,b,d,c,h,f){var g=this._args(arguments,["x1","y1","x2","y2"]);return this._makeNode(g.parent,"line",e.extend({x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2},g.settings||{}))},polyline:function(a,b,d){var c=this._args(arguments,["points"]);return this._poly(c.parent,"polyline",c.points,c.settings)},polygon:function(a,b,d){var c=this._args(arguments,["points"]);return this._poly(c.parent,"polygon",c.points,c.settings)},_poly:function(a,b,d,c){for(var h="",f=0;f<d.length;f++)h+=d[f].join()+" ";return this._makeNode(a,b,e.extend({points:e.trim(h)},c||{}))},text:function(a,b,d,c,h){var f=this._args(arguments,["x","y","value"]);if(typeof f.x=="string"&&arguments.length<4)f.value=f.x,f.settings=f.y,f.x=f.y=null;return this._text(f.parent,"text",f.value,e.extend({x:f.x&&g(f.x)?f.x.join(" "):f.x,y:f.y&&g(f.y)?f.y.join(" "):f.y},f.settings||{}))},textpath:function(a,b,d,c){var h=this._args(arguments,["path","value"]),f=this._text(h.parent,"textPath",h.value,h.settings||{});f.setAttributeNS(e.svg.xlinkNS,"href",h.path);return f},_text:function(a,b,d,c){a=this._makeNode(a,b,c);if(typeof d=="string")a.appendChild(a.ownerDocument.createTextNode(d));else for(b=0;b<d._parts.length;b++)if(c=d._parts[b],c[0]=="tspan"){var h=this._makeNode(a,c[0],c[2]);h.appendChild(a.ownerDocument.createTextNode(c[1]));a.appendChild(h)}else c[0]=="tref"?(h=this._makeNode(a,c[0],c[2]),h.setAttributeNS(e.svg.xlinkNS,"href",c[1]),a.appendChild(h)):c[0]=="textpath"?(h=e.extend({},c[2]),h.href=null,h=this._makeNode(a,c[0],h),h.setAttributeNS(e.svg.xlinkNS,"href",c[2].href),h.appendChild(a.ownerDocument.createTextNode(c[1])),a.appendChild(h)):a.appendChild(a.ownerDocument.createTextNode(c[1]));return a},other:function(a,b,d){var c=this._args(arguments,["name"]);return this._makeNode(c.parent,c.name,c.settings||{})},_makeNode:function(a,b,d){var a=a||this._svg,c=this._svg.ownerDocument.createElementNS(e.svg.svgNS,b);for(b in d){var h=d[b];if(h!=null&&h!=null&&(typeof h!="string"||h!=""))c.setAttribute(e.svg._attrNames[b]||b,h)}a.appendChild(c);return c},add:function(a,b){var d=this._args(arguments.length==1?[null,a]:arguments,["node"]),c=this;d.parent=d.parent||this._svg;try{if(e.svg._renesis)throw"Force traversal";d.parent.appendChild(d.node.cloneNode(!0))}catch(h){d.node=d.node.jquery?d.node:e(d.node),d.node.each(function(){var a=c._cloneAsSVG(this);a&&d.parent.appendChild(a)})}return this},_cloneAsSVG:function(a){var b=null;if(a.nodeType==1){for(var b=this._svg.ownerDocument.createElementNS(e.svg.svgNS,this._checkName(a.nodeName)),d=0;d<a.attributes.length;d++){var c=a.attributes.item(d);c.nodeName!="xmlns"&&c.nodeValue&&(c.prefix=="xlink"?b.setAttributeNS(e.svg.xlinkNS,c.localName,c.nodeValue):b.setAttribute(this._checkName(c.nodeName),c.nodeValue))}for(d=0;d<a.childNodes.length;d++)(c=this._cloneAsSVG(a.childNodes[d]))&&b.appendChild(c)}else if(a.nodeType==3)e.trim(a.nodeValue)&&(b=this._svg.ownerDocument.createTextNode(a.nodeValue));else if(a.nodeType==4&&e.trim(a.nodeValue))try{b=this._svg.ownerDocument.createCDATASection(a.nodeValue)}catch(h){b=this._svg.ownerDocument.createTextNode(a.nodeValue.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"))}return b},_checkName:function(a){a=a.substring(0,1)>="A"&&a.substring(0,1)<="Z"?a.toLowerCase():a;return a.substring(0,4)=="svg:"?a.substring(4):a},load:function(a,b){b=typeof b=="boolean"?{addTo:b}:typeof b=="function"?{onLoad:b}:b||{};b.addTo||this.clear(!1);var d=[this._svg.getAttribute("width"),this._svg.getAttribute("height")],c=this,h=function(a){a=e.svg.local.errorLoadingText+": "+a;b.onLoad?b.onLoad.apply(c._container||c._svg,[c,a]):c.text(null,10,20,a)},f=function(a){var b=new ActiveXObject("Microsoft.XMLDOM");b.validateOnParse=!1;b.resolveExternals=!1;b.async=!1;b.loadXML(a);return b.parseError.errorCode!=0?(h(b.parseError.reason),null):b},g=function(a){if(a)if(a.documentElement.nodeName!="svg"){var f=a.getElementsByTagName("parsererror"),a=f.length?f[0].getElementsByTagName("div"):[];h(!f.length?"???":(a.length?a[0]:f[0]).firstChild.nodeValue)}else{for(var g={},f=0;f<a.documentElement.attributes.length;f++){var i=a.documentElement.attributes.item(f);if(!(i.nodeName=="version"||i.nodeName.substring(0,5)=="xmlns"))g[i.nodeName]=i.nodeValue}c.configure(g,!0);a=a.documentElement.childNodes;for(f=0;f<a.length;f++)try{if(e.svg._renesis)throw"Force traversal";c._svg.appendChild(a[f].cloneNode(!0));a[f].nodeName=="script"&&e.globalEval(a[f].textContent)}catch(l){c.add(null,a[f])}b.changeSize||c.configure({width:d[0],height:d[1]});b.onLoad&&b.onLoad.apply(c._container||c._svg,[c])}};a.match("<svg")?g(e.browser.msie?f(a):(new DOMParser).parseFromString(a,"text/xml")):e.ajax({url:a,dataType:e.browser.msie?"text":"xml",success:function(a){g(e.browser.msie?f(a):a)},error:function(a,b,c){h(b+(c?" "+c.message:""))}});return this},remove:function(a){a=a.jquery?a[0]:a;a.parentNode.removeChild(a);return this},clear:function(a){for(a&&this.configure({},!0);this._svg.firstChild;)this._svg.removeChild(this._svg.firstChild);return this},toSVG:function(a){a=a||this._svg;return typeof XMLSerializer=="undefined"?this._toSVG(a):(new XMLSerializer).serializeToString(a)},_toSVG:function(a){var b="";if(!a)return b;if(a.nodeType==3)b=a.nodeValue;else if(a.nodeType==4)b="<![CDATA["+a.nodeValue+"]]\>";else{b="<"+a.nodeName;if(a.attributes)for(var d=0;d<a.attributes.length;d++){var c=a.attributes.item(d);e.trim(c.nodeValue)==""||c.nodeValue.match(/^\[object/)||c.nodeValue.match(/^function/)||(b+=" "+(c.namespaceURI==e.svg.xlinkNS?"xlink:":"")+c.nodeName+'="'+c.nodeValue+'"')}if(a.firstChild){b+=">";for(d=a.firstChild;d;)b+=this._toSVG(d),d=d.nextSibling;b+="</"+a.nodeName+">"}else b+="/>"}return b},_escapeXML:function(a){a=a.replace(/&/g,"&amp;");a=a.replace(/</g,"&lt;");return a=a.replace(/>/g,"&gt;")}});e.extend(i.prototype,{reset:function(){this._path="";return this},move:function(a,b,d){d=g(a)?b:d;return this._coords(d?"m":"M",a,b)},line:function(a,b,d){d=g(a)?b:d;return this._coords(d?"l":"L",a,b)},horiz:function(a,b){this._path+=(b?"h":"H")+(g(a)?a.join(" "):a);return this},vert:function(a,b){this._path+=(b?"v":"V")+(g(a)?a.join(" "):a);return this},curveC:function(a,b,d,c,e,f,i){i=g(a)?b:i;return this._coords(i?"c":"C",a,b,d,c,e,f)},smoothC:function(a,b,d,c,e){e=g(a)?b:e;return this._coords(e?"s":"S",a,b,d,c)},curveQ:function(a,b,d,c,e){e=g(a)?b:e;return this._coords(e?"q":"Q",a,b,d,c)},smoothQ:function(a,b,d){d=g(a)?b:d;return this._coords(d?"t":"T",a,b)},_coords:function(a,b,d,c,e,f,i){if(g(b))for(d=0;d<b.length;d++)c=b[d],this._path+=(d==0?a:" ")+c[0]+","+c[1]+(c.length<4?"":" "+c[2]+","+c[3]+(c.length<6?"":" "+c[4]+","+c[5]));else this._path+=a+b+","+d+(c==null?"":" "+c+","+e+(f==null?"":" "+f+","+i));return this},arc:function(a,b,d,c,e,f,i,j){j=g(a)?b:j;this._path+=j?"a":"A";if(g(a))for(b=0;b<a.length;b++)d=a[b],this._path+=(b==0?"":" ")+d[0]+","+d[1]+" "+d[2]+" "+(d[3]?"1":"0")+","+(d[4]?"1":"0")+" "+d[5]+","+d[6];else this._path+=a+","+b+" "+d+" "+(c?"1":"0")+","+(e?"1":"0")+" "+f+","+i;return this},close:function(){this._path+="z";return this},path:function(){return this._path}});i.prototype.moveTo=i.prototype.move;i.prototype.lineTo=i.prototype.line;i.prototype.horizTo=i.prototype.horiz;i.prototype.vertTo=i.prototype.vert;i.prototype.curveCTo=i.prototype.curveC;i.prototype.smoothCTo=i.prototype.smoothC;i.prototype.curveQTo=i.prototype.curveQ;i.prototype.smoothQTo=i.prototype.smoothQ;i.prototype.arcTo=i.prototype.arc;e.extend(p.prototype,{reset:function(){this._parts=[];return this},string:function(a){this._parts[this._parts.length]=["text",a];return this},span:function(a,b){this._parts[this._parts.length]=["tspan",a,b];return this},ref:function(a,b){this._parts[this._parts.length]=["tref",a,b];return this},path:function(a,b,d){this._parts[this._parts.length]=["textpath",b,e.extend({href:a},d||{})];return this}});e.fn.svg=function(a){var b=Array.prototype.slice.call(arguments,1);return typeof a=="string"&&a=="get"?e.svg["_"+a+"SVG"].apply(e.svg,[this[0]].concat(b)):this.each(function(){typeof a=="string"?e.svg["_"+a+"SVG"].apply(e.svg,[this].concat(b)):e.svg._attachSVG(this,a||{})})};e.svg=new l})(jQuery);
