window.Modernizr=function(d,o,u){function v(W,Y){return(""+W).indexOf(Y)!==-1}function r(W,Y){for(var ga in W)if(E[W[ga]]!==u&&(!Y||Y(W[ga],w)))return true}function b(W,Y){var ga=W.charAt(0).toUpperCase()+W.substr(1);ga=(W+" "+Z.join(ga+" ")+ga).split(" ");return!!r(ga,Y)}function j(){p.input=function(W){for(var Y=0,ga=W.length;Y<ga;Y++)V[W[Y]]=!!(W[Y]in K);return V}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));p.inputtypes=function(W){for(var Y=0,ga,
Da=W.length;Y<Da;Y++){K.setAttribute("type",W[Y]);if(ga=K.type!=="text"){K.value=Q;if(/^range$/.test(K.type)&&K.style.WebkitAppearance!==u){z.appendChild(K);ga=o.defaultView;ga=ga.getComputedStyle&&ga.getComputedStyle(K,null).WebkitAppearance!=="textfield"&&K.offsetHeight!==0;z.removeChild(K)}else/^(search|tel)$/.test(K.type)||(ga=/^(url|email)$/.test(K.type)?K.checkValidity&&K.checkValidity()===false:K.value!=Q)}aa[W[Y]]=!!ga}return aa}("search tel url email datetime date month week time datetime-local number range color".split(" "))}
var p={},z=o.documentElement,w=o.createElement("modernizr"),E=w.style,K=o.createElement("input"),Q=":)",ea=Object.prototype.toString,ca=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),Z="Webkit Moz O ms Khtml".split(" "),F={svg:"http://www.w3.org/2000/svg"},h={},aa={},V={},ha=[],sa,za=function(W){var Y=document.createElement("style"),ga=o.createElement("div");Y.textContent=W+"{#modernizr{height:3px}}";(o.head||o.getElementsByTagName("head")[0]).appendChild(Y);ga.id="modernizr";z.appendChild(ga);W=
ga.offsetHeight===3;Y.parentNode.removeChild(Y);ga.parentNode.removeChild(ga);return!!W},T=function(){var W={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(Y,ga){ga=ga||document.createElement(W[Y]||"div");Y="on"+Y;var Da=Y in ga;if(!Da){ga.setAttribute||(ga=document.createElement("div"));if(ga.setAttribute&&ga.removeAttribute){ga.setAttribute(Y,"");Da=typeof ga[Y]=="function";if(typeof ga[Y]!="undefined")ga[Y]=u;ga.removeAttribute(Y)}}return Da}}(),
oa={}.hasOwnProperty,ia;ia=typeof oa!=="undefined"&&typeof oa.call!=="undefined"?function(W,Y){return oa.call(W,Y)}:function(W,Y){return Y in W&&typeof W.constructor.prototype[Y]==="undefined"};h.flexbox=function(){var W=o.createElement("div"),Y=o.createElement("div");(function(Da,ua,Ga,Aa){ua+=":";Da.style.cssText=(ua+ca.join(Ga+";"+ua)).slice(0,-ua.length)+(Aa||"")})(W,"display","box","width:42px;padding:0;");Y.style.cssText=ca.join("box-flex:1;")+"width:10px;";W.appendChild(Y);z.appendChild(W);
var ga=Y.offsetWidth===42;W.removeChild(Y);z.removeChild(W);return ga};h.canvas=function(){var W=o.createElement("canvas");return!!(W.getContext&&W.getContext("2d"))};h.canvastext=function(){return!!(p.canvas&&typeof o.createElement("canvas").getContext("2d").fillText=="function")};h.webgl=function(){var W=o.createElement("canvas");try{if(W.getContext("webgl"))return true}catch(Y){}try{if(W.getContext("experimental-webgl"))return true}catch(ga){}return false};h.touch=function(){return"ontouchstart"in
d||za("@media ("+ca.join("touch-enabled),(")+"modernizr)")};h.geolocation=function(){return!!navigator.geolocation};h.postmessage=function(){return!!d.postMessage};h.websqldatabase=function(){return!!d.openDatabase};h.indexedDB=function(){for(var W=-1,Y=Z.length;++W<Y;){var ga=Z[W].toLowerCase();if(d[ga+"_indexedDB"]||d[ga+"IndexedDB"])return true}return false};h.hashchange=function(){return T("hashchange",d)&&(document.documentMode===u||document.documentMode>7)};h.history=function(){return!!(d.history&&
history.pushState)};h.draganddrop=function(){return T("drag")&&T("dragstart")&&T("dragenter")&&T("dragover")&&T("dragleave")&&T("dragend")&&T("drop")};h.websockets=function(){return"WebSocket"in d};h.rgba=function(){E.cssText="background-color:rgba(150,255,150,.5)";return v(E.backgroundColor,"rgba")};h.hsla=function(){E.cssText="background-color:hsla(120,40%,100%,.5)";return v(E.backgroundColor,"rgba")||v(E.backgroundColor,"hsla")};h.multiplebgs=function(){E.cssText="background:url(//:),url(//:),red url(//:)";
return/(url\s*\(.*?){3}/.test(E.background)};h.backgroundsize=function(){return b("backgroundSize")};h.borderimage=function(){return b("borderImage")};h.borderradius=function(){return b("borderRadius","",function(W){return v(W,"orderRadius")})};h.boxshadow=function(){return b("boxShadow")};h.textshadow=function(){return o.createElement("div").style.textShadow===""};h.opacity=function(){var W=ca.join("opacity:.5;")+"";E.cssText=W;return v(E.opacity,"0.5")};h.cssanimations=function(){return b("animationName")};
h.csscolumns=function(){return b("columnCount")};h.cssgradients=function(){var W=("background-image:"+ca.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+ca.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);E.cssText=W;return v(E.backgroundImage,"gradient")};h.cssreflections=function(){return b("boxReflect")};h.csstransforms=function(){return!!r(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};h.csstransforms3d=
function(){var W=!!r(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(W)W=za("@media ("+ca.join("transform-3d),(")+"modernizr)");return W};h.csstransitions=function(){return b("transitionProperty")};h.fontface=function(){var W,Y=o.head||o.getElementsByTagName("head")[0]||z,ga=o.createElement("style"),Da=o.implementation||{hasFeature:function(){return false}};ga.type="text/css";Y.insertBefore(ga,Y.firstChild);W=ga.sheet||ga.styleSheet;Y=Da.hasFeature("CSS2",
"")?function(ua){if(!(W&&ua))return false;var Ga=false;try{W.insertRule(ua,0);Ga=!/unknown/i.test(W.cssRules[0].cssText);W.deleteRule(W.cssRules.length-1)}catch(Aa){}return Ga}:function(ua){if(!(W&&ua))return false;W.cssText=ua;return W.cssText.length!==0&&!/unknown/i.test(W.cssText)&&W.cssText.replace(/\r+|\n+/g,"").indexOf(ua.split(" ")[0])===0};p._fontfaceready=function(ua){ua(p.fontface)};return Y('@font-face { font-family: "font"; src: "font.ttf"; }')};h.video=function(){var W=o.createElement("video"),
Y=!!W.canPlayType;if(Y){Y=new Boolean(Y);Y.ogg=W.canPlayType('video/ogg; codecs="theora"');Y.h264=W.canPlayType('video/mp4; codecs="avc1.42E01E"')||W.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');Y.webm=W.canPlayType('video/webm; codecs="vp8, vorbis"')}return Y};h.audio=function(){var W=o.createElement("audio"),Y=!!W.canPlayType;if(Y){Y=new Boolean(Y);Y.ogg=W.canPlayType('audio/ogg; codecs="vorbis"');Y.mp3=W.canPlayType("audio/mpeg;");Y.wav=W.canPlayType('audio/wav; codecs="1"');Y.m4a=
W.canPlayType("audio/x-m4a;")||W.canPlayType("audio/aac;")}return Y};h.localstorage=function(){try{return"localStorage"in d&&d.localStorage!==null}catch(W){return false}};h.sessionstorage=function(){try{return"sessionStorage"in d&&d.sessionStorage!==null}catch(W){return false}};h.webWorkers=function(){return!!d.Worker};h.applicationcache=function(){return!!d.applicationCache};h.svg=function(){return!!o.createElementNS&&!!o.createElementNS(F.svg,"svg").createSVGRect};h.inlinesvg=function(){var W=document.createElement("div");
W.innerHTML="<svg/>";return(W.firstChild&&W.firstChild.namespaceURI)==F.svg};h.smil=function(){return!!o.createElementNS&&/SVG/.test(ea.call(o.createElementNS(F.svg,"animate")))};h.svgclippaths=function(){return!!o.createElementNS&&/SVG/.test(ea.call(o.createElementNS(F.svg,"clipPath")))};for(var Ia in h)if(ia(h,Ia)){sa=Ia.toLowerCase();p[sa]=h[Ia]();ha.push((p[sa]?"":"no-")+sa)}p.input||j();p.crosswindowmessaging=p.postmessage;p.historymanagement=p.history;p.addTest=function(W,Y){W=W.toLowerCase();
if(!p[W]){Y=!!Y();z.className+=" "+(Y?"":"no-")+W;p[W]=Y;return p}};E.cssText="";w=K=null;d.attachEvent&&function(){var W=o.createElement("div");W.innerHTML="<elem></elem>";return W.childNodes.length!==1}()&&function(W,Y){function ga(Ba){for(var ra=-1;++ra<Ga;)Ba.createElement(ua[ra])}function Da(Ba,ra){for(var Sa=Ba.length,Za=-1,ab,cb=[];++Za<Sa;){ab=Ba[Za];ra=ab.media||ra;cb.push(Da(ab.imports,ra));cb.push(ab.cssText)}return cb.join("")}var ua="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video".split("|"),
Ga=ua.length,Aa=RegExp("<(/*)(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)","gi"),Na=RegExp("\\b(abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video)\\b(?!.*[;}])","gi"),wa=Y.createDocumentFragment(),Fa=Y.documentElement,Ya=Fa.firstChild,$a=Y.createElement("style"),Ta=Y.createElement("body");$a.media="all";ga(Y);ga(wa);W.attachEvent("onbeforeprint",
function(){for(var Ba=-1;++Ba<Ga;)for(var ra=Y.getElementsByTagName(ua[Ba]),Sa=ra.length,Za=-1;++Za<Sa;)if(ra[Za].className.indexOf("iepp_")<0)ra[Za].className+=" iepp_"+ua[Ba];Ya.insertBefore($a,Ya.firstChild);$a.styleSheet.cssText=Da(Y.styleSheets,"all").replace(Na,".iepp_$1");wa.appendChild(Y.body);Fa.appendChild(Ta);Ta.innerHTML=wa.firstChild.innerHTML.replace(Aa,"<$1bdo")});W.attachEvent("onafterprint",function(){Ta.innerHTML="";Fa.removeChild(Ta);Ya.removeChild($a);Fa.appendChild(wa.firstChild)})}(this,
document);p._enableHTML5=true;p._version="1.6";z.className=z.className.replace(/\bno-js\b/,"")+" js";z.className+=" "+ha.join(" ");return p}(this,this.document);(function(){function d(){if(d.is(arguments[0],Ga)){for(var a=arguments[0],g=f[F](d,a.splice(0,3+d.is(a[0],ua))),k=g.set(),n=0,q=a[T];n<q;n++){var m=a[n]||{};p[E](m.type)&&k[wa](g[m.type]().attr(m))}return k}return f[F](d,arguments)}function o(){for(var a=[],g=0;g<32;g++)a[g]=(~~(ia.random()*16))[Aa](16);a[12]=4;a[16]=(a[16]&3|8)[Aa](16);return"r-"+a[za]("")}function u(a,g,k){function n(){var q=Array[w].slice.call(arguments,0),m=q[za]("►"),t=n.cache=n.cache||{},B=n.count=n.count||[];if(t[E](m))return k?
k(t[m]):t[m];B[T]>=1E3&&delete t[B.shift()];B[wa](m);t[m]=a[F](g,q);return k?k(t[m]):t[m]}return n}function v(){return this.x+aa+this.y}function r(a){return function(g,k,n,q){var m={back:a};d.is(n,"function")?q=n:m.rot=n;g&&g.constructor==Ea&&(g=g.attrs.path);g&&(m.along=g);return this.animate(m,k,q)}}function b(a,g,k,n,q,m){function t(fa,ta){var da,ba,ka,Ja;ka=fa;for(ba=0;ba<8;ba++){Ja=((D*ka+A)*ka+B)*ka-fa;if(Y(Ja)<ta)return ka;da=(3*D*ka+2*A)*ka+B;if(Y(da)<1.0E-6)break;ka-=Ja/da}da=0;ba=1;ka=fa;
if(ka<da)return da;if(ka>ba)return ba;for(;da<ba;){Ja=((D*ka+A)*ka+B)*ka;if(Y(Ja-fa)<ta)return ka;if(fa>Ja)da=ka;else ba=ka;ka=(ba-da)/2+da}return ka}var B=3*g,A=3*(n-g)-B,D=1-B-A,L=3*k,P=3*(q-k)-L,R=1-L-P;return function(fa,ta){var da=t(fa,ta);return((R*da+P)*da+L)*da}(a,1/(200*m))}d.version="1.5.2";var j=/[, ]+/,p={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},z=/\{(\d+)\}/g,w="prototype",E="hasOwnProperty",K=document,Q=window,ea={was:Object[w][E].call(Q,"Raphael"),is:Q.Raphael},ca=function(){this.customAttributes=
{}},Z,F="apply",h="createTouch"in K,aa=" ",V=String,ha="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend orientationchange touchcancel gesturestart gesturechange gestureend".split(aa),sa={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},za="join",T="length",oa=V[w].toLowerCase,ia=Math,Ia=ia.max,W=ia.min,Y=ia.abs,ga=ia.pow,Da=ia.PI,ua="number",Ga="array",Aa="toString",Na=Object[w][Aa],wa="push",Fa=/^url\(['"]?([^\)]+?)['"]?\)$/i,Ya=/^\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,
$a={NaN:1,Infinity:1,"-Infinity":1},Ta=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Ba=ia.round,ra=parseFloat,Sa=parseInt,Za=V[w].toUpperCase,ab={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/",opacity:1,path:"M0,0",r:0,rotation:0,rx:0,ry:0,scale:"1 1",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",translation:"0 0",width:0,x:0,y:0},cb={along:"along",blur:ua,"clip-rect":"csv",cx:ua,cy:ua,fill:"colour","fill-opacity":ua,"font-size":ua,height:ua,opacity:ua,path:"path",r:ua,rotation:"csv",rx:ua,ry:ua,scale:"csv",stroke:"colour","stroke-opacity":ua,"stroke-width":ua,translation:"csv",width:ua,x:ua,y:ua},Nb=/^(from|to|\d+%?)$/,mb=/\s*,\s*/,nb={hs:1,rg:1},xb=/,?([achlmqrstvxz]),?/gi,
yb=/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,Ob=/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,zb=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/,Ab=function(a,g){return a.key-g.key};d.type=Q.SVGAngle||K.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(d.type=="VML"){var Ua=K.createElement("div");Ua.innerHTML='<v:shape adj="1"/>';Ua=Ua.firstChild;Ua.style.behavior="url(#default#VML)";if(!(Ua&&typeof Ua.adj=="object"))return d.type=null;Ua=null}d.svg=
!(d.vml=d.type=="VML");ca[w]=d[w];Z=ca[w];d._id=0;d._oid=0;d.fn={};d.is=function(a,g){g=oa.call(g);if(g=="finite")return!$a[E](+a);return g=="null"&&a===null||g==typeof a||g=="object"&&a===Object(a)||g=="array"&&Array.isArray&&Array.isArray(a)||Na.call(a).slice(8,-1).toLowerCase()==g};d.angle=function(a,g,k,n,q,m){if(q==null){a=a-k;g=g-n;if(!a&&!g)return 0;return((a<0)*180+ia.atan(-g/-a)*180/Da+360)%360}else return d.angle(a,g,q,m)-d.angle(k,n,q,m)};d.rad=function(a){return a%360*Da/180};d.deg=function(a){return a*
180/Da%360};d.snapTo=function(a,g,k){k=d.is(k,"finite")?k:10;if(d.is(a,Ga))for(var n=a.length;n--;){if(Y(a[n]-g)<=k)return a[n]}else{a=+a;n=g%a;if(n<k)return g-n;if(n>a-k)return g-n+a}return g};d.setWindow=function(a){Q=a;K=Q.document};var ob=function(a){if(d.vml){var g=/^\s+|\s+$/g,k;try{var n=new ActiveXObject("htmlfile");n.write("<body>");n.close();k=n.body}catch(q){k=createPopup().document.body}var m=k.createTextRange();ob=u(function(B){try{k.style.color=V(B).replace(g,"");var A=m.queryCommandValue("ForeColor");
A=(A&255)<<16|A&65280|(A&16711680)>>>16;return"#"+("000000"+A[Aa](16)).slice(-6)}catch(D){return"none"}})}else{var t=K.createElement("i");t.title="Raphaël Colour Picker";t.style.display="none";K.body.appendChild(t);ob=u(function(B){t.style.color=B;return K.defaultView.getComputedStyle(t,"").getPropertyValue("color")})}return ob(a)},Va=function(){return"hsb("+[this.h,this.s,this.b]+")"},Bb=function(){return"hsl("+[this.h,this.s,this.l]+")"},Pb=function(){return this.hex};d.hsb2rgb=function(a,g,k,n){if(d.is(a,
"object")&&"h"in a&&"s"in a&&"b"in a){k=a.b;g=a.s;a=a.h;n=a.o}return d.hsl2rgb(a,g,k/2,n)};d.hsl2rgb=function(a,g,k,n){if(d.is(a,"object")&&"h"in a&&"s"in a&&"l"in a){k=a.l;g=a.s;a=a.h}if(a>1||g>1||k>1){a/=360;g/=100;k/=100}var q={},m=["r","g","b"],t;if(g){g=k<0.5?k*(1+g):k+g-k*g;k=2*k-g;for(var B=0;B<3;B++){t=a+1/3*-(B-1);t<0&&t++;t>1&&t--;q[m[B]]=t*6<1?k+(g-k)*6*t:t*2<1?g:t*3<2?k+(g-k)*(2/3-t)*6:k}}else q={r:k,g:k,b:k};q.r*=255;q.g*=255;q.b*=255;q.hex="#"+(16777216|q.b|q.g<<8|q.r<<16).toString(16).slice(1);
d.is(n,"finite")&&(q.opacity=n);q.toString=Pb;return q};d.rgb2hsb=function(a,g,k){if(g==null&&d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a){k=a.b;g=a.g;a=a.r}if(g==null&&d.is(a,"string")){var n=d.getRGB(a);a=n.r;g=n.g;k=n.b}if(a>1||g>1||k>1){a/=255;g/=255;k/=255}n=Ia(a,g,k);var q=W(a,g,k);if(q==n)return{h:0,s:0,b:n,toString:Va};else{var m=n-q;q=m/n;a=a==n?(g-k)/m:g==n?2+(k-a)/m:4+(a-g)/m;a/=6;a<0&&a++;a>1&&a--}return{h:a,s:q,b:n,toString:Va}};d.rgb2hsl=function(a,g,k){if(g==null&&d.is(a,"object")&&
"r"in a&&"g"in a&&"b"in a){k=a.b;g=a.g;a=a.r}if(g==null&&d.is(a,"string")){var n=d.getRGB(a);a=n.r;g=n.g;k=n.b}if(a>1||g>1||k>1){a/=255;g/=255;k/=255}var q=Ia(a,g,k),m=W(a,g,k);n=(q+m)/2;if(m==q)a={h:0,s:0,l:n};else{var t=q-m;m=n<0.5?t/(q+m):t/(2-q-m);a=a==q?(g-k)/t:g==q?2+(k-a)/t:4+(a-g)/t;a/=6;a<0&&a++;a>1&&a--;a={h:a,s:m,l:n}}a.toString=Bb;return a};d._path2string=function(){return this.join(",").replace(xb,"$1")};d.getRGB=u(function(a){if(!a||(a=V(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",
error:1};if(a=="none")return{r:-1,g:-1,b:-1,hex:"none"};!(nb[E](a.toLowerCase().substring(0,2))||a.charAt()=="#")&&(a=ob(a));var g,k,n,q,m;if(a=a.match(Ya)){if(a[2]){n=Sa(a[2].substring(5),16);k=Sa(a[2].substring(3,5),16);g=Sa(a[2].substring(1,3),16)}if(a[3]){n=Sa((m=a[3].charAt(3))+m,16);k=Sa((m=a[3].charAt(2))+m,16);g=Sa((m=a[3].charAt(1))+m,16)}if(a[4]){m=a[4].split(mb);g=ra(m[0]);m[0].slice(-1)=="%"&&(g*=2.55);k=ra(m[1]);m[1].slice(-1)=="%"&&(k*=2.55);n=ra(m[2]);m[2].slice(-1)=="%"&&(n*=2.55);
a[1].toLowerCase().slice(0,4)=="rgba"&&(q=ra(m[3]));m[3]&&m[3].slice(-1)=="%"&&(q/=100)}if(a[5]){m=a[5].split(mb);g=ra(m[0]);m[0].slice(-1)=="%"&&(g*=2.55);k=ra(m[1]);m[1].slice(-1)=="%"&&(k*=2.55);n=ra(m[2]);m[2].slice(-1)=="%"&&(n*=2.55);(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(g/=360);a[1].toLowerCase().slice(0,4)=="hsba"&&(q=ra(m[3]));m[3]&&m[3].slice(-1)=="%"&&(q/=100);return d.hsb2rgb(g,k,n,q)}if(a[6]){m=a[6].split(mb);g=ra(m[0]);m[0].slice(-1)=="%"&&(g*=2.55);k=ra(m[1]);m[1].slice(-1)==
"%"&&(k*=2.55);n=ra(m[2]);m[2].slice(-1)=="%"&&(n*=2.55);(m[0].slice(-3)=="deg"||m[0].slice(-1)=="°")&&(g/=360);a[1].toLowerCase().slice(0,4)=="hsla"&&(q=ra(m[3]));m[3]&&m[3].slice(-1)=="%"&&(q/=100);return d.hsl2rgb(g,k,n,q)}a={r:g,g:k,b:n};a.hex="#"+(16777216|n|k<<8|g<<16).toString(16).slice(1);d.is(q,"finite")&&(a.opacity=q);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1}},d);d.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75};var g=this.hsb2rgb(a.h,a.s,a.b);
a.h+=0.075;if(a.h>1){a.h=0;a.s-=0.2;a.s<=0&&(this.getColor.start={h:0,s:1,b:a.b})}return g.hex};d.getColor.reset=function(){delete this.start};d.parsePathString=u(function(a){if(!a)return null;var g={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},k=[];if(d.is(a,Ga)&&d.is(a[0],Ga))k=pb(a);k[T]||V(a).replace(yb,function(n,q,m){var t=[];n=oa.call(q);m.replace(Ob,function(B,A){A&&t[wa](+A)});if(n=="m"&&t[T]>2){k[wa]([q].concat(t.splice(0,2)));n="l";q=q=="m"?"l":"L"}for(;t[T]>=g[n];){k[wa]([q].concat(t.splice(0,
g[n])));if(!g[n])break}});k[Aa]=d._path2string;return k});d.findDotsAtSegment=function(a,g,k,n,q,m,t,B,A){var D=1-A,L=ga(D,3)*a+ga(D,2)*3*A*k+D*3*A*A*q+ga(A,3)*t;D=ga(D,3)*g+ga(D,2)*3*A*n+D*3*A*A*m+ga(A,3)*B;var P=a+2*A*(k-a)+A*A*(q-2*k+a),R=g+2*A*(n-g)+A*A*(m-2*n+g),fa=k+2*A*(q-k)+A*A*(t-2*q+k),ta=n+2*A*(m-n)+A*A*(B-2*m+n);a=(1-A)*a+A*k;g=(1-A)*g+A*n;q=(1-A)*q+A*t;m=(1-A)*m+A*B;B=90-ia.atan((P-fa)/(R-ta))*180/Da;(P>fa||R<ta)&&(B+=180);return{x:L,y:D,m:{x:P,y:R},n:{x:fa,y:ta},start:{x:a,y:g},end:{x:q,
y:m},alpha:B}};var qb=u(function(a){if(!a)return{x:0,y:0,width:0,height:0};a=fb(a);for(var g=0,k=0,n=[],q=[],m,t=0,B=a[T];t<B;t++){m=a[t];if(m[0]=="M"){g=m[1];k=m[2];n[wa](g);q[wa](k)}else{g=gb(g,k,m[1],m[2],m[3],m[4],m[5],m[6]);n=n.concat(g.min.x,g.max.x);q=q.concat(g.min.y,g.max.y);g=m[5];k=m[6]}}a=W[F](0,n);m=W[F](0,q);return{x:a,y:m,width:Ia[F](0,n)-a,height:Ia[F](0,q)-m}}),pb=function(a){var g=[];if(!d.is(a,Ga)||!d.is(a&&a[0],Ga))a=d.parsePathString(a);for(var k=0,n=a[T];k<n;k++){g[k]=[];for(var q=
0,m=a[k][T];q<m;q++)g[k][q]=a[k][q]}g[Aa]=d._path2string;return g},rb=u(function(a){if(!d.is(a,Ga)||!d.is(a&&a[0],Ga))a=d.parsePathString(a);var g=[],k=0,n=0,q=0,m=0,t=0;if(a[0][0]=="M"){k=a[0][1];n=a[0][2];q=k;m=n;t++;g[wa](["M",k,n])}t=t;for(var B=a[T];t<B;t++){var A=g[t]=[],D=a[t];if(D[0]!=oa.call(D[0])){A[0]=oa.call(D[0]);switch(A[0]){case "a":A[1]=D[1];A[2]=D[2];A[3]=D[3];A[4]=D[4];A[5]=D[5];A[6]=+(D[6]-k).toFixed(3);A[7]=+(D[7]-n).toFixed(3);break;case "v":A[1]=+(D[1]-n).toFixed(3);break;case "m":q=
D[1];m=D[2];default:for(var L=1,P=D[T];L<P;L++)A[L]=+(D[L]-(L%2?k:n)).toFixed(3)}}else{g[t]=[];if(D[0]=="m"){q=D[1]+k;m=D[2]+n}A=0;for(L=D[T];A<L;A++)g[t][A]=D[A]}D=g[t][T];switch(g[t][0]){case "z":k=q;n=m;break;case "h":k+=+g[t][D-1];break;case "v":n+=+g[t][D-1];break;default:k+=+g[t][D-2];n+=+g[t][D-1]}}g[Aa]=d._path2string;return g},0,pb),hb=u(function(a){if(!d.is(a,Ga)||!d.is(a&&a[0],Ga))a=d.parsePathString(a);var g=[],k=0,n=0,q=0,m=0,t=0;if(a[0][0]=="M"){k=+a[0][1];n=+a[0][2];q=k;m=n;t++;g[0]=
["M",k,n]}t=t;for(var B=a[T];t<B;t++){var A=g[t]=[],D=a[t];if(D[0]!=Za.call(D[0])){A[0]=Za.call(D[0]);switch(A[0]){case "A":A[1]=D[1];A[2]=D[2];A[3]=D[3];A[4]=D[4];A[5]=D[5];A[6]=+(D[6]+k);A[7]=+(D[7]+n);break;case "V":A[1]=+D[1]+n;break;case "H":A[1]=+D[1]+k;break;case "M":q=+D[1]+k;m=+D[2]+n;default:for(var L=1,P=D[T];L<P;L++)A[L]=+D[L]+(L%2?k:n)}}else{L=0;for(P=D[T];L<P;L++)g[t][L]=D[L]}switch(A[0]){case "Z":k=q;n=m;break;case "H":k=A[1];break;case "V":n=A[1];break;case "M":q=g[t][g[t][T]-2];m=
g[t][g[t][T]-1];default:k=g[t][g[t][T]-2];n=g[t][g[t][T]-1]}}g[Aa]=d._path2string;return g},null,pb),Cb=function(a,g,k,n,q,m){var t=1/3,B=2/3;return[t*a+B*k,t*g+B*n,t*q+B*k,t*m+B*n,q,m]},Db=function(a,g,k,n,q,m,t,B,A,D){var L=Da*120/180,P=Da/180*(+q||0),R=[],fa,ta=u(function(Oa,Pa,Ma){var ib=Oa*ia.cos(Ma)-Pa*ia.sin(Ma);Oa=Oa*ia.sin(Ma)+Pa*ia.cos(Ma);return{x:ib,y:Oa}});if(D){ka=D[0];fa=D[1];m=D[2];ba=D[3]}else{fa=ta(a,g,-P);a=fa.x;g=fa.y;fa=ta(B,A,-P);B=fa.x;A=fa.y;ia.cos(Da/180*q);ia.sin(Da/180*
q);fa=(a-B)/2;ka=(g-A)/2;var da=fa*fa/(k*k)+ka*ka/(n*n);if(da>1){da=ia.sqrt(da);k=da*k;n=da*n}da=k*k;ba=n*n;da=(m==t?-1:1)*ia.sqrt(Y((da*ba-da*ka*ka-ba*fa*fa)/(da*ka*ka+ba*fa*fa)));m=da*k*ka/n+(a+B)/2;var ba=da*-n*fa/k+(g+A)/2,ka=ia.asin(((g-ba)/n).toFixed(9));fa=ia.asin(((A-ba)/n).toFixed(9));ka=a<m?Da-ka:ka;fa=B<m?Da-fa:fa;ka<0&&(ka=Da*2+ka);fa<0&&(fa=Da*2+fa);if(t&&ka>fa)ka-=Da*2;if(!t&&fa>ka)fa-=Da*2}da=fa-ka;if(Y(da)>L){R=fa;da=B;var Ja=A;fa=ka+L*(t&&fa>ka?1:-1);B=m+k*ia.cos(fa);A=ba+n*ia.sin(fa);
R=Db(B,A,k,n,q,0,t,da,Ja,[fa,R,m,ba])}da=fa-ka;q=ia.cos(ka);L=ia.sin(ka);t=ia.cos(fa);fa=ia.sin(fa);m=ia.tan(da/4);k=4/3*k*m;m=4/3*n*m;n=[a,g];a=[a+k*L,g-m*q];g=[B+k*fa,A-m*t];B=[B,A];a[0]=2*n[0]-a[0];a[1]=2*n[1]-a[1];if(D)return[a,g,B].concat(R);else{R=[a,g,B].concat(R)[za]().split(",");D=[];B=0;for(A=R[T];B<A;B++)D[B]=B%2?ta(R[B-1],R[B],P).y:ta(R[B],R[B+1],P).x;return D}},sb=function(a,g,k,n,q,m,t,B,A){var D=1-A;return{x:ga(D,3)*a+ga(D,2)*3*A*k+D*3*A*A*q+ga(A,3)*t,y:ga(D,3)*g+ga(D,2)*3*A*n+D*3*
A*A*m+ga(A,3)*B}},gb=u(function(a,g,k,n,q,m,t,B){var A=q-2*k+a-(t-2*q+k),D=2*(k-a)-2*(q-k),L=a-k,P=(-D+ia.sqrt(D*D-4*A*L))/2/A;A=(-D-ia.sqrt(D*D-4*A*L))/2/A;var R=[g,B],fa=[a,t];Y(P)>"1e12"&&(P=0.5);Y(A)>"1e12"&&(A=0.5);if(P>0&&P<1){P=sb(a,g,k,n,q,m,t,B,P);fa[wa](P.x);R[wa](P.y)}if(A>0&&A<1){P=sb(a,g,k,n,q,m,t,B,A);fa[wa](P.x);R[wa](P.y)}A=m-2*n+g-(B-2*m+n);D=2*(n-g)-2*(m-n);L=g-n;P=(-D+ia.sqrt(D*D-4*A*L))/2/A;A=(-D-ia.sqrt(D*D-4*A*L))/2/A;Y(P)>"1e12"&&(P=0.5);Y(A)>"1e12"&&(A=0.5);if(P>0&&P<1){P=
sb(a,g,k,n,q,m,t,B,P);fa[wa](P.x);R[wa](P.y)}if(A>0&&A<1){P=sb(a,g,k,n,q,m,t,B,A);fa[wa](P.x);R[wa](P.y)}return{min:{x:W[F](0,fa),y:W[F](0,R)},max:{x:Ia[F](0,fa),y:Ia[F](0,R)}}}),fb=u(function(a,g){var k=hb(a),n=g&&hb(g),q={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},m={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},t=function(da,ba){var ka,Ja;if(!da)return["C",ba.x,ba.y,ba.x,ba.y,ba.x,ba.y];!(da[0]in{T:1,Q:1})&&(ba.qx=ba.qy=null);switch(da[0]){case "M":ba.X=da[1];ba.Y=da[2];break;case "A":da=["C"].concat(Db[F](0,
[ba.x,ba.y].concat(da.slice(1))));break;case "S":ka=ba.x+(ba.x-(ba.bx||ba.x));Ja=ba.y+(ba.y-(ba.by||ba.y));da=["C",ka,Ja].concat(da.slice(1));break;case "T":ba.qx=ba.x+(ba.x-(ba.qx||ba.x));ba.qy=ba.y+(ba.y-(ba.qy||ba.y));da=["C"].concat(Cb(ba.x,ba.y,ba.qx,ba.qy,da[1],da[2]));break;case "Q":ba.qx=da[1];ba.qy=da[2];da=["C"].concat(Cb(ba.x,ba.y,da[1],da[2],da[3],da[4]));break;case "L":da=["C"].concat([ba.x,ba.y,da[1],da[2],da[1],da[2]]);break;case "H":da=["C"].concat([ba.x,ba.y,da[1],ba.y,da[1],ba.y]);
break;case "V":da=["C"].concat([ba.x,ba.y,ba.x,da[1],ba.x,da[1]]);break;case "Z":da=["C"].concat([ba.x,ba.y,ba.X,ba.Y,ba.X,ba.Y]);break}return da},B=function(da,ba){if(da[ba][T]>7){da[ba].shift();for(var ka=da[ba];ka[T];)da.splice(ba++,0,["C"].concat(ka.splice(0,6)));da.splice(ba,1);L=Ia(k[T],n&&n[T]||0)}},A=function(da,ba,ka,Ja,Oa){if(da&&ba&&da[Oa][0]=="M"&&ba[Oa][0]!="M"){ba.splice(Oa,0,["M",Ja.x,Ja.y]);ka.bx=0;ka.by=0;ka.x=da[Oa][1];ka.y=da[Oa][2];L=Ia(k[T],n&&n[T]||0)}},D=0,L=Ia(k[T],n&&n[T]||
0);for(;D<L;D++){k[D]=t(k[D],q);B(k,D);n&&(n[D]=t(n[D],m));n&&B(n,D);A(k,n,q,m,D);A(n,k,m,q,D);var P=k[D],R=n&&n[D],fa=P[T],ta=n&&R[T];q.x=P[fa-2];q.y=P[fa-1];q.bx=ra(P[fa-4])||q.x;q.by=ra(P[fa-3])||q.y;m.bx=n&&(ra(R[ta-4])||m.x);m.by=n&&(ra(R[ta-3])||m.y);m.x=n&&R[ta-2];m.y=n&&R[ta-1]}return n?[k,n]:k},null,pb),jb=u(function(a){for(var g=[],k=0,n=a[T];k<n;k++){var q={},m=a[k].match(/^([^:]*):?([\d\.]*)/);q.color=d.getRGB(m[1]);if(q.color.error)return null;q.color=q.color.hex;m[2]&&(q.offset=m[2]+
"%");g[wa](q)}k=1;for(n=g[T]-1;k<n;k++)if(!g[k].offset){a=ra(g[k-1].offset||0);m=0;for(q=k+1;q<n;q++)if(g[q].offset){m=g[q].offset;break}if(!m){m=100;q=n}m=ra(m);for(m=(m-a)/(q-k+1);k<q;k++){a+=m;g[k].offset=a+"%"}}return g}),Eb=function(a,g,k,n){if(d.is(a,"string")||d.is(a,"object")){a=d.is(a,"string")?K.getElementById(a):a;if(a.tagName)return g==null?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:g,height:k}}else return{container:1,
x:a,y:g,width:k,height:n}},tb=function(a,g){var k=this;for(var n in g)if(g[E](n)&&!(n in a))switch(typeof g[n]){case "function":(function(q){a[n]=a===k?q:function(){return q[F](k,arguments)}})(g[n]);break;case "object":a[n]=a[n]||{};tb.call(this,a[n],g[n]);break;default:a[n]=g[n];break}},eb=function(a,g){a==g.top&&(g.top=a.prev);a==g.bottom&&(g.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)},Fb=function(a,g){if(g.top!==a){eb(a,g);a.next=null;a.prev=g.top;g.top.next=a;g.top=
a}},Gb=function(a,g){if(g.bottom!==a){eb(a,g);a.next=g.bottom;a.prev=null;g.bottom.prev=a;g.bottom=a}},Hb=function(a,g,k){eb(a,k);g==k.top&&(k.top=a);g.next&&(g.next.prev=a);a.next=g.next;a.prev=g;g.next=a},Ib=function(a,g,k){eb(a,k);g==k.bottom&&(k.bottom=a);g.prev&&(g.prev.next=a);a.prev=g.prev;g.prev=a;a.next=g},db=function(a){return function(){throw Error("Raphaël: you are calling to method “"+a+"” of removed object");}};d.pathToRelative=rb;if(d.svg){Z.svgns="http://www.w3.org/2000/svg";Z.xlink=
"http://www.w3.org/1999/xlink";Ba=function(a){return+a+(~~a===a)*0.5};var pa=function(a,g){if(g)for(var k in g)g[E](k)&&a.setAttribute(k,V(g[k]));else{a=K.createElementNS(Z.svgns,a);a.style.webkitTapHighlightColor="rgba(0,0,0,0)";return a}};d[Aa]=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var Jb=function(a,g){var k=pa("path");g.canvas&&g.canvas.appendChild(k);k=new Ea(k,g);k.type="path";bb(k,{fill:"none",stroke:"#000",path:a});return k},kb=function(a,g,k){var n=
"linear",q=0.5,m=0.5,t=a.style;g=V(g).replace(zb,function(L,P,R){n="radial";if(P&&R){q=ra(P);m=ra(R);L=(m>0.5)*2-1;ga(q-0.5,2)+ga(m-0.5,2)>0.25&&(m=ia.sqrt(0.25-ga(q-0.5,2))*L+0.5)&&m!=0.5&&(m=m.toFixed(5)-1.0E-5*L)}return""});g=g.split(/\s*\-\s*/);if(n=="linear"){var B=g.shift();B=-ra(B);if(isNaN(B))return null;B=[0,0,ia.cos(B*Da/180),ia.sin(B*Da/180)];var A=1/(Ia(Y(B[2]),Y(B[3]))||1);B[2]*=A;B[3]*=A;if(B[2]<0){B[0]=-B[2];B[2]=0}if(B[3]<0){B[1]=-B[3];B[3]=0}}g=jb(g);if(!g)return null;A=a.getAttribute("fill");
(A=A.match(/^url\(#(.*)\)$/))&&k.defs.removeChild(K.getElementById(A[1]));A=pa(n+"Gradient");A.id=o();pa(A,n=="radial"?{fx:q,fy:m}:{x1:B[0],y1:B[1],x2:B[2],y2:B[3]});k.defs.appendChild(A);k=0;for(B=g[T];k<B;k++){var D=pa("stop");pa(D,{offset:g[k].offset?g[k].offset:!k?"0%":"100%","stop-color":g[k].color||"#fff"});A.appendChild(D)}pa(a,{fill:"url(#"+A.id+")",opacity:1,"fill-opacity":1});t.fill="";t.opacity=1;return t.fillOpacity=1},ub=function(a){var g=a.getBBox();pa(a.pattern,{patternTransform:d.format("translate({0},{1})",
g.x,g.y)})},bb=function(a,g){var k={"":[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]},n=a.node,q=a.attrs,m=a.rotate(),t=function(ta,da){if(da=k[oa.call(da)]){for(var ba=ta.attrs["stroke-width"]||"1",ka={round:ba,square:ba,butt:0}[ta.attrs["stroke-linecap"]||g["stroke-linecap"]]||0,Ja=[],Oa=da[T];Oa--;)Ja[Oa]=da[Oa]*ba+(Oa%2?1:-1)*ka;pa(n,{"stroke-dasharray":Ja[za](",")})}};g[E]("rotation")&&
(m=g.rotation);var B=V(m).split(j);if(B.length-1){B[1]=+B[1];B[2]=+B[2]}else B=null;ra(m)&&a.rotate(0,true);for(var A in g)if(g[E](A))if(ab[E](A)){var D=g[A];q[A]=D;switch(A){case "blur":a.blur(D);break;case "rotation":a.rotate(D,true);break;case "href":case "title":case "target":var L=n.parentNode;if(oa.call(L.tagName)!="a"){var P=pa("a");L.insertBefore(P,n);P.appendChild(n);L=P}A=="target"&&D=="blank"?L.setAttributeNS(a.paper.xlink,"show","new"):L.setAttributeNS(a.paper.xlink,A,D);break;case "cursor":n.style.cursor=
D;break;case "clip-rect":L=V(D).split(j);if(L[T]==4){a.clip&&a.clip.parentNode.parentNode.removeChild(a.clip.parentNode);var R=pa("clipPath");P=pa("rect");R.id=o();pa(P,{x:L[0],y:L[1],width:L[2],height:L[3]});R.appendChild(P);a.paper.defs.appendChild(R);pa(n,{"clip-path":"url(#"+R.id+")"});a.clip=P}if(!D){(D=K.getElementById(n.getAttribute("clip-path").replace(/(^url\(#|\)$)/g,"")))&&D.parentNode.removeChild(D);pa(n,{"clip-path":""});delete a.clip}break;case "path":if(a.type=="path")pa(n,{d:D?q.path=
hb(D):"M0,0"});break;case "width":n.setAttribute(A,D);if(q.fx){A="x";D=q.x}else break;case "x":if(q.fx)D=-q.x-(q.width||0);case "rx":if(A=="rx"&&a.type=="rect")break;case "cx":B&&(A=="x"||A=="cx")&&(B[1]+=D-q[A]);n.setAttribute(A,D);a.pattern&&ub(a);break;case "height":n.setAttribute(A,D);if(q.fy){A="y";D=q.y}else break;case "y":if(q.fy)D=-q.y-(q.height||0);case "ry":if(A=="ry"&&a.type=="rect")break;case "cy":B&&(A=="y"||A=="cy")&&(B[2]+=D-q[A]);n.setAttribute(A,D);a.pattern&&ub(a);break;case "r":a.type==
"rect"?pa(n,{rx:D,ry:D}):n.setAttribute(A,D);break;case "src":a.type=="image"&&n.setAttributeNS(a.paper.xlink,"href",D);break;case "stroke-width":n.style.strokeWidth=D;n.setAttribute(A,D);q["stroke-dasharray"]&&t(a,q["stroke-dasharray"]);break;case "stroke-dasharray":t(a,D);break;case "translation":D=V(D).split(j);D[0]=+D[0]||0;D[1]=+D[1]||0;if(B){B[1]+=D[0];B[2]+=D[1]}ya.call(a,D[0],D[1]);break;case "scale":D=V(D).split(j);a.scale(+D[0]||1,+D[1]||+D[0]||1,isNaN(ra(D[2]))?null:+D[2],isNaN(ra(D[3]))?
null:+D[3]);break;case "fill":if(L=V(D).match(Fa)){R=pa("pattern");var fa=pa("image");R.id=o();pa(R,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});pa(fa,{x:0,y:0});fa.setAttributeNS(a.paper.xlink,"href",L[1]);R.appendChild(fa);D=K.createElement("img");D.style.cssText="position:absolute;left:-9999em;top-9999em";D.onload=function(){pa(R,{width:this.offsetWidth,height:this.offsetHeight});pa(fa,{width:this.offsetWidth,height:this.offsetHeight});K.body.removeChild(this);a.paper.safari()};K.body.appendChild(D);
D.src=L[1];a.paper.defs.appendChild(R);n.style.fill="url(#"+R.id+")";pa(n,{fill:"url(#"+R.id+")"});a.pattern=R;a.pattern&&ub(a);break}L=d.getRGB(D);if(L.error){if(({circle:1,ellipse:1}[E](a.type)||V(D).charAt()!="r")&&kb(n,D,a.paper)){q.gradient=D;q.fill="none";break}}else{delete g.gradient;delete q.gradient;!d.is(q.opacity,"undefined")&&d.is(g.opacity,"undefined")&&pa(n,{opacity:q.opacity});!d.is(q["fill-opacity"],"undefined")&&d.is(g["fill-opacity"],"undefined")&&pa(n,{"fill-opacity":q["fill-opacity"]})}L[E]("opacity")&&
pa(n,{"fill-opacity":L.opacity>1?L.opacity/100:L.opacity});case "stroke":L=d.getRGB(D);n.setAttribute(A,L.hex);A=="stroke"&&L[E]("opacity")&&pa(n,{"stroke-opacity":L.opacity>1?L.opacity/100:L.opacity});break;case "gradient":(({circle:1,ellipse:1})[E](a.type)||V(D).charAt()!="r")&&kb(n,D,a.paper);break;case "opacity":if(q.gradient&&!q[E]("stroke-opacity"))pa(n,{"stroke-opacity":D>1?D/100:D});case "fill-opacity":if(q.gradient){if(L=K.getElementById(n.getAttribute("fill").replace(/^url\(#|\)$/g,""))){L=
L.getElementsByTagName("stop");L[L[T]-1].setAttribute("stop-opacity",D)}break}default:A=="font-size"&&(D=Sa(D,10)+"px");L=A.replace(/(\-.)/g,function(ta){return Za.call(ta.substring(1))});n.style[L]=D;n.setAttribute(A,D);break}}Kb(a,g);if(B)a.rotate(B.join(aa));else ra(m)&&a.rotate(m,true)},Kb=function(a,g){if(!(a.type!="text"||!(g[E]("text")||g[E]("font")||g[E]("font-size")||g[E]("x")||g[E]("y")))){var k=a.attrs,n=a.node,q=n.firstChild?Sa(K.defaultView.getComputedStyle(n.firstChild,"").getPropertyValue("font-size"),
10):10;if(g[E]("text")){for(k.text=g.text;n.firstChild;)n.removeChild(n.firstChild);for(var m=V(g.text).split("\n"),t=0,B=m[T];t<B;t++)if(m[t]){var A=pa("tspan");t&&pa(A,{dy:q*1.2,x:k.x});A.appendChild(K.createTextNode(m[t]));n.appendChild(A)}}else{m=n.getElementsByTagName("tspan");t=0;for(B=m[T];t<B;t++)t&&pa(m[t],{dy:q*1.2,x:k.x})}pa(n,{y:k.y});q=a.getBBox();(q=k.y-(q.y+q.height/2))&&d.is(q,"finite")&&pa(n,{y:k.y+q})}},Ea=function(a,g){this[0]=a;this.id=d._oid++;this.node=a;a.raphael=this;this.paper=
g;this.attrs=this.attrs||{};this.transformations=[];this._={tx:0,ty:0,rt:{deg:0,cx:0,cy:0},sx:1,sy:1};!g.bottom&&(g.bottom=this);(this.prev=g.top)&&(g.top.next=this);g.top=this;this.next=null},Ca=Ea[w];Ea[w].rotate=function(a,g,k){if(this.removed)return this;if(a==null){if(this._.rt.cx)return[this._.rt.deg,this._.rt.cx,this._.rt.cy][za](aa);return this._.rt.deg}var n=this.getBBox();a=V(a).split(j);if(a[T]-1){g=ra(a[1]);k=ra(a[2])}a=ra(a[0]);if(g!=null&&g!==false)this._.rt.deg=a;else this._.rt.deg+=
a;k==null&&(g=null);this._.rt.cx=g;this._.rt.cy=k;g=g==null?n.x+n.width/2:g;k=k==null?n.y+n.height/2:k;if(this._.rt.deg){this.transformations[0]=d.format("rotate({0} {1} {2})",this._.rt.deg,g,k);this.clip&&pa(this.clip,{transform:d.format("rotate({0} {1} {2})",-this._.rt.deg,g,k)})}else{this.transformations[0]="";this.clip&&pa(this.clip,{transform:""})}pa(this.node,{transform:this.transformations[za](aa)});return this};Ea[w].hide=function(){!this.removed&&(this.node.style.display="none");return this};
Ea[w].show=function(){!this.removed&&(this.node.style.display="");return this};Ea[w].remove=function(){if(!this.removed){eb(this,this.paper);this.node.parentNode.removeChild(this.node);for(var a in this)delete this[a];this.removed=true}};Ea[w].getBBox=function(){if(this.removed)return this;if(this.type=="path")return qb(this.attrs.path);if(this.node.style.display=="none"){this.show();var a=true}var g={};try{g=this.node.getBBox()}catch(k){}finally{g=g||{}}if(this.type=="text"){g={x:g.x,y:Infinity,
width:0,height:0};for(var n=0,q=this.node.getNumberOfChars();n<q;n++){var m=this.node.getExtentOfChar(n);m.y<g.y&&(g.y=m.y);m.y+m.height-g.y>g.height&&(g.height=m.y+m.height-g.y);m.x+m.width-g.x>g.width&&(g.width=m.x+m.width-g.x)}}a&&this.hide();return g};Ea[w].attr=function(a,g){if(this.removed)return this;if(a==null){var k={};for(var n in this.attrs)if(this.attrs[E](n))k[n]=this.attrs[n];this._.rt.deg&&(k.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(k.scale=this.scale());k.gradient&&k.fill==
"none"&&(k.fill=k.gradient)&&delete k.gradient;return k}if(g==null&&d.is(a,"string")){if(a=="translation")return ya.call(this);if(a=="rotation")return this.rotate();if(a=="scale")return this.scale();if(a=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;return this.attrs[a]}if(g==null&&d.is(a,Ga)){n={};k=0;for(var q=a.length;k<q;k++)n[a[k]]=this.attr(a[k]);return n}if(g!=null){k={};k[a]=g}else if(a!=null&&d.is(a,"object"))k=a;for(q in this.paper.customAttributes)if(this.paper.customAttributes[E](q)&&
k[E](q)&&d.is(this.paper.customAttributes[q],"function")){n=this.paper.customAttributes[q].apply(this,[].concat(k[q]));this.attrs[q]=k[q];for(var m in n)if(n[E](m))k[m]=n[m]}bb(this,k);return this};Ea[w].toFront=function(){if(this.removed)return this;this.node.parentNode.appendChild(this.node);var a=this.paper;a.top!=this&&Fb(this,a);return this};Ea[w].toBack=function(){if(this.removed)return this;if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);
Gb(this,this.paper)}return this};Ea[w].insertAfter=function(a){if(this.removed)return this;var g=a.node||a[a.length-1].node;g.nextSibling?g.parentNode.insertBefore(this.node,g.nextSibling):g.parentNode.appendChild(this.node);Hb(this,a,this.paper);return this};Ea[w].insertBefore=function(a){if(this.removed)return this;var g=a.node||a[0].node;g.parentNode.insertBefore(this.node,g);Ib(this,a,this.paper);return this};Ea[w].blur=function(a){if(+a!==0){var g=pa("filter"),k=pa("feGaussianBlur");this.attrs.blur=
a;g.id=o();pa(k,{stdDeviation:+a||1.5});g.appendChild(k);this.paper.defs.appendChild(g);this._blur=g;pa(this.node,{filter:"url(#"+g.id+")"})}else{if(this._blur){this._blur.parentNode.removeChild(this._blur);delete this._blur;delete this.attrs.blur}this.node.removeAttribute("filter")}};var Lb=function(a,g,k,n){var q=pa("circle");a.canvas&&a.canvas.appendChild(q);a=new Ea(q,a);a.attrs={cx:g,cy:k,r:n,fill:"none",stroke:"#000"};a.type="circle";pa(q,a.attrs);return a},lb=function(a,g,k,n,q,m){var t=pa("rect");
a.canvas&&a.canvas.appendChild(t);a=new Ea(t,a);a.attrs={x:g,y:k,width:n,height:q,r:m||0,rx:m||0,ry:m||0,fill:"none",stroke:"#000"};a.type="rect";pa(t,a.attrs);return a},vb=function(a,g,k,n,q){var m=pa("ellipse");a.canvas&&a.canvas.appendChild(m);a=new Ea(m,a);a.attrs={cx:g,cy:k,rx:n,ry:q,fill:"none",stroke:"#000"};a.type="ellipse";pa(m,a.attrs);return a},Mb=function(a,g,k,n,q,m){var t=pa("image");pa(t,{x:k,y:n,width:q,height:m,preserveAspectRatio:"none"});t.setAttributeNS(a.xlink,"href",g);a.canvas&&
a.canvas.appendChild(t);a=new Ea(t,a);a.attrs={x:k,y:n,width:q,height:m,src:g};a.type="image";return a},wb=function(a,g,k,n){var q=pa("text");pa(q,{x:g,y:k,"text-anchor":"middle"});a.canvas&&a.canvas.appendChild(q);a=new Ea(q,a);a.attrs={x:g,y:k,"text-anchor":"middle",text:n,font:ab.font,stroke:"none",fill:"#000"};a.type="text";bb(a,a.attrs);return a},e=function(a,g){this.width=a||this.width;this.height=g||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",
this.height);return this},f=function(){var a=Eb[F](0,arguments),g=a&&a.container,k=a.x,n=a.y,q=a.width;a=a.height;if(!g)throw Error("SVG container not found.");var m=pa("svg");k=k||0;n=n||0;q=q||512;a=a||342;pa(m,{xmlns:"http://www.w3.org/2000/svg",version:1.1,width:q,height:a});if(g==1){m.style.cssText="position:absolute;left:"+k+"px;top:"+n+"px";K.body.appendChild(m)}else g.firstChild?g.insertBefore(m,g.firstChild):g.appendChild(m);g=new ca;g.width=q;g.height=a;g.canvas=m;tb.call(g,g,d.fn);g.clear();
return g};Z.clear=function(){for(var a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;(this.desc=pa("desc")).appendChild(K.createTextNode("Created with Raphaël"));a.appendChild(this.desc);a.appendChild(this.defs=pa("defs"))};Z.remove=function(){this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=db(a)}}if(d.vml){var l={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},s=/([clmz]),?([^clmz]*)/gi,x=/ progid:\S+Blur\([^\)]+\)/g,
C=/-?[^,\s-]+/g,J=1E3+aa+1E3,I={path:1,rect:1},O=function(a){var g=/[ahqstv]/ig,k=hb;V(a).match(g)&&(k=fb);g=/[clmz]/g;if(k==hb&&!V(a).match(g))return a=V(a).replace(s,function(A,D,L){var P=[],R=oa.call(D)=="m",fa=l[D];L.replace(C,function(ta){if(R&&P[T]==2){fa+=P+l[D=="m"?"l":"L"];P=[]}P[wa](Ba(ta*10))});return fa+P});g=k(a);var n;a=[];for(var q=0,m=g[T];q<m;q++){k=g[q];n=oa.call(g[q][0]);n=="z"&&(n="x");for(var t=1,B=k[T];t<B;t++)n+=Ba(k[t]*10)+(t!=B-1?",":"");a[wa](n)}return a[za](aa)};d[Aa]=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+
this.version};Jb=function(a,g){var k=X("group");k.style.cssText="position:absolute;left:0;top:0;width:"+g.width+"px;height:"+g.height+"px";k.coordsize=g.coordsize;k.coordorigin=g.coordorigin;var n=X("shape"),q=n.style;q.width=g.width+"px";q.height=g.height+"px";n.coordsize=J;n.coordorigin=g.coordorigin;k.appendChild(n);n=new Ea(n,k,g);q={fill:"none",stroke:"#000"};a&&(q.path=a);n.type="path";n.path=[];n.Path="";bb(n,q);g.canvas.appendChild(k);return n};bb=function(a,g){a.attrs=a.attrs||{};var k=a.node,
n=a.attrs,q=k.style,m;m=(g.x!=n.x||g.y!=n.y||g.width!=n.width||g.height!=n.height||g.r!=n.r)&&a.type=="rect";for(var t in g)if(g[E](t))n[t]=g[t];if(m){n.path=la(n.x,n.y,n.width,n.height,n.r);a.X=n.x;a.Y=n.y;a.W=n.width;a.H=n.height}g.href&&(k.href=g.href);g.title&&(k.title=g.title);g.target&&(k.target=g.target);g.cursor&&(q.cursor=g.cursor);"blur"in g&&a.blur(g.blur);if(g.path&&a.type=="path"||m)k.path=O(n.path);g.rotation!=null&&a.rotate(g.rotation,true);if(g.translation){m=V(g.translation).split(j);
ya.call(a,m[0],m[1]);if(a._.rt.cx!=null){a._.rt.cx+=+m[0];a._.rt.cy+=+m[1];a.setBox(a.attrs,m[0],m[1])}}if(g.scale){m=V(g.scale).split(j);a.scale(+m[0]||1,+m[1]||+m[0]||1,+m[2]||null,+m[3]||null)}if("clip-rect"in g){m=V(g["clip-rect"]).split(j);if(m[T]==4){m[2]=+m[2]+ +m[0];m[3]=+m[3]+ +m[1];t=k.clipRect||K.createElement("div");var B=t.style,A=k.parentNode;B.clip=d.format("rect({1}px {2}px {3}px {0}px)",m);if(!k.clipRect){B.position="absolute";B.top=0;B.left=0;B.width=a.paper.width+"px";B.height=
a.paper.height+"px";A.parentNode.insertBefore(t,A);t.appendChild(A);k.clipRect=t}}if(!g["clip-rect"])k.clipRect&&(k.clipRect.style.clip="")}if(a.type=="image"&&g.src)k.src=g.src;if(a.type=="image"&&g.opacity){k.filterOpacity=" progid:DXImageTransform.Microsoft.Alpha(opacity="+g.opacity*100+")";q.filter=(k.filterMatrix||"")+(k.filterOpacity||"")}g.font&&(q.font=g.font);g["font-family"]&&(q.fontFamily='"'+g["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"');g["font-size"]&&(q.fontSize=g["font-size"]);
g["font-weight"]&&(q.fontWeight=g["font-weight"]);g["font-style"]&&(q.fontStyle=g["font-style"]);if(g.opacity!=null||g["stroke-width"]!=null||g.fill!=null||g.stroke!=null||g["stroke-width"]!=null||g["stroke-opacity"]!=null||g["fill-opacity"]!=null||g["stroke-dasharray"]!=null||g["stroke-miterlimit"]!=null||g["stroke-linejoin"]!=null||g["stroke-linecap"]!=null){k=a.shape||k;m=k.getElementsByTagName("fill")&&k.getElementsByTagName("fill")[0];t=false;!m&&(t=m=X("fill"));if("fill-opacity"in g||"opacity"in
g){q=((+n["fill-opacity"]+1||2)-1)*((+n.opacity+1||2)-1)*((+d.getRGB(g.fill).o+1||2)-1);q=W(Ia(q,0),1);m.opacity=q}g.fill&&(m.on=true);if(m.on==null||g.fill=="none")m.on=false;if(m.on&&g.fill)if(q=g.fill.match(Fa)){m.src=q[1];m.type="tile"}else{m.color=d.getRGB(g.fill).hex;m.src="";m.type="solid";if(d.getRGB(g.fill).error&&(a.type in{circle:1,ellipse:1}||V(g.fill).charAt()!="r")&&kb(a,g.fill)){n.fill="none";n.gradient=g.fill}}t&&k.appendChild(m);m=k.getElementsByTagName("stroke")&&k.getElementsByTagName("stroke")[0];
t=false;!m&&(t=m=X("stroke"));if(g.stroke&&g.stroke!="none"||g["stroke-width"]||g["stroke-opacity"]!=null||g["stroke-dasharray"]||g["stroke-miterlimit"]||g["stroke-linejoin"]||g["stroke-linecap"])m.on=true;(g.stroke=="none"||m.on==null||g.stroke==0||g["stroke-width"]==0)&&(m.on=false);q=d.getRGB(g.stroke);m.on&&g.stroke&&(m.color=q.hex);q=((+n["stroke-opacity"]+1||2)-1)*((+n.opacity+1||2)-1)*((+q.o+1||2)-1);B=(ra(g["stroke-width"])||1)*0.75;q=W(Ia(q,0),1);g["stroke-width"]==null&&(B=n["stroke-width"]);
g["stroke-width"]&&(m.weight=B);B&&B<1&&(q*=B)&&(m.weight=1);m.opacity=q;g["stroke-linejoin"]&&(m.joinstyle=g["stroke-linejoin"]||"miter");m.miterlimit=g["stroke-miterlimit"]||8;g["stroke-linecap"]&&(m.endcap=g["stroke-linecap"]=="butt"?"flat":g["stroke-linecap"]=="square"?"square":"round");if(g["stroke-dasharray"]){q={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};m.dashstyle=
q[E](g["stroke-dasharray"])?q[g["stroke-dasharray"]]:""}t&&k.appendChild(m)}if(a.type=="text"){q=a.paper.span.style;n.font&&(q.font=n.font);n["font-family"]&&(q.fontFamily=n["font-family"]);n["font-size"]&&(q.fontSize=n["font-size"]);n["font-weight"]&&(q.fontWeight=n["font-weight"]);n["font-style"]&&(q.fontStyle=n["font-style"]);a.node.string&&(a.paper.span.innerHTML=V(a.node.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));a.W=n.w=a.paper.span.offsetWidth;a.H=n.h=a.paper.span.offsetHeight;
a.X=n.x;a.Y=n.y+Ba(a.H/2);switch(n["text-anchor"]){case "start":a.node.style["v-text-align"]="left";a.bbx=Ba(a.W/2);break;case "end":a.node.style["v-text-align"]="right";a.bbx=-Ba(a.W/2);break;default:a.node.style["v-text-align"]="center";break}}};kb=function(a,g){a.attrs=a.attrs||{};var k,n="linear",q=".5 .5";a.attrs.gradient=g;g=V(g).replace(zb,function(L,P,R){n="radial";if(P&&R){P=ra(P);R=ra(R);ga(P-0.5,2)+ga(R-0.5,2)>0.25&&(R=ia.sqrt(0.25-ga(P-0.5,2))*((R>0.5)*2-1)+0.5);q=P+aa+R}return""});g=
g.split(/\s*\-\s*/);if(n=="linear"){var m=g.shift();m=-ra(m);if(isNaN(m))return null}var t=jb(g);if(!t)return null;a=a.shape||a.node;k=a.getElementsByTagName("fill")[0]||X("fill");!k.parentNode&&a.appendChild(k);if(t[T]){k.on=true;k.method="none";k.color=t[0].color;k.color2=t[t[T]-1].color;for(var B=[],A=0,D=t[T];A<D;A++)t[A].offset&&B[wa](t[A].offset+aa+t[A].color);k.colors&&(k.colors.value=B[T]?B[za]():"0% "+k.color);if(n=="radial"){k.type="gradientradial";k.focus="100%";k.focussize=q;k.focusposition=
q}else{k.type="gradient";k.angle=(270-m)%360}}return 1};Ea=function(a,g,k){this[0]=a;this.id=d._oid++;this.node=a;a.raphael=this;this.Y=this.X=0;this.attrs={};this.Group=g;this.paper=k;this._={tx:0,ty:0,rt:{deg:0},sx:1,sy:1};!k.bottom&&(k.bottom=this);(this.prev=k.top)&&(k.top.next=this);k.top=this;this.next=null};Ca=Ea[w];Ca.rotate=function(a,g,k){if(this.removed)return this;if(a==null){if(this._.rt.cx)return[this._.rt.deg,this._.rt.cx,this._.rt.cy][za](aa);return this._.rt.deg}a=V(a).split(j);if(a[T]-
1){g=ra(a[1]);k=ra(a[2])}a=ra(a[0]);if(g!=null)this._.rt.deg=a;else this._.rt.deg+=a;k==null&&(g=null);this._.rt.cx=g;this._.rt.cy=k;this.setBox(this.attrs,g,k);this.Group.style.rotation=this._.rt.deg;return this};Ca.setBox=function(a,g,k){if(this.removed)return this;var n=this.Group.style,q=this.shape&&this.shape.style||this.node.style;a=a||{};for(var m in a)if(a[E](m))this.attrs[m]=a[m];g=g||this._.rt.cx;k=k||this._.rt.cy;var t=this.attrs,B;switch(this.type){case "circle":a=t.cx-t.r;m=t.cy-t.r;
B=t=t.r*2;break;case "ellipse":a=t.cx-t.rx;m=t.cy-t.ry;B=t.rx*2;t=t.ry*2;break;case "image":a=+t.x;m=+t.y;B=t.width||0;t=t.height||0;break;case "text":this.textpath.v=["m",Ba(t.x),", ",Ba(t.y-2),"l",Ba(t.x)+1,", ",Ba(t.y-2)][za]("");a=t.x-Ba(this.W/2);m=t.y-this.H/2;B=this.W;t=this.H;break;case "rect":case "path":if(this.attrs.path){t=qb(this.attrs.path);a=t.x;m=t.y;B=t.width;t=t.height}else{m=a=0;B=this.paper.width;t=this.paper.height}break;default:m=a=0;B=this.paper.width;t=this.paper.height;break}g=
g==null?a+B/2:g;k=k==null?m+t/2:k;g=g-this.paper.width/2;k=k-this.paper.height/2;var A;n.left!=(A=g+"px")&&(n.left=A);n.top!=(A=k+"px")&&(n.top=A);this.X=I[E](this.type)?-g:a;this.Y=I[E](this.type)?-k:m;this.W=B;this.H=t;if(I[E](this.type)){q.left!=(A=-g*10+"px")&&(q.left=A);q.top!=(A=-k*10+"px")&&(q.top=A)}else if(this.type=="text"){q.left!=(A=-g+"px")&&(q.left=A);q.top!=(A=-k+"px")&&(q.top=A)}else{n.width!=(A=this.paper.width+"px")&&(n.width=A);n.height!=(A=this.paper.height+"px")&&(n.height=A);
q.left!=(A=a-g+"px")&&(q.left=A);q.top!=(A=m-k+"px")&&(q.top=A);q.width!=(A=B+"px")&&(q.width=A);q.height!=(A=t+"px")&&(q.height=A)}};Ca.hide=function(){!this.removed&&(this.Group.style.display="none");return this};Ca.show=function(){!this.removed&&(this.Group.style.display="block");return this};Ca.getBBox=function(){if(this.removed)return this;if(I[E](this.type))return qb(this.attrs.path);return{x:this.X+(this.bbx||0),y:this.Y,width:this.W,height:this.H}};Ca.remove=function(){if(!this.removed){eb(this,
this.paper);this.node.parentNode.removeChild(this.node);this.Group.parentNode.removeChild(this.Group);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var a in this)delete this[a];this.removed=true}};Ca.attr=function(a,g){if(this.removed)return this;if(a==null){var k={};for(var n in this.attrs)if(this.attrs[E](n))k[n]=this.attrs[n];this._.rt.deg&&(k.rotation=this.rotate());(this._.sx!=1||this._.sy!=1)&&(k.scale=this.scale());k.gradient&&k.fill=="none"&&(k.fill=k.gradient)&&delete k.gradient;
return k}if(g==null&&d.is(a,"string")){if(a=="translation")return ya.call(this);if(a=="rotation")return this.rotate();if(a=="scale")return this.scale();if(a=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;return this.attrs[a]}if(this.attrs&&g==null&&d.is(a,Ga)){var q={};n=0;for(k=a[T];n<k;n++)q[a[n]]=this.attr(a[n]);return q}if(g!=null){k={};k[a]=g}g==null&&d.is(a,"object")&&(k=a);if(k){for(q in this.paper.customAttributes)if(this.paper.customAttributes[E](q)&&k[E](q)&&
d.is(this.paper.customAttributes[q],"function")){n=this.paper.customAttributes[q].apply(this,[].concat(k[q]));this.attrs[q]=k[q];for(var m in n)if(n[E](m))k[m]=n[m]}if(k.text&&this.type=="text")this.node.string=k.text;bb(this,k);if(k.gradient&&({circle:1,ellipse:1}[E](this.type)||V(k.gradient).charAt()!="r"))kb(this,k.gradient);(!I[E](this.type)||this._.rt.deg)&&this.setBox(this.attrs)}return this};Ca.toFront=function(){!this.removed&&this.Group.parentNode.appendChild(this.Group);this.paper.top!=
this&&Fb(this,this.paper);return this};Ca.toBack=function(){if(this.removed)return this;if(this.Group.parentNode.firstChild!=this.Group){this.Group.parentNode.insertBefore(this.Group,this.Group.parentNode.firstChild);Gb(this,this.paper)}return this};Ca.insertAfter=function(a){if(this.removed)return this;if(a.constructor==La)a=a[a.length-1];a.Group.nextSibling?a.Group.parentNode.insertBefore(this.Group,a.Group.nextSibling):a.Group.parentNode.appendChild(this.Group);Hb(this,a,this.paper);return this};
Ca.insertBefore=function(a){if(this.removed)return this;if(a.constructor==La)a=a[0];a.Group.parentNode.insertBefore(this.Group,a.Group);Ib(this,a,this.paper);return this};Ca.blur=function(a){var g=this.node.runtimeStyle,k=g.filter;k=k.replace(x,"");if(+a!==0){this.attrs.blur=a;g.filter=k+aa+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+a||1.5)+")";g.margin=d.format("-{0}px 0 0 -{0}px",Ba(+a||1.5))}else{g.filter=k;g.margin=0;delete this.attrs.blur}};Lb=function(a,g,k,n){var q=X("group"),
m=X("oval");q.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";q.coordsize=J;q.coordorigin=a.coordorigin;q.appendChild(m);m=new Ea(m,q,a);m.type="circle";bb(m,{stroke:"#000",fill:"none"});m.attrs.cx=g;m.attrs.cy=k;m.attrs.r=n;m.setBox({x:g-n,y:k-n,width:n*2,height:n*2});a.canvas.appendChild(q);return m};var la=function(a,g,k,n,q){return q?d.format("M{0},{1}l{2},0a{3},{3},0,0,1,{3},{3}l0,{5}a{3},{3},0,0,1,{4},{3}l{6},0a{3},{3},0,0,1,{4},{4}l0,{7}a{3},{3},0,0,1,{3},{4}z",
a+q,g,k-q*2,q,-q,n-q*2,q*2-k,q*2-n):d.format("M{0},{1}l{2},0,0,{3},{4},0z",a,g,k,n,-k)};lb=function(a,g,k,n,q,m){var t=la(g,k,n,q,m);a=a.path(t);var B=a.attrs;a.X=B.x=g;a.Y=B.y=k;a.W=B.width=n;a.H=B.height=q;B.r=m;B.path=t;a.type="rect";return a};vb=function(a,g,k,n,q){var m=X("group"),t=X("oval");m.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";m.coordsize=J;m.coordorigin=a.coordorigin;m.appendChild(t);t=new Ea(t,m,a);t.type="ellipse";bb(t,{stroke:"#000"});
t.attrs.cx=g;t.attrs.cy=k;t.attrs.rx=n;t.attrs.ry=q;t.setBox({x:g-n,y:k-q,width:n*2,height:q*2});a.canvas.appendChild(m);return t};Mb=function(a,g,k,n,q,m){var t=X("group"),B=X("image");t.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";t.coordsize=J;t.coordorigin=a.coordorigin;B.src=g;t.appendChild(B);B=new Ea(B,t,a);B.type="image";B.attrs.src=g;B.attrs.x=k;B.attrs.y=n;B.attrs.w=q;B.attrs.h=m;B.setBox({x:k,y:n,width:q,height:m});a.canvas.appendChild(t);return B};
wb=function(a,g,k,n){var q=X("group"),m=X("shape"),t=m.style,B=X("path"),A=X("textpath");q.style.cssText="position:absolute;left:0;top:0;width:"+a.width+"px;height:"+a.height+"px";q.coordsize=J;q.coordorigin=a.coordorigin;B.v=d.format("m{0},{1}l{2},{1}",Ba(g*10),Ba(k*10),Ba(g*10)+1);B.textpathok=true;t.width=a.width;t.height=a.height;A.string=V(n);A.on=true;m.appendChild(A);m.appendChild(B);q.appendChild(m);t=new Ea(A,q,a);t.shape=m;t.textpath=B;t.type="text";t.attrs.text=n;t.attrs.x=g;t.attrs.y=
k;t.attrs.w=1;t.attrs.h=1;bb(t,{font:ab.font,stroke:"none",fill:"#000"});t.setBox();a.canvas.appendChild(q);return t};e=function(a,g){var k=this.canvas.style;a==+a&&(a+="px");g==+g&&(g+="px");k.width=a;k.height=g;k.clip="rect(0 "+a+" "+g+" 0)";return this};var X;K.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!K.namespaces.rvml&&K.namespaces.add("rvml","urn:schemas-microsoft-com:vml");X=function(a){return K.createElement("<rvml:"+a+' class="rvml">')}}catch(qa){X=function(a){return K.createElement("<"+
a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}f=function(){var a=Eb[F](0,arguments),g=a.container,k=a.height,n=a.width,q=a.x;a=a.y;if(!g)throw Error("VML container not found.");var m=new ca,t=m.canvas=K.createElement("div"),B=t.style;q=q||0;a=a||0;n=n||512;k=k||342;n==+n&&(n+="px");k==+k&&(k+="px");m.width=1E3;m.height=1E3;m.coordsize=1E4+aa+1E4;m.coordorigin="0 0";m.span=K.createElement("span");m.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";
t.appendChild(m.span);B.cssText=d.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,k);if(g==1){K.body.appendChild(t);B.left=q+"px";B.top=a+"px";B.position="absolute"}else g.firstChild?g.insertBefore(t,g.firstChild):g.appendChild(t);tb.call(m,m,d.fn);return m};Z.clear=function(){this.canvas.innerHTML="";this.span=K.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};Z.remove=function(){this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=db(a);return true}}Ua=navigator.userAgent.match(/Version\/(.*?)\s/);Z.safari=navigator.vendor=="Apple Computer, Inc."&&(Ua&&Ua[1]<4||navigator.platform.slice(0,2)=="iP")?function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});Q.setTimeout(function(){a.remove()})}:function(){};var xa=function(){this.returnValue=false},
Ka=function(){return this.originalEvent.preventDefault()},ma=function(){this.cancelBubble=true},Ha=function(){return this.originalEvent.stopPropagation()},Wa=function(){if(K.addEventListener)return function(a,g,k,n){var q=h&&sa[g]?sa[g]:g,m=function(t){if(h&&sa[E](g))for(var B=0,A=t.targetTouches&&t.targetTouches.length;B<A;B++)if(t.targetTouches[B].target==a){A=t;t=t.targetTouches[B];t.originalEvent=A;t.preventDefault=Ka;t.stopPropagation=Ha;break}return k.call(n,t)};a.addEventListener(q,m,false);
return function(){a.removeEventListener(q,m,false);return true}};else if(K.attachEvent)return function(a,g,k,n){var q=function(m){m=m||Q.event;m.preventDefault=m.preventDefault||xa;m.stopPropagation=m.stopPropagation||ma;return k.call(n,m)};a.attachEvent("on"+g,q);return function(){a.detachEvent("on"+g,q);return true}}}(),y=[],G=function(a){for(var g=a.clientX,k=a.clientY,n=K.documentElement.scrollTop||K.body.scrollTop,q=K.documentElement.scrollLeft||K.body.scrollLeft,m,t=y.length;t--;){m=y[t];if(h)for(var B=
a.touches.length,A;B--;){A=a.touches[B];if(A.identifier==m.el._drag.id){g=A.clientX;k=A.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();g+=q;k+=n;m.move&&m.move.call(m.move_scope||m.el,g-m.el._drag.x,k-m.el._drag.y,g,k,a)}},N=function(a){d.unmousemove(G).unmouseup(N);for(var g=y.length,k;g--;){k=y[g];k.el._drag={};k.end&&k.end.call(k.end_scope||k.start_scope||k.move_scope||k.el,a)}y=[]};for(Ua=ha[T];Ua--;)(function(a){d[a]=Ea[w][a]=function(g,k){if(d.is(g,
"function")){this.events=this.events||[];this.events.push({name:a,f:g,unbind:Wa(this.shape||this.node||K,a,g,k||this)})}return this};d["un"+a]=Ea[w]["un"+a]=function(g){for(var k=this.events,n=k[T];n--;)if(k[n].name==a&&k[n].f==g){k[n].unbind();k.splice(n,1);!k.length&&delete this.events;return this}return this}})(ha[Ua]);Ca.hover=function(a,g,k,n){return this.mouseover(a,k).mouseout(g,n||k)};Ca.unhover=function(a,g){return this.unmouseover(a).unmouseout(g)};Ca.drag=function(a,g,k,n,q,m){this._drag=
{};this.mousedown(function(t){(t.originalEvent||t).preventDefault();var B=K.documentElement.scrollTop||K.body.scrollTop,A=K.documentElement.scrollLeft||K.body.scrollLeft;this._drag.x=t.clientX+A;this._drag.y=t.clientY+B;this._drag.id=t.identifier;g&&g.call(q||n||this,t.clientX+A,t.clientY+B,t);!y.length&&d.mousemove(G).mouseup(N);y.push({el:this,move:a,end:k,move_scope:n,start_scope:q,end_scope:m})});return this};Ca.undrag=function(a,g,k){for(g=y.length;g--;)y[g].el==this&&y[g].move==a&&y[g].end==
k&&y.splice(g++,1);!y.length&&d.unmousemove(G).unmouseup(N)};Z.circle=function(a,g,k){return Lb(this,a||0,g||0,k||0)};Z.rect=function(a,g,k,n,q){return lb(this,a||0,g||0,k||0,n||0,q||0)};Z.ellipse=function(a,g,k,n){return vb(this,a||0,g||0,k||0,n||0)};Z.path=function(a){a&&!d.is(a,"string")&&!d.is(a[0],Ga)&&(a+="");return Jb(d.format[F](d,arguments),this)};Z.image=function(a,g,k,n,q){return Mb(this,a||"about:blank",g||0,k||0,n||0,q||0)};Z.text=function(a,g,k){return wb(this,a||0,g||0,V(k))};Z.set=
function(a){arguments[T]>1&&(a=Array[w].splice.call(arguments,0,arguments[T]));return new La(a)};Z.setSize=e;Z.top=Z.bottom=null;Z.raphael=d;Ca.resetScale=function(){if(this.removed)return this;this._.sx=1;this._.sy=1;this.attrs.scale="1 1"};Ca.scale=function(a,g,k,n){if(this.removed)return this;if(a==null&&g==null)return{x:this._.sx,y:this._.sy,toString:v};g=g||a;!+g&&(g=a);var q,m,t=this.attrs;if(a!=0){var B=this.getBBox(),A=B.x+B.width/2,D=B.y+B.height/2;q=Y(a/this._.sx);m=Y(g/this._.sy);k=+k||
k==0?k:A;n=+n||n==0?n:D;var L=this._.sx>0,P=this._.sy>0;B=~~(a/Y(a));var R=~~(g/Y(g)),fa=q*B,ta=m*R,da=this.node.style;A=k+Y(A-k)*fa*(A>k==L?1:-1);D=n+Y(D-n)*ta*(D>n==P?1:-1);var ba=a*B>g*R?m:q;switch(this.type){case "rect":case "image":var ka=t.width*q,Ja=t.height*m;this.attr({height:Ja,r:t.r*ba,width:ka,x:A-ka/2,y:D-Ja/2});break;case "circle":case "ellipse":this.attr({rx:t.rx*q,ry:t.ry*m,r:t.r*ba,cx:A,cy:D});break;case "text":this.attr({x:A,y:D});break;case "path":ba=rb(t.path);var Oa=true;L=L?
fa:q;P=P?ta:m;ta=0;for(fa=ba[T];ta<fa;ta++){var Pa=ba[ta],Ma=Za.call(Pa[0]);if(!(Ma=="M"&&Oa)){Oa=false;if(Ma=="A"){Pa[ba[ta][T]-2]*=L;Pa[ba[ta][T]-1]*=P;Pa[1]*=q;Pa[2]*=m;Pa[5]=+(B+R?!!+Pa[5]:!+Pa[5])}else if(Ma=="H"){Ma=1;for(var ib=Pa[T];Ma<ib;Ma++)Pa[Ma]*=L}else if(Ma=="V"){Ma=1;for(ib=Pa[T];Ma<ib;Ma++)Pa[Ma]*=P}else{Ma=1;for(ib=Pa[T];Ma<ib;Ma++)Pa[Ma]*=Ma%2?L:P}}}m=qb(ba);q=A-m.x-m.width/2;m=D-m.y-m.height/2;ba[0][1]+=q;ba[0][2]+=m;this.attr({path:ba});break}if(this.type in{text:1,image:1}&&
(B!=1||R!=1))if(this.transformations){this.transformations[2]="scale(".concat(B,",",R,")");this.node.setAttribute("transform",this.transformations[za](aa));q=B==-1?-t.x-(ka||0):t.x;m=R==-1?-t.y-(Ja||0):t.y;this.attr({x:q,y:m});t.fx=B-1;t.fy=R-1}else{this.node.filterMatrix=" progid:DXImageTransform.Microsoft"+".Matrix(M11=".concat(B,", M12=0, M21=0, M22=",R,", Dx=0, Dy=0, sizingmethod='auto expand', filtertype='bilinear')");da.filter=(this.node.filterMatrix||"")+(this.node.filterOpacity||"")}else if(this.transformations){this.transformations[2]=
"";this.node.setAttribute("transform",this.transformations[za](aa));t.fx=0;t.fy=0}else{this.node.filterMatrix="";da.filter=(this.node.filterMatrix||"")+(this.node.filterOpacity||"")}t.scale=[a,g,k,n][za](aa);this._.sx=a;this._.sy=g}return this};Ca.clone=function(){if(this.removed)return null;var a=this.attr();delete a.scale;delete a.translation;return this.paper[this.type]().attr(a)};var M={},S=function(a,g,k,n,q,m,t,B,A){var D=0,L=100,P=[a,g,k,n,q,m,t,B].join(),R=M[P],fa,ta;!R&&(M[P]=R={data:[]});
R.timer&&clearTimeout(R.timer);R.timer=setTimeout(function(){delete M[P]},2E3);if(A!=null)L=~~S(a,g,k,n,q,m,t,B)*10;for(var da=0;da<L+1;da++){if(R.data[A]>da)ta=R.data[da*L];else{ta=d.findDotsAtSegment(a,g,k,n,q,m,t,B,da/L);R.data[da]=ta}da&&(D+=ga(ga(fa.x-ta.x,2)+ga(fa.y-ta.y,2),0.5));if(A!=null&&D>=A)return ta;fa=ta}if(A==null)return D};ha=function(a,g){return function(k,n,q){k=fb(k);for(var m,t,B,A,D="",L={},P=0,R=0,fa=k.length;R<fa;R++){B=k[R];if(B[0]=="M"){m=+B[1];t=+B[2]}else{A=S(m,t,B[1],B[2],
B[3],B[4],B[5],B[6]);if(P+A>n){if(g&&!L.start){m=S(m,t,B[1],B[2],B[3],B[4],B[5],B[6],n-P);D+=["C",m.start.x,m.start.y,m.m.x,m.m.y,m.x,m.y];if(q)return D;L.start=D;D=["M",m.x,m.y+"C",m.n.x,m.n.y,m.end.x,m.end.y,B[5],B[6]][za]();P+=A;m=+B[5];t=+B[6];continue}if(!a&&!g){m=S(m,t,B[1],B[2],B[3],B[4],B[5],B[6],n-P);return{x:m.x,y:m.y,alpha:m.alpha}}}P+=A;m=+B[5];t=+B[6]}D+=B}L.end=D;m=a?P:g?L:d.findDotsAtSegment(m,t,B[1],B[2],B[3],B[4],B[5],B[6],1);m.alpha&&(m={x:m.x,y:m.y,alpha:m.alpha});return m}};var U=
ha(1),ja=ha(),na=ha(0,1);Ca.getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return U(this.attrs.path)}};Ca.getPointAtLength=function(a){if(this.type=="path")return ja(this.attrs.path,a)};Ca.getSubpath=function(a,g){if(this.type=="path"){if(Y(this.getTotalLength()-g)<"1e-6")return na(this.attrs.path,a).end;var k=na(this.attrs.path,g,1);return a?na(k,a).end:k}};d.easing_formulas={linear:function(a){return a},"<":function(a){return ga(a,3)},
">":function(a){return ga(a-1,3)+1},"<>":function(a){a*=2;if(a<1)return ga(a,3)/2;a-=2;return(ga(a,3)+2)/2},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){if(a==0||a==1)return a;return ga(2,-10*a)*ia.sin((a-0.075)*2*Da/0.3)+1},bounce:function(a){if(a<1/2.75)a=7.5625*a*a;else if(a<2/2.75){a-=1.5/2.75;a=7.5625*a*a+0.75}else if(a<2.5/2.75){a-=2.25/2.75;a=7.5625*a*a+0.9375}else{a-=2.625/2.75;a=7.5625*a*a+0.984375}return a}};
var va=[],Ra=function(){for(var a=+new Date,g=0;g<va[T];g++){var k=va[g];if(!(k.stop||k.el.removed)){var n=a-k.start,q=k.ms,m=k.easing,t=k.from,B=k.diff,A=k.to,D=k.t,L=k.el;k={};var P;if(n<q){n=m(n/q);for(var R in t)if(t[E](R)){switch(cb[R]){case "along":P=n*q*B[R];A.back&&(P=A.len-P);m=ja(A[R],P);L.translate(B.sx-B.x||0,B.sy-B.y||0);B.x=m.x;B.y=m.y;L.translate(m.x-B.sx,m.y-B.sy);A.rot&&L.rotate(B.r+m.alpha,m.x,m.y);break;case ua:P=+t[R]+n*q*B[R];break;case "colour":P="rgb("+[Qa(Ba(t[R].r+n*q*B[R].r)),
Qa(Ba(t[R].g+n*q*B[R].g)),Qa(Ba(t[R].b+n*q*B[R].b))][za](",")+")";break;case "path":P=[];m=0;for(var fa=t[R][T];m<fa;m++){P[m]=[t[R][m][0]];for(var ta=1,da=t[R][m][T];ta<da;ta++)P[m][ta]=+t[R][m][ta]+n*q*B[R][m][ta];P[m]=P[m][za](aa)}P=P[za](aa);break;case "csv":switch(R){case "translation":P=n*q*B[R][0]-D.x;m=n*q*B[R][1]-D.y;D.x+=P;D.y+=m;P=P+aa+m;break;case "rotation":P=+t[R][0]+n*q*B[R][0];t[R][1]&&(P+=","+t[R][1]+","+t[R][2]);break;case "scale":P=[+t[R][0]+n*q*B[R][0],+t[R][1]+n*q*B[R][1],2 in
A[R]?A[R][2]:"",3 in A[R]?A[R][3]:""][za](aa);break;case "clip-rect":P=[];for(m=4;m--;)P[m]=+t[R][m]+n*q*B[R][m];break}break;default:fa=[].concat(t[R]);P=[];for(m=L.paper.customAttributes[R].length;m--;)P[m]=+fa[m]+n*q*B[R][m];break}k[R]=P}L.attr(k);L._run&&L._run.call(L)}else{if(A.along){m=ja(A.along,A.len*!A.back);L.translate(B.sx-(B.x||0)+m.x-B.sx,B.sy-(B.y||0)+m.y-B.sy);A.rot&&L.rotate(B.r+m.alpha,m.x,m.y)}(D.x||D.y)&&L.translate(-D.x,-D.y);A.scale&&(A.scale+="");L.attr(A);va.splice(g--,1)}}}d.svg&&
L&&L.paper&&L.paper.safari();va[T]&&setTimeout(Ra)},Xa=function(a,g,k,n,q){var m=k-n;g.timeouts.push(setTimeout(function(){d.is(q,"function")&&q.call(g);g.animate(a,m,a.easing)},n))},Qa=function(a){return Ia(W(a,255),0)},ya=function(a,g){if(a==null)return{x:this._.tx,y:this._.ty,toString:v};this._.tx+=+a;this._.ty+=+g;switch(this.type){case "circle":case "ellipse":this.attr({cx:+a+this.attrs.cx,cy:+g+this.attrs.cy});break;case "rect":case "image":case "text":this.attr({x:+a+this.attrs.x,y:+g+this.attrs.y});
break;case "path":var k=rb(this.attrs.path);k[0][1]+=+a;k[0][2]+=+g;this.attr({path:k});break}return this};Ca.animateWith=function(a,g,k,n,q){for(var m=0,t=va.length;m<t;m++)if(va[m].el.id==a.id)g.start=va[m].start;return this.animate(g,k,n,q)};Ca.animateAlong=r();Ca.animateAlongBack=r(1);Ca.onAnimation=function(a){this._run=a||0;return this};Ca.animate=function(a,g,k,n){var q=this;q.timeouts=q.timeouts||[];if(d.is(k,"function")||!k)n=k||null;if(q.removed){n&&n.call(q);return q}var m={},t={},B=false,
A={};for(var D in a)if(a[E](D))if(cb[E](D)||q.paper.customAttributes[E](D)){B=true;m[D]=q.attr(D);m[D]==null&&(m[D]=ab[D]);t[D]=a[D];switch(cb[D]){case "along":var L=U(a[D]),P=ja(a[D],L*!!a.back),R=q.getBBox();A[D]=L/g;A.tx=R.x;A.ty=R.y;A.sx=P.x;A.sy=P.y;t.rot=a.rot;t.back=a.back;t.len=L;a.rot&&(A.r=ra(q.rotate())||0);break;case ua:A[D]=(t[D]-m[D])/g;break;case "colour":m[D]=d.getRGB(m[D]);L=d.getRGB(t[D]);A[D]={r:(L.r-m[D].r)/g,g:(L.g-m[D].g)/g,b:(L.b-m[D].b)/g};break;case "path":L=fb(m[D],t[D]);
m[D]=L[0];R=L[1];A[D]=[];L=0;for(P=m[D][T];L<P;L++){A[D][L]=[0];for(var fa=1,ta=m[D][L][T];fa<ta;fa++)A[D][L][fa]=(R[L][fa]-m[D][L][fa])/g}break;case "csv":P=V(a[D]).split(j);R=V(m[D]).split(j);switch(D){case "translation":m[D]=[0,0];A[D]=[P[0]/g,P[1]/g];break;case "rotation":m[D]=R[1]==P[1]&&R[2]==P[2]?R:[0,P[1],P[2]];A[D]=[(P[0]-m[D][0])/g,0,0];break;case "scale":a[D]=P;m[D]=V(m[D]).split(j);A[D]=[(P[0]-m[D][0])/g,(P[1]-m[D][1])/g,0,0];break;case "clip-rect":m[D]=V(m[D]).split(j);A[D]=[];for(L=
4;L--;)A[D][L]=(P[L]-m[D][L])/g;break}t[D]=P;break;default:P=[].concat(a[D]);R=[].concat(m[D]);A[D]=[];for(L=q.paper.customAttributes[D][T];L--;)A[D][L]=((P[L]||0)-(R[L]||0))/g;break}}if(B){D=d.easing_formulas[k];if(!D)if((D=V(k).match(Ta))&&D[T]==5){var da=D;D=function(Ja){return b(Ja,+da[1],+da[2],+da[3],+da[4],g)}}else D=function(Ja){return Ja};va.push({start:a.start||+new Date,ms:g,easing:D,from:m,diff:A,to:t,el:q,t:{x:0,y:0}});d.is(n,"function")&&(q._ac=setTimeout(function(){n.call(q)},g));va[T]==
1&&setTimeout(Ra)}else{k=[];var ba;for(var ka in a)if(a[E](ka)&&Nb.test(ka)){D={value:a[ka]};ka=="from"&&(ka=0);ka=="to"&&(ka=100);D.key=Sa(ka,10);k.push(D)}k.sort(Ab);k[0].key&&k.unshift({key:0,value:q.attrs});L=0;for(P=k[T];L<P;L++)Xa(k[L].value,q,g/100*k[L].key,g/100*(k[L-1]&&k[L-1].key||0),k[L-1]&&k[L-1].value.callback);(ba=k[k[T]-1].value.callback)&&q.timeouts.push(setTimeout(function(){ba.call(q)},g))}return this};Ca.stop=function(){for(var a=0;a<va.length;a++)va[a].el.id==this.id&&va.splice(a--,
1);a=0;for(ii=this.timeouts&&this.timeouts.length;a<ii;a++)clearTimeout(this.timeouts[a]);this.timeouts=[];clearTimeout(this._ac);delete this._ac;return this};Ca.translate=function(a,g){return this.attr({translation:a+" "+g})};Ca[Aa]=function(){return"Raphaël’s object"};d.ae=va;var La=function(a){this.items=[];this[T]=0;this.type="set";if(a)for(var g=0,k=a[T];g<k;g++)if(a[g]&&(a[g].constructor==Ea||a[g].constructor==La)){this[this.items[T]]=this.items[this.items[T]]=a[g];this[T]++}};La[w][wa]=function(){for(var a,
g,k=0,n=arguments[T];k<n;k++)if((a=arguments[k])&&(a.constructor==Ea||a.constructor==La)){g=this.items[T];this[g]=this.items[g]=a;this[T]++}return this};La[w].pop=function(){delete this[this[T]--];return this.items.pop()};for(var H in Ca)if(Ca[E](H))La[w][H]=function(a){return function(){for(var g=0,k=this.items[T];g<k;g++)this.items[g][a][F](this.items[g],arguments);return this}}(H);La[w].attr=function(a,g){if(a&&d.is(a,Ga)&&d.is(a[0],"object"))for(var k=0,n=a[T];k<n;k++)this.items[k].attr(a[k]);
else{k=0;for(n=this.items[T];k<n;k++)this.items[k].attr(a,g)}return this};La[w].animate=function(a,g,k,n){(d.is(k,"function")||!k)&&(n=k||null);var q=this.items[T],m=q,t,B=this,A;n&&(A=function(){!--q&&n.call(B)});k=d.is(k,"string")?k:A;for(t=this.items[--m].animate(a,g,k,A);m--;)this.items[m]&&!this.items[m].removed&&this.items[m].animateWith(t,a,g,k,A);return this};La[w].insertAfter=function(a){for(var g=this.items[T];g--;)this.items[g].insertAfter(a);return this};La[w].getBBox=function(){for(var a=
[],g=[],k=[],n=[],q=this.items[T];q--;){var m=this.items[q].getBBox();a[wa](m.x);g[wa](m.y);k[wa](m.x+m.width);n[wa](m.y+m.height)}a=W[F](0,a);g=W[F](0,g);return{x:a,y:g,width:Ia[F](0,k)-a,height:Ia[F](0,n)-g}};La[w].clone=function(a){a=new La;for(var g=0,k=this.items[T];g<k;g++)a[wa](this.items[g].clone());return a};d.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var g={w:a.w,face:{},glyphs:{}},k=a.face["font-family"];for(var n in a.face)if(a.face[E](n))g.face[n]=a.face[n];
if(this.fonts[k])this.fonts[k][wa](g);else this.fonts[k]=[g];if(!a.svg){g.face["units-per-em"]=Sa(a.face["units-per-em"],10);for(var q in a.glyphs)if(a.glyphs[E](q)){k=a.glyphs[q];g.glyphs[q]={w:k.w,k:{},d:k.d&&"M"+k.d.replace(/[mlcxtrv]/g,function(t){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[t]||"M"})+"z"};if(k.k)for(var m in k.k)if(k[E](m))g.glyphs[q].k[m]=k.k[m]}}return a};Z.getFont=function(a,g,k,n){n=n||"normal";k=k||"normal";g=+g||{normal:400,bold:700,lighter:300,bolder:800}[g]||400;if(d.fonts){var q=
d.fonts[a];if(!q){a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i");for(var m in d.fonts)if(d.fonts[E](m))if(a.test(m)){q=d.fonts[m];break}}var t;if(q){m=0;for(a=q[T];m<a;m++){t=q[m];if(t.face["font-weight"]==g&&(t.face["font-style"]==k||!t.face["font-style"])&&t.face["font-stretch"]==n)break}}return t}};Z.print=function(a,g,k,n,q,m,t){m=m||"middle";t=Ia(W(t||0,1),-1);var B=this.set(),A=V(k).split(""),D=0;d.is(n,k)&&(n=this.getFont(n));if(n){k=(q||16)/n.face["units-per-em"];var L=
n.face.bbox.split(j);q=+L[0];m=+L[1]+(m=="baseline"?L[3]-L[1]+ +n.face.descent:(L[3]-L[1])/2);L=0;for(var P=A[T];L<P;L++){var R=L&&n.glyphs[A[L-1]]||{},fa=n.glyphs[A[L]];D+=L?(R.w||n.w)+(R.k&&R.k[A[L]]||0)+n.w*t:0;fa&&fa.d&&B[wa](this.path(fa.d).attr({fill:"#000",stroke:"none",translation:[D,0]}))}B.scale(k,k,q,m).translate(a-q,g-m)}return B};d.format=function(a,g){var k=d.is(g,Ga)?[0].concat(g):arguments;a&&d.is(a,"string")&&k[T]-1&&(a=a.replace(z,function(n,q){return k[++q]==null?"":k[q]}));return a||
""};d.ninja=function(){ea.was?Q.Raphael=ea.is:delete Raphael;return d};d.el=Ca;d.st=La[w];ea.was?Q.Raphael=d:Raphael=d})();(function(d,o){function u(e,f,l){if(l===o&&e.nodeType===1){l=e.getAttribute("data-"+f);if(typeof l==="string"){try{l=l==="true"?true:l==="false"?false:l==="null"?null:!h.isNaN(l)?parseFloat(l):V.test(l)?h.parseJSON(l):l}catch(s){}h.data(e,f,l)}else l=o}return l}function v(){return false}function r(){return true}function b(e,f,l){l[0].type=e;return h.event.handle.apply(f,l)}function j(e){var f,l,s,x,C,J,I,O,la,X,qa,xa=[];x=[];C=h.data(this,this.nodeType?"events":"__events__");if(typeof C==="function")C=
C.events;if(!(e.liveFired===this||!C||!C.live||e.button&&e.type==="click")){if(e.namespace)qa=RegExp("(^|\\.)"+e.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");e.liveFired=this;var Ka=C.live.slice(0);for(I=0;I<Ka.length;I++){C=Ka[I];C.origType.replace(Y,"")===e.type?x.push(C.selector):Ka.splice(I--,1)}x=h(e.target).closest(x,e.currentTarget);O=0;for(la=x.length;O<la;O++){X=x[O];for(I=0;I<Ka.length;I++){C=Ka[I];if(X.selector===C.selector&&(!qa||qa.test(C.namespace))){J=X.elem;s=null;if(C.preType===
"mouseenter"||C.preType==="mouseleave"){e.type=C.preType;s=h(e.relatedTarget).closest(C.selector)[0]}if(!s||s!==J)xa.push({elem:J,handleObj:C,level:X.level})}}}O=0;for(la=xa.length;O<la;O++){x=xa[O];if(l&&x.level>l)break;e.currentTarget=x.elem;e.data=x.handleObj.data;e.handleObj=x.handleObj;qa=x.handleObj.origHandler.apply(x.elem,arguments);if(qa===false||e.isPropagationStopped()){l=x.level;if(qa===false)f=false;if(e.isImmediatePropagationStopped())break}}return f}}function p(e,f){return(e&&e!=="*"?
e+".":"")+f.replace(Da,"`").replace(ua,"&")}function z(e,f,l){if(h.isFunction(f))return h.grep(e,function(x,C){return!!f.call(x,C,x)===l});else if(f.nodeType)return h.grep(e,function(x){return x===f===l});else if(typeof f==="string"){var s=h.grep(e,function(x){return x.nodeType===1});if(ab.test(f))return h.filter(f,s,!l);else f=h.filter(f,s)}return h.grep(e,function(x){return h.inArray(x,f)>=0===l})}function w(e,f){var l=0;f.each(function(){if(this.nodeName===(e[l]&&e[l].nodeName)){var s=h.data(e[l++]),
x=h.data(this,s);if(s=s&&s.events){delete x.handle;x.events={};for(var C in s)for(var J in s[C])h.event.add(this,C,s[C][J],s[C][J].data)}}})}function E(e,f){f.src?h.ajax({url:f.src,async:false,dataType:"script"}):h.globalEval(f.text||f.textContent||f.innerHTML||"");f.parentNode&&f.parentNode.removeChild(f)}function K(e,f,l){var s=f==="width"?e.offsetWidth:e.offsetHeight;if(l==="border")return s;h.each(f==="width"?Db:sb,function(){l||(s-=parseFloat(h.css(e,"padding"+this))||0);if(l==="margin")s+=parseFloat(h.css(e,
"margin"+this))||0;else s-=parseFloat(h.css(e,"border"+this+"Width"))||0});return s}function Q(e,f,l,s){if(h.isArray(f)&&f.length)h.each(f,function(x,C){l||Ib.test(e)?s(e,C):Q(e+"["+(typeof C==="object"||h.isArray(C)?x:"")+"]",C,l,s)});else if(!l&&f!=null&&typeof f==="object")h.isEmptyObject(f)?s(e,""):h.each(f,function(x,C){Q(e+"["+x+"]",C,l,s)});else s(e,f)}function ea(e,f){var l={};h.each(vb.concat.apply([],vb.slice(0,f)),function(){l[this]=e});return l}function ca(e){if(!Ea[e]){var f=h("<"+e+
">").appendTo("body"),l=f.css("display");f.remove();if(l==="none"||l==="")l="block";Ea[e]=l}return Ea[e]}function Z(e){return h.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}var F=d.document,h=function(){function e(){if(!f.isReady){try{F.documentElement.doScroll("left")}catch(H){setTimeout(e,1);return}f.ready()}}var f=function(H,a){return new f.fn.init(H,a)},l=d.jQuery,s=d.$,x,C=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,J=/\S/,I=/^\s+/,O=/\s+$/,la=/\W/,X=/\d/,qa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
xa=/^[\],:{}\s]*$/,Ka=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,ma=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ha=/(?:^|:|,)(?:\s*\[)+/g,Wa=/(webkit)[ \/]([\w.]+)/,y=/(opera)(?:.*version)?[ \/]([\w.]+)/,G=/(msie) ([\w.]+)/,N=/(mozilla)(?:.*? rv:([\w.]+))?/,M=navigator.userAgent,S=false,U=[],ja,na=Object.prototype.toString,va=Object.prototype.hasOwnProperty,Ra=Array.prototype.push,Xa=Array.prototype.slice,Qa=String.prototype.trim,ya=Array.prototype.indexOf,La={};f.fn=f.prototype=
{init:function(H,a){var g,k,n;if(!H)return this;if(H.nodeType){this.context=this[0]=H;this.length=1;return this}if(H==="body"&&!a&&F.body){this.context=F;this[0]=F.body;this.selector="body";this.length=1;return this}if(typeof H==="string")if((g=C.exec(H))&&(g[1]||!a))if(g[1]){n=a?a.ownerDocument||a:F;if(k=qa.exec(H))if(f.isPlainObject(a)){H=[F.createElement(k[1])];f.fn.attr.call(H,a,true)}else H=[n.createElement(k[1])];else{k=f.buildFragment([g[1]],[n]);H=(k.cacheable?k.fragment.cloneNode(true):k.fragment).childNodes}return f.merge(this,
H)}else{if((k=F.getElementById(g[2]))&&k.parentNode){if(k.id!==g[2])return x.find(H);this.length=1;this[0]=k}this.context=F;this.selector=H;return this}else if(!a&&!la.test(H)){this.selector=H;this.context=F;H=F.getElementsByTagName(H);return f.merge(this,H)}else return!a||a.jquery?(a||x).find(H):f(a).find(H);else if(f.isFunction(H))return x.ready(H);if(H.selector!==o){this.selector=H.selector;this.context=H.context}return f.makeArray(H,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
toArray:function(){return Xa.call(this,0)},get:function(H){return H==null?this.toArray():H<0?this.slice(H)[0]:this[H]},pushStack:function(H,a,g){var k=f();f.isArray(H)?Ra.apply(k,H):f.merge(k,H);k.prevObject=this;k.context=this.context;if(a==="find")k.selector=this.selector+(this.selector?" ":"")+g;else if(a)k.selector=this.selector+"."+a+"("+g+")";return k},each:function(H,a){return f.each(this,H,a)},ready:function(H){f.bindReady();if(f.isReady)H.call(F,f);else U&&U.push(H);return this},eq:function(H){return H===
-1?this.slice(H):this.slice(H,+H+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Xa.apply(this,arguments),"slice",Xa.call(arguments).join(","))},map:function(H){return this.pushStack(f.map(this,function(a,g){return H.call(a,g,a)}))},end:function(){return this.prevObject||f(null)},push:Ra,sort:[].sort,splice:[].splice};f.fn.init.prototype=f.fn;f.extend=f.fn.extend=function(){var H,a,g,k,n,q=arguments[0]||{},m=1,t=arguments.length,B=
false;if(typeof q==="boolean"){B=q;q=arguments[1]||{};m=2}if(typeof q!=="object"&&!f.isFunction(q))q={};if(t===m){q=this;--m}for(;m<t;m++)if((H=arguments[m])!=null)for(a in H){g=q[a];k=H[a];if(q!==k)if(B&&k&&(f.isPlainObject(k)||(n=f.isArray(k)))){if(n){n=false;g=g&&f.isArray(g)?g:[]}else g=g&&f.isPlainObject(g)?g:{};q[a]=f.extend(B,g,k)}else if(k!==o)q[a]=k}return q};f.extend({noConflict:function(H){d.$=s;if(H)d.jQuery=l;return f},isReady:false,readyWait:1,ready:function(H){H===true&&f.readyWait--;
if(!f.readyWait||H!==true&&!f.isReady){if(!F.body)return setTimeout(f.ready,1);f.isReady=true;if(!(H!==true&&--f.readyWait>0))if(U){var a=0,g=U;for(U=null;H=g[a++];)H.call(F,f);f.fn.trigger&&f(F).trigger("ready").unbind("ready")}}},bindReady:function(){if(!S){S=true;if(F.readyState==="complete")return setTimeout(f.ready,1);if(F.addEventListener){F.addEventListener("DOMContentLoaded",ja,false);d.addEventListener("load",f.ready,false)}else if(F.attachEvent){F.attachEvent("onreadystatechange",ja);d.attachEvent("onload",
f.ready);var H=false;try{H=d.frameElement==null}catch(a){}F.documentElement.doScroll&&H&&e()}}},isFunction:function(H){return f.type(H)==="function"},isArray:Array.isArray||function(H){return f.type(H)==="array"},isWindow:function(H){return H&&typeof H==="object"&&"setInterval"in H},isNaN:function(H){return H==null||!X.test(H)||isNaN(H)},type:function(H){return H==null?String(H):La[na.call(H)]||"object"},isPlainObject:function(H){if(!H||f.type(H)!=="object"||H.nodeType||f.isWindow(H))return false;
if(H.constructor&&!va.call(H,"constructor")&&!va.call(H.constructor.prototype,"isPrototypeOf"))return false;var a;for(a in H);return a===o||va.call(H,a)},isEmptyObject:function(H){for(var a in H)return false;return true},error:function(H){throw H;},parseJSON:function(H){if(typeof H!=="string"||!H)return null;H=f.trim(H);if(xa.test(H.replace(Ka,"@").replace(ma,"]").replace(Ha,"")))return d.JSON&&d.JSON.parse?d.JSON.parse(H):(new Function("return "+H))();else f.error("Invalid JSON: "+H)},noop:function(){},
globalEval:function(H){if(H&&J.test(H)){var a=F.getElementsByTagName("head")[0]||F.documentElement,g=F.createElement("script");g.type="text/javascript";if(f.support.scriptEval)g.appendChild(F.createTextNode(H));else g.text=H;a.insertBefore(g,a.firstChild);a.removeChild(g)}},nodeName:function(H,a){return H.nodeName&&H.nodeName.toUpperCase()===a.toUpperCase()},each:function(H,a,g){var k,n=0,q=H.length,m=q===o||f.isFunction(H);if(g)if(m)for(k in H){if(a.apply(H[k],g)===false)break}else for(;n<q;){if(a.apply(H[n++],
g)===false)break}else if(m)for(k in H){if(a.call(H[k],k,H[k])===false)break}else for(g=H[0];n<q&&a.call(g,n,g)!==false;g=H[++n]);return H},trim:Qa?function(H){return H==null?"":Qa.call(H)}:function(H){return H==null?"":H.toString().replace(I,"").replace(O,"")},makeArray:function(H,a){var g=a||[];if(H!=null){var k=f.type(H);H.length==null||k==="string"||k==="function"||k==="regexp"||f.isWindow(H)?Ra.call(g,H):f.merge(g,H)}return g},inArray:function(H,a){if(a.indexOf)return a.indexOf(H);for(var g=0,
k=a.length;g<k;g++)if(a[g]===H)return g;return-1},merge:function(H,a){var g=H.length,k=0;if(typeof a.length==="number")for(var n=a.length;k<n;k++)H[g++]=a[k];else for(;a[k]!==o;)H[g++]=a[k++];H.length=g;return H},grep:function(H,a,g){var k=[],n;g=!!g;for(var q=0,m=H.length;q<m;q++){n=!!a(H[q],q);g!==n&&k.push(H[q])}return k},map:function(H,a,g){for(var k=[],n,q=0,m=H.length;q<m;q++){n=a(H[q],q,g);if(n!=null)k[k.length]=n}return k.concat.apply([],k)},guid:1,proxy:function(H,a,g){if(arguments.length===
2)if(typeof a==="string"){g=H;H=g[a];a=o}else if(a&&!f.isFunction(a)){g=a;a=o}if(!a&&H)a=function(){return H.apply(g||this,arguments)};if(H)a.guid=H.guid=H.guid||a.guid||f.guid++;return a},access:function(H,a,g,k,n,q){var m=H.length;if(typeof a==="object"){for(var t in a)f.access(H,t,a[t],k,n,g);return H}if(g!==o){k=!q&&k&&f.isFunction(g);for(t=0;t<m;t++)n(H[t],a,k?g.call(H[t],t,n(H[t],a)):g,q);return H}return m?n(H[0],a):o},now:function(){return(new Date).getTime()},uaMatch:function(H){H=H.toLowerCase();
H=Wa.exec(H)||y.exec(H)||G.exec(H)||H.indexOf("compatible")<0&&N.exec(H)||[];return{browser:H[1]||"",version:H[2]||"0"}},browser:{}});f.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(H,a){La["[object "+a+"]"]=a.toLowerCase()});M=f.uaMatch(M);if(M.browser){f.browser[M.browser]=true;f.browser.version=M.version}if(f.browser.webkit)f.browser.safari=true;if(ya)f.inArray=function(H,a){return ya.call(a,H)};if(!/\s/.test(" ")){I=/^[\s\xA0]+/;O=/[\s\xA0]+$/}x=f(F);if(F.addEventListener)ja=
function(){F.removeEventListener("DOMContentLoaded",ja,false);f.ready()};else if(F.attachEvent)ja=function(){if(F.readyState==="complete"){F.detachEvent("onreadystatechange",ja);f.ready()}};return d.jQuery=d.$=f}();(function(){h.support={};var e=F.documentElement,f=F.createElement("script"),l=F.createElement("div"),s="script"+h.now();l.style.display="none";l.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var x=l.getElementsByTagName("*"),
C=l.getElementsByTagName("a")[0],J=F.createElement("select"),I=J.appendChild(F.createElement("option"));if(!(!x||!x.length||!C)){h.support={leadingWhitespace:l.firstChild.nodeType===3,tbody:!l.getElementsByTagName("tbody").length,htmlSerialize:!!l.getElementsByTagName("link").length,style:/red/.test(C.getAttribute("style")),hrefNormalized:C.getAttribute("href")==="/a",opacity:/^0.55$/.test(C.style.opacity),cssFloat:!!C.style.cssFloat,checkOn:l.getElementsByTagName("input")[0].value==="on",optSelected:I.selected,
deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};J.disabled=true;h.support.optDisabled=!I.disabled;f.type="text/javascript";try{f.appendChild(F.createTextNode("window."+s+"=1;"))}catch(O){}e.insertBefore(f,e.firstChild);if(d[s]){h.support.scriptEval=true;delete d[s]}try{delete f.test}catch(la){h.support.deleteExpando=false}e.removeChild(f);if(l.attachEvent&&l.fireEvent){l.attachEvent("onclick",
function X(){h.support.noCloneEvent=false;l.detachEvent("onclick",X)});l.cloneNode(true).fireEvent("onclick")}l=F.createElement("div");l.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";e=F.createDocumentFragment();e.appendChild(l.firstChild);h.support.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;h(function(){var X=F.createElement("div");X.style.width=X.style.paddingLeft="1px";F.body.appendChild(X);h.boxModel=h.support.boxModel=X.offsetWidth===2;if("zoom"in X.style){X.style.display=
"inline";X.style.zoom=1;h.support.inlineBlockNeedsLayout=X.offsetWidth===2;X.style.display="";X.innerHTML="<div style='width:4px;'></div>";h.support.shrinkWrapBlocks=X.offsetWidth!==2}X.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var qa=X.getElementsByTagName("td");h.support.reliableHiddenOffsets=qa[0].offsetHeight===0;qa[0].style.display="";qa[1].style.display="none";h.support.reliableHiddenOffsets=h.support.reliableHiddenOffsets&&qa[0].offsetHeight===0;
X.innerHTML="";F.body.removeChild(X).style.display="none"});e=function(X){var qa=F.createElement("div");X="on"+X;var xa=X in qa;if(!xa){qa.setAttribute(X,"return;");xa=typeof qa[X]==="function"}return xa};h.support.submitBubbles=e("submit");h.support.changeBubbles=e("change");e=f=l=x=C=null}})();var aa={},V=/^(?:\{.*\}|\[.*\])$/;h.extend({cache:{},uuid:0,expando:"jQuery"+h.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(e,f,l){if(h.acceptData(e)){e=
e==d?aa:e;var s=e.nodeType,x=s?e[h.expando]:null,C=h.cache;if(!(s&&!x&&typeof f==="string"&&l===o)){if(s)x||(e[h.expando]=x=++h.uuid);else C=e;if(typeof f==="object")if(s)C[x]=h.extend(C[x],f);else h.extend(C,f);else if(s&&!C[x])C[x]={};e=s?C[x]:C;if(l!==o)e[f]=l;return typeof f==="string"?e[f]:e}}},removeData:function(e,f){if(h.acceptData(e)){e=e==d?aa:e;var l=e.nodeType,s=l?e[h.expando]:e,x=h.cache,C=l?x[s]:s;if(f){if(C){delete C[f];l&&h.isEmptyObject(C)&&h.removeData(e)}}else if(l&&h.support.deleteExpando)delete e[h.expando];
else if(e.removeAttribute)e.removeAttribute(h.expando);else if(l)delete x[s];else for(var J in e)delete e[J]}},acceptData:function(e){if(e.nodeName){var f=h.noData[e.nodeName.toLowerCase()];if(f)return!(f===true||e.getAttribute("classid")!==f)}return true}});h.fn.extend({data:function(e,f){var l=null;if(typeof e==="undefined"){if(this.length){var s=this[0].attributes,x;l=h.data(this[0]);for(var C=0,J=s.length;C<J;C++){x=s[C].name;if(x.indexOf("data-")===0){x=x.substr(5);u(this[0],x,l[x])}}}return l}else if(typeof e===
"object")return this.each(function(){h.data(this,e)});var I=e.split(".");I[1]=I[1]?"."+I[1]:"";if(f===o){l=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(l===o&&this.length){l=h.data(this[0],e);l=u(this[0],e,l)}return l===o&&I[1]?this.data(I[0]):l}else return this.each(function(){var O=h(this),la=[I[0],f];O.triggerHandler("setData"+I[1]+"!",la);h.data(this,e,f);O.triggerHandler("changeData"+I[1]+"!",la)})},removeData:function(e){return this.each(function(){h.removeData(this,e)})}});h.extend({queue:function(e,
f,l){if(e){f=(f||"fx")+"queue";var s=h.data(e,f);if(!l)return s||[];if(!s||h.isArray(l))s=h.data(e,f,h.makeArray(l));else s.push(l);return s}},dequeue:function(e,f){f=f||"fx";var l=h.queue(e,f),s=l.shift();if(s==="inprogress")s=l.shift();if(s){f==="fx"&&l.unshift("inprogress");s.call(e,function(){h.dequeue(e,f)})}}});h.fn.extend({queue:function(e,f){if(typeof e!=="string"){f=e;e="fx"}if(f===o)return h.queue(this[0],e);return this.each(function(){var l=h.queue(this,e,f);e==="fx"&&l[0]!=="inprogress"&&
h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},delay:function(e,f){e=h.fx?h.fx.speeds[e]||e:e;f=f||"fx";return this.queue(f,function(){var l=this;setTimeout(function(){h.dequeue(l,f)},e)})},clearQueue:function(e){return this.queue(e||"fx",[])}});var ha=/[\n\t]/g,sa=/\s+/,za=/\r/g,T=/^(?:href|src|style)$/,oa=/^(?:button|input)$/i,ia=/^(?:button|input|object|select|textarea)$/i,Ia=/^a(?:rea)?$/i,W=/^(?:radio|checkbox)$/i;h.props={"for":"htmlFor","class":"className",
readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};h.fn.extend({attr:function(e,f){return h.access(this,e,f,true,h.attr)},removeAttr:function(e){return this.each(function(){h.attr(this,e,"");this.nodeType===1&&this.removeAttribute(e)})},addClass:function(e){if(h.isFunction(e))return this.each(function(la){var X=h(this);X.addClass(e.call(this,la,X.attr("class")))});if(e&&typeof e==="string")for(var f=
(e||"").split(sa),l=0,s=this.length;l<s;l++){var x=this[l];if(x.nodeType===1)if(x.className){for(var C=" "+x.className+" ",J=x.className,I=0,O=f.length;I<O;I++)if(C.indexOf(" "+f[I]+" ")<0)J+=" "+f[I];x.className=h.trim(J)}else x.className=e}return this},removeClass:function(e){if(h.isFunction(e))return this.each(function(O){var la=h(this);la.removeClass(e.call(this,O,la.attr("class")))});if(e&&typeof e==="string"||e===o)for(var f=(e||"").split(sa),l=0,s=this.length;l<s;l++){var x=this[l];if(x.nodeType===
1&&x.className)if(e){for(var C=(" "+x.className+" ").replace(ha," "),J=0,I=f.length;J<I;J++)C=C.replace(" "+f[J]+" "," ");x.className=h.trim(C)}else x.className=""}return this},toggleClass:function(e,f){var l=typeof e,s=typeof f==="boolean";if(h.isFunction(e))return this.each(function(x){var C=h(this);C.toggleClass(e.call(this,x,C.attr("class"),f),f)});return this.each(function(){if(l==="string")for(var x,C=0,J=h(this),I=f,O=e.split(sa);x=O[C++];){I=s?I:!J.hasClass(x);J[I?"addClass":"removeClass"](x)}else if(l===
"undefined"||l==="boolean"){this.className&&h.data(this,"__className__",this.className);this.className=this.className||e===false?"":h.data(this,"__className__")||""}})},hasClass:function(e){e=" "+e+" ";for(var f=0,l=this.length;f<l;f++)if((" "+this[f].className+" ").replace(ha," ").indexOf(e)>-1)return true;return false},val:function(e){if(!arguments.length){var f=this[0];if(f){if(h.nodeName(f,"option")){var l=f.attributes.value;return!l||l.specified?f.value:f.text}if(h.nodeName(f,"select")){var s=
f.selectedIndex;l=[];var x=f.options;f=f.type==="select-one";if(s<0)return null;var C=f?s:0;for(s=f?s+1:x.length;C<s;C++){var J=x[C];if(J.selected&&(h.support.optDisabled?!J.disabled:J.getAttribute("disabled")===null)&&(!J.parentNode.disabled||!h.nodeName(J.parentNode,"optgroup"))){e=h(J).val();if(f)return e;l.push(e)}}return l}if(W.test(f.type)&&!h.support.checkOn)return f.getAttribute("value")===null?"on":f.value;return(f.value||"").replace(za,"")}return o}var I=h.isFunction(e);return this.each(function(O){var la=
h(this),X=e;if(this.nodeType===1){if(I)X=e.call(this,O,la.val());if(X==null)X="";else if(typeof X==="number")X+="";else if(h.isArray(X))X=h.map(X,function(xa){return xa==null?"":xa+""});if(h.isArray(X)&&W.test(this.type))this.checked=h.inArray(la.val(),X)>=0;else if(h.nodeName(this,"select")){var qa=h.makeArray(X);h("option",this).each(function(){this.selected=h.inArray(h(this).val(),qa)>=0});if(!qa.length)this.selectedIndex=-1}else this.value=X}})}});h.extend({attrFn:{val:true,css:true,html:true,
text:true,data:true,width:true,height:true,offset:true},attr:function(e,f,l,s){if(!e||e.nodeType===3||e.nodeType===8)return o;if(s&&f in h.attrFn)return h(e)[f](l);s=e.nodeType!==1||!h.isXMLDoc(e);var x=l!==o;f=s&&h.props[f]||f;var C=T.test(f);if((f in e||e[f]!==o)&&s&&!C){if(x){f==="type"&&oa.test(e.nodeName)&&e.parentNode&&h.error("type property can't be changed");if(l===null)e.nodeType===1&&e.removeAttribute(f);else e[f]=l}if(h.nodeName(e,"form")&&e.getAttributeNode(f))return e.getAttributeNode(f).nodeValue;
if(f==="tabIndex")return(f=e.getAttributeNode("tabIndex"))&&f.specified?f.value:ia.test(e.nodeName)||Ia.test(e.nodeName)&&e.href?0:o;return e[f]}if(!h.support.style&&s&&f==="style"){if(x)e.style.cssText=""+l;return e.style.cssText}x&&e.setAttribute(f,""+l);if(!e.attributes[f]&&e.hasAttribute&&!e.hasAttribute(f))return o;e=!h.support.hrefNormalized&&s&&C?e.getAttribute(f,2):e.getAttribute(f);return e===null?o:e}});var Y=/\.(.*)$/,ga=/^(?:textarea|input|select)$/i,Da=/\./g,ua=/ /g,Ga=/[^\w\s.|`]/g,
Aa=function(e){return e.replace(Ga,"\\$&")},Na={focusin:0,focusout:0};h.event={add:function(e,f,l,s){if(!(e.nodeType===3||e.nodeType===8)){if(h.isWindow(e)&&e!==d&&!e.frameElement)e=d;if(l===false)l=v;else if(!l)return;var x,C;if(l.handler){x=l;l=x.handler}if(!l.guid)l.guid=h.guid++;if(C=h.data(e)){var J=e.nodeType?"events":"__events__",I=C[J],O=C.handle;if(typeof I==="function"){O=I.handle;I=I.events}else if(!I){e.nodeType||(C[J]=C=function(){});C.events=I={}}if(!O)C.handle=O=function(){return typeof h!==
"undefined"&&!h.event.triggered?h.event.handle.apply(O.elem,arguments):o};O.elem=e;f=f.split(" ");for(var la=0,X;J=f[la++];){C=x?h.extend({},x):{handler:l,data:s};if(J.indexOf(".")>-1){X=J.split(".");J=X.shift();C.namespace=X.slice(0).sort().join(".")}else{X=[];C.namespace=""}C.type=J;if(!C.guid)C.guid=l.guid;var qa=I[J],xa=h.event.special[J]||{};if(!qa){qa=I[J]=[];if(!xa.setup||xa.setup.call(e,s,X,O)===false)if(e.addEventListener)e.addEventListener(J,O,false);else e.attachEvent&&e.attachEvent("on"+
J,O)}if(xa.add){xa.add.call(e,C);if(!C.handler.guid)C.handler.guid=l.guid}qa.push(C);h.event.global[J]=true}e=null}}},global:{},remove:function(e,f,l,s){if(!(e.nodeType===3||e.nodeType===8)){if(l===false)l=v;var x,C,J=0,I,O,la,X,qa,xa,Ka=e.nodeType?"events":"__events__",ma=h.data(e),Ha=ma&&ma[Ka];if(ma&&Ha){if(typeof Ha==="function"){ma=Ha;Ha=Ha.events}if(f&&f.type){l=f.handler;f=f.type}if(!f||typeof f==="string"&&f.charAt(0)==="."){f=f||"";for(x in Ha)h.event.remove(e,x+f)}else{for(f=f.split(" ");x=
f[J++];){X=x;I=x.indexOf(".")<0;O=[];if(!I){O=x.split(".");x=O.shift();la=RegExp("(^|\\.)"+h.map(O.slice(0).sort(),Aa).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(qa=Ha[x])if(l){X=h.event.special[x]||{};for(C=s||0;C<qa.length;C++){xa=qa[C];if(l.guid===xa.guid){if(I||la.test(xa.namespace)){s==null&&qa.splice(C--,1);X.remove&&X.remove.call(e,xa)}if(s!=null)break}}if(qa.length===0||s!=null&&qa.length===1){if(!X.teardown||X.teardown.call(e,O)===false)h.removeEvent(e,x,ma.handle);delete Ha[x]}}else for(C=0;C<
qa.length;C++){xa=qa[C];if(I||la.test(xa.namespace)){h.event.remove(e,X,xa.handler,C);qa.splice(C--,1)}}}if(h.isEmptyObject(Ha)){if(f=ma.handle)f.elem=null;delete ma.events;delete ma.handle;if(typeof ma==="function")h.removeData(e,Ka);else h.isEmptyObject(ma)&&h.removeData(e)}}}}},trigger:function(e,f,l,s){var x=e.type||e;if(!s){e=typeof e==="object"?e[h.expando]?e:h.extend(h.Event(x),e):h.Event(x);if(x.indexOf("!")>=0){e.type=x=x.slice(0,-1);e.exclusive=true}if(!l){e.stopPropagation();h.event.global[x]&&
h.each(h.cache,function(){this.events&&this.events[x]&&h.event.trigger(e,f,this.handle.elem)})}if(!l||l.nodeType===3||l.nodeType===8)return o;e.result=o;e.target=l;f=h.makeArray(f);f.unshift(e)}e.currentTarget=l;(s=l.nodeType?h.data(l,"handle"):(h.data(l,"__events__")||{}).handle)&&s.apply(l,f);s=l.parentNode||l.ownerDocument;try{if(!(l&&l.nodeName&&h.noData[l.nodeName.toLowerCase()]))if(l["on"+x]&&l["on"+x].apply(l,f)===false){e.result=false;e.preventDefault()}}catch(C){}if(!e.isPropagationStopped()&&
s)h.event.trigger(e,f,s,true);else if(!e.isDefaultPrevented()){var J;s=e.target;var I=x.replace(Y,""),O=h.nodeName(s,"a")&&I==="click",la=h.event.special[I]||{};if((!la._default||la._default.call(l,e)===false)&&!O&&!(s&&s.nodeName&&h.noData[s.nodeName.toLowerCase()])){try{if(s[I]){if(J=s["on"+I])s["on"+I]=null;h.event.triggered=true;s[I]()}}catch(X){}if(J)s["on"+I]=J;h.event.triggered=false}}},handle:function(e){var f,l,s,x;l=[];var C=h.makeArray(arguments);e=C[0]=h.event.fix(e||d.event);e.currentTarget=
this;f=e.type.indexOf(".")<0&&!e.exclusive;if(!f){s=e.type.split(".");e.type=s.shift();l=s.slice(0).sort();s=RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)")}e.namespace=e.namespace||l.join(".");x=h.data(this,this.nodeType?"events":"__events__");if(typeof x==="function")x=x.events;l=(x||{})[e.type];if(x&&l){l=l.slice(0);x=0;for(var J=l.length;x<J;x++){var I=l[x];if(f||s.test(I.namespace)){e.handler=I.handler;e.data=I.data;e.handleObj=I;I=I.handler.apply(this,C);if(I!==o){e.result=I;if(I===false){e.preventDefault();
e.stopPropagation()}}if(e.isImmediatePropagationStopped())break}}}return e.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(e){if(e[h.expando])return e;var f=e;e=h.Event(f);for(var l=this.props.length,
s;l;){s=this.props[--l];e[s]=f[s]}if(!e.target)e.target=e.srcElement||F;if(e.target.nodeType===3)e.target=e.target.parentNode;if(!e.relatedTarget&&e.fromElement)e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement;if(e.pageX==null&&e.clientX!=null){f=F.documentElement;l=F.body;e.pageX=e.clientX+(f&&f.scrollLeft||l&&l.scrollLeft||0)-(f&&f.clientLeft||l&&l.clientLeft||0);e.pageY=e.clientY+(f&&f.scrollTop||l&&l.scrollTop||0)-(f&&f.clientTop||l&&l.clientTop||0)}if(e.which==null&&(e.charCode!=
null||e.keyCode!=null))e.which=e.charCode!=null?e.charCode:e.keyCode;if(!e.metaKey&&e.ctrlKey)e.metaKey=e.ctrlKey;if(!e.which&&e.button!==o)e.which=e.button&1?1:e.button&2?3:e.button&4?2:0;return e},guid:1E8,proxy:h.proxy,special:{ready:{setup:h.bindReady,teardown:h.noop},live:{add:function(e){h.event.add(this,p(e.origType,e.selector),h.extend({},e,{handler:j,guid:e.handler.guid}))},remove:function(e){h.event.remove(this,p(e.origType,e.selector),e)}},beforeunload:{setup:function(e,f,l){if(h.isWindow(this))this.onbeforeunload=
l},teardown:function(e,f){if(this.onbeforeunload===f)this.onbeforeunload=null}}}};h.removeEvent=F.removeEventListener?function(e,f,l){e.removeEventListener&&e.removeEventListener(f,l,false)}:function(e,f,l){e.detachEvent&&e.detachEvent("on"+f,l)};h.Event=function(e){if(!this.preventDefault)return new h.Event(e);if(e&&e.type){this.originalEvent=e;this.type=e.type}else this.type=e;this.timeStamp=h.now();this[h.expando]=true};h.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r;var e=
this.originalEvent;if(e)if(e.preventDefault)e.preventDefault();else e.returnValue=false},stopPropagation:function(){this.isPropagationStopped=r;var e=this.originalEvent;if(e){e.stopPropagation&&e.stopPropagation();e.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r;this.stopPropagation()},isDefaultPrevented:v,isPropagationStopped:v,isImmediatePropagationStopped:v};var wa=function(e){var f=e.relatedTarget;try{for(;f&&f!==this;)f=f.parentNode;if(f!==this){e.type=
e.data;h.event.handle.apply(this,arguments)}}catch(l){}},Fa=function(e){e.type=e.data;h.event.handle.apply(this,arguments)};h.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,f){h.event.special[e]={setup:function(l){h.event.add(this,f,l&&l.selector?Fa:wa,e)},teardown:function(l){h.event.remove(this,f,l&&l.selector?Fa:wa)}}});if(!h.support.submitBubbles)h.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){h.event.add(this,"click.specialSubmit",function(e){var f=
e.target,l=f.type;if((l==="submit"||l==="image")&&h(f).closest("form").length){e.liveFired=o;return b("submit",this,arguments)}});h.event.add(this,"keypress.specialSubmit",function(e){var f=e.target,l=f.type;if((l==="text"||l==="password")&&h(f).closest("form").length&&e.keyCode===13){e.liveFired=o;return b("submit",this,arguments)}})}else return false},teardown:function(){h.event.remove(this,".specialSubmit")}};if(!h.support.changeBubbles){var Ya,$a=function(e){var f=e.type,l=e.value;if(f==="radio"||
f==="checkbox")l=e.checked;else if(f==="select-multiple")l=e.selectedIndex>-1?h.map(e.options,function(s){return s.selected}).join("-"):"";else if(e.nodeName.toLowerCase()==="select")l=e.selectedIndex;return l},Ta=function(e,f){var l=e.target,s,x;if(!(!ga.test(l.nodeName)||l.readOnly)){s=h.data(l,"_change_data");x=$a(l);if(e.type!=="focusout"||l.type!=="radio")h.data(l,"_change_data",x);if(!(s===o||x===s))if(s!=null||x){e.type="change";e.liveFired=o;return h.event.trigger(e,f,l)}}};h.event.special.change=
{filters:{focusout:Ta,beforedeactivate:Ta,click:function(e){var f=e.target,l=f.type;if(l==="radio"||l==="checkbox"||f.nodeName.toLowerCase()==="select")return Ta.call(this,e)},keydown:function(e){var f=e.target,l=f.type;if(e.keyCode===13&&f.nodeName.toLowerCase()!=="textarea"||e.keyCode===32&&(l==="checkbox"||l==="radio")||l==="select-multiple")return Ta.call(this,e)},beforeactivate:function(e){e=e.target;h.data(e,"_change_data",$a(e))}},setup:function(){if(this.type==="file")return false;for(var e in Ya)h.event.add(this,
e+".specialChange",Ya[e]);return ga.test(this.nodeName)},teardown:function(){h.event.remove(this,".specialChange");return ga.test(this.nodeName)}};Ya=h.event.special.change.filters;Ya.focus=Ya.beforeactivate}F.addEventListener&&h.each({focus:"focusin",blur:"focusout"},function(e,f){function l(s){s=h.event.fix(s);s.type=f;return h.event.trigger(s,null,s.target)}h.event.special[f]={setup:function(){Na[f]++===0&&F.addEventListener(e,l,true)},teardown:function(){--Na[f]===0&&F.removeEventListener(e,l,
true)}}});h.each(["bind","one"],function(e,f){h.fn[f]=function(l,s,x){if(typeof l==="object"){for(var C in l)this[f](C,s,l[C],x);return this}if(h.isFunction(s)||s===false){x=s;s=o}var J=f==="one"?h.proxy(x,function(O){h(this).unbind(O,J);return x.apply(this,arguments)}):x;if(l==="unload"&&f!=="one")this.one(l,s,x);else{C=0;for(var I=this.length;C<I;C++)h.event.add(this[C],l,J,s)}return this}});h.fn.extend({unbind:function(e,f){if(typeof e==="object"&&!e.preventDefault)for(var l in e)this.unbind(l,
e[l]);else{l=0;for(var s=this.length;l<s;l++)h.event.remove(this[l],e,f)}return this},delegate:function(e,f,l,s){return this.live(f,l,s,e)},undelegate:function(e,f,l){return arguments.length===0?this.unbind("live"):this.die(f,null,l,e)},trigger:function(e,f){return this.each(function(){h.event.trigger(e,f,this)})},triggerHandler:function(e,f){if(this[0]){var l=h.Event(e);l.preventDefault();l.stopPropagation();h.event.trigger(l,f,this[0]);return l.result}},toggle:function(e){for(var f=arguments,l=
1;l<f.length;)h.proxy(e,f[l++]);return this.click(h.proxy(e,function(s){var x=(h.data(this,"lastToggle"+e.guid)||0)%l;h.data(this,"lastToggle"+e.guid,x+1);s.preventDefault();return f[x].apply(this,arguments)||false}))},hover:function(e,f){return this.mouseenter(e).mouseleave(f||e)}});var Ba={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};h.each(["live","die"],function(e,f){h.fn[f]=function(l,s,x,C){var J,I=0,O,la,X=C||this.selector;C=C?this:h(this.context);if(typeof l===
"object"&&!l.preventDefault){for(J in l)C[f](J,s,l[J],X);return this}if(h.isFunction(s)){x=s;s=o}for(l=(l||"").split(" ");(J=l[I++])!=null;){O=Y.exec(J);la="";if(O){la=O[0];J=J.replace(Y,"")}if(J==="hover")l.push("mouseenter"+la,"mouseleave"+la);else{O=J;if(J==="focus"||J==="blur"){l.push(Ba[J]+la);J+=la}else J=(Ba[J]||J)+la;if(f==="live"){la=0;for(var qa=C.length;la<qa;la++)h.event.add(C[la],"live."+p(J,X),{data:s,selector:X,handler:x,origType:J,origHandler:x,preType:O})}else C.unbind("live."+p(J,
X),x)}}return this}});h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(e,f){h.fn[f]=function(l,s){if(s==null){s=l;l=null}return arguments.length>0?this.bind(f,l,s):this.trigger(f)};if(h.attrFn)h.attrFn[f]=true});d.attachEvent&&!d.addEventListener&&h(d).bind("unload",function(){for(var e in h.cache)if(h.cache[e].handle)try{h.event.remove(h.cache[e].handle.elem)}catch(f){}});
(function(){function e(y,G,N,M,S,U){S=0;for(var ja=M.length;S<ja;S++){var na=M[S];if(na){var va=false;for(na=na[y];na;){if(na.sizcache===N){va=M[na.sizset];break}if(na.nodeType===1&&!U){na.sizcache=N;na.sizset=S}if(na.nodeName.toLowerCase()===G){va=na;break}na=na[y]}M[S]=va}}}function f(y,G,N,M,S,U){S=0;for(var ja=M.length;S<ja;S++){var na=M[S];if(na){var va=false;for(na=na[y];na;){if(na.sizcache===N){va=M[na.sizset];break}if(na.nodeType===1){if(!U){na.sizcache=N;na.sizset=S}if(typeof G!=="string"){if(na===
G){va=true;break}}else if(I.filter(G,[na]).length>0){va=na;break}}na=na[y]}M[S]=va}}}var l=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,s=0,x=Object.prototype.toString,C=false,J=true;[0,0].sort(function(){J=false;return 0});var I=function(y,G,N,M){N=N||[];var S=G=G||F;if(G.nodeType!==1&&G.nodeType!==9)return[];if(!y||typeof y!=="string")return N;var U,ja,na,va,Ra,Xa=true,Qa=I.isXML(G),ya=[],La=y;do{l.exec("");
if(U=l.exec(La)){La=U[3];ya.push(U[1]);if(U[2]){va=U[3];break}}}while(U);if(ya.length>1&&la.exec(y))if(ya.length===2&&O.relative[ya[0]])ja=Wa(ya[0]+ya[1],G);else for(ja=O.relative[ya[0]]?[G]:I(ya.shift(),G);ya.length;){y=ya.shift();if(O.relative[y])y+=ya.shift();ja=Wa(y,ja)}else{if(!M&&ya.length>1&&G.nodeType===9&&!Qa&&O.match.ID.test(ya[0])&&!O.match.ID.test(ya[ya.length-1])){U=I.find(ya.shift(),G,Qa);G=U.expr?I.filter(U.expr,U.set)[0]:U.set[0]}if(G){U=M?{expr:ya.pop(),set:xa(M)}:I.find(ya.pop(),
ya.length===1&&(ya[0]==="~"||ya[0]==="+")&&G.parentNode?G.parentNode:G,Qa);ja=U.expr?I.filter(U.expr,U.set):U.set;if(ya.length>0)na=xa(ja);else Xa=false;for(;ya.length;){U=Ra=ya.pop();if(O.relative[Ra])U=ya.pop();else Ra="";if(U==null)U=G;O.relative[Ra](na,U,Qa)}}else na=[]}na||(na=ja);na||I.error(Ra||y);if(x.call(na)==="[object Array]")if(Xa)if(G&&G.nodeType===1)for(y=0;na[y]!=null;y++){if(na[y]&&(na[y]===true||na[y].nodeType===1&&I.contains(G,na[y])))N.push(ja[y])}else for(y=0;na[y]!=null;y++)na[y]&&
na[y].nodeType===1&&N.push(ja[y]);else N.push.apply(N,na);else xa(na,N);if(va){I(va,S,N,M);I.uniqueSort(N)}return N};I.uniqueSort=function(y){if(ma){C=J;y.sort(ma);if(C)for(var G=1;G<y.length;G++)y[G]===y[G-1]&&y.splice(G--,1)}return y};I.matches=function(y,G){return I(y,null,null,G)};I.matchesSelector=function(y,G){return I(G,null,null,[y]).length>0};I.find=function(y,G,N){var M;if(!y)return[];for(var S=0,U=O.order.length;S<U;S++){var ja,na=O.order[S];if(ja=O.leftMatch[na].exec(y)){var va=ja[1];
ja.splice(1,1);if(va.substr(va.length-1)!=="\\"){ja[1]=(ja[1]||"").replace(/\\/g,"");M=O.find[na](ja,G,N);if(M!=null){y=y.replace(O.match[na],"");break}}}}M||(M=G.getElementsByTagName("*"));return{set:M,expr:y}};I.filter=function(y,G,N,M){for(var S,U,ja=y,na=[],va=G,Ra=G&&G[0]&&I.isXML(G[0]);y&&G.length;){for(var Xa in O.filter)if((S=O.leftMatch[Xa].exec(y))!=null&&S[2]){var Qa,ya,La=O.filter[Xa];ya=S[1];U=false;S.splice(1,1);if(ya.substr(ya.length-1)!=="\\"){if(va===na)na=[];if(O.preFilter[Xa])if(S=
O.preFilter[Xa](S,va,N,na,M,Ra)){if(S===true)continue}else U=Qa=true;if(S)for(var H=0;(ya=va[H])!=null;H++)if(ya){Qa=La(ya,S,H,va);var a=M^!!Qa;if(N&&Qa!=null)if(a)U=true;else va[H]=false;else if(a){na.push(ya);U=true}}if(Qa!==o){N||(va=na);y=y.replace(O.match[Xa],"");if(!U)return[];break}}}if(y===ja)if(U==null)I.error(y);else break;ja=y}return va};I.error=function(y){throw"Syntax error, unrecognized expression: "+y;};var O=I.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(y){return y.getAttribute("href")}},
relative:{"+":function(y,G){var N=typeof G==="string",M=N&&!/\W/.test(G);N=N&&!M;if(M)G=G.toLowerCase();M=0;for(var S=y.length,U;M<S;M++)if(U=y[M]){for(;(U=U.previousSibling)&&U.nodeType!==1;);y[M]=N||U&&U.nodeName.toLowerCase()===G?U||false:U===G}N&&I.filter(G,y,true)},">":function(y,G){var N,M=typeof G==="string",S=0,U=y.length;if(M&&!/\W/.test(G))for(G=G.toLowerCase();S<U;S++){if(N=y[S]){N=N.parentNode;y[S]=N.nodeName.toLowerCase()===G?N:false}}else{for(;S<U;S++)if(N=y[S])y[S]=M?N.parentNode:N.parentNode===
G;M&&I.filter(G,y,true)}},"":function(y,G,N){var M,S=s++,U=f;if(typeof G==="string"&&!/\W/.test(G)){M=G=G.toLowerCase();U=e}U("parentNode",G,S,y,M,N)},"~":function(y,G,N){var M,S=s++,U=f;if(typeof G==="string"&&!/\W/.test(G)){M=G=G.toLowerCase();U=e}U("previousSibling",G,S,y,M,N)}},find:{ID:function(y,G,N){if(typeof G.getElementById!=="undefined"&&!N)return(y=G.getElementById(y[1]))&&y.parentNode?[y]:[]},NAME:function(y,G){if(typeof G.getElementsByName!=="undefined"){for(var N=[],M=G.getElementsByName(y[1]),
S=0,U=M.length;S<U;S++)M[S].getAttribute("name")===y[1]&&N.push(M[S]);return N.length===0?null:N}},TAG:function(y,G){return G.getElementsByTagName(y[1])}},preFilter:{CLASS:function(y,G,N,M,S,U){y=" "+y[1].replace(/\\/g,"")+" ";if(U)return y;U=0;for(var ja;(ja=G[U])!=null;U++)if(ja)if(S^(ja.className&&(" "+ja.className+" ").replace(/[\t\n]/g," ").indexOf(y)>=0))N||M.push(ja);else if(N)G[U]=false;return false},ID:function(y){return y[1].replace(/\\/g,"")},TAG:function(y){return y[1].toLowerCase()},
CHILD:function(y){if(y[1]==="nth"){var G=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(y[2]==="even"&&"2n"||y[2]==="odd"&&"2n+1"||!/\D/.test(y[2])&&"0n+"+y[2]||y[2]);y[2]=G[1]+(G[2]||1)-0;y[3]=G[3]-0}y[0]=s++;return y},ATTR:function(y,G,N,M,S,U){G=y[1].replace(/\\/g,"");if(!U&&O.attrMap[G])y[1]=O.attrMap[G];if(y[2]==="~=")y[4]=" "+y[4]+" ";return y},PSEUDO:function(y,G,N,M,S){if(y[1]==="not")if((l.exec(y[3])||"").length>1||/^\w/.test(y[3]))y[3]=I(y[3],null,null,G);else{y=I.filter(y[3],G,N,true^S);N||M.push.apply(M,
y);return false}else if(O.match.POS.test(y[0])||O.match.CHILD.test(y[0]))return true;return y},POS:function(y){y.unshift(true);return y}},filters:{enabled:function(y){return y.disabled===false&&y.type!=="hidden"},disabled:function(y){return y.disabled===true},checked:function(y){return y.checked===true},selected:function(y){return y.selected===true},parent:function(y){return!!y.firstChild},empty:function(y){return!y.firstChild},has:function(y,G,N){return!!I(N[3],y).length},header:function(y){return/h\d/i.test(y.nodeName)},
text:function(y){return"text"===y.type},radio:function(y){return"radio"===y.type},checkbox:function(y){return"checkbox"===y.type},file:function(y){return"file"===y.type},password:function(y){return"password"===y.type},submit:function(y){return"submit"===y.type},image:function(y){return"image"===y.type},reset:function(y){return"reset"===y.type},button:function(y){return"button"===y.type||y.nodeName.toLowerCase()==="button"},input:function(y){return/input|select|textarea|button/i.test(y.nodeName)}},
setFilters:{first:function(y,G){return G===0},last:function(y,G,N,M){return G===M.length-1},even:function(y,G){return G%2===0},odd:function(y,G){return G%2===1},lt:function(y,G,N){return G<N[3]-0},gt:function(y,G,N){return G>N[3]-0},nth:function(y,G,N){return N[3]-0===G},eq:function(y,G,N){return N[3]-0===G}},filter:{PSEUDO:function(y,G,N,M){var S=G[1],U=O.filters[S];if(U)return U(y,N,G,M);else if(S==="contains")return(y.textContent||y.innerText||I.getText([y])||"").indexOf(G[3])>=0;else if(S==="not"){G=
G[3];N=0;for(M=G.length;N<M;N++)if(G[N]===y)return false;return true}else I.error("Syntax error, unrecognized expression: "+S)},CHILD:function(y,G){var N=G[1],M=y;switch(N){case "only":case "first":for(;M=M.previousSibling;)if(M.nodeType===1)return false;if(N==="first")return true;M=y;case "last":for(;M=M.nextSibling;)if(M.nodeType===1)return false;return true;case "nth":N=G[2];var S=G[3];if(N===1&&S===0)return true;var U=G[0],ja=y.parentNode;if(ja&&(ja.sizcache!==U||!y.nodeIndex)){var na=0;for(M=
ja.firstChild;M;M=M.nextSibling)if(M.nodeType===1)M.nodeIndex=++na;ja.sizcache=U}M=y.nodeIndex-S;return N===0?M===0:M%N===0&&M/N>=0}},ID:function(y,G){return y.nodeType===1&&y.getAttribute("id")===G},TAG:function(y,G){return G==="*"&&y.nodeType===1||y.nodeName.toLowerCase()===G},CLASS:function(y,G){return(" "+(y.className||y.getAttribute("class"))+" ").indexOf(G)>-1},ATTR:function(y,G){var N=G[1];N=O.attrHandle[N]?O.attrHandle[N](y):y[N]!=null?y[N]:y.getAttribute(N);var M=N+"",S=G[2],U=G[4];return N==
null?S==="!=":S==="="?M===U:S==="*="?M.indexOf(U)>=0:S==="~="?(" "+M+" ").indexOf(U)>=0:!U?M&&N!==false:S==="!="?M!==U:S==="^="?M.indexOf(U)===0:S==="$="?M.substr(M.length-U.length)===U:S==="|="?M===U||M.substr(0,U.length+1)===U+"-":false},POS:function(y,G,N,M){var S=O.setFilters[G[2]];if(S)return S(y,N,G,M)}}},la=O.match.POS,X=function(y,G){return"\\"+(G-0+1)};for(var qa in O.match){O.match[qa]=RegExp(O.match[qa].source+/(?![^\[]*\])(?![^\(]*\))/.source);O.leftMatch[qa]=RegExp(/(^(?:.|\r|\n)*?)/.source+
O.match[qa].source.replace(/\\(\d+)/g,X))}var xa=function(y,G){y=Array.prototype.slice.call(y,0);if(G){G.push.apply(G,y);return G}return y};try{Array.prototype.slice.call(F.documentElement.childNodes,0)}catch(Ka){xa=function(y,G){var N=0,M=G||[];if(x.call(y)==="[object Array]")Array.prototype.push.apply(M,y);else if(typeof y.length==="number")for(var S=y.length;N<S;N++)M.push(y[N]);else for(;y[N];N++)M.push(y[N]);return M}}var ma,Ha;if(F.documentElement.compareDocumentPosition)ma=function(y,G){if(y===
G){C=true;return 0}if(!y.compareDocumentPosition||!G.compareDocumentPosition)return y.compareDocumentPosition?-1:1;return y.compareDocumentPosition(G)&4?-1:1};else{ma=function(y,G){var N,M,S=[],U=[];N=y.parentNode;M=G.parentNode;var ja=N;if(y===G){C=true;return 0}else if(N===M)return Ha(y,G);else if(N){if(!M)return 1}else return-1;for(;ja;){S.unshift(ja);ja=ja.parentNode}for(ja=M;ja;){U.unshift(ja);ja=ja.parentNode}N=S.length;M=U.length;for(ja=0;ja<N&&ja<M;ja++)if(S[ja]!==U[ja])return Ha(S[ja],U[ja]);
return ja===N?Ha(y,U[ja],-1):Ha(S[ja],G,1)};Ha=function(y,G,N){if(y===G)return N;for(y=y.nextSibling;y;){if(y===G)return-1;y=y.nextSibling}return 1}}I.getText=function(y){for(var G="",N,M=0;y[M];M++){N=y[M];if(N.nodeType===3||N.nodeType===4)G+=N.nodeValue;else if(N.nodeType!==8)G+=I.getText(N.childNodes)}return G};(function(){var y=F.createElement("div"),G="script"+(new Date).getTime(),N=F.documentElement;y.innerHTML="<a name='"+G+"'/>";N.insertBefore(y,N.firstChild);if(F.getElementById(G)){O.find.ID=
function(M,S,U){if(typeof S.getElementById!=="undefined"&&!U)return(S=S.getElementById(M[1]))?S.id===M[1]||typeof S.getAttributeNode!=="undefined"&&S.getAttributeNode("id").nodeValue===M[1]?[S]:o:[]};O.filter.ID=function(M,S){var U=typeof M.getAttributeNode!=="undefined"&&M.getAttributeNode("id");return M.nodeType===1&&U&&U.nodeValue===S}}N.removeChild(y);N=y=null})();(function(){var y=F.createElement("div");y.appendChild(F.createComment(""));if(y.getElementsByTagName("*").length>0)O.find.TAG=function(G,
N){var M=N.getElementsByTagName(G[1]);if(G[1]==="*"){for(var S=[],U=0;M[U];U++)M[U].nodeType===1&&S.push(M[U]);M=S}return M};y.innerHTML="<a href='#'></a>";if(y.firstChild&&typeof y.firstChild.getAttribute!=="undefined"&&y.firstChild.getAttribute("href")!=="#")O.attrHandle.href=function(G){return G.getAttribute("href",2)};y=null})();F.querySelectorAll&&function(){var y=I,G=F.createElement("div");G.innerHTML="<p class='TEST'></p>";if(!(G.querySelectorAll&&G.querySelectorAll(".TEST").length===0)){I=
function(M,S,U,ja){S=S||F;M=M.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!ja&&!I.isXML(S))if(S.nodeType===9)try{return xa(S.querySelectorAll(M),U)}catch(na){}else if(S.nodeType===1&&S.nodeName.toLowerCase()!=="object"){var va=S.getAttribute("id"),Ra=va||"__sizzle__";va||S.setAttribute("id",Ra);try{return xa(S.querySelectorAll("#"+Ra+" "+M),U)}catch(Xa){}finally{va||S.removeAttribute("id")}}return y(M,S,U,ja)};for(var N in y)I[N]=y[N];G=null}}();(function(){var y=F.documentElement,G=y.matchesSelector||
y.mozMatchesSelector||y.webkitMatchesSelector||y.msMatchesSelector,N=false;try{G.call(F.documentElement,"[test!='']:sizzle")}catch(M){N=true}if(G)I.matchesSelector=function(S,U){U=U.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!I.isXML(S))try{if(N||!O.match.PSEUDO.test(U)&&!/!=/.test(U))return G.call(S,U)}catch(ja){}return I(U,null,null,[S]).length>0}})();(function(){var y=F.createElement("div");y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!y.getElementsByClassName||y.getElementsByClassName("e").length===
0)){y.lastChild.className="e";if(y.getElementsByClassName("e").length!==1){O.order.splice(1,0,"CLASS");O.find.CLASS=function(G,N,M){if(typeof N.getElementsByClassName!=="undefined"&&!M)return N.getElementsByClassName(G[1])};y=null}}})();I.contains=F.documentElement.contains?function(y,G){return y!==G&&(y.contains?y.contains(G):true)}:F.documentElement.compareDocumentPosition?function(y,G){return!!(y.compareDocumentPosition(G)&16)}:function(){return false};I.isXML=function(y){return(y=(y?y.ownerDocument||
y:0).documentElement)?y.nodeName!=="HTML":false};var Wa=function(y,G){for(var N,M=[],S="",U=G.nodeType?[G]:G;N=O.match.PSEUDO.exec(y);){S+=N[0];y=y.replace(O.match.PSEUDO,"")}y=O.relative[y]?y+"*":y;N=0;for(var ja=U.length;N<ja;N++)I(y,U[N],M);return I.filter(S,M)};h.find=I;h.expr=I.selectors;h.expr[":"]=h.expr.filters;h.unique=I.uniqueSort;h.text=I.getText;h.isXMLDoc=I.isXML;h.contains=I.contains})();var ra=/Until$/,Sa=/^(?:parents|prevUntil|prevAll)/,Za=/,/,ab=/^.[^:#\[\.,]*$/,cb=Array.prototype.slice,
Nb=h.expr.match.POS;h.fn.extend({find:function(e){for(var f=this.pushStack("","find",e),l=0,s=0,x=this.length;s<x;s++){l=f.length;h.find(e,this[s],f);if(s>0)for(var C=l;C<f.length;C++)for(var J=0;J<l;J++)if(f[J]===f[C]){f.splice(C--,1);break}}return f},has:function(e){var f=h(e);return this.filter(function(){for(var l=0,s=f.length;l<s;l++)if(h.contains(this,f[l]))return true})},not:function(e){return this.pushStack(z(this,e,false),"not",e)},filter:function(e){return this.pushStack(z(this,e,true),
"filter",e)},is:function(e){return!!e&&h.filter(e,this).length>0},closest:function(e,f){var l=[],s,x,C=this[0];if(h.isArray(e)){var J,I={},O=1;if(C&&e.length){s=0;for(x=e.length;s<x;s++){J=e[s];I[J]||(I[J]=h.expr.match.POS.test(J)?h(J,f||this.context):J)}for(;C&&C.ownerDocument&&C!==f;){for(J in I){s=I[J];if(s.jquery?s.index(C)>-1:h(C).is(s))l.push({selector:J,elem:C,level:O})}C=C.parentNode;O++}}return l}J=Nb.test(e)?h(e,f||this.context):null;s=0;for(x=this.length;s<x;s++)for(C=this[s];C;)if(J?J.index(C)>
-1:h.find.matchesSelector(C,e)){l.push(C);break}else{C=C.parentNode;if(!C||!C.ownerDocument||C===f)break}l=l.length>1?h.unique(l):l;return this.pushStack(l,"closest",e)},index:function(e){if(!e||typeof e==="string")return h.inArray(this[0],e?h(e):this.parent().children());return h.inArray(e.jquery?e[0]:e,this)},add:function(e,f){var l=typeof e==="string"?h(e,f||this.context):h.makeArray(e),s=h.merge(this.get(),l);return this.pushStack(!l[0]||!l[0].parentNode||l[0].parentNode.nodeType===11||!s[0]||
!s[0].parentNode||s[0].parentNode.nodeType===11?s:h.unique(s))},andSelf:function(){return this.add(this.prevObject)}});h.each({parent:function(e){return(e=e.parentNode)&&e.nodeType!==11?e:null},parents:function(e){return h.dir(e,"parentNode")},parentsUntil:function(e,f,l){return h.dir(e,"parentNode",l)},next:function(e){return h.nth(e,2,"nextSibling")},prev:function(e){return h.nth(e,2,"previousSibling")},nextAll:function(e){return h.dir(e,"nextSibling")},prevAll:function(e){return h.dir(e,"previousSibling")},
nextUntil:function(e,f,l){return h.dir(e,"nextSibling",l)},prevUntil:function(e,f,l){return h.dir(e,"previousSibling",l)},siblings:function(e){return h.sibling(e.parentNode.firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return h.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:h.makeArray(e.childNodes)}},function(e,f){h.fn[e]=function(l,s){var x=h.map(this,f,l);ra.test(e)||(s=l);if(s&&typeof s==="string")x=h.filter(s,x);x=this.length>1?h.unique(x):
x;if((this.length>1||Za.test(s))&&Sa.test(e))x=x.reverse();return this.pushStack(x,e,cb.call(arguments).join(","))}});h.extend({filter:function(e,f,l){if(l)e=":not("+e+")";return f.length===1?h.find.matchesSelector(f[0],e)?[f[0]]:[]:h.find.matches(e,f)},dir:function(e,f,l){var s=[];for(e=e[f];e&&e.nodeType!==9&&(l===o||e.nodeType!==1||!h(e).is(l));){e.nodeType===1&&s.push(e);e=e[f]}return s},nth:function(e,f,l){f=f||1;for(var s=0;e;e=e[l])if(e.nodeType===1&&++s===f)break;return e},sibling:function(e,
f){for(var l=[];e;e=e.nextSibling)e.nodeType===1&&e!==f&&l.push(e);return l}});var mb=/ jQuery\d+="(?:\d+|null)"/g,nb=/^\s+/,xb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,yb=/<([\w:]+)/,Ob=/<tbody/i,zb=/<|&#?\w+;/,Ab=/<(?:script|object|embed|option|style)/i,Ua=/checked\s*(?:[^=]|=\s*.checked.)/i,ob=/\=([^="'>\s]+\/)>/g,Va={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>",
"</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};Va.optgroup=Va.option;Va.tbody=Va.tfoot=Va.colgroup=Va.caption=Va.thead;Va.th=Va.td;if(!h.support.htmlSerialize)Va._default=[1,"div<div>","</div>"];h.fn.extend({text:function(e){if(h.isFunction(e))return this.each(function(f){var l=h(this);l.text(e.call(this,f,l.text()))});if(typeof e!=="object"&&e!==o)return this.empty().append((this[0]&&
this[0].ownerDocument||F).createTextNode(e));return h.text(this)},wrapAll:function(e){if(h.isFunction(e))return this.each(function(l){h(this).wrapAll(e.call(this,l))});if(this[0]){var f=h(e,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&f.insertBefore(this[0]);f.map(function(){for(var l=this;l.firstChild&&l.firstChild.nodeType===1;)l=l.firstChild;return l}).append(this)}return this},wrapInner:function(e){if(h.isFunction(e))return this.each(function(f){h(this).wrapInner(e.call(this,f))});
return this.each(function(){var f=h(this),l=f.contents();l.length?l.wrapAll(e):f.append(e)})},wrap:function(e){return this.each(function(){h(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,true,function(e){this.nodeType===1&&this.insertBefore(e,
this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(f){this.parentNode.insertBefore(f,this)});else if(arguments.length){var e=h(arguments[0]);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(f){this.parentNode.insertBefore(f,this.nextSibling)});else if(arguments.length){var e=this.pushStack(this,"after",arguments);
e.push.apply(e,h(arguments[0]).toArray());return e}},remove:function(e,f){for(var l=0,s;(s=this[l])!=null;l++)if(!e||h.filter(e,[s]).length){if(!f&&s.nodeType===1){h.cleanData(s.getElementsByTagName("*"));h.cleanData([s])}s.parentNode&&s.parentNode.removeChild(s)}return this},empty:function(){for(var e=0,f;(f=this[e])!=null;e++)for(f.nodeType===1&&h.cleanData(f.getElementsByTagName("*"));f.firstChild;)f.removeChild(f.firstChild);return this},clone:function(e){var f=this.map(function(){if(!h.support.noCloneEvent&&
!h.isXMLDoc(this)){var l=this.outerHTML,s=this.ownerDocument;if(!l){l=s.createElement("div");l.appendChild(this.cloneNode(true));l=l.innerHTML}return h.clean([l.replace(mb,"").replace(ob,'="$1">').replace(nb,"")],s)[0]}else return this.cloneNode(true)});if(e===true){w(this,f);w(this.find("*"),f.find("*"))}return f},html:function(e){if(e===o)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(mb,""):null;else if(typeof e==="string"&&!Ab.test(e)&&(h.support.leadingWhitespace||!nb.test(e))&&
!Va[(yb.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(xb,"<$1></$2>");try{for(var f=0,l=this.length;f<l;f++)if(this[f].nodeType===1){h.cleanData(this[f].getElementsByTagName("*"));this[f].innerHTML=e}}catch(s){this.empty().append(e)}}else h.isFunction(e)?this.each(function(x){var C=h(this);C.html(e.call(this,x,C.html()))}):this.empty().append(e);return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(h.isFunction(e))return this.each(function(f){var l=h(this),s=l.html();l.replaceWith(e.call(this,
f,s))});if(typeof e!=="string")e=h(e).detach();return this.each(function(){var f=this.nextSibling,l=this.parentNode;h(this).remove();f?h(f).before(e):h(l).append(e)})}else return this.pushStack(h(h.isFunction(e)?e():e),"replaceWith",e)},detach:function(e){return this.remove(e,true)},domManip:function(e,f,l){var s,x,C,J=e[0],I=[];if(!h.support.checkClone&&arguments.length===3&&typeof J==="string"&&Ua.test(J))return this.each(function(){h(this).domManip(e,f,l,true)});if(h.isFunction(J))return this.each(function(la){var X=
h(this);e[0]=J.call(this,la,f?X.html():o);X.domManip(e,f,l)});if(this[0]){s=J&&J.parentNode;s=h.support.parentNode&&s&&s.nodeType===11&&s.childNodes.length===this.length?{fragment:s}:h.buildFragment(e,this,I);C=s.fragment;if(x=C.childNodes.length===1?C=C.firstChild:C.firstChild){f=f&&h.nodeName(x,"tr");x=0;for(var O=this.length;x<O;x++)l.call(f?h.nodeName(this[x],"table")?this[x].getElementsByTagName("tbody")[0]||this[x].appendChild(this[x].ownerDocument.createElement("tbody")):this[x]:this[x],x>
0||s.cacheable||this.length>1?C.cloneNode(true):C)}I.length&&h.each(I,E)}return this}});h.buildFragment=function(e,f,l){var s,x,C;f=f&&f[0]?f[0].ownerDocument||f[0]:F;if(e.length===1&&typeof e[0]==="string"&&e[0].length<512&&f===F&&!Ab.test(e[0])&&(h.support.checkClone||!Ua.test(e[0]))){x=true;if(C=h.fragments[e[0]])if(C!==1)s=C}if(!s){s=f.createDocumentFragment();h.clean(e,f,s,l)}if(x)h.fragments[e[0]]=C?s:1;return{fragment:s,cacheable:x}};h.fragments={};h.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,f){h.fn[e]=function(l){var s=[];l=h(l);var x=this.length===1&&this[0].parentNode;if(x&&x.nodeType===11&&x.childNodes.length===1&&l.length===1){l[f](this[0]);return this}else{x=0;for(var C=l.length;x<C;x++){var J=(x>0?this.clone(true):this).get();h(l[x])[f](J);s=s.concat(J)}return this.pushStack(s,e,l.selector)}}});h.extend({clean:function(e,f,l,s){f=f||F;if(typeof f.createElement==="undefined")f=f.ownerDocument||f[0]&&
f[0].ownerDocument||F;for(var x=[],C=0,J;(J=e[C])!=null;C++){if(typeof J==="number")J+="";if(J){if(typeof J==="string"&&!zb.test(J))J=f.createTextNode(J);else if(typeof J==="string"){J=J.replace(xb,"<$1></$2>");var I=(yb.exec(J)||["",""])[1].toLowerCase(),O=Va[I]||Va._default,la=O[0],X=f.createElement("div");for(X.innerHTML=O[1]+J+O[2];la--;)X=X.lastChild;if(!h.support.tbody){la=Ob.test(J);I=I==="table"&&!la?X.firstChild&&X.firstChild.childNodes:O[1]==="<table>"&&!la?X.childNodes:[];for(O=I.length-
1;O>=0;--O)h.nodeName(I[O],"tbody")&&!I[O].childNodes.length&&I[O].parentNode.removeChild(I[O])}!h.support.leadingWhitespace&&nb.test(J)&&X.insertBefore(f.createTextNode(nb.exec(J)[0]),X.firstChild);J=X.childNodes}if(J.nodeType)x.push(J);else x=h.merge(x,J)}}if(l)for(C=0;x[C];C++)if(s&&h.nodeName(x[C],"script")&&(!x[C].type||x[C].type.toLowerCase()==="text/javascript"))s.push(x[C].parentNode?x[C].parentNode.removeChild(x[C]):x[C]);else{x[C].nodeType===1&&x.splice.apply(x,[C+1,0].concat(h.makeArray(x[C].getElementsByTagName("script"))));
l.appendChild(x[C])}return x},cleanData:function(e){for(var f,l,s=h.cache,x=h.event.special,C=h.support.deleteExpando,J=0,I;(I=e[J])!=null;J++)if(!(I.nodeName&&h.noData[I.nodeName.toLowerCase()]))if(l=I[h.expando]){if((f=s[l])&&f.events)for(var O in f.events)x[O]?h.event.remove(I,O):h.removeEvent(I,O,f.handle);if(C)delete I[h.expando];else I.removeAttribute&&I.removeAttribute(h.expando);delete s[l]}}});var Bb=/alpha\([^)]*\)/i,Pb=/opacity=([^)]*)/,qb=/-([a-z])/ig,pb=/([A-Z])/g,rb=/^-?\d+(?:px)?$/i,
hb=/^-?\d/,Cb={position:"absolute",visibility:"hidden",display:"block"},Db=["Left","Right"],sb=["Top","Bottom"],gb,fb,jb,Eb=function(e,f){return f.toUpperCase()};h.fn.css=function(e,f){if(arguments.length===2&&f===o)return this;return h.access(this,e,f,true,function(l,s,x){return x!==o?h.style(l,s,x):h.css(l,s)})};h.extend({cssHooks:{opacity:{get:function(e,f){if(f){var l=gb(e,"opacity","opacity");return l===""?"1":l}else return e.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
zoom:true,lineHeight:true},cssProps:{"float":h.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,f,l,s){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var x,C=h.camelCase(f),J=e.style,I=h.cssHooks[C];f=h.cssProps[C]||C;if(l!==o){if(!(typeof l==="number"&&isNaN(l)||l==null)){if(typeof l==="number"&&!h.cssNumber[C])l+="px";if(!I||!("set"in I)||(l=I.set(e,l))!==o)try{J[f]=l}catch(O){}}}else{if(I&&"get"in I&&(x=I.get(e,false,s))!==o)return x;return J[f]}}},css:function(e,f,l){var s,x=h.camelCase(f),
C=h.cssHooks[x];f=h.cssProps[x]||x;if(C&&"get"in C&&(s=C.get(e,true,l))!==o)return s;else if(gb)return gb(e,f,x)},swap:function(e,f,l){var s={};for(var x in f){s[x]=e.style[x];e.style[x]=f[x]}l.call(e);for(x in f)e.style[x]=s[x]},camelCase:function(e){return e.replace(qb,Eb)}});h.curCSS=h.css;h.each(["height","width"],function(e,f){h.cssHooks[f]={get:function(l,s,x){var C;if(s){if(l.offsetWidth!==0)C=K(l,f,x);else h.swap(l,Cb,function(){C=K(l,f,x)});if(C<=0){C=gb(l,f,f);if(C==="0px"&&jb)C=jb(l,f,
f);if(C!=null)return C===""||C==="auto"?"0px":C}if(C<0||C==null){C=l.style[f];return C===""||C==="auto"?"0px":C}return typeof C==="string"?C:C+"px"}},set:function(l,s){if(rb.test(s)){s=parseFloat(s);if(s>=0)return s+"px"}else return s}}});if(!h.support.opacity)h.cssHooks.opacity={get:function(e,f){return Pb.test((f&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":f?"1":""},set:function(e,f){var l=e.style;l.zoom=1;var s=h.isNaN(f)?"":"alpha(opacity="+f*100+")",
x=l.filter||"";l.filter=Bb.test(x)?x.replace(Bb,s):l.filter+" "+s}};if(F.defaultView&&F.defaultView.getComputedStyle)fb=function(e,f,l){var s;l=l.replace(pb,"-$1").toLowerCase();if(!(f=e.ownerDocument.defaultView))return o;if(f=f.getComputedStyle(e,null)){s=f.getPropertyValue(l);if(s===""&&!h.contains(e.ownerDocument.documentElement,e))s=h.style(e,l)}return s};if(F.documentElement.currentStyle)jb=function(e,f){var l,s,x=e.currentStyle&&e.currentStyle[f],C=e.style;if(!rb.test(x)&&hb.test(x)){l=C.left;
s=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;C.left=f==="fontSize"?"1em":x||0;x=C.pixelLeft+"px";C.left=l;e.runtimeStyle.left=s}return x===""?"auto":x};gb=fb||jb;if(h.expr&&h.expr.filters){h.expr.filters.hidden=function(e){var f=e.offsetHeight;return e.offsetWidth===0&&f===0||!h.support.reliableHiddenOffsets&&(e.style.display||h.css(e,"display"))==="none"};h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)}}var tb=h.now(),eb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
Fb=/^(?:select|textarea)/i,Gb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Hb=/^(?:GET|HEAD)$/,Ib=/\[\]$/,db=/\=\?(&|$)/,pa=/\?/,Jb=/([?&])_=[^&]*/,kb=/^(\w+:)?\/\/([^\/?#]+)/,ub=/%20/g,bb=/#.*$/,Kb=h.fn.load;h.fn.extend({load:function(e,f,l){if(typeof e!=="string"&&Kb)return Kb.apply(this,arguments);else if(!this.length)return this;var s=e.indexOf(" ");if(s>=0){var x=e.slice(s,e.length);e=e.slice(0,s)}s="GET";if(f)if(h.isFunction(f)){l=f;f=null}else if(typeof f===
"object"){f=h.param(f,h.ajaxSettings.traditional);s="POST"}var C=this;h.ajax({url:e,type:s,dataType:"html",data:f,complete:function(J,I){if(I==="success"||I==="notmodified")C.html(x?h("<div>").append(J.responseText.replace(eb,"")).find(x):J.responseText);l&&C.each(l,[J.responseText,I,J])}});return this},serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?h.makeArray(this.elements):this}).filter(function(){return this.name&&
!this.disabled&&(this.checked||Fb.test(this.nodeName)||Gb.test(this.type))}).map(function(e,f){var l=h(this).val();return l==null?null:h.isArray(l)?h.map(l,function(s){return{name:f.name,value:s}}):{name:f.name,value:l}}).get()}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,f){h.fn[f]=function(l){return this.bind(f,l)}});h.extend({get:function(e,f,l,s){if(h.isFunction(f)){s=s||l;l=f;f=null}return h.ajax({type:"GET",url:e,data:f,success:l,dataType:s})},
getScript:function(e,f){return h.get(e,null,f,"script")},getJSON:function(e,f,l){return h.get(e,f,l,"json")},post:function(e,f,l,s){if(h.isFunction(f)){s=s||l;l=f;f={}}return h.ajax({type:"POST",url:e,data:f,success:l,dataType:s})},ajaxSetup:function(e){h.extend(h.ajaxSettings,e)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new d.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(e){var f=h.extend(true,{},h.ajaxSettings,e),l,s,x,C=f.type.toUpperCase(),J=Hb.test(C);f.url=f.url.replace(bb,"");f.context=e&&e.context!=null?e.context:f;if(f.data&&f.processData&&typeof f.data!=="string")f.data=h.param(f.data,f.traditional);if(f.dataType==="jsonp"){if(C==="GET")db.test(f.url)||(f.url+=(pa.test(f.url)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||
!db.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&db.test(f.data)||db.test(f.url))){l=f.jsonpCallback||"jsonp"+tb++;if(f.data)f.data=(f.data+"").replace(db,"="+l+"$1");f.url=f.url.replace(db,"="+l+"$1");f.dataType="script";var I=d[l];d[l]=function(M){if(h.isFunction(I))I(M);else{d[l]=o;try{delete d[l]}catch(S){}}x=M;h.handleSuccess(f,ma,s,x);h.handleComplete(f,ma,s,x);X&&X.removeChild(qa)}}if(f.dataType==="script"&&f.cache===
null)f.cache=false;if(f.cache===false&&J){var O=h.now(),la=f.url.replace(Jb,"$1_="+O);f.url=la+(la===f.url?(pa.test(f.url)?"&":"?")+"_="+O:"")}if(f.data&&J)f.url+=(pa.test(f.url)?"&":"?")+f.data;f.global&&h.active++===0&&h.event.trigger("ajaxStart");O=(O=kb.exec(f.url))&&(O[1]&&O[1].toLowerCase()!==location.protocol||O[2].toLowerCase()!==location.host);if(f.dataType==="script"&&C==="GET"&&O){var X=F.getElementsByTagName("head")[0]||F.documentElement,qa=F.createElement("script");if(f.scriptCharset)qa.charset=
f.scriptCharset;qa.src=f.url;if(!l){var xa=false;qa.onload=qa.onreadystatechange=function(){if(!xa&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){xa=true;h.handleSuccess(f,ma,s,x);h.handleComplete(f,ma,s,x);qa.onload=qa.onreadystatechange=null;X&&qa.parentNode&&X.removeChild(qa)}}}X.insertBefore(qa,X.firstChild);return o}var Ka=false,ma=f.xhr();if(ma){f.username?ma.open(C,f.url,f.async,f.username,f.password):ma.open(C,f.url,f.async);try{if(f.data!=null&&!J||e&&e.contentType)ma.setRequestHeader("Content-Type",
f.contentType);if(f.ifModified){h.lastModified[f.url]&&ma.setRequestHeader("If-Modified-Since",h.lastModified[f.url]);h.etag[f.url]&&ma.setRequestHeader("If-None-Match",h.etag[f.url])}O||ma.setRequestHeader("X-Requested-With","XMLHttpRequest");ma.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*; q=0.01":f.accepts._default)}catch(Ha){}if(f.beforeSend&&f.beforeSend.call(f.context,ma,f)===false){f.global&&h.active--===1&&h.event.trigger("ajaxStop");ma.abort();
return false}f.global&&h.triggerGlobal(f,"ajaxSend",[ma,f]);var Wa=ma.onreadystatechange=function(M){if(!ma||ma.readyState===0||M==="abort"){Ka||h.handleComplete(f,ma,s,x);Ka=true;if(ma)ma.onreadystatechange=h.noop}else if(!Ka&&ma&&(ma.readyState===4||M==="timeout")){Ka=true;ma.onreadystatechange=h.noop;s=M==="timeout"?"timeout":!h.httpSuccess(ma)?"error":f.ifModified&&h.httpNotModified(ma,f.url)?"notmodified":"success";var S;if(s==="success")try{x=h.httpData(ma,f.dataType,f)}catch(U){s="parsererror";
S=U}if(s==="success"||s==="notmodified")l||h.handleSuccess(f,ma,s,x);else h.handleError(f,ma,s,S);l||h.handleComplete(f,ma,s,x);M==="timeout"&&ma.abort();if(f.async)ma=null}};try{var y=ma.abort;ma.abort=function(){ma&&Function.prototype.call.call(y,ma);Wa("abort")}}catch(G){}f.async&&f.timeout>0&&setTimeout(function(){ma&&!Ka&&Wa("timeout")},f.timeout);try{ma.send(J||f.data==null?null:f.data)}catch(N){h.handleError(f,ma,null,N);h.handleComplete(f,ma,s,x)}f.async||Wa();return ma}},param:function(e,
f){var l=[],s=function(C,J){J=h.isFunction(J)?J():J;l[l.length]=encodeURIComponent(C)+"="+encodeURIComponent(J)};if(f===o)f=h.ajaxSettings.traditional;if(h.isArray(e)||e.jquery)h.each(e,function(){s(this.name,this.value)});else for(var x in e)Q(x,e[x],f,s);return l.join("&").replace(ub,"+")}});h.extend({active:0,lastModified:{},etag:{},handleError:function(e,f,l,s){e.error&&e.error.call(e.context,f,l,s);e.global&&h.triggerGlobal(e,"ajaxError",[f,e,s])},handleSuccess:function(e,f,l,s){e.success&&e.success.call(e.context,
s,l,f);e.global&&h.triggerGlobal(e,"ajaxSuccess",[f,e])},handleComplete:function(e,f,l){e.complete&&e.complete.call(e.context,f,l);e.global&&h.triggerGlobal(e,"ajaxComplete",[f,e]);e.global&&h.active--===1&&h.event.trigger("ajaxStop")},triggerGlobal:function(e,f,l){(e.context&&e.context.url==null?h(e.context):h.event).trigger(f,l)},httpSuccess:function(e){try{return!e.status&&location.protocol==="file:"||e.status>=200&&e.status<300||e.status===304||e.status===1223}catch(f){}return false},httpNotModified:function(e,
f){var l=e.getResponseHeader("Last-Modified"),s=e.getResponseHeader("Etag");if(l)h.lastModified[f]=l;if(s)h.etag[f]=s;return e.status===304},httpData:function(e,f,l){var s=e.getResponseHeader("content-type")||"",x=f==="xml"||!f&&s.indexOf("xml")>=0;e=x?e.responseXML:e.responseText;x&&e.documentElement.nodeName==="parsererror"&&h.error("parsererror");if(l&&l.dataFilter)e=l.dataFilter(e,f);if(typeof e==="string")if(f==="json"||!f&&s.indexOf("json")>=0)e=h.parseJSON(e);else if(f==="script"||!f&&s.indexOf("javascript")>=
0)h.globalEval(e);return e}});if(d.ActiveXObject)h.ajaxSettings.xhr=function(){if(d.location.protocol!=="file:")try{return new d.XMLHttpRequest}catch(e){}try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(f){}};h.support.ajax=!!h.ajaxSettings.xhr();var Ea={},Ca=/^(?:toggle|show|hide)$/,Lb=/^([+\-]=)?([\d+.\-]+)(.*)$/,lb,vb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];h.fn.extend({show:function(e,
f,l){if(e||e===0)return this.animate(ea("show",3),e,f,l);else{l=0;for(var s=this.length;l<s;l++){e=this[l];f=e.style.display;if(!h.data(e,"olddisplay")&&f==="none")f=e.style.display="";f===""&&h.css(e,"display")==="none"&&h.data(e,"olddisplay",ca(e.nodeName))}for(l=0;l<s;l++){e=this[l];f=e.style.display;if(f===""||f==="none")e.style.display=h.data(e,"olddisplay")||""}return this}},hide:function(e,f,l){if(e||e===0)return this.animate(ea("hide",3),e,f,l);else{e=0;for(f=this.length;e<f;e++){l=h.css(this[e],
"display");l!=="none"&&h.data(this[e],"olddisplay",l)}for(e=0;e<f;e++)this[e].style.display="none";return this}},_toggle:h.fn.toggle,toggle:function(e,f,l){var s=typeof e==="boolean";if(h.isFunction(e)&&h.isFunction(f))this._toggle.apply(this,arguments);else e==null||s?this.each(function(){var x=s?e:h(this).is(":hidden");h(this)[x?"show":"hide"]()}):this.animate(ea("toggle",3),e,f,l);return this},fadeTo:function(e,f,l,s){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:f},
e,l,s)},animate:function(e,f,l,s){var x=h.speed(f,l,s);if(h.isEmptyObject(e))return this.each(x.complete);return this[x.queue===false?"each":"queue"](function(){var C=h.extend({},x),J,I=this.nodeType===1,O=I&&h(this).is(":hidden"),la=this;for(J in e){var X=h.camelCase(J);if(J!==X){e[X]=e[J];delete e[J];J=X}if(e[J]==="hide"&&O||e[J]==="show"&&!O)return C.complete.call(this);if(I&&(J==="height"||J==="width")){C.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(h.css(this,"display")===
"inline"&&h.css(this,"float")==="none")if(h.support.inlineBlockNeedsLayout)if(ca(this.nodeName)==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(h.isArray(e[J])){(C.specialEasing=C.specialEasing||{})[J]=e[J][1];e[J]=e[J][0]}}if(C.overflow!=null)this.style.overflow="hidden";C.curAnim=h.extend({},e);h.each(e,function(qa,xa){var Ka=new h.fx(la,C,qa);if(Ca.test(xa))Ka[xa==="toggle"?O?"show":"hide":xa](e);else{var ma=
Lb.exec(xa),Ha=Ka.cur()||0;if(ma){var Wa=parseFloat(ma[2]),y=ma[3]||"px";if(y!=="px"){h.style(la,qa,(Wa||1)+y);Ha=(Wa||1)/Ka.cur()*Ha;h.style(la,qa,Ha+y)}if(ma[1])Wa=(ma[1]==="-="?-1:1)*Wa+Ha;Ka.custom(Ha,Wa,y)}else Ka.custom(Ha,xa,"")}});return true})},stop:function(e,f){var l=h.timers;e&&this.queue([]);this.each(function(){for(var s=l.length-1;s>=0;s--)if(l[s].elem===this){f&&l[s](true);l.splice(s,1)}});f||this.dequeue();return this}});h.each({slideDown:ea("show",1),slideUp:ea("hide",1),slideToggle:ea("toggle",
1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,f){h.fn[e]=function(l,s,x){return this.animate(f,l,s,x)}});h.extend({speed:function(e,f,l){var s=e&&typeof e==="object"?h.extend({},e):{complete:l||!l&&f||h.isFunction(e)&&e,duration:e,easing:l&&f||f&&!h.isFunction(f)&&f};s.duration=h.fx.off?0:typeof s.duration==="number"?s.duration:s.duration in h.fx.speeds?h.fx.speeds[s.duration]:h.fx.speeds._default;s.old=s.complete;s.complete=function(){s.queue!==false&&
h(this).dequeue();h.isFunction(s.old)&&s.old.call(this)};return s},easing:{linear:function(e,f,l,s){return l+s*e},swing:function(e,f,l,s){return(-Math.cos(e*Math.PI)/2+0.5)*s+l}},timers:[],fx:function(e,f,l){this.options=f;this.elem=e;this.prop=l;if(!f.orig)f.orig={}}});h.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(h.fx.step[this.prop]||h.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==
null))return this.elem[this.prop];var e=parseFloat(h.css(this.elem,this.prop));return e&&e>-10000?e:0},custom:function(e,f,l){function s(J){return x.step(J)}var x=this,C=h.fx;this.startTime=h.now();this.start=e;this.end=f;this.unit=l||this.unit||"px";this.now=this.start;this.pos=this.state=0;s.elem=this.elem;if(s()&&h.timers.push(s)&&!lb)lb=setInterval(C.tick,C.interval)},show:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||
this.prop==="height"?1:0,this.cur());h(this.elem).show()},hide:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(e){var f=h.now(),l=true;if(e||f>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var s in this.options.curAnim)if(this.options.curAnim[s]!==true)l=false;if(l){if(this.options.overflow!=null&&!h.support.shrinkWrapBlocks){var x=
this.elem,C=this.options;h.each(["","X","Y"],function(I,O){x.style["overflow"+O]=C.overflow[I]})}this.options.hide&&h(this.elem).hide();if(this.options.hide||this.options.show)for(var J in this.options.curAnim)h.style(this.elem,J,this.options.orig[J]);this.options.complete.call(this.elem)}return false}else{e=f-this.startTime;this.state=e/this.options.duration;f=this.options.easing||(h.easing.swing?"swing":"linear");this.pos=h.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||
f](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};h.extend(h.fx,{tick:function(){for(var e=h.timers,f=0;f<e.length;f++)e[f]()||e.splice(f--,1);e.length||h.fx.stop()},interval:13,stop:function(){clearInterval(lb);lb=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){h.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null)e.elem.style[e.prop]=(e.prop==="width"||e.prop===
"height"?Math.max(0,e.now):e.now)+e.unit;else e.elem[e.prop]=e.now}}});if(h.expr&&h.expr.filters)h.expr.filters.animated=function(e){return h.grep(h.timers,function(f){return e===f.elem}).length};var Mb=/^t(?:able|d|h)$/i,wb=/^(?:body|html)$/i;h.fn.offset="getBoundingClientRect"in F.documentElement?function(e){var f=this[0],l;if(e)return this.each(function(J){h.offset.setOffset(this,e,J)});if(!f||!f.ownerDocument)return null;if(f===f.ownerDocument.body)return h.offset.bodyOffset(f);try{l=f.getBoundingClientRect()}catch(s){}var x=
f.ownerDocument,C=x.documentElement;if(!l||!h.contains(C,f))return l||{top:0,left:0};f=x.body;x=Z(x);return{top:l.top+(x.pageYOffset||h.support.boxModel&&C.scrollTop||f.scrollTop)-(C.clientTop||f.clientTop||0),left:l.left+(x.pageXOffset||h.support.boxModel&&C.scrollLeft||f.scrollLeft)-(C.clientLeft||f.clientLeft||0)}}:function(e){var f=this[0];if(e)return this.each(function(X){h.offset.setOffset(this,e,X)});if(!f||!f.ownerDocument)return null;if(f===f.ownerDocument.body)return h.offset.bodyOffset(f);
h.offset.initialize();var l,s=f.offsetParent,x=f,C=f.ownerDocument,J=C.documentElement,I=C.body;l=(C=C.defaultView)?C.getComputedStyle(f,null):f.currentStyle;for(var O=f.offsetTop,la=f.offsetLeft;(f=f.parentNode)&&f!==I&&f!==J;){if(h.offset.supportsFixedPosition&&l.position==="fixed")break;l=C?C.getComputedStyle(f,null):f.currentStyle;O-=f.scrollTop;la-=f.scrollLeft;if(f===s){O+=f.offsetTop;la+=f.offsetLeft;if(h.offset.doesNotAddBorder&&!(h.offset.doesAddBorderForTableAndCells&&Mb.test(f.nodeName))){O+=
parseFloat(l.borderTopWidth)||0;la+=parseFloat(l.borderLeftWidth)||0}x=s;s=f.offsetParent}if(h.offset.subtractsBorderForOverflowNotVisible&&l.overflow!=="visible"){O+=parseFloat(l.borderTopWidth)||0;la+=parseFloat(l.borderLeftWidth)||0}l=l}if(l.position==="relative"||l.position==="static"){O+=I.offsetTop;la+=I.offsetLeft}if(h.offset.supportsFixedPosition&&l.position==="fixed"){O+=Math.max(J.scrollTop,I.scrollTop);la+=Math.max(J.scrollLeft,I.scrollLeft)}return{top:O,left:la}};h.offset={initialize:function(){var e=
F.body,f=F.createElement("div"),l,s,x,C=parseFloat(h.css(e,"marginTop"))||0;h.extend(f.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});f.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";e.insertBefore(f,
e.firstChild);l=f.firstChild;s=l.firstChild;x=l.nextSibling.firstChild.firstChild;this.doesNotAddBorder=s.offsetTop!==5;this.doesAddBorderForTableAndCells=x.offsetTop===5;s.style.position="fixed";s.style.top="20px";this.supportsFixedPosition=s.offsetTop===20||s.offsetTop===15;s.style.position=s.style.top="";l.style.overflow="hidden";l.style.position="relative";this.subtractsBorderForOverflowNotVisible=s.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=e.offsetTop!==C;e.removeChild(f);h.offset.initialize=
h.noop},bodyOffset:function(e){var f=e.offsetTop,l=e.offsetLeft;h.offset.initialize();if(h.offset.doesNotIncludeMarginInBodyOffset){f+=parseFloat(h.css(e,"marginTop"))||0;l+=parseFloat(h.css(e,"marginLeft"))||0}return{top:f,left:l}},setOffset:function(e,f,l){var s=h.css(e,"position");if(s==="static")e.style.position="relative";var x=h(e),C=x.offset(),J=h.css(e,"top"),I=h.css(e,"left"),O=s==="absolute"&&h.inArray("auto",[J,I])>-1;s={};var la={};if(O)la=x.position();J=O?la.top:parseInt(J,10)||0;I=O?
la.left:parseInt(I,10)||0;if(h.isFunction(f))f=f.call(e,l,C);if(f.top!=null)s.top=f.top-C.top+J;if(f.left!=null)s.left=f.left-C.left+I;"using"in f?f.using.call(e,s):x.css(s)}};h.fn.extend({position:function(){if(!this[0])return null;var e=this[0],f=this.offsetParent(),l=this.offset(),s=wb.test(f[0].nodeName)?{top:0,left:0}:f.offset();l.top-=parseFloat(h.css(e,"marginTop"))||0;l.left-=parseFloat(h.css(e,"marginLeft"))||0;s.top+=parseFloat(h.css(f[0],"borderTopWidth"))||0;s.left+=parseFloat(h.css(f[0],
"borderLeftWidth"))||0;return{top:l.top-s.top,left:l.left-s.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||F.body;e&&!wb.test(e.nodeName)&&h.css(e,"position")==="static";)e=e.offsetParent;return e})}});h.each(["Left","Top"],function(e,f){var l="scroll"+f;h.fn[l]=function(s){var x=this[0],C;if(!x)return null;if(s!==o)return this.each(function(){if(C=Z(this))C.scrollTo(!e?s:h(C).scrollLeft(),e?s:h(C).scrollTop());else this[l]=s});else return(C=Z(x))?"pageXOffset"in
C?C[e?"pageYOffset":"pageXOffset"]:h.support.boxModel&&C.document.documentElement[l]||C.document.body[l]:x[l]}});h.each(["Height","Width"],function(e,f){var l=f.toLowerCase();h.fn["inner"+f]=function(){return this[0]?parseFloat(h.css(this[0],l,"padding")):null};h.fn["outer"+f]=function(s){return this[0]?parseFloat(h.css(this[0],l,s?"margin":"border")):null};h.fn[l]=function(s){var x=this[0];if(!x)return s==null?null:this;if(h.isFunction(s))return this.each(function(J){var I=h(this);I[l](s.call(this,
J,I[l]()))});if(h.isWindow(x))return x.document.compatMode==="CSS1Compat"&&x.document.documentElement["client"+f]||x.document.body["client"+f];else if(x.nodeType===9)return Math.max(x.documentElement["client"+f],x.body["scroll"+f],x.documentElement["scroll"+f],x.body["offset"+f],x.documentElement["offset"+f]);else if(s===o){x=h.css(x,l);var C=parseFloat(x);return h.isNaN(C)?x:C}else return this.css(l,typeof s==="string"?s:s+"px")}})})(window);jQuery.cookie=function(d,o,u){if(typeof o!="undefined"){u=u||{};if(o===null){o="";u.expires=-1}var v="";if(u.expires&&(typeof u.expires=="number"||u.expires.toUTCString)){if(typeof u.expires=="number"){v=new Date;v.setTime(v.getTime()+u.expires*24*60*60*1E3)}else v=u.expires;v="; expires="+v.toUTCString()}var r=u.path?"; path="+u.path:"",b=u.domain?"; domain="+u.domain:"";u=u.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(o),v,r,b,u].join("")}else{o=null;if(document.cookie&&document.cookie!=
""){u=document.cookie.split(";");for(v=0;v<u.length;v++){r=jQuery.trim(u[v]);if(r.substring(0,d.length+1)==d+"="){o=decodeURIComponent(r.substring(d.length+1));break}}}return o}};if(typeof finke==="undefined")finke={};
finke.catflyout=function(d){function o(){d("#categorynav li last-child").css("background","none");d("#categorynav .topcat").hover(function(){var z="0px -1px";if(d.browser.msie&&parseInt(d.browser.version)===6)z="0px -2px";topcatid=this.id;subcatid=this.id.replace("topcat","subcats");j!=""&&j!=topcatid&&v(b,j);var w=d("#categorynav #"+subcatid);w.show();w.position({my:"left top",at:"left bottom",of:"#"+topcatid,offset:z});d("#categorynav #"+topcatid).addClass("topcatactive");r=true;b=topcatid;j=subcatid;
window.clearTimeout(p);p=window.setTimeout(u,500)},function(){window.clearTimeout(p);p=window.setTimeout(u,500);r=false});d("#categorynav .subcat").hover(function(){r=true},function(){window.clearTimeout(p);p=window.setTimeout(u,500);r=false})}function u(){r?window.setTimeout(u,2E3):v(b,j)}function v(z,w){d("#categorynav #"+z).removeClass("topcatactive");d("#categorynav #"+w).hide()}var r=false,b="",j="",p;d(function(){o()});return{}}(jQuery);var sf=sf||{};
sf.grid=function(){var d=function(o,u){this.rows=o;this.columns=u;this.numElements=0;this.maxElements=u*o;this.grid=[];var v,r,b;for(r=0;r<this.rows;r++){b=[];for(v=0;v<this.columns;v++)b.push(null);this.grid.push(b)}};d.prototype.add=function(o,u){var v=u[0],r=u[1];if(this.grid[r][v]!==null)throw"slot not free "+v+", "+r;this.grid[r][v]=o;typeof o.addedTo!=="undefined"&&o.addedTo([v,r]);this.numElements+=1};d.prototype.remove=function(o){var u=o[0];o=o[1];var v=this.grid[o][u];v!==null&&typeof v.removedFrom!==
"undefined"&&v.removedFrom([u,o]);this.grid[o][u]=null;this.numElements-=1};d.prototype.moveTo=function(o,u){var v=o[0],r=o[1],b=u[0],j=u[1],p=this.get(o);this.grid[j][b]=p;this.grid[r][v]=null;p!==null&&typeof p.movedTo!=="undefined"&&p.movedTo([b,j])};d.prototype.getNext=function(o){var u=o[0];o=o[1];if(u>=this.columns-1&&o>=this.rows-1)return null;if(u===this.columns-1)return[0,o+1];return[u+1,o]};d.prototype.getPrevious=function(o){var u=o[0];o=o[1];if(u<=0&&o<=0)return null;if(u===0)return[this.columns-
1,o-1];return[u-1,o]};d.prototype.shiftBack=function(o){var u=this.findFirstFreeAfterPos(o),v=u;if(this.maxElements<=this.numElements)throw"maxElements reached. Can't shift elements";if(u===null)throw"No free slot found after "+o[0]+","+o[1];for(;;){u=this.getPrevious(v);if(u===null)break;this.moveTo(u,v);v=u;if(v[0]===o[0]&&v[1]===o[1])break}return this};d.prototype.shiftForward=function(o){var u=this.findFirstFreeBeforePos(o),v=u;if(u===null)throw"No free slot found before "+o;for(;;){u=this.getNext(v);
if(u===null)break;this.moveTo(u,v);v=u;if(v[0]===o[0]&&v[1]===o[1])break}return this};d.prototype.get=function(o){return this.grid[o[1]][o[0]]};d.prototype.findFirstFreeAfterPos=function(o){for(o=[o[0],o[1]];;){o=this.getNext(o);if(o===null)return null;if(this.get(o)===null)return o}return null};d.prototype.findFirstFreeBeforePos=function(o){for(o=[o[0],o[1]];;){o=this.getPrevious(o);if(o===null)return null;if(this.get(o)===null)return o}return null};d.prototype.findFirstPositionMatching=function(o){for(var u=
[0,0];;){if(u===null)return null;if(o(this.get(u)))return u;u=this.getNext(u)}};return{Grid:d}}();if(typeof finke==="undefined")finke={};
finke.facets=function(d){function o(u,v){var r=d.extend(d.extend({},{perRow:7,vDist:4,hDist:4,colorSelector:"input[type!=submit]",defaultField:".default",radius:6,outerAddonColor:"#FFFFFF",outerStrokeColor:"#000000",outerAddon:2,outerStroke:1,opacity:1,strokeOpacity:0.2,strokeOpacityHighlighted:1,opacityHighlighted:1,outerStrokeColorActive:"#B92129",boxPadding:2,moveDuration:250}),v),b=r.boxPadding,j=d(r.colorSelector,u),p=j.length,z=r.radius+r.outerAddon+r.outerStroke,w=r.vDist+r.outerStroke,E=r.hDist+
r.outerStroke,K=r.perRow*(z*2+E)-E+2*b,Q=(z*2+w)*Math.ceil(p/7)+10+2*b,ea=document.createElement("div"),ca=Raphael(ea,K,Q),Z=[],F=new sf.grid.Grid(Math.ceil(p/7),7),h=null;ca.boxWidth=K;ca.boxHeight=Q;F.getRealCoordinates=function(aa){return[z+aa[0]*(E+2*z)+b,z+(w+z*2)*aa[1]+b]};if(p>0){d(r.defaultField,u).hide();j.hide().each(function(aa){var V=z+aa%7*(E+2*z)+b;aa=z+(w+z*2)*Math.floor(aa/7)+b;var ha,sa,za;h=h===null?[0,0]:F.getNext(h);var T=d.trim(d('label[for="color-field-'+d(this).attr("value")+
'"]').text());za=ca.circle(V,aa,z-r.outerStroke).attr({fill:r.outerStrokeColor,"stroke-width":2,"stroke-opacity":0,stroke:r.outerStrokeColorActive,"fill-opacity":0,title:T});sa=ca.circle(V,aa,z-r.outerStroke).attr({fill:r.outerAddonColor,"stroke-width":0,"stroke-opacity":0,"fill-opacity":r.opacity,title:T});ha=ca.circle(V,aa,r.radius).attr({fill:d(this).data("color"),"stroke-width":0,"stroke-opacity":0,"fill-opacity":1,title:T});ha.outerCircle=za;ha.inputNode=d(this);ha.bgcircle=sa;if(d(this).attr("value")==
"")ha.strokePath=ca.path("M"+(V-r.radius)+" "+(aa+r.radius)+"L"+(V+r.radius)+" "+(aa-r.radius)).attr({stroke:"#c80505",color:"#c80505","stroke-width":2,title:T});ha.redraw=function(){var oa,ia;if(typeof this.old_pos!=="undefined"){oa=F.getRealCoordinates(this.old_pos);ia=F.getRealCoordinates(this.pos);if(ia[0]-oa[0]!==0||ia[1]-oa[1]!==0){this.outerCircle.animate({cx:ia[0],cy:ia[1]},r.moveDuration);this.animate({cx:ia[0],cy:ia[1]},r.moveDuration);this.bgcircle.animate({cx:ia[0],cy:ia[1]},r.moveDuration);
typeof this.strokePath!=="undefined"&&this.strokePath.animate({translation:""+(ia[0]-oa[0])+" "+(ia[1]-oa[1])},r.moveDuration)}}else throw"redraw called without previous position";};ha.movedTo=function(oa){this.old_pos=this.pos;this.pos=oa;this.redraw()};ha.addedTo=function(oa){if(typeof this.old_pos==="undefined")this.old_pos=oa;else if(typeof this.pos!=="undefined")this.old_pos=this.pos;this.pos=oa;this.redraw()};ha.activate=function(oa){var ia={"stroke-opacity":r.opacityHighlighted};if(this.active)ia.fill=
r.outerStrokeColorActive;this.outerCircle.animate(ia,200);oa&&d(this.inputNode).attr("checked",true).change()};ha.deactivate=function(oa){this.outerCircle.animate({"stroke-opacity":r.strokeOpacity,fill:r.outerStrokeColor},200);if(oa){d(this.inputNode).attr("checked",false);d(this.inputNode).attr("type")==="radio"?d(r.defaultField,u).change():d(this.inputNode).change()}};ha.mouseover(function(){this.active||this.activate();document.body.style.cursor="pointer"}).mouseout(function(){if(!this.active){this.deactivate();
document.body.style.cursor="default"}});ha.click(function(){if(this.active){this.active=false;this.deactivate(true);F.remove(this.pos);F.shiftForward(F.getNext(this.pos));var oa=F.findFirstPositionMatching(function(ia){return ia!==null&&!ia.active});F.shiftBack(oa);F.add(this,oa)}else{this.active=true;this.activate(true);if(this.pos[0]!==0||this.pos[1]!==0){F.remove(this.pos);F.shiftBack([0,0]);F.add(this,[0,0])}}});d(this).data("circle",ha);F.add(ha,h);Z.push(ha)});d("input[type!=submit]",u).change(function(){j.each(function(){var V=
d(this).data("circle");V.active=false;V.deactivate();d(this).attr("checked","")});var aa=d(this).data("circle");d(this).attr("checked","checked");if(aa){aa.active=true;aa.activate()}}).each(function(){if(d(this).attr("checked")){var aa=d(this).data("circle");aa.active=true;aa.activate()}});d("label",u).hide();u.append(ea);return ca}}d(function(){o(d("#fc-finkeColor .content"));d("#fc-finkeColor .facet-value").hide()});return{colorbox:o}}(jQuery);var finke=finke||{};
finke.facetbar=function(d){function o(){d(".facetbar").each(function(){function u(b){b.data("oldHeight",b.height());b.height(r.boxHeight)}var v=d(this);d(".value",v).hover(function(){d(this).addClass("hover")},function(){d(this).removeClass("hover")});d("#facetbar-category-field").selectmenu({width:"100%",menuWidth:205});d("#facetbar-brand-field").selectmenu({width:"100%",menuWidth:165});d("#color-field-all").hide();var r=finke.facets.colorbox(d("#facetbar-color .value"),{outerStroke:0,outerAddon:2,
vDist:10,opacity:0.3,opacityHighlighted:1,outerColor:"#DDD",outerColorHighlighted:"#FFF"});d("#facetbar-color").mousemove(function(b){var j=d(this);(b.layerX||b.offsetX)>=this.clientWidth-21?j.css("cursor","pointer"):j.css("cursor","")});d("#facetbar-color").click(function(b){if((b.layerX||b.offsetX)>=this.clientWidth-21){b=d("#facetbar-color .value");b.height()==r.boxHeight?b.height(b.data("oldHeight")):u(b)}});d("#facetbar-color .value").hover(function(){var b=d(this);b.height()==r.boxHeight||u(b)},
function(){var b=d(this);b.height()==r.boxHeight&&b.height(b.data("oldHeight"))});d("#facetbar-style input:checked").each(function(){d("#facetbar-style label[for="+d(this).attr("id")+"]").addClass("active")});d("#facetbar-style input").hide();d("#facetbar-style input").bind("change",function(){var b=d(this);d("#facetbar-style label").removeClass("active");d("#facetbar-style label[for="+b.attr("id")+"]").addClass("active")});d("#facetbar-style label").bind("click",function(){var b=d(this);b.hasClass("active")?
d("#style-field-all").change():d("#"+b.attr("for")).change()})})}d(function(){o(d(".facetbar"));d(".facetbar a").tooltip()});return{}}(jQuery);(function(d){d.fn.colormarkers=function(o){var u=d.extend(d.extend({},{markerContainer:null,markerVDist:4,markerHDist:4,markerWidth:9,markerHeight:9,markerStrokeWidth:1,boxClass:"colormarkers"}),o);d(this).each(function(){var v=d(this),r=v.data("colors");r=r.length>0?r.split(","):[];var b=r.length,j,p,z,w,E,K=u.markerStrokeWidth,Q=u.markerHeight,ea=u.markerWidth;if(b!==0){j=u.markerContainer==null?v:d(u.markerContainer,v);v=document.createElement("canvas");p=j.height();d(v).attr({width:18,height:p}).addClass(u.boxClass);
w=18-u.markerWidth;E=p-u.markerHeight;if(typeof G_vmlCanvasManager!=="undefined"){j.append(v);G_vmlCanvasManager.initElement(v)}z=v.getContext("2d");for(i=0;i<b;i++){z.fillStyle=r[i];z.fillRect(w,E,u.markerWidth,u.markerHeight);z.fillStyle="rgba(0, 0, 0, 0.15)";z.fillRect(w,E,ea,K);z.fillRect(w,E+Q-K,u.markerWidth,K);z.fillRect(w,E+K,K,Q-K);z.fillRect(w+ea-K,E+K,K,Q-K);E-=u.markerVDist+u.markerHeight;if(E<0){E=p-u.markerHeight;w-=u.markerHDist+u.markerWidth}}typeof G_vmlCanvasManager==="undefined"&&
j.append(v)}})}})(jQuery);(function(d){function o(r,b){var j=d(b);return j.length<2?j:r.parent().find(b)}function u(r,b){var j=this,p=r.add(j),z=r.children(),w=0,E=b.vertical;v||(v=j);if(z.length>1)z=d(b.items,r);d.extend(j,{getConf:function(){return b},getIndex:function(){return w},getSize:function(){return j.getItems().size()},getNaviButtons:function(){return ea.add(ca)},getRoot:function(){return r},getItemWrap:function(){return z},getItems:function(){return z.children(b.item).not("."+b.clonedClass)},move:function(F,h){return j.seekTo(w+
F,h)},next:function(F){return j.move(1,F)},prev:function(F){return j.move(-1,F)},begin:function(F){return j.seekTo(0,F)},end:function(F){return j.seekTo(j.getSize()-1,F)},focus:function(){return v=j},addItem:function(F){F=d(F);if(b.circular){z.children("."+b.clonedClass+":last").before(F);z.children("."+b.clonedClass+":first").replaceWith(F.clone().addClass(b.clonedClass))}else z.append(F);p.trigger("onAddItem",[F]);return j},seekTo:function(F,h,aa){F.jquery||(F*=1);if(b.circular&&F===0&&w==-1&&h!==
0)return j;if(!b.circular&&F<0||F>j.getSize()||F<-1)return j;var V=F;if(F.jquery)F=j.getItems().index(F);else V=j.getItems().eq(F);var ha=d.Event("onBeforeSeek");if(!aa){p.trigger(ha,[F,h]);if(ha.isDefaultPrevented()||!V.length)return j}V=E?{top:-V.position().top}:{left:-V.position().left};w=F;v=j;if(h===undefined)h=b.speed;z.animate(V,h,b.easing,aa||function(){p.trigger("onSeek",[F])});return j}});d.each(["onBeforeSeek","onSeek","onAddItem"],function(F,h){d.isFunction(b[h])&&d(j).bind(h,b[h]);j[h]=
function(aa){aa&&d(j).bind(h,aa);return j}});if(b.circular){var K=j.getItems().slice(-1).clone().prependTo(z),Q=j.getItems().eq(1).clone().appendTo(z);K.add(Q).addClass(b.clonedClass);j.onBeforeSeek(function(F,h,aa){if(!F.isDefaultPrevented())if(h==-1){j.seekTo(K,aa,function(){j.end(0)});return F.preventDefault()}else h==j.getSize()&&j.seekTo(Q,aa,function(){j.begin(0)})});j.seekTo(0,0,function(){})}var ea=o(r,b.prev).click(function(){j.prev()}),ca=o(r,b.next).click(function(){j.next()});if(!b.circular&&
j.getSize()>1){j.onBeforeSeek(function(F,h){setTimeout(function(){if(!F.isDefaultPrevented()){ea.toggleClass(b.disabledClass,h<=0);ca.toggleClass(b.disabledClass,h>=j.getSize()-1)}},1)});b.initialIndex||ea.addClass(b.disabledClass)}b.mousewheel&&d.fn.mousewheel&&r.mousewheel(function(F,h){if(b.mousewheel){j.move(h<0?1:-1,b.wheelSpeed||50);return false}});if(b.touch){var Z={};z[0].ontouchstart=function(F){F=F.touches[0];Z.x=F.clientX;Z.y=F.clientY};z[0].ontouchmove=function(F){if(F.touches.length==
1&&!z.is(":animated")){var h=F.touches[0],aa=Z.x-h.clientX;h=Z.y-h.clientY;j[E&&h>0||!E&&aa>0?"next":"prev"]();F.preventDefault()}}}b.keyboard&&d(document).bind("keydown.scrollable",function(F){if(!(!b.keyboard||F.altKey||F.ctrlKey||d(F.target).is(":input")))if(!(b.keyboard!="static"&&v!=j)){var h=F.keyCode;if(E&&(h==38||h==40)){j.move(h==38?-1:1);return F.preventDefault()}if(!E&&(h==37||h==39)){j.move(h==37?-1:1);return F.preventDefault()}}});b.initialIndex&&j.seekTo(b.initialIndex,0,function(){})}
d.tools=d.tools||{version:"1.2.5"};d.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,touch:true,wheelSpeed:0}};var v;d.fn.scrollable=function(r){var b=this.data("scrollable");if(b)return b;r=d.extend({},d.tools.scrollable.conf,r);this.each(function(){b=new u(d(this),r);d(this).data("scrollable",b)});return r.api?
b:this}})(jQuery);
(function(d){var o=d.tools.scrollable;o.autoscroll={conf:{autoplay:true,interval:3E3,autopause:true}};d.fn.autoscroll=function(u){if(typeof u=="number")u={interval:u};var v=d.extend({},o.autoscroll.conf,u),r;this.each(function(){var b=d(this).data("scrollable");if(b)r=b;var j,p=true;b.play=function(){if(!j){p=false;j=setInterval(function(){b.next()},v.interval)}};b.pause=function(){j=clearInterval(j)};b.stop=function(){b.pause();p=true};v.autopause&&b.getRoot().add(b.getNaviButtons()).hover(b.pause,b.play);
v.autoplay&&b.play()});return v.api?r:this}})(jQuery);
(function(d){function o(v,r){var b=d(r);return b.length<2?b:v.parent().find(r)}var u=d.tools.scrollable;u.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};d.fn.navigator=function(v){if(typeof v=="string")v={navi:v};v=d.extend({},u.navigator.conf,v);var r;this.each(function(){function b(ca,Z,F){w.seekTo(Z);if(ea){if(location.hash)location.hash=ca.attr("href").replace("#","")}else return F.preventDefault()}function j(){return E.find(v.naviItem||
"> *")}function p(ca){var Z=d("<"+(v.naviItem||"a")+"/>").click(function(F){b(d(this),ca,F)}).attr("href","#"+ca);ca===0&&Z.addClass(Q);v.indexed&&Z.text(ca+1);v.idPrefix&&Z.attr("id",v.idPrefix+ca);return Z.appendTo(E)}function z(ca,Z){ca=j().eq(Z.replace("#",""));ca.length||(ca=j().filter("[href="+Z+"]"));ca.click()}var w=d(this).data("scrollable"),E=v.navi.jquery?v.navi:o(w.getRoot(),v.navi),K=w.getNaviButtons(),Q=v.activeClass,ea=v.history&&d.fn.history;if(w)r=w;w.getNaviButtons=function(){return K.add(E)};
j().length?j().each(function(ca){d(this).click(function(Z){b(d(this),ca,Z)})}):d.each(w.getItems(),function(ca){p(ca)});w.onBeforeSeek(function(ca,Z){setTimeout(function(){if(!ca.isDefaultPrevented()){var F=j().eq(Z);!ca.isDefaultPrevented()&&F.length&&j().removeClass(Q).eq(Z).addClass(Q)}},1)});w.onAddItem(function(ca,Z){Z=p(w.getItems().index(Z));ea&&Z.history(z)});ea&&j().history(z)});return v.api?r:this}})(jQuery);
(function(d){function o(r,b){var j=this,p=r.add(j),z=d(window),w,E,K,Q=d.tools.expose&&(b.mask||b.expose),ea=Math.random().toString().slice(10);if(Q){if(typeof Q=="string")Q={color:Q};Q.closeOnClick=Q.closeOnEsc=false}var ca=b.target||r.attr("rel");E=ca?d(ca):r;if(!E.length)throw"Could not find Overlay: "+ca;r&&r.index(E)==-1&&r.click(function(Z){j.load(Z);return Z.preventDefault()});d.extend(j,{load:function(Z){if(j.isOpened())return j;var F=v[b.effect];if(!F)throw'Overlay: cannot find effect : "'+
b.effect+'"';b.oneInstance&&d.each(u,function(){this.close(Z)});Z=Z||d.Event();Z.type="onBeforeLoad";p.trigger(Z);if(Z.isDefaultPrevented())return j;K=true;Q&&d(E).expose(Q);var h=b.top,aa=b.left,V=E.outerWidth({margin:true}),ha=E.outerHeight({margin:true});if(typeof h=="string")h=h=="center"?Math.max((z.height()-ha)/2,0):parseInt(h,10)/100*z.height();if(aa=="center")aa=Math.max((z.width()-V)/2,0);F[0].call(j,{top:h,left:aa},function(){if(K){Z.type="onLoad";p.trigger(Z)}});Q&&b.closeOnClick&&d.mask.getMask().one("click",
j.close);b.closeOnClick&&d(document).bind("click."+ea,function(sa){d(sa.target).parents(E).length||j.close(sa)});b.closeOnEsc&&d(document).bind("keydown."+ea,function(sa){sa.keyCode==27&&j.close(sa)});return j},close:function(Z){if(!j.isOpened())return j;Z=Z||d.Event();Z.type="onBeforeClose";p.trigger(Z);if(!Z.isDefaultPrevented()){K=false;v[b.effect][1].call(j,function(){Z.type="onClose";p.trigger(Z)});d(document).unbind("click."+ea).unbind("keydown."+ea);Q&&d.mask.close();return j}},getOverlay:function(){return E},
getTrigger:function(){return r},getClosers:function(){return w},isOpened:function(){return K},getConf:function(){return b}});d.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(Z,F){d.isFunction(b[F])&&d(j).bind(F,b[F]);j[F]=function(h){h&&d(j).bind(F,h);return j}});w=E.find(b.close||".close");if(!w.length&&!b.close){w=d('<a class="close"></a>');E.prepend(w)}w.click(function(Z){j.close(Z)});b.load&&j.load()}d.tools=d.tools||{version:"1.2.5"};d.tools.overlay={addEffect:function(r,
b,j){v[r]=[b,j]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!d.browser.msie||d.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var u=[],v={};d.tools.overlay.addEffect("default",function(r,b){var j=this.getConf(),p=d(window);if(!j.fixed){r.top+=p.scrollTop();r.left+=p.scrollLeft()}r.position=j.fixed?"fixed":"absolute";this.getOverlay().css(r).fadeIn(j.speed,b)},function(r){this.getOverlay().fadeOut(this.getConf().closeSpeed,
r)});d.fn.overlay=function(r){var b=this.data("overlay");if(b)return b;if(d.isFunction(r))r={onBeforeLoad:r};r=d.extend(true,{},d.tools.overlay.conf,r);this.each(function(){b=new o(d(this),r);u.push(b);d(this).data("overlay",b)});return r.api?b:this}})(jQuery);
(function(d){function o(r){var b=r.offset();return{top:b.top+r.height()/2,left:b.left+r.width()/2}}var u=d.tools.overlay,v=d(window);d.extend(u.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});u.addEffect("apple",function(r,b){var j=this.getOverlay(),p=this.getConf(),z=this.getTrigger(),w=this,E=j.outerWidth({margin:true}),K=j.data("img"),Q=p.fixed?"fixed":"absolute";if(!K){K=j.css("backgroundImage");if(!K)throw"background-image CSS property not set for overlay";K=K.slice(K.indexOf("(")+
1,K.indexOf(")")).replace(/\"/g,"");j.css("backgroundImage","none");K=d('<img src="'+K+'"/>');K.css({border:0,display:"none"}).width(E);d("body").append(K);j.data("img",K)}var ea=p.start.top||Math.round(v.height()/2),ca=p.start.left||Math.round(v.width()/2);if(z){z=o(z);ea=z.top;ca=z.left}if(p.fixed){ea-=v.scrollTop();ca-=v.scrollLeft()}else{r.top+=v.scrollTop();r.left+=v.scrollLeft()}K.css({position:"absolute",top:ea,left:ca,width:0,zIndex:p.zIndex}).show();r.position=Q;j.css(r);K.animate({top:j.css("top"),
left:j.css("left"),width:E},p.speed,function(){j.css("zIndex",p.zIndex+1).fadeIn(p.fadeInSpeed,function(){w.isOpened()&&!d(this).index(j)?b.call():j.hide()})}).css("position",Q)},function(r){var b=this.getOverlay().hide(),j=this.getConf(),p=this.getTrigger();b=b.data("img");var z={top:j.start.top,left:j.start.left,width:0};p&&d.extend(z,o(p));j.fixed&&b.css({position:"absolute"}).animate({top:"+="+v.scrollTop(),left:"+="+v.scrollLeft()},0);b.animate(z,j.closeSpeed,r)})})(jQuery);
(function(d){function o(){if(d.browser.msie){var w=d(document).height(),E=d(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,w-E<20?E:w]}return[d(document).width(),d(document).height()]}function u(w){if(w)return w.call(d.mask)}d.tools=d.tools||{version:"1.2.5"};var v;v=d.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var r,b,j,p,z;d.mask={load:function(w,E){if(j)return this;if(typeof w=="string")w={color:w};w=w||p;p=w=d.extend(d.extend({},v.conf),w);r=d("#"+w.maskId);if(!r.length){r=d("<div/>").attr("id",w.maskId);d("body").append(r)}var K=o();r.css({position:"absolute",top:0,left:0,width:K[0],height:K[1],display:"none",opacity:w.startOpacity,zIndex:w.zIndex});w.color&&r.css("backgroundColor",w.color);if(u(w.onBeforeLoad)===false)return this;w.closeOnEsc&&d(document).bind("keydown.mask",function(Q){Q.keyCode==
27&&d.mask.close(Q)});w.closeOnClick&&r.bind("click.mask",function(Q){d.mask.close(Q)});d(window).bind("resize.mask",function(){d.mask.fit()});if(E&&E.length){z=E.eq(0).css("zIndex");d.each(E,function(){var Q=d(this);/relative|absolute|fixed/i.test(Q.css("position"))||Q.css("position","relative")});b=E.css({zIndex:Math.max(w.zIndex+1,z=="auto"?0:z)})}r.css({display:"block"}).fadeTo(w.loadSpeed,w.opacity,function(){d.mask.fit();u(w.onLoad);j="full"});j=true;return this},close:function(){if(j){if(u(p.onBeforeClose)===
false)return this;r.fadeOut(p.closeSpeed,function(){u(p.onClose);b&&b.css({zIndex:z});j=false});d(document).unbind("keydown.mask");r.unbind("click.mask");d(window).unbind("resize.mask")}return this},fit:function(){if(j){var w=o();r.css({width:w[0],height:w[1]})}},getMask:function(){return r},isLoaded:function(w){return w?j=="full":j},getConf:function(){return p},getExposed:function(){return b}};d.fn.mask=function(w){d.mask.load(w);return this};d.fn.expose=function(w){d.mask.load(w,this);return this}})(jQuery);(function(d,o){function u(v){return!d(v).parents().andSelf().filter(function(){return d.curCSS(this,"visibility")==="hidden"||d.expr.filters.hidden(this)}).length}d.ui=d.ui||{};if(!d.ui.version){d.extend(d.ui,{version:"1.8.7",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,
PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});d.fn.extend({_focus:d.fn.focus,focus:function(v,r){return typeof v==="number"?this.each(function(){var b=this;setTimeout(function(){d(b).focus();r&&r.call(b)},v)}):this._focus.apply(this,arguments)},scrollParent:function(){var v;v=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,
"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!v.length?d(document):v},zIndex:function(v){if(v!==o)return this.css("zIndex",v);if(this.length){v=d(this[0]);for(var r;v.length&&v[0]!==document;){r=v.css("position");
if(r==="absolute"||r==="relative"||r==="fixed"){r=parseInt(v.css("zIndex"),10);if(!isNaN(r)&&r!==0)return r}v=v.parent()}}return 0},disableSelection:function(){return this.bind((d.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(v){v.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});d.each(["Width","Height"],function(v,r){function b(w,E,K,Q){d.each(j,function(){E-=parseFloat(d.curCSS(w,"padding"+this,true))||0;if(K)E-=parseFloat(d.curCSS(w,
"border"+this+"Width",true))||0;if(Q)E-=parseFloat(d.curCSS(w,"margin"+this,true))||0});return E}var j=r==="Width"?["Left","Right"]:["Top","Bottom"],p=r.toLowerCase(),z={innerWidth:d.fn.innerWidth,innerHeight:d.fn.innerHeight,outerWidth:d.fn.outerWidth,outerHeight:d.fn.outerHeight};d.fn["inner"+r]=function(w){if(w===o)return z["inner"+r].call(this);return this.each(function(){d(this).css(p,b(this,w)+"px")})};d.fn["outer"+r]=function(w,E){if(typeof w!=="number")return z["outer"+r].call(this,w);return this.each(function(){d(this).css(p,
b(this,w,true,E)+"px")})}});d.extend(d.expr[":"],{data:function(v,r,b){return!!d.data(v,b[3])},focusable:function(v){var r=v.nodeName.toLowerCase(),b=d.attr(v,"tabindex");if("area"===r){r=v.parentNode;b=r.name;if(!v.href||!b||r.nodeName.toLowerCase()!=="map")return false;v=d("img[usemap=#"+b+"]")[0];return!!v&&u(v)}return(/input|select|textarea|button|object/.test(r)?!v.disabled:"a"==r?v.href||!isNaN(b):!isNaN(b))&&u(v)},tabbable:function(v){var r=d.attr(v,"tabindex");return(isNaN(r)||r>=0)&&d(v).is(":focusable")}});
d(function(){var v=document.body,r=v.appendChild(r=document.createElement("div"));d.extend(r.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});d.support.minHeight=r.offsetHeight===100;d.support.selectstart="onselectstart"in r;v.removeChild(r).style.display="none"});d.extend(d.ui,{plugin:{add:function(v,r,b){v=d.ui[v].prototype;for(var j in b){v.plugins[j]=v.plugins[j]||[];v.plugins[j].push([r,b[j]])}},call:function(v,r,b){if((r=v.plugins[r])&&v.element[0].parentNode)for(var j=0;j<r.length;j++)v.options[r[j][0]]&&
r[j][1].apply(v.element,b)}},contains:function(v,r){return document.compareDocumentPosition?v.compareDocumentPosition(r)&16:v!==r&&v.contains(r)},hasScroll:function(v,r){if(d(v).css("overflow")==="hidden")return false;r=r&&r==="left"?"scrollLeft":"scrollTop";var b=false;if(v[r]>0)return true;v[r]=1;b=v[r]>0;v[r]=0;return b},isOverAxis:function(v,r,b){return v>r&&v<r+b},isOver:function(v,r,b,j,p,z){return d.ui.isOverAxis(v,b,p)&&d.ui.isOverAxis(r,j,z)}})}})(jQuery);
(function(d,o){if(d.cleanData){var u=d.cleanData;d.cleanData=function(r){for(var b=0,j;(j=r[b])!=null;b++)d(j).triggerHandler("remove");u(r)}}else{var v=d.fn.remove;d.fn.remove=function(r,b){return this.each(function(){if(!b)if(!r||d.filter(r,[this]).length)d("*",this).add([this]).each(function(){d(this).triggerHandler("remove")});return v.call(d(this),r,b)})}}d.widget=function(r,b,j){var p=r.split(".")[0],z;r=r.split(".")[1];z=p+"-"+r;if(!j){j=b;b=d.Widget}d.expr[":"][z]=function(w){return!!d.data(w,
r)};d[p]=d[p]||{};d[p][r]=function(w,E){arguments.length&&this._createWidget(w,E)};b=new b;b.options=d.extend(true,{},b.options);d[p][r].prototype=d.extend(true,b,{namespace:p,widgetName:r,widgetEventPrefix:d[p][r].prototype.widgetEventPrefix||r,widgetBaseClass:z},j);d.widget.bridge(r,d[p][r])};d.widget.bridge=function(r,b){d.fn[r]=function(j){var p=typeof j==="string",z=Array.prototype.slice.call(arguments,1),w=this;j=!p&&z.length?d.extend.apply(null,[true,j].concat(z)):j;if(p&&j.charAt(0)==="_")return w;
p?this.each(function(){var E=d.data(this,r),K=E&&d.isFunction(E[j])?E[j].apply(E,z):E;if(K!==E&&K!==o){w=K;return false}}):this.each(function(){var E=d.data(this,r);E?E.option(j||{})._init():d.data(this,r,new b(j,this))});return w}};d.Widget=function(r,b){arguments.length&&this._createWidget(r,b)};d.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(r,b){d.data(b,this.widgetName,this);this.element=d(b);this.options=d.extend(true,{},this.options,
this._getCreateOptions(),r);var j=this;this.element.bind("remove."+this.widgetName,function(){j.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return d.metadata&&d.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
widget:function(){return this.element},option:function(r,b){var j=r;if(arguments.length===0)return d.extend({},this.options);if(typeof r==="string"){if(b===o)return this.options[r];j={};j[r]=b}this._setOptions(j);return this},_setOptions:function(r){var b=this;d.each(r,function(j,p){b._setOption(j,p)});return this},_setOption:function(r,b){this.options[r]=b;if(r==="disabled")this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},
enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(r,b,j){var p=this.options[r];b=d.Event(b);b.type=(r===this.widgetEventPrefix?r:this.widgetEventPrefix+r).toLowerCase();j=j||{};if(b.originalEvent){r=d.event.props.length;for(var z;r;){z=d.event.props[--r];b[z]=b.originalEvent[z]}}this.element.trigger(b,j);return!(d.isFunction(p)&&p.call(this.element[0],b,j)===false||b.isDefaultPrevented())}}})(jQuery);
(function(d){d.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var o=this;this.element.bind("mousedown."+this.widgetName,function(u){return o._mouseDown(u)}).bind("click."+this.widgetName,function(u){if(true===d.data(u.target,o.widgetName+".preventClickEvent")){d.removeData(u.target,o.widgetName+".preventClickEvent");u.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(o){o.originalEvent=
o.originalEvent||{};if(!o.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(o);this._mouseDownEvent=o;var u=this,v=o.which==1,r=typeof this.options.cancel=="string"?d(o.target).parents().add(o.target).filter(this.options.cancel).length:false;if(!v||r||!this._mouseCapture(o))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){u.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(o)&&this._mouseDelayMet(o)){this._mouseStarted=
this._mouseStart(o)!==false;if(!this._mouseStarted){o.preventDefault();return true}}this._mouseMoveDelegate=function(b){return u._mouseMove(b)};this._mouseUpDelegate=function(b){return u._mouseUp(b)};d(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);o.preventDefault();return o.originalEvent.mouseHandled=true}},_mouseMove:function(o){if(d.browser.msie&&!(document.documentMode>=9)&&!o.button)return this._mouseUp(o);if(this._mouseStarted){this._mouseDrag(o);
return o.preventDefault()}if(this._mouseDistanceMet(o)&&this._mouseDelayMet(o))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,o)!==false)?this._mouseDrag(o):this._mouseUp(o);return!this._mouseStarted},_mouseUp:function(o){d(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;o.target==this._mouseDownEvent.target&&d.data(o.target,this.widgetName+".preventClickEvent",
true);this._mouseStop(o)}return false},_mouseDistanceMet:function(o){return Math.max(Math.abs(this._mouseDownEvent.pageX-o.pageX),Math.abs(this._mouseDownEvent.pageY-o.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(d){d.ui=d.ui||{};var o=/left|center|right/,u=/top|center|bottom/,v=d.fn.position,r=d.fn.offset;d.fn.position=function(b){if(!b||!b.of)return v.apply(this,arguments);b=d.extend({},b);var j=d(b.of),p=j[0],z=(b.collision||"flip").split(" "),w=b.offset?b.offset.split(" "):[0,0],E,K,Q;if(p.nodeType===9){E=j.width();K=j.height();Q={top:0,left:0}}else if(p.setTimeout){E=j.width();K=j.height();Q={top:j.scrollTop(),left:j.scrollLeft()}}else if(p.preventDefault){b.at="left top";E=K=0;Q={top:b.of.pageY,
left:b.of.pageX}}else{E=j.outerWidth();K=j.outerHeight();Q=j.offset()}d.each(["my","at"],function(){var ea=(b[this]||"").split(" ");if(ea.length===1)ea=o.test(ea[0])?ea.concat(["center"]):u.test(ea[0])?["center"].concat(ea):["center","center"];ea[0]=o.test(ea[0])?ea[0]:"center";ea[1]=u.test(ea[1])?ea[1]:"center";b[this]=ea});if(z.length===1)z[1]=z[0];w[0]=parseInt(w[0],10)||0;if(w.length===1)w[1]=w[0];w[1]=parseInt(w[1],10)||0;if(b.at[0]==="right")Q.left+=E;else if(b.at[0]==="center")Q.left+=E/2;
if(b.at[1]==="bottom")Q.top+=K;else if(b.at[1]==="center")Q.top+=K/2;Q.left+=w[0];Q.top+=w[1];return this.each(function(){var ea=d(this),ca=ea.outerWidth(),Z=ea.outerHeight(),F=parseInt(d.curCSS(this,"marginLeft",true))||0,h=parseInt(d.curCSS(this,"marginTop",true))||0,aa=ca+F+parseInt(d.curCSS(this,"marginRight",true))||0,V=Z+h+parseInt(d.curCSS(this,"marginBottom",true))||0,ha=d.extend({},Q),sa;if(b.my[0]==="right")ha.left-=ca;else if(b.my[0]==="center")ha.left-=ca/2;if(b.my[1]==="bottom")ha.top-=
Z;else if(b.my[1]==="center")ha.top-=Z/2;ha.left=Math.round(ha.left);ha.top=Math.round(ha.top);sa={left:ha.left-F,top:ha.top-h};d.each(["left","top"],function(za,T){d.ui.position[z[za]]&&d.ui.position[z[za]][T](ha,{targetWidth:E,targetHeight:K,elemWidth:ca,elemHeight:Z,collisionPosition:sa,collisionWidth:aa,collisionHeight:V,offset:w,my:b.my,at:b.at})});d.fn.bgiframe&&ea.bgiframe();ea.offset(d.extend(ha,{using:b.using}))})};d.ui.position={fit:{left:function(b,j){var p=d(window);p=j.collisionPosition.left+
j.collisionWidth-p.width()-p.scrollLeft();b.left=p>0?b.left-p:Math.max(b.left-j.collisionPosition.left,b.left)},top:function(b,j){var p=d(window);p=j.collisionPosition.top+j.collisionHeight-p.height()-p.scrollTop();b.top=p>0?b.top-p:Math.max(b.top-j.collisionPosition.top,b.top)}},flip:{left:function(b,j){if(j.at[0]!=="center"){var p=d(window);p=j.collisionPosition.left+j.collisionWidth-p.width()-p.scrollLeft();var z=j.my[0]==="left"?-j.elemWidth:j.my[0]==="right"?j.elemWidth:0,w=j.at[0]==="left"?
j.targetWidth:-j.targetWidth,E=-2*j.offset[0];b.left+=j.collisionPosition.left<0?z+w+E:p>0?z+w+E:0}},top:function(b,j){if(j.at[1]!=="center"){var p=d(window);p=j.collisionPosition.top+j.collisionHeight-p.height()-p.scrollTop();var z=j.my[1]==="top"?-j.elemHeight:j.my[1]==="bottom"?j.elemHeight:0,w=j.at[1]==="top"?j.targetHeight:-j.targetHeight,E=-2*j.offset[1];b.top+=j.collisionPosition.top<0?z+w+E:p>0?z+w+E:0}}}};if(!d.offset.setOffset){d.offset.setOffset=function(b,j){if(/static/.test(d.curCSS(b,
"position")))b.style.position="relative";var p=d(b),z=p.offset(),w=parseInt(d.curCSS(b,"top",true),10)||0,E=parseInt(d.curCSS(b,"left",true),10)||0;z={top:j.top-z.top+w,left:j.left-z.left+E};"using"in j?j.using.call(b,z):p.css(z)};d.fn.offset=function(b){var j=this[0];if(!j||!j.ownerDocument)return null;if(b)return this.each(function(){d.offset.setOffset(this,b)});return r.call(this)}}})(jQuery);
(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var o=this,u=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");u.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
this.range=d([]);if(u.range){if(u.range===true){this.range=d("<div></div>");if(!u.values)u.values=[this._valueMin(),this._valueMin()];if(u.values.length&&u.values.length!==2)u.values=[u.values[0],u.values[0]]}else this.range=d("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(u.range==="min"||u.range==="max")this.range.addClass("ui-slider-range-"+u.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
if(u.values&&u.values.length)for(;d(".ui-slider-handle",this.element).length<u.values.length;)d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(v){v.preventDefault()}).hover(function(){u.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(u.disabled)d(this).blur();
else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(v){d(this).data("index.ui-slider-handle",v)});this.handles.keydown(function(v){var r=true,b=d(this).data("index.ui-slider-handle"),j,p,z;if(!o.options.disabled){switch(v.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:r=
false;if(!o._keySliding){o._keySliding=true;d(this).addClass("ui-state-active");j=o._start(v,b);if(j===false)return}break}z=o.options.step;j=o.options.values&&o.options.values.length?p=o.values(b):p=o.value();switch(v.keyCode){case d.ui.keyCode.HOME:p=o._valueMin();break;case d.ui.keyCode.END:p=o._valueMax();break;case d.ui.keyCode.PAGE_UP:p=o._trimAlignValue(j+(o._valueMax()-o._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:p=o._trimAlignValue(j-(o._valueMax()-o._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(j===
o._valueMax())return;p=o._trimAlignValue(j+z);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(j===o._valueMin())return;p=o._trimAlignValue(j-z);break}o._slide(v,b,p);return r}}).keyup(function(v){var r=d(this).data("index.ui-slider-handle");if(o._keySliding){o._keySliding=false;o._stop(v,r);o._change(v,r);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
this._mouseDestroy();return this},_mouseCapture:function(o){var u=this.options,v,r,b,j,p;if(u.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();v=this._normValueFromMouse({x:o.pageX,y:o.pageY});r=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(z){var w=Math.abs(v-j.values(z));if(r>w){r=w;b=d(this);p=z}});if(u.range===true&&this.values(1)===u.min){p+=1;b=d(this.handles[p])}if(this._start(o,
p)===false)return false;this._mouseSliding=true;j._handleIndex=p;b.addClass("ui-state-active").focus();u=b.offset();this._clickOffset=!d(o.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:o.pageX-u.left-b.width()/2,top:o.pageY-u.top-b.height()/2-(parseInt(b.css("borderTopWidth"),10)||0)-(parseInt(b.css("borderBottomWidth"),10)||0)+(parseInt(b.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(o,p,v);return this._animateOff=true},_mouseStart:function(){return true},
_mouseDrag:function(o){var u=this._normValueFromMouse({x:o.pageX,y:o.pageY});this._slide(o,this._handleIndex,u);return false},_mouseStop:function(o){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(o,this._handleIndex);this._change(o,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(o){var u;
if(this.orientation==="horizontal"){u=this.elementSize.width;o=o.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{u=this.elementSize.height;o=o.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}u=o/u;if(u>1)u=1;if(u<0)u=0;if(this.orientation==="vertical")u=1-u;o=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+u*o)},_start:function(o,u){var v={handle:this.handles[u],value:this.value()};if(this.options.values&&this.options.values.length){v.value=
this.values(u);v.values=this.values()}return this._trigger("start",o,v)},_slide:function(o,u,v){var r;if(this.options.values&&this.options.values.length){r=this.values(u?0:1);if(this.options.values.length===2&&this.options.range===true&&(u===0&&v>r||u===1&&v<r))v=r;if(v!==this.values(u)){r=this.values();r[u]=v;o=this._trigger("slide",o,{handle:this.handles[u],value:v,values:r});this.values(u?0:1);o!==false&&this.values(u,v,true)}}else if(v!==this.value()){o=this._trigger("slide",o,{handle:this.handles[u],
value:v});o!==false&&this.value(v)}},_stop:function(o,u){var v={handle:this.handles[u],value:this.value()};if(this.options.values&&this.options.values.length){v.value=this.values(u);v.values=this.values()}this._trigger("stop",o,v)},_change:function(o,u){if(!this._keySliding&&!this._mouseSliding){var v={handle:this.handles[u],value:this.value()};if(this.options.values&&this.options.values.length){v.value=this.values(u);v.values=this.values()}this._trigger("change",o,v)}},value:function(o){if(arguments.length){this.options.value=
this._trimAlignValue(o);this._refreshValue();this._change(null,0)}return this._value()},values:function(o,u){var v,r,b;if(arguments.length>1){this.options.values[o]=this._trimAlignValue(u);this._refreshValue();this._change(null,o)}if(arguments.length)if(d.isArray(arguments[0])){v=this.options.values;r=arguments[0];for(b=0;b<v.length;b+=1){v[b]=this._trimAlignValue(r[b]);this._change(null,b)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(o):this.value();
else return this._values()},_setOption:function(o,u){var v,r=0;if(d.isArray(this.options.values))r=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(o){case "disabled":if(u){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(v=0;v<r;v+=1)this._change(null,v);this._animateOff=false;break}},_value:function(){return this._trimAlignValue(this.options.value)},_values:function(o){var u,v;if(arguments.length){u=this.options.values[o];
return this._trimAlignValue(u)}else{u=this.options.values.slice();for(v=0;v<u.length;v+=1)u[v]=this._trimAlignValue(u[v]);return u}},_trimAlignValue:function(o){if(o<=this._valueMin())return this._valueMin();if(o>=this._valueMax())return this._valueMax();var u=this.options.step>0?this.options.step:1,v=(o-this._valueMin())%u;alignValue=o-v;if(Math.abs(v)*2>=u)alignValue+=v>0?u:-u;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(){var o=this.options.range,u=this.options,v=this,r=!this._animateOff?u.animate:false,b,j={},p,z,w,E;if(this.options.values&&this.options.values.length)this.handles.each(function(K){b=(v.values(K)-v._valueMin())/(v._valueMax()-v._valueMin())*100;j[v.orientation==="horizontal"?"left":"bottom"]=b+"%";d(this).stop(1,1)[r?"animate":"css"](j,u.animate);if(v.options.range===true)if(v.orientation==="horizontal"){if(K===0)v.range.stop(1,1)[r?"animate":"css"]({left:b+"%"},u.animate);
if(K===1)v.range[r?"animate":"css"]({width:b-p+"%"},{queue:false,duration:u.animate})}else{if(K===0)v.range.stop(1,1)[r?"animate":"css"]({bottom:b+"%"},u.animate);if(K===1)v.range[r?"animate":"css"]({height:b-p+"%"},{queue:false,duration:u.animate})}p=b});else{z=this.value();w=this._valueMin();E=this._valueMax();b=E!==w?(z-w)/(E-w)*100:0;j[v.orientation==="horizontal"?"left":"bottom"]=b+"%";this.handle.stop(1,1)[r?"animate":"css"](j,u.animate);if(o==="min"&&this.orientation==="horizontal")this.range.stop(1,
1)[r?"animate":"css"]({width:b+"%"},u.animate);if(o==="max"&&this.orientation==="horizontal")this.range[r?"animate":"css"]({width:100-b+"%"},{queue:false,duration:u.animate});if(o==="min"&&this.orientation==="vertical")this.range.stop(1,1)[r?"animate":"css"]({height:b+"%"},u.animate);if(o==="max"&&this.orientation==="vertical")this.range[r?"animate":"css"]({height:100-b+"%"},{queue:false,duration:u.animate})}}});d.extend(d.ui.slider,{version:"1.8.7"})})(jQuery);
(function(d,o){function u(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function v(b,j){d.extend(b,j);for(var p in j)if(j[p]==
null||j[p]==o)b[p]=j[p];return b}d.extend(d.ui,{datepicker:{version:"1.8.7"}});var r=(new Date).getTime();d.extend(u.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){v(this._defaults,b||{});return this},_attachDatepicker:function(b,j){var p=null;for(var z in this._defaults){var w=b.getAttribute("date:"+z);if(w){p=p||{};try{p[z]=eval(w)}catch(E){p[z]=w}}}z=b.nodeName.toLowerCase();
w=z=="div"||z=="span";if(!b.id){this.uuid+=1;b.id="dp"+this.uuid}var K=this._newInst(d(b),w);K.settings=d.extend({},j||{},p||{});if(z=="input")this._connectDatepicker(b,K);else w&&this._inlineDatepicker(b,K)},_newInst:function(b,j){return{id:b[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:j,dpDiv:!j?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(b,j){var p=d(b);j.append=d([]);j.trigger=d([]);if(!p.hasClass(this.markerClassName)){this._attachments(p,j);p.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(z,w,E){j.settings[w]=E}).bind("getData.datepicker",function(z,w){return this._get(j,w)});this._autoSize(j);d.data(b,"datepicker",j)}},_attachments:function(b,j){var p=this._get(j,"appendText"),z=this._get(j,"isRTL");j.append&&
j.append.remove();if(p){j.append=d('<span class="'+this._appendClass+'">'+p+"</span>");b[z?"before":"after"](j.append)}b.unbind("focus",this._showDatepicker);j.trigger&&j.trigger.remove();p=this._get(j,"showOn");if(p=="focus"||p=="both")b.focus(this._showDatepicker);if(p=="button"||p=="both"){p=this._get(j,"buttonText");var w=this._get(j,"buttonImage");j.trigger=d(this._get(j,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:w,alt:p,title:p}):d('<button type="button"></button>').addClass(this._triggerClass).html(w==
""?p:d("<img/>").attr({src:w,alt:p,title:p})));b[z?"before":"after"](j.trigger);j.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==b[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var j=new Date(2009,11,20),p=this._get(b,"dateFormat");if(p.match(/[DM]/)){var z=function(w){for(var E=0,K=0,Q=0;Q<w.length;Q++)if(w[Q].length>E){E=w[Q].length;K=Q}return K};j.setMonth(z(this._get(b,
p.match(/MM/)?"monthNames":"monthNamesShort")));j.setDate(z(this._get(b,p.match(/DD/)?"dayNames":"dayNamesShort"))+20-j.getDay())}b.input.attr("size",this._formatDate(b,j).length)}},_inlineDatepicker:function(b,j){var p=d(b);if(!p.hasClass(this.markerClassName)){p.addClass(this.markerClassName).append(j.dpDiv).bind("setData.datepicker",function(z,w,E){j.settings[w]=E}).bind("getData.datepicker",function(z,w){return this._get(j,w)});d.data(b,"datepicker",j);this._setDate(j,this._getDefaultDate(j),
true);this._updateDatepicker(j);this._updateAlternate(j);j.dpDiv.show()}},_dialogDatepicker:function(b,j,p,z,w){b=this._dialogInst;if(!b){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};d.data(this._dialogInput[0],"datepicker",b)}v(b.settings,z||{});
j=j&&j.constructor==Date?this._formatDate(b,j):j;this._dialogInput.val(j);this._pos=w?w.length?w:[w.pageX,w.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");b.settings.onSelect=p;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var j=d(b),p=d.data(b,"datepicker");if(j.hasClass(this.markerClassName)){var z=b.nodeName.toLowerCase();d.removeData(b,"datepicker");if(z=="input"){p.append.remove();p.trigger.remove();j.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
this._doKeyUp)}else if(z=="div"||z=="span")j.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(b){var j=d(b),p=d.data(b,"datepicker");if(j.hasClass(this.markerClassName)){var z=b.nodeName.toLowerCase();if(z=="input"){b.disabled=false;p.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(z=="div"||z=="span")j.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,
function(w){return w==b?null:w})}},_disableDatepicker:function(b){var j=d(b),p=d.data(b,"datepicker");if(j.hasClass(this.markerClassName)){var z=b.nodeName.toLowerCase();if(z=="input"){b.disabled=true;p.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(z=="div"||z=="span")j.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(w){return w==b?null:
w});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;for(var j=0;j<this._disabledInputs.length;j++)if(this._disabledInputs[j]==b)return true;return false},_getInst:function(b){try{return d.data(b,"datepicker")}catch(j){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,j,p){var z=this._getInst(b);if(arguments.length==2&&typeof j=="string")return j=="defaults"?d.extend({},d.datepicker._defaults):z?j=="all"?d.extend({},
z.settings):this._get(z,j):null;var w=j||{};if(typeof j=="string"){w={};w[j]=p}if(z){this._curInst==z&&this._hideDatepicker();var E=this._getDateDatepicker(b,true);v(z.settings,w);this._attachments(d(b),z);this._autoSize(z);this._setDateDatepicker(b,E);this._updateDatepicker(z)}},_changeDatepicker:function(b,j,p){this._optionDatepicker(b,j,p)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,j){if(b=this._getInst(b)){this._setDate(b,j);
this._updateDatepicker(b);this._updateAlternate(b)}},_getDateDatepicker:function(b,j){(b=this._getInst(b))&&!b.inline&&this._setDateFromField(b,j);return b?this._getDate(b):null},_doKeyDown:function(b){var j=d.datepicker._getInst(b.target),p=true,z=j.dpDiv.is(".ui-datepicker-rtl");j._keyEvent=true;if(d.datepicker._datepickerShowing)switch(b.keyCode){case 9:d.datepicker._hideDatepicker();p=false;break;case 13:p=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",j.dpDiv);p[0]?
d.datepicker._selectDay(b.target,j.selectedMonth,j.selectedYear,p[0]):d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(b.target,b.ctrlKey?-d.datepicker._get(j,"stepBigMonths"):-d.datepicker._get(j,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(b.target,b.ctrlKey?+d.datepicker._get(j,"stepBigMonths"):+d.datepicker._get(j,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)d.datepicker._clearDate(b.target);p=b.ctrlKey||
b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)d.datepicker._gotoToday(b.target);p=b.ctrlKey||b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)d.datepicker._adjustDate(b.target,z?+1:-1,"D");p=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)d.datepicker._adjustDate(b.target,b.ctrlKey?-d.datepicker._get(j,"stepBigMonths"):-d.datepicker._get(j,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)d.datepicker._adjustDate(b.target,-7,"D");p=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)d.datepicker._adjustDate(b.target,
z?-1:+1,"D");p=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)d.datepicker._adjustDate(b.target,b.ctrlKey?+d.datepicker._get(j,"stepBigMonths"):+d.datepicker._get(j,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)d.datepicker._adjustDate(b.target,+7,"D");p=b.ctrlKey||b.metaKey;break;default:p=false}else if(b.keyCode==36&&b.ctrlKey)d.datepicker._showDatepicker(this);else p=false;if(p){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var j=d.datepicker._getInst(b.target);if(d.datepicker._get(j,
"constrainInput")){j=d.datepicker._possibleChars(d.datepicker._get(j,"dateFormat"));var p=String.fromCharCode(b.charCode==o?b.keyCode:b.charCode);return b.ctrlKey||b.metaKey||p<" "||!j||j.indexOf(p)>-1}},_doKeyUp:function(b){b=d.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,d.datepicker._getFormatConfig(b))){d.datepicker._setDateFromField(b);d.datepicker._updateAlternate(b);d.datepicker._updateDatepicker(b)}}catch(j){d.datepicker.log(j)}return true},
_showDatepicker:function(b){b=b.target||b;if(b.nodeName.toLowerCase()!="input")b=d("input",b.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(b)||d.datepicker._lastInput==b)){var j=d.datepicker._getInst(b);d.datepicker._curInst&&d.datepicker._curInst!=j&&d.datepicker._curInst.dpDiv.stop(true,true);var p=d.datepicker._get(j,"beforeShow");v(j.settings,p?p.apply(b,[b,j]):{});j.lastVal=null;d.datepicker._lastInput=b;d.datepicker._setDateFromField(j);if(d.datepicker._inDialog)b.value="";if(!d.datepicker._pos){d.datepicker._pos=
d.datepicker._findPos(b);d.datepicker._pos[1]+=b.offsetHeight}var z=false;d(b).parents().each(function(){z|=d(this).css("position")=="fixed";return!z});if(z&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}p={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;j.dpDiv.empty();j.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(j);p=d.datepicker._checkOffset(j,
p,z);j.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":z?"fixed":"absolute",display:"none",left:p.left+"px",top:p.top+"px"});if(!j.inline){p=d.datepicker._get(j,"showAnim");var w=d.datepicker._get(j,"duration"),E=function(){d.datepicker._datepickerShowing=true;var K=j.dpDiv.find("iframe.ui-datepicker-cover");if(K.length){var Q=d.datepicker._getBorders(j.dpDiv);K.css({left:-Q[0],top:-Q[1],width:j.dpDiv.outerWidth(),height:j.dpDiv.outerHeight()})}};j.dpDiv.zIndex(d(b).zIndex()+1);d.effects&&
d.effects[p]?j.dpDiv.show(p,d.datepicker._get(j,"showOptions"),w,E):j.dpDiv[p||"show"](p?w:null,E);if(!p||!w)E();j.input.is(":visible")&&!j.input.is(":disabled")&&j.input.focus();d.datepicker._curInst=j}}},_updateDatepicker:function(b){var j=this,p=d.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b));var z=b.dpDiv.find("iframe.ui-datepicker-cover");z.length&&z.css({left:-p[0],top:-p[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()});b.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",
function(){d(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!j._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=
-1&&d(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();p=this._getNumberOfMonths(b);z=p[1];z>1?b.dpDiv.addClass("ui-datepicker-multi-"+z).css("width",17*z+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(p[0]!=1||p[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,
"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");b==d.datepicker._curInst&&d.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();if(b.yearshtml){var w=b.yearshtml;setTimeout(function(){w===b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml);w=b.yearshtml=null},0)}},_getBorders:function(b){var j=function(p){return{thin:1,medium:2,thick:3}[p]||p};return[parseFloat(j(b.css("border-left-width"))),parseFloat(j(b.css("border-top-width")))]},
_checkOffset:function(b,j,p){var z=b.dpDiv.outerWidth(),w=b.dpDiv.outerHeight(),E=b.input?b.input.outerWidth():0,K=b.input?b.input.outerHeight():0,Q=document.documentElement.clientWidth+d(document).scrollLeft(),ea=document.documentElement.clientHeight+d(document).scrollTop();j.left-=this._get(b,"isRTL")?z-E:0;j.left-=p&&j.left==b.input.offset().left?d(document).scrollLeft():0;j.top-=p&&j.top==b.input.offset().top+K?d(document).scrollTop():0;j.left-=Math.min(j.left,j.left+z>Q&&Q>z?Math.abs(j.left+
z-Q):0);j.top-=Math.min(j.top,j.top+w>ea&&ea>w?Math.abs(w+K):0);return j},_findPos:function(b){for(var j=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[j?"previousSibling":"nextSibling"];b=d(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var j=this._curInst;if(!(!j||b&&j!=d.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(j,"showAnim");var p=this._get(j,"duration"),z=function(){d.datepicker._tidyDialog(j);this._curInst=null};d.effects&&d.effects[b]?
j.dpDiv.hide(b,d.datepicker._get(j,"showOptions"),p,z):j.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?p:null,z);b||z();if(b=this._get(j,"onClose"))b.apply(j.input?j.input[0]:null,[j.input?j.input.val():"",j]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
_checkExternalClick:function(b){if(d.datepicker._curInst){b=d(b.target);b[0].id!=d.datepicker._mainDivId&&b.parents("#"+d.datepicker._mainDivId).length==0&&!b.hasClass(d.datepicker.markerClassName)&&!b.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(b,j,p){b=d(b);var z=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(z,j+(p=="M"?this._get(z,"showCurrentAtPos"):
0),p);this._updateDatepicker(z)}},_gotoToday:function(b){b=d(b);var j=this._getInst(b[0]);if(this._get(j,"gotoCurrent")&&j.currentDay){j.selectedDay=j.currentDay;j.drawMonth=j.selectedMonth=j.currentMonth;j.drawYear=j.selectedYear=j.currentYear}else{var p=new Date;j.selectedDay=p.getDate();j.drawMonth=j.selectedMonth=p.getMonth();j.drawYear=j.selectedYear=p.getFullYear()}this._notifyChange(j);this._adjustDate(b)},_selectMonthYear:function(b,j,p){b=d(b);var z=this._getInst(b[0]);z._selectingMonthYear=
false;z["selected"+(p=="M"?"Month":"Year")]=z["draw"+(p=="M"?"Month":"Year")]=parseInt(j.options[j.selectedIndex].value,10);this._notifyChange(z);this._adjustDate(b)},_clickMonthYear:function(b){var j=this._getInst(d(b)[0]);j.input&&j._selectingMonthYear&&setTimeout(function(){j.input.focus()},0);j._selectingMonthYear=!j._selectingMonthYear},_selectDay:function(b,j,p,z){var w=d(b);if(!(d(z).hasClass(this._unselectableClass)||this._isDisabledDatepicker(w[0]))){w=this._getInst(w[0]);w.selectedDay=w.currentDay=
d("a",z).html();w.selectedMonth=w.currentMonth=j;w.selectedYear=w.currentYear=p;this._selectDate(b,this._formatDate(w,w.currentDay,w.currentMonth,w.currentYear))}},_clearDate:function(b){b=d(b);this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(b,j){b=this._getInst(d(b)[0]);j=j!=null?j:this._formatDate(b);b.input&&b.input.val(j);this._updateAlternate(b);var p=this._get(b,"onSelect");if(p)p.apply(b.input?b.input[0]:null,[j,b]);else b.input&&b.input.trigger("change");if(b.inline)this._updateDatepicker(b);
else{this._hideDatepicker();this._lastInput=b.input[0];typeof b.input[0]!="object"&&b.input.focus();this._lastInput=null}},_updateAlternate:function(b){var j=this._get(b,"altField");if(j){var p=this._get(b,"altFormat")||this._get(b,"dateFormat"),z=this._getDate(b),w=this.formatDate(p,z,this._getFormatConfig(b));d(j).each(function(){d(this).val(w)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var j=
b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((j-b)/864E5)/7)+1},parseDate:function(b,j,p){if(b==null||j==null)throw"Invalid arguments";j=typeof j=="object"?j.toString():j+"";if(j=="")return null;for(var z=(p?p.shortYearCutoff:null)||this._defaults.shortYearCutoff,w=(p?p.dayNamesShort:null)||this._defaults.dayNamesShort,E=(p?p.dayNames:null)||this._defaults.dayNames,K=(p?p.monthNamesShort:null)||this._defaults.monthNamesShort,Q=(p?p.monthNames:null)||this._defaults.monthNames,
ea=p=-1,ca=-1,Z=-1,F=false,h=function(oa){(oa=za+1<b.length&&b.charAt(za+1)==oa)&&za++;return oa},aa=function(oa){var ia=h(oa);oa=RegExp("^\\d{1,"+(oa=="@"?14:oa=="!"?20:oa=="y"&&ia?4:oa=="o"?3:2)+"}");oa=j.substring(sa).match(oa);if(!oa)throw"Missing number at position "+sa;sa+=oa[0].length;return parseInt(oa[0],10)},V=function(oa,ia,Ia){oa=h(oa)?Ia:ia;for(ia=0;ia<oa.length;ia++)if(j.substr(sa,oa[ia].length).toLowerCase()==oa[ia].toLowerCase()){sa+=oa[ia].length;return ia+1}throw"Unknown name at position "+
sa;},ha=function(){if(j.charAt(sa)!=b.charAt(za))throw"Unexpected literal at position "+sa;sa++},sa=0,za=0;za<b.length;za++)if(F)if(b.charAt(za)=="'"&&!h("'"))F=false;else ha();else switch(b.charAt(za)){case "d":ca=aa("d");break;case "D":V("D",w,E);break;case "o":Z=aa("o");break;case "m":ea=aa("m");break;case "M":ea=V("M",K,Q);break;case "y":p=aa("y");break;case "@":var T=new Date(aa("@"));p=T.getFullYear();ea=T.getMonth()+1;ca=T.getDate();break;case "!":T=new Date((aa("!")-this._ticksTo1970)/1E4);
p=T.getFullYear();ea=T.getMonth()+1;ca=T.getDate();break;case "'":if(h("'"))ha();else F=true;break;default:ha()}if(p==-1)p=(new Date).getFullYear();else if(p<100)p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=z?0:-100);if(Z>-1){ea=1;ca=Z;do{z=this._getDaysInMonth(p,ea-1);if(ca<=z)break;ea++;ca-=z}while(1)}T=this._daylightSavingAdjust(new Date(p,ea-1,ca));if(T.getFullYear()!=p||T.getMonth()+1!=ea||T.getDate()!=ca)throw"Invalid date";return T},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",
RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(b,j,p){if(!j)return"";var z=(p?p.dayNamesShort:null)||this._defaults.dayNamesShort,w=(p?p.dayNames:null)||this._defaults.dayNames,E=(p?p.monthNamesShort:null)||this._defaults.monthNamesShort;p=(p?p.monthNames:null)||this._defaults.monthNames;
var K=function(h){(h=F+1<b.length&&b.charAt(F+1)==h)&&F++;return h},Q=function(h,aa,V){aa=""+aa;if(K(h))for(;aa.length<V;)aa="0"+aa;return aa},ea=function(h,aa,V,ha){return K(h)?ha[aa]:V[aa]},ca="",Z=false;if(j)for(var F=0;F<b.length;F++)if(Z)if(b.charAt(F)=="'"&&!K("'"))Z=false;else ca+=b.charAt(F);else switch(b.charAt(F)){case "d":ca+=Q("d",j.getDate(),2);break;case "D":ca+=ea("D",j.getDay(),z,w);break;case "o":ca+=Q("o",(j.getTime()-(new Date(j.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":ca+=
Q("m",j.getMonth()+1,2);break;case "M":ca+=ea("M",j.getMonth(),E,p);break;case "y":ca+=K("y")?j.getFullYear():(j.getYear()%100<10?"0":"")+j.getYear()%100;break;case "@":ca+=j.getTime();break;case "!":ca+=j.getTime()*1E4+this._ticksTo1970;break;case "'":if(K("'"))ca+="'";else Z=true;break;default:ca+=b.charAt(F)}return ca},_possibleChars:function(b){for(var j="",p=false,z=function(E){(E=w+1<b.length&&b.charAt(w+1)==E)&&w++;return E},w=0;w<b.length;w++)if(p)if(b.charAt(w)=="'"&&!z("'"))p=false;else j+=
b.charAt(w);else switch(b.charAt(w)){case "d":case "m":case "y":case "@":j+="0123456789";break;case "D":case "M":return null;case "'":if(z("'"))j+="'";else p=true;break;default:j+=b.charAt(w)}return j},_get:function(b,j){return b.settings[j]!==o?b.settings[j]:this._defaults[j]},_setDateFromField:function(b,j){if(b.input.val()!=b.lastVal){var p=this._get(b,"dateFormat"),z=b.lastVal=b.input?b.input.val():null,w,E;w=E=this._getDefaultDate(b);var K=this._getFormatConfig(b);try{w=this.parseDate(p,z,K)||
E}catch(Q){this.log(Q);z=j?"":z}b.selectedDay=w.getDate();b.drawMonth=b.selectedMonth=w.getMonth();b.drawYear=b.selectedYear=w.getFullYear();b.currentDay=z?w.getDate():0;b.currentMonth=z?w.getMonth():0;b.currentYear=z?w.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date))},_determineDate:function(b,j,p){var z=function(E){var K=new Date;K.setDate(K.getDate()+E);return K},w=function(E){try{return d.datepicker.parseDate(d.datepicker._get(b,
"dateFormat"),E,d.datepicker._getFormatConfig(b))}catch(K){}var Q=(E.toLowerCase().match(/^c/)?d.datepicker._getDate(b):null)||new Date,ea=Q.getFullYear(),ca=Q.getMonth();Q=Q.getDate();for(var Z=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,F=Z.exec(E);F;){switch(F[2]||"d"){case "d":case "D":Q+=parseInt(F[1],10);break;case "w":case "W":Q+=parseInt(F[1],10)*7;break;case "m":case "M":ca+=parseInt(F[1],10);Q=Math.min(Q,d.datepicker._getDaysInMonth(ea,ca));break;case "y":case "Y":ea+=parseInt(F[1],10);Q=Math.min(Q,
d.datepicker._getDaysInMonth(ea,ca));break}F=Z.exec(E)}return new Date(ea,ca,Q)};if(j=(j=j==null||j===""?p:typeof j=="string"?w(j):typeof j=="number"?isNaN(j)?p:z(j):new Date(j.getTime()))&&j.toString()=="Invalid Date"?p:j){j.setHours(0);j.setMinutes(0);j.setSeconds(0);j.setMilliseconds(0)}return this._daylightSavingAdjust(j)},_daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>12?b.getHours()+2:0);return b},_setDate:function(b,j,p){var z=!j,w=b.selectedMonth,E=b.selectedYear;
j=this._restrictMinMax(b,this._determineDate(b,j,new Date));b.selectedDay=b.currentDay=j.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=j.getMonth();b.drawYear=b.selectedYear=b.currentYear=j.getFullYear();if((w!=b.selectedMonth||E!=b.selectedYear)&&!p)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(z?"":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},
_generateHTML:function(b){var j=new Date;j=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate()));var p=this._get(b,"isRTL"),z=this._get(b,"showButtonPanel"),w=this._get(b,"hideIfNoPrevNext"),E=this._get(b,"navigationAsDateFormat"),K=this._getNumberOfMonths(b),Q=this._get(b,"showCurrentAtPos"),ea=this._get(b,"stepMonths"),ca=K[0]!=1||K[1]!=1,Z=this._daylightSavingAdjust(!b.currentDay?new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),F=this._getMinMaxDate(b,
"min"),h=this._getMinMaxDate(b,"max");Q=b.drawMonth-Q;var aa=b.drawYear;if(Q<0){Q+=12;aa--}if(h){var V=this._daylightSavingAdjust(new Date(h.getFullYear(),h.getMonth()-K[0]*K[1]+1,h.getDate()));for(V=F&&V<F?F:V;this._daylightSavingAdjust(new Date(aa,Q,1))>V;){Q--;if(Q<0){Q=11;aa--}}}b.drawMonth=Q;b.drawYear=aa;V=this._get(b,"prevText");V=!E?V:this.formatDate(V,this._daylightSavingAdjust(new Date(aa,Q-ea,1)),this._getFormatConfig(b));V=this._canAdjustMonth(b,-1,aa,Q)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+
r+".datepicker._adjustDate('#"+b.id+"', -"+ea+", 'M');\" title=\""+V+'"><span class="ui-icon ui-icon-circle-triangle-'+(p?"e":"w")+'">'+V+"</span></a>":w?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+V+'"><span class="ui-icon ui-icon-circle-triangle-'+(p?"e":"w")+'">'+V+"</span></a>";var ha=this._get(b,"nextText");ha=!E?ha:this.formatDate(ha,this._daylightSavingAdjust(new Date(aa,Q+ea,1)),this._getFormatConfig(b));w=this._canAdjustMonth(b,+1,aa,Q)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+
r+".datepicker._adjustDate('#"+b.id+"', +"+ea+", 'M');\" title=\""+ha+'"><span class="ui-icon ui-icon-circle-triangle-'+(p?"w":"e")+'">'+ha+"</span></a>":w?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+ha+'"><span class="ui-icon ui-icon-circle-triangle-'+(p?"w":"e")+'">'+ha+"</span></a>";ea=this._get(b,"currentText");ha=this._get(b,"gotoCurrent")&&b.currentDay?Z:j;ea=!E?ea:this.formatDate(ea,ha,this._getFormatConfig(b));E=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+
r+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";z=z?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(p?E:"")+(this._isInRange(b,ha)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+r+".datepicker._gotoToday('#"+b.id+"');\">"+ea+"</button>":"")+(p?"":E)+"</div>":"";E=parseInt(this._get(b,"firstDay"),10);E=isNaN(E)?0:E;ea=this._get(b,"showWeek");ha=this._get(b,"dayNames");this._get(b,
"dayNamesShort");var sa=this._get(b,"dayNamesMin"),za=this._get(b,"monthNames"),T=this._get(b,"monthNamesShort"),oa=this._get(b,"beforeShowDay"),ia=this._get(b,"showOtherMonths"),Ia=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var W=this._getDefaultDate(b),Y="",ga=0;ga<K[0];ga++){for(var Da="",ua=0;ua<K[1];ua++){var Ga=this._daylightSavingAdjust(new Date(aa,Q,b.selectedDay)),Aa=" ui-corner-all",Na="";if(ca){Na+='<div class="ui-datepicker-group';if(K[1]>1)switch(ua){case 0:Na+=
" ui-datepicker-group-first";Aa=" ui-corner-"+(p?"right":"left");break;case K[1]-1:Na+=" ui-datepicker-group-last";Aa=" ui-corner-"+(p?"left":"right");break;default:Na+=" ui-datepicker-group-middle";Aa="";break}Na+='">'}Na+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+Aa+'">'+(/all|left/.test(Aa)&&ga==0?p?w:V:"")+(/all|right/.test(Aa)&&ga==0?p?V:w:"")+this._generateMonthYearHeader(b,Q,aa,F,h,ga>0||ua>0,za,T)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var wa=
ea?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(Aa=0;Aa<7;Aa++){var Fa=(Aa+E)%7;wa+="<th"+((Aa+E+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+ha[Fa]+'">'+sa[Fa]+"</span></th>"}Na+=wa+"</tr></thead><tbody>";wa=this._getDaysInMonth(aa,Q);if(aa==b.selectedYear&&Q==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,wa);Aa=(this._getFirstDayOfMonth(aa,Q)-E+7)%7;wa=ca?6:Math.ceil((Aa+wa)/7);Fa=this._daylightSavingAdjust(new Date(aa,Q,1-Aa));for(var Ya=
0;Ya<wa;Ya++){Na+="<tr>";var $a=!ea?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(Fa)+"</td>";for(Aa=0;Aa<7;Aa++){var Ta=oa?oa.apply(b.input?b.input[0]:null,[Fa]):[true,""],Ba=Fa.getMonth()!=Q,ra=Ba&&!Ia||!Ta[0]||F&&Fa<F||h&&Fa>h;$a+='<td class="'+((Aa+E+6)%7>=5?" ui-datepicker-week-end":"")+(Ba?" ui-datepicker-other-month":"")+(Fa.getTime()==Ga.getTime()&&Q==b.selectedMonth&&b._keyEvent||W.getTime()==Fa.getTime()&&W.getTime()==Ga.getTime()?" "+this._dayOverClass:"")+(ra?" "+
this._unselectableClass+" ui-state-disabled":"")+(Ba&&!ia?"":" "+Ta[1]+(Fa.getTime()==Z.getTime()?" "+this._currentClass:"")+(Fa.getTime()==j.getTime()?" ui-datepicker-today":""))+'"'+((!Ba||ia)&&Ta[2]?' title="'+Ta[2]+'"':"")+(ra?"":' onclick="DP_jQuery_'+r+".datepicker._selectDay('#"+b.id+"',"+Fa.getMonth()+","+Fa.getFullYear()+', this);return false;"')+">"+(Ba&&!ia?"&#xa0;":ra?'<span class="ui-state-default">'+Fa.getDate()+"</span>":'<a class="ui-state-default'+(Fa.getTime()==j.getTime()?" ui-state-highlight":
"")+(Fa.getTime()==Z.getTime()?" ui-state-active":"")+(Ba?" ui-priority-secondary":"")+'" href="#">'+Fa.getDate()+"</a>")+"</td>";Fa.setDate(Fa.getDate()+1);Fa=this._daylightSavingAdjust(Fa)}Na+=$a+"</tr>"}Q++;if(Q>11){Q=0;aa++}Na+="</tbody></table>"+(ca?"</div>"+(K[0]>0&&ua==K[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");Da+=Na}Y+=Da}Y+=z+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
"");b._keyEvent=false;return Y},_generateMonthYearHeader:function(b,j,p,z,w,E,K,Q){var ea=this._get(b,"changeMonth"),ca=this._get(b,"changeYear"),Z=this._get(b,"showMonthAfterYear"),F='<div class="ui-datepicker-title">',h="";if(E||!ea)h+='<span class="ui-datepicker-month">'+K[j]+"</span>";else{K=z&&z.getFullYear()==p;var aa=w&&w.getFullYear()==p;h+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+r+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+r+".datepicker._clickMonthYear('#"+
b.id+"');\">";for(var V=0;V<12;V++)if((!K||V>=z.getMonth())&&(!aa||V<=w.getMonth()))h+='<option value="'+V+'"'+(V==j?' selected="selected"':"")+">"+Q[V]+"</option>";h+="</select>"}Z||(F+=h+(E||!(ea&&ca)?"&#xa0;":""));b.yearshtml="";if(E||!ca)F+='<span class="ui-datepicker-year">'+p+"</span>";else{Q=this._get(b,"yearRange").split(":");var ha=(new Date).getFullYear();K=function(sa){sa=sa.match(/c[+-].*/)?p+parseInt(sa.substring(1),10):sa.match(/[+-].*/)?ha+parseInt(sa,10):parseInt(sa,10);return isNaN(sa)?
ha:sa};j=K(Q[0]);Q=Math.max(j,K(Q[1]||""));j=z?Math.max(j,z.getFullYear()):j;Q=w?Math.min(Q,w.getFullYear()):Q;for(b.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+r+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+r+".datepicker._clickMonthYear('#"+b.id+"');\">";j<=Q;j++)b.yearshtml+='<option value="'+j+'"'+(j==p?' selected="selected"':"")+">"+j+"</option>";b.yearshtml+="</select>";if(d.browser.mozilla)F+='<select class="ui-datepicker-year"><option value="'+
p+'" selected="selected">'+p+"</option></select>";else{F+=b.yearshtml;b.yearshtml=null}}F+=this._get(b,"yearSuffix");if(Z)F+=(E||!(ea&&ca)?"&#xa0;":"")+h;F+="</div>";return F},_adjustInstDate:function(b,j,p){var z=b.drawYear+(p=="Y"?j:0),w=b.drawMonth+(p=="M"?j:0);j=Math.min(b.selectedDay,this._getDaysInMonth(z,w))+(p=="D"?j:0);z=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(z,w,j)));b.selectedDay=z.getDate();b.drawMonth=b.selectedMonth=z.getMonth();b.drawYear=b.selectedYear=z.getFullYear();
if(p=="M"||p=="Y")this._notifyChange(b)},_restrictMinMax:function(b,j){var p=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");j=p&&j<p?p:j;return b&&j>b?b:j},_notifyChange:function(b){var j=this._get(b,"onChangeMonthYear");if(j)j.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,j){return this._determineDate(b,this._get(b,j+"Date"),
null)},_getDaysInMonth:function(b,j){return 32-(new Date(b,j,32)).getDate()},_getFirstDayOfMonth:function(b,j){return(new Date(b,j,1)).getDay()},_canAdjustMonth:function(b,j,p,z){var w=this._getNumberOfMonths(b);p=this._daylightSavingAdjust(new Date(p,z+(j<0?j:w[0]*w[1]),1));j<0&&p.setDate(this._getDaysInMonth(p.getFullYear(),p.getMonth()));return this._isInRange(b,p)},_isInRange:function(b,j){var p=this._getMinMaxDate(b,"min");b=this._getMinMaxDate(b,"max");return(!p||j.getTime()>=p.getTime())&&
(!b||j.getTime()<=b.getTime())},_getFormatConfig:function(b){var j=this._get(b,"shortYearCutoff");j=typeof j!="string"?j:(new Date).getFullYear()%100+parseInt(j,10);return{shortYearCutoff:j,dayNamesShort:this._get(b,"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,j,p,z){if(!j){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}j=j?typeof j=="object"?j:
this._daylightSavingAdjust(new Date(z,p,j)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),j,this._getFormatConfig(b))}});d.fn.datepicker=function(b){if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var j=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return d.datepicker["_"+
b+"Datepicker"].apply(d.datepicker,[this[0]].concat(j));if(b=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+b+"Datepicker"].apply(d.datepicker,[this[0]].concat(j));return this.each(function(){typeof b=="string"?d.datepicker["_"+b+"Datepicker"].apply(d.datepicker,[this].concat(j)):d.datepicker._attachDatepicker(this,b)})};d.datepicker=new u;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.7";window["DP_jQuery_"+r]=
d})(jQuery);(function(d){d.widget("ui.selectmenu",{getter:"value",version:"1.8",eventPrefix:"selectmenu",options:{transferClasses:true,style:"dropdown",positionOptions:{my:"left top",at:"left bottom",offset:null},width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null,bgImage:function(){},wrapperElement:""},_create:function(){var o=this,u=this.options,v=this.element.attr("id")||"ui-selectmenu-"+Math.random().toString(16).slice(2,10);this.ids=[v+"-button",v+"-menu"];this._safemouseup=true;
this.newelement=d('<a class="'+this.widgetBaseClass+' ui-widget ui-state-default ui-corner-all" id="'+this.ids[0]+'" role="button" href="#" tabindex="0" aria-haspopup="true" aria-owns="'+this.ids[1]+'"></a>').insertAfter(this.element);this.newelement.wrap(u.wrapperElement);(v=this.element.attr("tabindex"))&&this.newelement.attr("tabindex",v);this.newelement.data("selectelement",this.element);this.selectmenuIcon=d('<span class="'+this.widgetBaseClass+'-icon ui-icon"></span>').prependTo(this.newelement).addClass(u.style==
"popup"?"ui-icon-triangle-2-n-s":"ui-icon-triangle-1-s");d("label[for="+this.element.attr("id")+"]").attr("for",this.ids[0]).bind("click",function(){o.newelement[0].focus();return false});this.newelement.bind("mousedown",function(w){o._toggle(w,true);if(u.style=="popup"){o._safemouseup=false;setTimeout(function(){o._safemouseup=true},300)}return false}).bind("click",function(){return false}).keydown(function(w){var E=true;switch(w.keyCode){case d.ui.keyCode.ENTER:E=true;break;case d.ui.keyCode.SPACE:E=
false;o._toggle(w);break;case d.ui.keyCode.UP:case d.ui.keyCode.LEFT:E=false;o._moveSelection(-1);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.RIGHT:E=false;o._moveSelection(1);break;case d.ui.keyCode.TAB:E=true;break;default:E=true;o._typeAhead(w.keyCode,"mouseup");break}return E}).bind("mouseover focus",function(){u.disabled||d(this).addClass(o.widgetBaseClass+"-focus ui-state-hover")}).bind("mouseout blur",function(){u.disabled||d(this).removeClass(o.widgetBaseClass+"-focus ui-state-hover")});
d(document).mousedown(function(w){o.close(w)});this.element.click(function(){this._refreshValue()}).focus(function(){this.newelement&&this.newelement[0].focus()});this.list=d('<ul class="'+o.widgetBaseClass+"-menu ui-widget ui-widget-content"+(u.style=="dropdown"?" ui-corner-bottom":" ui-corner-all")+'" aria-hidden="true" role="listbox" aria-labelledby="'+this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo("body");this.list.wrap(u.wrapperElement);var r=[];this.element.find("option").each(function(){r.push({value:d(this).attr("value"),
text:o._formatText(jQuery(this).text()),selected:d(this).attr("selected"),classes:d(this).attr("class"),parentOptGroup:d(this).parent("optgroup").attr("label"),bgImage:u.bgImage.call(d(this))})});var b=o.options.style=="popup"?" ui-state-active":"";for(v=0;v<r.length;v++){var j=d('<li role="presentation"><a href="#" tabindex="-1" role="option" aria-selected="false">'+r[v].text+"</a></li>").data("index",v).addClass(r[v].classes).data("optionClasses",r[v].classes||"").mouseup(function(w){if(o._safemouseup){var E=
d(this).data("index")!=o._selectedIndex();o.index(d(this).data("index"));o.select(w);E&&o.change(w);o.close(w,true)}return false}).click(function(){return false}).bind("mouseover focus",function(){o._selectedOptionLi().addClass(b);o._focusedOptionLi().removeClass(o.widgetBaseClass+"-item-focus ui-state-hover");d(this).removeClass("ui-state-active").addClass(o.widgetBaseClass+"-item-focus ui-state-hover")}).bind("mouseout blur",function(){d(this).is(o._selectedOptionLi().selector)&&d(this).addClass(b);
d(this).removeClass(o.widgetBaseClass+"-item-focus ui-state-hover")});if(r[v].parentOptGroup){var p=o.widgetBaseClass+"-group-"+r[v].parentOptGroup.replace(/[^a-zA-Z0-9]/g,"");this.list.find("li."+p).size()?this.list.find("li."+p+":last ul").append(j):d('<li role="presentation" class="'+o.widgetBaseClass+"-group "+p+'"><span class="'+o.widgetBaseClass+'-group-label">'+r[v].parentOptGroup+"</span><ul></ul></li>").appendTo(this.list).find("ul").append(j)}else j.appendTo(this.list);this.list.bind("mousedown mouseup",
function(){return false});if(u.icons)for(var z in u.icons)if(j.is(u.icons[z].find)){j.data("optionClasses",r[v].classes+" "+o.widgetBaseClass+"-hasIcon").addClass(o.widgetBaseClass+"-hasIcon");p=u.icons[z].icon||"";j.find("a:eq(0)").prepend('<span class="'+o.widgetBaseClass+"-item-icon ui-icon "+p+'"></span>');r[v].bgImage&&j.find("span").css("background-image",r[v].bgImage)}}this.list.find("li:last").addClass("ui-corner-bottom");u.style=="popup"&&this.list.find("li:first").addClass("ui-corner-top");
if(u.transferClasses){z=this.element.attr("class")||"";this.newelement.add(this.list).addClass(z)}z=this.element.width();this.newelement.width(u.width?u.width:z);u.style=="dropdown"?this.list.width(u.menuWidth?u.menuWidth:u.width?u.width:z):this.list.width(u.menuWidth?u.menuWidth:u.width?u.width-u.handleWidth:z-u.handleWidth);if(u.maxHeight)u.maxHeight<this.list.height()&&this.list.height(u.maxHeight);else if(!u.format&&d(window).height()/3<this.list.height()){u.maxHeight=d(window).height()/3;this.list.height(u.maxHeight)}this._optionLis=
this.list.find("li:not(."+o.widgetBaseClass+"-group)");this.list.keydown(function(w){var E=true;switch(w.keyCode){case d.ui.keyCode.UP:case d.ui.keyCode.LEFT:E=false;o._moveFocus(-1);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.RIGHT:E=false;o._moveFocus(1);break;case d.ui.keyCode.HOME:E=false;o._moveFocus(":first");break;case d.ui.keyCode.PAGE_UP:E=false;o._scrollPage("up");break;case d.ui.keyCode.PAGE_DOWN:E=false;o._scrollPage("down");break;case d.ui.keyCode.END:E=false;o._moveFocus(":last");
break;case d.ui.keyCode.ENTER:case d.ui.keyCode.SPACE:E=false;o.close(w,true);d(w.target).parents("li:eq(0)").trigger("mouseup");break;case d.ui.keyCode.TAB:E=true;o.close(w,true);break;case d.ui.keyCode.ESCAPE:E=false;o.close(w,true);break}return E});if(u.style=="dropdown"){this.newelement.addClass(o.widgetBaseClass+"-dropdown");this.list.addClass(o.widgetBaseClass+"-menu-dropdown")}else{this.newelement.addClass(o.widgetBaseClass+"-popup");this.list.addClass(o.widgetBaseClass+"-menu-popup")}this.newelement.prepend('<span class="'+
o.widgetBaseClass+'-status">'+r[this._selectedIndex()].text+"</span>");this.element.hide();this.element.attr("disabled")==true&&this.disable();this.index(this._selectedIndex());window.setTimeout(function(){o._refreshPosition()},200);d(window).resize(function(){o._refreshPosition()})},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled").unbind("click");d("label[for="+this.newelement.attr("id")+
"]").attr("for",this.element.attr("id")).unbind("click");this.newelement.remove();this.list.remove();this.element.show();d.Widget.prototype.destroy.apply(this,arguments)},_typeAhead:function(o,u){var v=this;if(!v._prevChar)v._prevChar=["",0];var r=String.fromCharCode(o);c=r.toLowerCase();var b=false;this.list.find("li a").each(function(j){if(!b){var p=d(this).text();if(p.indexOf(r)==0||p.indexOf(c)==0)if(v._prevChar[0]==r){if(v._prevChar[1]<j){b=true;d(this).trigger(u);v._prevChar[1]=j}}else{b=true;
d(this).trigger(u);v._prevChar[1]=j}}});this._prevChar[0]=r},_uiHash:function(){var o=this.index();return{index:o,option:d("option",this.element).get(o),value:this.element[0].value}},open:function(o){if(this.newelement.attr("aria-disabled")!="true"){this._refreshPosition();this._closeOthers(o);this.newelement.addClass("ui-state-active");this.options.wrapperElement?this.list.parent().appendTo("body"):this.list.appendTo("body");this.list.addClass(this.widgetBaseClass+"-open").attr("aria-hidden",false).find("li:not(."+
this.widgetBaseClass+"-group):eq("+this._selectedIndex()+") a")[0].focus();this.options.style=="dropdown"&&this.newelement.removeClass("ui-corner-all").addClass("ui-corner-top");this._refreshPosition();this._trigger("open",o,this._uiHash())}},close:function(o,u){if(this.newelement.is(".ui-state-active")){this.newelement.removeClass("ui-state-active");this.list.attr("aria-hidden",true).removeClass(this.widgetBaseClass+"-open");this.options.style=="dropdown"&&this.newelement.removeClass("ui-corner-top").addClass("ui-corner-all");
u&&this.newelement.focus();this._trigger("close",o,this._uiHash())}},change:function(o){this.element.trigger("change");this._trigger("change",o,this._uiHash())},select:function(o){this._trigger("select",o,this._uiHash())},_closeOthers:function(o){d("."+this.widgetBaseClass+".ui-state-active").not(this.newelement).each(function(){d(this).data("selectelement").selectmenu("close",o)});d("."+this.widgetBaseClass+".ui-state-hover").trigger("mouseout")},_toggle:function(o,u){this.list.is("."+this.widgetBaseClass+
"-open")?this.close(o,u):this.open(o)},_formatText:function(o){return this.options.format?this.options.format(o):o},_selectedIndex:function(){return this.element[0].selectedIndex},_selectedOptionLi:function(){return this._optionLis.eq(this._selectedIndex())},_focusedOptionLi:function(){return this.list.find("."+this.widgetBaseClass+"-item-focus")},_moveSelection:function(o){return this._optionLis.eq(parseInt(this._selectedOptionLi().data("index"),10)+o).trigger("mouseup")},_moveFocus:function(o){o=
isNaN(o)?parseInt(this._optionLis.filter(o).data("index"),10):parseInt(this._focusedOptionLi().data("index")||0,10)+o;if(o<0)o=0;if(o>this._optionLis.size()-1)o=this._optionLis.size()-1;var u=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1E3);this._focusedOptionLi().find("a:eq(0)").attr("id","");this._optionLis.eq(o).find("a:eq(0)").attr("id",u).focus();this.list.attr("aria-activedescendant",u)},_scrollPage:function(o){var u=Math.floor(this.list.outerHeight()/this.list.find("li:first").outerHeight());
u=o=="up"?-u:u;this._moveFocus(u)},_setOption:function(o,u){this.options[o]=u;if(o=="disabled"){this.close();this.element.add(this.newelement).add(this.list)[u?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",u)}},index:function(o){if(arguments.length){this.element[0].selectedIndex=o;this._refreshValue()}else return this._selectedIndex()},value:function(o){if(arguments.length)if(typeof o=="number")this.index(o);else{if(typeof o=="string"){this.element[0].value=
o;this._refreshValue()}}else return this.element[0].value},_refreshValue:function(){var o=this.options.style=="popup"?" ui-state-active":"",u=this.widgetBaseClass+"-item-"+Math.round(Math.random()*1E3);this.list.find("."+this.widgetBaseClass+"-item-selected").removeClass(this.widgetBaseClass+"-item-selected"+o).find("a").attr("aria-selected","false").attr("id","");this._selectedOptionLi().addClass(this.widgetBaseClass+"-item-selected"+o).find("a").attr("aria-selected","true").attr("id",u);o=this.newelement.data("optionClasses")?
this.newelement.data("optionClasses"):"";var v=this._selectedOptionLi().data("optionClasses")?this._selectedOptionLi().data("optionClasses"):"";this.newelement.removeClass(o).data("optionClasses",v).addClass(v).find("."+this.widgetBaseClass+"-status").html(this._selectedOptionLi().find("a:eq(0)").html());this.list.attr("aria-activedescendant",u)},_refreshPosition:function(){var o=this.options;if(o.style=="popup"&&!o.positionOptions.offset){var u=this.list.find("li:not(.ui-selectmenu-group):eq("+this._selectedIndex()+
")");u="0 -"+(u.outerHeight()+u.offset().top-this.list.offset().top)}this.list.css({zIndex:this.element.zIndex()}).position({of:o.positionOptions.of||this.newelement,my:o.positionOptions.my,at:o.positionOptions.at,offset:o.positionOptions.offset||u})}})})(jQuery);(function(d){jQuery.fn.rel=function(){return d(this).attr("data-rel")!==undefined?d(this).attr("data-rel"):d(this).attr("rel")};jQuery.fn.fixPlaceholder=function(){Modernizr.input.placeholder||d(this).each(function(){var o=d(this),u=o.attr("placeholder"),v=o.parent("form");if(u!==null){o.val()===""&&o.val(u);o.focus(function(){o.val()===u&&o.val("")}).blur(function(){o.val()===""&&o.val(u)});v.submit(function(){o.val()===u&&o.val("")})}})};jQuery.fn.makeButton=function(o){var u={ieEmbedImage:false,
buttonClass:"btn"};d.extend(u,o);d(this).each(function(){var v=d(this),r,b;if(d.browser.msie){r=d('<a href="#" />');b=null;if(u.ieEmbedImage){b=d('<img src="/templates/hervis/resources/stylesheets/images/none.gif" />');b.attr("alt",d(this).attr("value"))}else{b=d("<span />");b.text(d(this).attr("value"))}r.attr({"class":d(this).attr("class"),tabindex:d(this).attr("tabindex")});r.append(b);r.click(function(j){j.preventDefault();v.click()});v.before(r).hide()}else{r=d('<button type="submit" />');b=
d("<span />");b.text(d(this).attr("value"));r.attr({name:d(this).attr("name"),value:"1","class":d(this).attr("class"),tabindex:d(this).attr("tabindex")});v.attr("id")&&r.attr("id",v.attr("id"));r.append(b);d(this).replaceWith(r)}r.addClass(u.buttonClass)})}})(jQuery);(function(d){d.fn.jTruncate=function(o){o=d.extend({length:300,minTrail:20,moreText:"more",lessText:"less",ellipsisText:"...",moreAni:"",lessAni:""},o);return this.each(function(){obj=d(this);var u=obj.html();if(u.length>o.length+o.minTrail){var v=u.indexOf(" ",o.length);if(v!=-1){v=u.indexOf(" ",o.length);var r=u.substring(0,v);u=u.substring(v,u.length-1);obj.html(r+'<span class="truncate_ellipsis">'+o.ellipsisText+'</span><span class="truncate_more">'+u+"</span>");obj.find(".truncate_more").css("display",
"none");obj.append('<a class="truncate_more_link expand">'+o.moreText+"</a>");var b=d(".truncate_more_link",obj),j=d(".truncate_more",obj),p=d(".truncate_ellipsis",obj);b.click(function(){if(b.text()==o.moreText){j.show(o.moreAni);b.text(o.lessText);b.removeClass("expand").addClass("reduce");p.css("display","none")}else{j.hide(o.lessAni);b.text(o.moreText);b.removeClass("reduce").addClass("expand");p.css("display","inline")}return false})}}})}})(jQuery);document.createElement("nav");document.createElement("header");document.createElement("footer");document.createElement("section");document.createElement("aside");
$(document).ready(function(){if($.cookie("SfLogin")){$(".if-loggedout").hide();$(".if-loggedin").css("display","inline-block")}else{$(".if-loggedout").css("display","inline-block");$(".if-loggedin").hide()}$.browser.msie&&parseInt($.browser.version)===6&&$(":first-child").addClass("first-child");$("#additionalinfo a[rel]").overlay({mask:{color:"#333333",loadSpeed:200,opacity:0.8},onBeforeLoad:function(){$(".consultingWrap").attr("src",this.getTrigger().attr("href"))}});$("#mainbar a[rel]").overlay({mask:{color:"#333333",
loadSpeed:200,opacity:0.8},onBeforeLoad:function(){$(".consultingWrap").attr("src",this.getTrigger().attr("href"))}});$(".overlay-opener[rel]").overlay({mask:{color:"#333333",loadSpeed:200,opacity:0.8}});$(".s_termin a[rel]").overlay({mask:{color:"#333333",loadSpeed:200,opacity:0.8},onBeforeLoad:function(){$(".consultingWrap").attr("src",this.getTrigger().attr("href"))}});$(".subsidiarygallery a[rel]").overlay({mask:{color:"#333333",loadSpeed:200,opacity:0.8},onLoad:function(){var d=$("#subsidiarygallery .scrollable").scrollable({onSeek:function(){$("#gallery_current").html(this.getIndex()+
1)},api:true});$("#gallery_current").html(d.getIndex()+1);$("#gallery_size").html(d.getSize())}});$("#suggest-product-href[rel]").overlay({mask:{color:"#333333",loadSpeed:200,opacity:0.8}});$(".job_list_elem .description").jTruncate({length:350,minTrail:100,moreText:"mehr",lessText:"weniger",ellipsisText:" ... "});$("#datepicker").datepicker({showOn:"button",buttonImage:"/static/templates/finke/resources/images/calendar.png",buttonImageOnly:true});$("#searchbox .searchbox-categories").selectmenu({width:"104px",
menuWidth:200});$(".slider").each(function(){var d=$(".container",this),o=$("li",d),u=0,v=0;o.each(function(){var r=$(this),b=$(this).outerHeight(true);r=r.outerWidth(true);if(b>u)u=b;if(r>v)v=r});$(">ul",d).css({position:"absolute"}).width(v*o.length);d.height(u).scrollable({circular:false,mousewheel:false})});$("input[type=submit]").makeButton();$("input[type=text], input[type=search], textarea").fixPlaceholder();$("*[data-colors]").colormarkers({markerContainer:".image"});$("img[hspace]").each(function(){var d=
$(this).attr("hspace"),o=$(this).attr("align"),u=parseInt($(this).css("marginLeft")),v=parseInt($(this).css("marginRight"));$(this).attr("hspace",0);if(o==="left")u=-d;else if(o==="right")v=-d;$(this).css({marginLeft:d+u,marginRight:d+v})});$("img[vspace]").each(function(){var d=$(this).attr("vspace"),o=parseInt($(this).css("marginTop")),u=parseInt($(this).css("marginBottom"));$(this).attr("vspace",0);$(this).css({marginTop:d+o,marginBottom:d+u})});$(".pagecontent table[cellpadding]").each(function(){var d=
parseInt($(this).attr("cellpadding")),o=parseInt($(this).attr("cellspacing"));$(this).attr("cellpadding",0);$(this).attr("cellspacing",0);$("td",this).css({padding:d+o+"px"});$("th",this).css({padding:d+o+"px"})});$(".htmlteaser td[valign]").each(function(){var d=$(this).attr("valign");$(this).attr("valign","");$(this).css({"vertical-align":d})})});function getSliderStartPosition(d,o,u){if(/^(?:\d+(?:\.\d+)?)-(?:\d+(?:\.\d+)?)$/.test(d))return d.split("-");return[o,Math.round(u)]};/*
 
 jQuery Tools 1.2.5 Tooltip - UI essentials

 NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.

 http://flowplayer.org/tools/tooltip/

 Since: November 2008
 Date:    Wed Sep 22 06:02:10 2010 +0000 
*/
(function(d){function o(r,b,j){var p=j.relative?r.position().top:r.offset().top,z=j.relative?r.position().left:r.offset().left,w=j.position[0];p-=b.outerHeight()-j.offset[0];z+=r.outerWidth()+j.offset[1];if(/iPad/i.test(navigator.userAgent))p-=d(window).scrollTop();var E=b.outerHeight()+r.outerHeight();if(w=="center")p+=E/2;if(w=="bottom")p+=E;w=j.position[1];r=b.outerWidth()+r.outerWidth();if(w=="center")z-=r/2;if(w=="left")z-=r;return{top:p,left:z}}function u(r,b){var j=this,p=r.add(j),z,w=0,E=
0,K=r.attr("title"),Q=r.attr("data-tooltip"),ea=v[b.effect],ca,Z=r.is(":input"),F=Z&&r.is(":checkbox, :radio, select, :button, :submit"),h=r.attr("type"),aa=b.events[h]||b.events[Z?F?"widget":"input":"def"];if(!ea)throw'Nonexistent effect "'+b.effect+'"';aa=aa.split(/,\s*/);if(aa.length!=2)throw"Tooltip: bad events configuration for "+h;r.bind(aa[0],function(V){clearTimeout(w);if(b.predelay)E=setTimeout(function(){j.show(V)},b.predelay);else j.show(V)}).bind(aa[1],function(V){clearTimeout(E);if(b.delay)w=
setTimeout(function(){j.hide(V)},b.delay);else j.hide(V)});if(K&&b.cancelDefault){r.removeAttr("title");r.data("title",K)}d.extend(j,{show:function(V){if(!z){if(Q)z=d(Q);else if(b.tip)z=d(b.tip).eq(0);else if(K)z=d(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(K);else{z=r.next();z.length||(z=r.parent().next())}if(!z.length)throw"Cannot find tooltip for "+r;}if(j.isShown())return j;z.stop(true,true);var ha=o(r,z,b);b.tip&&z.html(r.data("title"));V=V||d.Event();V.type="onBeforeShow";
p.trigger(V,[ha]);if(V.isDefaultPrevented())return j;ha=o(r,z,b);z.css({position:"absolute",top:ha.top,left:ha.left});ca=true;ea[0].call(j,function(){V.type="onShow";ca="full";p.trigger(V)});ha=b.events.tooltip.split(/,\s*/);if(!z.data("__set")){z.bind(ha[0],function(){clearTimeout(w);clearTimeout(E)});ha[1]&&!r.is("input:not(:checkbox, :radio), textarea")&&z.bind(ha[1],function(sa){sa.relatedTarget!=r[0]&&r.trigger(aa[1].split(" ")[0])});z.data("__set",true)}return j},hide:function(V){if(!z||!j.isShown())return j;
V=V||d.Event();V.type="onBeforeHide";p.trigger(V);if(!V.isDefaultPrevented()){ca=false;v[b.effect][1].call(j,function(){V.type="onHide";p.trigger(V)});return j}},isShown:function(V){return V?ca=="full":ca},getConf:function(){return b},getTip:function(){return z},getTrigger:function(){return r}});d.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(V,ha){d.isFunction(b[ha])&&d(j).bind(ha,b[ha]);j[ha]=function(sa){sa&&d(j).bind(ha,sa);return j}})}d.tools=d.tools||{version:"1.2.5"};d.tools.tooltip=
{conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(r,b,j){v[r]=[b,j]}};var v={toggle:[function(r){var b=this.getConf(),j=this.getTip();b=b.opacity;b<1&&j.css({opacity:b});j.show();r.call()},function(r){this.getTip().hide();
r.call()}],fade:[function(r){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,r)},function(r){this.getTip().fadeOut(this.getConf().fadeOutSpeed,r)}]};d.fn.tooltip=function(r){var b=this.data("tooltip");if(b)return b;r=d.extend(true,{},d.tools.tooltip.conf,r);if(typeof r.position=="string")r.position=r.position.split(/,?\s/);this.each(function(){b=new u(d(this),r);d(this).data("tooltip",b)});return r.api?b:this}})(jQuery);(function(d){function o(v,r,b,j){if(!r.busy){var p=v[0].parentNode,z=v[r.currSlide],w=v[r.nextSlide];if(!(p.cycleTimeout===0&&!b)){if(b||!p.cyclePause){r.before.length&&d.each(r.before,function(E,K){K.apply(w,[z,w,r,j])});b=function(){d.browser.msie&&this.style.removeAttribute("filter");d.each(r.after,function(E,K){K.apply(w,[z,w,r,j])})};if(r.nextSlide!=r.currSlide){r.busy=1;d.fn.cycle.custom(z,w,r,b)}b=r.nextSlide+1==v.length;r.nextSlide=b?0:r.nextSlide+1;r.currSlide=b?v.length-1:r.nextSlide-1}if(r.timeout)p.cycleTimeout=
setTimeout(function(){o(v,r,0,!r.rev)},r.timeout)}}}function u(v,r,b){var j=v[0].parentNode,p=j.cycleTimeout;if(p){clearTimeout(p);j.cycleTimeout=0}r.nextSlide=r.currSlide+b;if(r.nextSlide<0)r.nextSlide=v.length-1;else if(r.nextSlide>=v.length)r.nextSlide=0;o(v,r,1,b>=0);return false}d.fn.cycle=function(v){return this.each(function(){v=v||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var r=d(this),b=v.slideExpr?d(v.slideExpr,this):r.children(),j=b.get();
if(j.length<2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+j.length);else{var p=d.extend({},d.fn.cycle.defaults,v||{},d.metadata?r.metadata():d.meta?r.data():{});p.before=p.before?[p.before]:[];p.after=p.after?[p.after]:[];p.after.unshift(function(){p.busy=0});var z=this.className;p.width=parseInt((z.match(/w:(\d+)/)||[])[1])||p.width;p.height=parseInt((z.match(/h:(\d+)/)||[])[1])||p.height;p.timeout=parseInt((z.match(/t:(\d+)/)||[])[1])||p.timeout;r.css("position")==
"static"&&r.css("position","relative");p.width&&r.width(p.width);p.height&&p.height!="auto"&&r.height(p.height);b.css({position:"absolute",top:0,left:0}).hide().each(function(w){d(this).css("z-index",j.length-w)});d(j[0]).css("opacity",1).show();d.browser.msie&&j[0].style.removeAttribute("filter");p.fit&&p.width&&b.width(p.width);p.fit&&p.height&&p.height!="auto"&&b.height(p.height);p.pause&&r.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});d.fn.cycle.transitions.fade(r,b,p);b.each(function(){var w=
d(this);this.cycleH=p.fit&&p.height?p.height:w.height();this.cycleW=p.fit&&p.width?p.width:w.width()});b.not(":eq(0)").css({opacity:0});p.cssFirst&&d(b[0]).css(p.cssFirst);if(p.timeout){if(p.speed.constructor==String)p.speed={slow:600,fast:200}[p.speed]||400;for(p.sync||(p.speed/=2);p.timeout-p.speed<250;)p.timeout+=p.speed}p.speedIn=p.speed;p.speedOut=p.speed;p.slideCount=j.length;p.currSlide=0;p.nextSlide=1;r=b[0];p.before.length&&p.before[0].apply(r,[r,r,p,true]);p.after.length>1&&p.after[1].apply(r,
[r,r,p,true]);if(p.click&&!p.next)p.next=p.click;p.next&&d(p.next).bind("click",function(){return u(j,p,p.rev?-1:1)});p.prev&&d(p.prev).bind("click",function(){return u(j,p,p.rev?1:-1)});if(p.timeout)this.cycleTimeout=setTimeout(function(){o(j,p,0,!p.rev)},p.timeout+(p.delay||0))}})};d.fn.cycle.custom=function(v,r,b,j){var p=d(v),z=d(r);z.css({opacity:0});var w=function(){z.animate({opacity:1},b.speedIn,b.easeIn,j)};p.animate({opacity:0},b.speedOut,b.easeOut,function(){p.css({display:"none"});b.sync||
w()});b.sync&&w()};d.fn.cycle.transitions={fade:function(v,r,b){r.not(":eq(0)").css("opacity",0);b.before.push(function(){d(this).show()})}};d.fn.cycle.ver=function(){return"Lite-1.0"};d.fn.cycle.defaults={timeout:4E3,speed:1E3,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);
