window.Modernizr=function(b,a,c){function d(y,E){return(""+y).indexOf(E)!==-1}function e(y,E){for(var P in y)if(o[y[P]]!==c&&(!E||E(y[P],t)))return true}function h(y,E){var P=y.charAt(0).toUpperCase()+y.substr(1);P=(y+" "+z.join(P+" ")+P).split(" ");return!!e(P,E)}function i(){l.input=function(y){for(var E=0,P=y.length;E<P;E++)B[y[E]]=!!(y[E]in n);return B}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));l.inputtypes=function(y){for(var E=0,P,V=y.length;E<
V;E++){n.setAttribute("type",y[E]);if(P=n.type!=="text"){n.value=r;if(/^range$/.test(n.type)&&n.style.WebkitAppearance!==c){p.appendChild(n);P=a.defaultView;P=P.getComputedStyle&&P.getComputedStyle(n,null).WebkitAppearance!=="textfield"&&n.offsetHeight!==0;p.removeChild(n)}else/^(search|tel)$/.test(n.type)||(P=/^(url|email)$/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=r)}da[y[E]]=!!P}return da}("search tel url email datetime date month week time datetime-local number range color".split(" "))}
var l={},p=a.documentElement,t=a.createElement("modernizr"),o=t.style,n=a.createElement("input"),r=":)",v=Object.prototype.toString,x=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),z="Webkit Moz O ms Khtml".split(" "),j={svg:"http://www.w3.org/2000/svg"},O={},da={},B={},ka=[],Aa,ra=function(y){var E=document.createElement("style"),P=a.createElement("div");E.textContent=y+"{#modernizr{height:3px}}";(a.head||a.getElementsByTagName("head")[0]).appendChild(E);P.id="modernizr";p.appendChild(P);y=P.offsetHeight===
3;E.parentNode.removeChild(E);P.parentNode.removeChild(P);return!!y},W=function(){var y={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(E,P){P=P||document.createElement(y[E]||"div");E="on"+E;var V=E in P;if(!V){P.setAttribute||(P=document.createElement("div"));if(P.setAttribute&&P.removeAttribute){P.setAttribute(E,"");V=typeof P[E]=="function";if(typeof P[E]!="undefined")P[E]=c;P.removeAttribute(E)}}return V}}(),za={}.hasOwnProperty,u;
u=typeof za!=="undefined"&&typeof za.call!=="undefined"?function(y,E){return za.call(y,E)}:function(y,E){return E in y&&typeof y.constructor.prototype[E]==="undefined"};O.flexbox=function(){var y=a.createElement("div"),E=a.createElement("div");(function(V,ma,Ia,Ea){ma+=":";V.style.cssText=(ma+x.join(Ia+";"+ma)).slice(0,-ma.length)+(Ea||"")})(y,"display","box","width:42px;padding:0;");E.style.cssText=x.join("box-flex:1;")+"width:10px;";y.appendChild(E);p.appendChild(y);var P=E.offsetWidth===42;y.removeChild(E);
p.removeChild(y);return P};O.canvas=function(){var y=a.createElement("canvas");return!!(y.getContext&&y.getContext("2d"))};O.canvastext=function(){return!!(l.canvas&&typeof a.createElement("canvas").getContext("2d").fillText=="function")};O.webgl=function(){var y=a.createElement("canvas");try{if(y.getContext("webgl"))return true}catch(E){}try{if(y.getContext("experimental-webgl"))return true}catch(P){}return false};O.touch=function(){return"ontouchstart"in b||ra("@media ("+x.join("touch-enabled),(")+
"modernizr)")};O.geolocation=function(){return!!navigator.geolocation};O.postmessage=function(){return!!b.postMessage};O.websqldatabase=function(){return!!b.openDatabase};O.indexedDB=function(){for(var y=-1,E=z.length;++y<E;){var P=z[y].toLowerCase();if(b[P+"_indexedDB"]||b[P+"IndexedDB"])return true}return false};O.hashchange=function(){return W("hashchange",b)&&(document.documentMode===c||document.documentMode>7)};O.history=function(){return!!(b.history&&history.pushState)};O.draganddrop=function(){return W("drag")&&
W("dragstart")&&W("dragenter")&&W("dragover")&&W("dragleave")&&W("dragend")&&W("drop")};O.websockets=function(){return"WebSocket"in b};O.rgba=function(){o.cssText="background-color:rgba(150,255,150,.5)";return d(o.backgroundColor,"rgba")};O.hsla=function(){o.cssText="background-color:hsla(120,40%,100%,.5)";return d(o.backgroundColor,"rgba")||d(o.backgroundColor,"hsla")};O.multiplebgs=function(){o.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(o.background)};O.backgroundsize=
function(){return h("backgroundSize")};O.borderimage=function(){return h("borderImage")};O.borderradius=function(){return h("borderRadius","",function(y){return d(y,"orderRadius")})};O.boxshadow=function(){return h("boxShadow")};O.textshadow=function(){return a.createElement("div").style.textShadow===""};O.opacity=function(){var y=x.join("opacity:.5;")+"";o.cssText=y;return d(o.opacity,"0.5")};O.cssanimations=function(){return h("animationName")};O.csscolumns=function(){return h("columnCount")};O.cssgradients=
function(){var y=("background-image:"+x.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+x.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);o.cssText=y;return d(o.backgroundImage,"gradient")};O.cssreflections=function(){return h("boxReflect")};O.csstransforms=function(){return!!e(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};O.csstransforms3d=function(){var y=!!e(["perspectiveProperty","WebkitPerspective",
"MozPerspective","OPerspective","msPerspective"]);if(y)y=ra("@media ("+x.join("transform-3d),(")+"modernizr)");return y};O.csstransitions=function(){return h("transitionProperty")};O.video=function(){var y=a.createElement("video"),E=!!y.canPlayType;if(E){E=new Boolean(E);E.ogg=y.canPlayType('video/ogg; codecs="theora"');E.h264=y.canPlayType('video/mp4; codecs="avc1.42E01E"')||y.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');E.webm=y.canPlayType('video/webm; codecs="vp8, vorbis"')}return E};
O.audio=function(){var y=a.createElement("audio"),E=!!y.canPlayType;if(E){E=new Boolean(E);E.ogg=y.canPlayType('audio/ogg; codecs="vorbis"');E.mp3=y.canPlayType("audio/mpeg;");E.wav=y.canPlayType('audio/wav; codecs="1"');E.m4a=y.canPlayType("audio/x-m4a;")||y.canPlayType("audio/aac;")}return E};O.localstorage=function(){try{return"localStorage"in b&&b.localStorage!==null}catch(y){return false}};O.sessionstorage=function(){try{return"sessionStorage"in b&&b.sessionStorage!==null}catch(y){return false}};
O.webWorkers=function(){return!!b.Worker};O.applicationcache=function(){return!!b.applicationCache};O.svg=function(){return!!a.createElementNS&&!!a.createElementNS(j.svg,"svg").createSVGRect};O.inlinesvg=function(){var y=document.createElement("div");y.innerHTML="<svg/>";return(y.firstChild&&y.firstChild.namespaceURI)==j.svg};O.smil=function(){return!!a.createElementNS&&/SVG/.test(v.call(a.createElementNS(j.svg,"animate")))};O.svgclippaths=function(){return!!a.createElementNS&&/SVG/.test(v.call(a.createElementNS(j.svg,
"clipPath")))};for(var G in O)if(u(O,G)){Aa=G.toLowerCase();l[Aa]=O[G]();ka.push((l[Aa]?"":"no-")+Aa)}l.input||i();l.crosswindowmessaging=l.postmessage;l.historymanagement=l.history;l.addTest=function(y,E){y=y.toLowerCase();if(!l[y]){E=!!E();p.className+=" "+(E?"":"no-")+y;l[y]=E;return l}};o.cssText="";t=n=null;l._enableHTML5=false;l._version="1.6";p.className=p.className.replace(/\bno-js\b/,"")+" js";p.className+=" "+ka.join(" ");return l}(this,this.document);
(function(b,a){function c(){return false}function d(){return true}function e(f,g,k){k[0].type=f;return j.event.handle.apply(g,k)}function h(f){var g,k,m=[],q=[],w,D,F,J,T,X,ga,la;D=j.data(this,this.nodeType?"events":"__events__");if(typeof D==="function")D=D.events;if(!(f.liveFired===this||!D||!D.live||f.button&&f.type==="click")){if(f.namespace)la=RegExp("(^|\\.)"+f.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");f.liveFired=this;var ua=D.live.slice(0);for(J=0;J<ua.length;J++){D=ua[J];D.origType.replace(y,
"")===f.type?q.push(D.selector):ua.splice(J--,1)}q=j(f.target).closest(q,f.currentTarget);T=0;for(X=q.length;T<X;T++){ga=q[T];for(J=0;J<ua.length;J++){D=ua[J];if(ga.selector===D.selector&&(!la||la.test(D.namespace))){F=ga.elem;w=null;if(D.preType==="mouseenter"||D.preType==="mouseleave"){f.type=D.preType;w=j(f.relatedTarget).closest(D.selector)[0]}if(!w||w!==F)m.push({elem:F,handleObj:D,level:ga.level})}}}T=0;for(X=m.length;T<X;T++){q=m[T];if(k&&q.level>k)break;f.currentTarget=q.elem;f.data=q.handleObj.data;
f.handleObj=q.handleObj;la=q.handleObj.origHandler.apply(q.elem,arguments);if(la===false||f.isPropagationStopped()){k=q.level;if(la===false)g=false}}return g}}function i(f,g){return(f&&f!=="*"?f+".":"")+g.replace(P,"`").replace(V,"&")}function l(f,g,k){if(j.isFunction(g))return j.grep(f,function(q,w){return!!g.call(q,w,q)===k});else if(g.nodeType)return j.grep(f,function(q){return q===g===k});else if(typeof g==="string"){var m=j.grep(f,function(q){return q.nodeType===1});if(Y.test(g))return j.filter(g,
m,!k);else g=j.filter(g,m)}return j.grep(f,function(q){return j.inArray(q,g)>=0===k})}function p(f,g){var k=0;g.each(function(){if(this.nodeName===(f[k]&&f[k].nodeName)){var m=j.data(f[k++]),q=j.data(this,m);if(m=m&&m.events){delete q.handle;q.events={};for(var w in m)for(var D in m[w])j.event.add(this,w,m[w][D],m[w][D].data)}}})}function t(f,g){g.src?j.ajax({url:g.src,async:false,dataType:"script"}):j.globalEval(g.text||g.textContent||g.innerHTML||"");g.parentNode&&g.parentNode.removeChild(g)}function o(f,
g,k){var m=g==="width"?f.offsetWidth:f.offsetHeight;if(k==="border")return m;j.each(g==="width"?db:eb,function(){k||(m-=parseFloat(j.css(f,"padding"+this))||0);if(k==="margin")m+=parseFloat(j.css(f,"margin"+this))||0;else m-=parseFloat(j.css(f,"border"+this+"Width"))||0});return m}function n(f,g,k,m){if(j.isArray(g)&&g.length)j.each(g,function(q,w){k||fb.test(f)?m(f,w):n(f+"["+(typeof w==="object"||j.isArray(w)?q:"")+"]",w,k,m)});else if(!k&&g!=null&&typeof g==="object")j.isEmptyObject(g)?m(f,""):
j.each(g,function(q,w){n(f+"["+q+"]",w,k,m)});else m(f,g)}function r(f,g){var k={};j.each(Ya.concat.apply([],Ya.slice(0,g)),function(){k[this]=f});return k}function v(f){if(!Va[f]){var g=j("<"+f+">").appendTo("body"),k=g.css("display");g.remove();if(k==="none"||k==="")k="block";Va[f]=k}return Va[f]}function x(f){return j.isWindow(f)?f:f.nodeType===9?f.defaultView||f.parentWindow:false}var z=b.document,j=function(){function f(){if(!g.isReady){try{z.documentElement.doScroll("left")}catch(A){setTimeout(f,
1);return}g.ready()}}var g=function(A,S){return new g.fn.init(A,S)},k=b.jQuery,m=b.$,q,w=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,D=/\S/,F=/^\s+/,J=/\s+$/,T=/\W/,X=/\d/,ga=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,la=/^[\],:{}\s]*$/,ua=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Z=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ta=/(?:^|:|,)(?:\s*\[)+/g,Ga=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,C=/(msie) ([\w.]+)/,K=/(mozilla)(?:.*? rv:([\w.]+))?/,I=navigator.userAgent,L=
false,N=[],U,ba=Object.prototype.toString,ia=Object.prototype.hasOwnProperty,Na=Array.prototype.push,Ja=Array.prototype.slice,Qa=String.prototype.trim,Oa=Array.prototype.indexOf,Da={};g.fn=g.prototype={init:function(A,S){var ea,fa,sa;if(!A)return this;if(A.nodeType){this.context=this[0]=A;this.length=1;return this}if(A==="body"&&!S&&z.body){this.context=z;this[0]=z.body;this.selector="body";this.length=1;return this}if(typeof A==="string")if((ea=w.exec(A))&&(ea[1]||!S))if(ea[1]){sa=S?S.ownerDocument||
S:z;if(fa=ga.exec(A))if(g.isPlainObject(S)){A=[z.createElement(fa[1])];g.fn.attr.call(A,S,true)}else A=[sa.createElement(fa[1])];else{fa=g.buildFragment([ea[1]],[sa]);A=(fa.cacheable?fa.fragment.cloneNode(true):fa.fragment).childNodes}return g.merge(this,A)}else{if((fa=z.getElementById(ea[2]))&&fa.parentNode){if(fa.id!==ea[2])return q.find(A);this.length=1;this[0]=fa}this.context=z;this.selector=A;return this}else if(!S&&!T.test(A)){this.selector=A;this.context=z;A=z.getElementsByTagName(A);return g.merge(this,
A)}else return!S||S.jquery?(S||q).find(A):g(S).find(A);else if(g.isFunction(A))return q.ready(A);if(A.selector!==a){this.selector=A.selector;this.context=A.context}return g.makeArray(A,this)},selector:"",jquery:"1.4.3",length:0,size:function(){return this.length},toArray:function(){return Ja.call(this,0)},get:function(A){return A==null?this.toArray():A<0?this.slice(A)[0]:this[A]},pushStack:function(A,S,ea){var fa=g();g.isArray(A)?Na.apply(fa,A):g.merge(fa,A);fa.prevObject=this;fa.context=this.context;
if(S==="find")fa.selector=this.selector+(this.selector?" ":"")+ea;else if(S)fa.selector=this.selector+"."+S+"("+ea+")";return fa},each:function(A,S){return g.each(this,A,S)},ready:function(A){g.bindReady();if(g.isReady)A.call(z,g);else N&&N.push(A);return this},eq:function(A){return A===-1?this.slice(A):this.slice(A,+A+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Ja.apply(this,arguments),"slice",Ja.call(arguments).join(","))},map:function(A){return this.pushStack(g.map(this,
function(S,ea){return A.call(S,ea,S)}))},end:function(){return this.prevObject||g(null)},push:Na,sort:[].sort,splice:[].splice};g.fn.init.prototype=g.fn;g.extend=g.fn.extend=function(){var A=arguments[0]||{},S=1,ea=arguments.length,fa=false,sa,va,Ca,Ba,Wa;if(typeof A==="boolean"){fa=A;A=arguments[1]||{};S=2}if(typeof A!=="object"&&!g.isFunction(A))A={};if(ea===S){A=this;--S}for(;S<ea;S++)if((sa=arguments[S])!=null)for(va in sa){Ca=A[va];Ba=sa[va];if(A!==Ba)if(fa&&Ba&&(g.isPlainObject(Ba)||(Wa=g.isArray(Ba)))){if(Wa){Wa=
false;clone=Ca&&g.isArray(Ca)?Ca:[]}else clone=Ca&&g.isPlainObject(Ca)?Ca:{};A[va]=g.extend(fa,clone,Ba)}else if(Ba!==a)A[va]=Ba}return A};g.extend({noConflict:function(A){b.$=m;if(A)b.jQuery=k;return g},isReady:false,readyWait:1,ready:function(A){A===true&&g.readyWait--;if(!g.readyWait||A!==true&&!g.isReady){if(!z.body)return setTimeout(g.ready,1);g.isReady=true;if(!(A!==true&&--g.readyWait>0)){if(N){for(var S=0;A=N[S++];)A.call(z,g);N=null}g.fn.triggerHandler&&g(z).triggerHandler("ready")}}},bindReady:function(){if(!L){L=
true;if(z.readyState==="complete")return setTimeout(g.ready,1);if(z.addEventListener){z.addEventListener("DOMContentLoaded",U,false);b.addEventListener("load",g.ready,false)}else if(z.attachEvent){z.attachEvent("onreadystatechange",U);b.attachEvent("onload",g.ready);var A=false;try{A=b.frameElement==null}catch(S){}z.documentElement.doScroll&&A&&f()}}},isFunction:function(A){return g.type(A)==="function"},isArray:Array.isArray||function(A){return g.type(A)==="array"},isWindow:function(A){return A&&
typeof A==="object"&&"setInterval"in A},isNaN:function(A){return A==null||!X.test(A)||isNaN(A)},type:function(A){return A==null?String(A):Da[ba.call(A)]||"object"},isPlainObject:function(A){if(!A||g.type(A)!=="object"||A.nodeType||g.isWindow(A))return false;if(A.constructor&&!ia.call(A,"constructor")&&!ia.call(A.constructor.prototype,"isPrototypeOf"))return false;for(var S in A);return S===a||ia.call(A,S)},isEmptyObject:function(A){for(var S in A)return false;return true},error:function(A){throw A;
},parseJSON:function(A){if(typeof A!=="string"||!A)return null;A=g.trim(A);if(la.test(A.replace(ua,"@").replace(Z,"]").replace(ta,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(A):(new Function("return "+A))();else g.error("Invalid JSON: "+A)},noop:function(){},globalEval:function(A){if(A&&D.test(A)){var S=z.getElementsByTagName("head")[0]||z.documentElement,ea=z.createElement("script");ea.type="text/javascript";if(g.support.scriptEval)ea.appendChild(z.createTextNode(A));else ea.text=A;S.insertBefore(ea,
S.firstChild);S.removeChild(ea)}},nodeName:function(A,S){return A.nodeName&&A.nodeName.toUpperCase()===S.toUpperCase()},each:function(A,S,ea){var fa,sa=0,va=A.length,Ca=va===a||g.isFunction(A);if(ea)if(Ca)for(fa in A){if(S.apply(A[fa],ea)===false)break}else for(;sa<va;){if(S.apply(A[sa++],ea)===false)break}else if(Ca)for(fa in A){if(S.call(A[fa],fa,A[fa])===false)break}else for(ea=A[0];sa<va&&S.call(ea,sa,ea)!==false;ea=A[++sa]);return A},trim:Qa?function(A){return A==null?"":Qa.call(A)}:function(A){return A==
null?"":A.toString().replace(F,"").replace(J,"")},makeArray:function(A,S){var ea=S||[];if(A!=null){var fa=g.type(A);A.length==null||fa==="string"||fa==="function"||fa==="regexp"||g.isWindow(A)?Na.call(ea,A):g.merge(ea,A)}return ea},inArray:function(A,S){if(S.indexOf)return S.indexOf(A);for(var ea=0,fa=S.length;ea<fa;ea++)if(S[ea]===A)return ea;return-1},merge:function(A,S){var ea=A.length,fa=0;if(typeof S.length==="number")for(var sa=S.length;fa<sa;fa++)A[ea++]=S[fa];else for(;S[fa]!==a;)A[ea++]=
S[fa++];A.length=ea;return A},grep:function(A,S,ea){var fa=[],sa;ea=!!ea;for(var va=0,Ca=A.length;va<Ca;va++){sa=!!S(A[va],va);ea!==sa&&fa.push(A[va])}return fa},map:function(A,S,ea){for(var fa=[],sa,va=0,Ca=A.length;va<Ca;va++){sa=S(A[va],va,ea);if(sa!=null)fa[fa.length]=sa}return fa.concat.apply([],fa)},guid:1,proxy:function(A,S,ea){if(arguments.length===2)if(typeof S==="string"){ea=A;A=ea[S];S=a}else if(S&&!g.isFunction(S)){ea=S;S=a}if(!S&&A)S=function(){return A.apply(ea||this,arguments)};if(A)S.guid=
A.guid=A.guid||S.guid||g.guid++;return S},access:function(A,S,ea,fa,sa,va){var Ca=A.length;if(typeof S==="object"){for(var Ba in S)g.access(A,Ba,S[Ba],fa,sa,ea);return A}if(ea!==a){fa=!va&&fa&&g.isFunction(ea);for(Ba=0;Ba<Ca;Ba++)sa(A[Ba],S,fa?ea.call(A[Ba],Ba,sa(A[Ba],S)):ea,va);return A}return Ca?sa(A[0],S):a},now:function(){return(new Date).getTime()},uaMatch:function(A){A=A.toLowerCase();A=Ga.exec(A)||s.exec(A)||C.exec(A)||A.indexOf("compatible")<0&&K.exec(A)||[];return{browser:A[1]||"",version:A[2]||
"0"}},browser:{}});g.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(A,S){Da["[object "+S+"]"]=S.toLowerCase()});I=g.uaMatch(I);if(I.browser){g.browser[I.browser]=true;g.browser.version=I.version}if(g.browser.webkit)g.browser.safari=true;if(Oa)g.inArray=function(A,S){return Oa.call(S,A)};if(!/\s/.test("\u00a0")){F=/^[\s\xA0]+/;J=/[\s\xA0]+$/}q=g(z);if(z.addEventListener)U=function(){z.removeEventListener("DOMContentLoaded",U,false);g.ready()};else if(z.attachEvent)U=
function(){if(z.readyState==="complete"){z.detachEvent("onreadystatechange",U);g.ready()}};return b.jQuery=b.$=g}();(function(){j.support={};var f=z.documentElement,g=z.createElement("script"),k=z.createElement("div"),m="script"+j.now();k.style.display="none";k.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var q=k.getElementsByTagName("*"),w=k.getElementsByTagName("a")[0],D=z.createElement("select"),F=D.appendChild(z.createElement("option"));
if(!(!q||!q.length||!w)){j.support={leadingWhitespace:k.firstChild.nodeType===3,tbody:!k.getElementsByTagName("tbody").length,htmlSerialize:!!k.getElementsByTagName("link").length,style:/red/.test(w.getAttribute("style")),hrefNormalized:w.getAttribute("href")==="/a",opacity:/^0.55$/.test(w.style.opacity),cssFloat:!!w.style.cssFloat,checkOn:k.getElementsByTagName("input")[0].value==="on",optSelected:F.selected,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,
shrinkWrapBlocks:false,reliableHiddenOffsets:true};D.disabled=true;j.support.optDisabled=!F.disabled;g.type="text/javascript";try{g.appendChild(z.createTextNode("window."+m+"=1;"))}catch(J){}f.insertBefore(g,f.firstChild);if(b[m]){j.support.scriptEval=true;delete b[m]}f.removeChild(g);if(k.attachEvent&&k.fireEvent){k.attachEvent("onclick",function T(){j.support.noCloneEvent=false;k.detachEvent("onclick",T)});k.cloneNode(true).fireEvent("onclick")}k=z.createElement("div");k.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";
f=z.createDocumentFragment();f.appendChild(k.firstChild);j.support.checkClone=f.cloneNode(true).cloneNode(true).lastChild.checked;j(function(){var T=z.createElement("div");T.style.width=T.style.paddingLeft="1px";z.body.appendChild(T);j.boxModel=j.support.boxModel=T.offsetWidth===2;if("zoom"in T.style){T.style.display="inline";T.style.zoom=1;j.support.inlineBlockNeedsLayout=T.offsetWidth===2;T.style.display="";T.innerHTML="<div style='width:4px;'></div>";j.support.shrinkWrapBlocks=T.offsetWidth!==
2}T.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var X=T.getElementsByTagName("td");j.support.reliableHiddenOffsets=X[0].offsetHeight===0;X[0].style.display="";X[1].style.display="none";j.support.reliableHiddenOffsets=j.support.reliableHiddenOffsets&&X[0].offsetHeight===0;T.innerHTML="";z.body.removeChild(T).style.display="none"});f=function(T){var X=z.createElement("div");T="on"+T;var ga=T in X;if(!ga){X.setAttribute(T,"return;");ga=typeof X[T]==="function"}return ga};
j.support.submitBubbles=f("submit");j.support.changeBubbles=f("change");f=g=k=q=w=null}})();j.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var O={},da=/^(?:\{.*\}|\[.*\])$/;j.extend({cache:{},uuid:0,expando:"jQuery"+j.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(f,g,k){if(j.acceptData(f)){f=
f==b?O:f;var m=f.nodeType,q=m?f[j.expando]:null,w=j.cache;if(!(m&&!q&&typeof g==="string"&&k===a)){if(m)q||(f[j.expando]=q=++j.uuid);else w=f;if(typeof g==="object")if(m)w[q]=j.extend(w[q],g);else j.extend(w,g);else if(m&&!w[q])w[q]={};f=m?w[q]:w;if(k!==a)f[g]=k;return typeof g==="string"?f[g]:f}}},removeData:function(f,g){if(j.acceptData(f)){f=f==b?O:f;var k=f.nodeType,m=k?f[j.expando]:f,q=j.cache,w=k?q[m]:m;if(g){if(w){delete w[g];k&&j.isEmptyObject(w)&&j.removeData(f)}}else if(k&&j.support.deleteExpando)delete f[j.expando];
else if(f.removeAttribute)f.removeAttribute(j.expando);else if(k)delete q[m];else for(var D in f)delete f[D]}},acceptData:function(f){if(f.nodeName){var g=j.noData[f.nodeName.toLowerCase()];if(g)return!(g===true||f.getAttribute("classid")!==g)}return true}});j.fn.extend({data:function(f,g){if(typeof f==="undefined")return this.length?j.data(this[0]):null;else if(typeof f==="object")return this.each(function(){j.data(this,f)});var k=f.split(".");k[1]=k[1]?"."+k[1]:"";if(g===a){var m=this.triggerHandler("getData"+
k[1]+"!",[k[0]]);if(m===a&&this.length){m=j.data(this[0],f);if(m===a&&this[0].nodeType===1){m=this[0].getAttribute("data-"+f);if(typeof m==="string")try{m=m==="true"?true:m==="false"?false:m==="null"?null:!j.isNaN(m)?parseFloat(m):da.test(m)?j.parseJSON(m):m}catch(q){}else m=a}}return m===a&&k[1]?this.data(k[0]):m}else return this.each(function(){var w=j(this),D=[k[0],g];w.triggerHandler("setData"+k[1]+"!",D);j.data(this,f,g);w.triggerHandler("changeData"+k[1]+"!",D)})},removeData:function(f){return this.each(function(){j.removeData(this,
f)})}});j.extend({queue:function(f,g,k){if(f){g=(g||"fx")+"queue";var m=j.data(f,g);if(!k)return m||[];if(!m||j.isArray(k))m=j.data(f,g,j.makeArray(k));else m.push(k);return m}},dequeue:function(f,g){g=g||"fx";var k=j.queue(f,g),m=k.shift();if(m==="inprogress")m=k.shift();if(m){g==="fx"&&k.unshift("inprogress");m.call(f,function(){j.dequeue(f,g)})}}});j.fn.extend({queue:function(f,g){if(typeof f!=="string"){g=f;f="fx"}if(g===a)return j.queue(this[0],f);return this.each(function(){var k=j.queue(this,
f,g);f==="fx"&&k[0]!=="inprogress"&&j.dequeue(this,f)})},dequeue:function(f){return this.each(function(){j.dequeue(this,f)})},delay:function(f,g){f=j.fx?j.fx.speeds[f]||f:f;g=g||"fx";return this.queue(g,function(){var k=this;setTimeout(function(){j.dequeue(k,g)},f)})},clearQueue:function(f){return this.queue(f||"fx",[])}});var B=/[\n\t]/g,ka=/\s+/,Aa=/\r/g,ra=/^(?:href|src|style)$/,W=/^(?:button|input)$/i,za=/^(?:button|input|object|select|textarea)$/i,u=/^a(?:rea)?$/i,G=/^(?:radio|checkbox)$/i;j.fn.extend({attr:function(f,
g){return j.access(this,f,g,true,j.attr)},removeAttr:function(f){return this.each(function(){j.attr(this,f,"");this.nodeType===1&&this.removeAttribute(f)})},addClass:function(f){if(j.isFunction(f))return this.each(function(T){var X=j(this);X.addClass(f.call(this,T,X.attr("class")))});if(f&&typeof f==="string")for(var g=(f||"").split(ka),k=0,m=this.length;k<m;k++){var q=this[k];if(q.nodeType===1)if(q.className){for(var w=" "+q.className+" ",D=q.className,F=0,J=g.length;F<J;F++)if(w.indexOf(" "+g[F]+
" ")<0)D+=" "+g[F];q.className=j.trim(D)}else q.className=f}return this},removeClass:function(f){if(j.isFunction(f))return this.each(function(J){var T=j(this);T.removeClass(f.call(this,J,T.attr("class")))});if(f&&typeof f==="string"||f===a)for(var g=(f||"").split(ka),k=0,m=this.length;k<m;k++){var q=this[k];if(q.nodeType===1&&q.className)if(f){for(var w=(" "+q.className+" ").replace(B," "),D=0,F=g.length;D<F;D++)w=w.replace(" "+g[D]+" "," ");q.className=j.trim(w)}else q.className=""}return this},
toggleClass:function(f,g){var k=typeof f,m=typeof g==="boolean";if(j.isFunction(f))return this.each(function(q){var w=j(this);w.toggleClass(f.call(this,q,w.attr("class"),g),g)});return this.each(function(){if(k==="string")for(var q,w=0,D=j(this),F=g,J=f.split(ka);q=J[w++];){F=m?F:!D.hasClass(q);D[F?"addClass":"removeClass"](q)}else if(k==="undefined"||k==="boolean"){this.className&&j.data(this,"__className__",this.className);this.className=this.className||f===false?"":j.data(this,"__className__")||
""}})},hasClass:function(f){f=" "+f+" ";for(var g=0,k=this.length;g<k;g++)if((" "+this[g].className+" ").replace(B," ").indexOf(f)>-1)return true;return false},val:function(f){if(!arguments.length){var g=this[0];if(g){if(j.nodeName(g,"option")){var k=g.attributes.value;return!k||k.specified?g.value:g.text}if(j.nodeName(g,"select")){var m=g.selectedIndex;k=[];var q=g.options;g=g.type==="select-one";if(m<0)return null;var w=g?m:0;for(m=g?m+1:q.length;w<m;w++){var D=q[w];if(D.selected&&(j.support.optDisabled?
!D.disabled:D.getAttribute("disabled")===null)&&(!D.parentNode.disabled||!j.nodeName(D.parentNode,"optgroup"))){f=j(D).val();if(g)return f;k.push(f)}}return k}if(G.test(g.type)&&!j.support.checkOn)return g.getAttribute("value")===null?"on":g.value;return(g.value||"").replace(Aa,"")}return a}var F=j.isFunction(f);return this.each(function(J){var T=j(this),X=f;if(this.nodeType===1){if(F)X=f.call(this,J,T.val());if(X==null)X="";else if(typeof X==="number")X+="";else if(j.isArray(X))X=j.map(X,function(la){return la==
null?"":la+""});if(j.isArray(X)&&G.test(this.type))this.checked=j.inArray(T.val(),X)>=0;else if(j.nodeName(this,"select")){var ga=j.makeArray(X);j("option",this).each(function(){this.selected=j.inArray(j(this).val(),ga)>=0});if(!ga.length)this.selectedIndex=-1}else this.value=X}})}});j.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(f,g,k,m){if(!f||f.nodeType===3||f.nodeType===8)return a;if(m&&g in j.attrFn)return j(f)[g](k);m=f.nodeType!==
1||!j.isXMLDoc(f);var q=k!==a;g=m&&j.props[g]||g;if(f.nodeType===1){var w=ra.test(g);if((g in f||f[g]!==a)&&m&&!w){if(q){g==="type"&&W.test(f.nodeName)&&f.parentNode&&j.error("type property can't be changed");if(k===null)f.nodeType===1&&f.removeAttribute(g);else f[g]=k}if(j.nodeName(f,"form")&&f.getAttributeNode(g))return f.getAttributeNode(g).nodeValue;if(g==="tabIndex")return(g=f.getAttributeNode("tabIndex"))&&g.specified?g.value:za.test(f.nodeName)||u.test(f.nodeName)&&f.href?0:a;return f[g]}if(!j.support.style&&
m&&g==="style"){if(q)f.style.cssText=""+k;return f.style.cssText}q&&f.setAttribute(g,""+k);if(!f.attributes[g]&&f.hasAttribute&&!f.hasAttribute(g))return a;f=!j.support.hrefNormalized&&m&&w?f.getAttribute(g,2):f.getAttribute(g);return f===null?a:f}}});var y=/\.(.*)$/,E=/^(?:textarea|input|select)$/i,P=/\./g,V=/ /g,ma=/[^\w\s.|`]/g,Ia=function(f){return f.replace(ma,"\\$&")},Ea={focusin:0,focusout:0};j.event={add:function(f,g,k,m){if(!(f.nodeType===3||f.nodeType===8)){if(j.isWindow(f)&&f!==b&&!f.frameElement)f=
b;if(k===false)k=c;var q,w;if(k.handler){q=k;k=q.handler}if(!k.guid)k.guid=j.guid++;if(w=j.data(f)){var D=f.nodeType?"events":"__events__",F=w[D],J=w.handle;if(typeof F==="function"){J=F.handle;F=F.events}else if(!F){f.nodeType||(w[D]=w=function(){});w.events=F={}}if(!J)w.handle=J=function(){return typeof j!=="undefined"&&!j.event.triggered?j.event.handle.apply(J.elem,arguments):a};J.elem=f;g=g.split(" ");for(var T=0,X;D=g[T++];){w=q?j.extend({},q):{handler:k,data:m};if(D.indexOf(".")>-1){X=D.split(".");
D=X.shift();w.namespace=X.slice(0).sort().join(".")}else{X=[];w.namespace=""}w.type=D;if(!w.guid)w.guid=k.guid;var ga=F[D],la=j.event.special[D]||{};if(!ga){ga=F[D]=[];if(!la.setup||la.setup.call(f,m,X,J)===false)if(f.addEventListener)f.addEventListener(D,J,false);else f.attachEvent&&f.attachEvent("on"+D,J)}if(la.add){la.add.call(f,w);if(!w.handler.guid)w.handler.guid=k.guid}ga.push(w);j.event.global[D]=true}f=null}}},global:{},remove:function(f,g,k,m){if(!(f.nodeType===3||f.nodeType===8)){if(k===
false)k=c;var q,w,D=0,F,J,T,X,ga,la,ua=f.nodeType?"events":"__events__",Z=j.data(f),ta=Z&&Z[ua];if(Z&&ta){if(typeof ta==="function"){Z=ta;ta=ta.events}if(g&&g.type){k=g.handler;g=g.type}if(!g||typeof g==="string"&&g.charAt(0)==="."){g=g||"";for(q in ta)j.event.remove(f,q+g)}else{for(g=g.split(" ");q=g[D++];){X=q;F=q.indexOf(".")<0;J=[];if(!F){J=q.split(".");q=J.shift();T=RegExp("(^|\\.)"+j.map(J.slice(0).sort(),Ia).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(ga=ta[q])if(k){X=j.event.special[q]||{};for(w=
m||0;w<ga.length;w++){la=ga[w];if(k.guid===la.guid){if(F||T.test(la.namespace)){m==null&&ga.splice(w--,1);X.remove&&X.remove.call(f,la)}if(m!=null)break}}if(ga.length===0||m!=null&&ga.length===1){if(!X.teardown||X.teardown.call(f,J)===false)j.removeEvent(f,q,Z.handle);delete ta[q]}}else for(w=0;w<ga.length;w++){la=ga[w];if(F||T.test(la.namespace)){j.event.remove(f,X,la.handler,w);ga.splice(w--,1)}}}if(j.isEmptyObject(ta)){if(g=Z.handle)g.elem=null;delete Z.events;delete Z.handle;if(typeof Z==="function")j.removeData(f,
ua);else j.isEmptyObject(Z)&&j.removeData(f)}}}}},trigger:function(f,g,k,m){var q=f.type||f;if(!m){f=typeof f==="object"?f[j.expando]?f:j.extend(j.Event(q),f):j.Event(q);if(q.indexOf("!")>=0){f.type=q=q.slice(0,-1);f.exclusive=true}if(!k){f.stopPropagation();j.event.global[q]&&j.each(j.cache,function(){this.events&&this.events[q]&&j.event.trigger(f,g,this.handle.elem)})}if(!k||k.nodeType===3||k.nodeType===8)return a;f.result=a;f.target=k;g=j.makeArray(g);g.unshift(f)}f.currentTarget=k;(m=k.nodeType?
j.data(k,"handle"):(j.data(k,"__events__")||{}).handle)&&m.apply(k,g);m=k.parentNode||k.ownerDocument;try{if(!(k&&k.nodeName&&j.noData[k.nodeName.toLowerCase()]))if(k["on"+q]&&k["on"+q].apply(k,g)===false){f.result=false;f.preventDefault()}}catch(w){}if(!f.isPropagationStopped()&&m)j.event.trigger(f,g,m,true);else if(!f.isDefaultPrevented()){m=f.target;var D,F=q.replace(y,""),J=j.nodeName(m,"a")&&F==="click",T=j.event.special[F]||{};if((!T._default||T._default.call(k,f)===false)&&!J&&!(m&&m.nodeName&&
j.noData[m.nodeName.toLowerCase()])){try{if(m[F]){if(D=m["on"+F])m["on"+F]=null;j.event.triggered=true;m[F]()}}catch(X){}if(D)m["on"+F]=D;j.event.triggered=false}}},handle:function(f){var g,k,m;k=[];var q,w=j.makeArray(arguments);f=w[0]=j.event.fix(f||b.event);f.currentTarget=this;g=f.type.indexOf(".")<0&&!f.exclusive;if(!g){m=f.type.split(".");f.type=m.shift();k=m.slice(0).sort();m=RegExp("(^|\\.)"+k.join("\\.(?:.*\\.)?")+"(\\.|$)")}f.namespace=f.namespace||k.join(".");q=j.data(this,this.nodeType?
"events":"__events__");if(typeof q==="function")q=q.events;k=(q||{})[f.type];if(q&&k){k=k.slice(0);q=0;for(var D=k.length;q<D;q++){var F=k[q];if(g||m.test(F.namespace)){f.handler=F.handler;f.data=F.data;f.handleObj=F;F=F.handler.apply(this,w);if(F!==a){f.result=F;if(F===false){f.preventDefault();f.stopPropagation()}}if(f.isImmediatePropagationStopped())break}}}return f.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(f){if(f[j.expando])return f;var g=f;f=j.Event(g);for(var k=this.props.length,m;k;){m=this.props[--k];f[m]=g[m]}if(!f.target)f.target=f.srcElement||z;if(f.target.nodeType===3)f.target=f.target.parentNode;if(!f.relatedTarget&&f.fromElement)f.relatedTarget=f.fromElement===f.target?f.toElement:f.fromElement;if(f.pageX==null&&f.clientX!=null){g=z.documentElement;k=z.body;f.pageX=f.clientX+(g&&g.scrollLeft||k&&k.scrollLeft||0)-(g&&g.clientLeft||k&&k.clientLeft||0);f.pageY=f.clientY+(g&&g.scrollTop||
k&&k.scrollTop||0)-(g&&g.clientTop||k&&k.clientTop||0)}if(f.which==null&&(f.charCode!=null||f.keyCode!=null))f.which=f.charCode!=null?f.charCode:f.keyCode;if(!f.metaKey&&f.ctrlKey)f.metaKey=f.ctrlKey;if(!f.which&&f.button!==a)f.which=f.button&1?1:f.button&2?3:f.button&4?2:0;return f},guid:1E8,proxy:j.proxy,special:{ready:{setup:j.bindReady,teardown:j.noop},live:{add:function(f){j.event.add(this,i(f.origType,f.selector),j.extend({},f,{handler:h,guid:f.handler.guid}))},remove:function(f){j.event.remove(this,
i(f.origType,f.selector),f)}},beforeunload:{setup:function(f,g,k){if(j.isWindow(this))this.onbeforeunload=k},teardown:function(f,g){if(this.onbeforeunload===g)this.onbeforeunload=null}}}};j.removeEvent=z.removeEventListener?function(f,g,k){f.removeEventListener&&f.removeEventListener(g,k,false)}:function(f,g,k){f.detachEvent&&f.detachEvent("on"+g,k)};j.Event=function(f){if(!this.preventDefault)return new j.Event(f);if(f&&f.type){this.originalEvent=f;this.type=f.type}else this.type=f;this.timeStamp=
j.now();this[j.expando]=true};j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=d;var f=this.originalEvent;if(f)if(f.preventDefault)f.preventDefault();else f.returnValue=false},stopPropagation:function(){this.isPropagationStopped=d;var f=this.originalEvent;if(f){f.stopPropagation&&f.stopPropagation();f.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=d;this.stopPropagation()},isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c};
var xa=function(f){var g=f.relatedTarget;try{for(;g&&g!==this;)g=g.parentNode;if(g!==this){f.type=f.data;j.event.handle.apply(this,arguments)}}catch(k){}},Fa=function(f){f.type=f.data;j.event.handle.apply(this,arguments)};j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(f,g){j.event.special[f]={setup:function(k){j.event.add(this,g,k&&k.selector?Fa:xa,f)},teardown:function(k){j.event.remove(this,g,k&&k.selector?Fa:xa)}}});if(!j.support.submitBubbles)j.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
"form"){j.event.add(this,"click.specialSubmit",function(f){var g=f.target,k=g.type;if((k==="submit"||k==="image")&&j(g).closest("form").length){f.liveFired=a;return e("submit",this,arguments)}});j.event.add(this,"keypress.specialSubmit",function(f){var g=f.target,k=g.type;if((k==="text"||k==="password")&&j(g).closest("form").length&&f.keyCode===13){f.liveFired=a;return e("submit",this,arguments)}})}else return false},teardown:function(){j.event.remove(this,".specialSubmit")}};if(!j.support.changeBubbles){var ya,
ha=function(f){var g=f.type,k=f.value;if(g==="radio"||g==="checkbox")k=f.checked;else if(g==="select-multiple")k=f.selectedIndex>-1?j.map(f.options,function(m){return m.selected}).join("-"):"";else if(f.nodeName.toLowerCase()==="select")k=f.selectedIndex;return k},pa=function(f,g){var k=f.target,m,q;if(!(!E.test(k.nodeName)||k.readOnly)){m=j.data(k,"_change_data");q=ha(k);if(f.type!=="focusout"||k.type!=="radio")j.data(k,"_change_data",q);if(!(m===a||q===m))if(m!=null||q){f.type="change";f.liveFired=
a;return j.event.trigger(f,g,k)}}};j.event.special.change={filters:{focusout:pa,beforedeactivate:pa,click:function(f){var g=f.target,k=g.type;if(k==="radio"||k==="checkbox"||g.nodeName.toLowerCase()==="select")return pa.call(this,f)},keydown:function(f){var g=f.target,k=g.type;if(f.keyCode===13&&g.nodeName.toLowerCase()!=="textarea"||f.keyCode===32&&(k==="checkbox"||k==="radio")||k==="select-multiple")return pa.call(this,f)},beforeactivate:function(f){f=f.target;j.data(f,"_change_data",ha(f))}},setup:function(){if(this.type===
"file")return false;for(var f in ya)j.event.add(this,f+".specialChange",ya[f]);return E.test(this.nodeName)},teardown:function(){j.event.remove(this,".specialChange");return E.test(this.nodeName)}};ya=j.event.special.change.filters;ya.focus=ya.beforeactivate}z.addEventListener&&j.each({focus:"focusin",blur:"focusout"},function(f,g){function k(m){m=j.event.fix(m);m.type=g;return j.event.trigger(m,null,m.target)}j.event.special[g]={setup:function(){Ea[g]++===0&&z.addEventListener(f,k,true)},teardown:function(){--Ea[g]===
0&&z.removeEventListener(f,k,true)}}});j.each(["bind","one"],function(f,g){j.fn[g]=function(k,m,q){if(typeof k==="object"){for(var w in k)this[g](w,m,k[w],q);return this}if(j.isFunction(m)||m===false){q=m;m=a}var D=g==="one"?j.proxy(q,function(J){j(this).unbind(J,D);return q.apply(this,arguments)}):q;if(k==="unload"&&g!=="one")this.one(k,m,q);else{w=0;for(var F=this.length;w<F;w++)j.event.add(this[w],k,D,m)}return this}});j.fn.extend({unbind:function(f,g){if(typeof f==="object"&&!f.preventDefault)for(var k in f)this.unbind(k,
f[k]);else{k=0;for(var m=this.length;k<m;k++)j.event.remove(this[k],f,g)}return this},delegate:function(f,g,k,m){return this.live(g,k,m,f)},undelegate:function(f,g,k){return arguments.length===0?this.unbind("live"):this.die(g,null,k,f)},trigger:function(f,g){return this.each(function(){j.event.trigger(f,g,this)})},triggerHandler:function(f,g){if(this[0]){var k=j.Event(f);k.preventDefault();k.stopPropagation();j.event.trigger(k,g,this[0]);return k.result}},toggle:function(f){for(var g=arguments,k=
1;k<g.length;)j.proxy(f,g[k++]);return this.click(j.proxy(f,function(m){var q=(j.data(this,"lastToggle"+f.guid)||0)%k;j.data(this,"lastToggle"+f.guid,q+1);m.preventDefault();return g[q].apply(this,arguments)||false}))},hover:function(f,g){return this.mouseenter(f).mouseleave(g||f)}});var aa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};j.each(["live","die"],function(f,g){j.fn[g]=function(k,m,q,w){var D,F=0,J,T,X=w||this.selector;w=w?this:j(this.context);if(typeof k===
"object"&&!k.preventDefault){for(D in k)w[g](D,m,k[D],X);return this}if(j.isFunction(m)){q=m;m=a}for(k=(k||"").split(" ");(D=k[F++])!=null;){J=y.exec(D);T="";if(J){T=J[0];D=D.replace(y,"")}if(D==="hover")k.push("mouseenter"+T,"mouseleave"+T);else{J=D;if(D==="focus"||D==="blur"){k.push(aa[D]+T);D+=T}else D=(aa[D]||D)+T;if(g==="live"){T=0;for(var ga=w.length;T<ga;T++)j.event.add(w[T],"live."+i(D,X),{data:m,selector:X,handler:q,origType:D,origHandler:q,preType:J})}else w.unbind("live."+i(D,X),q)}}return this}});
j.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(f,g){j.fn[g]=function(k,m){if(m==null){m=k;k=null}return arguments.length>0?this.bind(g,k,m):this.trigger(g)};if(j.attrFn)j.attrFn[g]=true});b.attachEvent&&!b.addEventListener&&j(b).bind("unload",function(){for(var f in j.cache)if(j.cache[f].handle)try{j.event.remove(j.cache[f].handle.elem)}catch(g){}});
(function(){function f(s,C,K,I,L,N){L=0;for(var U=I.length;L<U;L++){var ba=I[L];if(ba){ba=ba[s];for(var ia=false;ba;){if(ba.sizcache===K){ia=I[ba.sizset];break}if(ba.nodeType===1&&!N){ba.sizcache=K;ba.sizset=L}if(ba.nodeName.toLowerCase()===C){ia=ba;break}ba=ba[s]}I[L]=ia}}}function g(s,C,K,I,L,N){L=0;for(var U=I.length;L<U;L++){var ba=I[L];if(ba){ba=ba[s];for(var ia=false;ba;){if(ba.sizcache===K){ia=I[ba.sizset];break}if(ba.nodeType===1){if(!N){ba.sizcache=K;ba.sizset=L}if(typeof C!=="string"){if(ba===
C){ia=true;break}}else if(F.filter(C,[ba]).length>0){ia=ba;break}}ba=ba[s]}I[L]=ia}}}var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=0,q=Object.prototype.toString,w=false,D=true;[0,0].sort(function(){D=false;return 0});var F=function(s,C,K,I){K=K||[];var L=C=C||z;if(C.nodeType!==1&&C.nodeType!==9)return[];if(!s||typeof s!=="string")return K;var N=[],U,ba,ia,Na,Ja=true,Qa=F.isXML(C),Oa=s,Da;do{k.exec("");
if(U=k.exec(Oa)){Oa=U[3];N.push(U[1]);if(U[2]){Na=U[3];break}}}while(U);if(N.length>1&&T.exec(s))if(N.length===2&&J.relative[N[0]])ba=Ga(N[0]+N[1],C);else for(ba=J.relative[N[0]]?[C]:F(N.shift(),C);N.length;){s=N.shift();if(J.relative[s])s+=N.shift();ba=Ga(s,ba)}else{if(!I&&N.length>1&&C.nodeType===9&&!Qa&&J.match.ID.test(N[0])&&!J.match.ID.test(N[N.length-1])){U=F.find(N.shift(),C,Qa);C=U.expr?F.filter(U.expr,U.set)[0]:U.set[0]}if(C){U=I?{expr:N.pop(),set:la(I)}:F.find(N.pop(),N.length===1&&(N[0]===
"~"||N[0]==="+")&&C.parentNode?C.parentNode:C,Qa);ba=U.expr?F.filter(U.expr,U.set):U.set;if(N.length>0)ia=la(ba);else Ja=false;for(;N.length;){U=Da=N.pop();if(J.relative[Da])U=N.pop();else Da="";if(U==null)U=C;J.relative[Da](ia,U,Qa)}}else ia=[]}ia||(ia=ba);ia||F.error(Da||s);if(q.call(ia)==="[object Array]")if(Ja)if(C&&C.nodeType===1)for(s=0;ia[s]!=null;s++){if(ia[s]&&(ia[s]===true||ia[s].nodeType===1&&F.contains(C,ia[s])))K.push(ba[s])}else for(s=0;ia[s]!=null;s++)ia[s]&&ia[s].nodeType===1&&K.push(ba[s]);
else K.push.apply(K,ia);else la(ia,K);if(Na){F(Na,L,K,I);F.uniqueSort(K)}return K};F.uniqueSort=function(s){if(Z){w=D;s.sort(Z);if(w)for(var C=1;C<s.length;C++)s[C]===s[C-1]&&s.splice(C--,1)}return s};F.matches=function(s,C){return F(s,null,null,C)};F.matchesSelector=function(s,C){return F(C,null,null,[s]).length>0};F.find=function(s,C,K){var I;if(!s)return[];for(var L=0,N=J.order.length;L<N;L++){var U=J.order[L],ba;if(ba=J.leftMatch[U].exec(s)){var ia=ba[1];ba.splice(1,1);if(ia.substr(ia.length-
1)!=="\\"){ba[1]=(ba[1]||"").replace(/\\/g,"");I=J.find[U](ba,C,K);if(I!=null){s=s.replace(J.match[U],"");break}}}}I||(I=C.getElementsByTagName("*"));return{set:I,expr:s}};F.filter=function(s,C,K,I){for(var L=s,N=[],U=C,ba,ia,Na=C&&C[0]&&F.isXML(C[0]);s&&C.length;){for(var Ja in J.filter)if((ba=J.leftMatch[Ja].exec(s))!=null&&ba[2]){var Qa=J.filter[Ja],Oa,Da;Da=ba[1];ia=false;ba.splice(1,1);if(Da.substr(Da.length-1)!=="\\"){if(U===N)N=[];if(J.preFilter[Ja])if(ba=J.preFilter[Ja](ba,U,K,N,I,Na)){if(ba===
true)continue}else ia=Oa=true;if(ba)for(var A=0;(Da=U[A])!=null;A++)if(Da){Oa=Qa(Da,ba,A,U);var S=I^!!Oa;if(K&&Oa!=null)if(S)ia=true;else U[A]=false;else if(S){N.push(Da);ia=true}}if(Oa!==a){K||(U=N);s=s.replace(J.match[Ja],"");if(!ia)return[];break}}}if(s===L)if(ia==null)F.error(s);else break;L=s}return U};F.error=function(s){throw"Syntax error, unrecognized expression: "+s;};var J=F.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(s){return s.getAttribute("href")}},
relative:{"+":function(s,C){var K=typeof C==="string",I=K&&!/\W/.test(C);K=K&&!I;if(I)C=C.toLowerCase();I=0;for(var L=s.length,N;I<L;I++)if(N=s[I]){for(;(N=N.previousSibling)&&N.nodeType!==1;);s[I]=K||N&&N.nodeName.toLowerCase()===C?N||false:N===C}K&&F.filter(C,s,true)},">":function(s,C){var K=typeof C==="string",I,L=0,N=s.length;if(K&&!/\W/.test(C))for(C=C.toLowerCase();L<N;L++){if(I=s[L]){K=I.parentNode;s[L]=K.nodeName.toLowerCase()===C?K:false}}else{for(;L<N;L++)if(I=s[L])s[L]=K?I.parentNode:I.parentNode===
C;K&&F.filter(C,s,true)}},"":function(s,C,K){var I=m++,L=g,N;if(typeof C==="string"&&!/\W/.test(C)){N=C=C.toLowerCase();L=f}L("parentNode",C,I,s,N,K)},"~":function(s,C,K){var I=m++,L=g,N;if(typeof C==="string"&&!/\W/.test(C)){N=C=C.toLowerCase();L=f}L("previousSibling",C,I,s,N,K)}},find:{ID:function(s,C,K){if(typeof C.getElementById!=="undefined"&&!K)return(s=C.getElementById(s[1]))&&s.parentNode?[s]:[]},NAME:function(s,C){if(typeof C.getElementsByName!=="undefined"){for(var K=[],I=C.getElementsByName(s[1]),
L=0,N=I.length;L<N;L++)I[L].getAttribute("name")===s[1]&&K.push(I[L]);return K.length===0?null:K}},TAG:function(s,C){return C.getElementsByTagName(s[1])}},preFilter:{CLASS:function(s,C,K,I,L,N){s=" "+s[1].replace(/\\/g,"")+" ";if(N)return s;N=0;for(var U;(U=C[N])!=null;N++)if(U)if(L^(U.className&&(" "+U.className+" ").replace(/[\t\n]/g," ").indexOf(s)>=0))K||I.push(U);else if(K)C[N]=false;return false},ID:function(s){return s[1].replace(/\\/g,"")},TAG:function(s){return s[1].toLowerCase()},CHILD:function(s){if(s[1]===
"nth"){var C=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]==="even"&&"2n"||s[2]==="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=C[1]+(C[2]||1)-0;s[3]=C[3]-0}s[0]=m++;return s},ATTR:function(s,C,K,I,L,N){C=s[1].replace(/\\/g,"");if(!N&&J.attrMap[C])s[1]=J.attrMap[C];if(s[2]==="~=")s[4]=" "+s[4]+" ";return s},PSEUDO:function(s,C,K,I,L){if(s[1]==="not")if((k.exec(s[3])||"").length>1||/^\w/.test(s[3]))s[3]=F(s[3],null,null,C);else{s=F.filter(s[3],C,K,true^L);K||I.push.apply(I,s);return false}else if(J.match.POS.test(s[0])||
J.match.CHILD.test(s[0]))return true;return s},POS:function(s){s.unshift(true);return s}},filters:{enabled:function(s){return s.disabled===false&&s.type!=="hidden"},disabled:function(s){return s.disabled===true},checked:function(s){return s.checked===true},selected:function(s){return s.selected===true},parent:function(s){return!!s.firstChild},empty:function(s){return!s.firstChild},has:function(s,C,K){return!!F(K[3],s).length},header:function(s){return/h\d/i.test(s.nodeName)},text:function(s){return"text"===
s.type},radio:function(s){return"radio"===s.type},checkbox:function(s){return"checkbox"===s.type},file:function(s){return"file"===s.type},password:function(s){return"password"===s.type},submit:function(s){return"submit"===s.type},image:function(s){return"image"===s.type},reset:function(s){return"reset"===s.type},button:function(s){return"button"===s.type||s.nodeName.toLowerCase()==="button"},input:function(s){return/input|select|textarea|button/i.test(s.nodeName)}},setFilters:{first:function(s,C){return C===
0},last:function(s,C,K,I){return C===I.length-1},even:function(s,C){return C%2===0},odd:function(s,C){return C%2===1},lt:function(s,C,K){return C<K[3]-0},gt:function(s,C,K){return C>K[3]-0},nth:function(s,C,K){return K[3]-0===C},eq:function(s,C,K){return K[3]-0===C}},filter:{PSEUDO:function(s,C,K,I){var L=C[1],N=J.filters[L];if(N)return N(s,K,C,I);else if(L==="contains")return(s.textContent||s.innerText||F.getText([s])||"").indexOf(C[3])>=0;else if(L==="not"){C=C[3];K=0;for(I=C.length;K<I;K++)if(C[K]===
s)return false;return true}else F.error("Syntax error, unrecognized expression: "+L)},CHILD:function(s,C){var K=C[1],I=s;switch(K){case "only":case "first":for(;I=I.previousSibling;)if(I.nodeType===1)return false;if(K==="first")return true;I=s;case "last":for(;I=I.nextSibling;)if(I.nodeType===1)return false;return true;case "nth":K=C[2];var L=C[3];if(K===1&&L===0)return true;var N=C[0],U=s.parentNode;if(U&&(U.sizcache!==N||!s.nodeIndex)){var ba=0;for(I=U.firstChild;I;I=I.nextSibling)if(I.nodeType===
1)I.nodeIndex=++ba;U.sizcache=N}I=s.nodeIndex-L;return K===0?I===0:I%K===0&&I/K>=0}},ID:function(s,C){return s.nodeType===1&&s.getAttribute("id")===C},TAG:function(s,C){return C==="*"&&s.nodeType===1||s.nodeName.toLowerCase()===C},CLASS:function(s,C){return(" "+(s.className||s.getAttribute("class"))+" ").indexOf(C)>-1},ATTR:function(s,C){var K=C[1];K=J.attrHandle[K]?J.attrHandle[K](s):s[K]!=null?s[K]:s.getAttribute(K);var I=K+"",L=C[2],N=C[4];return K==null?L==="!=":L==="="?I===N:L==="*="?I.indexOf(N)>=
0:L==="~="?(" "+I+" ").indexOf(N)>=0:!N?I&&K!==false:L==="!="?I!==N:L==="^="?I.indexOf(N)===0:L==="$="?I.substr(I.length-N.length)===N:L==="|="?I===N||I.substr(0,N.length+1)===N+"-":false},POS:function(s,C,K,I){var L=J.setFilters[C[2]];if(L)return L(s,K,C,I)}}},T=J.match.POS,X=function(s,C){return"\\"+(C-0+1)},ga;for(ga in J.match){J.match[ga]=RegExp(J.match[ga].source+/(?![^\[]*\])(?![^\(]*\))/.source);J.leftMatch[ga]=RegExp(/(^(?:.|\r|\n)*?)/.source+J.match[ga].source.replace(/\\(\d+)/g,X))}var la=
function(s,C){s=Array.prototype.slice.call(s,0);if(C){C.push.apply(C,s);return C}return s};try{Array.prototype.slice.call(z.documentElement.childNodes,0)}catch(ua){la=function(s,C){var K=C||[],I=0;if(q.call(s)==="[object Array]")Array.prototype.push.apply(K,s);else if(typeof s.length==="number")for(var L=s.length;I<L;I++)K.push(s[I]);else for(;s[I];I++)K.push(s[I]);return K}}var Z,ta;if(z.documentElement.compareDocumentPosition)Z=function(s,C){if(s===C){w=true;return 0}if(!s.compareDocumentPosition||
!C.compareDocumentPosition)return s.compareDocumentPosition?-1:1;return s.compareDocumentPosition(C)&4?-1:1};else{Z=function(s,C){var K=[],I=[],L=s.parentNode,N=C.parentNode,U=L;if(s===C){w=true;return 0}else if(L===N)return ta(s,C);else if(L){if(!N)return 1}else return-1;for(;U;){K.unshift(U);U=U.parentNode}for(U=N;U;){I.unshift(U);U=U.parentNode}L=K.length;N=I.length;for(U=0;U<L&&U<N;U++)if(K[U]!==I[U])return ta(K[U],I[U]);return U===L?ta(s,I[U],-1):ta(K[U],C,1)};ta=function(s,C,K){if(s===C)return K;
for(s=s.nextSibling;s;){if(s===C)return-1;s=s.nextSibling}return 1}}F.getText=function(s){for(var C="",K,I=0;s[I];I++){K=s[I];if(K.nodeType===3||K.nodeType===4)C+=K.nodeValue;else if(K.nodeType!==8)C+=F.getText(K.childNodes)}return C};(function(){var s=z.createElement("div"),C="script"+(new Date).getTime();s.innerHTML="<a name='"+C+"'/>";var K=z.documentElement;K.insertBefore(s,K.firstChild);if(z.getElementById(C)){J.find.ID=function(I,L,N){if(typeof L.getElementById!=="undefined"&&!N)return(L=L.getElementById(I[1]))?
L.id===I[1]||typeof L.getAttributeNode!=="undefined"&&L.getAttributeNode("id").nodeValue===I[1]?[L]:a:[]};J.filter.ID=function(I,L){var N=typeof I.getAttributeNode!=="undefined"&&I.getAttributeNode("id");return I.nodeType===1&&N&&N.nodeValue===L}}K.removeChild(s);K=s=null})();(function(){var s=z.createElement("div");s.appendChild(z.createComment(""));if(s.getElementsByTagName("*").length>0)J.find.TAG=function(C,K){var I=K.getElementsByTagName(C[1]);if(C[1]==="*"){for(var L=[],N=0;I[N];N++)I[N].nodeType===
1&&L.push(I[N]);I=L}return I};s.innerHTML="<a href='#'></a>";if(s.firstChild&&typeof s.firstChild.getAttribute!=="undefined"&&s.firstChild.getAttribute("href")!=="#")J.attrHandle.href=function(C){return C.getAttribute("href",2)};s=null})();z.querySelectorAll&&function(){var s=F,C=z.createElement("div");C.innerHTML="<p class='TEST'></p>";if(!(C.querySelectorAll&&C.querySelectorAll(".TEST").length===0)){F=function(I,L,N,U){L=L||z;if(!U&&!F.isXML(L))if(L.nodeType===9)try{return la(L.querySelectorAll(I),
N)}catch(ba){}else if(L.nodeType===1&&L.nodeName.toLowerCase()!=="object"){var ia=L.id,Na=L.id="__sizzle__";try{return la(L.querySelectorAll("#"+Na+" "+I),N)}catch(Ja){}finally{if(ia)L.id=ia;else L.removeAttribute("id")}}return s(I,L,N,U)};for(var K in s)F[K]=s[K];C=null}}();(function(){var s=z.documentElement,C=s.matchesSelector||s.mozMatchesSelector||s.webkitMatchesSelector||s.msMatchesSelector,K=false;try{C.call(z.documentElement,":sizzle")}catch(I){K=true}if(C)F.matchesSelector=function(L,N){try{if(K||
!J.match.PSEUDO.test(N))return C.call(L,N)}catch(U){}return F(N,null,null,[L]).length>0}})();(function(){var s=z.createElement("div");s.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!s.getElementsByClassName||s.getElementsByClassName("e").length===0)){s.lastChild.className="e";if(s.getElementsByClassName("e").length!==1){J.order.splice(1,0,"CLASS");J.find.CLASS=function(C,K,I){if(typeof K.getElementsByClassName!=="undefined"&&!I)return K.getElementsByClassName(C[1])};s=null}}})();
F.contains=z.documentElement.contains?function(s,C){return s!==C&&(s.contains?s.contains(C):true)}:function(s,C){return!!(s.compareDocumentPosition(C)&16)};F.isXML=function(s){return(s=(s?s.ownerDocument||s:0).documentElement)?s.nodeName!=="HTML":false};var Ga=function(s,C){for(var K=[],I="",L,N=C.nodeType?[C]:C;L=J.match.PSEUDO.exec(s);){I+=L[0];s=s.replace(J.match.PSEUDO,"")}s=J.relative[s]?s+"*":s;L=0;for(var U=N.length;L<U;L++)F(s,N[L],K);return F.filter(I,K)};j.find=F;j.expr=F.selectors;j.expr[":"]=
j.expr.filters;j.unique=F.uniqueSort;j.text=F.getText;j.isXMLDoc=F.isXML;j.contains=F.contains})();var H=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,R=/,/,Y=/^.[^:#\[\.,]*$/,ca=Array.prototype.slice,na=j.expr.match.POS;j.fn.extend({find:function(f){for(var g=this.pushStack("","find",f),k=0,m=0,q=this.length;m<q;m++){k=g.length;j.find(f,this[m],g);if(m>0)for(var w=k;w<g.length;w++)for(var D=0;D<k;D++)if(g[D]===g[w]){g.splice(w--,1);break}}return g},has:function(f){var g=j(f);return this.filter(function(){for(var k=
0,m=g.length;k<m;k++)if(j.contains(this,g[k]))return true})},not:function(f){return this.pushStack(l(this,f,false),"not",f)},filter:function(f){return this.pushStack(l(this,f,true),"filter",f)},is:function(f){return!!f&&j.filter(f,this).length>0},closest:function(f,g){var k=[],m,q,w=this[0];if(j.isArray(f)){var D={},F,J=1;if(w&&f.length){m=0;for(q=f.length;m<q;m++){F=f[m];D[F]||(D[F]=j.expr.match.POS.test(F)?j(F,g||this.context):F)}for(;w&&w.ownerDocument&&w!==g;){for(F in D){m=D[F];if(m.jquery?m.index(w)>
-1:j(w).is(m))k.push({selector:F,elem:w,level:J})}w=w.parentNode;J++}}return k}D=na.test(f)?j(f,g||this.context):null;m=0;for(q=this.length;m<q;m++)for(w=this[m];w;)if(D?D.index(w)>-1:j.find.matchesSelector(w,f)){k.push(w);break}else{w=w.parentNode;if(!w||!w.ownerDocument||w===g)break}k=k.length>1?j.unique(k):k;return this.pushStack(k,"closest",f)},index:function(f){if(!f||typeof f==="string")return j.inArray(this[0],f?j(f):this.parent().children());return j.inArray(f.jquery?f[0]:f,this)},add:function(f,
g){var k=typeof f==="string"?j(f,g||this.context):j.makeArray(f),m=j.merge(this.get(),k);return this.pushStack(!k[0]||!k[0].parentNode||k[0].parentNode.nodeType===11||!m[0]||!m[0].parentNode||m[0].parentNode.nodeType===11?m:j.unique(m))},andSelf:function(){return this.add(this.prevObject)}});j.each({parent:function(f){return(f=f.parentNode)&&f.nodeType!==11?f:null},parents:function(f){return j.dir(f,"parentNode")},parentsUntil:function(f,g,k){return j.dir(f,"parentNode",k)},next:function(f){return j.nth(f,
2,"nextSibling")},prev:function(f){return j.nth(f,2,"previousSibling")},nextAll:function(f){return j.dir(f,"nextSibling")},prevAll:function(f){return j.dir(f,"previousSibling")},nextUntil:function(f,g,k){return j.dir(f,"nextSibling",k)},prevUntil:function(f,g,k){return j.dir(f,"previousSibling",k)},siblings:function(f){return j.sibling(f.parentNode.firstChild,f)},children:function(f){return j.sibling(f.firstChild)},contents:function(f){return j.nodeName(f,"iframe")?f.contentDocument||f.contentWindow.document:
j.makeArray(f.childNodes)}},function(f,g){j.fn[f]=function(k,m){var q=j.map(this,g,k);H.test(f)||(m=k);if(m&&typeof m==="string")q=j.filter(m,q);q=this.length>1?j.unique(q):q;if((this.length>1||R.test(m))&&M.test(f))q=q.reverse();return this.pushStack(q,f,ca.call(arguments).join(","))}});j.extend({filter:function(f,g,k){if(k)f=":not("+f+")";return g.length===1?j.find.matchesSelector(g[0],f)?[g[0]]:[]:j.find.matches(f,g)},dir:function(f,g,k){var m=[];for(f=f[g];f&&f.nodeType!==9&&(k===a||f.nodeType!==
1||!j(f).is(k));){f.nodeType===1&&m.push(f);f=f[g]}return m},nth:function(f,g,k){g=g||1;for(var m=0;f;f=f[k])if(f.nodeType===1&&++m===g)break;return f},sibling:function(f,g){for(var k=[];f;f=f.nextSibling)f.nodeType===1&&f!==g&&k.push(f);return k}});var ja=/ jQuery\d+="(?:\d+|null)"/g,qa=/^\s+/,oa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,La=/<([\w:]+)/,Pa=/<tbody/i,wa=/<|&#?\w+;/,Ha=/<(?:script|object|embed|option|style)/i,Ma=/checked\s*(?:[^=]|=\s*.checked.)/i,Ra=
/\=([^="'>\s]+\/)>/g,Ka={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,"",""]};Ka.optgroup=Ka.option;Ka.tbody=Ka.tfoot=Ka.colgroup=Ka.caption=Ka.thead;Ka.th=Ka.td;if(!j.support.htmlSerialize)Ka._default=[1,"div<div>","</div>"];
j.fn.extend({text:function(f){if(j.isFunction(f))return this.each(function(g){var k=j(this);k.text(f.call(this,g,k.text()))});if(typeof f!=="object"&&f!==a)return this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(f));return j.text(this)},wrapAll:function(f){if(j.isFunction(f))return this.each(function(k){j(this).wrapAll(f.call(this,k))});if(this[0]){var g=j(f,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&g.insertBefore(this[0]);g.map(function(){for(var k=this;k.firstChild&&
k.firstChild.nodeType===1;)k=k.firstChild;return k}).append(this)}return this},wrapInner:function(f){if(j.isFunction(f))return this.each(function(g){j(this).wrapInner(f.call(this,g))});return this.each(function(){var g=j(this),k=g.contents();k.length?k.wrapAll(f):g.append(f)})},wrap:function(f){return this.each(function(){j(this).wrapAll(f)})},unwrap:function(){return this.parent().each(function(){j.nodeName(this,"body")||j(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,
true,function(f){this.nodeType===1&&this.appendChild(f)})},prepend:function(){return this.domManip(arguments,true,function(f){this.nodeType===1&&this.insertBefore(f,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(g){this.parentNode.insertBefore(g,this)});else if(arguments.length){var f=j(arguments[0]);f.push.apply(f,this.toArray());return this.pushStack(f,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,
false,function(g){this.parentNode.insertBefore(g,this.nextSibling)});else if(arguments.length){var f=this.pushStack(this,"after",arguments);f.push.apply(f,j(arguments[0]).toArray());return f}},remove:function(f,g){for(var k=0,m;(m=this[k])!=null;k++)if(!f||j.filter(f,[m]).length){if(!g&&m.nodeType===1){j.cleanData(m.getElementsByTagName("*"));j.cleanData([m])}m.parentNode&&m.parentNode.removeChild(m)}return this},empty:function(){for(var f=0,g;(g=this[f])!=null;f++)for(g.nodeType===1&&j.cleanData(g.getElementsByTagName("*"));g.firstChild;)g.removeChild(g.firstChild);
return this},clone:function(f){var g=this.map(function(){if(!j.support.noCloneEvent&&!j.isXMLDoc(this)){var k=this.outerHTML,m=this.ownerDocument;if(!k){k=m.createElement("div");k.appendChild(this.cloneNode(true));k=k.innerHTML}return j.clean([k.replace(ja,"").replace(Ra,'="$1">').replace(qa,"")],m)[0]}else return this.cloneNode(true)});if(f===true){p(this,g);p(this.find("*"),g.find("*"))}return g},html:function(f){if(f===a)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ja,""):null;
else if(typeof f==="string"&&!Ha.test(f)&&(j.support.leadingWhitespace||!qa.test(f))&&!Ka[(La.exec(f)||["",""])[1].toLowerCase()]){f=f.replace(oa,"<$1></$2>");try{for(var g=0,k=this.length;g<k;g++)if(this[g].nodeType===1){j.cleanData(this[g].getElementsByTagName("*"));this[g].innerHTML=f}}catch(m){this.empty().append(f)}}else j.isFunction(f)?this.each(function(q){var w=j(this);w.html(f.call(this,q,w.html()))}):this.empty().append(f);return this},replaceWith:function(f){if(this[0]&&this[0].parentNode){if(j.isFunction(f))return this.each(function(g){var k=
j(this),m=k.html();k.replaceWith(f.call(this,g,m))});if(typeof f!=="string")f=j(f).detach();return this.each(function(){var g=this.nextSibling,k=this.parentNode;j(this).remove();g?j(g).before(f):j(k).append(f)})}else return this.pushStack(j(j.isFunction(f)?f():f),"replaceWith",f)},detach:function(f){return this.remove(f,true)},domManip:function(f,g,k){var m,q,w=f[0],D=[],F;if(!j.support.checkClone&&arguments.length===3&&typeof w==="string"&&Ma.test(w))return this.each(function(){j(this).domManip(f,
g,k,true)});if(j.isFunction(w))return this.each(function(T){var X=j(this);f[0]=w.call(this,T,g?X.html():a);X.domManip(f,g,k)});if(this[0]){m=w&&w.parentNode;m=j.support.parentNode&&m&&m.nodeType===11&&m.childNodes.length===this.length?{fragment:m}:j.buildFragment(f,this,D);F=m.fragment;if(q=F.childNodes.length===1?F=F.firstChild:F.firstChild){g=g&&j.nodeName(q,"tr");q=0;for(var J=this.length;q<J;q++)k.call(g?j.nodeName(this[q],"table")?this[q].getElementsByTagName("tbody")[0]||this[q].appendChild(this[q].ownerDocument.createElement("tbody")):
this[q]:this[q],q>0||m.cacheable||this.length>1?F.cloneNode(true):F)}D.length&&j.each(D,t)}return this}});j.buildFragment=function(f,g,k){var m,q,w;g=g&&g[0]?g[0].ownerDocument||g[0]:z;if(f.length===1&&typeof f[0]==="string"&&f[0].length<512&&g===z&&!Ha.test(f[0])&&(j.support.checkClone||!Ma.test(f[0]))){q=true;if(w=j.fragments[f[0]])if(w!==1)m=w}if(!m){m=g.createDocumentFragment();j.clean(f,g,m,k)}if(q)j.fragments[f[0]]=w?m:1;return{fragment:m,cacheable:q}};j.fragments={};j.each({appendTo:"append",
prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,g){j.fn[f]=function(k){var m=[];k=j(k);var q=this.length===1&&this[0].parentNode;if(q&&q.nodeType===11&&q.childNodes.length===1&&k.length===1){k[g](this[0]);return this}else{q=0;for(var w=k.length;q<w;q++){var D=(q>0?this.clone(true):this).get();j(k[q])[g](D);m=m.concat(D)}return this.pushStack(m,f,k.selector)}}});j.extend({clean:function(f,g,k,m){g=g||z;if(typeof g.createElement==="undefined")g=g.ownerDocument||
g[0]&&g[0].ownerDocument||z;for(var q=[],w=0,D;(D=f[w])!=null;w++){if(typeof D==="number")D+="";if(D){if(typeof D==="string"&&!wa.test(D))D=g.createTextNode(D);else if(typeof D==="string"){D=D.replace(oa,"<$1></$2>");var F=(La.exec(D)||["",""])[1].toLowerCase(),J=Ka[F]||Ka._default,T=J[0],X=g.createElement("div");for(X.innerHTML=J[1]+D+J[2];T--;)X=X.lastChild;if(!j.support.tbody){T=Pa.test(D);F=F==="table"&&!T?X.firstChild&&X.firstChild.childNodes:J[1]==="<table>"&&!T?X.childNodes:[];for(J=F.length-
1;J>=0;--J)j.nodeName(F[J],"tbody")&&!F[J].childNodes.length&&F[J].parentNode.removeChild(F[J])}!j.support.leadingWhitespace&&qa.test(D)&&X.insertBefore(g.createTextNode(qa.exec(D)[0]),X.firstChild);D=X.childNodes}if(D.nodeType)q.push(D);else q=j.merge(q,D)}}if(k)for(w=0;q[w];w++)if(m&&j.nodeName(q[w],"script")&&(!q[w].type||q[w].type.toLowerCase()==="text/javascript"))m.push(q[w].parentNode?q[w].parentNode.removeChild(q[w]):q[w]);else{q[w].nodeType===1&&q.splice.apply(q,[w+1,0].concat(j.makeArray(q[w].getElementsByTagName("script"))));
k.appendChild(q[w])}return q},cleanData:function(f){for(var g,k,m=j.cache,q=j.event.special,w=j.support.deleteExpando,D=0,F;(F=f[D])!=null;D++)if(!(F.nodeName&&j.noData[F.nodeName.toLowerCase()]))if(k=F[j.expando]){if((g=m[k])&&g.events)for(var J in g.events)q[J]?j.event.remove(F,J):j.removeEvent(F,J,g.handle);if(w)delete F[j.expando];else F.removeAttribute&&F.removeAttribute(j.expando);delete m[k]}}});var Za=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,ab=/^-?\d+(?:px)?$/i,
jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},db=["Left","Right"],eb=["Top","Bottom"],Ta,lb=z.defaultView&&z.defaultView.getComputedStyle,mb=function(f,g){return g.toUpperCase()};j.fn.css=function(f,g){if(arguments.length===2&&g===a)return this;return j.access(this,f,g,true,function(k,m,q){return q!==a?j.style(k,m,q):j.css(k,m)})};j.extend({cssHooks:{opacity:{get:function(f,g){if(g){var k=Ta(f,"opacity","opacity");return k===""?"1":k}else return f.style.opacity}}},cssNumber:{zIndex:true,
fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(f,g,k,m){if(!(!f||f.nodeType===3||f.nodeType===8||!f.style)){var q,w=j.camelCase(g),D=f.style,F=j.cssHooks[w];g=j.cssProps[w]||w;if(k!==a){if(!(typeof k==="number"&&isNaN(k)||k==null)){if(typeof k==="number"&&!j.cssNumber[w])k+="px";if(!F||!("set"in F)||(k=F.set(f,k))!==a)try{D[g]=k}catch(J){}}}else{if(F&&"get"in F&&(q=F.get(f,false,m))!==a)return q;return D[g]}}},css:function(f,
g,k){var m,q=j.camelCase(g),w=j.cssHooks[q];g=j.cssProps[q]||q;if(w&&"get"in w&&(m=w.get(f,true,k))!==a)return m;else if(Ta)return Ta(f,g,q)},swap:function(f,g,k){var m={},q;for(q in g){m[q]=f.style[q];f.style[q]=g[q]}k.call(f);for(q in g)f.style[q]=m[q]},camelCase:function(f){return f.replace(hb,mb)}});j.curCSS=j.css;j.each(["height","width"],function(f,g){j.cssHooks[g]={get:function(k,m,q){var w;if(m){if(k.offsetWidth!==0)w=o(k,g,q);else j.swap(k,kb,function(){w=o(k,g,q)});return w+"px"}},set:function(k,
m){if(ab.test(m)){m=parseFloat(m);if(m>=0)return m+"px"}else return m}}});if(!j.support.opacity)j.cssHooks.opacity={get:function(f,g){return gb.test((g&&f.currentStyle?f.currentStyle.filter:f.style.filter)||"")?parseFloat(RegExp.$1)/100+"":g?"1":""},set:function(f,g){var k=f.style;k.zoom=1;var m=j.isNaN(g)?"":"alpha(opacity="+g*100+")",q=k.filter||"";k.filter=Za.test(q)?q.replace(Za,m):k.filter+" "+m}};if(lb)Ta=function(f,g,k){var m;k=k.replace(ib,"-$1").toLowerCase();if(!(g=f.ownerDocument.defaultView))return a;
if(g=g.getComputedStyle(f,null)){m=g.getPropertyValue(k);if(m===""&&!j.contains(f.ownerDocument.documentElement,f))m=j.style(f,k)}return m};else if(z.documentElement.currentStyle)Ta=function(f,g){var k,m,q=f.currentStyle&&f.currentStyle[g],w=f.style;if(!ab.test(q)&&jb.test(q)){k=w.left;m=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;w.left=g==="fontSize"?"1em":q||0;q=w.pixelLeft+"px";w.left=k;f.runtimeStyle.left=m}return q};if(j.expr&&j.expr.filters){j.expr.filters.hidden=function(f){var g=
f.offsetHeight;return f.offsetWidth===0&&g===0||!j.support.reliableHiddenOffsets&&(f.style.display||j.css(f,"display"))==="none"};j.expr.filters.visible=function(f){return!j.expr.filters.hidden(f)}}var nb=j.now(),ob=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,pb=/^(?:select|textarea)/i,qb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,rb=/^(?:GET|HEAD|DELETE)$/,fb=/\[\]$/,Sa=/\=\?(&|$)/,Xa=/\?/,sb=/([?&])_=[^&]*/,tb=/^(\w+:)?\/\/([^\/?#]+)/,
ub=/%20/g,vb=/#.*$/,bb=j.fn.load;j.fn.extend({load:function(f,g,k){if(typeof f!=="string"&&bb)return bb.apply(this,arguments);else if(!this.length)return this;var m=f.indexOf(" ");if(m>=0){var q=f.slice(m,f.length);f=f.slice(0,m)}m="GET";if(g)if(j.isFunction(g)){k=g;g=null}else if(typeof g==="object"){g=j.param(g,j.ajaxSettings.traditional);m="POST"}var w=this;j.ajax({url:f,type:m,dataType:"html",data:g,complete:function(D,F){if(F==="success"||F==="notmodified")w.html(q?j("<div>").append(D.responseText.replace(ob,
"")).find(q):D.responseText);k&&w.each(k,[D.responseText,F,D])}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||pb.test(this.nodeName)||qb.test(this.type))}).map(function(f,g){var k=j(this).val();return k==null?null:j.isArray(k)?j.map(k,function(m){return{name:g.name,value:m}}):{name:g.name,value:k}}).get()}});
j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(f,g){j.fn[g]=function(k){return this.bind(g,k)}});j.extend({get:function(f,g,k,m){if(j.isFunction(g)){m=m||k;k=g;g=null}return j.ajax({type:"GET",url:f,data:g,success:k,dataType:m})},getScript:function(f,g){return j.get(f,null,g,"script")},getJSON:function(f,g,k){return j.get(f,g,k,"json")},post:function(f,g,k,m){if(j.isFunction(g)){m=m||k;k=g;g={}}return j.ajax({type:"POST",url:f,data:g,success:k,dataType:m})},
ajaxSetup:function(f){j.extend(j.ajaxSettings,f)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new b.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(f){var g=j.extend(true,{},j.ajaxSettings,f),k,m,q,w=g.type.toUpperCase(),D=rb.test(w);
g.url=g.url.replace(vb,"");g.context=f&&f.context!=null?f.context:g;if(g.data&&g.processData&&typeof g.data!=="string")g.data=j.param(g.data,g.traditional);if(g.dataType==="jsonp"){if(w==="GET")Sa.test(g.url)||(g.url+=(Xa.test(g.url)?"&":"?")+(g.jsonp||"callback")+"=?");else if(!g.data||!Sa.test(g.data))g.data=(g.data?g.data+"&":"")+(g.jsonp||"callback")+"=?";g.dataType="json"}if(g.dataType==="json"&&(g.data&&Sa.test(g.data)||Sa.test(g.url))){k=g.jsonpCallback||"jsonp"+nb++;if(g.data)g.data=(g.data+
"").replace(Sa,"="+k+"$1");g.url=g.url.replace(Sa,"="+k+"$1");g.dataType="script";var F=b[k];b[k]=function(I){q=I;j.handleSuccess(g,Z,m,q);j.handleComplete(g,Z,m,q);if(j.isFunction(F))F(I);else{b[k]=a;try{delete b[k]}catch(L){}}X&&X.removeChild(ga)}}if(g.dataType==="script"&&g.cache===null)g.cache=false;if(g.cache===false&&w==="GET"){var J=j.now(),T=g.url.replace(sb,"$1_="+J);g.url=T+(T===g.url?(Xa.test(g.url)?"&":"?")+"_="+J:"")}if(g.data&&w==="GET")g.url+=(Xa.test(g.url)?"&":"?")+g.data;g.global&&
j.active++===0&&j.event.trigger("ajaxStart");J=(J=tb.exec(g.url))&&(J[1]&&J[1]!==location.protocol||J[2]!==location.host);if(g.dataType==="script"&&w==="GET"&&J){var X=z.getElementsByTagName("head")[0]||z.documentElement,ga=z.createElement("script");if(g.scriptCharset)ga.charset=g.scriptCharset;ga.src=g.url;if(!k){var la=false;ga.onload=ga.onreadystatechange=function(){if(!la&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){la=true;j.handleSuccess(g,Z,m,q);j.handleComplete(g,
Z,m,q);ga.onload=ga.onreadystatechange=null;X&&ga.parentNode&&X.removeChild(ga)}}}X.insertBefore(ga,X.firstChild);return a}var ua=false,Z=g.xhr();if(Z){g.username?Z.open(w,g.url,g.async,g.username,g.password):Z.open(w,g.url,g.async);try{if(g.data!=null&&!D||f&&f.contentType)Z.setRequestHeader("Content-Type",g.contentType);if(g.ifModified){j.lastModified[g.url]&&Z.setRequestHeader("If-Modified-Since",j.lastModified[g.url]);j.etag[g.url]&&Z.setRequestHeader("If-None-Match",j.etag[g.url])}J||Z.setRequestHeader("X-Requested-With",
"XMLHttpRequest");Z.setRequestHeader("Accept",g.dataType&&g.accepts[g.dataType]?g.accepts[g.dataType]+", */*; q=0.01":g.accepts._default)}catch(ta){}if(g.beforeSend&&g.beforeSend.call(g.context,Z,g)===false){g.global&&j.active--===1&&j.event.trigger("ajaxStop");Z.abort();return false}g.global&&j.triggerGlobal(g,"ajaxSend",[Z,g]);var Ga=Z.onreadystatechange=function(I){if(!Z||Z.readyState===0||I==="abort"){ua||j.handleComplete(g,Z,m,q);ua=true;if(Z)Z.onreadystatechange=j.noop}else if(!ua&&Z&&(Z.readyState===
4||I==="timeout")){ua=true;Z.onreadystatechange=j.noop;m=I==="timeout"?"timeout":!j.httpSuccess(Z)?"error":g.ifModified&&j.httpNotModified(Z,g.url)?"notmodified":"success";var L;if(m==="success")try{q=j.httpData(Z,g.dataType,g)}catch(N){m="parsererror";L=N}if(m==="success"||m==="notmodified")k||j.handleSuccess(g,Z,m,q);else j.handleError(g,Z,m,L);k||j.handleComplete(g,Z,m,q);I==="timeout"&&Z.abort();if(g.async)Z=null}};try{var s=Z.abort;Z.abort=function(){Z&&s.call&&s.call(Z);Ga("abort")}}catch(C){}g.async&&
g.timeout>0&&setTimeout(function(){Z&&!ua&&Ga("timeout")},g.timeout);try{Z.send(D||g.data==null?null:g.data)}catch(K){j.handleError(g,Z,null,K);j.handleComplete(g,Z,m,q)}g.async||Ga();return Z}},param:function(f,g){var k=[],m=function(w,D){D=j.isFunction(D)?D():D;k[k.length]=encodeURIComponent(w)+"="+encodeURIComponent(D)};if(g===a)g=j.ajaxSettings.traditional;if(j.isArray(f)||f.jquery)j.each(f,function(){m(this.name,this.value)});else for(var q in f)n(q,f[q],g,m);return k.join("&").replace(ub,"+")}});
j.extend({active:0,lastModified:{},etag:{},handleError:function(f,g,k,m){f.error&&f.error.call(f.context,g,k,m);f.global&&j.triggerGlobal(f,"ajaxError",[g,f,m])},handleSuccess:function(f,g,k,m){f.success&&f.success.call(f.context,m,k,g);f.global&&j.triggerGlobal(f,"ajaxSuccess",[g,f])},handleComplete:function(f,g,k){f.complete&&f.complete.call(f.context,g,k);f.global&&j.triggerGlobal(f,"ajaxComplete",[g,f]);f.global&&j.active--===1&&j.event.trigger("ajaxStop")},triggerGlobal:function(f,g,k){(f.context&&
f.context.url==null?j(f.context):j.event).trigger(g,k)},httpSuccess:function(f){try{return!f.status&&location.protocol==="file:"||f.status>=200&&f.status<300||f.status===304||f.status===1223}catch(g){}return false},httpNotModified:function(f,g){var k=f.getResponseHeader("Last-Modified"),m=f.getResponseHeader("Etag");if(k)j.lastModified[g]=k;if(m)j.etag[g]=m;return f.status===304},httpData:function(f,g,k){var m=f.getResponseHeader("content-type")||"",q=g==="xml"||!g&&m.indexOf("xml")>=0;f=q?f.responseXML:
f.responseText;q&&f.documentElement.nodeName==="parsererror"&&j.error("parsererror");if(k&&k.dataFilter)f=k.dataFilter(f,g);if(typeof f==="string")if(g==="json"||!g&&m.indexOf("json")>=0)f=j.parseJSON(f);else if(g==="script"||!g&&m.indexOf("javascript")>=0)j.globalEval(f);return f}});if(b.ActiveXObject)j.ajaxSettings.xhr=function(){if(b.location.protocol!=="file:")try{return new b.XMLHttpRequest}catch(f){}try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(g){}};j.support.ajax=!!j.ajaxSettings.xhr();
var Va={},wb=/^(?:toggle|show|hide)$/,xb=/^([+\-]=)?([\d+.\-]+)(.*)$/,Ua,Ya=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];j.fn.extend({show:function(f,g,k){if(f||f===0)return this.animate(r("show",3),f,g,k);else{f=0;for(g=this.length;f<g;f++){if(!j.data(this[f],"olddisplay")&&this[f].style.display==="none")this[f].style.display="";this[f].style.display===""&&j.css(this[f],"display")==="none"&&j.data(this[f],
"olddisplay",v(this[f].nodeName))}for(f=0;f<g;f++)this[f].style.display=j.data(this[f],"olddisplay")||"";return this}},hide:function(f,g,k){if(f||f===0)return this.animate(r("hide",3),f,g,k);else{f=0;for(g=this.length;f<g;f++){k=j.css(this[f],"display");k!=="none"&&j.data(this[f],"olddisplay",k)}for(f=0;f<g;f++)this[f].style.display="none";return this}},_toggle:j.fn.toggle,toggle:function(f,g,k){var m=typeof f==="boolean";if(j.isFunction(f)&&j.isFunction(g))this._toggle.apply(this,arguments);else f==
null||m?this.each(function(){var q=m?f:j(this).is(":hidden");j(this)[q?"show":"hide"]()}):this.animate(r("toggle",3),f,g,k);return this},fadeTo:function(f,g,k,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:g},f,k,m)},animate:function(f,g,k,m){var q=j.speed(g,k,m);if(j.isEmptyObject(f))return this.each(q.complete);return this[q.queue===false?"each":"queue"](function(){var w=j.extend({},q),D,F=this.nodeType===1,J=F&&j(this).is(":hidden"),T=this;for(D in f){var X=j.camelCase(D);
if(D!==X){f[X]=f[D];delete f[D];D=X}if(f[D]==="hide"&&J||f[D]==="show"&&!J)return w.complete.call(this);if(F&&(D==="height"||D==="width")){w.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(j.css(this,"display")==="inline"&&j.css(this,"float")==="none")if(j.support.inlineBlockNeedsLayout)if(v(this.nodeName)==="inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(j.isArray(f[D])){(w.specialEasing=
w.specialEasing||{})[D]=f[D][1];f[D]=f[D][0]}}if(w.overflow!=null)this.style.overflow="hidden";w.curAnim=j.extend({},f);j.each(f,function(ga,la){var ua=new j.fx(T,w,ga);if(wb.test(la))ua[la==="toggle"?J?"show":"hide":la](f);else{var Z=xb.exec(la),ta=ua.cur(true)||0;if(Z){var Ga=parseFloat(Z[2]),s=Z[3]||"px";if(s!=="px"){j.style(T,ga,(Ga||1)+s);ta=(Ga||1)/ua.cur(true)*ta;j.style(T,ga,ta+s)}if(Z[1])Ga=(Z[1]==="-="?-1:1)*Ga+ta;ua.custom(ta,Ga,s)}else ua.custom(ta,la,"")}});return true})},stop:function(f,
g){var k=j.timers;f&&this.queue([]);this.each(function(){for(var m=k.length-1;m>=0;m--)if(k[m].elem===this){g&&k[m](true);k.splice(m,1)}});g||this.dequeue();return this}});j.each({slideDown:r("show",1),slideUp:r("hide",1),slideToggle:r("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(f,g){j.fn[f]=function(k,m,q){return this.animate(g,k,m,q)}});j.extend({speed:function(f,g,k){var m=f&&typeof f==="object"?j.extend({},f):{complete:k||!k&&g||j.isFunction(f)&&f,duration:f,easing:k&&
g||g&&!j.isFunction(g)&&g};m.duration=j.fx.off?0:typeof m.duration==="number"?m.duration:m.duration in j.fx.speeds?j.fx.speeds[m.duration]:j.fx.speeds._default;m.old=m.complete;m.complete=function(){m.queue!==false&&j(this).dequeue();j.isFunction(m.old)&&m.old.call(this)};return m},easing:{linear:function(f,g,k,m){return k+m*f},swing:function(f,g,k,m){return(-Math.cos(f*Math.PI)/2+0.5)*m+k}},timers:[],fx:function(f,g,k){this.options=g;this.elem=f;this.prop=k;if(!g.orig)g.orig={}}});j.fx.prototype=
{update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(j.fx.step[this.prop]||j.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 f=parseFloat(j.css(this.elem,this.prop));return f&&f>-1E4?f:0},custom:function(f,g,k){function m(w){return q.step(w)}this.startTime=j.now();this.start=f;this.end=g;this.unit=k||this.unit||"px";this.now=this.start;this.pos=this.state=0;
var q=this;f=j.fx;m.elem=this.elem;if(m()&&j.timers.push(m)&&!Ua)Ua=setInterval(f.tick,f.interval)},show:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(f){var g=j.now(),k=true;if(f||g>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var m in this.options.curAnim)if(this.options.curAnim[m]!==true)k=false;if(k){if(this.options.overflow!=null&&!j.support.shrinkWrapBlocks){var q=this.elem,w=this.options;j.each(["","X","Y"],function(F,J){q.style["overflow"+J]=w.overflow[F]})}this.options.hide&&j(this.elem).hide();if(this.options.hide||this.options.show)for(var D in this.options.curAnim)j.style(this.elem,D,this.options.orig[D]);this.options.complete.call(this.elem)}return false}else{f=
g-this.startTime;this.state=f/this.options.duration;g=this.options.easing||(j.easing.swing?"swing":"linear");this.pos=j.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||g](this.state,f,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};j.extend(j.fx,{tick:function(){for(var f=j.timers,g=0;g<f.length;g++)f[g]()||f.splice(g--,1);f.length||j.fx.stop()},interval:13,stop:function(){clearInterval(Ua);Ua=null},speeds:{slow:600,
fast:200,_default:400},step:{opacity:function(f){j.style(f.elem,"opacity",f.now)},_default:function(f){if(f.elem.style&&f.elem.style[f.prop]!=null)f.elem.style[f.prop]=(f.prop==="width"||f.prop==="height"?Math.max(0,f.now):f.now)+f.unit;else f.elem[f.prop]=f.now}}});if(j.expr&&j.expr.filters)j.expr.filters.animated=function(f){return j.grep(j.timers,function(g){return f===g.elem}).length};var yb=/^t(?:able|d|h)$/i,cb=/^(?:body|html)$/i;j.fn.offset="getBoundingClientRect"in z.documentElement?function(f){var g=
this[0],k;if(f)return this.each(function(D){j.offset.setOffset(this,f,D)});if(!g||!g.ownerDocument)return null;if(g===g.ownerDocument.body)return j.offset.bodyOffset(g);try{k=g.getBoundingClientRect()}catch(m){}var q=g.ownerDocument,w=q.documentElement;if(!k||!j.contains(w,g))return k||{top:0,left:0};g=q.body;q=x(q);return{top:k.top+(q.pageYOffset||j.support.boxModel&&w.scrollTop||g.scrollTop)-(w.clientTop||g.clientTop||0),left:k.left+(q.pageXOffset||j.support.boxModel&&w.scrollLeft||g.scrollLeft)-
(w.clientLeft||g.clientLeft||0)}}:function(f){var g=this[0];if(f)return this.each(function(T){j.offset.setOffset(this,f,T)});if(!g||!g.ownerDocument)return null;if(g===g.ownerDocument.body)return j.offset.bodyOffset(g);j.offset.initialize();var k=g.offsetParent,m=g.ownerDocument,q,w=m.documentElement,D=m.body;q=(m=m.defaultView)?m.getComputedStyle(g,null):g.currentStyle;for(var F=g.offsetTop,J=g.offsetLeft;(g=g.parentNode)&&g!==D&&g!==w;){if(j.offset.supportsFixedPosition&&q.position==="fixed")break;
q=m?m.getComputedStyle(g,null):g.currentStyle;F-=g.scrollTop;J-=g.scrollLeft;if(g===k){F+=g.offsetTop;J+=g.offsetLeft;if(j.offset.doesNotAddBorder&&!(j.offset.doesAddBorderForTableAndCells&&yb.test(g.nodeName))){F+=parseFloat(q.borderTopWidth)||0;J+=parseFloat(q.borderLeftWidth)||0}k=g.offsetParent}if(j.offset.subtractsBorderForOverflowNotVisible&&q.overflow!=="visible"){F+=parseFloat(q.borderTopWidth)||0;J+=parseFloat(q.borderLeftWidth)||0}q=q}if(q.position==="relative"||q.position==="static"){F+=
D.offsetTop;J+=D.offsetLeft}if(j.offset.supportsFixedPosition&&q.position==="fixed"){F+=Math.max(w.scrollTop,D.scrollTop);J+=Math.max(w.scrollLeft,D.scrollLeft)}return{top:F,left:J}};j.offset={initialize:function(){var f=z.body,g=z.createElement("div"),k,m,q,w=parseFloat(j.css(f,"marginTop"))||0;j.extend(g.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});g.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>";
f.insertBefore(g,f.firstChild);k=g.firstChild;m=k.firstChild;q=k.nextSibling.firstChild.firstChild;this.doesNotAddBorder=m.offsetTop!==5;this.doesAddBorderForTableAndCells=q.offsetTop===5;m.style.position="fixed";m.style.top="20px";this.supportsFixedPosition=m.offsetTop===20||m.offsetTop===15;m.style.position=m.style.top="";k.style.overflow="hidden";k.style.position="relative";this.subtractsBorderForOverflowNotVisible=m.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=f.offsetTop!==w;f.removeChild(g);
j.offset.initialize=j.noop},bodyOffset:function(f){var g=f.offsetTop,k=f.offsetLeft;j.offset.initialize();if(j.offset.doesNotIncludeMarginInBodyOffset){g+=parseFloat(j.css(f,"marginTop"))||0;k+=parseFloat(j.css(f,"marginLeft"))||0}return{top:g,left:k}},setOffset:function(f,g,k){var m=j.css(f,"position");if(m==="static")f.style.position="relative";var q=j(f),w=q.offset(),D=j.css(f,"top"),F=j.css(f,"left"),J=m==="absolute"&&j.inArray("auto",[D,F])>-1;m={};var T={};if(J)T=q.position();D=J?T.top:parseInt(D,
10)||0;F=J?T.left:parseInt(F,10)||0;if(j.isFunction(g))g=g.call(f,k,w);if(g.top!=null)m.top=g.top-w.top+D;if(g.left!=null)m.left=g.left-w.left+F;"using"in g?g.using.call(f,m):q.css(m)}};j.fn.extend({position:function(){if(!this[0])return null;var f=this[0],g=this.offsetParent(),k=this.offset(),m=cb.test(g[0].nodeName)?{top:0,left:0}:g.offset();k.top-=parseFloat(j.css(f,"marginTop"))||0;k.left-=parseFloat(j.css(f,"marginLeft"))||0;m.top+=parseFloat(j.css(g[0],"borderTopWidth"))||0;m.left+=parseFloat(j.css(g[0],
"borderLeftWidth"))||0;return{top:k.top-m.top,left:k.left-m.left}},offsetParent:function(){return this.map(function(){for(var f=this.offsetParent||z.body;f&&!cb.test(f.nodeName)&&j.css(f,"position")==="static";)f=f.offsetParent;return f})}});j.each(["Left","Top"],function(f,g){var k="scroll"+g;j.fn[k]=function(m){var q=this[0],w;if(!q)return null;if(m!==a)return this.each(function(){if(w=x(this))w.scrollTo(!f?m:j(w).scrollLeft(),f?m:j(w).scrollTop());else this[k]=m});else return(w=x(q))?"pageXOffset"in
w?w[f?"pageYOffset":"pageXOffset"]:j.support.boxModel&&w.document.documentElement[k]||w.document.body[k]:q[k]}});j.each(["Height","Width"],function(f,g){var k=g.toLowerCase();j.fn["inner"+g]=function(){return this[0]?parseFloat(j.css(this[0],k,"padding")):null};j.fn["outer"+g]=function(m){return this[0]?parseFloat(j.css(this[0],k,m?"margin":"border")):null};j.fn[k]=function(m){var q=this[0];if(!q)return m==null?null:this;if(j.isFunction(m))return this.each(function(w){var D=j(this);D[k](m.call(this,
w,D[k]()))});return j.isWindow(q)?q.document.compatMode==="CSS1Compat"&&q.document.documentElement["client"+g]||q.document.body["client"+g]:q.nodeType===9?Math.max(q.documentElement["client"+g],q.body["scroll"+g],q.documentElement["scroll"+g],q.body["offset"+g],q.documentElement["offset"+g]):m===a?parseFloat(j.css(q,k)):this.css(k,typeof m==="string"?m:m+"px")}})})(window);var joosetop=this;
Joose=function(){this.currentModule=this.cc=null;this.top=joosetop;this.globalObjects=[];this.anonymouseClassCounter=0};Joose.A={};Joose.A.each=function(b,a){for(var c=0;c<b.length;c++)a(b[c],c)};Joose.A.exists=function(b,a){for(var c=0;c<b.length;c++)if(b[c]==a)return true;return false};Joose.A.concat=function(b,a){b.push.apply(b,a);return b};Joose.A.grep=function(b,a){var c=[];Joose.A.each(b,function(d){a(d)&&c.push(d)});return c};
Joose.A.remove=function(b,a){var c=[];Joose.A.each(b,function(d){d!==a&&c.push(d)});return c};Joose.S={};Joose.S.uppercaseFirst=function(b){var a=b.substr(0,1);b=b.substr(1,b.length-1);a=a.toUpperCase();return a+b};Joose.S.isString=function(b){if(typeof b=="string")return true;return false};Joose.O={};Joose.O.each=function(b,a){for(var c in b)a(b[c],c)};Joose.O.eachSafe=function(b,a){for(var c in b)b.hasOwnProperty(c)&&a(b[c],c)};Joose.O.extend=function(b,a){for(var c in a)b[c]=a[c]};
Joose.prototype={addToString:function(b,a){b.toString=a},isInstance:function(b){if(!b.meta)throw"isInstance only works with Joose objects and classes.";if(b.constructor===b.meta.c)return true;return false},init:function(){this.builder=new Joose.Builder;this.builder.globalize()},components:function(){return["Joose.Builder","Joose.Class","Joose.Method","Joose.ClassMethod","Joose.Attribute","Joose.Role","Joose.Singleton","Joose.SimpleRequest","Joose.Gears","Joose.Storage","Joose.Storage.Unpacker","Joose.Decorator",
"Joose.Module","Joose.TypeChecker","Joose.TypeConstraint","Joose.TypeCoercion","Joose.Types","Joose.Prototype","Joose.TypedMethod","Joose.MultiMethod"]},loadComponents:function(b){var a="";Joose.A.each(this.components(),function(c){c=""+b+"/"+c.split(".").join("/")+".js";a+='<script type="text/javascript" src="'+c+'"><\/script>'});document.write(a)}};Joose.copyObject=function(b,a){var c="";Joose.O.each(b,function(d,e){c+=", "+e;a[e]=d});return a};Joose.emptyFunction=function(){};this.joose=new Joose;
(function(){if(typeof this.load=="function"&&(typeof this.Packages=="function"||typeof this.Packages=="object"))joose.CHAOTIC_TRAVERSION_ORDER=true})();
Joose.bootstrap=function(){var b=new Joose.MetaClassBootstrap;b.builder=Joose.MetaClassBootstrap;Joose.MetaClass=b.createClass("Joose.MetaClass");Joose.MetaClass.meta.addNonJooseSuperClass("Joose.MetaClassBootstrap",b);Joose.MetaClass.meta.addMethod("initialize",function(){this._name="Joose.MetaClass"});b=new Joose.MetaClass;b.builder=Joose.MetaClass;Joose.Class=b.createClass("Joose.Class");Joose.Class.meta.addSuperClass(Joose.MetaClass);Joose.MetaClass.meta.addMethod("initialize",function(){this._name=
"Joose.Class"});Joose.Class.create=function(a,c,d){var e=new this;e.builder=this;a=e.createClass(a,c,d);a.meta.builder=this;return a}};Joose.bootstrapCompletedBuilder=function(){Joose.Builder.Globals.joosify("Joose.Method",Joose.Method);Joose.Builder.Globals.joosify("Joose.Attribute",Joose.Attribute)};Joose.bootstrapCompletedClassMethod=function(){Joose.Class.meta.addClassMethod("create",Joose.Class.create)};Joose.bootstrap3=function(){};
Joose.MetaClassBootstrap=function(){this._name="Joose.MetaClassBootstrap";this.methodNames=[];this.attributeNames=["_name","isAbstract","isDetached","methodNames","attributeNames","methods","parentClasses","roles","c"];this.attributes={};this.methods={};this.classMethods={};this.parentClasses=[];this.roles=[];this.myRoles=[];this.isDetached=this.isAbstract=false};
Joose.MetaClassBootstrap.prototype={toString:function(){if(this.meta)return"a "+this.meta.className();return"NoMeta"},className:function(){return this._name},getName:function(){return this.className()},newMetaClass:function(){var b=this.builder,a=new b;a.builder=b;a._name=this._name;a.methodNames=[];a.attributeNames=[];a.methods={};a.classMethods={};a.parentClasses=[];a.roles=[];a.myRoles=[];a.attributes={};(b=this.meta)||(b=this);a.meta=b;return a},createClass:function(b,a,c){var d=this.newMetaClass();
if(a)a=a;else{a=this.defaultClassFunctionBody();c&&c.addElement(a)}a.prototype.meta=d;a.meta=d;if(b==null)d._name="__anonymous__";else{var e=b;if(c)e=c.getName()+"."+b;d._name=e}d.c=a;c||joose.globalObjects.push(a);d.addInitializer();d.addToString();d.addDetacher();return a},buildComplete:function(){},initializeFromProps:function(b){this._initializeFromProps(b)},_initializeFromProps:function(b){var a=this;if(b){joose.CHAOTIC_TRAVERSION_ORDER&&Joose.A.each(["isa","does","has","method","methods"],function(d){if(d in
b){a._initializeFromProp(d,b[d],b);delete b[d]}});Joose.O.eachSafe(b,function(d,e){a._initializeFromProp(e,d,b)});for(var c=0;c<this.roles.length;c++)this.roles[c].meta.applyMethodModifiers(this.c);a.buildComplete();a.validateClass()}},_initializeFromProp:function(b,a,c){var d="handleProp"+b;if(this.meta.can(d))this[d](a,c);else throw Error("Called invalid builder "+b+" while creating class "+this.className());},instantiate:function(){var b=function(){};b.prototype=this.c.prototype;b.prototype.constructor=
this.c;b=new b;this.c.apply(b,arguments);return b},defaultClassFunctionBody:function(){var b=function(){this.initialize.apply(this,arguments)};joose.addToString(b,function(){return this.meta.className()});return b},addToString:function(){this.addMethod("toString",function(){if(this.stringify)return this.stringify();return"a "+this.meta.className()})},addInitializer:function(){this.c.prototype.initialize||this.addMethod("initialize",this.initializer())},initializer:function(){return function(b){if(this.meta.isAbstract)throw""+
this.meta.className()+" is an abstract class and may not instantiated.";var a=this.meta.getAttributes(),c;for(c in a)a.hasOwnProperty(c)&&a[c].doInitialization(this,b)}},dieIfString:function(b){if(Joose.S.isString(b))throw new TypeError("Parameter must not be a string.");},addRole:function(b){this.dieIfString(b);var a=this.getClassObject();if(b.meta.apply(a)){this.roles.push(b);this.myRoles.push(b)}},getClassObject:function(){return this.c},classNameToClassObject:function(b){var a=joose.top,c=b.split(".");
a=a;for(var d=0;d<c.length;d++){a=a[c[d]];if(!a)throw"Unable to find class "+b;}return a},addNonJooseSuperClass:function(b,a){var c=new Joose.MetaClassBootstrap;c.builder=Joose.MetaClassBootstrap;var d=c.createClass(b);Joose.O.each(a,function(e,h){typeof e=="function"?d.meta.addMethod(h,e):d.meta.addAttribute(h,{init:e})});this.addSuperClass(d)},addSuperClass:function(b){this.dieIfString(b);for(var a=this,c=b.meta.getMethodNames(),d=0;d<c.length;d++){var e=c[d],h=b.meta.getMethodObject(e);if(h){h=
h.copy();h.setIsFromSuperClass(true);a.addMethodObject(h)}if(h=b.meta.getClassMethodObject(e)){h=h.copy();h.setIsFromSuperClass(true);a.addMethodObject(h)}}Joose.O.eachSafe(b.meta.attributes,function(i,l){a.addAttribute(l,i.getProps())});c=b.meta.roles;for(d=0;d<c.length;d++)a.roles.push(c[d]);this.parentClasses.unshift(b)},_fixMetaclassIncompatability:function(b){b=b.meta;var a=b.meta.className();if(!(a=="Joose.Class"||a=="Joose.MetaClass"||a=="Joose.MetaClassBootstrap"))if(!this.meta.meta.isa(b)){b=
b.meta.instantiate(this);for(var c in b)this[c]=b[c]}},isa:function(b){this.dieIfString(b);var a=b.meta.className();if(this.className()==a)return true;for(var c=0;c<this.parentClasses.length;c++){var d=this.parentClasses[c].meta;if(d.className()==a)return true;if(d.isa(b))return true}return false},wrapMethod:function(b,a,c,d){var e=this.getMethodObject(b);if(e)this.addMethodObject(e[a](c));else if(d)d();else throw Error("Unable to apply "+a+" method modifier because method "+b+" does not exist");
},dispatch:function(b){return this.getMethodObject(b).asFunction()},hasMethod:function(b){return this.methods[b]!=null||this.classMethods[b]!=null},addMethod:function(b,a,c){this.addMethodObject(new Joose.Method(b,a,c))},addClassMethod:function(b,a,c){this.addMethodObject(new Joose.ClassMethod(b,a,c))},addMethodObject:function(b){var a=b.getName===Joose.Method.prototype.getName?b._name:b.getName(),c=b._body;if(!c.displayName){var d=this.className===Joose.MetaClassBootstrap.prototype.className?this._name:
this.className();c.displayName=d+"."+a+"()"}!this.methods[a]&&!this.classMethods[a]&&this.methodNames.push(a);if(b._isClassMethod)this.classMethods[a]=b;else this.methods[a]=b;b.addToClass(this.c)},attributeMetaclass:function(){return Joose.Attribute},addAttribute:function(b,a){var c=this.attributeMetaclass();if(a&&a.metaclass)c=a.metaclass;(new c(b,a)).apply(this.c)},getAttributes:function(){return this.attributes},getAttribute:function(b){return this.attributes[b]},setAttribute:function(b,a){return this.attributes[b]=
a},getMethodObject:function(b){return this.methods[b]},getClassMethodObject:function(b){return this.classMethods[b]},getAttributeNames:function(){return this.attributeNames},getInstanceMethods:function(){var b=[];Joose.O.eachSafe(this.methods,function(a){b.push(a)});return b},getClassMethods:function(){var b=[];Joose.O.eachSafe(this.classMethods,function(a){b.push(a)});return b},getSuperClasses:function(){return this.parentClasses},getSuperClass:function(){return this.parentClasses[0]},getRoles:function(){return this.roles},
getMethodNames:function(){return this.methodNames},makeAnonSubclass:function(){var b=this.createClass(this.className()+"__anon__"+joose.anonymouseClassCounter++);b.meta.addSuperClass(this.getClassObject());return b},addDetacher:function(){this.addMethod("detach",function(){var b=this.meta;if(!b.isDetached){b=b.makeAnonSubclass();b.meta.isDetached=true;this.meta=b.meta;this.constructor=b;var a;if(this.__proto__){a={};Joose.copyObject(this,a)}else a=this;b.prototype=a;this.__proto__=b.prototype}})},
validateClass:function(){var b=this.getClassObject();Joose.A.each(this.roles,function(a){a.meta.isImplementedBy(b,true)})},can:function(b){if(!this.methods[b])return false;return true},classCan:function(b){if(!this.classMethods[b])return false;return true},does:function(b){for(var a=0;a<this.roles.length;a++)if(b===this.roles[a])return true;for(a=0;a<this.roles.length;a++)if(this.roles[a].meta.does(b))return true;return false},implementsMyMethods:function(b){var a=true;Joose.A.each(this.getMethodNames(),
function(c){b.meta.can(c)||(a=false)});return a},handleProprequires:function(b){var a=this;if(!this.meta.isa(Joose.Role))throw"Keyword 'requires' only available classes with a meta class of type Joose.Role";b instanceof Array?Joose.A.each(b,function(c){a.addRequirement(c)}):a.addRequirement(b)},handlePropisAbstract:function(b){this.isAbstract=b},handlePropisa:function(b){if(b==null)throw Error("Super class is null");this.addSuperClass(b)},handlePropdoes:function(b){var a=this;b instanceof Array?Joose.A.each(b,
function(c){a.addRole(c)}):a.addRole(b)},handleProphas:function(b,a){var c=this;typeof b=="string"?c.addAttribute(b,a):Joose.O.eachSafe(b,function(d,e){c.addAttribute(e,d)})},handlePropmethod:function(b,a,c){this.addMethod(b,a,c)},handlePropmethods:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){if(typeof c!=="function"){var e;e=c instanceof Array?new Joose.MultiMethod.newFromPatterns(d,c):Joose.TypedMethod.newFromProps(d,c);a.addMethodObject(e)}else a.addMethod(d,c)})},handlePropclassMethods:function(b){var a=
this;Joose.O.eachSafe(b,function(c,d){a.addMethodObject(new Joose.ClassMethod(d,c))})},handlePropworkers:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){a.addWorker(d,c)})},handlePropbefore:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){a.wrapMethod(d,"before",c)})},handlePropafter:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){a.wrapMethod(d,"after",c)})},handleProparound:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){a.wrapMethod(d,"around",c)})},handlePropoverride:function(b){var a=
this;Joose.O.eachSafe(b,function(c,d){a.wrapMethod(d,"override",c)})},handlePropaugment:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){a.wrapMethod(d,"augment",c,function(){a.addMethod(d,c)})})},handlePropdecorates:function(b){var a=this;Joose.O.eachSafe(b,function(c,d){a.decorate(c,d)})}};Joose.Attribute=function(b,a){this.initialize(b,a)};
Joose.Attribute.prototype={_name:null,_props:null,getName:function(){return this._name},getProps:function(){return this._props},initialize:function(b,a){this._name=b;this.setProps(a)},setProps:function(b){this._props=b?b:{}},getIsa:function(){var b=this.getProps();if("isa"in b&&b.isa==null)throw Error("You declared an isa property but the property is null.");if(b.isa){if(!b.isa.meta)return b.isa();return b.isa}},addSetter:function(b){b=b.meta;var a=this.getName(),c=this.getProps(),d=this.setterName();
if(!b.can(d)){var e=this.getIsa();if(e){var h=Joose.TypeChecker.makeTypeChecker(e,c,"attribute",a);c=function(i,l){i=h(i,l);this[a]=i;return this}}else c=function(i){this[a]=i;return this};b.addMethod(d,c)}},addGetter:function(b){b=b.meta;var a=this.getName(),c=this.getProps(),d=this.getterName();if(!b.can(d)){var e=function(){return this[a]},h=c.init;if(c.lazy)e=function(){var i=this[a];if(typeof i=="function"&&i===h)this[a]=i.apply(this);return this[a]};b.addMethod(d,e)}},initializerName:function(){return this.toPublicName()},
getterName:function(){if(this.__getterNameCache)return this.__getterNameCache;return this.__getterNameCache="get"+Joose.S.uppercaseFirst(this.toPublicName())},setterName:function(){if(this.__setterNameCache)return this.__setterNameCache;return this.__setterNameCache="set"+Joose.S.uppercaseFirst(this.toPublicName())},isPrivate:function(){return this.getName().charAt(0)=="_"},toPublicName:function(){if(this.__publicNameCache)return this.__publicNameCache;var b=this.getName();if(this.isPrivate())return this.__publicNameCache=
b.substr(1);return this.__publicNameCache=b},handleIs:function(b){this.getName();var a=this.getProps().is;if(a=="rw"||a=="ro")this.addGetter(b);a=="rw"&&this.addSetter(b)},handleInit:function(b){var a=this.getProps(),c=this.getName();b.prototype[c]=null;if(typeof a.init!="undefined")b.prototype[c]=a.init},handleProps:function(b){this.handleIs(b);this.handleInit(b)},apply:function(b){var a=b.meta,c=this.getName();this.handleProps(b);a.attributeNames.push(c);a.setAttribute(c,this);a.attributes[c]=this}};
Joose.Method=function(b,a,c){this.initialize(b,a,c)};
Joose.Method.prototype={_name:null,_body:null,_props:null,_isFromSuperClass:false,_isClassMethod:false,getName:function(){return this._name},getBody:function(){return this._body},getProps:function(){return this._props},isFromSuperClass:function(){return this._isFromSuperClass},setIsFromSuperClass:function(b){this._isFromSuperClass=b},copy:function(){return new Joose.Method(this.getName(),this.getBody(),this.getProps())},initialize:function(b,a,c){this._name=b;this._body=a;this._props=c;a.name=b;a.meta=
this},isClassMethod:function(){return this._isClassMethod},apply:function(b,a){return this._body.apply(b,a)},addToClass:function(b){var a=Joose.Method.prototype,c=this.getName===a.getName?this._name:this.getName();a=this.asFunction===a.asFunction?this._body:this.asFunction();b.prototype[c]=a},asFunction:function(){return this._body}};Joose.bootstrap();
Joose.Builder=function(){this.globalize=function(){Joose.O.each(Joose.Builder.Globals,function(b,a){var c="Joose"+a;if(typeof joose.top[a]=="undefined")joose.top[a]=b;joose.top[c]=b})}};
Joose.Builder.Globals={Module:function(b,a){return Joose.Module.setup(b,a)},Role:function(b,a){if(!a.meta)a.meta=Joose.Role;return JooseClass(b,a)},Prototype:function(b,a){if(!a.meta)a.meta=Joose.Prototype;return JooseClass(b,a)},Class:function(b,a){var c=null;if(b){var d=b;if(joose.currentModule)d=joose.currentModule.getName()+"."+b;var e=joose.top;d=d.split(".");for(var h=0;h<d.length;h++)e=e[d[h]];c=e}if(c==null){if(a&&a.meta){c=a.meta;delete a.meta}else c=a&&a.isa&&a.isa!=Joose.Class?a.isa.meta.builder:
Joose.Class;c=c.create(b,null,joose.currentModule);d=c.meta.className();if(b&&d){e=joose.top;d=(new String(d)).split(".");for(h=0;h<d.length-1;h++){if(e[d[h]]==null)e[d[h]]={};e=e[d[h]]}e[d[d.length-1]]=c}}c.meta.initializeFromProps(a);return c},Type:function(b,a){var c=false;if(arguments.length==1&&b instanceof Object){a=b;c=true}if(a instanceof RegExp||a instanceof Function)a={where:a};if(c)b="AnonType: "+(a.where?a.where.toString():"");var d=Joose.TypeConstraint.newFromTypeBuilder(b,a);if(!c){c=
joose.currentModule;if(!c){JooseModule("Joose.Type");if(typeof joose.top.TYPE=="undefined")joose.top.TYPE=Joose.Type;c=Joose.Type.meta}c.addElement(d);c.getContainer()[b]=d}return d},joosify:function(b,a){var c=a,d=new Joose.Class;d.builder=Joose.Class;c.toString=function(){return this.meta.className()};c=d.createClass(b,c);d=c.meta;for(var e in a.prototype)if(e!="meta"){var h=a.prototype[e];if(typeof h=="function")d.addMethod(e,h);else{var i={};if(typeof h!="undefined")i.init=h;d.addAttribute(e,
i)}}return c},rw:"rw",ro:"ro"};joose.init();Joose.bootstrapCompletedBuilder();
(function(b){b("Joose.Method",{methods:{copy:function(){return this.meta.instantiate(this.getName(),this.getBody(),this.getProps())},_makeWrapped:function(a){return this.meta.instantiate(this.getName(),a)},around:function(a){var c=this.getBody();return this._makeWrapped(function(){var d=this;return a.apply(this,Joose.A.concat([function(){return c.apply(d,arguments)}],arguments))})},before:function(a){var c=this.getBody();return this._makeWrapped(function(){a.apply(this,arguments);return c.apply(this,
arguments)})},after:function(a){var c=this.getBody();return this._makeWrapped(function(){var d=c.apply(this,arguments);a.apply(this,arguments);return d})},override:function(a){var c=this.getBody();return this._makeWrapped(function(){var d=this,e=this.SUPER;this.SUPER=function(){return c.apply(d,arguments)};var h=a.apply(this,arguments);this.SUPER=e;return h})},augment:function(a){var c=this.getBody();c.source=c.toString();return this._makeWrapped(function(){var d=this;a.source=a.toString();if(!this.__INNER_STACK__)this.__INNER_STACK__=
[];this.__INNER_STACK__.push(a);var e=this.INNER;this.INNER=function(){return d.__INNER_STACK__.pop().apply(d,arguments)};var h=c.apply(this,arguments);this.INNER=e;return h})}}})})(JooseClass);(function(b){b("Joose.ClassMethod",{isa:Joose.Method,after:{initialize:function(){this._isClassMethod=true}},methods:{addToClass:function(a){a[this.getName()]=this.asFunction()},copy:function(){return new Joose.ClassMethod(this.getName(),this.getBody(),this.getProps())}}});Joose.bootstrapCompletedClassMethod()})(JooseClass);
(function(b){b("Joose.Attribute",{after:{handleProps:function(a){this.handleHandles(a);this.handlePredicate(a)}},methods:{isPersistent:function(){if(this.getProps().persistent==false)return false;return true},doInitialization:function(a,c){var d=this.initializerName(),e=this.getName(),h,i=false;if(typeof c!="undefined"&&typeof c[d]!="undefined"){h=c[d];i=true}else{var l=this.getProps(),p=l.init;if(typeof p=="function"&&!l.lazy){h=p.call(a);i=true}else if(l.required)throw"Required initialization parameter missing: "+
d+"(While initializing "+a+")";}if(i){d=this.setterName();if(a.meta.can(d))a[d](h);else a[e]=h}},handleHandles:function(a){a=a.meta;var c=this.getName(),d=this.getProps(),e=d.handles,h=d.isa;if(e)if(e=="*"){if(!h)throw"I need an isa property in order to handle a class";a.decorate(h,c,d.handleWith)}else throw"Unsupported value for handles: "+e;},handlePredicate:function(a){a=a.meta;this.getName();var c=this.getProps().predicate,d=this.getterName();c&&a.addMethod(c,function(){return this[d]()?true:
false})}}})})(JooseClass);
(function(b){b("Joose.Role",{isa:Joose.Class,has:["requiresMethodNames","methodModifiers","metaRoles"],methods:{wrapMethod:function(){this.methodModifiers.push(arguments)},requiresMethod:function(a){var c=false;Joose.A.each(this.requiresMethodNames,function(d){if(a==d)c=true});return c},addInitializer:Joose.emptyFunction,defaultClassFunctionBody:function(){var a=function(){throw Error("Roles may not be instantiated.");};joose.addToString(a,function(){return this.meta.className()});return a},addSuperClass:function(){throw Error("Roles may not inherit from a super class.");
},initialize:function(){this._name="Joose.Role";this.requiresMethodNames=[];this.methodModifiers=[]},addRequirement:function(a){this.requiresMethodNames.push(a)},unapply:function(a){if(!joose.isInstance(a))throw Error("You way only remove roles from instances.");if(!a.meta.isDetached)throw Error("You may only remove roles that were applied at runtime");for(var c=this.getClassObject(),d=a.meta.myRoles,e=false,h=[],i=0;i<d.length;i++)if(d[i]===c)e=true;else h.push(d[i]);if(!e)throw Error("The role "+
this.className()+" was not applied to the object at runtime");d=a.meta.getSuperClass().meta.makeAnonSubclass();e=new d;for(i=0;i<h.length;i++){c=h[i];d.meta.addRole(c)}d.prototype=e;a.meta=d.meta;a.constructor=d;a.__proto__=e},addMethodToClass:function(a,c){var d=a.getName();d=a.isClassMethod()?c.meta.getClassMethodObject(d):c.meta.getMethodObject(d);if(!d||d.isFromSuperClass())c.meta.addMethodObject(a)},addAttributeToClass:function(a,c){var d=a.getName();c.meta.getAttribute(d)||this.getAttribute(d).apply(c)},
apply:function(a){if(a.meta.does(this.getClassObject()))return false;if(joose.isInstance(a)){a.detach();a.meta.addRole(this.getClassObject());this.applyMethodModifiers(a);this.isImplementedBy(a,true)}else{var c=this,d=c.getMethodNames(),e=c.getAttributes();Joose.O.each(e,function(h){c.addAttributeToClass(h,a)});Joose.A.each(d,function(h){var i=c.getMethodObject(h);i&&c.addMethodToClass(i,a);(i=c.getClassMethodObject(h))&&c.addMethodToClass(i,a)});this.metaRoles&&Joose.A.each(this.metaRoles,function(h){h.meta.apply(a.meta)})}return true},
applyMethodModifiers:function(a){Joose.A.each(this.methodModifiers,function(c){a.meta.wrapMethod.apply(a.meta,c)})},hasRequiredMethods:function(a,c){var d=this,e=true;Joose.A.each(this.requiresMethodNames,function(h){if(!a.meta.can(h)){if(c)throw"Class "+a.meta.className()+" does not fully implement the role "+d.className()+". The method is "+h+" missing.";e=false}});return e},isImplementedBy:function(a,c){var d=this.hasRequiredMethods(a,c);if(d)d=this.implementsMyMethods(a);return d},handlePropmetaRoles:function(a){this.metaRoles=
a}}});Joose.Role.anonymousClassCounter=0})(JooseClass);(function(b){var a={},c=true;b("Joose.Singleton",{before:{initialize:function(){if(c){var d=this.meta.className();throw Error("The class "+d+" is a singleton. Please use the class method getInstance().");}}},methods:{singletonInitialize:function(){}},classMethods:{getInstance:function(){var d=this.meta.className(),e=a[d];if(e)return e;c=false;e=this.meta.instantiate();c=true;e.singletonInitialize.apply(e,arguments);return a[d]=e}}})})(JooseRole);
(function(b){b("Joose.SimpleRequest",{has:{_req:{}},methods:{initialize:function(){this._req=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")},getText:function(a){this._req.open("GET",a,false);try{this._req.send(null);if(this._req.status==200||this._req.status==0)return this._req.responseText}catch(c){throw"File not found: "+a;}throw"File not found: "+a;}}})})(JooseClass);
(function(b){b("Joose.Gears",{isa:Joose.Class,has:{wp:{},calls:{init:{}},callIndex:{init:0}},methods:{initialize:function(){JooseGearsInitializeGears();if(this.canGears()){this.wp=google.gears.factory.create("beta.workerpool");var a=this;this.wp.onmessage=function(c,d,e){a.handleGearsMessage(e)}}},handleGearsMessage:function(a){var c=a.body;a=c.to;var d=c.ret;c=this.calls[c.index];c.meta.can(a)&&c[a].call(c,d)},canGears:function(){return this.meta.c.clientHasGears()},addWorker:function(a,c,d){var e=
"on"+Joose.S.uppercaseFirst(a),h=this.meta.getClassObject().ajaxRequest;if(this.canGears()){var i=this.can("jsonURL")?this.c.jsonURL():"json2.js";i=(new Joose.SimpleRequest).getText(i);var l="var timer = google.gears.factory.create('beta.timer');\nfunction aClass () {}; aClass.prototype."+a+" = "+c.toString()+"\n\naClass.prototype.clientHasGears = function () { return true }\naClass.prototype.ajaxRequest = "+h.toString()+"\n\nvar wp = google.gears.workerPool;\nwp.onmessage = function (a,b,message) {\nvar paras = message.body;\nvar o = new aClass();\no.sendReturn = function (ret, cbName) { wp.sendMessage({ ret: ret, to: cbName, index: paras.index }, message.sender) } \nvar ret = o."+
a+".apply(o, paras.args); if(!ret) ret = null; \no.sendReturn(ret, paras.cbName);\n}\n\n";l+=i;var p=this.wp,t=p.createWorker(l),o=this;i=function(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);p.sendMessage({args:n,cbName:e,index:o.callIndex},t);o.calls[o.callIndex]=this;o.callIndex++}}else i=function(){var n=this,r={sendReturn:function(x,z){n.meta.can(z)&&n[z].call(n,x)},clientHasGears:function(){return false},ajaxRequest:h},v=c.apply(r,arguments);r.sendReturn(v,e)};this.addMethod(a,
i,d)}},classMethods:{setupGearsCompat:function(){window.timer={setTimeout:function(a,c){return window.setTimeout(a,c)},setInterval:function(a,c){return window.setInterval(a,c)},clearTimeout:function(a){return window.clearTimeout(a)},clearInterval:function(a){return window.clearInterval(a)}}},clientHasGears:function(){if(typeof this._canGears!="undefined")return this._canGears;if(window.google&&window.google.gears&&window.google.gears.factory){try{google.gears.factory.create("beta.httprequest")}catch(a){return this._canGears=
false}return this._canGears=true}return this._canGears=false},ajaxRequest:function(a,c,d,e,h){var i;i=this.clientHasGears()?google.gears.factory.create("beta.httprequest"):window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;var l="";if(d)for(var p in d)l+=encodeURIComponent(p)+"="+encodeURIComponent(d[p])+"&";var t=c;if(d&&a=="GET")t+="?"+l;i.open(a,t,true);i.onreadystatechange=function(){if(i.readyState==4)if(i.status>=200&&i.status<400)e(i.responseText);else if(h)return h(i);
else throw Error("Error fetching url "+t+". Response code: "+i.status+" Response text: "+i.responseText);};if(d&&a=="POST")i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");else l="";i.send(l)}}})})(JooseClass);
function JooseGearsInitializeGears(){if(!(window.google&&google.gears)){var b=null;if(typeof GearsFactory!="undefined")b=new GearsFactory;else try{b=new ActiveXObject("Gears.Factory");b.getBuildInfo().indexOf("ie_mobile")!=-1&&b.privateSetGlobalObject(this)}catch(a){if(navigator.mimeTypes["application/x-googlegears"]){b=document.createElement("object");b.style.display="none";b.width=0;b.height=0;b.type="application/x-googlegears";document.documentElement.appendChild(b)}}if(b){window.google||(google=
{});if(!google.gears)google.gears={factory:b}}}}
(function(b,a){a("Joose.Storage",{methods:{toJSON:function(){return this.pack(Joose.Storage.TEMP_SEEN)},identity:function(){return this.__ID__?this.__ID__:this.__ID__=Joose.Storage.OBJECT_COUNTER++},pack:function(c){return this.meta.c.storageEngine().pack(this,c)}},classMethods:{storageEngine:function(){return Joose.Storage.Engine},unpack:function(c){return this.storageEngine().unpack(this,c)}}});a("Joose.Storage.jsonpickle",{does:Joose.Storage,classMethods:{storageEngine:function(){return Joose.Storage.Engine.jsonpickle}}});Joose.Storage.OBJECT_COUNTER=
1;b("Joose.Storage.Engine",{classMethods:{pack:function(c,d){c.meta.can("prepareStorage")&&c.prepareStorage();if(d)d[c.identity()]=true;var e={__CLASS__:this.packedClassName(c),__ID__:c.identity()},h=c.meta.getAttributes();Joose.O.eachSafe(h,function(i,l){if(i.isPersistent())e[l]=c[l]});return e},unpack:function(c,d){var e=c.meta.instantiate(),h=false;Joose.O.eachSafe(d,function(i,l){if(l=="__CLASS__"){var p=Joose.Storage.Unpacker.packedClassNameToJSClassName(i);if(p!=e.meta.className())throw Error("Storage data is of wrong type "+
p+". I am "+e.meta.className()+".");h=true}else e[l]=i});if(!h)throw Error("Serialized data needs to include a __CLASS__ attribute.: "+d);delete e.__ID__;e.meta.can("finishUnpack")&&e.finishUnpack();return e},packedClassName:function(c){if(c.meta.can("packedClassName"))return c.packedClassName();return c.meta.className().split(".").join("::")}}});b("Joose.Storage.Engine.jsonpickle",{classMethods:{pack:function(c,d){c.meta.can("prepareStorage")&&c.prepareStorage();if(d)d[c.identity()]=true;var e={classname__:this.packedClassName(c),
classmodule__:this.packedModuleName(c),objectid__:c.identity()},h=c.meta.getAttributes();Joose.O.eachSafe(h,function(i,l){if(i.isPersistent())e[l]=c[l]});return e},unpack:function(c,d){var e=c.meta.instantiate(),h=false;Joose.O.eachSafe(d,function(i,l){if(l=="classname__"){var p=i,t=d.classmodule__;if(t)p=""+t+"."+i;if(p!=e.meta.className())throw Error("Storage data is of wrong type "+p+". I am "+e.meta.className()+".");h=true}else if(l!="classmodule__")e[l]=i});if(!h)throw Error("Serialized data needs to include a __CLASS__ attribute.: "+
d);e.meta.can("finishUnpack")&&e.finishUnpack();return e},packedClassName:function(c){return c.meta.className().split(".").pop()},packedModuleName:function(c){c=c.meta.className().split(".");c.pop();return c.join(".")}}});Joose.Storage.storageEngine=Joose.Storage.Engine;Joose.Storage.jsonpickle.storageEngine=Joose.Storage.Engine.jsonpickle})(JooseClass,JooseRole);
(function(b){b("Joose.Storage.Unpacker",{classMethods:{unpack:function(a){var c=a.__CLASS__;if(!c)throw"Serialized data needs to include a __CLASS__ attribute.";c=this.meta.classNameToClassObject(this.packedClassNameToJSClassName(c)).unpack(a);var d;if(Joose.Storage.CACHE&&(d=a.__ID__))Joose.Storage.CACHE[d]=c;return c},packedClassNameToJSClassName:function(a){a=a.split("-");a=a[0].split("::");return a.join(".")},jsonParseFilter:function(a,c){if(c!=null&&typeof c=="object"){if(c.__ID__&&Joose.Storage.CACHE&&
Joose.Storage.CACHE[c.__ID__])return Joose.Storage.CACHE[c.__ID__];if(c.__CLASS__)return Joose.Storage.Unpacker.unpack(c)}return c},patchJSON:function(){var a=JSON.parse,c=this.jsonParseFilter;JSON.parse=function(e,h){Joose.Storage.CACHE={};return a(e,function(i,l){var p=l;if(h)p=h(i,l);return c(i,p)})};var d=JSON.stringify;JSON.stringify=function(){Joose.Storage.TEMP_SEEN={};return d.apply(JSON,arguments)}}}});b("Joose.Storage.Unpacker.jsonpickle",{isa:Joose.Storage.Unpacker,classMethods:{unpack:function(a){var c=
a.classname__;if(!c)throw"Serialized data needs to include a classname__ attribute.";c=this.meta.classNameToClassObject(this.packedClassNameToJSClassName(c,a.classmodule__)).unpack(a);var d;if(Joose.Storage.CACHE&&(d=a.objectid__))Joose.Storage.CACHE[d]=c;return c},packedClassNameToJSClassName:function(a,c){var d="";if(c)d+=c+".";d+=a;return d},jsonParseFilter:function(a,c){if(c!=null&&typeof c=="object"){if(c.objectid__&&Joose.Storage.CACHE&&Joose.Storage.CACHE[c.objectid__])return Joose.Storage.CACHE[c.objectid__];
if(c.classname__)return Joose.Storage.Unpacker.jsonpickle.unpack(c)}return c}}})})(JooseClass);(function(b){b("Joose.Decorator",{meta:Joose.Role,methods:{decorate:function(a,c,d){var e=this;a=a.meta.getInstanceMethods();Joose.A.each(a,function(h){var i=h.getName();if(!e.can(i)){h=function(){var l=this[c];return l[i].apply(l,arguments)};if(d)h=d(i);e.addMethod(i,h)}})}}});Joose.Decorator.meta.apply(Joose.Class)})(JooseClass);
(function(b){Joose.NameSpace=function(){};b("Joose.Module",{has:{_name:{is:"rw"},_elements:{is:"rw"},_container:{is:"rw"}},classMethods:{setup:function(a,c){for(var d=a.split("."),e=joose.top,h=[],i,l=0,p=d.length;l<p;++l){var t=d[l];if(t=="meta")throw"Module names may not include a part called 'meta'.";var o=e[t];h.push(t);i=h.join(".");if(typeof o=="undefined"){e[t]=new Joose.NameSpace;i=new Joose.Module(i);i.setContainer(e[t]);e[t].meta=i;Joose.Module._allModules.push(e[t])}else{i=o.meta;if(l===
p-1&&!(i&&i.meta&&i.meta.isa(Joose.Module)))throw"Trying to setup module "+a+" failed. There is already something else: "+o;}e=e[t]}d=joose.currentModule;joose.currentModule=i;c&&c(e);joose.currentModule=d;return e},getAllModules:function(){return this._allModules}},methods:{alias:function(a){var c=this;if(arguments.length==0)return this;Joose.A.each(this.getElements(),function(d){var e=c.globalName(d.meta.className());if(a[e]!==d){if(typeof a[e]!="undefined")throw"There is already something else in the spot "+
e;a[e]=d}})},globalName:function(a){var c=this.getName();if(a.indexOf(c)!=0)throw"All things inside me should have a name that starts with "+c+". Name is "+a;a=a.substr(c.length+1);if(a.indexOf(".")!=-1)throw"The things inside me should have no more dots in there name. Name is "+a;return a},removeGlobalSymbols:function(){Joose.A.each(this.getElements(),function(a){a=this.globalName(a.getName());delete joose.top[a]})},initialize:function(a){this.setElements([]);this.setName(a)},isEmpty:function(){return this.getElements().length==
0},addElement:function(a){if(!(a||a.meta))throw"You may only add things that are Joose objects";this._elements.push(a)},getNames:function(){var a=[];Joose.A.each(this.getElements(),function(c){a.push(c.meta.getName())});return a}}})})(JooseClass);__global__={};__global__.meta=new Joose.Module;__global__.meta.setName("__global__");__global__.meta.setContainer(__global__);Joose.Module._allModules=[__global__];JooseModule("__global__.nomodule",function(){});__global__.nomodule.meta._elements=joose.globalObjects;
(function(b){b("Joose.TypeChecker",{classMethods:{makeTypeChecker:function(a,c,d,e){if(!a.meta)throw Error("Isa declarations in attribute declarations must be Joose classes, roles or type constraints");var h=false,i=false;if(Joose.Role&&a.meta.meta.isa(Joose.Role))h=true;else if(Joose.TypeConstraint&&a.meta.isa(Joose.TypeConstraint))i=true;return func=function(l,p){try{if(!(c.nullable===true&&l==undefined))if(i){var t=null;if(c.coerce)t=a.coerce(l);if(t==null&&c.nullable!==true)a.validate(l);else l=
t}else{if(!l||!l.meta)throw new ReferenceError("The "+d+" "+e+" only accepts values that have a meta object.");if(!(h?l.meta.does(a):l.meta.isa(a)))throw new ReferenceError("The "+d+" "+e+" only accepts values that are objects of type "+a.meta.className()+".");}}catch(o){if(p)p.call(this,o,a);else throw o;}return l}}}})})(JooseClass,JooseType);
(function(b){b("Joose.TypeConstraint",{has:{_constraints:{is:"ro",init:function(){return[]}},_coercions:{is:"ro",init:function(){return[]}},_messages:{is:"ro",init:function(){return[]}},_callback:{is:"ro",init:function(){return function(a){throw new ReferenceError(a);}}},_name:{is:"ro"},_uses:{is:"ro"},props:{is:"rw"}},classMethods:{newFromTypeBuilder:function(a,c){var d=new Joose.TypeConstraint({name:a});if(c.uses&&typeof c.uses.meta!="undefined"&&c.uses.meta.isa(Joose.TypeConstraint))d._uses=c.uses;
c.where&&d.addConstraint(c.where,c.message);d.setProps(c);if(c.coerce)for(var e=0;e<c.coerce.length;e++){var h=c.coerce[e];d.addCoercion(new Joose.TypeCoercion({from:h.from,via:h.via}))}return d}},methods:{stringify:function(){return this._name},makeSubType:function(a){var c=new Joose.TypeConstraint({name:a});Joose.A.each(this._constraints,function(d){c.addConstraint(d)});return c},addCoercion:function(a){this._coercions.push(a)},addConstraint:function(a,c){this._constraints.push(a);this._messages.push(c)},
getConstraintList:function(){var a=this._constraints;if(this._uses)return this._uses.getConstraintList().concat(a);return a},getMessageList:function(){var a=this._messages;if(this._uses)return this._uses.getMessageList().concat(a);return a},validateBool:function(a){if(this._validate(a)==-1)return true;return false},validate:function(a){var c=this._validate(a);if(c==-1)return true;var d=this.getMessageList();this._callback(d[c]?d[c].call(this,a):"The passed value ["+a+"] is not a "+this)},_validate:function(a){var c=
this.getConstraintList(),d,e;d=0;for(e=c.length;d<e;d++){var h=c[d],i=false;i=h instanceof RegExp?h.test(a):h.call(this,a);if(!i)return d}return-1},coerce:function(a){if(this.validateBool(a))return a;for(var c=this._coercions,d=0,e=c.length;d<e;d++){var h=c[d].coerce(a);if(h!==null)return h}return null}}})})(JooseClass);
(function(b,a){a("CoercionFrom",{where:function(c){if(c.meta&&c.meta.isa(Joose.TypeConstraint))return true;return false}});b("Joose.TypeCoercion",{has:{_from:{isa:TYPE.CoercionFrom,is:"rw"},_via:{is:"rw"}},methods:{coerce:function(c){if(this._from.validateBool(c))return this._via(c);return null}}})})(JooseClass,JooseType);
(function(b){b("Any",{where:function(){return true}});b("Null",{uses:Joose.Type.Any,where:function(a){if(a===null)return true;return false}});b("NotNull",{uses:Joose.Type.Any,where:function(a){if(a===null)return false;return true}});b("Enum",{uses:Joose.Type.NotNull,message:function(a){return"The passed value ["+a+"] is not "+(this.getProps().strictMatch?"*strictly* ":"")+"one of ["+this.getProps().values.join(",")+"]"},where:function(a){var c=this.getProps();if(!c||c.values===undefined||!(c.values instanceof
Array))throw"Enum Type needs Array of values in 'values' property of Type declaration";if(Joose.A.grep(c.values,function(d){if(c.strictMatch===true)return d===a;return d==a}).length!=0)return true;return false}});b("Obj",{uses:Joose.Type.NotNull,where:function(a){if(a instanceof Object)return true;return false}});b("Str",{uses:Joose.Type.NotNull,where:function(a){if(typeof a=="string"||a instanceof String)return true;return false},coerce:[{from:Joose.Type.Any,via:function(a){return a==null?"":""+
a}}]});b("Num",{uses:Joose.Type.NotNull,where:function(a){if(typeof a=="number"||a instanceof Number)return true;return false},coerce:[{from:Joose.Type.Str,via:function(a){if(!(a==null||a==""))return parseFloat(a,10)}}]});b("Bool",{uses:Joose.Type.NotNull,where:function(a){if(a===true||a===false)return true;return false},coerce:[{from:Joose.Type.Any,via:function(a){if(a==null||a==="")return false;if(a==1||a=="1"||a=="true")return true;if(a==0||a=="0"||a=="false")return false;return null}}]});b("Int",
{uses:Joose.Type.Num,where:function(a){if(String(a).match(/^\d*\.\d$/))return false;return true},coerce:[{from:Joose.Type.Str,via:function(a){if(!(a==null||a==""))if(a.match(/^-{0,1}\d+$/))return parseInt(a,10)}}]});b("Float",{uses:Joose.Type.Num,where:function(){return true}});b("Func",{uses:Joose.Type.Obj,where:function(a){if(typeof a=="function")return true;return false}});b("Array",{uses:Joose.Type.Obj,where:function(a){if(Object.prototype.toString.call(a)==="[object Array]")return true;return false}});
b("Date",{uses:Joose.Type.Obj,where:function(a){if(a instanceof Date)return true;return false},coerce:[{from:Joose.Type.Str,via:function(a){if(!(a==undefined||a=="")){if(a=a.match(/\s*(\d+)-(\d+)-(\d+)/))return new Date(a[1],a[2]-1,[a[3]]);return null}}}]});b("Joose",{uses:Joose.Type.Obj,where:function(a){if(a.meta&&a.meta.meta.isa(Joose.Class))return true;return false}})})(JooseType);
(function(b){b("Joose.Prototype",{isa:Joose.Class,override:{initializer:function(){var a=this.SUPER();return function(){a.apply(this,arguments);var c=this.meta;this.meta=new Joose.PrototypeLazyMetaObjectProxy;this.meta.metaObject=c;this.meta.object=this}}}});b("Joose.PrototypeLazyMetaObjectProxy",{has:{metaObject:{is:"rw",isa:Joose.Class,handles:"*",handleWith:function(a){return function(){var c=this.object;c.meta=this.metaObject;c.detach();c.meta[a].apply(c.meta,arguments)}}},object:{is:"rw"}}});
Joose.bootstrap3()})(JooseClass);
(function(b){b("Joose.TypedMethod",{isa:Joose.Method,has:{types:{isa:Joose.Type.Array,is:"rw",init:function(){return[]}},typeCheckers:{init:function(){return[]}}},after:{setTypes:function(){var a=[],c=this.getProps();Joose.A.each(this.getTypes(),function(d,e){d===null?a.push(null):a.push(Joose.TypeChecker.makeTypeChecker(d,c,"parameter",e))});this.typeCheckers=a}},override:{copy:function(){var a=this.SUPER(),c=[].concat(this.types);a.setTypes(c);return a}},methods:{wrapTypeChecker:function(a){var c=this;
return function(){for(var d=c.typeCheckers,e=[],h=0,i=d.length;h<i;++h){var l=d[h];e[h]=l!==null?l(arguments[h]):arguments[h]}return a.apply(this,e)}},asFunction:function(){return this.wrapTypeChecker(this._body)}},classMethods:{newFromProps:function(a,c){var d=c.method;if(typeof d!=="function")throw Error("Property method in method declaration ["+a+"] must be a function.");d=this.meta.instantiate(a,d,c);d.setTypes(c.signature);return d}}})})(JooseClass,JooseType);
Module("Joose.Type",function(){Type("MethodPatternList",{uses:Joose.Type.Array,where:function(b){var a=0,c;for(c in b){var d=b[c];d.signature instanceof Array&&typeof d.method=="function"&&a++}return b.length==a}})});
Class("Joose.MultiMethod",{isa:Joose.Method,has:{patterns:{is:"rw",isa:Joose.Type.MethodPatternList,init:function(){return[]}}},override:{copy:function(){var b=this.SUPER(),a=[].concat(this.getPatterns());b.setPatterns(a);return b}},methods:{getFunForSignature:function(){var b=arguments,a=this.getPatterns(),c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c],e=d.signature,h=0;if(e.length==b.length){if(e.length>0)for(var i=0;i<e.length;i++)if(e[i]instanceof Joose.TypeConstraint&&e[i].validateBool(b[i]))h++;
else if(e[i]instanceof Object&&b[i]instanceof e[i])h++;else b[i]==e[i]&&h++;if(h==e.length)return d.method}}return function(){throw new ReferenceError("multi-method type method call with no matching signature");}},asFunction:function(){var b=this;return function(){var a=arguments;return b.getFunForSignature.apply(b,a).apply(this,a)}}},classMethods:{newFromPatterns:function(b,a){method=new Joose.MultiMethod(b,function(){},{});method.setPatterns(a);return method}}});function _export(){return _}
(function(){var b=this,a=b._,c=typeof StopIteration!=="undefined"?StopIteration:"__break__",d=Array.prototype,e=Object.prototype,h=d.slice,i=d.unshift,l=e.toString,p=e.hasOwnProperty,t=d.forEach,o=d.map,n=d.reduce,r=d.reduceRight,v=d.filter,x=d.every,z=d.some,j=d.indexOf,O=d.lastIndexOf;e=Array.isArray;var da=Object.keys,B=function(u){return new ra(u)};if(typeof exports!=="undefined")exports._=B;b._=B;B.VERSION="1.0.2";var ka=B.forEach=function(u,G,y){if(t&&u.forEach===t){u.forEach(G,y);return u}try{if(B.isNumber(u.length))for(var E=
0,P=u.length;E<P;E++)G.call(y,u[E],E,u);else for(E in u)p.call(u,E)&&G.call(y,u[E],E,u)}catch(V){if(V!=c)throw V;}return u};B.map=function(u,G,y){if(o&&u.map===o)return u.map(G,y);var E=[];ka(u,function(P,V,ma){E.push(G.call(y,P,V,ma))});return E};B.reduce=function(u,G,y,E){if(n&&u.reduce===n)return u.reduce(B.bind(y,E),G);ka(u,function(P,V,ma){G=y.call(E,G,P,V,ma)});return G};B.reduceRight=function(u,G,y,E){if(r&&u.reduceRight===r)return u.reduceRight(B.bind(y,E),G);u=B.clone(B.toArray(u)).reverse();
return B.reduce(u,G,y,E)};B.detect=function(u,G,y){var E;ka(u,function(P,V,ma){if(G.call(y,P,V,ma)){E=P;B.breakLoop()}});return E};B.filter=function(u,G,y){if(v&&u.filter===v)return u.filter(G,y);var E=[];ka(u,function(P,V,ma){G.call(y,P,V,ma)&&E.push(P)});return E};B.reject=function(u,G,y){var E=[];ka(u,function(P,V,ma){!G.call(y,P,V,ma)&&E.push(P)});return E};B.every=function(u,G,y){G=G||B.identity;if(x&&u.every===x)return u.every(G,y);var E=true;ka(u,function(P,V,ma){(E=E&&G.call(y,P,V,ma))||B.breakLoop()});
return E};B.some=function(u,G,y){G=G||B.identity;if(z&&u.some===z)return u.some(G,y);var E=false;ka(u,function(P,V,ma){if(E=G.call(y,P,V,ma))B.breakLoop()});return E};B.include=function(u,G){if(j&&u.indexOf===j)return u.indexOf(G)!=-1;var y=false;ka(u,function(E){if(y=E===G)B.breakLoop()});return y};B.invoke=function(u,G){var y=B.rest(arguments,2);return B.map(u,function(E){return(G?E[G]:E).apply(E,y)})};B.pluck=function(u,G){return B.map(u,function(y){return y[G]})};B.max=function(u,G,y){if(!G&&
B.isArray(u))return Math.max.apply(Math,u);var E={computed:-Infinity};ka(u,function(P,V,ma){V=G?G.call(y,P,V,ma):P;V>=E.computed&&(E={value:P,computed:V})});return E.value};B.min=function(u,G,y){if(!G&&B.isArray(u))return Math.min.apply(Math,u);var E={computed:Infinity};ka(u,function(P,V,ma){V=G?G.call(y,P,V,ma):P;V<E.computed&&(E={value:P,computed:V})});return E.value};B.sortBy=function(u,G,y){return B.pluck(B.map(u,function(E,P,V){return{value:E,criteria:G.call(y,E,P,V)}}).sort(function(E,P){var V=
E.criteria,ma=P.criteria;return V<ma?-1:V>ma?1:0}),"value")};B.sortedIndex=function(u,G,y){y=y||B.identity;for(var E=0,P=u.length;E<P;){var V=E+P>>1;y(u[V])<y(G)?E=V+1:P=V}return E};B.toArray=function(u){if(!u)return[];if(u.toArray)return u.toArray();if(B.isArray(u))return u;if(B.isArguments(u))return h.call(u);return B.values(u)};B.size=function(u){return B.toArray(u).length};B.first=function(u,G,y){return G&&!y?h.call(u,0,G):u[0]};B.rest=function(u,G,y){return h.call(u,B.isUndefined(G)||y?1:G)};
B.last=function(u){return u[u.length-1]};B.compact=function(u){return B.filter(u,function(G){return!!G})};B.flatten=function(u){return B.reduce(u,[],function(G,y){if(B.isArray(y))return G.concat(B.flatten(y));G.push(y);return G})};B.without=function(u){var G=B.rest(arguments);return B.filter(u,function(y){return!B.include(G,y)})};B.uniq=function(u,G){return B.reduce(u,[],function(y,E,P){if(0==P||(G===true?B.last(y)!=E:!B.include(y,E)))y.push(E);return y})};B.intersect=function(u){var G=B.rest(arguments);
return B.filter(B.uniq(u),function(y){return B.every(G,function(E){return B.indexOf(E,y)>=0})})};B.zip=function(){for(var u=B.toArray(arguments),G=B.max(B.pluck(u,"length")),y=Array(G),E=0;E<G;E++)y[E]=B.pluck(u,String(E));return y};B.indexOf=function(u,G){if(j&&u.indexOf===j)return u.indexOf(G);for(var y=0,E=u.length;y<E;y++)if(u[y]===G)return y;return-1};B.lastIndexOf=function(u,G){if(O&&u.lastIndexOf===O)return u.lastIndexOf(G);for(var y=u.length;y--;)if(u[y]===G)return y;return-1};B.range=function(u,
G,y){var E=B.toArray(arguments),P=E.length<=1;u=P?0:E[0];G=P?E[0]:E[1];y=E[2]||1;E=Math.ceil((G-u)/y);if(E<=0)return[];E=Array(E);P=u;for(var V=0;;P+=y){if((y>0?P-G:G-P)>=0)return E;E[V++]=P}};B.bind=function(u,G){var y=B.rest(arguments,2);return function(){return u.apply(G||{},y.concat(B.toArray(arguments)))}};B.bindAll=function(u){var G=B.rest(arguments);if(G.length==0)G=B.functions(u);ka(G,function(y){u[y]=B.bind(u[y],u)});return u};B.delay=function(u,G){var y=B.rest(arguments,2);return setTimeout(function(){return u.apply(u,
y)},G)};B.defer=function(u){return B.delay.apply(B,[u,1].concat(B.rest(arguments)))};B.wrap=function(u,G){return function(){var y=[u].concat(B.toArray(arguments));return G.apply(G,y)}};B.compose=function(){var u=B.toArray(arguments);return function(){for(var G=B.toArray(arguments),y=u.length-1;y>=0;y--)G=[u[y].apply(this,G)];return G[0]}};B.keys=da||function(u){if(B.isArray(u))return B.range(0,u.length);var G=[],y;for(y in u)p.call(u,y)&&G.push(y);return G};B.values=function(u){return B.map(u,B.identity)};
B.functions=function(u){return B.filter(B.keys(u),function(G){return B.isFunction(u[G])}).sort()};B.extend=function(u){ka(B.rest(arguments),function(G){for(var y in G)u[y]=G[y]});return u};B.clone=function(u){if(B.isArray(u))return u.slice(0);return B.extend({},u)};B.tap=function(u,G){G(u);return u};B.isEqual=function(u,G){if(u===G)return true;var y=typeof u;if(y!=typeof G)return false;if(u==G)return true;if(!u&&G||u&&!G)return false;if(u.isEqual)return u.isEqual(G);if(B.isDate(u)&&B.isDate(G))return u.getTime()===
G.getTime();if(B.isNaN(u)&&B.isNaN(G))return true;if(B.isRegExp(u)&&B.isRegExp(G))return u.source===G.source&&u.global===G.global&&u.ignoreCase===G.ignoreCase&&u.multiline===G.multiline;if(y!=="object")return false;if(u.length&&u.length!==G.length)return false;y=B.keys(u);var E=B.keys(G);if(y.length!=E.length)return false;for(var P in u)if(!(P in G)||!B.isEqual(u[P],G[P]))return false;return true};B.isEmpty=function(u){if(B.isArray(u))return u.length===0;for(var G in u)if(p.call(u,G))return false;
return true};B.isElement=function(u){return!!(u&&u.nodeType==1)};B.isArray=e||function(u){return!!(u&&u.concat&&u.unshift&&!u.callee)};B.isArguments=function(u){return u&&u.callee};B.isFunction=function(u){return!!(u&&u.constructor&&u.call&&u.apply)};B.isString=function(u){return!!(u===""||u&&u.charCodeAt&&u.substr)};B.isNumber=function(u){return u===+u||l.call(u)==="[object Number]"};B.isBoolean=function(u){return u===true||u===false};B.isDate=function(u){return!!(u&&u.getTimezoneOffset&&u.setUTCFullYear)};
B.isRegExp=function(u){return!!(u&&u.test&&u.exec&&(u.ignoreCase||u.ignoreCase===false))};B.isNaN=function(u){return B.isNumber(u)&&isNaN(u)};B.isNull=function(u){return u===null};B.isUndefined=function(u){return typeof u=="undefined"};B.noConflict=function(){b._=a;return this};B.identity=function(u){return u};B.times=function(u,G,y){for(var E=0;E<u;E++)G.call(y,E)};B.breakLoop=function(){throw c;};B.mixin=function(u){ka(B.functions(u),function(G){za(G,B[G]=u[G])})};var Aa=0;B.uniqueId=function(u){var G=
Aa++;return u?u+G:G};B.templateSettings={start:"<%",end:"%>",interpolate:/<%=(.+?)%>/g};B.template=function(u,G){var y=B.templateSettings,E=RegExp("'(?=[^"+y.end.substr(0,1)+"]*"+y.end.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")+")","g");y=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+u.replace(/[\r\t\n]/g," ").replace(E,"\t").split("'").join("\\'").split("\t").join("'").replace(y.interpolate,"',$1,'").split(y.start).join("');").split(y.end).join("p.push('")+
"');}return p.join('');");return G?y(G):y};B.each=B.forEach;B.foldl=B.inject=B.reduce;B.foldr=B.reduceRight;B.select=B.filter;B.all=B.every;B.any=B.some;B.head=B.first;B.tail=B.rest;B.methods=B.functions;var ra=function(u){this._wrapped=u},W=function(u,G){return G?B(u).chain():u},za=function(u,G){ra.prototype[u]=function(){var y=B.toArray(arguments);i.call(y,this._wrapped);return W(G.apply(B,y),this._chain)}};B.mixin(B);ka(["pop","push","reverse","shift","sort","splice","unshift"],function(u){var G=
d[u];ra.prototype[u]=function(){G.apply(this._wrapped,arguments);return W(this._wrapped,this._chain)}});ka(["concat","join","slice"],function(u){var G=d[u];ra.prototype[u]=function(){return W(G.apply(this._wrapped,arguments),this._chain)}});ra.prototype.chain=function(){this._chain=true;return this};ra.prototype.value=function(){return this._wrapped}})();
Q=function(){var b=function(){for(var i=[],l=[{start:" ",end:"~"}],p=l.length-1;p>=0;--p)for(var t=l[p],o=t.start.charCodeAt(0);o<=t.end.charCodeAt(0);++o)i[o]=String.fromCharCode(o);i["~".charCodeAt(0)]=null;i[" ".charCodeAt(0)]=null;i["q".charCodeAt(0)]=null;i["Q".charCodeAt(0)]=null;return i}();count_map=function(){for(var i=[],l={0:9,1:10,2:13,3:32,4:63},p={},t=4;t>=0;--t)p["0AaLl"[t]]=[String.fromCharCode(l[t])];for(t=0;t<10;++t)for(var o=0;o<5;++o){var n="0AaLl".charCodeAt(o)+t;i[n]={value:t+
1,encode:"~"+String.fromCharCode(n),decode:p["0AaLl"[o]].join(""),type:l[o]};p["0AaLl"[o]].push(p["0AaLl"[o]][0])}return i}();var a={9:"~0",10:"~A",13:"~a",32:"~L",63:"~?"},c=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P"],d=function(i,l,p){if(a[i]){var t=l[p-1];if(t&&t.length==2&&t.charCodeAt(0)==126){var o=t.charCodeAt(1);t=count_map[o];if(t.type==i&&t.value<10){l[p-1]=count_map[o+1].encode;return p}}l[p++]=a[i];return p}if(i==113){l[p++]="qq";return p}if(i==81){l[p++]="QQ";return p}if(i==
126){l[p++]="~~";return p}if(i<256){l[p++]="q"+c[i>>4&15]+c[i>>0&15];return p}l[p++]="Q"+c[i>>12&15]+c[i>>8&15]+c[i>>4&15]+c[i>>0&15];return p},e="A".charCodeAt(0),h=function(i){var l=i.substr(0,2);if(l=="qq")return{decoded:"q",len:2};if(l=="QQ")return{decoded:"Q",len:2};if(l=="~~")return{decoded:"~",len:2};var p=l.substr(0,1);if(p=="~")return{decoded:count_map[l.charCodeAt(1)].decode,len:2};i=i.toUpperCase();if(p=="Q")return{decoded:String.fromCharCode(i.charCodeAt(1)-e<<12|i.charCodeAt(2)-e<<8|
i.charCodeAt(3)-e<<4|i.charCodeAt(4)-e<<0),len:5};if(p=="q")return{decoded:String.fromCharCode(i.charCodeAt(1)-e<<4|i.charCodeAt(2)-e),len:3};return{decoded:i,len:i.length}};return{encode:function(i){for(var l=["!"],p=i.length,t=1,o=0;o<p;++o){var n=i.substr(o,1),r=n.charCodeAt(0);if(b[r])l[t++]=n;else t=d(r,l,t)}return l.join("")},decode:function(i){if(i.match(/%22/))i=decodeURIComponent(i);if(i.substr(0,1)!="!")throw"Illegal Q-Code:"+i;for(var l=i.length,p=[],t=1;t<l;++t){var o=i.substr(t,1);if(b[o.charCodeAt(0)])p.push(o);
else{o=h(i.substr(t,5));p.push(o.decoded);t+=o.len-1}}return p.join("")}}}();if(typeof exports!="undefined")exports=Q;function Qexport(){return Q}if(typeof importScript!="undefined"){importScript("global/require.ds");requireJoose();requireQ();require_()}
Class("Weet",{does:Joose.Singleton,classMethods:{subscribe:function(b,a){return this.getInstance().subscribe(b,a)},unsubscribe:function(b){this.getInstance().unsubscribe(b)},get:function(b){return this.getInstance().get(b)},set:function(b,a){return this.getInstance().set(b,a)},setHash:function(b,a){return this.getInstance().setHash(b,a)},setHref:function(b,a){return this.getInstance().setHref(b,a)},obj:function(){return this.merge({},this.getInstance().weet)},extend:function(b){this.getInstance().extend(b)},
createHash:function(b,a){return this.getInstance().createHash(b,a)},extendHash:function(b){return this.getInstance().extendHash(b)},extendHref:function(b){return this.getInstance().extendHref(b)},extendObj:function(b){return this.getInstance().extendObj(b)},overwriteHash:function(b){this.getInstance().overwriteHash(b)},clearHash:function(){this.getInstance().clearHash()},deReference:function(b,a){var c=b.split(".");return{found:_(c).select(function(d){a=!a||a[d];return typeof a!="undefined"}).length==
c.length,value:a}},objectify:function(b,a){var c=b.split("."),d=c.pop(),e={};_(c).reduce(e,function(h,i){return h[i]={}})[d]=a;return e},parse:function(b){if(b=="#"||b.length==0)return{};b=b.slice(1);try{return JSON.parse(Q.decode(b))}catch(a){return null}},merge:function(b){for(var a=1,c=arguments.length;a<c;a++){var d=JSON.parse(JSON.stringify(arguments[a])),e;for(e in d)if(d[e]===null)delete b[e];else if(typeof b[e]=="object")this.merge(b[e],d[e]);else b[e]=d[e]}return b},overwrite:function(b,
a,c){var d=a.shift();if(a.length){b[d]=this.overwrite(typeof b[d]=="object"?b[d]:{},a,c);return b}else if(c===null)delete b[d];else b[d]=c;return b},differences:function(b,a,c,d){var e=this;d||(d={});c||(c="");a&&_(a).each(function(h,i,l,p){l=b&&b[i]||null;p=a[i];if(l){if(JSON.stringify(p)!=JSON.stringify(l))if(typeof p=="object"){d[_([c,i]).compact().join(".")]={action:"modified",value:p};e.differences(l,p,_([c,i]).compact().join("."),d)}else if(JSON.stringify(p)!=JSON.stringify(l))d[_([c,i]).compact().join(".")]=
{action:"modified",value:p}}else if(typeof p=="object"){d[_([c,i]).compact().join(".")]={action:"added",value:p};e.differences(l,p,_([c,i]).compact().join("."),d)}else d[_([c,i]).compact().join(".")]={action:"added",value:p}});b&&_(b).each(function(h,i,l,p){l=b[i];p=a&&a[i]||null;if(!p)if(typeof l=="object"){d[_([c,i]).compact().join(".")]={action:"deleted",value:null};e.differences(l,p,_([c,i]).compact().join("."),d)}else d[_([c,i]).compact().join(".")]={action:"deleted",value:null}});return d}},
methods:{initialize:function(){this.weet={};this.subscriptions={};this.subscription_id=0;if(typeof window!="undefined"){this.weet=this.meta.c.parse(window.location.hash);this.observe();window.location.hash.length>1&&$(window).trigger("hashchange")}},observe:function(){var b=this;$(window).hashchange(function(){b.notify()})},notify:function(){var b=this,a=[],c=this.meta.c.parse(window.location.hash);if(c){var d=this.meta.c.differences(this.weet,c);_(d).each(function(e,h){b.subscriptions[h]&&_(b.subscriptions[h]).each(function(i){a.push({action:e.action,
value:e.value,funcs:i})})});this.weet=c;_(a).each(function(e){typeof e.funcs=="function"?e.funcs(e.value,e.action):e.funcs[e.action](e.value)})}},subscribe:function(b,a){this.subscriptions[b]||(this.subscriptions[b]={});this.subscriptions[b][this.subscription_id++]=a;var c=this.meta.c.deReference(b,this.weet);if(c.found)typeof a=="function"?a(c.value,"initialized"):a.modified(c.value);return this.subscription_id-1},unsubscribe:function(b){_(this.subscriptions).each(function(a){a[b]&&delete a[b]})},
get:function(b){var a=this.meta.c.merge({},this.weet);b=b.split(".");for(var c=0;c<b.length;c++){if(!a)break;a=a[b[c]]}return a},set:function(b,a){var c=this.meta.c.merge({},this.weet);this.meta.c.overwrite(c,b.split("."),a);window.location.hash=Q.encode(JSON.stringify(c));return a},setHash:function(b,a){var c=this.meta.c.merge({},this.weet);this.meta.c.overwrite(c,b.split("."),a);return Q.encode(JSON.stringify(c))},setHref:function(b,a){return"#"+this.setHash(b,a)},extend:function(b){b=this.meta.c.merge({},
this.weet,b);window.location.hash=Q.encode(JSON.stringify(b))},extendHash:function(b){return Q.encode(JSON.stringify(this.extendObj(b)))},createHash:function(b,a){return this.extendHash(this.meta.c.objectify(b,a))},extendHref:function(b){return"#"+this.extendHash(b)},extendObj:function(b){return this.meta.c.merge({},this.weet,b)},overwriteHash:function(b){window.location.hash=Q.encode(JSON.stringify(b))},clearHash:function(){window.location.hash=Q.encode(JSON.stringify({}))}}});
(function(b){function a(){return this.foldAttr(function(d,e,h){if(d=c.exec(this.name))h[d[1]]=this.value})}var c=/^data\-(.*)$/;b.fn.dataset=function(d,e){if(e!==undefined)return this.attr("data-"+d,e);switch(typeof d){case "string":return this.attr("data-"+d);case "object":for(var h in d)this.attr("data-"+h,d[h]);return this;case "undefined":return a.call(this);default:throw"dataset: invalid argument "+d;}};b.fn.removeDataset=function(d){var e,h=d&&d.length;if(h===undefined)for(e in d)this.removeAttr("data-"+
e);else for(e=0;e<h;e++)this.removeAttr("data-"+d[e]);return this}})(jQuery);
(function(b){function a(c,d,e){var h=c&&c.length;if(e===undefined)e={};if(!c)return e;if(h!==undefined)for(var i=0,l=c[i];i<h&&d.call(l,i,l,e)!==false;l=c[++i]);else for(i in c)if(d.call(c[i],i,c[i],e)===false)break;return e}b.fn.eachAttr=function(c){this.length>0&&b.each(this[0].attributes,c);return this};b.fn.foldAttr=function(c,d){return a(this.length>0&&this[0].attributes,c,d)};b.fn.fold=function(c,d){if(d===undefined)d=[];return a(this,c,d)};b.fold=a})(jQuery);
(function(b){function a(d){var e=d||window.event,h=[].slice.call(arguments,1),i=0,l=0,p=0;d=b.event.fix(e);d.type="mousewheel";if(d.wheelDelta)i=d.wheelDelta/120;if(d.detail)i=-d.detail/3;p=i;if(e.axis!==undefined&&e.axis===e.HORIZONTAL_AXIS){p=0;l=-1*i}if(e.wheelDeltaY!==undefined)p=e.wheelDeltaY/120;if(e.wheelDeltaX!==undefined)l=-1*e.wheelDeltaX/120;h.unshift(d,i,l,p);return b.event.handle.apply(this,h)}var c=["DOMMouseScroll","mousewheel"];b.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var d=
c.length;d;)this.addEventListener(c[--d],a,false);else this.onmousewheel=a},teardown:function(){if(this.removeEventListener)for(var d=c.length;d;)this.removeEventListener(c[--d],a,false);else this.onmousewheel=null}};b.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}})})(jQuery);
(function(b){b.extend(b.fn,{validate:function(a){if(this.length){var c=b.data(this[0],"validator");if(c)return c;c=new b.validator(a,this[0]);b.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});c.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){c.submitButton=this});this.submit(function(d){function e(){if(c.settings.submitHandler){if(c.submitButton)var h=b("<input type='hidden'/>").attr("name",
c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm);var i=c.settings.submitHandler.call(c,c.currentForm);c.submitButton&&h.remove();return i}return true}c.settings.debug&&d.preventDefault();if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(b(this[0]).is("form"))return this.validate().form();
else{var a=true,c=b(this[0].form).validate();this.each(function(){a&=c.element(this)});return a}},removeAttrs:function(a){var c={},d=this;b.each(a.split(/\s/),function(e,h){c[h]=d.attr(h);d.removeAttr(h)});return c},rules:function(a,c){var d=this[0];if(a){var e=b.data(d.form,"validator").settings,h=e.rules,i=b.validator.staticRules(d);switch(a){case "add":b.extend(i,b.validator.normalizeRule(c));h[d.name]=i;if(c.messages)e.messages[d.name]=b.extend(e.messages[d.name],c.messages);break;case "remove":if(!c){delete h[d.name];
return i}var l={};b.each(c.split(/\s/),function(p,t){l[t]=i[t];delete i[t]});return l}}d=b.validator.normalizeRules(b.extend({},b.validator.metadataRules(d),b.validator.classRules(d),b.validator.attributeRules(d),b.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=b.extend({required:e},d)}return d}});b.extend(b.expr[":"],{blank:function(a){return!b.trim(""+a.value)},filled:function(a){return!!b.trim(""+a.value)},unchecked:function(a){return!a.checked}});b.validator=function(a,
c){this.settings=b.extend(true,{},b.validator.defaults,a);this.currentForm=c;this.init()};b.validator.format=function(a,c){if(arguments.length==1)return function(){var d=b.makeArray(arguments);d.unshift(a);return b.validator.format.apply(this,d)};if(arguments.length>2&&c.constructor!=Array)c=b.makeArray(arguments).slice(1);if(c.constructor!=Array)c=[c];b.each(c,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};b.extend(b.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",
validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:b([]),errorLabelContainer:b([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.errorsFor(a).hide()}},onfocusout:function(a){if(!b(a).is(this.settings.ignore)&&!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)},
onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,c,d){b(a).addClass(c).removeClass(d)},unhighlight:function(a,c,d){b(a).removeClass(c).addClass(d)}},setDefaults:function(a){b.extend(b.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",
url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:b.validator.format("Please enter no more than {0} characters."),minlength:b.validator.format("Please enter at least {0} characters."),rangelength:b.validator.format("Please enter a value between {0} and {1} characters long."),
range:b.validator.format("Please enter a value between {0} and {1}."),max:b.validator.format("Please enter a value less than or equal to {0}."),min:b.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var h=b.data(this[0].form,"validator");e="on"+e.type.replace(/^validate/,"");h.settings[e]&&h.settings[e].call(h,this[0])}this.labelContainer=b(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&
this.labelContainer||b(this.currentForm);this.containers=b(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var c=this.groups={};b.each(this.settings.groups,function(e,h){b.each(h.split(/\s/),function(i,l){c[l]=e})});var d=this.settings.rules;b.each(d,function(e,h){d[e]=b.validator.normalizeRule(h)});b(this.currentForm).validateDelegate(":text, :password, :file, select, textarea",
"focusin focusout keyup",a).validateDelegate(":radio, :checkbox, select, option","click",a);this.settings.invalidHandler&&b(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();b.extend(this.submitted,this.errorMap);this.invalid=b.extend({},this.errorMap);this.valid()||b(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,c=this.currentElements=this.elements();c[a];a++)this.check(c[a]);
return this.valid()},element:function(a){this.lastElement=a=this.clean(a);this.prepareElement(a);this.currentElements=b(a);var c=this.check(a);if(c)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return c},showErrors:function(a){if(a){b.extend(this.errorMap,a);this.errorList=[];for(var c in a)this.errorList.push({message:a[c],element:this.findByName(c)[0]});this.successList=b.grep(this.successList,
function(d){return!(d.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){b.fn.resetForm&&b(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var c=0,d;for(d in a)c++;return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},
valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{b(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&b.grep(this.errorList,function(c){return c.element.name==a.name}).length==1&&a},elements:function(){var a=this,c={};return b([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&
a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in c||!a.objectLength(b(this).rules()))return false;return c[this.name]=true})},clean:function(a){return b(a)[0]},errors:function(){return b(this.settings.errorElement+"."+this.settings.errorClass.split(/\s+/)[0],this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=b([]);this.toHide=b([]);this.currentElements=b([])},prepareForm:function(){this.reset();this.toHide=
this.errors().add(this.containers)},prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.clean(a);if(this.checkable(a))a=this.findByName(a.name)[0];var c=b(a).rules(),d=false;for(method in c){var e={method:method,parameters:c[method]};try{var h=b.validator.methods[method].call(this,b(a).val().replace(/\r/g,""),a,e.parameters);if(h=="dependency-mismatch")d=true;else{d=false;if(h=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!h){this.formatAndAdd(a,
e);return false}}}catch(i){this.settings.debug&&window.console&&console.log("exception occured when checking element "+a.id+", check the '"+e.method+"' method",i);throw i;}}if(!d){this.objectLength(c)&&this.successList.push(a);return true}},customMetaMessage:function(a,c){if(b.metadata){var d=this.settings.meta?b(a).metadata()[this.settings.meta]:b(a).metadata();return d&&d.messages&&d.messages[c]}},customMessage:function(a,c){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[c])},
findDefined:function(){for(var a=0;a<arguments.length;a++)if(arguments[a]!==undefined)return arguments[a]},defaultMessage:function(a,c){return this.findDefined(this.customMessage(a.name,c),this.customMetaMessage(a,c),!this.settings.ignoreTitle&&a.title||undefined,b.validator.messages[c],"<strong>Warning: No message defined for "+a.name+"</strong>")},formatAndAdd:function(a,c){var d=this.defaultMessage(a,c.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,c.parameters,a);else if(e.test(d))d=
jQuery.format(d.replace(e,"{$1}"),c.parameters);this.errorList.push({message:d,element:a});this.errorMap[a.name]=d;this.submitted[a.name]=d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var c=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass);this.showLabel(c.element,c.message)}if(this.errorList.length)this.toShow=
this.toShow.add(this.containers);if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(c=this.validElements();c[a];a++)this.settings.unhighlight.call(this,c[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return b(this.errorList).map(function(){return this.element})},
showLabel:function(a,c){var d=this.errorsFor(a);if(d.length){d.removeClass().addClass(this.settings.errorClass);d.attr("generated")&&d.html(c)}else{d=b("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(c||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,b(a)):d.insertAfter(a))}if(!c&&
this.settings.success){d.text("");typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow=this.toShow.add(d)},errorsFor:function(a){var c=this.idOrName(a);return this.errors().filter(function(){return b(this).attr("for")==c})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var c=this.currentForm;return b(document.getElementsByName(a)).map(function(d,
e){return e.form==c&&e.name==a&&e||null})},getLength:function(a,c){switch(c.nodeName.toLowerCase()){case "select":return b("option:selected",c).length;case "input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return a.length},depend:function(a,c){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,c):true},dependTypes:{"boolean":function(a){return a},string:function(a,c){return!!b(a,c.form).length},"function":function(a,c){return a(c)}},optional:function(a){return!b.validator.methods.required.call(this,
b.trim(b(a).val()),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,c){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){b(this.currentForm).submit();this.formSubmitted=false}else if(!c&&this.pendingRequest==0&&this.formSubmitted){b(this.currentForm).triggerHandler("invalid-form",[this]);
this.formSubmitted=false}},previousValue:function(a){return b.data(a,"previousValue")||b.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,c){a.constructor==String?this.classRuleSettings[a]=c:b.extend(this.classRuleSettings,
a)},classRules:function(a){var c={};(a=b(a).attr("class"))&&b.each(a.split(" "),function(){this in b.validator.classRuleSettings&&b.extend(c,b.validator.classRuleSettings[this])});return c},attributeRules:function(a){var c={};a=b(a);for(method in b.validator.methods){var d=a.attr(method);if(d)c[method]=d}c.maxlength&&/-1|2147483647|524288/.test(c.maxlength)&&delete c.maxlength;return c},metadataRules:function(a){if(!b.metadata)return{};var c=b.data(a.form,"validator").settings.meta;return c?b(a).metadata()[c]:
b(a).metadata()},staticRules:function(a){var c={},d=b.data(a.form,"validator");if(d.settings.rules)c=b.validator.normalizeRule(d.settings.rules[a.name])||{};return c},normalizeRules:function(a,c){b.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var h=true;switch(typeof e.depends){case "string":h=!!b(e.depends,c.form).length;break;case "function":h=e.depends.call(c,c)}if(h)a[d]=e.param!==undefined?e.param:true;else delete a[d]}});b.each(a,function(d,e){a[d]=b.isFunction(e)?
e(c):e});b.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});b.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(b.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;return a},normalizeRule:function(a){if(typeof a=="string"){var c=
{};b.each(a.split(/\s/),function(){c[this]=true});a=c}return a},addMethod:function(a,c,d){b.validator.methods[a]=c;b.validator.messages[a]=d!=undefined?d:b.validator.messages[a];c.length<3&&b.validator.addClassRules(a,b.validator.normalizeRule(a))},methods:{required:function(a,c,d){if(!this.depend(d,c))return"dependency-mismatch";switch(c.nodeName.toLowerCase()){case "select":return(a=b(c).val())&&a.length>0;case "input":if(this.checkable(c))return this.getLength(a,c)>0;default:return b.trim(a).length>
0}},remote:function(a,c,d){if(this.optional(c))return"dependency-mismatch";var e=this.previousValue(c);this.settings.messages[c.name]||(this.settings.messages[c.name]={});e.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(e.old!==a){e.old=a;var h=this;this.startRequest(c);var i={};i[c.name]=a;b.ajax(b.extend(true,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:i,success:function(l){h.settings.messages[c.name].remote=
e.originalMessage;var p=l===true;if(p){var t=h.formSubmitted;h.prepareElement(c);h.formSubmitted=t;h.successList.push(c);h.showErrors()}else{t={};l=e.message=l||h.defaultMessage(c,"remote");t[c.name]=b.isFunction(l)?l(a):l;h.showErrors(t)}e.valid=p;h.stopRequest(c,p)}},d));return"pending"}else if(this.pending[c.name])return"pending";return e.valid},minlength:function(a,c,d){return this.optional(c)||this.getLength(b.trim(a),c)>=d},maxlength:function(a,c,d){return this.optional(c)||this.getLength(b.trim(a),
c)<=d},rangelength:function(a,c,d){a=this.getLength(b.trim(a),c);return this.optional(c)||a>=d[0]&&a<=d[1]},min:function(a,c,d){return this.optional(c)||a>=d},max:function(a,c,d){return this.optional(c)||a<=d},range:function(a,c,d){return this.optional(c)||a>=d[0]&&a<=d[1]},email:function(a,c){return this.optional(c)||/^((([a-z]|\d|[!#\$%&'\*\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)},
url:function(a,c){return this.optional(c)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},
date:function(a,c){return this.optional(c)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,c){return this.optional(c)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,c){return this.optional(c)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,c){return this.optional(c)||/^\d+$/.test(a)},creditcard:function(a,c){if(this.optional(c))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var d=0,e=0,h=false;a=a.replace(/\D/g,"");for(var i=a.length-1;i>=
0;i--){e=a.charAt(i);e=parseInt(e,10);if(h)if((e*=2)>9)e-=9;d+=e;h=!h}return d%10==0},accept:function(a,c,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(c)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,c,d){d=b(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){b(c).valid()});return a==d.val()}}});b.format=b.validator.format})(jQuery);
(function(b){var a=b.ajax,c={};b.ajax=function(d){d=b.extend(d,b.extend({},b.ajaxSettings,d));var e=d.port;if(d.mode=="abort"){c[e]&&c[e].abort();return c[e]=a.apply(this,arguments)}return a.apply(this,arguments)}})(jQuery);
(function(b){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&b.each({focus:"focusin",blur:"focusout"},function(a,c){function d(e){e=b.event.fix(e);e.type=c;return b.event.handle.call(this,e)}b.event.special[c]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)},handler:function(e){arguments[0]=b.event.fix(e);arguments[0].type=c;return b.event.handle.apply(this,arguments)}}});b.extend(b.fn,{validateDelegate:function(a,
c,d){return this.bind(c,function(e){var h=b(e.target);if(h.is(a))return d.apply(h,arguments)})}})})(jQuery);
(function(b,a,c){function d(o){o=o||location.href;return"#"+o.replace(/^[^#]*#?(.*)$/,"$1")}var e="hashchange",h=document,i,l=b.event.special,p=h.documentMode,t="on"+e in a&&(p===c||p>7);b.fn[e]=function(o){return o?this.bind(e,o):this.trigger(e)};b.fn[e].delay=50;l[e]=b.extend(l[e],{setup:function(){if(t)return false;b(i.start)},teardown:function(){if(t)return false;b(i.stop)}});i=function(){function o(){var O=d(),da=j(v);if(O!==v){z(v=O,da);b(a).trigger(e)}else if(da!==v)location.href=location.href.replace(/#.*/,
"")+da;r=setTimeout(o,b.fn[e].delay)}var n={},r,v=d(),x=function(O){return O},z=x,j=x;n.start=function(){r||o()};n.stop=function(){r&&clearTimeout(r);r=c};b.browser.msie&&!t&&function(){var O,da;n.start=function(){if(!O){da=(da=b.fn[e].src)&&da+d();O=b('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){da||z(d());o()}).attr("src",da||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title")O.document.title=h.title}catch(B){}}}};
n.stop=x;j=function(){return d(O.location.href)};z=function(B,ka){var Aa=O.document,ra=b.fn[e].domain;if(B!==ka){Aa.title=h.title;Aa.open();ra&&Aa.write('<script>document.domain="'+ra+'"<\/script>');Aa.close();O.location.hash=B}}}();return n}()})(jQuery,this);
(function(b,a){function c(d){return!b(d).parents().andSelf().filter(function(){return b.curCSS(this,"visibility")==="hidden"||b.expr.filters.hidden(this)}).length}b.ui=b.ui||{};if(!b.ui.version){b.extend(b.ui,{version:"1.8.5",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}});b.fn.extend({_focus:b.fn.focus,focus:function(d,e){return typeof d==="number"?this.each(function(){var h=this;setTimeout(function(){b(h).focus();e&&e.call(h)},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;d=b.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(b.curCSS(this,
"position",1))&&/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(b.curCSS(this,"overflow",1)+b.curCSS(this,"overflow-y",1)+b.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!d.length?b(document):d},zIndex:function(d){if(d!==a)return this.css("zIndex",d);if(this.length){d=b(this[0]);for(var e;d.length&&d[0]!==document;){e=d.css("position");
if(e==="absolute"||e==="relative"||e==="fixed"){e=parseInt(d.css("zIndex"));if(!isNaN(e)&&e!=0)return e}d=d.parent()}}return 0},disableSelection:function(){return this.bind("mousedown.ui-disableSelection selectstart.ui-disableSelection",function(d){d.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});b.each(["Width","Height"],function(d,e){function h(t,o,n,r){b.each(i,function(){o-=parseFloat(b.curCSS(t,"padding"+this,true))||0;if(n)o-=parseFloat(b.curCSS(t,
"border"+this+"Width",true))||0;if(r)o-=parseFloat(b.curCSS(t,"margin"+this,true))||0});return o}var i=e==="Width"?["Left","Right"]:["Top","Bottom"],l=e.toLowerCase(),p={innerWidth:b.fn.innerWidth,innerHeight:b.fn.innerHeight,outerWidth:b.fn.outerWidth,outerHeight:b.fn.outerHeight};b.fn["inner"+e]=function(t){if(t===a)return p["inner"+e].call(this);return this.each(function(){b.style(this,l,h(this,t)+"px")})};b.fn["outer"+e]=function(t,o){if(typeof t!=="number")return p["outer"+e].call(this,t);return this.each(function(){b.style(this,
l,h(this,t,true,o)+"px")})}});b.extend(b.expr[":"],{data:function(d,e,h){return!!b.data(d,h[3])},focusable:function(d){var e=d.nodeName.toLowerCase(),h=b.attr(d,"tabindex");if("area"===e){e=d.parentNode;h=e.name;if(!d.href||!h||e.nodeName.toLowerCase()!=="map")return false;d=b("img[usemap=#"+h+"]")[0];return!!d&&c(d)}return(/input|select|textarea|button|object/.test(e)?!d.disabled:"a"==e?d.href||!isNaN(h):!isNaN(h))&&c(d)},tabbable:function(d){var e=b.attr(d,"tabindex");return(isNaN(e)||e>=0)&&b(d).is(":focusable")}});
b(function(){var d=document.createElement("div"),e=document.body;b.extend(d.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});b.support.minHeight=e.appendChild(d).offsetHeight===100;e.removeChild(d).style.display="none"});b.extend(b.ui,{plugin:{add:function(d,e,h){d=b.ui[d].prototype;for(var i in h){d.plugins[i]=d.plugins[i]||[];d.plugins[i].push([e,h[i]])}},call:function(d,e,h){if((e=d.plugins[e])&&d.element[0].parentNode)for(var i=0;i<e.length;i++)d.options[e[i][0]]&&e[i][1].apply(d.element,
h)}},contains:function(d,e){return document.compareDocumentPosition?d.compareDocumentPosition(e)&16:d!==e&&d.contains(e)},hasScroll:function(d,e){if(b(d).css("overflow")==="hidden")return false;e=e&&e==="left"?"scrollLeft":"scrollTop";var h=false;if(d[e]>0)return true;d[e]=1;h=d[e]>0;d[e]=0;return h},isOverAxis:function(d,e,h){return d>e&&d<e+h},isOver:function(d,e,h,i,l,p){return b.ui.isOverAxis(d,h,l)&&b.ui.isOverAxis(e,i,p)}})}})(jQuery);
(function(b,a){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var h=0,i;(i=e[h])!=null;h++)b(i).triggerHandler("remove");c(e)}}else{var d=b.fn.remove;b.fn.remove=function(e,h){return this.each(function(){if(!h)if(!e||b.filter(e,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return d.call(b(this),e,h)})}}b.widget=function(e,h,i){var l=e.split(".")[0],p;e=e.split(".")[1];p=l+"-"+e;if(!i){i=h;h=b.Widget}b.expr[":"][p]=function(t){return!!b.data(t,
e)};b[l]=b[l]||{};b[l][e]=function(t,o){arguments.length&&this._createWidget(t,o)};h=new h;h.options=b.extend(true,{},h.options);b[l][e].prototype=b.extend(true,h,{namespace:l,widgetName:e,widgetEventPrefix:b[l][e].prototype.widgetEventPrefix||e,widgetBaseClass:p},i);b.widget.bridge(e,b[l][e])};b.widget.bridge=function(e,h){b.fn[e]=function(i){var l=typeof i==="string",p=Array.prototype.slice.call(arguments,1),t=this;i=!l&&p.length?b.extend.apply(null,[true,i].concat(p)):i;if(l&&i.substring(0,1)===
"_")return t;l?this.each(function(){var o=b.data(this,e);if(!o)throw"cannot call methods on "+e+" prior to initialization; attempted to call method '"+i+"'";if(!b.isFunction(o[i]))throw"no such method '"+i+"' for "+e+" widget instance";var n=o[i].apply(o,p);if(n!==o&&n!==a){t=n;return false}}):this.each(function(){var o=b.data(this,e);o?o.option(i||{})._init():b.data(this,e,new h(i,this))});return t}};b.Widget=function(e,h){arguments.length&&this._createWidget(e,h)};b.Widget.prototype={widgetName:"widget",
widgetEventPrefix:"",options:{disabled:false},_createWidget:function(e,h){b.data(h,this.widgetName,this);this.element=b(h);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(h)[this.widgetName],e);var i=this;this.element.bind("remove."+this.widgetName,function(){i.destroy()});this._create();this._init()},_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(e,h){var i=e,l=this;if(arguments.length===0)return b.extend({},l.options);if(typeof e==="string"){if(h===a)return this.options[e];i={};i[e]=h}b.each(i,function(p,t){l._setOption(p,t)});return l},_setOption:function(e,h){this.options[e]=h;if(e==="disabled")this.widget()[h?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",h);return this},enable:function(){return this._setOption("disabled",
false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(e,h,i){var l=this.options[e];h=b.Event(h);h.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();i=i||{};if(h.originalEvent){e=b.event.props.length;for(var p;e;){p=b.event.props[--e];h[p]=h.originalEvent[p]}}this.element.trigger(h,i);return!(b.isFunction(l)&&l.call(this.element[0],h,i)===false||h.isDefaultPrevented())}}})(jQuery);
(function(b){b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(a._preventClickEvent){a._preventClickEvent=false;c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(a);this._mouseDownEvent=a;var c=this,d=a.which==1,e=typeof this.options.cancel=="string"?b(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
return true}}this._mouseMoveDelegate=function(h){return c._mouseMove(h)};this._mouseUpDelegate=function(h){return c._mouseUp(h)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(b.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(b){b.widget("ui.sortable",b.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,c){if(a==="disabled"){this.options[a]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else b.Widget.prototype._setOption.apply(this,
arguments)},_mouseCapture:function(a,c){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var d=null,e=this;b(a.target).parents().each(function(){if(b.data(this,"sortable-item")==e){d=b(this);return false}});if(b.data(a.target,"sortable-item")==e)d=b(a.target);if(!d)return false;if(this.options.handle&&!c){var h=false;b(this.options.handle,d).find("*").andSelf().each(function(){if(this==a.target)h=true});if(!h)return false}this.currentItem=
d;this._removeCurrentsFromItems();return true},_mouseStart:function(a,c,d){c=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");b.extend(this.offset,
{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();c.containment&&this._setContainment();
if(c.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",c.cursor)}if(c.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",c.opacity)}if(c.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",c.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(d=this.containers.length-1;d>=0;d--)this.containers[d]._trigger("activate",a,this._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var c=this.options,d=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-this.overflowOffset.top<c.scrollSensitivity)this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-c.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-this.overflowOffset.left<c.scrollSensitivity)this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(a.pageY-b(document).scrollTop()<c.scrollSensitivity)d=b(document).scrollTop(b(document).scrollTop()-c.scrollSpeed);else if(b(window).height()-(a.pageY-b(document).scrollTop())<c.scrollSensitivity)d=b(document).scrollTop(b(document).scrollTop()+
c.scrollSpeed);if(a.pageX-b(document).scrollLeft()<c.scrollSensitivity)d=b(document).scrollLeft(b(document).scrollLeft()-c.scrollSpeed);else if(b(window).width()-(a.pageX-b(document).scrollLeft())<c.scrollSensitivity)d=b(document).scrollLeft(b(document).scrollLeft()+c.scrollSpeed)}d!==false&&b.ui.ddmanager&&!c.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(c=this.items.length-1;c>=0;c--){d=this.items[c];var e=d.item[0],h=this._intersectsWithPointer(d);if(h)if(e!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=e&&!b.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!b.ui.contains(this.element[0],e):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(d))this._rearrange(a,
d);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);b.ui.ddmanager&&b.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,c){if(a){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,a);if(this.options.revert){var d=this;c=d.placeholder.offset();d.reverting=true;b(this.helper).animate({left:c.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:c.top-this.offset.parent.top-d.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(a)})}else this._clear(a,c);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var a=this.containers.length-1;a>=0;a--){this.containers[a]._trigger("deactivate",
null,this._uiHash(this));if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",null,this._uiHash(this));this.containers[a].containerCache.over=0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();b.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?b(this.domPosition.prev).after(this.currentItem):
b(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var c=this._getItemsAsjQuery(a&&a.connected),d=[];a=a||{};b(c).each(function(){var e=(b(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)d.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!d.length&&a.key&&d.push(a.key+"=");return d.join("&")},toArray:function(a){var c=this._getItemsAsjQuery(a&&a.connected),d=[];a=a||{};c.each(function(){d.push(b(a.item||this).attr(a.attribute||
"id")||"")});return d},_intersectsWith:function(a){var c=this.positionAbs.left,d=c+this.helperProportions.width,e=this.positionAbs.top,h=e+this.helperProportions.height,i=a.left,l=i+a.width,p=a.top,t=p+a.height,o=this.offset.click.top,n=this.offset.click.left;o=e+o>p&&e+o<t&&c+n>i&&c+n<l;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?o:i<c+
this.helperProportions.width/2&&d-this.helperProportions.width/2<l&&p<e+this.helperProportions.height/2&&h-this.helperProportions.height/2<t},_intersectsWithPointer:function(a){var c=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);c=c&&a;a=this._getDragVerticalDirection();var d=this._getDragHorizontalDirection();if(!c)return false;return this.floating?d&&d=="right"||a=="down"?2:1:a&&(a=="down"?
2:1)},_intersectsWithSides:function(a){var c=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var d=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:d&&(d=="down"&&c||d=="up"&&!c)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},
_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var c=[],d=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var h=b(e[a]),i=h.length-1;i>=0;i--){var l=b.data(h[i],"sortable");if(l&&l!=
this&&!l.options.disabled)d.push([b.isFunction(l.options.items)?l.options.items.call(l.element):b(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}d.push([b.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):b(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=d.length-1;a>=0;a--)d[a][0].each(function(){c.push(this)});return b(c)},_removeCurrentsFromItems:function(){for(var a=
this.currentItem.find(":data(sortable-item)"),c=0;c<this.items.length;c++)for(var d=0;d<a.length;d++)a[d]==this.items[c].item[0]&&this.items.splice(c,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var c=this.items,d=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):b(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var h=e.length-1;h>=0;h--)for(var i=b(e[h]),l=i.length-1;l>=0;l--){var p=b.data(i[l],"sortable");
if(p&&p!=this&&!p.options.disabled){d.push([b.isFunction(p.options.items)?p.options.items.call(p.element[0],a,{item:this.currentItem}):b(p.options.items,p.element),p]);this.containers.push(p)}}for(h=d.length-1;h>=0;h--){a=d[h][1];e=d[h][0];l=0;for(i=e.length;l<i;l++){p=b(e[l]);p.data("sortable-item",a);c.push({item:p,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var c=this.items.length-1;c>=
0;c--){var d=this.items[c],e=this.options.toleranceElement?b(this.options.toleranceElement,d.item):d.item;if(!a){d.width=e.outerWidth();d.height=e.outerHeight()}e=e.offset();d.left=e.left;d.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--){e=this.containers[c].element.offset();this.containers[c].containerCache.left=e.left;this.containers[c].containerCache.top=e.top;this.containers[c].containerCache.width=
this.containers[c].element.outerWidth();this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}return this},_createPlaceholder:function(a){var c=a||this,d=c.options;if(!d.placeholder||d.placeholder.constructor==String){var e=d.placeholder;d.placeholder={element:function(){var h=b(document.createElement(c.currentItem[0].nodeName)).addClass(e||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)h.style.visibility="hidden";return h},
update:function(h,i){if(!(e&&!d.forcePlaceholderSize)){i.height()||i.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10));i.width()||i.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}}c.placeholder=b(d.placeholder.element.call(c.element,c.currentItem));c.currentItem.after(c.placeholder);d.placeholder.update(c,c.placeholder)},_contactContainers:function(a){for(var c=
null,d=null,e=this.containers.length-1;e>=0;e--)if(!b.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(c&&b.ui.contains(this.containers[e].element[0],c.element[0]))){c=this.containers[e];d=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(c)if(this.containers.length===1){this.containers[d]._trigger("over",a,this._uiHash(this));
this.containers[d].containerCache.over=1}else if(this.currentContainer!=this.containers[d]){c=1E4;e=null;for(var h=this.positionAbs[this.containers[d].floating?"left":"top"],i=this.items.length-1;i>=0;i--)if(b.ui.contains(this.containers[d].element[0],this.items[i].item[0])){var l=this.items[i][this.containers[d].floating?"left":"top"];if(Math.abs(l-h)<c){c=Math.abs(l-h);e=this.items[i]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[d];e?this._rearrange(a,e,null,true):this._rearrange(a,
null,this.containers[d].element,true);this._trigger("change",a,this._uiHash());this.containers[d]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[d]._trigger("over",a,this._uiHash(this));this.containers[d].containerCache.over=1}}},_createHelper:function(a){var c=this.options;a=b.isFunction(c.helper)?b(c.helper.apply(this.element[0],[a,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||
b(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==""||c.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||c.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a==
"string")a=a.split(" ");if(b.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition==
"absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==
"relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},
_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-
this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var c=b(a.containment)[0];a=b(a.containment).offset();var d=b(c).css("overflow")!="hidden";this.containment=[a.left+(parseInt(b(c).css("borderLeftWidth"),10)||0)+(parseInt(b(c).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(b(c).css("borderTopWidth"),10)||0)+(parseInt(b(c).css("paddingTop"),10)||0)-this.margins.top,a.left+(d?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(b(c).css("borderLeftWidth"),
10)||0)-(parseInt(b(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(d?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(b(c).css("borderTopWidth"),10)||0)-(parseInt(b(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,c){if(!c)c=this.position;a=a=="absolute"?1:-1;var d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?
this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);return{top:c.top+this.offset.relative.top*a+this.offset.parent.top*a-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop())*a),left:c.left+this.offset.relative.left*a+this.offset.parent.left*a-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())*a)}},_generatePosition:function(a){var c=
this.options,d=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var h=a.pageX,i=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])h=this.containment[0]+
this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])i=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])h=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])i=this.containment[3]+this.offset.click.top}if(c.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/c.grid[1])*c.grid[1];i=this.containment?!(i-this.offset.click.top<this.containment[1]||i-this.offset.click.top>this.containment[3])?
i:!(i-this.offset.click.top<this.containment[1])?i-c.grid[1]:i+c.grid[1]:i;h=this.originalPageX+Math.round((h-this.originalPageX)/c.grid[0])*c.grid[0];h=this.containment?!(h-this.offset.click.left<this.containment[0]||h-this.offset.click.left>this.containment[2])?h:!(h-this.offset.click.left<this.containment[0])?h-c.grid[0]:h+c.grid[0]:h}}return{top:i-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
e?0:d.scrollTop()),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())}},_rearrange:function(a,c,d,e){d?d[0].appendChild(this.placeholder[0]):c.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?c.item[0]:c.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var h=this,i=this.counter;window.setTimeout(function(){i==
h.counter&&h.refreshPositions(!e)},0)},_clear:function(a,c){this.reverting=false;var d=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!c&&d.push(function(h){this._trigger("receive",
h,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!c)d.push(function(h){this._trigger("update",h,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){c||d.push(function(h){this._trigger("remove",h,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(b.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!c){d.push(function(h){return function(i){h._trigger("receive",
i,this._uiHash(this))}}.call(this,this.containers[e]));d.push(function(h){return function(i){h._trigger("update",i,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){c||d.push(function(h){return function(i){h._trigger("deactivate",i,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){d.push(function(h){return function(i){h._trigger("out",i,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=
0}}this._storedCursor&&b("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",a,this._uiHash());for(e=0;e<d.length;e++)d[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}c||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!c){for(e=0;e<d.length;e++)d[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var c=a||this;return{helper:c.helper,placeholder:c.placeholder||b([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:a?a.element:null}}});
b.extend(b.ui.sortable,{version:"1.8.5"})})(jQuery);
(function(b){b.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,c=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");a.headers=
a.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||b(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||b(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||b(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||b(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
if(c.navigation){var d=a.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");a.active=e.length?e:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",function(h){return a._keydown(h)}).next().attr("role",
"tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);b.browser.safari||a.headers.find("a").attr("tabIndex",-1);c.event&&a.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(h){a._clickHandler.call(a,h,this);h.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){b("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);
this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)c.css("height","");return b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(c);if(a=="icons"){this._destroyIcons();
c&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var c=b.ui.keyCode,d=this.headers.length,e=this.headers.index(a.target),h=false;switch(a.keyCode){case c.RIGHT:case c.DOWN:h=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:h=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._clickHandler({target:a.target},a.target);
a.preventDefault()}if(h){b(a.target).attr("tabIndex",-1);b(h).attr("tabIndex",0);h.focus();return false}return true}},resize:function(){var a=this.options,c;if(a.fillSpace){if(b.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height();b.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){c-=b(this).outerHeight(true)});this.headers.next().each(function(){b(this).height(Math.max(0,c-b(this).innerHeight()+
b(this).height()))}).css("overflow","auto")}else if(a.autoHeight){c=0;this.headers.next().each(function(){c=Math.max(c,b(this).height("").height())}).height(c)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?b([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,c){var d=this.options;
if(!d.disabled)if(a.target){a=b(a.currentTarget||c);c=a[0]===this.active[0];d.active=d.collapsible&&c?false:this.headers.index(a);if(!(this.running||!d.collapsible&&c)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);if(!c){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);
a.next().addClass("ui-accordion-content-active")}i=a.next();e=this.active.next();h={options:d,newHeader:c&&d.collapsible?b([]):a,oldHeader:this.active,newContent:c&&d.collapsible?b([]):i,oldContent:e};d=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=c?b([]):a;this._toggle(i,e,h,c,d)}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),h={options:d,newHeader:b([]),oldHeader:d.active,newContent:b([]),oldContent:e},i=this.active=b([]);this._toggle(i,e,h)}},_toggle:function(a,c,d,e,h){var i=this,l=i.options;i.toShow=a;i.toHide=c;i.data=d;var p=function(){if(i)return i._completed.apply(i,arguments)};i._trigger("changestart",null,i.data);i.running=c.size()===0?a.size():c.size();if(l.animated){d={};d=l.collapsible&&e?{toShow:b([]),toHide:c,complete:p,
down:h,autoHeight:l.autoHeight||l.fillSpace}:{toShow:a,toHide:c,complete:p,down:h,autoHeight:l.autoHeight||l.fillSpace};if(!l.proxied)l.proxied=l.animated;if(!l.proxiedDuration)l.proxiedDuration=l.duration;l.animated=b.isFunction(l.proxied)?l.proxied(d):l.proxied;l.duration=b.isFunction(l.proxiedDuration)?l.proxiedDuration(d):l.proxiedDuration;e=b.ui.accordion.animations;var t=l.duration,o=l.animated;if(o&&!e[o]&&!b.easing[o])o="slide";e[o]||(e[o]=function(n){this.slide(n,{easing:o,duration:t||700})});
e[o](d)}else{if(l.collapsible&&e)a.toggle();else{c.hide();a.show()}p(true)}c.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});b.extend(b.ui.accordion,{version:"1.8.5",animations:{slide:function(a,
c){a=b.extend({easing:"swing",duration:300},a,c);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),e=0,h={},i={},l;c=a.toShow;l=c[0].style.width;c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));b.each(["height","paddingTop","paddingBottom"],function(p,t){i[t]="hide";p=(""+b.css(a.toShow[0],t)).match(/^([\d+-.]+)(.*)$/);h[t]={value:p[1],
unit:p[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(i,{step:function(p,t){if(t.prop=="height")e=t.end-t.start===0?0:(t.now-t.start)/(t.end-t.start);a.toShow[0].style[t.prop]=e*h[t.prop].value+h[t.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:l,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide",
paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
jQuery.effects||function(b,a){function c(o){var n;if(o&&o.constructor==Array&&o.length==3)return o;if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(o))return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)];if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(o))return[parseFloat(n[1])*2.55,parseFloat(n[2])*2.55,parseFloat(n[3])*2.55];if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(o))return[parseInt(n[1],
16),parseInt(n[2],16),parseInt(n[3],16)];if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(o))return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(o))return l.transparent;return l[b.trim(o).toLowerCase()]}function d(){var o=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,n={},r,v;if(o&&o.length&&o[0]&&o[o[0]])for(var x=o.length;x--;){r=o[x];if(typeof o[r]=="string"){v=r.replace(/\-(\w)/g,function(z,j){return j.toUpperCase()});
n[v]=o[r]}}else for(r in o)if(typeof o[r]==="string")n[r]=o[r];return n}function e(o){var n,r;for(n in o){r=o[n];if(r==null||b.isFunction(r)||n in t||/scrollbar/.test(n)||!/color/i.test(n)&&isNaN(parseFloat(r)))delete o[n]}return o}function h(o,n){var r={_:0},v;for(v in n)if(o[v]!=n[v])r[v]=n[v];return r}function i(o,n,r,v){if(typeof o=="object"){v=n;r=null;n=o;o=n.effect}if(b.isFunction(n)){v=n;r=null;n={}}if(typeof n=="number"||b.fx.speeds[n]){v=r;r=n;n={}}if(b.isFunction(r)){v=r;r=null}n=n||{};
r=r||n.duration;r=b.fx.off?0:typeof r=="number"?r:b.fx.speeds[r]||b.fx.speeds._default;v=v||n.complete;return[o,n,r,v]}b.effects={};b.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(o,n){b.fx.step[n]=function(r){if(!r.colorInit){var v;v=r.elem;var x=n,z;do{z=b.curCSS(v,x);if(z!=""&&z!="transparent"||b.nodeName(v,"body"))break;x="backgroundColor"}while(v=v.parentNode);v=c(z);r.start=v;r.end=c(r.end);r.colorInit=true}r.elem.style[n]=
"rgb("+Math.max(Math.min(parseInt(r.pos*(r.end[0]-r.start[0])+r.start[0],10),255),0)+","+Math.max(Math.min(parseInt(r.pos*(r.end[1]-r.start[1])+r.start[1],10),255),0)+","+Math.max(Math.min(parseInt(r.pos*(r.end[2]-r.start[2])+r.start[2],10),255),0)+")"}});var l={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},p=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};b.effects.animateClass=function(o,n,r,v){if(b.isFunction(r)){v=r;r=null}return this.each(function(){var x=b(this),z=x.attr("style")||" ",j=e(d.call(this)),O,da=x.attr("className");b.each(p,function(B,ka){o[ka]&&x[ka+
"Class"](o[ka])});O=e(d.call(this));x.attr("className",da);x.animate(h(j,O),n,r,function(){b.each(p,function(B,ka){o[ka]&&x[ka+"Class"](o[ka])});if(typeof x.attr("style")=="object"){x.attr("style").cssText="";x.attr("style").cssText=z}else x.attr("style",z);v&&v.apply(this,arguments)})})};b.fn.extend({_addClass:b.fn.addClass,addClass:function(o,n,r,v){return n?b.effects.animateClass.apply(this,[{add:o},n,r,v]):this._addClass(o)},_removeClass:b.fn.removeClass,removeClass:function(o,n,r,v){return n?
b.effects.animateClass.apply(this,[{remove:o},n,r,v]):this._removeClass(o)},_toggleClass:b.fn.toggleClass,toggleClass:function(o,n,r,v,x){return typeof n=="boolean"||n===a?r?b.effects.animateClass.apply(this,[n?{add:o}:{remove:o},r,v,x]):this._toggleClass(o,n):b.effects.animateClass.apply(this,[{toggle:o},n,r,v])},switchClass:function(o,n,r,v,x){return b.effects.animateClass.apply(this,[{add:n,remove:o},r,v,x])}});b.extend(b.effects,{version:"1.8.5",save:function(o,n){for(var r=0;r<n.length;r++)n[r]!==
null&&o.data("ec.storage."+n[r],o[0].style[n[r]])},restore:function(o,n){for(var r=0;r<n.length;r++)n[r]!==null&&o.css(n[r],o.data("ec.storage."+n[r]))},setMode:function(o,n){if(n=="toggle")n=o.is(":hidden")?"show":"hide";return n},getBaseline:function(o,n){var r;switch(o[0]){case "top":r=0;break;case "middle":r=0.5;break;case "bottom":r=1;break;default:r=o[0]/n.height}switch(o[1]){case "left":o=0;break;case "center":o=0.5;break;case "right":o=1;break;default:o=o[1]/n.width}return{x:o,y:r}},createWrapper:function(o){if(o.parent().is(".ui-effects-wrapper"))return o.parent();
var n={width:o.outerWidth(true),height:o.outerHeight(true),"float":o.css("float")},r=b("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});o.wrap(r);r=o.parent();if(o.css("position")=="static"){r.css({position:"relative"});o.css({position:"relative"})}else{b.extend(n,{position:o.css("position"),zIndex:o.css("z-index")});b.each(["top","left","bottom","right"],function(v,x){n[x]=o.css(x);if(isNaN(parseInt(n[x],10)))n[x]="auto"});
o.css({position:"relative",top:0,left:0})}return r.css(n).show()},removeWrapper:function(o){if(o.parent().is(".ui-effects-wrapper"))return o.parent().replaceWith(o);return o},setTransition:function(o,n,r,v){v=v||{};b.each(n,function(x,z){unit=o.cssUnit(z);if(unit[0]>0)v[z]=unit[0]*r+unit[1]});return v}});b.fn.extend({effect:function(o){var n=i.apply(this,arguments);n={options:n[1],duration:n[2],callback:n[3]};var r=b.effects[o];return r&&!b.fx.off?r.call(this,n):this},_show:b.fn.show,show:function(o){if(!o||
typeof o=="number"||b.fx.speeds[o]||!b.effects[o])return this._show.apply(this,arguments);else{var n=i.apply(this,arguments);n[1].mode="show";return this.effect.apply(this,n)}},_hide:b.fn.hide,hide:function(o){if(!o||typeof o=="number"||b.fx.speeds[o]||!b.effects[o])return this._hide.apply(this,arguments);else{var n=i.apply(this,arguments);n[1].mode="hide";return this.effect.apply(this,n)}},__toggle:b.fn.toggle,toggle:function(o){if(!o||typeof o=="number"||b.fx.speeds[o]||!b.effects[o]||typeof o==
"boolean"||b.isFunction(o))return this.__toggle.apply(this,arguments);else{var n=i.apply(this,arguments);n[1].mode="toggle";return this.effect.apply(this,n)}},cssUnit:function(o){var n=this.css(o),r=[];b.each(["em","px","%","pt"],function(v,x){if(n.indexOf(x)>0)r=[parseFloat(n),x]});return r}});b.easing.jswing=b.easing.swing;b.extend(b.easing,{def:"easeOutQuad",swing:function(o,n,r,v,x){return b.easing[b.easing.def](o,n,r,v,x)},easeInQuad:function(o,n,r,v,x){return v*(n/=x)*n+r},easeOutQuad:function(o,
n,r,v,x){return-v*(n/=x)*(n-2)+r},easeInOutQuad:function(o,n,r,v,x){if((n/=x/2)<1)return v/2*n*n+r;return-v/2*(--n*(n-2)-1)+r},easeInCubic:function(o,n,r,v,x){return v*(n/=x)*n*n+r},easeOutCubic:function(o,n,r,v,x){return v*((n=n/x-1)*n*n+1)+r},easeInOutCubic:function(o,n,r,v,x){if((n/=x/2)<1)return v/2*n*n*n+r;return v/2*((n-=2)*n*n+2)+r},easeInQuart:function(o,n,r,v,x){return v*(n/=x)*n*n*n+r},easeOutQuart:function(o,n,r,v,x){return-v*((n=n/x-1)*n*n*n-1)+r},easeInOutQuart:function(o,n,r,v,x){if((n/=
x/2)<1)return v/2*n*n*n*n+r;return-v/2*((n-=2)*n*n*n-2)+r},easeInQuint:function(o,n,r,v,x){return v*(n/=x)*n*n*n*n+r},easeOutQuint:function(o,n,r,v,x){return v*((n=n/x-1)*n*n*n*n+1)+r},easeInOutQuint:function(o,n,r,v,x){if((n/=x/2)<1)return v/2*n*n*n*n*n+r;return v/2*((n-=2)*n*n*n*n+2)+r},easeInSine:function(o,n,r,v,x){return-v*Math.cos(n/x*(Math.PI/2))+v+r},easeOutSine:function(o,n,r,v,x){return v*Math.sin(n/x*(Math.PI/2))+r},easeInOutSine:function(o,n,r,v,x){return-v/2*(Math.cos(Math.PI*n/x)-1)+
r},easeInExpo:function(o,n,r,v,x){return n==0?r:v*Math.pow(2,10*(n/x-1))+r},easeOutExpo:function(o,n,r,v,x){return n==x?r+v:v*(-Math.pow(2,-10*n/x)+1)+r},easeInOutExpo:function(o,n,r,v,x){if(n==0)return r;if(n==x)return r+v;if((n/=x/2)<1)return v/2*Math.pow(2,10*(n-1))+r;return v/2*(-Math.pow(2,-10*--n)+2)+r},easeInCirc:function(o,n,r,v,x){return-v*(Math.sqrt(1-(n/=x)*n)-1)+r},easeOutCirc:function(o,n,r,v,x){return v*Math.sqrt(1-(n=n/x-1)*n)+r},easeInOutCirc:function(o,n,r,v,x){if((n/=x/2)<1)return-v/
2*(Math.sqrt(1-n*n)-1)+r;return v/2*(Math.sqrt(1-(n-=2)*n)+1)+r},easeInElastic:function(o,n,r,v,x){var z=0,j=v;if(n==0)return r;if((n/=x)==1)return r+v;z||(z=x*0.3);if(j<Math.abs(v)){j=v;o=z/4}else o=z/(2*Math.PI)*Math.asin(v/j);return-(j*Math.pow(2,10*(n-=1))*Math.sin((n*x-o)*2*Math.PI/z))+r},easeOutElastic:function(o,n,r,v,x){var z=0,j=v;if(n==0)return r;if((n/=x)==1)return r+v;z||(z=x*0.3);if(j<Math.abs(v)){j=v;o=z/4}else o=z/(2*Math.PI)*Math.asin(v/j);return j*Math.pow(2,-10*n)*Math.sin((n*x-
o)*2*Math.PI/z)+v+r},easeInOutElastic:function(o,n,r,v,x){var z=0,j=v;if(n==0)return r;if((n/=x/2)==2)return r+v;z||(z=x*0.3*1.5);if(j<Math.abs(v)){j=v;o=z/4}else o=z/(2*Math.PI)*Math.asin(v/j);if(n<1)return-0.5*j*Math.pow(2,10*(n-=1))*Math.sin((n*x-o)*2*Math.PI/z)+r;return j*Math.pow(2,-10*(n-=1))*Math.sin((n*x-o)*2*Math.PI/z)*0.5+v+r},easeInBack:function(o,n,r,v,x,z){if(z==a)z=1.70158;return v*(n/=x)*n*((z+1)*n-z)+r},easeOutBack:function(o,n,r,v,x,z){if(z==a)z=1.70158;return v*((n=n/x-1)*n*((z+
1)*n+z)+1)+r},easeInOutBack:function(o,n,r,v,x,z){if(z==a)z=1.70158;if((n/=x/2)<1)return v/2*n*n*(((z*=1.525)+1)*n-z)+r;return v/2*((n-=2)*n*(((z*=1.525)+1)*n+z)+2)+r},easeInBounce:function(o,n,r,v,x){return v-b.easing.easeOutBounce(o,x-n,0,v,x)+r},easeOutBounce:function(o,n,r,v,x){return(n/=x)<1/2.75?v*7.5625*n*n+r:n<2/2.75?v*(7.5625*(n-=1.5/2.75)*n+0.75)+r:n<2.5/2.75?v*(7.5625*(n-=2.25/2.75)*n+0.9375)+r:v*(7.5625*(n-=2.625/2.75)*n+0.984375)+r},easeInOutBounce:function(o,n,r,v,x){if(n<x/2)return b.easing.easeInBounce(o,
n*2,0,v,x)*0.5+r;return b.easing.easeOutBounce(o,n*2-x,0,v,x)*0.5+v*0.5+r}})}(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,a,c,d,e){return jQuery.easing[jQuery.easing.def](b,a,c,d,e)},easeInQuad:function(b,a,c,d,e){return d*(a/=e)*a+c},easeOutQuad:function(b,a,c,d,e){return-d*(a/=e)*(a-2)+c},easeInOutQuad:function(b,a,c,d,e){if((a/=e/2)<1)return d/2*a*a+c;return-d/2*(--a*(a-2)-1)+c},easeInCubic:function(b,a,c,d,e){return d*(a/=e)*a*a+c},easeOutCubic:function(b,a,c,d,e){return d*((a=a/e-1)*a*a+1)+c},easeInOutCubic:function(b,a,c,d,e){if((a/=e/2)<1)return d/
2*a*a*a+c;return d/2*((a-=2)*a*a+2)+c},easeInQuart:function(b,a,c,d,e){return d*(a/=e)*a*a*a+c},easeOutQuart:function(b,a,c,d,e){return-d*((a=a/e-1)*a*a*a-1)+c},easeInOutQuart:function(b,a,c,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+c;return-d/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(b,a,c,d,e){return d*(a/=e)*a*a*a*a+c},easeOutQuint:function(b,a,c,d,e){return d*((a=a/e-1)*a*a*a*a+1)+c},easeInOutQuint:function(b,a,c,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+c;return d/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(b,
a,c,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+c},easeOutSine:function(b,a,c,d,e){return d*Math.sin(a/e*(Math.PI/2))+c},easeInOutSine:function(b,a,c,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+c},easeInExpo:function(b,a,c,d,e){return a==0?c:d*Math.pow(2,10*(a/e-1))+c},easeOutExpo:function(b,a,c,d,e){return a==e?c+d:d*(-Math.pow(2,-10*a/e)+1)+c},easeInOutExpo:function(b,a,c,d,e){if(a==0)return c;if(a==e)return c+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+c;return d/2*(-Math.pow(2,-10*--a)+2)+c},
easeInCirc:function(b,a,c,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+c},easeOutCirc:function(b,a,c,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+c},easeInOutCirc:function(b,a,c,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+c;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(b,a,c,d,e){b=1.70158;var h=0,i=d;if(a==0)return c;if((a/=e)==1)return c+d;h||(h=e*0.3);if(i<Math.abs(d)){i=d;b=h/4}else b=h/(2*Math.PI)*Math.asin(d/i);return-(i*Math.pow(2,10*(a-=1))*Math.sin((a*e-b)*2*Math.PI/h))+c},easeOutElastic:function(b,
a,c,d,e){b=1.70158;var h=0,i=d;if(a==0)return c;if((a/=e)==1)return c+d;h||(h=e*0.3);if(i<Math.abs(d)){i=d;b=h/4}else b=h/(2*Math.PI)*Math.asin(d/i);return i*Math.pow(2,-10*a)*Math.sin((a*e-b)*2*Math.PI/h)+d+c},easeInOutElastic:function(b,a,c,d,e){b=1.70158;var h=0,i=d;if(a==0)return c;if((a/=e/2)==2)return c+d;h||(h=e*0.3*1.5);if(i<Math.abs(d)){i=d;b=h/4}else b=h/(2*Math.PI)*Math.asin(d/i);if(a<1)return-0.5*i*Math.pow(2,10*(a-=1))*Math.sin((a*e-b)*2*Math.PI/h)+c;return i*Math.pow(2,-10*(a-=1))*Math.sin((a*
e-b)*2*Math.PI/h)*0.5+d+c},easeInBack:function(b,a,c,d,e,h){if(h==undefined)h=1.70158;return d*(a/=e)*a*((h+1)*a-h)+c},easeOutBack:function(b,a,c,d,e,h){if(h==undefined)h=1.70158;return d*((a=a/e-1)*a*((h+1)*a+h)+1)+c},easeInOutBack:function(b,a,c,d,e,h){if(h==undefined)h=1.70158;if((a/=e/2)<1)return d/2*a*a*(((h*=1.525)+1)*a-h)+c;return d/2*((a-=2)*a*(((h*=1.525)+1)*a+h)+2)+c},easeInBounce:function(b,a,c,d,e){return d-jQuery.easing.easeOutBounce(b,e-a,0,d,e)+c},easeOutBounce:function(b,a,c,d,e){return(a/=
e)<1/2.75?d*7.5625*a*a+c:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(b,a,c,d,e){if(a<e/2)return jQuery.easing.easeInBounce(b,a*2,0,d,e)*0.5+c;return jQuery.easing.easeOutBounce(b,a*2-e,0,d,e)*0.5+d*0.5+c}});
(function(b){function a(){this._boxes=[];this._capturingMouse=false}function c(e){this._$element=null;this._hovered=false;this._y2=this._x2=this._y1=this._x1=this._outCb=this._inCb=null;for(var h in e)this[h]=e[h]}a.create=function(){return new a};a.prototype.init=function(e,h,i){var l=this;e.each(function(){var p=c.create(this,h,i);l.addBox(p)})};a.prototype._captureMouseMove=function(){if(this._boxes.length){if(!this._capturingMouse){var e=this;b(document).bind("mousemove.flashHover",function(h){e._notifyBoxes(h.pageX,
h.pageY)});this._capturingMouse=true}}else{b(window).unbind("mousemove.flashHover");this._capturingMouse=false}};a.prototype._notifyBoxes=function(e,h){for(var i=0;i<this._boxes.length;i++)this._boxes[i].notify(e,h)};a.prototype.addBox=function(e){this._boxes.push(e);this._captureMouseMove()};a.prototype.refresh=function(){for(var e=0;e<this._boxes.length;e++)this._boxes[e].refreshPosition()};c.create=function(e,h,i){e=new c({_$element:b(e),_inCb:h,_outCb:i});e.refreshPosition();return e};c.prototype.refreshPosition=
function(){var e=this._$element.offset();this._x1=e.left;this._y1=e.top;this._x2=this._x1+this._$element.outerWidth();this._y2=this._y1+this._$element.outerHeight()};c.prototype.inBox=function(e,h){if(e<this._x1||e>this._x2)return false;if(h<this._y1||h>this._y2)return false;return true};c.prototype.notify=function(e,h){var i=this.inBox(e,h);if(i&&!this._hovered){this._inCb.call(this._$element[0]);this._hovered=true}else if(!i&&this._hovered){this._outCb.call(this._$element[0]);this._hovered=false}};
var d;b.fn.flashHover=function(e){d||(d=a.create());e=Array.prototype.slice.call(arguments);var h=typeof e[0]==="string"?e.shift():"init";e.unshift(this);d[h].apply(d,e)}})(jQuery);
var swfobject=function(){function b(){if(!xa){try{var H=W.getElementsByTagName("body")[0].appendChild(W.createElement("span"));H.parentNode.removeChild(H)}catch(M){return}xa=true;H=G.length;for(var R=0;R<H;R++)G[R]()}}function a(H){if(xa)H();else G[G.length]=H}function c(H){if(typeof ra.addEventListener!=da)ra.addEventListener("load",H,false);else if(typeof W.addEventListener!=da)W.addEventListener("load",H,false);else if(typeof ra.attachEvent!=da)v(ra,"onload",H);else if(typeof ra.onload=="function"){var M=
ra.onload;ra.onload=function(){M();H()}}else ra.onload=H}function d(){var H=W.getElementsByTagName("body")[0],M=W.createElement(B);M.setAttribute("type",ka);var R=H.appendChild(M);if(R){var Y=0;(function(){if(typeof R.GetVariable!=da){var ca=R.GetVariable("$version");if(ca){ca=ca.split(" ")[1].split(",");aa.pv=[parseInt(ca[0],10),parseInt(ca[1],10),parseInt(ca[2],10)]}}else if(Y<10){Y++;setTimeout(arguments.callee,10);return}H.removeChild(M);R=null;e()})()}else e()}function e(){var H=y.length;if(H>
0)for(var M=0;M<H;M++){var R=y[M].id,Y=y[M].callbackFn,ca={success:false,id:R};if(aa.pv[0]>0){var na=r(R);if(na)if(x(y[M].swfVersion)&&!(aa.wk&&aa.wk<312)){j(R,true);if(Y){ca.success=true;ca.ref=h(R);Y(ca)}}else if(y[M].expressInstall&&i()){ca={};ca.data=y[M].expressInstall;ca.width=na.getAttribute("width")||"0";ca.height=na.getAttribute("height")||"0";if(na.getAttribute("class"))ca.styleclass=na.getAttribute("class");if(na.getAttribute("align"))ca.align=na.getAttribute("align");var ja={};na=na.getElementsByTagName("param");
for(var qa=na.length,oa=0;oa<qa;oa++)if(na[oa].getAttribute("name").toLowerCase()!="movie")ja[na[oa].getAttribute("name")]=na[oa].getAttribute("value");l(ca,ja,R,Y)}else{p(na);Y&&Y(ca)}}else{j(R,true);if(Y){if((R=h(R))&&typeof R.SetVariable!=da){ca.success=true;ca.ref=R}Y(ca)}}}}function h(H){var M=null;if((H=r(H))&&H.nodeName=="OBJECT")if(typeof H.SetVariable!=da)M=H;else if(H=H.getElementsByTagName(B)[0])M=H;return M}function i(){return!Fa&&x("6.0.65")&&(aa.win||aa.mac)&&!(aa.wk&&aa.wk<312)}function l(H,
M,R,Y){Fa=true;Ia=Y||null;Ea={success:false,id:R};var ca=r(R);if(ca){if(ca.nodeName=="OBJECT"){V=t(ca);ma=null}else{V=ca;ma=R}H.id=Aa;if(typeof H.width==da||!/%$/.test(H.width)&&parseInt(H.width,10)<310)H.width="310";if(typeof H.height==da||!/%$/.test(H.height)&&parseInt(H.height,10)<137)H.height="137";W.title=W.title.slice(0,47)+" - Flash Player Installation";Y=aa.ie&&aa.win?"ActiveX":"PlugIn";Y="MMredirectURL="+ra.location.toString().replace(/&/g,"%26")+"&MMplayerType="+Y+"&MMdoctitle="+W.title;
if(typeof M.flashvars!=da)M.flashvars+="&"+Y;else M.flashvars=Y;if(aa.ie&&aa.win&&ca.readyState!=4){Y=W.createElement("div");R+="SWFObjectNew";Y.setAttribute("id",R);ca.parentNode.insertBefore(Y,ca);ca.style.display="none";(function(){ca.readyState==4?ca.parentNode.removeChild(ca):setTimeout(arguments.callee,10)})()}o(H,M,R)}}function p(H){if(aa.ie&&aa.win&&H.readyState!=4){var M=W.createElement("div");H.parentNode.insertBefore(M,H);M.parentNode.replaceChild(t(H),M);H.style.display="none";(function(){H.readyState==
4?H.parentNode.removeChild(H):setTimeout(arguments.callee,10)})()}else H.parentNode.replaceChild(t(H),H)}function t(H){var M=W.createElement("div");if(aa.win&&aa.ie)M.innerHTML=H.innerHTML;else if(H=H.getElementsByTagName(B)[0])if(H=H.childNodes)for(var R=H.length,Y=0;Y<R;Y++)!(H[Y].nodeType==1&&H[Y].nodeName=="PARAM")&&H[Y].nodeType!=8&&M.appendChild(H[Y].cloneNode(true));return M}function o(H,M,R){var Y,ca=r(R);if(aa.wk&&aa.wk<312)return Y;if(ca){if(typeof H.id==da)H.id=R;if(aa.ie&&aa.win){var na=
"",ja;for(ja in H)if(H[ja]!=Object.prototype[ja])if(ja.toLowerCase()=="data")M.movie=H[ja];else if(ja.toLowerCase()=="styleclass")na+=' class="'+H[ja]+'"';else if(ja.toLowerCase()!="classid")na+=" "+ja+'="'+H[ja]+'"';ja="";for(var qa in M)if(M[qa]!=Object.prototype[qa])ja+='<param name="'+qa+'" value="'+M[qa]+'" />';ca.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+na+">"+ja+"</object>";E[E.length]=H.id;Y=r(H.id)}else{qa=W.createElement(B);qa.setAttribute("type",ka);for(var oa in H)if(H[oa]!=
Object.prototype[oa])if(oa.toLowerCase()=="styleclass")qa.setAttribute("class",H[oa]);else oa.toLowerCase()!="classid"&&qa.setAttribute(oa,H[oa]);for(na in M)if(M[na]!=Object.prototype[na]&&na.toLowerCase()!="movie"){H=qa;ja=na;oa=M[na];R=W.createElement("param");R.setAttribute("name",ja);R.setAttribute("value",oa);H.appendChild(R)}ca.parentNode.replaceChild(qa,ca);Y=qa}}return Y}function n(H){var M=r(H);if(M&&M.nodeName=="OBJECT")if(aa.ie&&aa.win){M.style.display="none";(function(){if(M.readyState==
4){var R=r(H);if(R){for(var Y in R)if(typeof R[Y]=="function")R[Y]=null;R.parentNode.removeChild(R)}}else setTimeout(arguments.callee,10)})()}else M.parentNode.removeChild(M)}function r(H){var M=null;try{M=W.getElementById(H)}catch(R){}return M}function v(H,M,R){H.attachEvent(M,R);P[P.length]=[H,M,R]}function x(H){var M=aa.pv;H=H.split(".");H[0]=parseInt(H[0],10);H[1]=parseInt(H[1],10)||0;H[2]=parseInt(H[2],10)||0;return M[0]>H[0]||M[0]==H[0]&&M[1]>H[1]||M[0]==H[0]&&M[1]==H[1]&&M[2]>=H[2]?true:false}
function z(H,M,R,Y){if(!(aa.ie&&aa.mac)){var ca=W.getElementsByTagName("head")[0];if(ca){R=R&&typeof R=="string"?R:"screen";if(Y)ha=ya=null;if(!ya||ha!=R){Y=W.createElement("style");Y.setAttribute("type","text/css");Y.setAttribute("media",R);ya=ca.appendChild(Y);if(aa.ie&&aa.win&&typeof W.styleSheets!=da&&W.styleSheets.length>0)ya=W.styleSheets[W.styleSheets.length-1];ha=R}if(aa.ie&&aa.win)ya&&typeof ya.addRule==B&&ya.addRule(H,M);else ya&&typeof W.createTextNode!=da&&ya.appendChild(W.createTextNode(H+
" {"+M+"}"))}}}function j(H,M){if(pa){var R=M?"visible":"hidden";if(xa&&r(H))r(H).style.visibility=R;else z("#"+H,"visibility:"+R)}}function O(H){return/[\\\"<>\.;]/.exec(H)!=null&&typeof encodeURIComponent!=da?encodeURIComponent(H):H}var da="undefined",B="object",ka="application/x-shockwave-flash",Aa="SWFObjectExprInst",ra=window,W=document,za=navigator,u=false,G=[function(){u?d():e()}],y=[],E=[],P=[],V,ma,Ia,Ea,xa=false,Fa=false,ya,ha,pa=true,aa=function(){var H=typeof W.getElementById!=da&&typeof W.getElementsByTagName!=
da&&typeof W.createElement!=da,M=za.userAgent.toLowerCase(),R=za.platform.toLowerCase(),Y=R?/win/.test(R):/win/.test(M);R=R?/mac/.test(R):/mac/.test(M);M=/webkit/.test(M)?parseFloat(M.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;var ca=!+"\u000b1",na=[0,0,0],ja=null;if(typeof za.plugins!=da&&typeof za.plugins["Shockwave Flash"]==B){if((ja=za.plugins["Shockwave Flash"].description)&&!(typeof za.mimeTypes!=da&&za.mimeTypes[ka]&&!za.mimeTypes[ka].enabledPlugin)){u=true;ca=false;ja=ja.replace(/^.*\s+(\S+\s+\S+$)/,
"$1");na[0]=parseInt(ja.replace(/^(.*)\..*$/,"$1"),10);na[1]=parseInt(ja.replace(/^.*\.(.*)\s.*$/,"$1"),10);na[2]=/[a-zA-Z]/.test(ja)?parseInt(ja.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof ra.ActiveXObject!=da)try{var qa=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(qa)if(ja=qa.GetVariable("$version")){ca=true;ja=ja.split(" ")[1].split(",");na=[parseInt(ja[0],10),parseInt(ja[1],10),parseInt(ja[2],10)]}}catch(oa){}return{w3:H,pv:na,wk:M,ie:ca,win:Y,mac:R}}();(function(){if(aa.w3){if(typeof W.readyState!=
da&&W.readyState=="complete"||typeof W.readyState==da&&(W.getElementsByTagName("body")[0]||W.body))b();if(!xa){typeof W.addEventListener!=da&&W.addEventListener("DOMContentLoaded",b,false);if(aa.ie&&aa.win){W.attachEvent("onreadystatechange",function(){if(W.readyState=="complete"){W.detachEvent("onreadystatechange",arguments.callee);b()}});ra==top&&function(){if(!xa){try{W.documentElement.doScroll("left")}catch(H){setTimeout(arguments.callee,0);return}b()}}()}aa.wk&&function(){xa||(/loaded|complete/.test(W.readyState)?
b():setTimeout(arguments.callee,0))}();c(b)}}})();(function(){aa.ie&&aa.win&&window.attachEvent("onunload",function(){for(var H=P.length,M=0;M<H;M++)P[M][0].detachEvent(P[M][1],P[M][2]);H=E.length;for(M=0;M<H;M++)n(E[M]);for(var R in aa)aa[R]=null;aa=null;for(var Y in swfobject)swfobject[Y]=null;swfobject=null})})();return{registerObject:function(H,M,R,Y){if(aa.w3&&H&&M){var ca={};ca.id=H;ca.swfVersion=M;ca.expressInstall=R;ca.callbackFn=Y;y[y.length]=ca;j(H,false)}else Y&&Y({success:false,id:H})},
getObjectById:function(H){if(aa.w3)return h(H)},embedSWF:function(H,M,R,Y,ca,na,ja,qa,oa,La){var Pa={success:false,id:M};if(aa.w3&&!(aa.wk&&aa.wk<312)&&H&&M&&R&&Y&&ca){j(M,false);a(function(){R+="";Y+="";var wa={};if(oa&&typeof oa===B)for(var Ha in oa)wa[Ha]=oa[Ha];wa.data=H;wa.width=R;wa.height=Y;Ha={};if(qa&&typeof qa===B)for(var Ma in qa)Ha[Ma]=qa[Ma];if(ja&&typeof ja===B)for(var Ra in ja)if(typeof Ha.flashvars!=da)Ha.flashvars+="&"+Ra+"="+ja[Ra];else Ha.flashvars=Ra+"="+ja[Ra];if(x(ca)){Ma=o(wa,
Ha,M);wa.id==M&&j(M,true);Pa.success=true;Pa.ref=Ma}else if(na&&i()){wa.data=na;l(wa,Ha,M,La);return}else j(M,true);La&&La(Pa)})}else La&&La(Pa)},switchOffAutoHideShow:function(){pa=false},ua:aa,getFlashPlayerVersion:function(){return{major:aa.pv[0],minor:aa.pv[1],release:aa.pv[2]}},hasFlashPlayerVersion:x,createSWF:function(H,M,R){if(aa.w3)return o(H,M,R)},showExpressInstall:function(H,M,R,Y){aa.w3&&i()&&l(H,M,R,Y)},removeSWF:function(H){aa.w3&&n(H)},createCSS:function(H,M,R,Y){aa.w3&&z(H,M,R,Y)},
addDomLoadEvent:a,addLoadEvent:c,getQueryParamValue:function(H){var M=W.location.search||W.location.hash;if(M){if(/\?/.test(M))M=M.split("?")[1];if(H==null)return O(M);M=M.split("&");for(var R=0;R<M.length;R++)if(M[R].substring(0,M[R].indexOf("="))==H)return O(M[R].substring(M[R].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Fa){var H=r(Aa);if(H&&V){H.parentNode.replaceChild(V,H);if(ma){j(ma,true);if(aa.ie&&aa.win)V.style.display="block"}Ia&&Ia(Ea)}Fa=false}}}}();
this.JSON||(JSON={});
(function(){function b(t){return t<10?"0"+t:t}function a(t){e.lastIndex=0;return e.test(t)?'"'+t.replace(e,function(o){var n=l[o];return typeof n==="string"?n:"\\u"+("0000"+o.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function c(t,o){var n,r,v,x,z=h,j,O=o[t];if(O&&typeof O==="object"&&typeof O.toJSON==="function")O=O.toJSON(t);if(typeof p==="function")O=p.call(o,t,O);switch(typeof O){case "string":return a(O);case "number":return isFinite(O)?String(O):"null";case "boolean":case "null":return String(O);case "object":if(!O)return"null";
h+=i;j=[];if(Object.prototype.toString.apply(O)==="[object Array]"){x=O.length;for(n=0;n<x;n+=1)j[n]=c(n,O)||"null";v=j.length===0?"[]":h?"[\n"+h+j.join(",\n"+h)+"\n"+z+"]":"["+j.join(",")+"]";h=z;return v}if(p&&typeof p==="object"){x=p.length;for(n=0;n<x;n+=1){r=p[n];if(typeof r==="string")if(v=c(r,O))j.push(a(r)+(h?": ":":")+v)}}else for(r in O)if(Object.hasOwnProperty.call(O,r))if(v=c(r,O))j.push(a(r)+(h?": ":":")+v);v=j.length===0?"{}":h?"{\n"+h+j.join(",\n"+h)+"\n"+z+"}":"{"+j.join(",")+"}";
h=z;return v}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z"};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
h,i,l={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},p;if(typeof JSON.stringify!=="function")JSON.stringify=function(t,o,n){var r;i=h="";if(typeof n==="number")for(r=0;r<n;r+=1)i+=" ";else if(typeof n==="string")i=n;if((p=o)&&typeof o!=="function"&&(typeof o!=="object"||typeof o.length!=="number"))throw Error("JSON.stringify");return c("",{"":t})};if(typeof JSON.parse!=="function")JSON.parse=function(t,o){function n(v,x){var z,j,O=v[x];if(O&&typeof O==="object")for(z in O)if(Object.hasOwnProperty.call(O,
z)){j=n(O,z);if(j!==undefined)O[z]=j;else delete O[z]}return o.call(v,x,O)}var r;d.lastIndex=0;if(d.test(t))t=t.replace(d,function(v){return"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(t.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){r=eval("("+t+")");return typeof o==="function"?n({"":r},""):r}throw new SyntaxError("JSON.parse");}})();
window.jwplayer=function(b){return jwplayer.constructor(b)};jwplayer.constructor=function(){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(b){var a=typeof b;if(a==="object")if(b){if(b instanceof Array)a="array"}else a="null";return a};jwplayer.utils.extend=function(){var b=jwplayer.utils.extend.arguments;if(b.length>1){for(var a=1;a<b.length;a++)for(element in b[a])b[0][element]=b[a][element];return b[0]}return null};
jwplayer.utils.extension=function(b){return b.substr(b.lastIndexOf(".")+1,b.length).toLowerCase()};jwplayer.utils.html=function(b,a){b.innerHTML=a};jwplayer.utils.append=function(b,a){b.appendChild(a)};jwplayer.utils.wrap=function(b,a){b.parentNode.replaceChild(a,b);a.appendChild(b)};
jwplayer.utils.ajax=function(b,a,c){var d;d=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200)a&&a(d);else c&&c(b)};d.open("GET",b,true);d.send(null);return d};jwplayer.utils.load=function(b,a,c){b.onreadystatechange=function(){if(b.readyState===4)if(b.status===200)a&&a();else c&&c()}};jwplayer.utils.find=function(b,a){return b.getElementsByTagName(a)};jwplayer.utils.append=function(b,a){b.appendChild(a)};
jwplayer.utils.isIE=function(){return!+"\u000b1"};jwplayer.utils.isIOS=function(){return navigator.userAgent.toLowerCase().match(/iP(hone|ad)/i)!==null};
jwplayer.utils.hasHTML5=function(b){var a=document.createElement("video");if(a.canPlayType)if(b){var c={};if(b.playlist&&b.playlist.length){c.file=b.playlist[0].file;c.levels=b.playlist[0].levels}else{c.file=b.file;c.levels=b.levels}if(c.file)return jwplayer.utils.vidCanPlay(a,c.file);else if(c.levels&&c.levels.length)for(b=0;b<c.levels.length;b++)if(c.levels[b].file&&jwplayer.utils.vidCanPlay(a,c.levels[b].file))return true}else return true;return false};
jwplayer.utils.vidCanPlay=function(b,a){var c=jwplayer.utils.strings.extension(a);sourceType=jwplayer.utils.extensionmap[c]!==undefined?jwplayer.utils.extensionmap[c]:"video/"+c+";";return b.canPlayType(sourceType)||a.toLowerCase().indexOf("youtube.com")>-1};jwplayer.utils.hasFlash=function(){return typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"||typeof window.ActiveXObject!="undefined"};
(function(b){function a(l,p){if(p===undefined)p=h[l];else b.utils.extend(p,h[l]);return p}function c(l,p){if(i[l.tagName.toLowerCase()]&&p===undefined)return i[l.tagName.toLowerCase()](l);else{p=a("element",p);var t={},o;for(o in p)if(o!="length"){var n=l.getAttribute(o);n===""||n===undefined||n===null||(t[p[o]]=l.getAttribute(o))}if((o=l.style["#background-color"])&&!(o=="transparent"||o=="rgba(0, 0, 0, 0)"))t.screencolor=o;return t}}function d(l,p){p=a("media",p);var t=[];if(b.utils.isIE()){var o=
l.nextSibling;if(o!==undefined)for(;o.tagName.toLowerCase()=="source";){t.push(e(o));o=o.nextSibling}}else{o=b.utils.selectors("source",l);for(var n in o)isNaN(n)||t.push(e(o[n]))}o=c(l,p);if(o.file!==undefined)t[0]={file:o.file};o.levels=t;return o}function e(l,p){p=a("source",p);var t=c(l,p);t.width=t.width?t.width:0;t.bitrate=t.bitrate?t.bitrate:0;return t}b.utils.mediaparser=function(){};var h={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",
autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}},i={};b.utils.mediaparser.parseMedia=function(l){return c(l)};b.utils.mediaparser.replaceMediaElement=function(l,p){if(b.utils.isIE()){for(var t=false,o=[],n=l.nextSibling;n&&!t;){o.push(n);if(n.nodeType==1&&n.tagName.toLowerCase()=="/"+l.tagName.toLowerCase())t=true;n=n.nextSibling}if(t)for(;o.length>0;){t=o.pop();t.parentNode.removeChild(t)}l.outerHTML=
p}};i.media=d;i.audio=d;i.source=e;i.video=function(l,p){p=a("video",p);return d(l,p)}})(jwplayer);
jwplayer.utils.selectors=function(b,a){if(a===undefined)a=document;b=jwplayer.utils.strings.trim(b);var c=b.charAt(0);if(c=="#")return a.getElementById(b.substr(1));else if(c==".")return a.getElementsByClassName?a.getElementsByClassName(b.substr(1)):jwplayer.utils.selectors.getElementsByTagAndClass("*",b.substr(1));else if(b.indexOf(".")>0){selectors=b.split(".");return jwplayer.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])}else return a.getElementsByTagName(b)};
jwplayer.utils.selectors.getElementsByTagAndClass=function(b,a,c){elements=[];if(c===undefined)c=document;b=c.getElementsByTagName(b);for(c=0;c<b.length;c++)if(b[c].className!==undefined)for(var d=b[c].className.split(" "),e=0;e<d.length;e++)d[e]==a&&elements.push(b[c]);return elements};jwplayer.utils.strings=function(){};jwplayer.utils.strings.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};jwplayer.utils.strings.extension=function(b){return b.substr(b.lastIndexOf(".")+1,b.length).toLowerCase()};
(function(b){b.utils.extensionmap={"3gp":"video/3gpp","3gpp":"video/3gpp","3g2":"video/3gpp2","3gpp2":"video/3gpp2",flv:"video/x-flv",f4a:"audio/mp4",f4b:"audio/mp4",f4p:"video/mp4",f4v:"video/mp4",mov:"video/quicktime",m4a:"audio/mp4",m4b:"audio/mp4",m4p:"audio/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp4:"video/mp4",sdp:"application/sdp",vp6:"video/x-vp6",aac:"audio/aac",mp3:"audio/mp3",ogg:"audio/ogg",ogv:"video/ogg",webm:"video/webm"}})(jwplayer);
(function(b){var a=[];b.constructor=function(c){return b.api.selectPlayer(c)};b.api=function(){};b.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",
JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};b.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};b.api.PlayerAPI=function(c){function d(r){return function(v){var x=v.newstate;v=v.oldstate;if(x==r){var z=h[x];
if(z)for(var j in z)typeof z[j]=="function"&&z[j].call(this,{oldstate:v,newstate:x})}}}this.container=c;this.id=c.id;var e={},h={},i=undefined,l=false,p=[],t=c.outerHTML,o={},n=0;this.setPlayer=function(r){i=r};this.stateListener=function(r,v){if(!h[r]){h[r]=[];this.eventListener(b.api.events.JWPLAYER_PLAYER_STATE,d(r))}h[r].push(v);return this};this.addInternalListener=function(r,v){r.jwAddEventListener(v,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+v+'", dat); }')};this.eventListener=
function(r,v){if(!e[r]){e[r]=[];i&&l&&this.addInternalListener(i,r)}e[r].push(v);return this};this.dispatchEvent=function(r,v){if(e[r]){var x;x=b.utils.extend({},v);if(r==b.api.events.JWPLAYER_FULLSCREEN){x.fullscreen=x.message;delete x.message}else if(r==b.api.events.JWPLAYER_PLAYLIST_ITEM){if(x.item&&x.index===undefined){x.index=x.item;delete x.item}}else if(typeof x.data=="object"){x=b.utils.extend(x,x.data);delete x.data}x=x;for(var z in e[r])typeof e[r][z]=="function"&&e[r][z].call(this,x)}};
this.callInternal=function(r,v){if(l){if(typeof i!="undefined"&&typeof i[r]=="function")return v!==undefined?i[r](v):i[r]();return null}else p.push({method:r,parameters:v})};this.playerReady=function(r){l=true;i||this.setPlayer(document.getElementById(r.id));this.container=document.getElementById(this.id);for(var v in e)this.addInternalListener(i,v);this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,function(x){if(x.index!==undefined)n=x.index;else if(x.item!==undefined)n=x.item;o={}});this.eventListener(b.api.events.JWPLAYER_MEDIA_META,
function(x){b.utils.extend(o,x.metadata)});for(this.dispatchEvent(b.api.events.API_READY);p.length>0;){r=p.shift();this.callInternal(r.method,r.parameters)}};this.getItemMeta=function(){return o};this.getCurrentItem=function(){return n};this.destroy=function(){e={};p=[];this.container.outerHTML!=t&&b.api.destroyPlayer(this.id,t)}};b.api.PlayerAPI.prototype={container:undefined,options:undefined,id:undefined,getBuffer:function(){return this.callInternal("jwGetBuffer")},getDuration:function(){return this.callInternal("jwGetDuration")},
getFullscreen:function(){return this.callInternal("jwGetFullscreen")},getHeight:function(){return this.callInternal("jwGetHeight")},getLockState:function(){return this.callInternal("jwGetLockState")},getMeta:function(){return this.getItemMeta()},getMute:function(){return this.callInternal("jwGetMute")},getPlaylist:function(){for(var c=this.callInternal("jwGetPlaylist"),d=0;d<c.length;d++)if(c[d].index===undefined)c[d].index=d;return c},getPlaylistItem:function(c){if(c==undefined)c=this.getCurrentItem();
return this.getPlaylist()[c]},getPosition:function(){return this.callInternal("jwGetPosition")},getState:function(){return this.callInternal("jwGetState")},getVolume:function(){return this.callInternal("jwGetVolume")},getWidth:function(){return this.callInternal("jwGetWidth")},setFullscreen:function(c){c===undefined?this.callInternal("jwSetFullscreen",true):this.callInternal("jwSetFullscreen",c);return this},setMute:function(c){c===undefined?this.callInternal("jwSetMute",true):this.callInternal("jwSetMute",
c);return this},lock:function(){return this},unlock:function(){return this},load:function(c){this.callInternal("jwLoad",c);return this},playlistItem:function(c){this.callInternal("jwPlaylistItem",c);return this},playlistPrev:function(){this.callInternal("jwPlaylistPrev");return this},playlistNext:function(){this.callInternal("jwPlaylistNext");return this},resize:function(c,d){this.container.width=c;this.container.height=d;return this},play:function(c){if(typeof c==="undefined"){c=this.getState();
c==b.api.events.state.PLAYING||c==b.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")}else this.callInternal("jwPlay",c);return this},pause:function(){switch(this.getState()){case b.api.events.state.PLAYING:case b.api.events.state.BUFFERING:this.callInternal("jwPause");break;case b.api.events.state.PAUSED:this.callInternal("jwPlay")}return this},stop:function(){this.callInternal("jwStop");return this},seek:function(c){this.callInternal("jwSeek",c);return this},setVolume:function(c){this.callInternal("jwSetVolume",
c);return this},onBufferChange:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER,c)},onBufferFull:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_BUFFER_FULL,c)},onError:function(c){return this.eventListener(b.api.events.JWPLAYER_ERROR,c)},onFullscreen:function(c){return this.eventListener(b.api.events.JWPLAYER_FULLSCREEN,c)},onMeta:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_META,c)},onMute:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_MUTE,
c)},onPlaylist:function(c){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,c)},onPlaylistItem:function(c){return this.eventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,c)},onReady:function(c){return this.eventListener(b.api.events.API_READY,c)},onResize:function(c){return this.eventListener(b.api.events.JWPLAYER_RESIZE,c)},onComplete:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_COMPLETE,c)},onTime:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_TIME,
c)},onVolume:function(c){return this.eventListener(b.api.events.JWPLAYER_MEDIA_VOLUME,c)},onBuffer:function(c){return this.stateListener(b.api.events.state.BUFFERING,c)},onPause:function(c){return this.stateListener(b.api.events.state.PAUSED,c)},onPlay:function(c){return this.stateListener(b.api.events.state.PLAYING,c)},onIdle:function(c){return this.stateListener(b.api.events.state.IDLE,c)},setup:function(){return this},remove:function(){this.destroy()},initializePlugin:function(){return this}};
b.api.selectPlayer=function(c){var d;if(c==undefined)c=0;if(c.nodeType)d=c;else if(typeof c=="string")d=document.getElementById(c);if(d)return(c=b.api.playerById(d.id))?c:b.api.addPlayer(new b.api.PlayerAPI(d));else if(typeof c=="number")return b.getPlayers()[c];return null};b.api.playerById=function(c){for(var d in a)if(a[d].id==c)return a[d];return null};b.api.addPlayer=function(c){for(var d in a)if(a[d]==c)return c;a.push(c);return c};b.api.destroyPlayer=function(c,d){var e=-1,h;for(h in a)if(a[h].id==
c)e=h;if(e>=0){if(h=document.getElementById(a[e].id))if(d)h.outerHTML=d;else{var i=document.createElement("div");i.setAttribute("id",h.id);h.parentNode.replaceChild(i,h)}a.splice(e,1)}return null};b.getPlayers=function(){return a.slice(0)}})(jwplayer);var _userPlayerReady=typeof playerReady=="function"?playerReady:undefined;playerReady=function(b){var a=jwplayer.api.playerById(b.id);a&&a.playerReady(b);_userPlayerReady&&_userPlayerReady.call(this,b)};
(function(b){function a(){if(!document.body)return setTimeout(a,15);for(var c=b.utils.selectors.getElementsByTagAndClass("video","jwplayer"),d=0;d<c.length;d++)b(c[d].id).setup({players:[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"}]})}b.embed=function(){};b.embed.Embedder=function(c){this.constructor(c)};b.embed.defaults={width:400,height:300,players:[{type:"flash",src:"player.swf"},{type:"html5"}],components:{controlbar:{position:"over"}}};b.embed.Embedder.prototype={config:undefined,
api:undefined,events:{},players:undefined,constructor:function(c){this.api=c;c=b.utils.mediaparser.parseMedia(this.api.container);this.config=this.parseConfig(b.utils.extend({},b.embed.defaults,c,this.api.config))},embedPlayer:function(){var c=this.players[0];if(c&&c.type)switch(c.type){case "flash":if(b.utils.hasFlash()){if(this.config.file&&!this.config.provider)switch(b.utils.extension(this.config.file).toLowerCase()){case "webm":case "ogv":case "ogg":this.config.provider="video"}if(this.config.levels||
this.config.playlist)this.api.onReady(this.loadAfterReady(this.config));this.config.id=this.api.id;c=b.embed.embedFlash(document.getElementById(this.api.id),c,this.config);this.api.container=c;this.api.setPlayer(c)}else{this.players.splice(0,1);return this.embedPlayer()}break;case "html5":if(b.utils.hasHTML5(this.config)){c=b.embed.embedHTML5(document.getElementById(this.api.id),c,this.config);this.api.container=document.getElementById(this.api.id);this.api.setPlayer(c)}else{this.players.splice(0,
1);return this.embedPlayer()}}else this.api.container.innerHTML="<p>No suitable players found</p>";this.setupEvents();return this.api},setupEvents:function(){for(evt in this.events)typeof this.api[evt]=="function"&&this.api[evt].call(this.api,this.events[evt])},loadAfterReady:function(c){return function(){if(c.playlist)this.load(c.playlist);else if(c.levels){var d=this.getPlaylistItem(0);d||(d={file:c.levels[0].file,provider:c.provider?c.provider:"video"});if(!d.image)d.image=c.image;d.levels=c.levels;
this.load(d)}}},parseConfig:function(c){c=b.utils.extend({},c);if(c.events){this.events=c.events;delete c.events}if(c.players){this.players=c.players;delete c.players}if(c.plugins)if(typeof c.plugins=="object")c=b.utils.extend(c,b.embed.parsePlugins(c.plugins));if(c.playlist&&typeof c.playlist==="string"&&!c["playlist.position"]){c["playlist.position"]=c.playlist;delete c.playlist}if(c.controlbar&&typeof c.controlbar==="string"&&!c["controlbar.position"]){c["controlbar.position"]=c.controlbar;delete c.controlbar}return c}};
b.embed.embedFlash=function(c,d,e){e=b.utils.extend({},e);var h=e.width;delete e.width;var i=e.height;delete e.height;delete e.levels;delete e.playlist;b.embed.parseConfigBlock(e,"components");b.embed.parseConfigBlock(e,"providers");if(b.utils.isIE()){h='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+h+'" height="'+i+'" id="'+c.id+'" name="'+c.id+'">';h+='<param name="movie" value="'+d.src+'">';h+='<param name="allowfullscreen" value="true">';h+='<param name="allowscriptaccess" value="always">';
h+='<param name="wmode" value="opaque">';h+='<param name="flashvars" value="'+b.embed.jsonToFlashvars(e)+'">';h+="</object>";if(c.tagName.toLowerCase()=="video")b.utils.mediaparser.replaceMediaElement(c,h);else c.outerHTML=h;return document.getElementById(c.id)}else{var l=document.createElement("object");l.setAttribute("type","application/x-shockwave-flash");l.setAttribute("data",d.src);l.setAttribute("width",h);l.setAttribute("height",i);l.setAttribute("id",c.id);l.setAttribute("name",c.id);b.embed.appendAttribute(l,
"allowfullscreen","true");b.embed.appendAttribute(l,"allowscriptaccess","always");b.embed.appendAttribute(l,"wmode","opaque");b.embed.appendAttribute(l,"flashvars",b.embed.jsonToFlashvars(e));c.parentNode.replaceChild(l,c);return l}};b.embed.embedHTML5=function(c,d,e){if(b.html5){c.innerHTML="";d=b.utils.extend({screencolor:"0x000000"},e);b.embed.parseConfigBlock(d,"components");if(d.levels&&!d.sources)d.sources=e.levels;if(d.skin&&d.skin.toLowerCase().indexOf(".zip")>0)d.skin=d.skin.replace(/\.zip/i,
".xml");return new (b.html5(c).setup)(d)}else return null};b.embed.appendAttribute=function(c,d,e){var h=document.createElement("param");h.setAttribute("name",d);h.setAttribute("value",e);c.appendChild(h)};b.embed.jsonToFlashvars=function(c){var d="";for(key in c)d+=key+"="+escape(c[key])+"&";return d.substring(0,d.length-1)};b.embed.parsePlugins=function(c){if(!c)return{};var d={},e=[];for(plugin in c){var h=plugin.indexOf("-")>0?plugin.substring(0,plugin.indexOf("-")):plugin,i=c[plugin];e.push(plugin);
for(param in i)d[h+"."+param]=i[param]}d.plugins=e.join(",");return d};b.embed.parseConfigBlock=function(c,d){if(c[d]){var e=c[d],h;for(h in e){var i=e[h];if(typeof i=="string")c[h]||(c[h]=i);else for(var l in i)c[h+"."+l]||(c[h+"."+l]=i[l])}delete c[d]}};b.api.PlayerAPI.prototype.setup=function(c,d){if(c&&c.flashplayer&&!c.players){c.players=[{type:"flash",src:c.flashplayer},{type:"html5"}];delete c.flashplayer}if(d&&!c.players)if(typeof d=="string")c.players=[{type:"flash",src:d}];else if(d instanceof
Array)c.players=d;else if(typeof d=="object"&&d.type)c.players=[d];var e=this.id;this.remove();e=b(e);e.config=c;return(new b.embed.Embedder(e)).embedPlayer()};a()})(jwplayer);if(typeof console==="undefined")console={log:function(){},debug:function(){}};
var gc=function(){var b=function(i){this.name=i};b.prototype={toString:function(){return this.name}};var a=new b("gc");window.GUCCI=a;a.namespace=function(i,l,p){i=i.split(".");for(var t=window,o=[],n=0;n<i.length;++n){var r=i[n];o.push(r);if(t[r]==null)t[r]=new b(o.join("."));t=t[r]}p||l.call(t,t);return t};a.widget=function(i,l,p){l=this.namespace(i,p,false);a.cl.Page.widgets[i]={ns:l,func:p}};a.i18n=function(){return a.cl.util.Text.get.apply(a.cl.util.Text,arguments)};a.globalData=function(i){return a.cl.util.JSONData.resolv(i)};
a.dispatchWidget=function(i,l){for(var p in a.cl.Page.widgets){var t=a.cl.Page.widgets[p];if(t.ns[l]){try{var o=t.ns[l](i)}catch(n){console.log("dispatchWidget:",n)}if(o&&typeof o.css=="function")i=o}}};a.nodeReady=function(i){a.dispatchWidget(i,"nodeReady");a.publish("nodeReady",i)};a.ready=function(i){a.dispatchWidget(i,"ready");a.publish("ready",i)};var c={},d={},e=$(document);a.publish=function(i,l){d[i]=l;i="gc:"+i;e.trigger(i,[l])};a.subscribeCountFor=function(i){return c[i].length};a.subscribe=
function(i,l){var p=this;c[i]=c[i]||[];c[i].push(l);i="gc:"+i;if(!l.displayName)l.displayName="EventHandler$"+i;e.bind(i,function(t,o){l.call(p,o)})};a.subscribeAndInit=function(i,l){a.subscribe(i,l);var p=d[i];p&&l(p)};a.live=function(i,l,p){e.delegate(i,l,p)};a.alert=function(i,l){l||(l={});l.raw||(i=a.i18n(i));a.cl.widgets.dialog.alert(i,l)};a.flashInfo=function(i,l){l||(l={});l.raw||(i=a.i18n(i));a.cl.widgets.flashInfo.showMessage(i,l)};a.globalData$=function(i){try{return a.cl.util.JSONData.resolv(i)}catch(l){return null}};
var h={};a.doOnceInTimeout=function(i,l,p){h[i]&&clearTimeout(h[i]);if(p==null)p=0;h[i]=setTimeout(l,p)};a.init=function(i,l){a.namespace(i,l)};jQuery.browser.msie6=jQuery.browser.msie&&jQuery.browser.version.substr(0,1)=="6";window.Prototype=void 0;return a}();$(function(){console.log("READY");gc.ready($(document));gc.nodeReady($(document))});
gc.namespace("gc.cl",function(){var b=null;this.Page={needs:function(a){if(b==null){b={};for(var c=($("body").attr("class")||"").split(/\s+/),d=0;d<c.length;++d)b[c[d]]=true}return b[a]||false},controllers:[],widgets:{}}});
gc.namespace("gc.cl.util",function(){this.Ajax={wrap_success:function(b){return function(a,c){a=$(a).filter(":not(undefined)");gc.nodeReady(a);try{b(a,c)}catch(d){console.log("AJAX callback failed:",d)}}},_call:function(b,a,c,d){if(a.search(/format=ajax/)==-1)a+=(a.search(/\?/)==-1?"?":"&")+"format=ajax";$[b](a,c,this.wrap_success(d))},ajax:function(b){b.success=this.wrap_success(b.success);return $.ajax(b)},get:function(b,a){return this._call("get",b,{},a)},post:function(b,a,c){b=b.replace(/^https?:\/\/[^\/]+\//,
"/");return this._call("post",b,a,c)}}});
gc.namespace("gc.cl.util",function(b){b=this;var a={},c=true,d={},e=function(h,i){i=i||window;var l=h.split(".");return{found:_(l).select(function(p){i=!i||i[p];return typeof i!="undefined"}).length==l.length,value:i}};this.JSONData={subscribe:function(h,i){d[h]=(d[h]||[]).concat([i]);var l=e(h,a);l.found&&i(l.value)},addGlobalData:function(h,i){i||(i=".js_globaldata");h=h?$(h):$(document);var l=function(){var p=$(this).html().slice(5,-4),t=JSON.parse(p.replace(/119234e55bf67939cb54bcf1f8e6e0bb/g,"--")),
o=[];_(d).each(function(n,r){var v=e(r,t);v.found&&o.push({reference:v,funcs:n})});a=jQuery.extend(true,a,t);_(o).each(function(n){_(n.funcs).each(function(r){r(n.reference.value)})});$(this).remove()};h.filter(i).each(l);h.each(function(){$(this).find(i).each(l)});return h},resolv:function(h){if(c){c=false;this.addGlobalData()}if(!(h in a))throw"Cannot find global data "+h+":"+JSON.stringify(_(a).keys());return a[h]}};gc.subscribe("nodeReady",function(h){c=false;return b.JSONData.addGlobalData(h)})});
gc.namespace("gc.cl.util",function(){this.URL={to:function(b,a){var c=[];a&&_(a).each(function(e,h){c.push(h+"="+encodeURIComponent(e))});var d=gc.globalData("urls")[b];if(!d)throw"Unknown URL "+b;if(c.length)d=d+"?"+c.join("&");return d},imageBasePath:function(){return gc.globalData("imageBasePath")}}});
gc.namespace("gc.cl.util",function(){this.Text=function(){this.data={}};var b;this.Text.get=function(a,c){if(b)return b.get(a,c);b=new this;return b.get(a,c)};this.Text.prototype={get:function(a){var c=this._get(a),d=Array.prototype.slice.call(arguments);d.shift();return $.validator.format(c,d)},_get:function(a){var c=gc.globalData("i18n")[a];return typeof c=="undefined"&&a||c}}});var i18n=function(b){return bf.cl.util.Text.get(b)};
gc.namespace("gc.cl.util",function(b){b.AjaxMultiBlockDistributor={perform:function(a){gc.cl.util.Ajax.ajax({type:"GET",url:a,success:function(c){c=$(c);c.find(".block").each(function(){var d=$($(this).dataset("target"));$(this).children().appendTo(d.empty())})},error:function(){}})}}});
gc.namespace("gc.cl.util",function(){Class("gc.cl.util.Synchronizer",{does:Joose.Singleton,has:{groups:{is:"rw",init:{}}},classMethods:{subscribe:function(b,a,c,d){this.getInstance().subscribe(b,a,c,d)},notify:function(b,a,c,d){this.getInstance().notify(b,a,c,d)}},methods:{subscribe:function(b,a,c,d){b||(b="_all");this.groups[b]||(this.groups[b]={});this.groups[b][c]||(this.groups[b][c]=[]);this.groups[b][c].push({widget:a,func:d})},notify:function(b,a,c,d,e){this.groups[b]&&this.groups[b][c]&&_(this.groups[b][c]).each(function(h){if(a!=
h.widget)h.func(d,e||b)});b!="_all"&&this.notify("_all",a,c,d,b)}}})});gc.namespace("gc.cl.util",function(){this.Cookie={get:function(b){var a=document.cookie;b=b+"=";var c=a.indexOf("; "+b);if(c==-1){c=a.indexOf(b);if(c!=0)return""}else c+=2;var d=document.cookie.indexOf(";",c);if(d==-1)d=a.length;a=unescape(a.substring(c+b.length,d));if(a==";")return"";return a},set:function(b,a,c,d){b=b+"="+escape(a)+(c?"; expires="+c.toGMTString():"")+"; path=/"+(d?"; secure":"");document.cookie=b}}});
gc.namespace("gc.bo.product",function(b){b._products={};b._subscriptions={};gc.cl.util.JSONData.subscribe("Styles",function(a){_(a).each(function(c,d){if(!b._products[d]){b._products[d]={};if(c.classname=="gc.srv.bo.product.ProductSet"){b._products[d].product=new gc.bo.product.ProductSet(d,c);b.notify(b._products[d].product)}else{var e=new gc.bo.product.MasterProduct(d);b._products[d].product=e;b.notify(b._products[d].product);_(e.getVariants()).each(function(h){b._products[h.getID()]={product:h};
b.notify(b._products[h.getID()].product)})}}if(c.md5!=b._products[d].md5){b._products[d].md5=c.md5;b._products[d].product.update();b.notify(b._products[d].product)}})});b.subscribe=function(a,c){b._subscriptions[a]||(b._subscriptions[a]=[]);b._subscriptions[a].push(c);b._products[a]&&b.notify(b._products[a])};b.notify=function(a){var c;if(c=b._subscriptions[a.getID()])for(var d=0;d<c.length;++d)typeof c[d]==="function"&&c[d](a)};b.get=function(a){return b._products[a].product};Role("gc.bo.product.Subscribeable",
{methods:{subscribeUpdate:function(a){if(!this._update_fns)this._update_fns=[];this._update_fns.push(a)},update:function(){this.getVariants&&this.getVariants()&&_(this.getVariants()).each(function(c){c.update()});if(this._update_fns){var a=this;_(this._update_fns).each(function(c){c(a)})}}}});Class("gc.bo.product.VariantProduct",{does:[b.Subscribeable],methods:{initialize:function(a,c,d){this._id=a;this._data=c;this._master=d},getMaster:function(){return this._master},getOrderable:function(){return!!this.getStock().sellable},
getID:function(){return this._id},getName:function(){return this._data.name},getSize:function(){return this._data.size.value},getColor:function(){return this._data.color.value},getPriceDisplay:function(){return this._data.price.display},getMsrpPrice:function(){return this._data.price.msrp},getStock:function(){return this._data.stock||{}},getProps:function(){return this._data.props||[]},getUrl:function(){return this._data.url},getShareUrl:function(){return this._data.shareurl},getImages:function(a){var c=
this;if(!this._data.images[a])return[];var d=0;return _(this._data.images[a]).map(function(e){return{letter:e,url:c.getImageUrl(a,e),idx:d++}})},getImageUrl:function(a,c){c=c||"A";c.replace(/^\*/,"");return this._data&&this._data.images[a]&&_.indexOf(this._data.images[a],c)!=-1?this._data.imageurl.replace(/{{format}}/g,a).replace(/{{letter}}/g,c).replace(/{{qlt}}/g,gc.globalData("JPEGImageQuality")).replace(/{{width}}/g,a.replace(/x.*$/,"")):["http://placehold.it",a,"e8117f/ffffff"].join("/")},isAvailable:function(){var a=
gc.bo.Basket.getItemById(this.getID());a=a?a.quantity:0;return this.getStock().quantity>a},fromWhichBucket:function(){var a=gc.bo.Basket.getItemById(this.getID());a=a?a.quantity:0;var c=this.getStock();return c.bucket1.quantity-a>0?"bucket1":c.bucket2.quantity-(a-c.bucket1.quantity)>0?"bucket2":c.bucket3.quantity-(a-c.bucket1.quantity-c.bucket2.quantity)>0?"bucket3":"unavailable"}}});Class("gc.bo.product.DummyProduct",{does:gc.bo.product.Subscribeable,methods:{initialize:function(a,c,d){var e=this;
this.nearest=a;this._master=d;_(["color","size"]).each(function(h){e[h]=c[h]||a["get"+Joose.S.uppercaseFirst(h)]()})},getMaster:function(){return this._master},getData:function(){return null},getOrderable:function(){return false},getID:function(){return"Dummy_"+(this.color||"")+"_"+(this.size||"")},getStock:function(){return{}},getName:function(){return this.nearest.getName()},getSize:function(){return this.size},getColor:function(){return this.color},getPriceDisplay:function(){return""},getImages:function(a){return this.nearest.getImages(a)},
getImageUrl:function(a,c){return this.nearest.getImageUrl(a,c)}}});Class("gc.bo.product.MasterProduct",{does:[b.Subscribeable],methods:{initialize:function(a){this.id=a;this._style=style=gc.globalData("Styles")[a];this._variants={};if(typeof style.values!="undefined"){var c=this,d=style.values,e=[];_(["color","size"]).each(function(t){d[t]&&_(d[t]).keys().length&&e.push(t)});var h=function(t,o){if(o>=e.length)return t;_(_(d[e[o]]).keys()).each(function(n){t[n]=h({},o+1)});return t},i=h({},0);_(style.variants).each(function(t,
o){var n=new gc.bo.product.VariantProduct(o,t,c);c._variants[o]=n;var r=i,v=null;_(e).each(function(x){if(v)r=r[v];v=n["get"+Joose.S.uppercaseFirst(x)]()});r[v]=n});var l=style.orders,p=function(t,o,n,r){n=null;r=[];_(l[e[o]]).each(function(v,x){x=t[v.value];if(o+1==e.length)if(x._id){_(r).each(function(j){var O={};O[e[o]]=j;O=new gc.bo.product.DummyProduct(x,O,c);t[j]=c._variants[O.getID()]=O});r=[];n=x}else if(n){var z={};z[e[o]]=v.value;z=new gc.bo.product.DummyProduct(n,z,c);t[v.value]=c._variants[z.getID()]=
z}else r.push(v.value);else p(x,o+1)})};p(i,0)}},getMaster:function(){return this},getVariants:function(){return this._variants},pickFirstAvailableVariantForColor:function(a){return _(this._variants).detect(function(c){return c.getColor()==a&&c.isAvailable()})},pickVariant:function(a){var c=this._style.orders;_(["color","size"]).each(function(e){if(c[e]&&c[e].length)a[e]||_(c[e]).first()});var d=_(this._variants).values();_(a).each(function(e,h){d=_(d).select(function(i){return""+e===""+i["get"+Joose.S.uppercaseFirst(h)]()})});
return _(d).first()},getID:function(){return this.id},getDim:function(a){if(!this["_get"+a]){var c={},d=0;_(this._variants).values().each(function(h){c[h["get"+a]()]||(c[h["get"+a]()]=d++)});var e=[];_(c).each(function(h,i){e[h]=i});this["_get"+a]=e}return this["_get"+a]},getSizes:function(){return this._style.orders.size},getAvailableSizes:function(a){var c=_(this.getAvailableVariants()).map(function(d){if(d.getColor()==a)return d.getSize()});return _(c).compact()},getColors:function(){return this._style.orders.color},
getAvailableColors:function(){var a=_(this.getAvailableVariants()).map(function(c){return c.getColor()});return _(a).uniq()},getAvailableVariants:function(){return _(this._variants).select(function(a){return a.getOrderable()})}}});Class("gc.bo.product.ProductSet",{does:[b.Subscribeable],methods:{initialize:function(a,c){this._id=a;this._data=c},getMaster:function(){return this},getOrderable:function(){return false},getID:function(){return this._id},getName:function(){return this._data.name},getUrl:function(){return this._data.url},
getImages:function(a){var c=this;if(!this._data.images[a])return[];var d=0;return _(this._data.images[a]).map(function(e){return{letter:e,url:c.getImageUrl(a,e),idx:d++}})},getImageUrl:function(a,c){c=c||"A";c.replace(/^\*/,"");return this._data&&this._data.images[a]&&_.indexOf(this._data.images[a],c)!=-1?this._data.imageurl.replace(/{{format}}/g,a).replace(/{{letter}}/g,c).replace(/{{qlt}}/g,gc.globalData("JPEGImageQuality")).replace(/{{width}}/g,a.replace(/x.*$/,"")):["http://placehold.it",a,"e8117f/ffffff"].join("/")},
isAvailable:function(){return false}}})});
gc.namespace("gc.bo",function(){gc.cl.util.JSONData.subscribe("Basket",function(){gc.bo.Basket.publish()});Class("gc.bo.Basket",{does:Joose.Singleton,classMethods:{get:function(){return this.getInstance()},getItems:function(){return this.getInstance().getItems()},getItemById:function(b){return this.getInstance().getItemById(b)},subscribe:function(b){this.getInstance().subscribe(b)},publish:function(){this.getInstance().publish()}},methods:{getBasket:function(){if(!this.basket)this.basket=gc.globalData("Basket");
return this.basket},getItems:function(){return _(this.getBasket().items).select(function(b){return b.sku})},getItemById:function(b){for(var a=this.getItems(),c=null,d=0;d<a.length;++d)if(a[d].sku==b){c=a[d];break}return c},subscribe:function(b){if(!this._subscriptions)this._subscriptions=[];this._subscriptions.push(b)},publish:function(){var b=this;this._subscriptions&&_(this._subscriptions).each(function(a){a(b)})}}})});
gc.init("smc.cl.init.timeToUpdate",function(){if($.browser.msie&&parseInt($.browser.version,10)<7){
																		  	location.href="browse_update.htm"}
																		  });
gc.init("smc.cl.init.ie6hover",function(){if(jQuery.browser.msie6){gc.live(".ie6hover","mouseenter",function(){$(this).addClass("hover")});gc.live(".ie6hover","mouseleave",function(){$(this).removeClass("hover")});ie6MinWidthFix=function(){var b=parseInt($("#container").css("padding-left"))+parseInt($("#container").css("padding-right"));$(window).width()<parseInt($("#container").css("min-width"))+b?$("#container").css("width",$("#container").css("min-width")):$("#container").css("width","auto")};
$(window).load(ie6MinWidthFix);$(window).resize(ie6MinWidthFix)}});
gc.init("smc.cl.init.minisearch",function(b){var a;gc.live("#quicksearch input[type=submit]","click",function(c){var d=$("#quicksearch input[name=q]").val();if(!d||typeof d=="undefined"||d=="")c.preventDefault()});gc.subscribe("panelshow",function(c){c!="quicksearch"&&b.hide()});gc.live(".js_opensearch a","click",function(c){c.preventDefault();$(this).blur();b.show();gc.publish("panelshow","quicksearch")});gc.live(".js_closesearch","click",function(){b.scheduleHide(100);return false});this.hide=function(){var c=
$("#quicksearch");c.hasClass("show")&&c.css({display:"block",opacity:1}).animate({opacity:0},800,function(){var d=c.attr("style").replace("display: block;","").replace("opacity: 0;","");c.attr("style",d)}).removeClass("show")};this.show=function(){this.clearHide();$("#quicksearch").hasClass("show")||$("#quicksearch").css("opacity",0).animate({opacity:1},800).addClass("show")};this.scheduleHide=function(c){a&&clearTimeout(a);a=setTimeout(function(){b.hide()},c)};this.clearHide=function(){a&&clearTimeout(a)}});
gc.init("smc.cl.init.productImages",function(){Class("smc.cl.init.productImages.ProductImages",{methods:{initialize:function(b,a,c){var d=this;this.base=b;this.index=a;this.variant=c;this.activeAnimation=false;this.images={};this.detail=this.base.find(".js_detail");this.activeImg=0;this.base.find("img").each(function(e,h){h=$(h);h.attr("id");var i=h.attr("class"),l=h.dataset("format"),p=h.dataset("viewtype");i=i.match(/js_thumbnail/)||i.match(/js_detail/)||i.match(/js_look/);if(!i)return true;h.attr("src",
d.variant.getImageUrl(l,p));i=i.join().slice(3);d.images[i]||(d.images[i]={});d.images[i][p]=h;i=="thumbnail"&&h.closest("a").bind("click",function(t){t.preventDefault();this.blur();if(!(d.activeAnimation||!d.images.detail||$(this).parent().hasClass("active"))){d.activeImg=d.base.find(".altviews img").index(h);d.changeViewtype(p);gc.cl.util.Synchronizer.notify(d.index,d,"viewtype",{variant:d.variant,viewtype:p})}})});gc.cl.util.Synchronizer.subscribe(this.index,this,"color",function(e){d.changeColor(e.variant)});
gc.cl.util.Synchronizer.subscribe(this.index,this,"viewtype",function(e){d.changeViewtype(e.viewtype)})},changeColor:function(b){this.variant=b;var a=this;_(this.images).each(function(c){_(c).each(function(d,e){var h=d.dataset("format");d.attr("src",a.variant.getImageUrl(h,e))})})},changeViewtype:function(b){if(this.images.detail){var a=null,c=this,d=this.detail.dataset("format");if(this.images.detail[b])a=this.images.detail[b];else{a=this.detail.clone().dataset("viewtype",b).attr("src",this.variant.getImageUrl(d,
b)).insertAfter(this.detail).hide();this.images.detail[b]=a}c.activeAnimation=true;this.detail.fadeOut(500,function(){$(this).hide();c.detail=a;a.fadeIn(500,function(){c.activeAnimation=false})});this.images.thumbnail&&this.images.thumbnail[b]&&this.images.thumbnail[b].closest("li").addClass("active").siblings().removeClass("active")}},reset:function(){var b=this.base.find(".altviews img:eq(0)");if(b.length){b=b.dataset("viewtype");this.changeViewtype(b);gc.cl.util.Synchronizer.notify(this.index,
this,"viewtype",{variant:this.variant,viewtype:b})}}}})});
gc.init("smc.cl.init.gallery",function(){Class("smc.cl.init.gallery.Gallery",{methods:{initialize:function(b,a,c){if(b.length){var d=this;this.baseContainer=b;this.currentVariantIdx=a;this.currentVariant=c;this.activeAnimation=false;this.largeImage=this.baseContainer.find("img.js_large");this.stretchImageToFitScreen(this.largeImage);$(window).resize(function(){d.stretchImageToFitScreen(d.largeImage)});this.prevContainer=this.baseContainer.find(".prev").first();this.prevImage=this.prevContainer.find("img").first();
this.prevContainer.find(".js_pager").bind("click",function(h){h.preventDefault();if(d.activeAnimation)return false;d.currentViewtypeIdx=d.currentViewtypeIdx>0?--d.currentViewtypeIdx:0;gc.cl.util.Synchronizer.notify(d.currentVariantIdx,d,"viewtype",{viewtype:d.viewtypes[d.currentViewtypeIdx].letter,variant:d.currentVariant});d.update()});this.nextContainer=this.baseContainer.find(".next").first();this.nextImage=this.nextContainer.find("img").first();this.nextContainer.find(".js_pager").bind("click",
function(h){h.preventDefault();if(d.activeAnimation)return false;d.currentViewtypeIdx=d.currentViewtypeIdx<d.viewtypes.length-1?++d.currentViewtypeIdx:d.viewtypes.length-1;gc.cl.util.Synchronizer.notify(d.currentVariantIdx,d,"viewtype",{viewtype:d.viewtypes[d.currentViewtypeIdx].letter,variant:d.currentVariant});d.update()});this.currentViewtypeIdx=0;this.viewtypes=this.currentVariant.getImages(this.largeImage.attr("data-format"));for(var e in this.viewtypes)if(this.viewtypes[e].letter==this.largeImage.attr("data-viewtype")){this.currentViewtypeIdx=
this.viewtypes[e].idx;break}gc.cl.util.Synchronizer.subscribe(null,this,"color",function(h,i){d.currentVariant=h.variant;d.currentVariantIdx=i;d.onColorChange(h.variant.getColor())});this.updateImage=this.updateImageSoft;this.update()}},update:function(b){if(typeof b==="undefined")b=true;if(b)this.largeImage=this.updateImage(this.largeImage,this.currentViewtypeIdx);if(this.currentViewtypeIdx>0){this.updateImage(this.prevImage,this.currentViewtypeIdx-1);this.prevContainer.toggleClass("hidden",false)}else this.prevContainer.toggleClass("hidden",
true);if(this.currentViewtypeIdx<this.viewtypes.length-1){this.updateImage(this.nextImage,this.currentViewtypeIdx+1);this.nextContainer.toggleClass("hidden",false)}else this.nextContainer.toggleClass("hidden",true)},updateImageHard:function(b,a){var c=this.currentVariant.getImages(b.attr("data-format")),d=b.parent();typeof c[a]!="undefined"&&b.attr("src",c[a].url);d.is(".js_pager")||this.stretchImageToFitScreen(b);return b},updateImageSoft:function(b,a){var c=this.currentVariant.getImages(b.attr("data-format")),
d=this;if(b.parent().is(".js_pager")){typeof c[a]!="undefined"&&b.attr("src",c[a].url);return b}var e=b.clone();e.unbind().prependTo(b.parent()).hide().attr("src",c[a].url);this.stretchImageToFitScreen(e);this.activeAnimation=true;b.fadeOut(800,function(){$(this).remove();e.fadeIn(800,function(){d.activeAnimation=false})});return e},onColorChange:function(){this.update()},onViewtypeChange:function(b){for(var a in this.viewtypes)if(this.viewtypes[a].letter==b){this.currentViewtypeIdx=this.viewtypes[a].idx;
break}this.update()},reset:function(){this.currentViewtypeIdx=0;this.update()},stretchImageToFitScreen:function(b){var a=$("#header").outerHeight(),c=$("#footer").outerHeight(),d=parseInt(b.css("paddingTop"),10),e=$(window).width();a=$(window).height()-(c+a+d);c=e/a;var h=b.width(),i=b.height();d=h/i;h=h;i=i;if(c>d){i=a;h=i*d}else{h=e;i=h/d}i>780&&b.attr("width",h).attr("height",i).css({top:"50%",marginLeft:"-"+h/2+"px",marginTop:"-"+i/2+"px"})}}})});
gc.init("smc.cl.init.ankerjumper",function(){$(window).hashchange(function(){if(location.hash.match(/^#tgt_(\w+)$/)){var b=$("[name="+RegExp.$1+"]");if(b.length){var a=$("#mainnav"),c=b.css("color");pos=b.offset().top-(a.offset().top+a.height()+20);$("html, body").animate({scrollTop:pos},800,function(){var d=b.closest("li");d.siblings().find("h3, p").animate({color:c},800);d.find("h3, p").animate({color:"#333"},800)})}}});$(".js_targetblank").click(function(b){b.preventDefault();window.open($(this).attr("href"))})});
gc.init("smc.cl.init.layerable",function(){gc.live(".js_layer","click",function(b){b.preventDefault();$(".pds .stage, .pds .js_scrollableitems li").css("z-index",0);Weet.extend(JSON.parse($(this).dataset("fragment")))});gc.live(".js_closeLayer","click",function(){setTimeout(function(){$(".pds .stage, .pds .js_scrollableitems li").css("z-index",1)},1E3)})});
gc.init("smc.cl.init.promoLayer",function(){gc.live(".js_promoclose","click",function(b){$(".pdshim").remove();$("#newsletterlayer").remove();var a=gc.cl.util.Cookie.get("promolayertarget").split("QQQ");if(a[1]=="ext"){b.preventDefault();window.open(a[0])}else window.location.href=a[0]});gc.live(".js_promolayer","click",function(b){var a=$(this).attr("href"),c=gc.cl.util.Cookie.get("promolayertarget");if(!c||c==""){b.preventDefault();b=new Date((new Date).getFullYear()+2,0,0);gc.cl.util.Cookie.set("promolayertarget",
a+"QQQ"+($(this).hasClass("js_atargetblank")?"ext":"int"),b);gc.cl.util.Ajax.get(gc.cl.util.URL.to("newsletter/popup"),function(d,e){var h=$(d);if(e=="success"&&h.length>0){$("#container").append(h);gc.cl.widgets.formValidator.nodeReady(h);$("#container").find("input[autofocus=autofocus]").focus()}})}else if($(this).hasClass("js_atargetblank")){b.preventDefault();window.open($(this).attr("href"))}})});
gc.init("smc.cl.init.gmap",function(){Class("smc.cl.init.gmap.Gmap",{methods:{initialize:function(b,a,c,d){this.$map=jQuery("#map");this.gmap=null;this.markers=[];this.infoWindows=[];this.defaultLat=b;this.defaultLon=a;this.defaultTitle=c;this.zoomlevel=d||8},create:function(){opts={mapTypeId:google.maps.MapTypeId.ROADMAP,navigationControl:true,mapTypeControl:false,scaleControl:true,zoom:this.zoomlevel,center:new google.maps.LatLng(this.defaultLat,this.defaultLon)};this.gmap=new google.maps.Map(this.$map[0],
opts);this.$map.css({display:"block",opacity:0});this.relocate(this.defaultLat,this.defaultLon,this.defaultTitle);var b=this;setTimeout(function(){b.$map.animate({opacity:1},800,function(){$(this).removeAttr("style")});$("#active-bg").fadeOut()},1500)},relocate:function(b,a,c){c=c||"";b=parseFloat(b);a=parseFloat(a);var d=new google.maps.LatLng(b,a);this.gmap.panTo(d);if(!this.hasMarkerAt(b,a)){b=new google.maps.Marker({position:d,map:this.gmap,title:c,icon:baseURL+"images/elements/el_gmapmarker.png"});
infoWindow=new google.maps.InfoWindow({content:c});infoWindow.open(this.gmap,b);this.markers.push(b);this.infoWindows.push(infoWindow)}},resetMarkers:function(){for(var b in this.markers){this.markers[b].setMap(null);this.infoWindows[b].close()}this.markers=[];this.infoWindows=[]},hasMarkerAt:function(b,a){var c=b+"x"+a,d="",e=0;for(e in this.markers){d=this.markers[e].position.b+"x"+this.markers[e].position.b;if(d==c)return true}return false}}})});
gc.init("smc.cl.init.geocode",function(){this.detectLocation=function(b){var a=null,c=null;if(navigator.geolocation){browserSupportFlag=true;navigator.geolocation.getCurrentPosition(function(d){a=d.coords.latitude;c=d.coords.longitude})}if(!a&&b){a=b[0];c=b[1]}return[a,c]}});gc.init("smc.cl.init.back",function(){gc.live(".js_back","click",function(b){b.preventDefault();window.back()})});
gc.init("smc.cl.init.videoPlayer",function(){Class("smc.cl.init.videoPlayer.VideoPlayer",{has:{rootNode:{is:"rw",init:$(".js_videoPlayer").first()}},methods:{initialize:function(b){b=b||{};this.rootNode=b.rootNode||this.rootNode;if(!(!this.rootNode||this.rootNode.length==0)){var a=this;this.rootNode.find("video").first();var c=this.rootNode.attr("data-staticbaseurl"),d=this.rootNode.attr("data-h264Src"),e=this.rootNode.attr("data-webmSrc"),h=this.rootNode.attr("data-oggSrc"),i=swfobject.hasFlashPlayerVersion("9.0.115"),
l=false;if(d&&d!="")if(Modernizr.video&&Modernizr.video.h264!="")l=true;if(e&&e!="")if(Modernizr.video&&Modernizr.video.webm!="")l=true;if(h&&h!="")if(Modernizr.video&&Modernizr.video.ogg!="")l=true;console.log("flashAvailable: "+i);console.log("html5VideoAvailable: "+l);if(i){var p=null;window.stateTracker=function(){p.removeModelListener("STATE","stateTracker");a.rootNode.animate({opacity:"1"})};window.playerReady=function(t){p=document.getElementById(t.id);p.addModelListener("STATE","stateTracker")};
d={file:d,autostart:b.autostart||"true",stretching:"fill",smoothing:"true",skin:c+"/extensions/js/ext/jwplayer/skin/skin.zip"};if(b.controlbar)d.controlbar=b.controlbar;b={id:"jwplayer",name:"jwplayer"};swfobject.embedSWF(c+"/extensions/js/ext/jwplayer/player.swf",b.id,a.rootNode.width(),a.rootNode.height(),"9.0.115","false",d,{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},b)}else if(l)a.rootNode.animate({opacity:"1"});else{this.rootNode.empty();this.rootNode.html('<p class="noflash">'+
gc.i18n("global.flashplayerRequired")+"</p>");this.rootNode.css({width:"auto",opacity:"1"})}}}}})});
gc.init("smc.cl.init.shareable",function(){var b=$(".js_sharemail"),a="",c="";b.clone().appendTo($("body"));b.remove();gc.live(".js_sharemail .js_twitter, .js_facebook","click",function(){$(".js_sharemail");$(this).is(".js_twitter")?$(this).attr("href","http://twitter.com/home?"+jQuery.param({status:a})):$(this).attr("href","http://www.facebook.com/sharer.php?"+jQuery.param({u:c,t:a}))});gc.live(".js_sharemail .js_lightboxinnerclose","click",function(d){d.preventDefault();d.stopPropagation();d=$(".js_sharemail").closest(".js_actions");
if(d.length==0)d=$(".js_actions");d.removeClass("sharingactive")});gc.live(".js_share","click",function(d){d.preventDefault();this.blur();d=$(".js_sharemail");$(this).closest(".js_actions").addClass("sharingactive");var e=$(this).closest("[data-sharingclass]").dataset("sharingclass"),h=$(this).closest("[data-sharingtext]").dataset("sharingtext"),i=$(this).closest("[data-sharingurl]").dataset("sharingurl"),l=$(this).closest("[data-sharingwhat]").dataset("sharingwhat");$(this).offset();i=i||location.href;
l=l||gc.i18n("sharing.unspecificWhat");h=h||"";h=h.replace(/{[\d]+}/,i);d.addClass(e);d.find("input[name=a.TellAFriend.sharing_url]").val(i);d.find("input[name=a.TellAFriend.sharing_what]").val(l);a=h;c=i});gc.live(".js_sharemail form","submit",function(){var d=$(this);if(!d.validate().form())return false;var e=$(".js_sharemail");gc.cl.util.Ajax.post(d.attr("action"),d.serialize(),function(h,i){e.find("form")[0].reset();e.find(".initialState").hide();e.append('<p class="msg">'+gc.i18n("sharing.message_"+
i)+"</p>");gc.cl.widgets.lightboxManager.LightboxManager.updatePositions();setTimeout(function(){e.find(".js_lightboxinnerclose").click()},3E3)});return false})});
gc.init("smc.cl.init.selector",function(){Class("smc.cl.init.selector.Selector",{methods:{initialize:function(b,a,c,d){var e=this;this.base=b;this.index=a;this.product=c;this.selected=d;this.variant=this.product.pickVariant(this.selected);b=this.product.pickFirstAvailableVariantForColor(this.selected.color);if(!this.variant.isAvailable()&&b)this.selected.size=b.getSize();this.selectors={};this.options={};this.price=this.base.find(".js_price");this.msrpPrice=this.base.find(".js_msrpPrice");this.name=
this.base.find(".js_name");this.link=this.base.find(".js_link");this.basket_button=this.base.find(".js_add_to_basket");this.multiple_basket_button=this.base.closest(".js_controller").find(".js_add_multiple_to_basket");this.multiple_wishlist_button=this.base.closest(".js_controller").find(".js_add_multiple_to_wishlist");this.base.find(".js_options select").each(function(h,i){i=$(i);var l=i.dataset("type");e.selectors[l]=i;i.next().find(".js_option").each(function(p,t){t=$(t);e.options[l]||(e.options[l]=
{});e.options[l][t.dataset("value")]=t});i.val(e.selected[l]).change();i.draw_trigger=function(){var p=e.options[l]&&e.options[l][i.val()].attr("style"),t=i.next().children("div"),o=$("<span/>").addClass("trigger");p&&o.attr("style",p);t.wrapInner(o)};i.draw_trigger();i.bind("change",function(){i.draw_trigger();e.selected[l]=i.val();e.update(l);gc.cl.util.Synchronizer.notify(e.index,e,l,{variant:e.variant})})});this.product.subscribeUpdate(function(){e.update()});gc.bo.Basket.subscribe(function(){e.update()});
this.update()},update:function(b){var a=this;this.variant=this.product.pickVariant(this.selected);this.price&&this.price.html(this.variant.getPriceDisplay());this.msrpPrice=this.msrpPrice.html(this.variant.getMsrpPrice()||"");this.name&&this.name.html(this.variant.getName());this.link&&this.variant.getUrl&&this.link.attr("href",this.variant.getUrl());if(this.basket_button){this.basket_button.dataset("productid",this.variant.getID());b&&this.basket_button.dataset(b,"1")}if(this.multiple_basket_button.length){b=
JSON.parse(this.multiple_basket_button.dataset("productids"));b[this.index]={id:this.variant.getID(),available:this.variant.isAvailable()};var c=true,d;for(d in b)if(!b[d].available){this.multiple_basket_button.addClass("js_lightboxopen");c=false;break}c&&this.multiple_basket_button.removeClass("js_lightboxopen");this.multiple_basket_button.dataset("productids",JSON.stringify(b))}if(this.multiple_wishlist_button.length){b=JSON.parse(this.multiple_wishlist_button.dataset("productids"));b[this.index]=
{id:this.variant.getID()};this.multiple_wishlist_button.attr({href:gc.cl.util.URL.to("wishlist/add")+"/wishlist/"+_(b).map(function(e){return e.id}).join(",")});this.multiple_wishlist_button.dataset("productids",JSON.stringify(b))}_(this.options).each(function(e){_(e).each(function(h){h.addClass("unavailable")})});_(this.product.getAvailableColors()).each(function(e){a.options.color&&a.options.color[e].removeClass("unavailable")});_(this.product.getAvailableSizes(this.selected.color)).each(function(e){a.options.size&&
a.product.pickVariant({color:a.selected.color,size:e}).isAvailable()&&a.options.size[e].removeClass("unavailable")});if(this.variant.isAvailable()){$.each(this.selectors,function(e,h){h.next().find(".trigger").removeClass("unavailable")});this.basket_button.html(gc.i18n("product.addToBag")).removeClass("disabled")}else{$.each(this.selectors,function(e,h){h.next().find(".trigger").addClass("unavailable")});this.basket_button.html(gc.i18n("product.outOfStock")).addClass("disabled")}}}})});
gc.init("smc.cl.init.showable",function(){gc.live(".js_showabletoggle","click",function(){$(this).closest(".js_showable").toggleClass("show");return false});gc.live(".js_showableshow","click",function(b){if($(b.target).is(".js_showableshow")){b.preventDefault();$(this).trigger("show")}});gc.live(".js_showable","show",function(){$(this).closest(".js_showable").removeClass("show").addClass("show")});gc.live(".js_showable","close",function(){$(this).closest(".js_showable").removeClass("show")})});
gc.init("smc.cl.init.viewInfo",function(){gc.live(".js_viewInfo","click",function(b){b.preventDefault();var a=$(this).offset();b=$(this).closest("[data-productid]").dataset("productid");b=gc.cl.util.URL.to("view-info")+"/"+b;gc.cl.util.Ajax.get(b,function(c){jQuery("body").append(c);c.addClass("show js_view_info_panel");var d=function(){c.remove();jQuery(document).unbind("click",d)};jQuery(document).click(d);var e=a.left-c.width()+24,h=a.top-c.height()-13;c.css("left",e+"px");c.css("top",h+"px")})})});



gc.widget("smc.cl.widgets.backdrop",{},function(){
	this.nodeReady=function(b){
		var a=this;
		b.find(".js_backdrop").each(function(c){
			var d=$(this);
			a.resizeToFitContainer(d);
			$(window).resize(function(){
				a.resizeToFitContainer(d)}).scroll(function(){
					a.resizeToFitContainer(d)
				});
				var e=$(this).find("div").text().split("|"),h=[],i;
				for(c=0;c<e.length;c++){
					i={};
					var l=e[c].replace(/\s*(.*?)\s*/,"$1").split(",");
					i.src=l[0];
					if(l.length>1)i.linksTo=l[1];
					if(l.length>2)i.target=l[2];
					i.src&&h.push(i)
				}
				a.init($(this),{sleep:5,fade:1},h)})
			};
			this.init=function(b,a,c,d){
				var e=this;
				b.width();
				b.height();
				if(!a.easing)a.easing=a.variant?"swing":"linear";
				d||(d=function(){});(function(h){function i(p){var t=new Image;t.onload=function(){l++;c[p].width=t.width;c[p].height=t.height;if(l==1){b.empty();var o=$('<img src="'+c[0].src+'"/>');if(c[0].linksTo)o=$('<a href="'+c[0].linksTo+'" ' + ((c[0].target)?'target="'+ (c[0].target) + '"':'') + ' ></a>').append(o);b.append(o);e.resizeToFitContainer(b)}l==c.length?h():i(p+1)};t.src=c[p].src}var l=0;i(0)})(function(){var h=Math.round(a.fade*1E3),i=0;if(a.sleep)i=Math.round(a.sleep*
1E3);b.css({overflow:"hidden",padding:0});for(var l=1;l<c.length;++l){var p=$('<img src="'+c[l].src+'"/>');if(c[l].linksTo)p=$('<a href="'+c[l].linksTo+'" ' + ((c[l].target)?'target="'+ (c[l].target) + '"':'') + '></a>').append(p);b.append(p)}e.resizeToFitContainer(b);l=b.find("img").css({position:"absolute",visibility:"hidden"});l.eq(0).css({visibility:"visible"});var t=e.createChain(c.length*2-1,c,l,a,i,h,d,function(){return t()});t()})};this.createChain=function(b,a,c,d,e,h,i,l){var p=null;if(b%2==0){if(e){var t=b/2;p=(t-1+a.length)%a.length;var o=c.eq(t),
n=c.eq(p);p=function(){i(t,o.get(0));n.css("visibility","hidden");setTimeout(l,e)}}}else{var r=Math.floor(b/2),v=Math.ceil(b/2)%a.length,x=c.eq(r),z=c.eq(v),j={},O={visibility:"visible"},da={};if(v>r){O.opacity=0;da.opacity=1}else j.opacity=0;p=$.isEmptyObject(da)?function(){i(v,z.get(0),r,x.get(0));z.css(O);x.animate(j,h,"linear",l)}:$.isEmptyObject(j)?function(){i(v,z.get(0),r,x.get(0));z.css(O);z.animate(da,h,"linear",l)}:function(){i(v,z.get(0),r,x.get(0));z.css(O);z.animate(da,h,"linear");x.animate(j,
h,"linear",l)}}if(b>0)return this.createChain(b-1,a,c,d,e,h,i,p);return p};this.resizeToFitContainer=function(b){var a=$(window).width(),c=$("#header").height(),d=$("#footer").height(),e=$(window).height()-(d+c),h=a/e;b.find("img").each(function(){var i=$(this).width(),l=$(this).height(),p=i/l;l=i=0;if(h>p){i=a;l=i/p}else{l=e;i=l*p}i=Math.floor(i);l=Math.floor(l);p={left:"0px",width:i+"px",height:l+"px",paddingTop:c+"px",paddingBottom:d+"px"};if(a<i){p.left=(a-i)/2;if(p.left>0)p.left=0;p.left+="px"}if(e<
l)p.top="0";$(this).css(p)})}});


