/**
 * $tartup.js - minified v1.2
 * https://github.com/mitzerh/Startup.js
 * MIT License
 */
(function(){var j,m,k,i;function n(){var b=this;this.pageReady=function(){var a=b._PRStack||!1;if(!o.isArray(a))return!1;c(a)();delete b._PRStack;j=!0};this.site=new q(this);this.utils=new e(this)}function l(b,a,d){function r(a){var a=a||"",b=0<a.length?-1<m.indexOf(a)?!0:!1:!1;b&&f("[AddConstructor] Error: Reserved word '"+a+"'");return b}a=o.trimStr(a);if(-1<a.indexOf("."))for(var a="."===a.charAt(0)?a.slice(1,a.length):a,c=a.split("."),i=c.length,e=0;e<i;e++){var g=c[e];if(0===e&&r(g))return!1; b[g]||(b[g]=e!==i-1?{}:"function"!==typeof d?{}:d);b=b[g]}else{if(0<a.length&&!b[a]){if(r(a))return!1;"function"!==typeof d?b[a]={}:(b[a]&&f("[AddConstructor] Warning: Overwriting existing constructor function: "+a),b[a]=d)}else if(r(a))return!1;b=b[a]}if("object"===typeof d&&!o.isArray(d))for(var h in d)b[h]&&f("[AddConstructor] Warning: Overwriting '"+h+"' "+typeof b[h]+". (constructor:"+a+" )"),b[h]=d[h];return b}function q(b){var a=this;this.Add=function(b,c){return l(a,b,c)};this.OnPageReady= (new p(a,b)).callback;this.OnDocReady=(new h(a,b)).callback}function e(){var b=this;this.Add=function(a,d){return l(b,a,d)}}function p(b,a){this.callback=function(){var d=arguments,c=1===d.length?"":d[0],f=1===d.length?d[0]:d[1],f=(d=0<c.length?!0:!1)?b.Add(c,f):f;j?g(f):(a._PRStack||(a._PRStack=[]),a._PRStack.push({n:!d?"GEN":c,t:f}))}}function h(b,a){this.callback=function(){var d=arguments,f=1===d.length?"":d[0],e=1===d.length?d[0]:d[1],e=(d=0<f.length?!0:!1)?b.Add(f,e):e;k?g(e):(a._DRStack||(a._DRStack= []),a._DRStack.push({n:!d?"GEN":f,t:e}),i||(i=!0,DomReady.ready(function(){var b=a._DRStack||!1;if(!o.isArray(b))return!1;c(b)();delete a._DRStack;k=!0})))}}function g(b,a){var a="function"===typeof a?a:!1,d=function(){};"function"===typeof b?d=function(){a&&a();b()}:b&&"function"===typeof b.init&&(d=function(){a&&a();b.init()});if(a)return d;d()}function c(b){for(var a=0,d=b.length,c=[],f=function(){};a<=d;){var e=b[a];e&&"GEN"===e.n?(c.push(e),b.splice(a,1),d=b.length):a++}c=c.concat(b);d=c.length; for(b=0;b<d;b++)f=g(c[b].t,f);return f}function f(b){window.console&&console.log&&console.log(b)}m="Add|OnPageReady|OnDocReady";j=void 0;k=void 0;i=void 0;n.prototype={Add:function(b,a){return l(this,b,a)}};var o={isArray:function(b){return"[object Array]"===Object.prototype.toString.call(b||!1)},trimStr:function(b){return!b?"":b.toString().replace(/^\s+/,"").replace(/\s+$/,"")}};window._$tartup=window.$tartup=new n})(); (function(){var j,m,k;function i(){if(!h&&(h=!0,g)){for(var c=0;c<g.length;c++)g[c].call(window,[]);g=[]}}function n(c){var f=window.onload;window.onload="function"!=typeof window.onload?c:function(){f&&f();c()}}function l(){if(!p){p=!0;document.addEventListener&&!j&&document.addEventListener("DOMContentLoaded",i,!1);m&&window==top&&function(){if(!h){try{document.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,0);return}i()}}();j&&document.addEventListener("DOMContentLoaded", function(){if(!h){for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].disabled){setTimeout(arguments.callee,0);return}i()}},!1);if(k){var c;(function(){if(!h)if("loaded"!=document.readyState&&"complete"!=document.readyState)setTimeout(arguments.callee,0);else{if(void 0===c){for(var e=document.getElementsByTagName("link"),g=0;g<e.length;g++)"stylesheet"==e[g].getAttribute("rel")&&c++;e=document.getElementsByTagName("style");c+=e.length}document.styleSheets.length!=c?setTimeout(arguments.callee, 0):i()}})()}n(i)}}var q=window.DomReady={},e=navigator.userAgent.toLowerCase();e.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/);k=/webkit/.test(e);j=/opera/.test(e);m=/msie/.test(e)&&!/opera/.test(e);/mozilla/.test(e)&&/(compatible|webkit)/.test(e);var p=!1,h=!1,g=[];q.ready=function(c){l();h?c.call(window,[]):g.push(function(){return c.call(window,[])})};l()})();

// http://code.google.com/p/domready/
(function(){function e(){if(!d&&(d=!0,c)){for(var a=0;a<c.length;a++)c[a].call(window,[]);c=[]}}function j(a){var g=window.onload;window.onload=typeof window.onload!="function"?a:function(){g&&g();a()}}function h(){if(!i){i=!0;document.addEventListener&&!f.opera&&document.addEventListener("DOMContentLoaded",e,!1);f.msie&&window==top&&function(){if(!d){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}e()}}();f.opera&&document.addEventListener("DOMContentLoaded", function(){if(!d){for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].disabled){setTimeout(arguments.callee,0);return}e()}},!1);if(f.safari){var a;(function(){if(!d)if(document.readyState!="loaded"&&document.readyState!="complete")setTimeout(arguments.callee,0);else{if(a===void 0){for(var b=document.getElementsByTagName("link"),c=0;c<b.length;c++)b[c].getAttribute("rel")=="stylesheet"&&a++;b=document.getElementsByTagName("style");a+=b.length}document.styleSheets.length!=a?setTimeout(arguments.callee, 0):e()}})()}j(e)}}var k=window.DomReady={},b=navigator.userAgent.toLowerCase(),f={version:(b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(b),opera:/opera/.test(b),msie:/msie/.test(b)&&!/opera/.test(b),mozilla:/mozilla/.test(b)&&!/(compatible|webkit)/.test(b)},i=!1,d=!1,c=[];k.ready=function(a){h();d?a.call(window,[]):c.push(function(){return a.call(window,[])})};h()})();

/** Cookie plugin - Compressed
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var b="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*24*60*60*1E3)}else b=a.expires;b="; expires="+b.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!= ""){a=document.cookie.split(";");for(b=0;b<a.length;b++){e=jQuery.trim(a[b]);if(e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}}return c}};

/**
 * Load Pooler attempt function
 * https://github.com/mitzerh/loadAttempt.js
 * MIT License.
 */
(function(){function d(c){return typeof c==="function"?!0:!1}var f=function(){var c,b=arguments;if(b.length===0)return!1;var a={attempt:0,timeout:500};if(b.length===1&&typeof b[0]==="object"){for(c in b[0])a[c]=b[0][c];if(a.callback)c=a.callback;else return!1;if(!c.check||!c.success)return!1;else a._check=c.check,a._success=c.success;if(c.timedOut)a._timeout=c.timedOut}else if(!isNaN(b[0])&&!isNaN(b[1])&&d(b[2])&&d(b[3])){a.attempt=b[0];a.timeout=b[1];a._check=b[2];a._success=b[3];if(b[4])a._timeout= b[4];if(b[5])a._abort=b[5]}else if(d(b[0])&&d(b[1])){a._check=b[0];a._success=b[1];if(b[2])a._timeout=b[2];if(b[3])a._abort=b[3]}else return!1;if(!d(a._check)||!d(a._success))return!1;if(!d(a._timeout))a._timeout=function(){};if(isNaN(a.timeout))return!1;else a.timeout=parseInt(a.timeout,10);if(isNaN(a.attempt))return!1;else a.attempt=parseInt(a.attempt,10);var e=!1,g=!1;if(a.attempt&&a.timeout){var f=function(){g?clearTimeout(e):a._check()?(a._success(),clearTimeout(e)):a.attempt>0?e=setTimeout(function(){f()}, a.timeout):a._timeout();a.attempt--};f()}else e=setInterval(function(){g?clearInterval(e):a._check()&&(a._success(),clearInterval(e))},a.timeout);return{abort:function(){g=!0}}};if(typeof jQuery!=="undefined"&&jQuery.extend&&!jQuery.loadAttempt)jQuery.extend({loadAttempt:f});else if(!window.loadAttempt)window.loadAttempt=f})();

/**
 * jQuery Anything Carousel plugin
 * https://github.com/mitzerh/jACarousel.js
 * Dependecies: jQuery
 * MIT License
 */
(function(f){function s(){this._speed="slow";this._scrollTo=this._scroll=1;this._scrollType="relative";this._rotate=!0;this._auto={set:!1,resume:!1,speed:5E3};this._focus={item:0,animate:!1};this._slide=this._show=null;this.cloneClass="item-clone";this.isAutoScroll=this._auto.set;this.isAutoScrollResume=this._auto.resume;this.autoSpeed=this._auto.speed;this.minAutoSpeed=3E3;this.targetItem=this.currentCount=0;this.scrollBatch=1;this.timeout=null;this.triggered=this.isItemCountOK=this.isLastBatch= !1;this._eventCallback=function(){};this.carouselInfoObj={}}function t(a){this.root=a}function u(){typeof console!=="undefined"&&console.log&&console.log("[init] error initializing carousel.");return!1}f.fn.jACarousel=function(a){if(!a)return!1;if(!a.slide||!a.show)return!1;return this.each(function(){var d=new s;d.init(f(this),a);return d})};var o={holder:"slideshow",control:"controls"};s.prototype={init:function(a,d){function m(a){var b,d,e,g,m,k=0;c.find("ul:first").children().each(function(){var c= f(this),q=j.getCSSDimension("margin",this,!0),r=j.getCSSDimension("padding",this,!0),n=j.getCSSDimension("border",this,!0);b=j.format(j.getCSSDimension(a,this));a==="width"?(d=q.Left+q.Right,e=r.Left+r.Right,g=n.Left+n.Right,m=c.outerWidth(!0)):(d=q.Top+q.Bottom,e=r.Top+r.Bottom,g=n.Top+n.Bottom,m=c.outerHeight(!0));c=b+d+e+g;c=m>c?m:c;c>k&&(k=c)});return k}for(var e in d)if(e==="auto"||e==="focus"){var n=d[e],b;for(b in this["_"+e])n[b]&&(this["_"+e][b]=n[b])}else if(e==="identifier")for(var k in o)d[e][k]&& (o[k]=d[e][k]);else this["_"+e]=d[e];this.obj=a;this.slideshowObj=f(this.obj).find("div."+o.holder);this.controlObj=f(this.obj).find("[class*='"+o.control+"']");var c=this.slideshowObj;if(f(this.slideshowObj).size()<1||this._slide!=="vertical"&&this._slide!=="horizontal")return u(),!1;c.scrollLeft(0).scrollTop(0);this.holder={width:j.format(c.css("width")),height:j.format(c.css("height")),item:{count:c.find("ul:first").children().size(),width:m("width"),height:m("height")}};if(this.holder.item.count=== 0||this._slide==="horizontal"&&this.holder.item.width<=0||this._slide==="vertical"&&this.holder.item.height<=0)return u(),!1;else this.isItemCountOK=!0;if(this._scrollType==="absolute"&&(e=this.holder.item.count%this._scroll,e>0)){var g=this._scroll-e;this.holder.item.count+=g;c.find("ul:first").each(function(){for(var a=[],b=f("<span></span>"),c=0;c<g;c++)a.push("<li>&nbsp;</li>");b.append(a.join(""));b.children().each(function(){f(this).css("visibility","hidden")});f(this).append(b.children())})}e= Math.ceil((this.holder.item.count-this._show)/this._scroll)+(this.holder.item.count-this._show%this._scroll>0?1:0);this.maxBatch=e<1?1:e;if(typeof this._speed==="string")this._speed=f.fx.speeds[this._speed]?f.fx.speeds[this._speed]:f.fx.speeds.slow;if(this._auto.set)this.isAutoScroll=j.checkBoolean(this._auto.set);if(this._auto.resume)this.isAutoScrollResume=j.checkBoolean(this._auto.resume);if(!isNaN(this._auto.speed))this.autoSpeed=this._auto.speed<this.minAutoSpeed?this.minAutoSpeed:this._auto.speed; this.autoSpeed+=this._speed;this._focus.item>0&&this.slide("scrollToItem",this._focus.item,this._focus.animate);this.setListeners()},setListeners:function(){var a=this;a._eventCallback(a.carouselInfoObj={event:"init",items:a.holder.item.count,target:0,scroll:a._scroll,start:1,end:a._show>a.holder.item.count?a.holder.item.count:a._show,batch:{current:1,max:a.maxBatch}});a._controlsCallback?(a.externalControls=new t(a),a._controlsCallback(a.externalControls)):(a.isAutoScroll=a._auto.set?a._auto.set: !0,a.isAutoScrollResume=a._auto.resume?a._auto.resume:!0);a.externalControls.scrollToItem(1);a.isAutoScroll&&a.isItemCountOK&&(a.slideshowObj.hover(function(){if(a.isAutoScroll)a.autoScroll.stop(a.timeout),a.isAutoScroll=!1,a.carouselInfoObj.event="autoScrollStop",a._eventCallback(a.carouselInfoObj)},function(){if(a.isAutoScrollResume)a.autoScroll.play(a),a.isAutoScroll=!0,a.carouselInfoObj.event="autoScrollPlay",a._eventCallback(a.carouselInfoObj)}),a.autoScroll.play(a))},slide:function(a,d,m){function e(){j.find("> li:last").each(function(){var a= f(this),b=j.find("> li:first").clone().addClass(p).removeClass("first");f("<ul></ul>").html(b).each(function(){for(var b=2;b<=g;b++)f(this).append(j.find("> li:nth-child("+b+")").clone().addClass(p));a.after(f(this).children())})});var a=b._slide==="vertical"?{scrollTop:l.scrollTop()+g*c.height}:{scrollLeft:l.scrollLeft()+g*c.width};l.animate(a,b._speed,"swing",function(){b._slide==="vertical"?l.scrollTop(0):l.scrollLeft(0);j.find("[class*='"+p+"']").remove();b.triggered=!1});b.currentCount=0;b.scrollBatch= 1;b.isLastBatch=!1;b._eventCallback(b.carouselInfoObj={event:"scrollToFirst",items:c.count,target:0,scroll:b._scroll,start:1,end:b._show>c.count?c.count:b._show,batch:{current:1,max:b.maxBatch}})}function n(){j.find("> li:first").removeClass("first").each(function(){var a=f(this),d=c.count-b._show+1,e=j.find("> li:nth-child("+d+")").clone().addClass(p+" first");f("<ul></ul>").html(e).each(function(){for(var e=d+1;e<=c.count;e++)f(this).append(j.find("> li:nth-child("+e+")").clone().addClass("item-clone")); a.before(f(this).children());b._slide==="vertical"?l.scrollTop(g*c.height):l.scrollLeft(g*c.width)})});l.animate(b._slide==="vertical"?{scrollTop:0}:{scrollLeft:0},b._speed,"swing",function(){j.find("[class*='"+p+"']").remove();j.find(":first").addClass("first");b._slide==="vertical"?l.scrollTop((c.count-g)*c.height):l.scrollLeft((c.count-g)*c.width);b.triggered=!1});b.currentCount=c.count-g;b.scrollBatch=b.maxBatch;b.isLastBatch=!0;b._eventCallback(b.carouselInfoObj={event:"scrollToLast",items:c.count, target:0,scroll:b._scroll,start:c.count-g,end:c.count,batch:{current:b.maxBatch,max:b.maxBatch}})}d=d||!1;m=typeof m==="undefined"||m===null?!0:m;this.triggered=!0;var b=this,k=b._scroll,c=b.holder.item,g=b._show,i=b.currentCount,h=b.scrollBatch,l=b.slideshowObj,j=f("ul:first",l),p=this.cloneClass,o=0;if(a==="scrollToBatch"){if(!d||isNaN(d))return;d<=1?(h=1,i=0,b.isLastBatch=!1):d>=b.maxBatch?(h=b.maxBatch,i=c.count-g,b.isLastBatch=!0):(h=d,i=k*(d-1));if(i===b.currentCount&&h===b.scrollBatch)return}else if(a=== "scrollToItem"){if(!d||isNaN(d))return;d<=1?(h=1,i=0,o=1,b.isLastBatch=!1):d>=c.count?(h=b.maxBatch,i=c.count-g,o=c.count,b.isLastBatch=!0):(h=Math.ceil(d/k),h>=b.maxBatch?(h=b.maxBatch,i=c.count-g,b.isLastBatch=!0):i=k*(h-1),o=d);if(i===b.currentCount&&h===b.scrollBatch&&b.carouselInfoObj.target===d)return}else if(a==="next")if(d=i+k,d+g>c.count){if(i+g===c.count&&this._rotate){e();return}i=c.count-g;b.isLastBatch=!0;h++;h=h>b.maxBatch?b.maxBatch:h}else i=d,h++;else if(a==="prev")if(d=i-k,d<0)if(i= 0,h--,h<1&&b._rotate){n();return}else h<1&&(h=1);else i=d,h--;b.scrollBatch=h;b.currentCount=i;b._eventCallback(b.carouselInfoObj={event:a,items:c.count,target:o,scroll:b._scroll,start:i+1,end:i+g>c.count?c.count:i+g,batch:{current:b.scrollBatch,max:b.maxBatch}});a=i*(b._slide==="vertical"?c.height:c.width);m?l.animate(b._slide==="vertical"?{scrollTop:a}:{scrollLeft:a},b._speed,"swing",function(){b.triggered=!1}):(b._slide==="vertical"?l.scrollTop(a):l.scrollLeft(a),b.triggered=!1)},autoScroll:{play:function(a){a.timeout= setInterval(function(){a.slide("next")},a.autoSpeed)},stop:function(a){clearInterval(a)}}};t.prototype={scrollToBatch:function(){var a=arguments,d,f=!0;typeof a[0]==="object"?(d=a[0].batch,f=a[0].animate):d=a[0];this.root.slide("scrollToBatch",d,f)},scrollToItem:function(){var a=arguments,d,f=!0;typeof a[0]==="object"?(d=a[0].item,f=a[0].animate):d=a[0];this.root.slide("scrollToItem",d,f)},slide:function(a){this.root.isItemCountOK&&(this.root.triggered||this.root.slide(a))},stopAutoScroll:function(){this.root.isAutoScrollResume= !1;this.root.autoScroll.stop(this.root.timeout)},startAutoScroll:function(){this.root.autoScroll.play(this.root)}};var j={format:function(a){a=parseInt(a.replace(/[a-zA-z]/gi,""),10);return isNaN(a)?0:a},checkBoolean:function(a){var d=!1;typeof a==="string"&&a==="true"?d=!0:typeof a==="boolean"&&(d=a);return d},getCSSDimension:function(a,d,j){if(!a)return!1;var e=["Top","Right","Bottom","Left"],n={};if(a==="margin"||a==="padding"||a==="border"){for(var b=0,k=e.length;b<k;b++){var c=f(d).css(a+e[b]); n[e[b]]=typeof c!=="undefined"?j?this.format(c):c:0}return n}return f(d).css(a)}}})(jQuery);

(function($){
var CONST = {
		cacheFreq: 15,
		feedType: "text"
	};
	
	var AjaxContext = function(cfg) {
		if (!cfg) { return false; }
		this.jsonpCall = {};
		this.XHRObj = false;
		this.feed = new Feed(this);
		this.getFeed(cfg);
	};
	
	AjaxContext.prototype = {
		getFeed: function(cfg) {
			var AC = this;
			switch (cfg.dataType) {
				case "jsonp":  AC.feed.getJSONP(cfg); break;
				default: AC.feed.get(cfg);
			}
		}
	};
	
	// Feed Extension
	function Feed(root) { 
		this.root = root; 
	}
	
	Feed.prototype = {
		get: function(cfg) {
			var AC = this, root = this.root;
			
			if (root.XHRObj) { root.XHRObj.abort(); }
			var config = {
				url: cfg.url,
				data: cfg.data || {},
				dataType: cfg.dataType || CONST.feedType,
				success: function(data) {
					if (cfg.callback) {
						data = (cfg.callback.parse) ? cfg.callback.parse(data) : data;
						if (cfg.callback && cfg.callback.success) { cfg.callback.success(data); }
					}
				},
				error: function(status) {
					if (cfg.callback && cfg.callback.error) { cfg.callback.error(status); }
				}
			}
			root.XHRObj = AC.ajaxCall(config);
		},
		getJSONP: function(cfg) { 
			var AC = this, root = this.root;
			
			if (root.XHRObj) { root.XHRObj.abort(); }
			
			var data = cfg.data || {};
			
			var config = {
				url: cfg.url,
				data: data,
				dataType: "jsonp",
				error: function(status) {
					if (cfg.callback && cfg.callback.error) { cfg.callback.error(status); }
				}
			};
			
			if (cfg.cacheFreq) {
				// if cache freq. is defined, don't use jquery cache busting garbage
				config.data._cb = cacheBuster(cfg.cacheFreq || CONST.cacheFreq);
				config.dataType = "script";
				config.async = true;
				if(typeof cfg.cache != 'undefined' ){ config.cache = cfg.cache}else{
					config.cache = true;
				}
				
				// create jsonp callback
				if (!config.data.callback) { config.data.callback = cfg.namespace; }
				root.jsonpCall[config.data.callback] = function(data) {
					if (cfg.callback) {
						data = (cfg.callback.parse) ? cfg.callback.parse(data) : data;
						if (cfg.callback && cfg.callback.success) { cfg.callback.success(data); }
					}
				}
				config.data.callback = cfg.namespace + ".jsonpCall." + config.data.callback;
			} else if (cfg.callback.success) {
				config.success = cfg.callback.success;
			}
			
			root.XHRObj = AC.ajaxCall(config);
		},
		ajaxCall: function(config) {
			var call = $.ajax(config);
			return call;
		}
	};
	
	function cacheBuster(freq) {
		freq = freq || false;
		var date = new Date(), str = date.getFullYear().toString() + (date.getMonth()+1).toString() + date.getDate().toString(),
			hr = date.getHours()+1, min = date.getMinutes();
		str += hr.toString() + ((freq && !isNaN(freq)) ? (Math.floor(min/parseInt(freq,10))).toString() : "");
		return str;
	}
	
	window.AjaxContext = AjaxContext;
}(jQuery));

// commas for numbers
window.setCommaVal = function(val) {
	if (isNaN(val)) { return val; }
	val = new Number(val);
	var x, str = val.toString(), sp = str.split("."), whole = sp[0].split(""), dec = (sp[1]) ? ("." + sp[1]) : "";
	whole.reverse(); // reverse
	for (x = 0; x < whole.length; x++) {
		if (x !== 0 && (x+1)%3===0 && whole[x+1]) { whole[x] = "," + whole[x]; }
	}
	whole.reverse(); // reverse back
	return whole.join("") + dec;
};

// decimal precision
window.decPrecision = function(val,p,lto) {
	var ret, pr = (p && !isNaN(p)) ? (parseInt(p,10) > 0) ? (parseInt(p,10) * 10) : false : false;
	if (pr) {
		ret = new Number((Math.round(val*pr)/pr));
		ret = ret.toFixed(p);
	} else {
		ret = (val <= 0) ? 0 : (val > 0 && val < 1) ? (lto) ? "<1" : 1 : Math.ceil(val); // lto - less than 1% displays symbol
	}
	
	return ret;
};

/*** Raphael ***/
(function(e){var x=/[\.\/]/,s=function(){},R=function(e,x){return e-x},y,M,S={n:{}},B=function(e,x){var s=M,r=Array.prototype.slice.call(arguments,2),n=B.listeners(e),z=0,o,N=[],F={},G=[];y=e;for(var A=M=0,H=n.length;A<H;A++)"zIndex"in n[A]&&(N.push(n[A].zIndex),0>n[A].zIndex&&(F[n[A].zIndex]=n[A]));for(N.sort(R);0>N[z];)if(o=F[N[z++]],G.push(o.apply(x,r)),M)return M=s,G;for(A=0;A<H;A++)if(o=n[A],"zIndex"in o)if(o.zIndex==N[z]){G.push(o.apply(x,r));if(M)return M=s,G;do if(z++,(o=F[N[z]])&&G.push(o.apply(x, r)),M)return M=s,G;while(o)}else F[o.zIndex]=o;else if(G.push(o.apply(x,r)),M)return M=s,G;M=s;return G.length?G:null};B.listeners=function(e){var e=e.split(x),s=S,y,r,n,z,o,B,F,G=[s],A=[];for(n=0,z=e.length;n<z;n++){F=[];for(o=0,B=G.length;o<B;o++){s=G[o].n;y=[s[e[n]],s["*"]];for(r=2;r--;)if(s=y[r])F.push(s),A=A.concat(s.f||[])}G=F}return A};B.on=function(e,y){for(var B=e.split(x),r=S,n=0,z=B.length;n<z;n++)r=r.n,!r[B[n]]&&(r[B[n]]={n:{}}),r=r[B[n]];r.f=r.f||[];for(n=0,z=r.f.length;n<z;n++)if(r.f[n]== y)return s;r.f.push(y);return function(e){if(+e==+e)y.zIndex=+e}};B.stop=function(){M=1};B.nt=function(e){return e?RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(y):y};B.unbind=function(e,s){var y=e.split(x),r,n,z,o,B,F,G=[S];for(o=0,B=y.length;o<B;o++)for(F=0;F<G.length;F+=z.length-2){z=[F,1];r=G[F].n;if("*"!=y[o])r[y[o]]&&z.push(r[y[o]]);else for(n in r)r.hasOwnProperty(n)&&z.push(r[n]);G.splice.apply(G,z)}for(o=0,B=G.length;o<B;o++)for(r=G[o];r.n;){if(s){if(r.f){for(F=0,y=r.f.length;F<y;F++)if(r.f[F]== s){r.f.splice(F,1);break}!r.f.length&&delete r.f}for(n in r.n)if(r.n.hasOwnProperty(n)&&r.n[n].f){z=r.n[n].f;for(F=0,y=z.length;F<y;F++)if(z[F]==s){z.splice(F,1);break}!z.length&&delete r.n[n].f}}else for(n in delete r.f,r.n)r.n.hasOwnProperty(n)&&r.n[n].f&&delete r.n[n].f;r=r.n}};B.once=function(e,x){var s=function(){x.apply(this,arguments);B.unbind(e,s)};return B.on(e,s)};B.version="0.4.0";B.toString=function(){return"You are running Eve 0.4.0"};"undefined"!=typeof module&&module.exports?module.exports= B:e.eve=B})(this); (function(){function e(a){if(e.is(a,"function"))return V?a():eve.on("DOMload",a);if(e.is(a,P))return e._engine.create[H](e,a.splice(0,3+e.is(a[0],q))).add(a);var l=Array.prototype.slice.call(arguments,0);if(e.is(l[l.length-1],"function")){var h=l.pop();return V?h.call(e._engine.create[H](e,l)):eve.on("DOMload",function(){h.call(e._engine.create[H](e,l))})}return e._engine.create[H](e,arguments)}function x(a,l,h){function t(){var b=Array.prototype.slice.call(arguments,0),v=b.join("\u2400"),e=t.cache= t.cache||{},d=t.count=t.count||[];if(e[z](v)){a:for(var b=d,d=v,c=0,i=b.length;c<i;c++)if(b[c]===d){b.push(b.splice(c,1)[0]);break a}return h?h(e[v]):e[v]}1E3<=d.length&&delete e[d.shift()];d.push(v);e[v]=a[H](l,b);return h?h(e[v]):e[v]}return t}function s(){return this.hex}function R(a){for(var l=[],h=0,t=a.length;t-2>h;h+=2){var b=[{x:+a[h],y:+a[h+1]},{x:+a[h],y:+a[h+1]},{x:+a[h+2],y:+a[h+3]},{x:+a[h+4],y:+a[h+5]}];t-4==h?(b[0]={x:+a[h-2],y:+a[h-1]},b[3]=b[2]):h&&(b[0]={x:+a[h-2],y:+a[h-1]});l.push(["C", (-b[0].x+6*b[1].x+b[2].x)/6,(-b[0].y+6*b[1].y+b[2].y)/6,(b[1].x+6*b[2].x-b[3].x)/6,(b[1].y+6*b[2].y-b[3].y)/6,b[2].x,b[2].y])}return l}function y(a,l,h,t,b,v){null!=a?(this.a=+a,this.b=+l,this.c=+h,this.d=+t,this.e=+b,this.f=+v):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function M(){return this.x+T+this.y+T+this.width+" \u00d7 "+this.height}function S(a,l,h,t,b,v){function e(a,l){var h,t,b,v;for(b=a,t=0;8>t;t++){v=((i*b+c)*b+d)*b-a;if(f(v)<l)return b;h=(3*i*b+2*c)*b+d;if(1.0E-6>f(h))break; b-=v/h}h=0;t=1;b=a;if(b<h)return h;if(b>t)return t;for(;h<t;){v=((i*b+c)*b+d)*b;if(f(v-a)<l)break;a>v?h=b:t=b;b=(t-h)/2+h}return b}var d=3*l,c=3*(t-l)-d,i=1-d-c,j=3*h,p=3*(b-h)-j,g=1-j-p;return function(a,l){var h=e(a,l);return((g*h+p)*h+j)*h}(a,1/(200*v))}function B(a,l){var h=[],t={};this.ms=l;this.times=1;if(a){for(var b in a)a[z](b)&&(t[K(b)]=a[b],h.push(K(b)));h.sort(Oa)}this.anim=t;this.top=h[h.length-1];this.percents=h}function O(a,l,h,t,b,v){var h=K(h),d,i,j,f,g,p,k=a.ms,m={},u={},E={};if(t)for(p= 0,o=J.length;p<o;p++){var n=J[p];if(n.el.id==l.id&&n.anim==a){n.percent!=h?(J.splice(p,1),j=1):i=n;l.attr(n.totalOrigin);break}}else t=+u;p=0;for(var o=a.percents.length;p<o;p++)if(a.percents[p]==h||a.percents[p]>t*a.top){h=a.percents[p];g=a.percents[p-1]||0;k=k/a.top*(h-g);f=a.percents[p+1];d=a.anim[h];break}else t&&l.attr(a.anim[a.percents[p]]);if(d){if(i)i.initstatus=t,i.start=new Date-i.ms*t;else{for(var w in d)if(d[z](w)&&(ka[z](w)||l.paper.customAttributes[z](w)))switch(m[w]=l.attr(w),null== m[w]&&(m[w]=Pa[w]),u[w]=d[w],ka[w]){case q:E[w]=(u[w]-m[w])/k;break;case "colour":m[w]=e.getRGB(m[w]);p=e.getRGB(u[w]);E[w]={r:(p.r-m[w].r)/k,g:(p.g-m[w].g)/k,b:(p.b-m[w].b)/k};break;case "path":p=ba(m[w],u[w]);n=p[1];m[w]=p[0];E[w]=[];for(p=0,o=m[w].length;p<o;p++){E[w][p]=[0];for(var r=1,x=m[w][p].length;r<x;r++)E[w][p][r]=(n[p][r]-m[w][p][r])/k}break;case "transform":p=l._;if(o=Qa(p[w],u[w])){m[w]=o.from;u[w]=o.to;E[w]=[];E[w].real=!0;for(p=0,o=m[w].length;p<o;p++){E[w][p]=[m[w][p][0]];for(r=1, x=m[w][p].length;r<x;r++)E[w][p][r]=(u[w][p][r]-m[w][p][r])/k}}else o=l.matrix||new y,p={_:{transform:p.transform},getBBox:function(){return l.getBBox(1)}},m[w]=[o.a,o.b,o.c,o.d,o.e,o.f],Ra(p,u[w]),u[w]=p._.transform,E[w]=[(p.matrix.a-o.a)/k,(p.matrix.b-o.b)/k,(p.matrix.c-o.c)/k,(p.matrix.d-o.d)/k,(p.matrix.e-o.e)/k,(p.matrix.e-o.f)/k];break;case "csv":o=D(d[w])[c](W);n=D(m[w])[c](W);if("clip-rect"==w){m[w]=n;E[w]=[];for(p=n.length;p--;)E[w][p]=(o[p]-m[w][p])/k}u[w]=o;break;default:o=[][C](d[w]); n=[][C](m[w]);E[w]=[];for(p=l.paper.customAttributes[w].length;p--;)E[w][p]=((o[p]||0)-(n[p]||0))/k}p=d.easing;w=e.easing_formulas[p];if(!w)if((w=D(p).match(Sa))&&5==w.length){var s=w;w=function(a){return S(a,+s[1],+s[2],+s[3],+s[4],k)}}else w=Ta;p=d.start||a.start||+new Date;n={anim:a,percent:h,timestamp:p,start:p+(a.del||0),status:0,initstatus:t||0,stop:!1,ms:k,easing:w,from:m,diff:E,to:u,el:l,callback:d.callback,prev:g,next:f,repeat:v||a.times,origin:l.attr(),totalOrigin:b};J.push(n);if(t&&!i&& !j&&(n.stop=!0,n.start=new Date-k*t,1==J.length))return la();if(j)n.start=new Date-n.ms*t;1==J.length&&ya(la)}eve("anim.start."+l.id,l,a)}}e.version="2.0.1";e.eve=eve;var V,W=/[, ]+/,r={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},n=/\{(\d+)\}/g,z="hasOwnProperty",o={doc:document,win:window},N=Object.prototype[z].call(o.win,"Raphael"),F=o.win.Raphael,G=function(){this.ca=this.customAttributes={}},A,H="apply",C="concat",L="createTouch"in o.doc,T=" ",D=String,c="split",k="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[c](T), g={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},b=D.prototype.toLowerCase,d=Math,i=d.max,j=d.min,f=d.abs,m=d.pow,u=d.PI,q="number",P="array",Ua=Object.prototype.toString;e._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var Va=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i, Wa={NaN:1,Infinity:1,"-Infinity":1},Sa=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,ma=d.round,K=parseFloat,X=parseInt,za=D.prototype.toUpperCase,Pa=e._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0, rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},ka=e._availableAnimAttrs={blur:q,"clip-rect":"csv",cx:q,cy:q,fill:"colour","fill-opacity":q,"font-size":q,height:q,opacity:q,path:"path",r:q,rx:q,ry:q,stroke:"colour","stroke-opacity":q,"stroke-width":q,transform:"transform",width:q,x:q,y:q},na=/\s*,\s*/,Xa= {hs:1,rg:1},Ya=/,?([achlmqrstvxz]),?/gi,Za=/([achlmrqstvz])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,$a=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,Aa=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig;e._radial_gradient=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/;var ca={},Oa=function(a,l){return K(a)-K(l)},ab=function(){},Ta=function(a){return a},oa=e._rectPath=function(a,l,h,t,b){return b?[["M",a+b,l],["l",h-2*b,0],["a",b,b,0,0,1,b,b],["l",0,t-2*b],["a",b,b,0,0,1,-b,b],["l",2*b-h,0],["a", b,b,0,0,1,-b,-b],["l",0,2*b-t],["a",b,b,0,0,1,b,-b],["z"]]:[["M",a,l],["l",h,0],["l",0,t],["l",-h,0],["z"]]},Ba=function(a,l,h,t){null==t&&(t=h);return[["M",a,l],["m",0,-t],["a",h,t,0,1,1,0,2*t],["a",h,t,0,1,1,0,-2*t],["z"]]},pa=e._getPath={path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return Ba(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return Ba(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return oa(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return oa(a.x, a.y,a.width,a.height)},text:function(a){a=a._getBBox();return oa(a.x,a.y,a.width,a.height)}},Ca=e.mapPath=function(a,l){if(!l)return a;var h,t,b,d,e,c,i,a=ba(a);for(b=0,e=a.length;b<e;b++){i=a[b];for(d=1,c=i.length;d<c;d+=2)h=l.x(i[d],i[d+1]),t=l.y(i[d],i[d+1]),i[d]=h,i[d+1]=t}return a};e._g=o;e.type=o.win.SVGAngle||o.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==e.type){var qa=o.doc.createElement("div"),ea;qa.innerHTML='<v:shape adj="1"/>'; ea=qa.firstChild;ea.style.behavior="url(#default#VML)";if(!(ea&&"object"==typeof ea.adj))return e.type="";qa=null}e.svg=!(e.vml="VML"==e.type);e._Paper=G;e.fn=A=G.prototype=e.prototype;e._id=0;e._oid=0;e.is=function(a,l){l=b.call(l);return"finite"==l?!Wa[z](+a):"array"==l?a instanceof Array:"null"==l&&null===a||l==typeof a&&null!==a||"object"==l&&a===Object(a)||"array"==l&&Array.isArray&&Array.isArray(a)||Ua.call(a).slice(8,-1).toLowerCase()==l};e.angle=function(a,l,h,t,b,v){return null==b?(a-=h, l-=t,!a&&!l?0:(180*d.atan2(-l,-a)/u+540)%360):e.angle(a,l,b,v)-e.angle(h,t,b,v)};e.rad=function(a){return a%360*u/180};e.deg=function(a){return 180*a/u%360};e.snapTo=function(a,l,h){h=e.is(h,"finite")?h:10;if(e.is(a,P))for(var t=a.length;t--;){if(f(a[t]-l)<=h)return a[t]}else{a=+a;t=l%a;if(t<h)return l-t;if(t>a-h)return l-t+a}return l};e.createUUID=function(a,l){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,l).toUpperCase()}}(/[xy]/g,function(a){var l=16*d.random()|0;return("x"== a?l:l&3|8).toString(16)});e.setWindow=function(a){eve("setWindow",e,o.win,a);o.win=a;o.doc=o.win.document;e._engine.initWin&&e._engine.initWin(o.win)};var fa=function(a){if(e.vml){var l=/^\s+|\s+$/g,h;try{var t=new ActiveXObject("htmlfile");t.write("<body>");t.close();h=t.body}catch(b){h=createPopup().document.body}var d=h.createTextRange();fa=x(function(a){try{h.style.color=D(a).replace(l,"");var t=d.queryCommandValue("ForeColor");return"#"+("000000"+((t&255)<<16|t&65280|(t&16711680)>>>16).toString(16)).slice(-6)}catch(b){return"none"}})}else{var c= o.doc.createElement("i");c.title="Rapha\u00ebl Colour Picker";c.style.display="none";o.doc.body.appendChild(c);fa=x(function(a){c.style.color=a;return o.doc.defaultView.getComputedStyle(c,"").getPropertyValue("color")})}return fa(a)},bb=function(){return"hsb("+[this.h,this.s,this.b]+")"},cb=function(){return"hsl("+[this.h,this.s,this.l]+")"},Da=function(){return this.hex},Ea=function(a,l,h){if(null==l&&e.is(a,"object")&&"r"in a&&"g"in a&&"b"in a)h=a.b,l=a.g,a=a.r;if(null==l&&e.is(a,"string"))h=e.getRGB(a), a=h.r,l=h.g,h=h.b;if(1<a||1<l||1<h)a/=255,l/=255,h/=255;return[a,l,h]},Fa=function(a,l,h,t){a*=255;l*=255;h*=255;a={r:a,g:l,b:h,hex:e.rgb(a,l,h),toString:Da};e.is(t,"finite")&&(a.opacity=t);return a};e.color=function(a){var l;e.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(l=e.hsb2rgb(a),a.r=l.r,a.g=l.g,a.b=l.b,a.hex=l.hex):e.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(l=e.hsl2rgb(a),a.r=l.r,a.g=l.g,a.b=l.b,a.hex=l.hex):(e.is(a,"string")&&(a=e.getRGB(a)),e.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(l= e.rgb2hsl(a),a.h=l.h,a.s=l.s,a.l=l.l,l=e.rgb2hsb(a),a.v=l.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=Da;return a};e.hsb2rgb=function(a,l,h,t){if(this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a)h=a.b,l=a.s,a=a.h,t=a.o;var b,d,e,a=360*a%360/60;e=h*l;l=e*(1-f(a%2-1));h=b=d=h-e;a=~~a;h+=[e,l,0,0,l,e][a];b+=[l,e,e,l,0,0][a];d+=[0,0,l,e,e,l][a];return Fa(h,b,d,t)};e.hsl2rgb=function(a,l,h,t){if(this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a)h=a.l,l=a.s,a=a.h;if(1<a||1<l||1<h)a/=360,l/= 100,h/=100;var b,d,e,a=360*a%360/60;e=2*l*(0.5>h?h:1-h);l=e*(1-f(a%2-1));h=b=d=h-e/2;a=~~a;h+=[e,l,0,0,l,e][a];b+=[l,e,e,l,0,0][a];d+=[0,0,l,e,e,l][a];return Fa(h,b,d,t)};e.rgb2hsb=function(a,l,h){var h=Ea(a,l,h),a=h[0],l=h[1],h=h[2],t,b;t=i(a,l,h);b=t-j(a,l,h);return{h:60*(((0==b?0:t==a?(l-h)/b:t==l?(h-a)/b+2:(a-l)/b+4)+360)%6)/360,s:0==b?0:b/t,b:t,toString:bb}};e.rgb2hsl=function(a,l,h){var h=Ea(a,l,h),a=h[0],l=h[1],h=h[2],t,b,d;b=i(a,l,h);t=j(a,l,h);d=b-t;t=(b+t)/2;return{h:60*(((0==d?0:b==a?(l- h)/d:b==l?(h-a)/d+2:(a-l)/d+4)+360)%6)/360,s:0==d?0:0.5>t?d/(2*t):d/(2-2*t),l:t,toString:cb}};e._path2string=function(){return this.join(",").replace(Ya,"$1")};e._preload=function(a,l){var h=o.doc.createElement("img");h.style.cssText="position:absolute;left:-9999em;top:-9999em";h.onload=function(){l.call(this);this.onload=null;o.doc.body.removeChild(this)};h.onerror=function(){o.doc.body.removeChild(this)};o.doc.body.appendChild(h);h.src=a};e.getRGB=x(function(a){if(!a||(a=D(a)).indexOf("-")+1)return{r:-1, g:-1,b:-1,hex:"none",error:1,toString:s};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:s};!(Xa[z](a.toLowerCase().substring(0,2))||"#"==a.charAt())&&(a=fa(a));var l,h,b,d,v;if(a=a.match(Va)){a[2]&&(b=X(a[2].substring(5),16),h=X(a[2].substring(3,5),16),l=X(a[2].substring(1,3),16));a[3]&&(b=X((v=a[3].charAt(3))+v,16),h=X((v=a[3].charAt(2))+v,16),l=X((v=a[3].charAt(1))+v,16));a[4]&&(v=a[4][c](na),l=K(v[0]),"%"==v[0].slice(-1)&&(l*=2.55),h=K(v[1]),"%"==v[1].slice(-1)&&(h*=2.55),b=K(v[2]),"%"== v[2].slice(-1)&&(b*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(d=K(v[3])),v[3]&&"%"==v[3].slice(-1)&&(d/=100));if(a[5])return v=a[5][c](na),l=K(v[0]),"%"==v[0].slice(-1)&&(l*=2.55),h=K(v[1]),"%"==v[1].slice(-1)&&(h*=2.55),b=K(v[2]),"%"==v[2].slice(-1)&&(b*=2.55),("deg"==v[0].slice(-3)||"\u00b0"==v[0].slice(-1))&&(l/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(d=K(v[3])),v[3]&&"%"==v[3].slice(-1)&&(d/=100),e.hsb2rgb(l,h,b,d);if(a[6])return v=a[6][c](na),l=K(v[0]),"%"==v[0].slice(-1)&&(l*=2.55), h=K(v[1]),"%"==v[1].slice(-1)&&(h*=2.55),b=K(v[2]),"%"==v[2].slice(-1)&&(b*=2.55),("deg"==v[0].slice(-3)||"\u00b0"==v[0].slice(-1))&&(l/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(d=K(v[3])),v[3]&&"%"==v[3].slice(-1)&&(d/=100),e.hsl2rgb(l,h,b,d);a={r:l,g:h,b:b,toString:s};a.hex="#"+(16777216|b|h<<8|l<<16).toString(16).slice(1);e.is(d,"finite")&&(a.opacity=d);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:s}},e);e.hsb=x(function(a,l,h){return e.hsb2rgb(a,l,h).hex});e.hsl=x(function(a, l,h){return e.hsl2rgb(a,l,h).hex});e.rgb=x(function(a,l,h){return"#"+(16777216|h|l<<8|a<<16).toString(16).slice(1)});e.getColor=function(a){var a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75},l=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;if(1<a.h)a.h=0,a.s-=0.2,0>=a.s&&(this.getColor.start={h:0,s:1,b:a.b});return l.hex};e.getColor.reset=function(){delete this.start};e.parsePathString=x(function(a){if(!a)return null;var l={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},h=[];e.is(a,P)&&e.is(a[0], P)&&(h=da(a));h.length||D(a).replace(Za,function(a,b,d){var e=[],a=b.toLowerCase();d.replace(Aa,function(a,l){l&&e.push(+l)});"m"==a&&2<e.length&&(h.push([b][C](e.splice(0,2))),a="l",b="m"==b?"l":"L");if("r"==a)h.push([b][C](e));else for(;e.length>=l[a]&&!(h.push([b][C](e.splice(0,l[a]))),!l[a]););});h.toString=e._path2string;return h});e.parseTransformString=x(function(a){if(!a)return null;var l=[];e.is(a,P)&&e.is(a[0],P)&&(l=da(a));l.length||D(a).replace($a,function(a,t,d){var e=[];b.call(t);d.replace(Aa, function(a,l){l&&e.push(+l)});l.push([t][C](e))});l.toString=e._path2string;return l});e.findDotsAtSegment=function(a,l,h,b,e,c,i,j,f){var g=1-f,k=m(g,3),p=m(g,2),n=f*f,o=n*f,q=k*a+3*p*f*h+3*g*f*f*e+o*i,k=k*l+3*p*f*b+3*g*f*f*c+o*j,p=a+2*f*(h-a)+n*(e-2*h+a),o=l+2*f*(b-l)+n*(c-2*b+l),E=h+2*f*(e-h)+n*(i-2*e+h),n=b+2*f*(c-b)+n*(j-2*c+b),a=g*a+f*h,l=g*l+f*b,e=g*e+f*i,c=g*c+f*j,j=90-180*d.atan2(p-E,o-n)/u;(p>E||o<n)&&(j+=180);return{x:q,y:k,m:{x:p,y:o},n:{x:E,y:n},start:{x:a,y:l},end:{x:e,y:c},alpha:j}}; e._removedFactory=function(a){return function(){throw Error("Rapha\u00ebl: you are calling to method \u201c"+a+"\u201d of removed object");}};var Ga=x(function(a){if(!a)return{x:0,y:0,width:0,height:0};for(var a=ba(a),l=0,h=0,b=[],d=[],e,c=0,f=a.length;c<f;c++)e=a[c],"M"==e[0]?(l=e[1],h=e[2],b.push(l),d.push(h)):(l=db(l,h,e[1],e[2],e[3],e[4],e[5],e[6]),b=b[C](l.min.x,l.max.x),d=d[C](l.min.y,l.max.y),l=e[5],h=e[6]);a=j[H](0,b);e=j[H](0,d);return{x:a,y:e,width:i[H](0,b)-a,height:i[H](0,d)-e}},null, function(a){return{x:a.x,y:a.y,width:a.width,height:a.height}}),da=function(a){var l=[];if(!e.is(a,P)||!e.is(a&&a[0],P))a=e.parsePathString(a);for(var h=0,b=a.length;h<b;h++){l[h]=[];for(var d=0,c=a[h].length;d<c;d++)l[h][d]=a[h][d]}l.toString=e._path2string;return l},eb=e._pathToRelative=x(function(a){if(!e.is(a,P)||!e.is(a&&a[0],P))a=e.parsePathString(a);var l=[],h=0,t=0,d=0,c=0,i=0;"M"==a[0][0]&&(h=a[0][1],t=a[0][2],d=h,c=t,i++,l.push(["M",h,t]));for(var j=a.length;i<j;i++){var f=l[i]=[],g=a[i]; if(g[0]!=b.call(g[0]))switch(f[0]=b.call(g[0]),f[0]){case "a":f[1]=g[1];f[2]=g[2];f[3]=g[3];f[4]=g[4];f[5]=g[5];f[6]=+(g[6]-h).toFixed(3);f[7]=+(g[7]-t).toFixed(3);break;case "v":f[1]=+(g[1]-t).toFixed(3);break;case "m":d=g[1],c=g[2];default:for(var k=1,p=g.length;k<p;k++)f[k]=+(g[k]-(k%2?h:t)).toFixed(3)}else{l[i]=[];"m"==g[0]&&(d=g[1]+h,c=g[2]+t);f=0;for(k=g.length;f<k;f++)l[i][f]=g[f]}g=l[i].length;switch(l[i][0]){case "z":h=d;t=c;break;case "h":h+=+l[i][g-1];break;case "v":t+=+l[i][g-1];break; default:h+=+l[i][g-2],t+=+l[i][g-1]}}l.toString=e._path2string;return l},0,da),Ha=e._pathToAbsolute=x(function(a){if(!e.is(a,P)||!e.is(a&&a[0],P))a=e.parsePathString(a);if(!a||!a.length)return[["M",0,0]];var l=[],h=0,b=0,d=0,c=0,i=0;"M"==a[0][0]&&(h=+a[0][1],b=+a[0][2],d=h,c=b,i++,l[0]=["M",h,b]);for(var f,j=i,g=a.length;j<g;j++){l.push(i=[]);f=a[j];if(f[0]!=za.call(f[0]))switch(i[0]=za.call(f[0]),i[0]){case "A":i[1]=f[1];i[2]=f[2];i[3]=f[3];i[4]=f[4];i[5]=f[5];i[6]=+(f[6]+h);i[7]=+(f[7]+b);break; case "V":i[1]=+f[1]+b;break;case "H":i[1]=+f[1]+h;break;case "R":for(var k=[h,b][C](f.slice(1)),p=2,m=k.length;p<m;p++)k[p]=+k[p]+h,k[++p]=+k[p]+b;l.pop();l=l[C](R(k));break;case "M":d=+f[1]+h,c=+f[2]+b;default:for(p=1,m=f.length;p<m;p++)i[p]=+f[p]+(p%2?h:b)}else if("R"==f[0])k=[h,b][C](f.slice(1)),l.pop(),l=l[C](R(k)),i=["R"][C](f.slice(-2));else{k=0;for(p=f.length;k<p;k++)i[k]=f[k]}switch(i[0]){case "Z":h=d;b=c;break;case "H":h=i[1];break;case "V":b=i[1];break;case "M":d=i[i.length-2],c=i[i.length- 1];default:h=i[i.length-2],b=i[i.length-1]}}l.toString=e._path2string;return l},null,da),Ia=function(a,l,b,d,e,c){var i=1/3,f=2/3;return[i*a+f*b,i*l+f*d,i*e+f*b,i*c+f*d,e,c]},Ja=function(a,l,b,t,e,i,j,g,k,m){var n=120*u/180,p=u/180*(+e||0),o=[],q,r=x(function(a,l,b){var h=a*d.cos(b)-l*d.sin(b),a=a*d.sin(b)+l*d.cos(b);return{x:h,y:a}});if(m)s=m[0],q=m[1],i=m[2],E=m[3];else{q=r(a,l,-p);a=q.x;l=q.y;q=r(g,k,-p);g=q.x;k=q.y;d.cos(u/180*e);d.sin(u/180*e);q=(a-g)/2;s=(l-k)/2;E=q*q/(b*b)+s*s/(t*t);1<E&&(E= d.sqrt(E),b*=E,t*=E);var E=b*b,aa=t*t,E=(i==j?-1:1)*d.sqrt(f((E*aa-E*s*s-aa*q*q)/(E*s*s+aa*q*q))),i=E*b*s/t+(a+g)/2,E=E*-t*q/b+(l+k)/2,s=d.asin(((l-E)/t).toFixed(9));q=d.asin(((k-E)/t).toFixed(9));s=a<i?u-s:s;q=g<i?u-q:q;0>s&&(s=2*u+s);0>q&&(q=2*u+q);j&&s>q&&(s-=2*u);!j&&q>s&&(q-=2*u)}if(f(q-s)>n){var o=q,aa=g,w=k;q=s+n*(j&&q>s?1:-1);g=i+b*d.cos(q);k=E+t*d.sin(q);o=Ja(g,k,b,t,e,0,j,aa,w,[q,o,i,E])}i=q-s;e=d.cos(s);n=d.sin(s);j=d.cos(q);q=d.sin(q);i=d.tan(i/4);b=4/3*b*i;i*=4/3*t;t=[a,l];a=[a+b*n,l- i*e];l=[g+b*q,k-i*j];g=[g,k];a[0]=2*t[0]-a[0];a[1]=2*t[1]-a[1];if(m)return[a,l,g][C](o);o=[a,l,g][C](o).join()[c](",");m=[];g=0;for(k=o.length;g<k;g++)m[g]=g%2?r(o[g-1],o[g],p).y:r(o[g],o[g+1],p).x;return m},ga=function(a,l,b,d,e,i,c,f,j){var g=1-j;return{x:m(g,3)*a+3*m(g,2)*j*b+3*g*j*j*e+m(j,3)*c,y:m(g,3)*l+3*m(g,2)*j*d+3*g*j*j*i+m(j,3)*f}},db=x(function(a,b,h,e,c,v,g,k){var m=c-2*h+a-(g-2*c+h),q=2*(h-a)-2*(c-h),n=a-h,p=(-q+d.sqrt(q*q-4*m*n))/2/m,m=(-q-d.sqrt(q*q-4*m*n))/2/m,u=[b,k],o=[a,g];"1e12"< f(p)&&(p=0.5);"1e12"<f(m)&&(m=0.5);0<p&&1>p&&(p=ga(a,b,h,e,c,v,g,k,p),o.push(p.x),u.push(p.y));0<m&&1>m&&(p=ga(a,b,h,e,c,v,g,k,m),o.push(p.x),u.push(p.y));m=v-2*e+b-(k-2*v+e);q=2*(e-b)-2*(v-e);n=b-e;p=(-q+d.sqrt(q*q-4*m*n))/2/m;m=(-q-d.sqrt(q*q-4*m*n))/2/m;"1e12"<f(p)&&(p=0.5);"1e12"<f(m)&&(m=0.5);0<p&&1>p&&(p=ga(a,b,h,e,c,v,g,k,p),o.push(p.x),u.push(p.y));0<m&&1>m&&(p=ga(a,b,h,e,c,v,g,k,m),o.push(p.x),u.push(p.y));return{min:{x:j[H](0,o),y:j[H](0,u)},max:{x:i[H](0,o),y:i[H](0,u)}}}),ba=e._path2curve= x(function(a,b){var h=Ha(a),d=b&&Ha(b),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},f=function(a,b){var l,h;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"][C](Ja[H](0,[b.x,b.y][C](a.slice(1))));break;case "S":l=b.x+(b.x-(b.bx||b.x));h=b.y+(b.y-(b.by||b.y));a=["C",l,h][C](a.slice(1));break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"][C](Ia(b.x, b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"][C](Ia(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"][C]([b.x,b.y,a[1],a[2],a[1],a[2]]);break;case "H":a=["C"][C]([b.x,b.y,a[1],b.y,a[1],b.y]);break;case "V":a=["C"][C]([b.x,b.y,b.x,a[1],b.x,a[1]]);break;case "Z":a=["C"][C]([b.x,b.y,b.X,b.Y,b.X,b.Y])}return a},j=function(a,b){if(7<a[b].length){a[b].shift();for(var l=a[b];l.length;)a.splice(b++,0,["C"][C](l.splice(0,6)));a.splice(b,1);m=i(h.length,d&&d.length||0)}},g=function(a, b,l,e,c){if(a&&b&&"M"==a[c][0]&&"M"!=b[c][0])b.splice(c,0,["M",e.x,e.y]),l.bx=0,l.by=0,l.x=a[c][1],l.y=a[c][2],m=i(h.length,d&&d.length||0)},k=0,m=i(h.length,d&&d.length||0);for(;k<m;k++){h[k]=f(h[k],e);j(h,k);d&&(d[k]=f(d[k],c));d&&j(d,k);g(h,d,e,c,k);g(d,h,c,e,k);var p=h[k],q=d&&d[k],n=p.length,u=d&&q.length;e.x=p[n-2];e.y=p[n-1];e.bx=K(p[n-4])||e.x;e.by=K(p[n-3])||e.y;c.bx=d&&(K(q[u-4])||c.x);c.by=d&&(K(q[u-3])||c.y);c.x=d&&q[u-2];c.y=d&&q[u-1]}return d?[h,d]:h},null,da);e._parseDots=x(function(a){for(var b= [],h=0,d=a.length;h<d;h++){var c={},i=a[h].match(/^([^:]*):?([\d\.]*)/);c.color=e.getRGB(i[1]);if(c.color.error)return null;c.color=c.color.hex;i[2]&&(c.offset=i[2]+"%");b.push(c)}for(h=1,d=b.length-1;h<d;h++)if(!b[h].offset){a=K(b[h-1].offset||0);i=0;for(c=h+1;c<d;c++)if(b[c].offset){i=b[c].offset;break}i||(i=100,c=d);i=K(i);for(i=(i-a)/(c-h+1);h<c;h++)a+=i,b[h].offset=a+"%"}return b});var ha=e._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev); a.prev&&(a.prev.next=a.next)};e._tofront=function(a,b){if(b.top!==a)ha(a,b),a.next=null,a.prev=b.top,b.top.next=a,b.top=a};e._toback=function(a,b){if(b.bottom!==a)ha(a,b),a.next=b.bottom,a.prev=null,b.bottom.prev=a,b.bottom=a};e._insertafter=function(a,b,h){ha(a,h);b==h.top&&(h.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a};e._insertbefore=function(a,b,h){ha(a,h);b==h.bottom&&(h.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var Ra=e._extractTransform=function(a, b){if(null==b)return a._.transform;var b=D(b).replace(/\.{3}|\u2026/g,a._.transform||""),h=e.parseTransformString(b),d=0,c=0,i=0,f=1,j=1,g=a._,i=new y;g.transform=h||[];if(h)for(var c=0,k=h.length;c<k;c++){var m=h[c],p=m.length,q=D(m[0]).toLowerCase(),n=m[0]!=q,u=n?i.invert():0,o;"t"==q&&3==p?n?(p=u.x(0,0),q=u.y(0,0),n=u.x(m[1],m[2]),u=u.y(m[1],m[2]),i.translate(n-p,u-q)):i.translate(m[1],m[2]):"r"==q?2==p?(o=o||a.getBBox(1),i.rotate(m[1],o.x+o.width/2,o.y+o.height/2),d+=m[1]):4==p&&(n?(n=u.x(m[2], m[3]),u=u.y(m[2],m[3]),i.rotate(m[1],n,u)):i.rotate(m[1],m[2],m[3]),d+=m[1]):"s"==q?2==p||3==p?(o=o||a.getBBox(1),i.scale(m[1],m[p-1],o.x+o.width/2,o.y+o.height/2),f*=m[1],j*=m[p-1]):5==p&&(n?(n=u.x(m[3],m[4]),u=u.y(m[3],m[4]),i.scale(m[1],m[2],n,u)):i.scale(m[1],m[2],m[3],m[4]),f*=m[1],j*=m[2]):"m"==q&&7==p&&i.add(m[1],m[2],m[3],m[4],m[5],m[6]);g.dirtyT=1;a.matrix=i}a.matrix=i;g.sx=f;g.sy=j;g.deg=d;g.dx=c=i.e;g.dy=i=i.f;1==f&&1==j&&!d&&g.bbox?(g.bbox.x+=+c,g.bbox.y+=+i):g.dirtyT=1},Ka=function(a){var b= a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],a[3]]:[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}},Qa=e._equaliseTransform=function(a,b){for(var b=D(b).replace(/\.{3}|\u2026/g,a),a=e.parseTransformString(a)||[],b=e.parseTransformString(b)||[],h=i(a.length,b.length),d=[],c=[],f=0,j,g,m,k;f<h;f++){m=a[f]||Ka(b[f]);k=b[f]||Ka(m);if(m[0]!=k[0]||"r"==m[0].toLowerCase()&&(m[2]!=k[2]||m[3]!=k[3])|| "s"==m[0].toLowerCase()&&(m[3]!=k[3]||m[4]!=k[4]))return;d[f]=[];c[f]=[];for(j=0,g=i(m.length,k.length);j<g;j++)j in m&&(d[f][j]=m[j]),j in k&&(c[f][j]=k[j])}return{from:d,to:c}};e._getContainer=function(a,b,h,d){var c;c=null==d&&!e.is(a,"object")?o.doc.getElementById(a):a;if(null!=c)return c.tagName?null==b?{container:c,width:c.style.pixelWidth||c.offsetWidth,height:c.style.pixelHeight||c.offsetHeight}:{container:c,width:b,height:h}:{container:1,x:a,y:b,width:h,height:d}};e.pathToRelative=eb;e._engine= {};e.path2curve=ba;e.matrix=function(a,b,h,d,e,c){return new y(a,b,h,d,e,c)};(function(a){function b(a){return a[0]*a[0]+a[1]*a[1]}function h(a){var h=d.sqrt(b(a));a[0]&&(a[0]/=h);a[1]&&(a[1]/=h)}a.add=function(a,b,h,d,l,e){var c=[[],[],[]],i=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],b=[[a,h,l],[b,d,e],[0,0,1]];a&&a instanceof y&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(h=0;3>h;h++){for(d=l=0;3>d;d++)l+=i[a][d]*b[d][h];c[a][h]=l}this.a=c[0][0];this.b=c[1][0];this.c= c[0][1];this.d=c[1][1];this.e=c[0][2];this.f=c[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new y(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new y(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,0,1,a,b)};a.scale=function(a,b,h,d){null==b&&(b=a);(h||d)&&this.add(1,0,0,1,h,d);this.add(a,0,0,b,0,0);(h||d)&&this.add(1,0,0,1,-h,-d)};a.rotate=function(a,b,h){var a= e.rad(a),b=b||0,h=h||0,l=+d.cos(a).toFixed(9),a=+d.sin(a).toFixed(9);this.add(l,a,-a,l,b,h);this.add(1,0,0,1,-b,-h)};a.x=function(a,b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[D.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return e.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+ this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var c=[[this.a,this.c],[this.b,this.d]];a.scalex=d.sqrt(b(c[0]));h(c[0]);a.shear=c[0][0]*c[1][0]+c[0][1]*c[1][1];c[1]=[c[1][0]-c[0][0]*a.shear,c[1][1]-c[0][1]*a.shear];a.scaley=d.sqrt(b(c[1]));h(c[1]);a.shear/=a.scaley;var i=-c[0][1],c= c[1][1];if(0>c){if(a.rotate=e.deg(d.acos(c)),0>i)a.rotate=360-a.rotate}else a.rotate=e.deg(d.asin(i));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this[c]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx&&a.dy? "t"+[a.dx,a.dy]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(y.prototype);var ia=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);A.safari="Apple Computer, Inc."==navigator.vendor&&(ia&&4>ia[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&ia&&8>ia[1]?function(){var a=this.rect(-99,-99,this.width+99,this.height+ 99).attr({stroke:"none"});setTimeout(function(){a.remove()})}:ab;for(var fb=function(){this.returnValue=!1},gb=function(){return this.originalEvent.preventDefault()},hb=function(){this.cancelBubble=!0},ib=function(){return this.originalEvent.stopPropagation()},jb=function(){if(o.doc.addEventListener)return function(a,b,h,d){var c=L&&g[b]?g[b]:b,e=function(c){var e=c.clientX+(o.doc.documentElement.scrollLeft||o.doc.body.scrollLeft),i=c.clientY+(o.doc.documentElement.scrollTop||o.doc.body.scrollTop); if(L&&g[z](b))for(var f=0,j=c.targetTouches&&c.targetTouches.length;f<j;f++)if(c.targetTouches[f].target==a){j=c;c=c.targetTouches[f];c.originalEvent=j;c.preventDefault=gb;c.stopPropagation=ib;break}return h.call(d,c,e,i)};a.addEventListener(c,e,!1);return function(){a.removeEventListener(c,e,!1);return!0}};if(o.doc.attachEvent)return function(a,b,h,d){var c=function(a){var a=a||o.win.event,b=a.clientX+(o.doc.documentElement.scrollLeft||o.doc.body.scrollLeft),l=a.clientY+(o.doc.documentElement.scrollTop|| o.doc.body.scrollTop);a.preventDefault=a.preventDefault||fb;a.stopPropagation=a.stopPropagation||hb;return h.call(d,a,b,l)};a.attachEvent("on"+b,c);return function(){a.detachEvent("on"+b,c);return!0}}}(),Y=[],ra=function(a){for(var b=a.clientX,h=a.clientY,d=o.doc.documentElement.scrollTop||o.doc.body.scrollTop,c=o.doc.documentElement.scrollLeft||o.doc.body.scrollLeft,e,i=Y.length;i--;){e=Y[i];if(L)for(var f=a.touches.length,j;f--;){if(j=a.touches[f],j.identifier==e.el._drag.id){b=j.clientX;h=j.clientY; (a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();var f=e.el.node,g=f.nextSibling,m=f.parentNode,k=f.style.display;o.win.opera&&m.removeChild(f);f.style.display="none";j=e.el.paper.getElementByPoint(b,h);f.style.display=k;o.win.opera&&(g?m.insertBefore(f,g):m.appendChild(f));j&&eve("drag.over."+e.el.id,e.el,j);b+=c;h+=d;eve("drag.move."+e.el.id,e.move_scope||e.el,b-e.el._drag.x,h-e.el._drag.y,b,h,a)}},sa=function(a){e.unmousemove(ra).unmouseup(sa);for(var b=Y.length, h;b--;)h=Y[b],h.el._drag={},eve("drag.end."+h.el.id,h.end_scope||h.start_scope||h.move_scope||h.el,a);Y=[]},I=e.el={},La=k.length;La--;)(function(a){e[a]=I[a]=function(b,h){if(e.is(b,"function"))this.events=this.events||[],this.events.push({name:a,f:b,unbind:jb(this.shape||this.node||o.doc,a,b,h||this)});return this};e["un"+a]=I["un"+a]=function(b){for(var h=this.events,d=h.length;d--;)if(h[d].name==a&&h[d].f==b){h[d].unbind();h.splice(d,1);!h.length&&delete this.events;break}return this}})(k[La]); I.data=function(a,b){var h=ca[this.id]=ca[this.id]||{};if(1==arguments.length){if(e.is(a,"object")){for(var d in a)a[z](d)&&this.data(d,a[d]);return this}eve("data.get."+this.id,this,h[a],a);return h[a]}h[a]=b;eve("data.set."+this.id,this,b,a);return this};I.removeData=function(a){null==a?ca[this.id]={}:ca[this.id]&&delete ca[this.id][a];return this};I.hover=function(a,b,h,d){return this.mouseover(a,h).mouseout(b,d||h)};I.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Z=[];I.drag= function(a,b,h,d,c,i){function f(j){(j.originalEvent||j).preventDefault();var g=o.doc.documentElement.scrollTop||o.doc.body.scrollTop,m=o.doc.documentElement.scrollLeft||o.doc.body.scrollLeft;this._drag.x=j.clientX+m;this._drag.y=j.clientY+g;this._drag.id=j.identifier;!Y.length&&e.mousemove(ra).mouseup(sa);Y.push({el:this,move_scope:d,start_scope:c,end_scope:i});b&&eve.on("drag.start."+this.id,b);a&&eve.on("drag.move."+this.id,a);h&&eve.on("drag.end."+this.id,h);eve("drag.start."+this.id,c||d||this, j.clientX+m,j.clientY+g,j)}this._drag={};Z.push({el:this,start:f});this.mousedown(f);return this};I.onDragOver=function(a){a?eve.on("drag.over."+this.id,a):eve.unbind("drag.over."+this.id)};I.undrag=function(){for(var a=Z.length;a--;)Z[a].el==this&&(this.unmousedown(Z[a].start),Z.splice(a,1),eve.unbind("drag.*."+this.id));!Z.length&&e.unmousemove(ra).unmouseup(sa)};A.circle=function(a,b,h){a=e._engine.circle(this,a||0,b||0,h||0);this.__set__&&this.__set__.push(a);return a};A.rect=function(a,b,h,d, c){a=e._engine.rect(this,a||0,b||0,h||0,d||0,c||0);this.__set__&&this.__set__.push(a);return a};A.ellipse=function(a,b,h,d){a=e._engine.ellipse(this,a||0,b||0,h||0,d||0);this.__set__&&this.__set__.push(a);return a};A.path=function(a){a&&!e.is(a,"string")&&!e.is(a[0],P)&&(a+="");var b=e._engine.path(e.format[H](e,arguments),this);this.__set__&&this.__set__.push(b);return b};A.image=function(a,b,d,c,i){a=e._engine.image(this,a||"about:blank",b||0,d||0,c||0,i||0);this.__set__&&this.__set__.push(a);return a}; A.text=function(a,b,d){a=e._engine.text(this,a||0,b||0,D(d));this.__set__&&this.__set__.push(a);return a};A.set=function(a){!e.is(a,"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var b=new $(a);this.__set__&&this.__set__.push(b);return b};A.setStart=function(a){this.__set__=a||this.set()};A.setFinish=function(){var a=this.__set__;delete this.__set__;return a};A.setSize=function(a,b){return e._engine.setSize.call(this,a,b)};A.setViewBox=function(a,b,d,c,i){return e._engine.setViewBox.call(this, a,b,d,c,i)};A.top=A.bottom=null;A.raphael=e;A.getElementByPoint=function(a,b){var d,c,e=this.canvas,i=o.doc.elementFromPoint(a,b);if(o.win.opera&&"svg"==i.tagName){c=e.getBoundingClientRect();d=e.ownerDocument;var f=d.body,j=d.documentElement;d=c.top+(o.win.pageYOffset||j.scrollTop||f.scrollTop)-(j.clientTop||f.clientTop||0);c=c.left+(o.win.pageXOffset||j.scrollLeft||f.scrollLeft)-(j.clientLeft||f.clientLeft||0);f=e.createSVGRect();f.x=a-c;f.y=b-d;f.width=f.height=1;d=e.getIntersectionList(f,null); d.length&&(i=d[d.length-1])}if(!i)return null;for(;i.parentNode&&i!=e.parentNode&&!i.raphael;)i=i.parentNode;i==this.canvas.parentNode&&(i=e);return i=i&&i.raphael?this.getById(i.raphaelid):null};A.getById=function(a){for(var b=this.bottom;b;){if(b.id==a)return b;b=b.next}return null};A.forEach=function(a,b){for(var d=this.bottom;d&&!(!1===a.call(b,d));)d=d.next;return this};I.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=pa[this.type](this),b.bboxwt= Ga(this.realPath),b.bboxwt.toString=M,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=pa[this.type](this);b.bbox=Ga(Ca(this.realPath,this.matrix));b.bbox.toString=M;b.dirty=b.dirtyT=0}return b.bbox};I.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};I.glow=function(a){if("text"==this.type)return null;for(var a=a||{},b=(a.width||10)+(+this.attr("stroke-width")|| 1),d=a.fill||!1,c=a.opacity||0.5,e=a.offsetx||0,i=a.offsety||0,a=a.color||"#000",f=b/2,j=this.paper,g=j.set(),m=this.realPath||pa[this.type](this),m=this.matrix?Ca(m,this.matrix):m,k=1;k<f+1;k++)g.push(j.path(m).attr({stroke:a,fill:d?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b/f*k).toFixed(3),opacity:+(c/f).toFixed(3)}));return g.insertBefore(this).translate(e,i)};var ta={},ja=function(a,b,d,c,i,f,j,g,k){var q=0,u=100,p=[a,b,d,c,i,f,j,g].join(),n=ta[p],o,s;!n&&(ta[p]= n={data:[]});n.timer&&clearTimeout(n.timer);n.timer=setTimeout(function(){delete ta[p]},2E3);if(null!=k&&!n.precision)s=ja(a,b,d,c,i,f,j,g),n.precision=10*~~s,n.data=[];for(var u=n.precision||u,r=0;r<u+1;r++){n.data[r*u]?s=n.data[r*u]:(s=e.findDotsAtSegment(a,b,d,c,i,f,j,g,r/u),n.data[r*u]=s);r&&(q+=m(m(o.x-s.x,2)+m(o.y-s.y,2),0.5));if(null!=k&&q>=k)return s;o=s}if(null==k)return q},ua=function(a,b){return function(d,c,i){for(var d=ba(d),f,j,g,m,k="",q={},p=0,n=0,u=d.length;n<u;n++){g=d[n];if("M"== g[0])f=+g[1],j=+g[2];else{m=ja(f,j,g[1],g[2],g[3],g[4],g[5],g[6]);if(p+m>c){if(b&&!q.start){f=ja(f,j,g[1],g[2],g[3],g[4],g[5],g[6],c-p);k+=["C"+f.start.x,f.start.y,f.m.x,f.m.y,f.x,f.y];if(i)return k;q.start=k;k=["M"+f.x,f.y+"C"+f.n.x,f.n.y,f.end.x,f.end.y,g[5],g[6]].join();p+=m;f=+g[5];j=+g[6];continue}if(!a&&!b)return f=ja(f,j,g[1],g[2],g[3],g[4],g[5],g[6],c-p),{x:f.x,y:f.y,alpha:f.alpha}}p+=m;f=+g[5];j=+g[6]}k+=g.shift()+g}q.end=k;f=a?p:b?q:e.findDotsAtSegment(f,j,g[0],g[1],g[2],g[3],g[4],g[5], 1);f.alpha&&(f={x:f.x,y:f.y,alpha:f.alpha});return f}},Ma=ua(1),Na=ua(),va=ua(0,1);e.getTotalLength=Ma;e.getPointAtLength=Na;e.getSubpath=function(a,b,d){if(1.0E-6>this.getTotalLength(a)-d)return va(a,b).end;a=va(a,d,1);return b?va(a,b).end:a};I.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Ma(this.attrs.path)};I.getPointAtLength=function(a){return"path"!=this.type?void 0:Na(this.attrs.path,a)};I.getSubpath=function(a,b){return"path"!=this.type? void 0:e.getSubpath(this.attrs.path,a,b)};var U=e.easing_formulas={linear:function(a){return a},"<":function(a){return m(a,1.7)},">":function(a){return m(a,0.48)},"<>":function(a){var b=0.48-a/1.04,c=d.sqrt(0.1734+b*b),a=c-b,a=m(f(a),1/3)*(0>a?-1:1),b=-c-b,b=m(f(b),1/3)*(0>b?-1:1),a=a+b+0.5;return 3*(1-a)*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){return a==!!a?a:m(2,-10*a)*d.sin((a-0.075)*2*u/0.3)+1}, bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};U.easeIn=U["ease-in"]=U["<"];U.easeOut=U["ease-out"]=U[">"];U.easeInOut=U["ease-in-out"]=U["<>"];U["back-in"]=U.backIn;U["back-out"]=U.backOut;var J=[],ya=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a, 16)},la=function(){for(var a=+new Date,b=0;b<J.length;b++){var d=J[b];if(!d.el.removed&&!d.paused){var c=a-d.start,i=d.ms,f=d.easing,j=d.from,g=d.diff,m=d.to,k=d.el,n={},p,u={},o;d.initstatus?(c=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*i,d.status=d.initstatus,delete d.initstatus,d.stop&&J.splice(b--,1)):d.status=(d.prev+(d.percent-d.prev)*(c/i))/d.anim.top;if(!(0>c))if(c<i){var s=f(c/i),r;for(r in j)if(j[z](r)){switch(ka[r]){case q:p=+j[r]+s*i*g[r];break;case "colour":p="rgb("+[wa(ma(j[r].r+ s*i*g[r].r)),wa(ma(j[r].g+s*i*g[r].g)),wa(ma(j[r].b+s*i*g[r].b))].join()+")";break;case "path":p=[];c=0;for(f=j[r].length;c<f;c++){p[c]=[j[r][c][0]];m=1;for(u=j[r][c].length;m<u;m++)p[c][m]=+j[r][c][m]+s*i*g[r][c][m];p[c]=p[c].join(T)}p=p.join(T);break;case "transform":if(g[r].real){p=[];for(c=0,f=j[r].length;c<f;c++){p[c]=[j[r][c][0]];for(m=1,u=j[r][c].length;m<u;m++)p[c][m]=j[r][c][m]+s*i*g[r][c][m]}}else p=function(a){return+j[r][a]+s*i*g[r][a]},p=[["m",p(0),p(1),p(2),p(3),p(4),p(5)]];break;case "csv":if("clip-rect"== r){p=[];for(c=4;c--;)p[c]=+j[r][c]+s*i*g[r][c]}break;default:f=[][C](j[r]);p=[];for(c=k.paper.customAttributes[r].length;c--;)p[c]=+f[c]+s*i*g[r][c]}n[r]=p}k.attr(n);(function(a,b,d){setTimeout(function(){eve("anim.frame."+a,b,d)})})(k.id,k,d.anim)}else{(function(a,b,d){setTimeout(function(){eve("anim.frame."+b.id,b,d);eve("anim.finish."+b.id,b,d);e.is(a,"function")&&a.call(b)})})(d.callback,k,d.anim);k.attr(m);J.splice(b--,1);if(1<d.repeat&&!d.next){for(o in m)m[z](o)&&(u[o]=d.totalOrigin[o]);d.el.attr(u); O(d.anim,d.el,d.anim.percents[0],null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&O(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}}e.svg&&k&&k.paper&&k.paper.safari();J.length&&ya(la)},wa=function(a){return 255<a?255:0>a?0:a};I.animateWith=function(a,b,d,c,i,f){d=d?e.animation(d,c,i,f):b;a=a.status(b);return this.animate(d).status(d,a*b.ms/d.ms)};I.onAnimation=function(a){a?eve.on("anim.frame."+this.id,a):eve.unbind("anim.frame."+this.id);return this};B.prototype.delay=function(a){var b=new B(this.anim, this.ms);b.times=this.times;b.del=+a||0;return b};B.prototype.repeat=function(a){var b=new B(this.anim,this.ms);b.del=this.del;b.times=d.floor(i(a,0))||1;return b};e.animation=function(a,b,d,c){if(a instanceof B)return a;if(e.is(d,"function")||!d)c=c||d||null,d=null;var a=Object(a),b=+b||0,i={},f,j;for(j in a)a[z](j)&&K(j)!=j&&K(j)+"%"!=j&&(f=!0,i[j]=a[j]);return f?(d&&(i.easing=d),c&&(i.callback=c),new B({100:i},b)):new B(a,b)};I.animate=function(a,b,d,c){if(this.removed)return c&&c.call(this),this; a=a instanceof B?a:e.animation(a,b,d,c);O(a,this,a.percents[0],null,this.attr());return this};I.setTime=function(a,b){a&&null!=b&&this.status(a,j(b,a.ms)/a.ms);return this};I.status=function(a,b){var d=[],c=0,e,i;if(null!=b)return O(a,this,-1,j(b,1)),this;for(e=J.length;c<e;c++)if(i=J[c],i.el.id==this.id&&(!a||i.anim==a)){if(a)return i.status;d.push({anim:i.anim,status:i.status})}return a?0:d};I.pause=function(a){for(var b=0;b<J.length;b++)if(J[b].el.id==this.id&&(!a||J[b].anim==a)&&!1!==eve("anim.pause."+ this.id,this,J[b].anim))J[b].paused=!0;return this};I.resume=function(a){for(var b=0;b<J.length;b++)if(J[b].el.id==this.id&&(!a||J[b].anim==a)){var d=J[b];!1!==eve("anim.resume."+this.id,this,d.anim)&&(delete d.paused,this.status(d.anim,d.status))}return this};I.stop=function(a){for(var b=0;b<J.length;b++)J[b].el.id==this.id&&(!a||J[b].anim==a)&&!1!==eve("anim.stop."+this.id,this,J[b].anim)&&J.splice(b--,1);return this};I.toString=function(){return"Rapha\u00ebl\u2019s object"};var $=function(a){this.items= [];this.length=0;this.type="set";if(a)for(var b=0,d=a.length;b<d;b++)if(a[b]&&(a[b].constructor==I.constructor||a[b].constructor==$))this[this.items.length]=this.items[this.items.length]=a[b],this.length++},Q=$.prototype;Q.push=function(){for(var a,b,d=0,c=arguments.length;d<c;d++)if((a=arguments[d])&&(a.constructor==I.constructor||a.constructor==$))b=this.items.length,this[b]=this.items[b]=a,this.length++;return this};Q.pop=function(){this.length&&delete this[this.length--];return this.items.pop()}; Q.forEach=function(a,b){for(var d=0,c=this.items.length;d<c&&!(!1===a.call(b,this.items[d],d));d++);return this};for(var xa in I)I[z](xa)&&(Q[xa]=function(a){return function(){var b=arguments;return this.forEach(function(d){d[a][H](d,b)})}}(xa));Q.attr=function(a,b){if(a&&e.is(a,P)&&e.is(a[0],"object"))for(var d=0,c=a.length;d<c;d++)this.items[d].attr(a[d]);else{d=0;for(c=this.items.length;d<c;d++)this.items[d].attr(a,b)}return this};Q.clear=function(){for(;this.length;)this.pop()};Q.splice=function(a, b,d){var a=0>a?i(this.length+a,0):a,b=i(0,j(this.length-a,b)),c=[],e=[],f=[],g;for(g=2;g<arguments.length;g++)f.push(arguments[g]);for(g=0;g<b;g++)e.push(this[a+g]);for(;g<this.length-a;g++)c.push(this[a+g]);var m=f.length;for(g=0;g<m+c.length;g++)this.items[a+g]=this[a+g]=g<m?f[g]:c[g-m];for(g=this.items.length=this.length-=b-m;this[g];)delete this[g++];return new $(e)};Q.exclude=function(a){for(var b=0,d=this.length;b<d;b++)if(this[b]==a)return this.splice(b,1),!0};Q.animate=function(a,b,d,c){(e.is(d, "function")||!d)&&(c=d||null);var i=this.items.length,f=i,j=this,g;if(!i)return this;c&&(g=function(){!--i&&c.call(j)});d=e.is(d,"string")?d:g;b=e.animation(a,b,d,g);for(a=this.items[--f].animate(b);f--;)this.items[f]&&!this.items[f].removed&&this.items[f].animateWith(a,b);return this};Q.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};Q.getBBox=function(){for(var a=[],b=[],d=[],c=[],e=this.items.length;e--;)if(!this.items[e].removed){var f=this.items[e].getBBox(); a.push(f.x);b.push(f.y);d.push(f.x+f.width);c.push(f.y+f.height)}a=j[H](0,a);b=j[H](0,b);return{x:a,y:b,width:i[H](0,d)-a,height:i[H](0,c)-b}};Q.clone=function(a){for(var a=new $,b=0,d=this.items.length;b<d;b++)a.push(this.items[b].clone());return a};Q.toString=function(){return"Rapha\u00ebl\u2018s set"};e.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},d=a.face["font-family"],c;for(c in a.face)a.face[z](c)&&(b.face[c]=a.face[c]);this.fonts[d]? this.fonts[d].push(b):this.fonts[d]=[b];if(!a.svg){b.face["units-per-em"]=X(a.face["units-per-em"],10);for(var e in a.glyphs)if(a.glyphs[z](e)&&(d=a.glyphs[e],b.glyphs[e]={w:d.w,k:{},d:d.d&&"M"+d.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},d.k))for(var i in d.k)d[z](i)&&(b.glyphs[e].k[i]=d.k[i])}return a};A.getFont=function(a,b,d,c){c=c||"normal";d=d||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(e.fonts){var i=e.fonts[a]; if(!i){var a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),f;for(f in e.fonts)if(e.fonts[z](f)&&a.test(f)){i=e.fonts[f];break}}var j;if(i){f=0;for(a=i.length;f<a&&!(j=i[f],j.face["font-weight"]==b&&(j.face["font-style"]==d||!j.face["font-style"])&&j.face["font-stretch"]==c);f++);}return j}};A.print=function(a,b,d,f,g,m,k){var m=m||"middle",k=i(j(k||0,1),-1),q=this.set(),n=D(d)[c](""),u=0;e.is(f,d)&&(f=this.getFont(f));if(f){for(var d=(g||16)/f.face["units-per-em"],o=f.face.bbox[c](W), g=+o[0],m=+o[1]+("baseline"==m?o[3]-o[1]+ +f.face.descent:(o[3]-o[1])/2),o=0,p=n.length;o<p;o++){var r=o&&f.glyphs[n[o-1]]||{},s=f.glyphs[n[o]],u=u+(o?(r.w||f.w)+(r.k&&r.k[n[o]]||0)+f.w*k:0);s&&s.d&&q.push(this.path(s.d).attr({fill:"#000",stroke:"none",transform:[["t",u*d,0]]}))}q.transform(["...s",d,d,g,m,"t",(a-g)/d,(b-m)/d])}return q};A.add=function(a){if(e.is(a,"array"))for(var b=this.set(),d=0,c=a.length,i;d<c;d++)i=a[d]||{},r[z](i.type)&&b.push(this[i.type]().attr(i));return b};e.format=function(a, b){var d=e.is(b,P)?[0][C](b):arguments;a&&e.is(a,"string")&&d.length-1&&(a=a.replace(n,function(a,b){return null==d[++b]?"":d[b]}));return a||""};e.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,d=function(a,d,c){var e=c;d.replace(b,function(a,b,d,c,i){b=b||c;e&&(b in e&&(e=e[b]),"function"==typeof e&&i&&(e=e()))});return e=(null==e||e==c?a:e)+""};return function(b,c){return(""+b).replace(a,function(a,b){return d(a,b,c)})}}();e.ninja=function(){N? o.win.Raphael=F:delete Raphael;return e};e.st=Q;(function(a,b,d){function c(){/in/.test(a.readyState)?setTimeout(c,9):e.eve("DOMload")}if(null==a.readyState&&a.addEventListener)a.addEventListener(b,d=function(){a.removeEventListener(b,d,!1);a.readyState="complete"},!1),a.readyState="loading";c()})(document,"DOMContentLoaded");N?o.win.Raphael=e:Raphael=e;eve.on("DOMload",function(){V=!0})})(); window.Raphael.svg&&function(e){var x=String,s=parseFloat,R=parseInt,y=Math,M=y.max,S=y.abs,B=y.pow,O=/[, ]+/,V=e.eve,W={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},r={};e.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var n=function(c,k){if(k){"string"==typeof c&&(c=n(c));for(var g in k)k.hasOwnProperty(g)&&("xlink:"== g.substring(0,6)?c.setAttributeNS("http://www.w3.org/1999/xlink",g.substring(6),x(k[g])):c.setAttribute(g,x(k[g])))}else c=e._g.doc.createElementNS("http://www.w3.org/2000/svg",c),c.style&&(c.style.webkitTapHighlightColor="rgba(0,0,0,0)");return c},z=function(c,k){var g="linear",b=c.id+k,d=0.5,i=0.5,j=c.node,f=c.paper,m=j.style,u=e._g.doc.getElementById(b);if(!u){k=x(k).replace(e._radial_gradient,function(b,c,e){g="radial";c&&e&&(d=s(c),i=s(e),b=2*(0.5<i)-1,0.25<B(d-0.5,2)+B(i-0.5,2)&&(i=y.sqrt(0.25- B(d-0.5,2))*b+0.5)&&0.5!=i&&(i=i.toFixed(5)-1.0E-5*b));return""});k=k.split(/\s*\-\s*/);if("linear"==g){u=k.shift();u=-s(u);if(isNaN(u))return null;var q=[0,0,y.cos(e.rad(u)),y.sin(e.rad(u))],u=1/(M(S(q[2]),S(q[3]))||1);q[2]*=u;q[3]*=u;0>q[2]&&(q[0]=-q[2],q[2]=0);0>q[3]&&(q[1]=-q[3],q[3]=0)}var o=e._parseDots(k);if(!o)return null;b=b.replace(/[\(\)\s,\xb0#]/g,"_");c.gradient&&b!=c.gradient.id&&(f.defs.removeChild(c.gradient),delete c.gradient);if(!c.gradient){u=n(g+"Gradient",{id:b});c.gradient=u; n(u,"radial"==g?{fx:d,fy:i}:{x1:q[0],y1:q[1],x2:q[2],y2:q[3],gradientTransform:c.matrix.invert()});f.defs.appendChild(u);f=0;for(q=o.length;f<q;f++)u.appendChild(n("stop",{offset:o[f].offset?o[f].offset:f?"100%":"0%","stop-color":o[f].color||"#fff"}))}}n(j,{fill:"url(#"+b+")",opacity:1,"fill-opacity":1});m.fill="";m.opacity=1;return m.fillOpacity=1},o=function(c){var e=c.getBBox(1);n(c.pattern,{patternTransform:c.matrix.invert()+" translate("+e.x+","+e.y+")"})},N=function(c,k,g){if("path"==c.type){for(var b= x(k).toLowerCase().split("-"),d=c.paper,i=g?"end":"start",j=c.node,f=c.attrs,m=f["stroke-width"],u=b.length,q="classic",o,s,y=3,z=3,A=5;u--;)switch(b[u]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":q=b[u];break;case "wide":z=5;break;case "narrow":z=2;break;case "long":y=5;break;case "short":y=2}"open"==q?(y+=2,z+=2,A+=2,o=1,s=g?4:1,b={fill:"none",stroke:f.stroke}):(s=o=y/2,b={fill:f.stroke,stroke:"none"});c._.arrows?g?(c._.arrows.endPath&&r[c._.arrows.endPath]--, c._.arrows.endMarker&&r[c._.arrows.endMarker]--):(c._.arrows.startPath&&r[c._.arrows.startPath]--,c._.arrows.startMarker&&r[c._.arrows.startMarker]--):c._.arrows={};if("none"!=q){var u="raphael-marker-"+q,B="raphael-marker-"+i+q+y+z;e._g.doc.getElementById(u)?r[u]++:(d.defs.appendChild(n(n("path"),{"stroke-linecap":"round",d:W[q],id:u})),r[u]=1);var C=e._g.doc.getElementById(B);C?(r[B]++,y=C.getElementsByTagName("use")[0]):(C=n(n("marker"),{id:B,markerHeight:z,markerWidth:y,orient:"auto",refX:s,refY:z/ 2}),y=n(n("use"),{"xlink:href":"#"+u,transform:(g?" rotate(180 "+y/2+" "+z/2+") ":" ")+"scale("+y/A+","+z/A+")","stroke-width":1/((y/A+z/A)/2)}),C.appendChild(y),d.defs.appendChild(C),r[B]=1);n(y,b);d=o*("diamond"!=q&&"oval"!=q);g?(g=c._.arrows.startdx*m||0,m=e.getTotalLength(f.path)-d*m):(g=d*m,m=e.getTotalLength(f.path)-(c._.arrows.enddx*m||0));b={};b["marker-"+i]="url(#"+B+")";if(m||g)b.d=Raphael.getSubpath(f.path,g,m);n(j,b);c._.arrows[i+"Path"]=u;c._.arrows[i+"Marker"]=B;c._.arrows[i+"dx"]=d; c._.arrows[i+"Type"]=q;c._.arrows[i+"String"]=k}else g?(g=c._.arrows.startdx*m||0,m=e.getTotalLength(f.path)-g):(g=0,m=e.getTotalLength(f.path)-(c._.arrows.enddx*m||0)),c._.arrows[i+"Path"]&&n(j,{d:Raphael.getSubpath(f.path,g,m)}),delete c._.arrows[i+"Path"],delete c._.arrows[i+"Marker"],delete c._.arrows[i+"dx"],delete c._.arrows[i+"Type"],delete c._.arrows[i+"String"];for(b in r)r.hasOwnProperty(b)&&!r[b]&&(c=e._g.doc.getElementById(b))&&c.parentNode.removeChild(c)}},F={"":[0],none:[0],"-":[3,1], ".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},G=function(c,e,g){if(e=F[x(e).toLowerCase()]){for(var b=c.attrs["stroke-width"]||"1",g={round:b,square:b,butt:0}[c.attrs["stroke-linecap"]||g["stroke-linecap"]]||0,d=[],i=e.length;i--;)d[i]=e[i]*b+(i%2?1:-1)*g;n(c.node,{"stroke-dasharray":d.join(",")})}},A=function(c,k){var g=c.node,b=c.attrs,d=g.style.visibility;g.style.visibility="hidden";for(var i in k)if(k.hasOwnProperty(i)&& e._availableAttrs.hasOwnProperty(i)){var j=k[i];b[i]=j;switch(i){case "blur":c.blur(j);break;case "href":case "title":case "target":var f=g.parentNode;if("a"!=f.tagName.toLowerCase()){var m=n("a");f.insertBefore(m,g);m.appendChild(g);f=m}"target"==i&&"blank"==j?f.setAttributeNS("http://www.w3.org/1999/xlink","show","new"):f.setAttributeNS("http://www.w3.org/1999/xlink",i,j);break;case "cursor":g.style.cursor=j;break;case "transform":c.transform(j);break;case "arrow-start":N(c,j);break;case "arrow-end":N(c, j,1);break;case "clip-rect":f=x(j).split(O);if(4==f.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var m=n("clipPath"),u=n("rect");m.id=e.createUUID();n(u,{x:f[0],y:f[1],width:f[2],height:f[3]});m.appendChild(u);c.paper.defs.appendChild(m);n(g,{"clip-path":"url(#"+m.id+")"});c.clip=u}if(!j&&(j=g.getAttribute("clip-path")))(j=e._g.doc.getElementById(j.replace(/(^url\(#|\)$)/g,"")))&&j.parentNode.removeChild(j),n(g,{"clip-path":""}),delete c.clip;break;case "path":if("path"== c.type)n(g,{d:j?b.path=e._pathToAbsolute(j):"M0,0"}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&N(c,c._.arrows.startString),"endString"in c._.arrows&&N(c,c._.arrows.endString,1));break;case "width":if(g.setAttribute(i,j),c._.dirty=1,b.fx)i="x",j=b.x;else break;case "x":b.fx&&(j=-b.x-(b.width||0));case "rx":if("rx"==i&&"rect"==c.type)break;case "cx":g.setAttribute(i,j);c.pattern&&o(c);c._.dirty=1;break;case "height":if(g.setAttribute(i,j),c._.dirty=1,b.fy)i="y",j=b.y;else break;case "y":b.fy&& (j=-b.y-(b.height||0));case "ry":if("ry"==i&&"rect"==c.type)break;case "cy":g.setAttribute(i,j);c.pattern&&o(c);c._.dirty=1;break;case "r":"rect"==c.type?n(g,{rx:j,ry:j}):g.setAttribute(i,j);c._.dirty=1;break;case "src":"image"==c.type&&g.setAttributeNS("http://www.w3.org/1999/xlink","href",j);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)j/=M(S(c._.sx),S(c._.sy))||1;c.paper._vbSize&&(j*=c.paper._vbSize);g.setAttribute(i,j);b["stroke-dasharray"]&&G(c,b["stroke-dasharray"],k);c._.arrows&&("startString"in c._.arrows&&N(c,c._.arrows.startString),"endString"in c._.arrows&&N(c,c._.arrows.endString,1));break;case "stroke-dasharray":G(c,j,k);break;case "fill":var q=x(j).match(e._ISURL);if(q){var m=n("pattern"),r=n("image");m.id=e.createUUID();n(m,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});n(r,{x:0,y:0,"xlink:href":q[1]});m.appendChild(r);(function(b){e._preload(q[1],function(){var d=this.offsetWidth,e=this.offsetHeight;n(b,{width:d,height:e});n(r,{width:d,height:e});c.paper.safari()})})(m); c.paper.defs.appendChild(m);g.style.fill="url(#"+m.id+")";n(g,{fill:"url(#"+m.id+")"});c.pattern=m;c.pattern&&o(c);break}f=e.getRGB(j);if(f.error){if(("circle"==c.type||"ellipse"==c.type||"r"!=x(j).charAt())&&z(c,j)){if("opacity"in b||"fill-opacity"in b)if(f=e._g.doc.getElementById(g.getAttribute("fill").replace(/^url\(#|\)$/g,"")))f=f.getElementsByTagName("stop"),n(f[f.length-1],{"stop-opacity":("opacity"in b?b.opacity:1)*("fill-opacity"in b?b["fill-opacity"]:1)});b.gradient=j;b.fill="none";break}}else delete k.gradient, delete b.gradient,!e.is(b.opacity,"undefined")&&e.is(k.opacity,"undefined")&&n(g,{opacity:b.opacity}),!e.is(b["fill-opacity"],"undefined")&&e.is(k["fill-opacity"],"undefined")&&n(g,{"fill-opacity":b["fill-opacity"]});f.hasOwnProperty("opacity")&&n(g,{"fill-opacity":1<f.opacity?f.opacity/100:f.opacity});case "stroke":f=e.getRGB(j);g.setAttribute(i,f.hex);"stroke"==i&&f.hasOwnProperty("opacity")&&n(g,{"stroke-opacity":1<f.opacity?f.opacity/100:f.opacity});"stroke"==i&&c._.arrows&&("startString"in c._.arrows&& N(c,c._.arrows.startString),"endString"in c._.arrows&&N(c,c._.arrows.endString,1));break;case "gradient":("circle"==c.type||"ellipse"==c.type||"r"!=x(j).charAt())&&z(c,j);break;case "opacity":b.gradient&&!b.hasOwnProperty("stroke-opacity")&&n(g,{"stroke-opacity":1<j?j/100:j});case "fill-opacity":if(b.gradient){if(f=e._g.doc.getElementById(g.getAttribute("fill").replace(/^url\(#|\)$/g,"")))f=f.getElementsByTagName("stop"),n(f[f.length-1],{"stop-opacity":j});break}default:"font-size"==i&&(j=R(j,10)+ "px"),f=i.replace(/(\-.)/g,function(b){return b.substring(1).toUpperCase()}),g.style[f]=j,c._.dirty=1,g.setAttribute(i,j)}}H(c,k);g.style.visibility=d},H=function(c,k){if(!("text"!=c.type||!k.hasOwnProperty("text")&&!k.hasOwnProperty("font")&&!k.hasOwnProperty("font-size")&&!k.hasOwnProperty("x")&&!k.hasOwnProperty("y"))){var g=c.attrs,b=c.node,d=b.firstChild?R(e._g.doc.defaultView.getComputedStyle(b.firstChild,"").getPropertyValue("font-size"),10):10;if(k.hasOwnProperty("text")){for(g.text=k.text;b.firstChild;)b.removeChild(b.firstChild); for(var i=x(k.text).split("\n"),j=[],f,m=0,o=i.length;m<o;m++)f=n("tspan"),m&&n(f,{dy:1.2*d,x:g.x}),f.appendChild(e._g.doc.createTextNode(i[m])),b.appendChild(f),j[m]=f}else{j=b.getElementsByTagName("tspan");for(m=0,o=j.length;m<o;m++)m?n(j[m],{dy:1.2*d,x:g.x}):n(j[0],{dy:0})}n(b,{x:g.x,y:g.y});c._.dirty=1;b=c._getBBox();(g=g.y-(b.y+b.height/2))&&e.is(g,"finite")&&n(j[0],{dy:g})}},C=function(c,k){this[0]=this.node=c;c.raphael=!0;this.id=e._oid++;c.raphaelid=this.id;this.matrix=e.matrix();this.realPath= null;this.paper=k;this.attrs=this.attrs||{};this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};!k.bottom&&(k.bottom=this);(this.prev=k.top)&&(k.top.next=this);k.top=this;this.next=null},L=e.el;C.prototype=L;L.constructor=C;e._engine.path=function(c,e){var g=n("path");e.canvas&&e.canvas.appendChild(g);g=new C(g,e);g.type="path";A(g,{fill:"none",stroke:"#000",path:c});return g};L.rotate=function(c,e,g){if(this.removed)return this;c=x(c).split(O);c.length-1&&(e=s(c[1]),g=s(c[2]));c=s(c[0]);null== g&&(e=g);if(null==e||null==g)g=this.getBBox(1),e=g.x+g.width/2,g=g.y+g.height/2;this.transform(this._.transform.concat([["r",c,e,g]]));return this};L.scale=function(c,e,g,b){if(this.removed)return this;c=x(c).split(O);c.length-1&&(e=s(c[1]),g=s(c[2]),b=s(c[3]));c=s(c[0]);null==e&&(e=c);null==b&&(g=b);if(null==g||null==b)var d=this.getBBox(1);g=null==g?d.x+d.width/2:g;b=null==b?d.y+d.height/2:b;this.transform(this._.transform.concat([["s",c,e,g,b]]));return this};L.translate=function(c,e){if(this.removed)return this; c=x(c).split(O);c.length-1&&(e=s(c[1]));c=s(c[0])||0;this.transform(this._.transform.concat([["t",c,+e||0]]));return this};L.transform=function(c){var k=this._;if(null==c)return k.transform;e._extractTransform(this,c);this.clip&&n(this.clip,{transform:this.matrix.invert()});this.pattern&&o(this);this.node&&n(this.node,{transform:this.matrix});if(1!=k.sx||1!=k.sy)this.attr({"stroke-width":this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1});return this};L.hide=function(){!this.removed&& this.paper.safari(this.node.style.display="none");return this};L.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};L.remove=function(){if(!this.removed){var c=this.paper;c.__set__&&c.__set__.exclude(this);V.unbind("*.*."+this.id);this.gradient&&c.defs.removeChild(this.gradient);e._tear(this,c);this.node.parentNode.removeChild(this.node);for(var k in this)this[k]="function"==typeof this[k]?e._removedFactory(k):null;this.removed=!0}};L._getBBox=function(){if("none"== this.node.style.display){this.show();var c=!0}var e={};try{e=this.node.getBBox()}catch(g){}finally{e=e||{}}c&&this.hide();return e};L.attr=function(c,k){if(this.removed)return this;if(null==c){var g={},b;for(b in this.attrs)this.attrs.hasOwnProperty(b)&&(g[b]=this.attrs[b]);g.gradient&&"none"==g.fill&&(g.fill=g.gradient)&&delete g.gradient;g.transform=this._.transform;return g}if(null==k&&e.is(c,"string")){if("fill"==c&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"== c)return this._.transform;b=c.split(O);for(var g={},d=0,i=b.length;d<i;d++)c=b[d],g[c]=c in this.attrs?this.attrs[c]:e.is(this.paper.customAttributes[c],"function")?this.paper.customAttributes[c].def:e._availableAttrs[c];return i-1?g:g[b[0]]}if(null==k&&e.is(c,"array")){g={};for(d=0,i=c.length;d<i;d++)g[c[d]]=this.attr(c[d]);return g}null!=k?(g={},g[c]=k):null!=c&&e.is(c,"object")&&(g=c);for(d in g)V("attr."+d+"."+this.id,this,g[d]);for(d in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(d)&& g.hasOwnProperty(d)&&e.is(this.paper.customAttributes[d],"function"))for(i in b=this.paper.customAttributes[d].apply(this,[].concat(g[d])),this.attrs[d]=g[d],b)b.hasOwnProperty(i)&&(g[i]=b[i]);A(this,g);return this};L.toFront=function(){if(this.removed)return this;"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.appendChild(this.node.parentNode):this.node.parentNode.appendChild(this.node);var c=this.paper;c.top!=this&&e._tofront(this,c);return this};L.toBack=function(){if(this.removed)return this; var c=this.node.parentNode;"a"==c.tagName.toLowerCase()?c.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild):c.firstChild!=this.node&&c.insertBefore(this.node,this.node.parentNode.firstChild);e._toback(this,this.paper);return this};L.insertAfter=function(c){if(this.removed)return this;var k=c.node||c[c.length-1].node;k.nextSibling?k.parentNode.insertBefore(this.node,k.nextSibling):k.parentNode.appendChild(this.node);e._insertafter(this,c,this.paper);return this}; L.insertBefore=function(c){if(this.removed)return this;var k=c.node||c[0].node;k.parentNode.insertBefore(this.node,k);e._insertbefore(this,c,this.paper);return this};L.blur=function(c){if(0!==+c){var k=n("filter"),g=n("feGaussianBlur");this.attrs.blur=c;k.id=e.createUUID();n(g,{stdDeviation:+c||1.5});k.appendChild(g);this.paper.defs.appendChild(k);this._blur=k;n(this.node,{filter:"url(#"+k.id+")"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur), this.node.removeAttribute("filter")};e._engine.circle=function(c,e,g,b){var d=n("circle");c.canvas&&c.canvas.appendChild(d);c=new C(d,c);c.attrs={cx:e,cy:g,r:b,fill:"none",stroke:"#000"};c.type="circle";n(d,c.attrs);return c};e._engine.rect=function(c,e,g,b,d,i){var j=n("rect");c.canvas&&c.canvas.appendChild(j);c=new C(j,c);c.attrs={x:e,y:g,width:b,height:d,r:i||0,rx:i||0,ry:i||0,fill:"none",stroke:"#000"};c.type="rect";n(j,c.attrs);return c};e._engine.ellipse=function(c,e,g,b,d){var i=n("ellipse"); c.canvas&&c.canvas.appendChild(i);c=new C(i,c);c.attrs={cx:e,cy:g,rx:b,ry:d,fill:"none",stroke:"#000"};c.type="ellipse";n(i,c.attrs);return c};e._engine.image=function(c,e,g,b,d,i){var j=n("image");n(j,{x:g,y:b,width:d,height:i,preserveAspectRatio:"none"});j.setAttributeNS("http://www.w3.org/1999/xlink","href",e);c.canvas&&c.canvas.appendChild(j);c=new C(j,c);c.attrs={x:g,y:b,width:d,height:i,src:e};c.type="image";return c};e._engine.text=function(c,k,g,b){var d=n("text");c.canvas&&c.canvas.appendChild(d); c=new C(d,c);c.attrs={x:k,y:g,"text-anchor":"middle",text:b,font:e._availableAttrs.font,stroke:"none",fill:"#000"};c.type="text";A(c,c.attrs);return c};e._engine.setSize=function(c,e){this.width=c||this.width;this.height=e||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};e._engine.create=function(){var c=e._getContainer.apply(0,arguments),k=c&&c.container,g=c.x,b=c.y,d=c.width, c=c.height;if(!k)throw Error("SVG container not found.");var i=n("svg"),j,g=g||0,b=b||0,d=d||512,c=c||342;n(i,{height:c,version:1.1,width:d,xmlns:"http://www.w3.org/2000/svg"});1==k?(i.style.cssText="overflow:hidden;position:absolute;left:"+g+"px;top:"+b+"px",e._g.doc.body.appendChild(i),j=1):(i.style.cssText="overflow:hidden;position:relative",k.firstChild?k.insertBefore(i,k.firstChild):k.appendChild(i));k=new e._Paper;k.width=d;k.height=c;k.canvas=i;k.clear();k._left=k._top=0;j&&(k.renderfix=function(){}); k.renderfix();return k};e._engine.setViewBox=function(c,e,g,b,d){V("setViewBox",this,this._viewBox,[c,e,g,b,d]);var i=M(g/this.width,b/this.height),j=this.top,f;null==c?(this._vbSize&&(i=1),delete this._vbSize,f="0 0 "+this.width+" "+this.height):(this._vbSize=i,f=c+" "+e+" "+g+" "+b);for(n(this.canvas,{viewBox:f,preserveAspectRatio:d?"meet":"xMinYMin"});i&&j;)f="stroke-width"in j.attrs?j.attrs["stroke-width"]:1,j.attr({"stroke-width":f}),j._.dirty=1,j._.dirtyT=1,j=j.prev;this._viewBox=[c,e,g,b,!!d]; return this};e.prototype.renderfix=function(){var c=this.canvas,e=c.style,g=c.getScreenCTM()||c.createSVGMatrix(),c=-g.e%1,g=-g.f%1;if(c||g){if(c)this._left=(this._left+c)%1,e.left=this._left+"px";if(g)this._top=(this._top+g)%1,e.top=this._top+"px"}};e.prototype.clear=function(){e.eve("clear",this);for(var c=this.canvas;c.firstChild;)c.removeChild(c.firstChild);this.bottom=this.top=null;(this.desc=n("desc")).appendChild(e._g.doc.createTextNode("Created with Rapha\u00ebl "+e.version));c.appendChild(this.desc); c.appendChild(this.defs=n("defs"))};e.prototype.remove=function(){V("remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var c in this)this[c]="function"==typeof this[c]?e._removedFactory(c):null};var T=e.st,D;for(D in L)L.hasOwnProperty(D)&&!T.hasOwnProperty(D)&&(T[D]=function(c){return function(){var e=arguments;return this.forEach(function(g){g[c].apply(g,e)})}}(D))}(window.Raphael); window.Raphael.vml&&function(e){var x=String,s=parseFloat,R=Math,y=R.round,M=R.max,S=R.min,B=R.abs,O=/[, ]+/,V=e.eve,W={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},r=/([clmz]),?([^clmz]*)/gi,n=/ progid:\S+Blur\([^\)]+\)/g,z=/-?[^,\s-]+/g,o={path:1,rect:1,image:1},N={circle:1,ellipse:1},F=function(b){var d=/[ahqstv]/ig,c=e._pathToAbsolute;x(b).match(d)&&(c=e._path2curve);d=/[clmz]/g;if(c==e._pathToAbsolute&&!x(b).match(d))return b=x(b).replace(r,function(b,d,c){var e=[],i="m"==d.toLowerCase(), f=W[d];c.replace(z,function(b){i&&2==e.length&&(f+=e+W["m"==d?"l":"L"],e=[]);e.push(y(21600*b))});return f+e});for(var d=c(b),j,b=[],f=0,g=d.length;f<g;f++){c=d[f];j=d[f][0].toLowerCase();"z"==j&&(j="x");for(var k=1,q=c.length;k<q;k++)j+=y(21600*c[k])+(k!=q-1?",":"");b.push(j)}return b.join(" ")},G=function(b,d,c){var j=e.matrix();j.rotate(-b,0.5,0.5);return{dx:j.x(d,c),dy:j.y(d,c)}},A=function(b,d,c,e,f,g){var k=b._,q=b.matrix,o=k.fillpos,b=b.node,n=b.style,r=1,s="",x=21600/d,y=21600/c;n.visibility= "hidden";if(d&&c){b.coordsize=B(x)+" "+B(y);n.rotation=g*(0>d*c?-1:1);if(g)f=G(g,e,f),e=f.dx,f=f.dy;0>d&&(s+="x");0>c&&(s+=" y")&&(r=-1);n.flip=s;b.coordorigin=e*-x+" "+f*-y;if(o||k.fillsize){e=(e=b.getElementsByTagName("fill"))&&e[0];b.removeChild(e);if(o)f=G(g,q.x(o[0],o[1]),q.y(o[0],o[1])),e.position=f.dx*r+" "+f.dy*r;if(k.fillsize)e.size=k.fillsize[0]*B(d)+" "+k.fillsize[1]*B(c);b.appendChild(e)}n.visibility="visible"}};e.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+ this.version};var H=function(b,d,c){for(var d=x(d).toLowerCase().split("-"),c=c?"end":"start",e=d.length,f="classic",g="medium",k="medium";e--;)switch(d[e]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":f=d[e];break;case "wide":case "narrow":k=d[e];break;case "long":case "short":g=d[e]}b=b.node.getElementsByTagName("stroke")[0];b[c+"arrow"]=f;b[c+"arrowlength"]=g;b[c+"arrowwidth"]=k},C=function(b,d){b.attrs=b.attrs||{};var i=b.node,j=b.attrs,f=i.style,g=o[b.type]&& (d.x!=j.x||d.y!=j.y||d.width!=j.width||d.height!=j.height||d.cx!=j.cx||d.cy!=j.cy||d.rx!=j.rx||d.ry!=j.ry||d.r!=j.r),k=N[b.type]&&(j.cx!=d.cx||j.cy!=d.cy||j.r!=d.r||j.rx!=d.rx||j.ry!=d.ry),q;for(q in d)d.hasOwnProperty(q)&&(j[q]=d[q]);if(g)j.path=e._getPath[b.type](b),b._.dirty=1;d.href&&(i.href=d.href);d.title&&(i.title=d.title);d.target&&(i.target=d.target);d.cursor&&(f.cursor=d.cursor);"blur"in d&&b.blur(d.blur);if(d.path&&"path"==b.type||g)if(i.path=F(~x(j.path).toLowerCase().indexOf("r")?e._pathToAbsolute(j.path): j.path),"image"==b.type)b._.fillpos=[j.x,j.y],b._.fillsize=[j.width,j.height],A(b,1,1,0,0,0);"transform"in d&&b.transform(d.transform);if(k)f=+j.cx,g=+j.cy,k=+j.rx||+j.r||0,q=+j.ry||+j.r||0,i.path=e.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",y(21600*(f-k)),y(21600*(g-q)),y(21600*(f+k)),y(21600*(g+q)),y(21600*f));if("clip-rect"in d){f=x(d["clip-rect"]).split(O);if(4==f.length&&(f[2]=+f[2]+ +f[0],f[3]=+f[3]+ +f[1],g=i.clipRect||e._g.doc.createElement("div"),k=g.style,k.clip=e.format("rect({1}px {2}px {3}px {0}px)", f),!i.clipRect))k.position="absolute",k.top=0,k.left=0,k.width=b.paper.width+"px",k.height=b.paper.height+"px",i.parentNode.insertBefore(g,i),g.appendChild(i),i.clipRect=g;if(!d["clip-rect"])i.clipRect&&(i.clipRect.style.clip="auto")}if(b.textpath)f=b.textpath.style,d.font&&(f.font=d.font),d["font-family"]&&(f.fontFamily='"'+d["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),d["font-size"]&&(f.fontSize=d["font-size"]),d["font-weight"]&&(f.fontWeight=d["font-weight"]),d["font-style"]&& (f.fontStyle=d["font-style"]);"arrow-start"in d&&H(b,d["arrow-start"]);"arrow-end"in d&&H(b,d["arrow-end"],1);if(null!=d.opacity||null!=d["stroke-width"]||null!=d.fill||null!=d.src||null!=d.stroke||null!=d["stroke-width"]||null!=d["stroke-opacity"]||null!=d["fill-opacity"]||null!=d["stroke-dasharray"]||null!=d["stroke-miterlimit"]||null!=d["stroke-linejoin"]||null!=d["stroke-linecap"]){f=(f=i.getElementsByTagName("fill"))&&f[0];!f&&(f=c("fill"));if("image"==b.type&&d.src)f.src=d.src;d.fill&&(f.on= !0);if(null==f.on||"none"==d.fill||null===d.fill)f.on=!1;if(f.on&&d.fill)if(g=x(d.fill).match(e._ISURL))f.parentNode==i&&i.removeChild(f),f.rotate=!0,f.src=g[1],f.type="tile",k=b.getBBox(1),f.position=k.x+" "+k.y,b._.fillpos=[k.x,k.y],e._preload(g[1],function(){b._.fillsize=[this.offsetWidth,this.offsetHeight]});else if(f.color=e.getRGB(d.fill).hex,f.src="",f.type="solid",e.getRGB(d.fill).error&&(b.type in{circle:1,ellipse:1}||"r"!=x(d.fill).charAt())&&L(b,d.fill,f))j.fill="none",j.gradient=d.fill, f.rotate=!1;if("fill-opacity"in d||"opacity"in d)if(k=((+j["fill-opacity"]+1||2)-1)*((+j.opacity+1||2)-1)*((+e.getRGB(d.fill).o+1||2)-1),k=S(M(k,0),1),f.opacity=k,f.src)f.color="none";i.appendChild(f);f=i.getElementsByTagName("stroke")&&i.getElementsByTagName("stroke")[0];g=!1;!f&&(g=f=c("stroke"));if(d.stroke&&"none"!=d.stroke||d["stroke-width"]||null!=d["stroke-opacity"]||d["stroke-dasharray"]||d["stroke-miterlimit"]||d["stroke-linejoin"]||d["stroke-linecap"])f.on=!0;("none"==d.stroke||null===d.stroke|| null==f.on||0==d.stroke||0==d["stroke-width"])&&(f.on=!1);k=e.getRGB(d.stroke);f.on&&d.stroke&&(f.color=k.hex);k=((+j["stroke-opacity"]+1||2)-1)*((+j.opacity+1||2)-1)*((+k.o+1||2)-1);q=0.75*(s(d["stroke-width"])||1);k=S(M(k,0),1);null==d["stroke-width"]&&(q=j["stroke-width"]);d["stroke-width"]&&(f.weight=q);q&&1>q&&(k*=q)&&(f.weight=1);f.opacity=k;d["stroke-linejoin"]&&(f.joinstyle=d["stroke-linejoin"]||"miter");f.miterlimit=d["stroke-miterlimit"]||8;d["stroke-linecap"]&&(f.endcap="butt"==d["stroke-linecap"]? "flat":"square"==d["stroke-linecap"]?"square":"round");if(d["stroke-dasharray"])k={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},f.dashstyle=k.hasOwnProperty(d["stroke-dasharray"])?k[d["stroke-dasharray"]]:"";g&&i.appendChild(f)}if("text"==b.type){b.paper.canvas.style.display="";i=b.paper.span;g=j.font&&j.font.match(/\d+(?:\.\d*)?(?=px)/);f=i.style;j.font&&(f.font=j.font); j["font-family"]&&(f.fontFamily=j["font-family"]);j["font-weight"]&&(f.fontWeight=j["font-weight"]);j["font-style"]&&(f.fontStyle=j["font-style"]);g=s(j["font-size"]||g&&g[0])||10;f.fontSize=100*g+"px";b.textpath.string&&(i.innerHTML=x(b.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));i=i.getBoundingClientRect();b.W=j.w=(i.right-i.left)/100;b.H=j.h=(i.bottom-i.top)/100;b.X=j.x;b.Y=j.y+b.H/2;("x"in d||"y"in d)&&(b.path.v=e.format("m{0},{1}l{2},{1}",y(21600*j.x), y(21600*j.y),y(21600*j.x)+1));i="x,y,text,font,font-family,font-weight,font-style,font-size".split(",");f=0;for(g=i.length;f<g;f++)if(i[f]in d){b._.dirty=1;break}switch(j["text-anchor"]){case "start":b.textpath.style["v-text-align"]="left";b.bbx=b.W/2;break;case "end":b.textpath.style["v-text-align"]="right";b.bbx=-b.W/2;break;default:b.textpath.style["v-text-align"]="center",b.bbx=0}b.textpath.style["v-text-kern"]=!0}},L=function(b,d,c){b.attrs=b.attrs||{};var g=Math.pow,f="linear",m=".5 .5";b.attrs.gradient= d;d=x(d).replace(e._radial_gradient,function(b,d,c){f="radial";d&&c&&(d=s(d),c=s(c),0.25<g(d-0.5,2)+g(c-0.5,2)&&(c=R.sqrt(0.25-g(d-0.5,2))*(2*(0.5<c)-1)+0.5),m=d+" "+c);return""});d=d.split(/\s*\-\s*/);if("linear"==f){var k=d.shift(),k=-s(k);if(isNaN(k))return null}d=e._parseDots(d);if(!d)return null;b=b.shape||b.node;if(d.length){b.removeChild(c);c.on=!0;c.method="none";c.color=d[0].color;c.color2=d[d.length-1].color;for(var o=[],n=0,r=d.length;n<r;n++)d[n].offset&&o.push(d[n].offset+" "+d[n].color); c.colors=o.length?o.join():"0% "+c.color;"radial"==f?(c.type="gradientTitle",c.focus="100%",c.focussize="0 0",c.focusposition=m,c.angle=0):(c.type="gradient",c.angle=(270-k)%360);b.appendChild(c)}return 1},T=function(b,d){this[0]=this.node=b;b.raphael=!0;this.id=e._oid++;b.raphaelid=this.id;this.Y=this.X=0;this.attrs={};this.paper=d;this.matrix=e.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};!d.bottom&&(d.bottom=this);(this.prev=d.top)&&(d.top.next=this);d.top=this;this.next= null},D=e.el;T.prototype=D;D.constructor=T;D.transform=function(b){if(null==b)return this._.transform;var d=this.paper._viewBoxShift,c=d?"s"+[d.scale,d.scale]+"-1-1t"+[d.dx,d.dy]:"",g;d&&(g=b=x(b).replace(/\.{3}|\u2026/g,this._.transform||""));e._extractTransform(this,c+b);var d=this.matrix.clone(),f=this.skew,b=this.node,c=~x(this.attrs.fill).indexOf("-"),k=!x(this.attrs.fill).indexOf("url(");d.translate(-0.5,-0.5);k||c||"image"==this.type?(f.matrix="1 0 0 1",f.offset="0 0",f=d.split(),c&&f.noRotation|| !f.isSimple?(b.style.filter=d.toFilter(),c=this.getBBox(),f=this.getBBox(1),d=c.x-f.x,c=c.y-f.y,b.coordorigin=-21600*d+" "+-21600*c,A(this,1,1,d,c,0)):(b.style.filter="",A(this,f.scalex,f.scaley,f.dx,f.dy,f.rotate))):(b.style.filter="",f.matrix=x(d),f.offset=d.offset());g&&(this._.transform=g);return this};D.rotate=function(b,d,c){if(this.removed)return this;if(null!=b){b=x(b).split(O);b.length-1&&(d=s(b[1]),c=s(b[2]));b=s(b[0]);null==c&&(d=c);if(null==d||null==c)c=this.getBBox(1),d=c.x+c.width/2, c=c.y+c.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,d,c]]));return this}};D.translate=function(b,d){if(this.removed)return this;b=x(b).split(O);b.length-1&&(d=s(b[1]));b=s(b[0])||0;d=+d||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=d);this.transform(this._.transform.concat([["t",b,d]]));return this};D.scale=function(b,d,c,e){if(this.removed)return this;b=x(b).split(O);b.length-1&&(d=s(b[1]),c=s(b[2]),e=s(b[3]),isNaN(c)&&(c=null),isNaN(e)&&(e=null));b=s(b[0]);null==d&& (d=b);null==e&&(c=e);if(null==c||null==e)var f=this.getBBox(1);c=null==c?f.x+f.width/2:c;e=null==e?f.y+f.height/2:e;this.transform(this._.transform.concat([["s",b,d,c,e]]));this._.dirtyT=1;return this};D.hide=function(){!this.removed&&(this.node.style.display="none");return this};D.show=function(){!this.removed&&(this.node.style.display="");return this};D._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};D.remove=function(){if(!this.removed){this.paper.__set__&& this.paper.__set__.exclude(this);e.eve.unbind("*.*."+this.id);e._tear(this,this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var b in this)this[b]="function"==typeof this[b]?e._removedFactory(b):null;this.removed=!0}};D.attr=function(b,d){if(this.removed)return this;if(null==b){var c={},g;for(g in this.attrs)this.attrs.hasOwnProperty(g)&&(c[g]=this.attrs[g]);c.gradient&&"none"==c.fill&&(c.fill=c.gradient)&&delete c.gradient;c.transform= this._.transform;return c}if(null==d&&e.is(b,"string")){if("fill"==b&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;g=b.split(O);for(var c={},f=0,k=g.length;f<k;f++)b=g[f],c[b]=b in this.attrs?this.attrs[b]:e.is(this.paper.customAttributes[b],"function")?this.paper.customAttributes[b].def:e._availableAttrs[b];return k-1?c:c[g[0]]}if(this.attrs&&null==d&&e.is(b,"array")){c={};for(f=0,k=b.length;f<k;f++)c[b[f]]=this.attr(b[f]);return c}null!=d&&(c={},c[b]=d);null==d&&e.is(b, "object")&&(c=b);for(f in c)V("attr."+f+"."+this.id,this,c[f]);if(c){for(f in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(f)&&c.hasOwnProperty(f)&&e.is(this.paper.customAttributes[f],"function"))for(k in g=this.paper.customAttributes[f].apply(this,[].concat(c[f])),this.attrs[f]=c[f],g)g.hasOwnProperty(k)&&(c[k]=g[k]);if(c.text&&"text"==this.type)this.textpath.string=c.text;C(this,c)}return this};D.toFront=function(){!this.removed&&this.node.parentNode.appendChild(this.node); this.paper&&this.paper.top!=this&&e._tofront(this,this.paper);return this};D.toBack=function(){if(this.removed)return this;this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),e._toback(this,this.paper));return this};D.insertAfter=function(b){if(this.removed)return this;b.constructor==e.st.constructor&&(b=b[b.length-1]);b.node.nextSibling?b.node.parentNode.insertBefore(this.node,b.node.nextSibling):b.node.parentNode.appendChild(this.node); e._insertafter(this,b,this.paper);return this};D.insertBefore=function(b){if(this.removed)return this;b.constructor==e.st.constructor&&(b=b[0]);b.node.parentNode.insertBefore(this.node,b.node);e._insertbefore(this,b,this.paper);return this};D.blur=function(b){var d=this.node.runtimeStyle,c=d.filter,c=c.replace(n,"");0!==+b?(this.attrs.blur=b,d.filter=c+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+b||1.5)+")",d.margin=e.format("-{0}px 0 0 -{0}px",y(+b||1.5))):(d.filter=c,d.margin=0,delete this.attrs.blur)}; e._engine.path=function(b,d){var e=c("shape");e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";e.coordsize="21600 21600";e.coordorigin=d.coordorigin;var g=new T(e,d),f={fill:"none",stroke:"#000"};b&&(f.path=b);g.type="path";g.path=[];g.Path="";C(g,f);d.canvas.appendChild(e);f=c("skew");f.on=!0;e.appendChild(f);g.skew=f;g.transform("");return g};e._engine.rect=function(b,d,c,g,f,k){var o=e._rectPath(d,c,g,f,k),b=b.path(o),n=b.attrs;b.X=n.x=d;b.Y=n.y=c;b.W=n.width=g;b.H=n.height= f;n.r=k;n.path=o;b.type="rect";return b};e._engine.ellipse=function(b,d,c,e,f){b=b.path();b.X=d-e;b.Y=c-f;b.W=2*e;b.H=2*f;b.type="ellipse";C(b,{cx:d,cy:c,rx:e,ry:f});return b};e._engine.circle=function(b,d,c,e){b=b.path();b.X=d-e;b.Y=c-e;b.W=b.H=2*e;b.type="circle";C(b,{cx:d,cy:c,r:e});return b};e._engine.image=function(b,d,c,g,f,k){var n=e._rectPath(c,g,f,k),b=b.path(n).attr({stroke:"none"}),o=b.attrs,r=b.node,s=r.getElementsByTagName("fill")[0];o.src=d;b.X=o.x=c;b.Y=o.y=g;b.W=o.width=f;b.H=o.height= k;o.path=n;b.type="image";s.parentNode==r&&r.removeChild(s);s.rotate=!0;s.src=d;s.type="tile";b._.fillpos=[c,g];b._.fillsize=[f,k];r.appendChild(s);A(b,1,1,0,0,0);return b};e._engine.text=function(b,d,g,j){var f=c("shape"),k=c("path"),o=c("textpath"),d=d||0,g=g||0,j=j||"";k.v=e.format("m{0},{1}l{2},{1}",y(21600*d),y(21600*g),y(21600*d)+1);k.textpathok=!0;o.string=x(j);o.on=!0;f.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f.coordsize="21600 21600";f.coordorigin="0 0";var n= new T(f,b),r={fill:"#000",stroke:"none",font:e._availableAttrs.font,text:j};n.shape=f;n.path=k;n.textpath=o;n.type="text";n.attrs.text=x(j);n.attrs.x=d;n.attrs.y=g;n.attrs.w=1;n.attrs.h=1;C(n,r);f.appendChild(o);f.appendChild(k);b.canvas.appendChild(f);b=c("skew");b.on=!0;f.appendChild(b);n.skew=b;n.transform("");return n};e._engine.setSize=function(b,d){var c=this.canvas.style;this.width=b;this.height=d;b==+b&&(b+="px");d==+d&&(d+="px");c.width=b;c.height=d;c.clip="rect(0 "+b+" "+d+" 0)";this._viewBox&& e._engine.setViewBox.apply(this,this._viewBox);return this};e._engine.setViewBox=function(b,c,g,j,f){e.eve("setViewBox",this,this._viewBox,[b,c,g,j,f]);var k=this.width,n=this.height,o=1/M(g/k,j/n),r,s;f&&(r=n/j,s=k/g,g*r<k&&(b-=(k-g*r)/2/r),j*s<n&&(c-=(n-j*s)/2/s));this._viewBox=[b,c,g,j,!!f];this._viewBoxShift={dx:-b,dy:-c,scale:o};this.forEach(function(b){b.transform("...")});return this};var c;e._engine.initWin=function(b){var d=b.document;d.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"); try{!d.namespaces.rvml&&d.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),c=function(b){return d.createElement("<rvml:"+b+' class="rvml">')}}catch(e){c=function(b){return d.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}};e._engine.initWin(e._g.win);e._engine.create=function(){var b=e._getContainer.apply(0,arguments),c=b.container,g=b.height,j=b.width,f=b.x,b=b.y;if(!c)throw Error("VML container not found.");var k=new e._Paper,n=k.canvas=e._g.doc.createElement("div"), o=n.style,f=f||0,b=b||0,j=j||512,g=g||342;k.width=j;k.height=g;j==+j&&(j+="px");g==+g&&(g+="px");k.coordsize="21600000 21600000";k.coordorigin="0 0";k.span=e._g.doc.createElement("span");k.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";n.appendChild(k.span);o.cssText=e.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",j,g);1==c?(e._g.doc.body.appendChild(n),o.left=f+"px",o.top= b+"px",o.position="absolute"):c.firstChild?c.insertBefore(n,c.firstChild):c.appendChild(n);k.renderfix=function(){};return k};e.prototype.clear=function(){e.eve("clear",this);this.canvas.innerHTML="";this.span=e._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};e.prototype.remove=function(){e.eve("remove",this);this.canvas.parentNode.removeChild(this.canvas); for(var b in this)this[b]="function"==typeof this[b]?e._removedFactory(b):null;return!0};var k=e.st,g;for(g in D)D.hasOwnProperty(g)&&!k.hasOwnProperty(g)&&(k[g]=function(b){return function(){var c=arguments;return this.forEach(function(e){e[b].apply(e,c)})}}(g))}(window.Raphael);

