/**
 * jqBarGraph - jQuery plugin
 * @version: 1.0 (2009/11/12)
 * @requires jQuery v1.2.2 or later 
 * @author Ivan Lazarevic
 * Examples and documentation at: http://www.workshop.rs/jqbargraph/
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 * 
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(m($){r e=13 B;r f=13 B;$.Q.14=$.Q.1U=m(d){1o=m(a){e[a.6]=$.1V({},$.Q.14.1p,d);$(a).s({\'n\':e[a.6].n,\'j\':e[a.6].j,\'C\':\'1q\',\'15-16\':\'1r\'});1s(a)};17=m(a){18=0;t(1t v a){18+=a[1t]}p 18.1W(2)};E=m(a){w=0;t(r b v a){q=a[b][0];7(q 19 B)q=17(q);7(1u(q)>1u(w))w=q}p w};1v=m(a){w=0;F=0;t(r b v a){R=a[b][0];t(r c v R){7(R[c]>F)F=R[c]}7(F>w)w=F}p w};1s=m(a){4=e[a.6];h=4.h;7(h==1a){$(a).1X(\'1Y 1Z 21 22 h t 23\');p}7(4.G==\'24\')h.G(1w);7(4.G==\'25\')h.G(1x);k=\'\';H=4.H;I=4.I;S=4.1y;J=4.k?4.J:0;T=($(a).n()-J)/h.1b;1c=$(a).j();r b=13 B();E=E(h);K=0;t(r c v h){u=h[c][0];7(u 19 B)q=17(u);1d q=u;x=h[c][1];g=h[c][2];9=c+a.6;7(g==1a&&4.y==z)g=4.g;7(4.y&&!g){1z=4.y.1b;7(1z==K)K=0;g=4.y[K];K++}7(4.U==\'1e\')g=\'1A\';7(x==1a)x=4.x;D="<8 A=\'V"+a.6+"\' 6=\'V"+9+"\' L=\'C: 1B\'>";D+="<8 A=\'W"+a.6+"\' 6=\'W"+9+"\'>"+H+q+I+"</8>";D+="<8 A=\'26"+a.6+"\' 6=\'M"+9+"\' L=\'1f-g:"+g+";C: 1q; 1C: 1D;\'></8>";7(!4.k||4.N)D+="<8 A=\'O"+a.6+"\' 6=\'O"+9+"\'>"+x+"</8>";D+="</8>";$(a).1g(D);X=1c-$(\'.O\'+a.6).j()-$(\'.W\'+a.6).j();Y=(X*q)/E;$(\'#V\'+9).s({\'P\':(T)*c,\'n\':T-S,\'1E-P\':S});7(u 19 B){7(4.U=="1e"){1h=1v(h);X=Y=1c-$(\'.O\'+a.6).j();$(\'.W\'+a.6).27()}1d{1h=E}t(i v u){1F=X*u[i]/1h;1i=28((T-S)/u.1b);1j=\'\';1k=0;7(4.1G){1j=4.H+u[i]+4.I;1k=12}o="<8 A=\'1H"+a.6+"\' L=\'j:"+1F+"Z; 1f-g: "+4.y[i]+"; P:"+1i*i+"Z; g:"+4.1I+"; 1J-1K:"+1k+"Z\' >"+1j+"</8>";$(\'#M\'+9).1L(o)}}7(4.U==\'1e\')$(\'.1H\'+a.6).s({\'n\':1i,\'C\':\'1B\',\'11\':0});7(4.C==\'11\')$(\'.V\'+a.6).s(\'11\',0);7(!4.N)b.1M([g,x,a.6,9]);7(4.1l){$(\'#M\'+9).s({\'29\':\'1A\',\'j\':0});$(\'#M\'+9).1l({\'j\':Y},4.1N*2a)}1d{$(\'#M\'+9).s({\'j\':Y})}}t(r l v 4.N){b.1M([4.y[l],4.N[l],a.6,l])}1O(b);7(4.k){$(a).1g("<8 6=\'1m"+9+"\'></8>");$(\'#1m\'+9).s({\'n\':J,\'1P\':\'2b\',\'15-16\':\'P\'});$(\'#1m\'+9).1g(k);$(\'.1Q\'+a.6).s({\'1P\':\'P\',\'1E\':3,\'j\':12,\'n\':20,\'1J-1K\':0})}7(4.1n){$(a).2c("<8 6=\'1R"+9+"\'></8>");$(\'#1R\'+9).1L(4.1n).s({\'n\':4.n+\'Z\',\'15-16\':\'1r\'})}};1O=m(a){k=\'\';t(r b v a){k+="<8 6=\'k"+a[b][3]+"\' L=\'1C: 1D; 2d: 1;\'>";k+="<8 A=\'1Q"+a[b][2]+"\' 6=\'2e"+a[b][3]+"\' L=\'1f-g:"+a[b][0]+"\'></8>";k+="<8 A=\'2f"+a[b][2]+"\' 6=\'O"+9+"\'>"+a[b][1]+"</8>";k+="</8>"}};1S.2g(m(){1o(1S)})};$.Q.14.1p={1y:10,n:2h,j:2i,g:\'#2j\',y:z,x:\'\',G:z,C:\'11\',H:\'\',I:\'\',1l:1T,1N:1.5,J:2k,k:z,N:z,U:z,1G:1T,1I:\'#2l\',1n:z};m 1w(a,b){7(a[0]<b[0])p-1;7(a[0]>b[0])p 1;p 0}m 1x(a,b){7(a[0]>b[0])p-1;7(a[0]<b[0])p 1;p 0}})(2m);',62,147,'||||arr||id|if|div|unique|||||||color|data||height|legend||function|width||return|value|var|css|for|valueData|in|maxvalue|lbl|colors|false|class|Array|position|out|max|maxvalue2|sort|prefix|postfix|legendWidth|colPosition|style|graphFieldBar|legends|graphLabel|left|fn|ar2|space|fieldWidth|type|graphField|graphValue|totalHeightBar|fieldHeight|px||bottom||new|jqBarGraph|text|align|sum|total|instanceof|undefined|length|totalHeight|else|multi|background|append|maxe|wid|sv|fs|animate|legendHolder|title|init|defaults|relative|center|doGraph|val|parseFloat|maxMulti|sortNumberAsc|sortNumberDesc|barSpace|colorsCounter|none|absolute|overflow|hidden|margin|heig|showValues|subBars|showValuesColor|font|size|prepend|push|speed|createLegend|float|legendBar|graphHolder|this|true|jqbargraph|extend|toFixed|html|There|is||not|enought|graph|asc|desc|graphBar|remove|parseInt|display|1000|right|wrap|zoom|legendColor|legendLabel|each|400|300|000000|100|fff|jQuery'.split('|'),0,{}))

/*
 * Horizontal Bar Graph for jQuery
 * version 0.1a
 *
 * http://www.dumpsterdoggy.com/plugins/horiz-bar-graph
 *
 * Copyright (c) 2009 Chris Missal
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 */
 
/*(function($) {
	$.fn.horizontalBarGraph = function(options) {
	
		var opts = $.extend({}, $.fn.horizontalBarGraph.defaults, options);
		
		this.children("dt,dd").each(function(i) {
		
			var el = $(this);
			if(el.is("dt")) {
				el.css({display: "block", float: "left", clear: "left"}).addClass("hbg-label"); return;
			} else {
				(isTitleDD(el) && opts.hasTitles ? createTitle : createBar)(el, opts);
			}
			setBarHover(el, opts);
		});
		
		tryShowTitle(this);
		
		if(opts.animated) {
			createShowButton(opts, this).insertBefore(this);
		}
		if(opts.colors.length) {
			setColors(this.children("dd"), opts);
		}
		if(opts.hoverColors.length) {
			setHoverColors(this.children("dd"), opts);
		}
		
		scaleGraph(this);
		
		return this;
	};
	
	function scaleGraph(graph) {
		var maxWidth = 0;
		graph.children("dt").each(function() {
			maxWidth = Math.max($(this).width(), maxWidth);
		}).css({width: maxWidth+"px"});
	}
	
	function setBarHover(bar, opts) {
		bar.hover(function() {
			bar.addClass("hbg-bar-hover");
		}, function() {
			bar.removeClass("hbg-bar-hover");
		});
	}
	
	function createShowButton(opts, graph) {
		var button = $("<span />").text(opts.button).addClass("hbg-show-button");
		button.click(function() {
			graph.children("dd").show('slow', function() { button.fadeOut('normal'); });
		});
		return button;
	}
	
	function createBar(e, opts) {
		var val = e.text();
		e.css({marginLeft: e.prev().is("dt") ? "5px" : "0px", width: Math.floor(val/opts.interval)+"px"});
		e.html($("<span/>").html(val).addClass("hbg-value"));
		applyOptions(e, opts);
	}
	
	function createTitle(e, opts) {
		var title = e.text();
		e.prev().attr("title", title);
		e.remove();
	}
	
	function tryShowTitle(graph) {
		var title = graph.attr("title");
		if(title) {
			$("<div/>").text(title).addClass("hbg-title").insertBefore(graph);
			graph.css({overflow: "hidden"});
		}
	}
	
	function setColors(bars, opts) {
		var i = 0;
		bars.each(function() { 
			var c = i++ % opts.colors.length;
			$(this).css({backgroundColor: opts.colors[c]});
		});
	}
	
	function setHoverColors(bars, opts) {
		var i = 0;
		bars.each(function(i) {
			var bar = $(this);
			var c = bar.css("background-color");
			var hc = opts.hoverColors[i++ % opts.hoverColors.length];
			bar.hover(function() {
				$(this).css({backgroundColor: hc});
			}, function() {
				$(this).css({backgroundColor: c});
			});
		});
	}
	
	function applyOptions(e, opts) {
		e.css({float: "left"}).addClass("hbg-bar");
		if(opts.animated) { e.hide(); }
	}
	
	function isTitleDD(e) {
		return (e.is(":even") && e.prev().is("dd"));
	}
	
	$.fn.horizontalBarGraph.defaults = {
		interval: 1,
		hasTitles: false,
		animated: false,
		button: 'Show Values',
		colors: [],
		hoverColors: []
	};
	
})(jQuery);
*/
