var AudioPlayer=function(){function b(j){return document.all?window[j]:document[j]}var c=[],f,a="",e={},i=-1;return{setup:function(j,r){a=j;e=r},getPlayer:function(j){return b(j)},embed:function(j,r){var n={},v,u={},w={},q={};for(v in e)n[v]=e[v];for(v in r)n[v]=r[v];if(n.transparentpagebg=="yes"){u.bgcolor="#FFFFFF";u.wmode="transparent"}else{if(n.pagebg)u.bgcolor="#"+n.pagebg;u.wmode="opaque"}u.menu="false";for(v in n)v=="pagebg"||v=="width"||v=="transparentpagebg"||(w[v]=n[v]);q.name=j;q.style=
"outline: none";w.playerID=j;audioplayer_swfobject.embedSWF(a,j,n.width.toString(),"24","9",false,w,u,q);c.push(j)},syncVolumes:function(j,r){i=r;for(r=0;r<c.length;r++)c[r]!=j&&b(c[r]).setVolume(i)},activate:function(j){f&&f!=j&&b(f).close();f=j},load:function(j,r,n,v){b(j).load(r,n,v)},close:function(j){b(j).close();if(j==f)f=null},open:function(j){b(j).open()},getVolume:function(){return i}}}(),audioplayer_swfobject=function(){function b(){if(oa.readyState=="complete"){oa.parentNode.removeChild(oa);
c()}}function c(){if(!ra){if(T.ie&&T.win){var B=H("span");try{var D=Z.getElementsByTagName("body")[0].appendChild(B);D.parentNode.removeChild(D)}catch(P){return}}ra=true;if(sa){clearInterval(sa);sa=null}B=ya.length;for(D=0;D<B;D++)ya[D]()}}function f(B){if(ra)B();else ya[ya.length]=B}function a(B){if(typeof ga.addEventListener!=U)ga.addEventListener("load",B,false);else if(typeof Z.addEventListener!=U)Z.addEventListener("load",B,false);else if(typeof ga.attachEvent!=U)N(ga,"onload",B);else if(typeof ga.onload==
"function"){var D=ga.onload;ga.onload=function(){D();B()}}else ga.onload=B}function e(){for(var B=ia.length,D=0;D<B;D++){var P=ia[D].id;if(T.pv[0]>0){var S=C(P);if(S){ia[D].width=S.getAttribute("width")?S.getAttribute("width"):"0";ia[D].height=S.getAttribute("height")?S.getAttribute("height"):"0";if(h(ia[D].swfVersion)){T.webkit&&T.webkit<312&&i(S);L(P,true)}else ia[D].expressInstall&&!wa&&h("6.0.65")&&(T.win||T.mac)?j(ia[D]):r(S)}}else L(P,true)}}function i(B){var D=B.getElementsByTagName(da)[0];
if(D){var P=H("embed"),S=D.attributes;if(S)for(var $=S.length,ja=0;ja<$;ja++)S[ja].nodeName=="DATA"?P.setAttribute("src",S[ja].nodeValue):P.setAttribute(S[ja].nodeName,S[ja].nodeValue);if(D=D.childNodes){S=D.length;for($=0;$<S;$++)D[$].nodeType==1&&D[$].nodeName=="PARAM"&&P.setAttribute(D[$].getAttribute("name"),D[$].getAttribute("value"))}B.parentNode.replaceChild(P,B)}}function j(B){wa=true;var D=C(B.id);if(D){if(B.altContentId){var P=C(B.altContentId);if(P){aa=P;va=B.altContentId}}else aa=n(D);
if(!/%$/.test(B.width)&&parseInt(B.width,10)<310)B.width="310";if(!/%$/.test(B.height)&&parseInt(B.height,10)<137)B.height="137";Z.title=Z.title.slice(0,47)+" - Flash Player Installation";P="MMredirectURL="+ga.location+"&MMplayerType="+(T.ie&&T.win?"ActiveX":"PlugIn")+"&MMdoctitle="+Z.title;var S=B.id;if(T.ie&&T.win&&D.readyState!=4){var $=H("div");S+="SWFObjectNew";$.setAttribute("id",S);D.parentNode.insertBefore($,D);D.style.display="none";N(ga,"onload",function(){D.parentNode.removeChild(D)})}v({data:B.expressInstall,
id:ta,width:B.width,height:B.height},{flashvars:P},S)}}function r(B){if(T.ie&&T.win&&B.readyState!=4){var D=H("div");B.parentNode.insertBefore(D,B);D.parentNode.replaceChild(n(B),D);B.style.display="none";N(ga,"onload",function(){B.parentNode.removeChild(B)})}else B.parentNode.replaceChild(n(B),B)}function n(B){var D=H("div");if(T.win&&T.ie)D.innerHTML=B.innerHTML;else if(B=B.getElementsByTagName(da)[0])if(B=B.childNodes)for(var P=B.length,S=0;S<P;S++)!(B[S].nodeType==1&&B[S].nodeName=="PARAM")&&
B[S].nodeType!=8&&D.appendChild(B[S].cloneNode(true));return D}function v(B,D,P){var S,$=C(P);if($){if(typeof B.id==U)B.id=P;if(T.ie&&T.win){var ja="";for(var ka in B)if(B[ka]!=Object.prototype[ka])if(ka.toLowerCase()=="data")D.movie=B[ka];else if(ka.toLowerCase()=="styleclass")ja+=' class="'+B[ka]+'"';else if(ka.toLowerCase()!="classid")ja+=" "+ka+'="'+B[ka]+'"';ka="";for(var ba in D)if(D[ba]!=Object.prototype[ba])ka+='<param name="'+ba+'" value="'+D[ba]+'" />';$.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+
ja+">"+ka+"</object>";la[la.length]=B.id;S=C(B.id)}else if(T.webkit&&T.webkit<312){ba=H("embed");ba.setAttribute("type",ha);for(ja in B)if(B[ja]!=Object.prototype[ja])if(ja.toLowerCase()=="data")ba.setAttribute("src",B[ja]);else if(ja.toLowerCase()=="styleclass")ba.setAttribute("class",B[ja]);else ja.toLowerCase()!="classid"&&ba.setAttribute(ja,B[ja]);for(var ua in D)D[ua]!=Object.prototype[ua]&&ua.toLowerCase()!="movie"&&ba.setAttribute(ua,D[ua]);$.parentNode.replaceChild(ba,$);S=ba}else{ba=H(da);
ba.setAttribute("type",ha);for(var pa in B)if(B[pa]!=Object.prototype[pa])if(pa.toLowerCase()=="styleclass")ba.setAttribute("class",B[pa]);else pa.toLowerCase()!="classid"&&ba.setAttribute(pa,B[pa]);for(var xa in D)D[xa]!=Object.prototype[xa]&&xa.toLowerCase()!="movie"&&u(ba,xa,D[xa]);$.parentNode.replaceChild(ba,$);S=ba}}return S}function u(B,D,P){var S=H("param");S.setAttribute("name",D);S.setAttribute("value",P);B.appendChild(S)}function w(B){var D=C(B);if(D&&(D.nodeName=="OBJECT"||D.nodeName==
"EMBED"))if(T.ie&&T.win)D.readyState==4?q(B):ga.attachEvent("onload",function(){q(B)});else D.parentNode.removeChild(D)}function q(B){if(B=C(B)){for(var D in B)if(typeof B[D]=="function")B[D]=null;B.parentNode.removeChild(B)}}function C(B){var D=null;try{D=Z.getElementById(B)}catch(P){}return D}function H(B){return Z.createElement(B)}function N(B,D,P){B.attachEvent(D,P);ca[ca.length]=[B,D,P]}function h(B){var D=T.pv;B=B.split(".");B[0]=parseInt(B[0],10);B[1]=parseInt(B[1],10)||0;B[2]=parseInt(B[2],
10)||0;return D[0]>B[0]||D[0]==B[0]&&D[1]>B[1]||D[0]==B[0]&&D[1]==B[1]&&D[2]>=B[2]?true:false}function Q(B,D){if(!(T.ie&&T.mac)){var P=Z.getElementsByTagName("head")[0],S=H("style");S.setAttribute("type","text/css");S.setAttribute("media","screen");!(T.ie&&T.win)&&typeof Z.createTextNode!=U&&S.appendChild(Z.createTextNode(B+" {"+D+"}"));P.appendChild(S);if(T.ie&&T.win&&typeof Z.styleSheets!=U&&Z.styleSheets.length>0){P=Z.styleSheets[Z.styleSheets.length-1];typeof P.addRule==da&&P.addRule(B,D)}}}function L(B,
D){D=D?"visible":"hidden";if(ra&&C(B))C(B).style.visibility=D;else Q("#"+B,"visibility:"+D)}function E(B){return/[\\\"<>\.;]/.exec(B)!=null?encodeURIComponent(B):B}var U="undefined",da="object",ha="application/x-shockwave-flash",ta="SWFObjectExprInst",ga=window,Z=document,ma=navigator,ya=[],ia=[],la=[],ca=[],oa,sa=null,aa=null,va=null,ra=false,wa=false,T=function(){var B=typeof Z.getElementById!=U&&typeof Z.getElementsByTagName!=U&&typeof Z.createElement!=U,D=[0,0,0],P=null;if(typeof ma.plugins!=
U&&typeof ma.plugins["Shockwave Flash"]==da){if((P=ma.plugins["Shockwave Flash"].description)&&!(typeof ma.mimeTypes!=U&&ma.mimeTypes[ha]&&!ma.mimeTypes[ha].enabledPlugin)){P=P.replace(/^.*\s+(\S+\s+\S+$)/,"$1");D[0]=parseInt(P.replace(/^(.*)\..*$/,"$1"),10);D[1]=parseInt(P.replace(/^.*\.(.*)\s.*$/,"$1"),10);D[2]=/r/.test(P)?parseInt(P.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof ga.ActiveXObject!=U){var S=null,$=false;try{S=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(ja){try{S=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");D=[6,0,21];S.AllowScriptAccess="always"}catch(ka){if(D[0]==6)$=true}if(!$)try{S=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(ba){}}if(!$&&S)try{if(P=S.GetVariable("$version")){P=P.split(" ")[1].split(",");D=[parseInt(P[0],10),parseInt(P[1],10),parseInt(P[2],10)]}}catch(ua){}}$=ma.userAgent.toLowerCase();var pa=ma.platform.toLowerCase();P=/webkit/.test($)?parseFloat($.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;S=pa?/win/.test(pa):
/win/.test($);$=pa?/mac/.test(pa):/mac/.test($);return{w3cdom:B,pv:D,webkit:P,ie:false,win:S,mac:$}}();(function(){if(T.w3cdom){f(e);if(T.ie&&T.win)try{Z.write("<script id=__ie_ondomload defer=true src=//:><\/script>");(oa=C("__ie_ondomload"))&&N(oa,"onreadystatechange",b)}catch(B){}if(T.webkit&&typeof Z.readyState!=U)sa=setInterval(function(){/loaded|complete/.test(Z.readyState)&&c()},10);typeof Z.addEventListener!=U&&Z.addEventListener("DOMContentLoaded",c,null);a(c)}})();(function(){T.ie&&T.win&&
window.attachEvent("onunload",function(){for(var B=ca.length,D=0;D<B;D++)ca[D][0].detachEvent(ca[D][1],ca[D][2]);B=la.length;for(D=0;D<B;D++)w(la[D]);for(var P in T)T[P]=null;T=null;for(var S in audioplayer_swfobject)audioplayer_swfobject[S]=null;audioplayer_swfobject=null})})();return{registerObject:function(B,D,P){if(!(!T.w3cdom||!B||!D)){var S={};S.id=B;S.swfVersion=D;S.expressInstall=P?P:false;ia[ia.length]=S;L(B,false)}},getObjectById:function(B){var D=null;if(T.w3cdom)if(B=C(B)){var P=B.getElementsByTagName(da)[0];
if(!P||P&&typeof B.SetVariable!=U)D=B;else if(typeof P.SetVariable!=U)D=P}return D},embedSWF:function(B,D,P,S,$,ja,ka,ba,ua){if(!(!T.w3cdom||!B||!D||!P||!S||!$)){P+="";S+="";if(h($)){L(D,false);var pa={};if(ua&&typeof ua===da)for(var xa in ua)if(ua[xa]!=Object.prototype[xa])pa[xa]=ua[xa];pa.data=B;pa.width=P;pa.height=S;var Ea={};if(ba&&typeof ba===da)for(var Ha in ba)if(ba[Ha]!=Object.prototype[Ha])Ea[Ha]=ba[Ha];if(ka&&typeof ka===da)for(var Ca in ka)if(ka[Ca]!=Object.prototype[Ca])if(typeof Ea.flashvars!=
U)Ea.flashvars+="&"+Ca+"="+ka[Ca];else Ea.flashvars=Ca+"="+ka[Ca];f(function(){v(pa,Ea,D);pa.id==D&&L(D,true)})}else if(ja&&!wa&&h("6.0.65")&&(T.win||T.mac)){wa=true;L(D,false);f(function(){var Da={};Da.id=Da.altContentId=D;Da.width=P;Da.height=S;Da.expressInstall=ja;j(Da)})}}},getFlashPlayerVersion:function(){return{major:T.pv[0],minor:T.pv[1],release:T.pv[2]}},hasFlashPlayerVersion:h,createSWF:function(B,D,P){if(T.w3cdom)return v(B,D,P)},removeSWF:function(B){T.w3cdom&&w(B)},createCSS:function(B,
D){T.w3cdom&&Q(B,D)},addDomLoadEvent:f,addLoadEvent:a,getQueryParamValue:function(B){var D=Z.location.search||Z.location.hash;if(B==null)return E(D);if(D){D=D.substring(1).split("&");for(var P=0;P<D.length;P++)if(D[P].substring(0,D[P].indexOf("="))==B)return E(D[P].substring(D[P].indexOf("=")+1))}return""},expressInstallCallback:function(){if(wa&&aa){var B=C(ta);if(B){B.parentNode.replaceChild(aa,B);if(va){L(va,true);if(T.ie&&T.win)aa.style.display="block"}va=aa=null;wa=false}}}}}();(function(b,c){function f(){if(!h.isReady){try{E.documentElement.doScroll("left")}catch(d){setTimeout(f,1);return}h.ready()}}function a(d,g){g.src?h.ajax({url:g.src,async:false,dataType:"script"}):h.globalEval(g.text||g.textContent||g.innerHTML||"");g.parentNode&&g.parentNode.removeChild(g)}function e(d,g,m,p,o,A){var z=d.length;if(typeof g==="object"){for(var K in g)e(d,K,g[K],p,o,m);return d}if(m!==c){p=!A&&p&&h.isFunction(m);for(K=0;K<z;K++)o(d[K],g,p?m.call(d[K],K,o(d[K],g)):m,A);return d}return z?
o(d[0],g):c}function i(){return(new Date).getTime()}function j(){return false}function r(){return true}function n(d,g,m){m[0].type=d;return h.event.handle.apply(g,m)}function v(d){var g,m=[],p=[],o=arguments,A,z,K,F,J,R;z=h.data(this,"events");if(!(d.liveFired===this||!z||!z.live||d.button&&d.type==="click")){d.liveFired=this;var W=z.live.slice(0);for(F=0;F<W.length;F++){z=W[F];z.origType.replace(ua,"")===d.type?p.push(z.selector):W.splice(F--,1)}A=h(d.target).closest(p,d.currentTarget);J=0;for(R=
A.length;J<R;J++)for(F=0;F<W.length;F++){z=W[F];if(A[J].selector===z.selector){K=A[J].elem;p=null;if(z.preType==="mouseenter"||z.preType==="mouseleave")p=h(d.relatedTarget).closest(z.selector)[0];if(!p||p!==K)m.push({elem:K,handleObj:z})}}J=0;for(R=m.length;J<R;J++){A=m[J];d.currentTarget=A.elem;d.data=A.handleObj.data;d.handleObj=A.handleObj;if(A.handleObj.origHandler.apply(A.elem,o)===false){g=false;break}}return g}}function u(d,g){return"live."+(d&&d!=="*"?d+".":"")+g.replace(/\./g,"`").replace(/ /g,
"&")}function w(d){return!d||!d.parentNode||d.parentNode.nodeType===11}function q(d,g){var m=0;g.each(function(){if(this.nodeName===(d[m]&&d[m].nodeName)){var p=h.data(d[m++]),o=h.data(this,p);if(p=p&&p.events){delete o.handle;o.events={};for(var A in p)for(var z in p[A])h.event.add(this,A,p[A][z],p[A][z].data)}}})}function C(d,g,m){var p,o,A;g=g&&g[0]?g[0].ownerDocument||g[0]:E;if(d.length===1&&typeof d[0]==="string"&&d[0].length<512&&g===E&&!Va.test(d[0])&&(h.support.checkClone||!Wa.test(d[0]))){o=
true;if(A=h.fragments[d[0]])if(A!==1)p=A}if(!p){p=g.createDocumentFragment();h.clean(d,g,p,m)}if(o)h.fragments[d[0]]=A?p:1;return{fragment:p,cacheable:o}}function H(d,g){var m={};h.each(Xa.concat.apply([],Xa.slice(0,g)),function(){m[this]=d});return m}function N(d){return"scrollTo"in d&&d.document?d:d.nodeType===9?d.defaultView||d.parentWindow:false}var h=function(d,g){return new h.fn.init(d,g)},Q=b.jQuery,L=b.$,E=b.document,U,da=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,ha=/^.[^:#\[\.,]*$/,ta=/\S/,ga=
/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Z=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ma=navigator.userAgent,ya=false,ia=[],la,ca=Object.prototype.toString,oa=Object.prototype.hasOwnProperty,sa=Array.prototype.push,aa=Array.prototype.slice,va=Array.prototype.indexOf;h.fn=h.prototype={init:function(d,g){var m,p;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!g){this.context=E;this[0]=E.body;this.selector="body";this.length=1;return this}if(typeof d==="string")if((m=da.exec(d))&&
(m[1]||!g))if(m[1]){p=g?g.ownerDocument||g:E;if(d=Z.exec(d))if(h.isPlainObject(g)){d=[E.createElement(d[1])];h.fn.attr.call(d,g,true)}else d=[p.createElement(d[1])];else{d=C([m[1]],[p]);d=(d.cacheable?d.fragment.cloneNode(true):d.fragment).childNodes}return h.merge(this,d)}else{if(g=E.getElementById(m[2])){if(g.id!==m[2])return U.find(d);this.length=1;this[0]=g}this.context=E;this.selector=d;return this}else if(!g&&/^\w+$/.test(d)){this.selector=d;this.context=E;d=E.getElementsByTagName(d);return h.merge(this,
d)}else return!g||g.jquery?(g||U).find(d):h(g).find(d);else if(h.isFunction(d))return U.ready(d);if(d.selector!==c){this.selector=d.selector;this.context=d.context}return h.makeArray(d,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return aa.call(this,0)},get:function(d){return d==null?this.toArray():d<0?this.slice(d)[0]:this[d]},pushStack:function(d,g,m){var p=h();h.isArray(d)?sa.apply(p,d):h.merge(p,d);p.prevObject=this;p.context=this.context;if(g===
"find")p.selector=this.selector+(this.selector?" ":"")+m;else if(g)p.selector=this.selector+"."+g+"("+m+")";return p},each:function(d,g){return h.each(this,d,g)},ready:function(d){h.bindReady();if(h.isReady)d.call(E,h);else ia&&ia.push(d);return this},eq:function(d){return d===-1?this.slice(d):this.slice(d,+d+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(aa.apply(this,arguments),"slice",aa.call(arguments).join(","))},map:function(d){return this.pushStack(h.map(this,
function(g,m){return d.call(g,m,g)}))},end:function(){return this.prevObject||h(null)},push:sa,sort:[].sort,splice:[].splice};h.fn.init.prototype=h.fn;h.extend=h.fn.extend=function(){var d=arguments[0]||{},g=1,m=arguments.length,p=false,o,A,z,K;if(typeof d==="boolean"){p=d;d=arguments[1]||{};g=2}if(typeof d!=="object"&&!h.isFunction(d))d={};if(m===g){d=this;--g}for(;g<m;g++)if((o=arguments[g])!=null)for(A in o){z=d[A];K=o[A];if(d!==K)if(p&&K&&(h.isPlainObject(K)||h.isArray(K))){z=z&&(h.isPlainObject(z)||
h.isArray(z))?z:h.isArray(K)?[]:{};d[A]=h.extend(p,z,K)}else if(K!==c)d[A]=K}return d};h.extend({noConflict:function(d){b.$=L;if(d)b.jQuery=Q;return h},isReady:false,ready:function(){if(!h.isReady){if(!E.body)return setTimeout(h.ready,13);h.isReady=true;if(ia){for(var d,g=0;d=ia[g++];)d.call(E,h);ia=null}h.fn.triggerHandler&&h(E).triggerHandler("ready")}},bindReady:function(){if(!ya){ya=true;if(E.readyState==="complete")return h.ready();if(E.addEventListener){E.addEventListener("DOMContentLoaded",
la,false);b.addEventListener("load",h.ready,false)}else if(E.attachEvent){E.attachEvent("onreadystatechange",la);b.attachEvent("onload",h.ready);var d=false;try{d=b.frameElement==null}catch(g){}E.documentElement.doScroll&&d&&f()}}},isFunction:function(d){return ca.call(d)==="[object Function]"},isArray:function(d){return ca.call(d)==="[object Array]"},isPlainObject:function(d){if(!d||ca.call(d)!=="[object Object]"||d.nodeType||d.setInterval)return false;if(d.constructor&&!oa.call(d,"constructor")&&
!oa.call(d.constructor.prototype,"isPrototypeOf"))return false;var g;for(g in d);return g===c||oa.call(d,g)},isEmptyObject:function(d){for(var g in d)return false;return true},error:function(d){throw d;},parseJSON:function(d){if(typeof d!=="string"||!d)return null;d=h.trim(d);if(/^[\],:{}\s]*$/.test(d.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return b.JSON&&b.JSON.parse?b.JSON.parse(d):
(new Function("return "+d))();else h.error("Invalid JSON: "+d)},noop:function(){},globalEval:function(d){if(d&&ta.test(d)){var g=E.getElementsByTagName("head")[0]||E.documentElement,m=E.createElement("script");m.type="text/javascript";if(h.support.scriptEval)m.appendChild(E.createTextNode(d));else m.text=d;g.insertBefore(m,g.firstChild);g.removeChild(m)}},nodeName:function(d,g){return d.nodeName&&d.nodeName.toUpperCase()===g.toUpperCase()},each:function(d,g,m){var p,o=0,A=d.length,z=A===c||h.isFunction(d);
if(m)if(z)for(p in d){if(g.apply(d[p],m)===false)break}else for(;o<A;){if(g.apply(d[o++],m)===false)break}else if(z)for(p in d){if(g.call(d[p],p,d[p])===false)break}else for(m=d[0];o<A&&g.call(m,o,m)!==false;m=d[++o]);return d},trim:function(d){return(d||"").replace(ga,"")},makeArray:function(d,g){g=g||[];if(d!=null)d.length==null||typeof d==="string"||h.isFunction(d)||typeof d!=="function"&&d.setInterval?sa.call(g,d):h.merge(g,d);return g},inArray:function(d,g){if(g.indexOf)return g.indexOf(d);for(var m=
0,p=g.length;m<p;m++)if(g[m]===d)return m;return-1},merge:function(d,g){var m=d.length,p=0;if(typeof g.length==="number")for(var o=g.length;p<o;p++)d[m++]=g[p];else for(;g[p]!==c;)d[m++]=g[p++];d.length=m;return d},grep:function(d,g,m){for(var p=[],o=0,A=d.length;o<A;o++)!m!==!g(d[o],o)&&p.push(d[o]);return p},map:function(d,g,m){for(var p=[],o,A=0,z=d.length;A<z;A++){o=g(d[A],A,m);if(o!=null)p[p.length]=o}return p.concat.apply([],p)},guid:1,proxy:function(d,g,m){if(arguments.length===2)if(typeof g===
"string"){m=d;d=m[g];g=c}else if(g&&!h.isFunction(g)){m=g;g=c}if(!g&&d)g=function(){return d.apply(m||this,arguments)};if(d)g.guid=d.guid=d.guid||g.guid||h.guid++;return g},uaMatch:function(d){d=d.toLowerCase();d=/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||!/compatible/.test(d)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(d)||[];return{browser:d[1]||"",version:d[2]||"0"}},browser:{}});ma=h.uaMatch(ma);if(ma.browser){h.browser[ma.browser]=true;
h.browser.version=ma.version}if(h.browser.webkit)h.browser.safari=true;if(va)h.inArray=function(d,g){return va.call(g,d)};U=h(E);if(E.addEventListener)la=function(){E.removeEventListener("DOMContentLoaded",la,false);h.ready()};else if(E.attachEvent)la=function(){if(E.readyState==="complete"){E.detachEvent("onreadystatechange",la);h.ready()}};(function(){h.support={};var d=E.documentElement,g=E.createElement("script"),m=E.createElement("div"),p="script"+i();m.style.display="none";m.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var o=m.getElementsByTagName("*"),A=m.getElementsByTagName("a")[0];if(!(!o||!o.length||!A)){h.support={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/red/.test(A.getAttribute("style")),hrefNormalized:A.getAttribute("href")==="/a",opacity:/^0.55$/.test(A.style.opacity),cssFloat:!!A.style.cssFloat,checkOn:m.getElementsByTagName("input")[0].value==="on",optSelected:E.createElement("select").appendChild(E.createElement("option")).selected,
parentNode:m.removeChild(m.appendChild(E.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};g.type="text/javascript";try{g.appendChild(E.createTextNode("window."+p+"=1;"))}catch(z){}d.insertBefore(g,d.firstChild);if(b[p]){h.support.scriptEval=true;delete b[p]}try{delete g.test}catch(K){h.support.deleteExpando=false}d.removeChild(g);if(m.attachEvent&&m.fireEvent){m.attachEvent("onclick",function F(){h.support.noCloneEvent=
false;m.detachEvent("onclick",F)});m.cloneNode(true).fireEvent("onclick")}m=E.createElement("div");m.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";d=E.createDocumentFragment();d.appendChild(m.firstChild);h.support.checkClone=d.cloneNode(true).cloneNode(true).lastChild.checked;h(function(){var F=E.createElement("div");F.style.width=F.style.paddingLeft="1px";E.body.appendChild(F);h.boxModel=h.support.boxModel=F.offsetWidth===2;E.body.removeChild(F).style.display="none"});d=function(F){var J=
E.createElement("div");F="on"+F;var R=F in J;if(!R){J.setAttribute(F,"return;");R=typeof J[F]==="function"}return R};h.support.submitBubbles=d("submit");h.support.changeBubbles=d("change");d=g=m=o=A=null}})();h.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ra="jQuery"+i(),wa=0,T={};h.extend({cache:{},expando:ra,noData:{embed:true,object:true,
applet:true},data:function(d,g,m){if(!(d.nodeName&&h.noData[d.nodeName.toLowerCase()])){d=d==b?T:d;var p=d[ra],o=h.cache;if(!p&&typeof g==="string"&&m===c)return null;p||(p=++wa);if(typeof g==="object"){d[ra]=p;o[p]=h.extend(true,{},g)}else if(!o[p]){d[ra]=p;o[p]={}}d=o[p];if(m!==c)d[g]=m;return typeof g==="string"?d[g]:d}},removeData:function(d,g){if(!(d.nodeName&&h.noData[d.nodeName.toLowerCase()])){d=d==b?T:d;var m=d[ra],p=h.cache,o=p[m];if(g){if(o){delete o[g];h.isEmptyObject(o)&&h.removeData(d)}}else{if(h.support.deleteExpando)delete d[h.expando];
else d.removeAttribute&&d.removeAttribute(h.expando);delete p[m]}}}});h.fn.extend({data:function(d,g){if(typeof d==="undefined"&&this.length)return h.data(this[0]);else if(typeof d==="object")return this.each(function(){h.data(this,d)});var m=d.split(".");m[1]=m[1]?"."+m[1]:"";if(g===c){var p=this.triggerHandler("getData"+m[1]+"!",[m[0]]);if(p===c&&this.length)p=h.data(this[0],d);return p===c&&m[1]?this.data(m[0]):p}else return this.trigger("setData"+m[1]+"!",[m[0],g]).each(function(){h.data(this,
d,g)})},removeData:function(d){return this.each(function(){h.removeData(this,d)})}});h.extend({queue:function(d,g,m){if(d){g=(g||"fx")+"queue";var p=h.data(d,g);if(!m)return p||[];if(!p||h.isArray(m))p=h.data(d,g,h.makeArray(m));else p.push(m);return p}},dequeue:function(d,g){g=g||"fx";var m=h.queue(d,g),p=m.shift();if(p==="inprogress")p=m.shift();if(p){g==="fx"&&m.unshift("inprogress");p.call(d,function(){h.dequeue(d,g)})}}});h.fn.extend({queue:function(d,g){if(typeof d!=="string"){g=d;d="fx"}if(g===
c)return h.queue(this[0],d);return this.each(function(){var m=h.queue(this,d,g);d==="fx"&&m[0]!=="inprogress"&&h.dequeue(this,d)})},dequeue:function(d){return this.each(function(){h.dequeue(this,d)})},delay:function(d,g){d=h.fx?h.fx.speeds[d]||d:d;g=g||"fx";return this.queue(g,function(){var m=this;setTimeout(function(){h.dequeue(m,g)},d)})},clearQueue:function(d){return this.queue(d||"fx",[])}});var B=/[\n\t]/g,D=/\s+/,P=/\r/g,S=/href|src|style/,$=/(button|input)/i,ja=/(button|input|object|select|textarea)/i,
ka=/^(a|area)$/i,ba=/radio|checkbox/;h.fn.extend({attr:function(d,g){return e(this,d,g,true,h.attr)},removeAttr:function(d){return this.each(function(){h.attr(this,d,"");this.nodeType===1&&this.removeAttribute(d)})},addClass:function(d){if(h.isFunction(d))return this.each(function(J){var R=h(this);R.addClass(d.call(this,J,R.attr("class")))});if(d&&typeof d==="string")for(var g=(d||"").split(D),m=0,p=this.length;m<p;m++){var o=this[m];if(o.nodeType===1)if(o.className){for(var A=" "+o.className+" ",
z=o.className,K=0,F=g.length;K<F;K++)if(A.indexOf(" "+g[K]+" ")<0)z+=" "+g[K];o.className=h.trim(z)}else o.className=d}return this},removeClass:function(d){if(h.isFunction(d))return this.each(function(F){var J=h(this);J.removeClass(d.call(this,F,J.attr("class")))});if(d&&typeof d==="string"||d===c)for(var g=(d||"").split(D),m=0,p=this.length;m<p;m++){var o=this[m];if(o.nodeType===1&&o.className)if(d){for(var A=(" "+o.className+" ").replace(B," "),z=0,K=g.length;z<K;z++)A=A.replace(" "+g[z]+" "," ");
o.className=h.trim(A)}else o.className=""}return this},toggleClass:function(d,g){var m=typeof d,p=typeof g==="boolean";if(h.isFunction(d))return this.each(function(o){var A=h(this);A.toggleClass(d.call(this,o,A.attr("class"),g),g)});return this.each(function(){if(m==="string")for(var o,A=0,z=h(this),K=g,F=d.split(D);o=F[A++];){K=p?K:!z.hasClass(o);z[K?"addClass":"removeClass"](o)}else if(m==="undefined"||m==="boolean"){this.className&&h.data(this,"__className__",this.className);this.className=this.className||
d===false?"":h.data(this,"__className__")||""}})},hasClass:function(d){d=" "+d+" ";for(var g=0,m=this.length;g<m;g++)if((" "+this[g].className+" ").replace(B," ").indexOf(d)>-1)return true;return false},val:function(d){if(d===c){var g=this[0];if(g){if(h.nodeName(g,"option"))return(g.attributes.value||{}).specified?g.value:g.text;if(h.nodeName(g,"select")){var m=g.selectedIndex,p=[],o=g.options;g=g.type==="select-one";if(m<0)return null;var A=g?m:0;for(m=g?m+1:o.length;A<m;A++){var z=o[A];if(z.selected){d=
h(z).val();if(g)return d;p.push(d)}}return p}if(ba.test(g.type)&&!h.support.checkOn)return g.getAttribute("value")===null?"on":g.value;return(g.value||"").replace(P,"")}return c}var K=h.isFunction(d);return this.each(function(F){var J=h(this),R=d;if(this.nodeType===1){if(K)R=d.call(this,F,J.val());if(typeof R==="number")R+="";if(h.isArray(R)&&ba.test(this.type))this.checked=h.inArray(J.val(),R)>=0;else if(h.nodeName(this,"select")){var W=h.makeArray(R);h("option",this).each(function(){this.selected=
h.inArray(h(this).val(),W)>=0});if(!W.length)this.selectedIndex=-1}else this.value=R}})}});h.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(d,g,m,p){if(!d||d.nodeType===3||d.nodeType===8)return c;if(p&&g in h.attrFn)return h(d)[g](m);p=d.nodeType!==1||!h.isXMLDoc(d);var o=m!==c;g=p&&h.props[g]||g;if(d.nodeType===1){var A=S.test(g);if(g in d&&p&&!A){if(o){g==="type"&&$.test(d.nodeName)&&d.parentNode&&h.error("type property can't be changed");
d[g]=m}if(h.nodeName(d,"form")&&d.getAttributeNode(g))return d.getAttributeNode(g).nodeValue;if(g==="tabIndex")return(g=d.getAttributeNode("tabIndex"))&&g.specified?g.value:ja.test(d.nodeName)||ka.test(d.nodeName)&&d.href?0:c;return d[g]}if(!h.support.style&&p&&g==="style"){if(o)d.style.cssText=""+m;return d.style.cssText}o&&d.setAttribute(g,""+m);d=!h.support.hrefNormalized&&p&&A?d.getAttribute(g,2):d.getAttribute(g);return d===null?c:d}return h.style(d,g,m)}});var ua=/\.(.*)$/,pa=function(d){return d.replace(/[^\w\s\.\|`]/g,
function(g){return"\\"+g})};h.event={add:function(d,g,m,p){if(!(d.nodeType===3||d.nodeType===8)){if(d.setInterval&&d!==b&&!d.frameElement)d=b;var o,A;if(m.handler){o=m;m=o.handler}if(!m.guid)m.guid=h.guid++;if(A=h.data(d)){var z=A.events=A.events||{},K=A.handle;if(!K)A.handle=K=function(){return typeof h!=="undefined"&&!h.event.triggered?h.event.handle.apply(K.elem,arguments):c};K.elem=d;g=g.split(" ");for(var F,J=0,R;F=g[J++];){A=o?h.extend({},o):{handler:m,data:p};if(F.indexOf(".")>-1){R=F.split(".");
F=R.shift();A.namespace=R.slice(0).sort().join(".")}else{R=[];A.namespace=""}A.type=F;A.guid=m.guid;var W=z[F],fa=h.event.special[F]||{};if(!W){W=z[F]=[];if(!fa.setup||fa.setup.call(d,p,R,K)===false)if(d.addEventListener)d.addEventListener(F,K,false);else d.attachEvent&&d.attachEvent("on"+F,K)}if(fa.add){fa.add.call(d,A);if(!A.handler.guid)A.handler.guid=m.guid}W.push(A);h.event.global[F]=true}d=null}}},global:{},remove:function(d,g,m,p){if(!(d.nodeType===3||d.nodeType===8)){var o,A=0,z,K,F,J,R,W,
fa=h.data(d),qa=fa&&fa.events;if(fa&&qa){if(g&&g.type){m=g.handler;g=g.type}if(!g||typeof g==="string"&&g.charAt(0)==="."){g=g||"";for(o in qa)h.event.remove(d,o+g)}else{for(g=g.split(" ");o=g[A++];){J=o;z=o.indexOf(".")<0;K=[];if(!z){K=o.split(".");o=K.shift();F=new RegExp("(^|\\.)"+h.map(K.slice(0).sort(),pa).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(R=qa[o])if(m){J=h.event.special[o]||{};for(na=p||0;na<R.length;na++){W=R[na];if(m.guid===W.guid){if(z||F.test(W.namespace)){p==null&&R.splice(na--,1);J.remove&&
J.remove.call(d,W)}if(p!=null)break}}if(R.length===0||p!=null&&R.length===1){if(!J.teardown||J.teardown.call(d,K)===false)xa(d,o,fa.handle);delete qa[o]}}else for(var na=0;na<R.length;na++){W=R[na];if(z||F.test(W.namespace)){h.event.remove(d,J,W.handler,na);R.splice(na--,1)}}}if(h.isEmptyObject(qa)){if(g=fa.handle)g.elem=null;delete fa.events;delete fa.handle;h.isEmptyObject(fa)&&h.removeData(d)}}}}},trigger:function(d,g,m,p){var o=d.type||d;if(!p){d=typeof d==="object"?d[ra]?d:h.extend(h.Event(o),
d):h.Event(o);if(o.indexOf("!")>=0){d.type=o=o.slice(0,-1);d.exclusive=true}if(!m){d.stopPropagation();h.event.global[o]&&h.each(h.cache,function(){this.events&&this.events[o]&&h.event.trigger(d,g,this.handle.elem)})}if(!m||m.nodeType===3||m.nodeType===8)return c;d.result=c;d.target=m;g=h.makeArray(g);g.unshift(d)}d.currentTarget=m;(p=h.data(m,"handle"))&&p.apply(m,g);p=m.parentNode||m.ownerDocument;try{if(!(m&&m.nodeName&&h.noData[m.nodeName.toLowerCase()]))if(m["on"+o]&&m["on"+o].apply(m,g)===false)d.result=
false}catch(A){}if(!d.isPropagationStopped()&&p)h.event.trigger(d,g,p,true);else if(!d.isDefaultPrevented()){p=d.target;var z,K=h.nodeName(p,"a")&&o==="click",F=h.event.special[o]||{};if((!F._default||F._default.call(m,d)===false)&&!K&&!(p&&p.nodeName&&h.noData[p.nodeName.toLowerCase()])){try{if(p[o]){if(z=p["on"+o])p["on"+o]=null;h.event.triggered=true;p[o]()}}catch(J){}if(z)p["on"+o]=z;h.event.triggered=false}}},handle:function(d){var g,m,p,o;d=arguments[0]=h.event.fix(d||b.event);d.currentTarget=
this;g=d.type.indexOf(".")<0&&!d.exclusive;if(!g){m=d.type.split(".");d.type=m.shift();p=new RegExp("(^|\\.)"+m.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}o=h.data(this,"events");m=o[d.type];if(o&&m){m=m.slice(0);o=0;for(var A=m.length;o<A;o++){var z=m[o];if(g||p.test(z.namespace)){d.handler=z.handler;d.data=z.data;d.handleObj=z;z=z.handler.apply(this,arguments);if(z!==c){d.result=z;if(z===false){d.preventDefault();d.stopPropagation()}}if(d.isImmediatePropagationStopped())break}}}return d.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 originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[ra])return d;var g=d;d=h.Event(g);for(var m=this.props.length,p;m;){p=this.props[--m];d[p]=g[p]}if(!d.target)d.target=d.srcElement||
E;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){g=E.documentElement;m=E.body;d.pageX=d.clientX+(g&&g.scrollLeft||m&&m.scrollLeft||0)-(g&&g.clientLeft||m&&m.clientLeft||0);d.pageY=d.clientY+(g&&g.scrollTop||m&&m.scrollTop||0)-(g&&g.clientTop||m&&m.clientTop||0)}if(!d.which&&(d.charCode||d.charCode===0?d.charCode:d.keyCode))d.which=d.charCode||d.keyCode;if(!d.metaKey&&
d.ctrlKey)d.metaKey=d.ctrlKey;if(!d.which&&d.button!==c)d.which=d.button&1?1:d.button&2?3:d.button&4?2:0;return d},guid:1E8,proxy:h.proxy,special:{ready:{setup:h.bindReady,teardown:h.noop},live:{add:function(d){h.event.add(this,d.origType,h.extend({},d,{handler:v}))},remove:function(d){var g=true,m=d.origType.replace(ua,"");h.each(h.data(this,"events").live||[],function(){if(m===this.origType.replace(ua,""))return g=false});g&&h.event.remove(this,d.origType,v)}},beforeunload:{setup:function(d,g,m){if(this.setInterval)this.onbeforeunload=
m;return false},teardown:function(d,g){if(this.onbeforeunload===g)this.onbeforeunload=null}}}};var xa=E.removeEventListener?function(d,g,m){d.removeEventListener(g,m,false)}:function(d,g,m){d.detachEvent("on"+g,m)};h.Event=function(d){if(!this.preventDefault)return new h.Event(d);if(d&&d.type){this.originalEvent=d;this.type=d.type}else this.type=d;this.timeStamp=i();this[ra]=true};h.Event.prototype={preventDefault:function(){this.isDefaultPrevented=r;var d=this.originalEvent;if(d){d.preventDefault&&
d.preventDefault();d.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=r;var d=this.originalEvent;if(d){d.stopPropagation&&d.stopPropagation();d.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=r;this.stopPropagation()},isDefaultPrevented:j,isPropagationStopped:j,isImmediatePropagationStopped:j};var Ea=function(d){var g=d.relatedTarget;try{for(;g&&g!==this;)g=g.parentNode;if(g!==this){d.type=d.data;h.event.handle.apply(this,arguments)}}catch(m){}},
Ha=function(d){d.type=d.data;h.event.handle.apply(this,arguments)};h.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,g){h.event.special[d]={setup:function(m){h.event.add(this,g,m&&m.selector?Ha:Ea,d)},teardown:function(m){h.event.remove(this,g,m&&m.selector?Ha:Ea)}}});if(!h.support.submitBubbles)h.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){h.event.add(this,"click.specialSubmit",function(d){var g=d.target,m=g.type;if((m==="submit"||m==="image")&&
h(g).closest("form").length)return n("submit",this,arguments)});h.event.add(this,"keypress.specialSubmit",function(d){var g=d.target,m=g.type;if((m==="text"||m==="password")&&h(g).closest("form").length&&d.keyCode===13)return n("submit",this,arguments)})}else return false},teardown:function(){h.event.remove(this,".specialSubmit")}};if(!h.support.changeBubbles){var Ca=/textarea|input|select/i,Da,Ya=function(d){var g=d.type,m=d.value;if(g==="radio"||g==="checkbox")m=d.checked;else if(g==="select-multiple")m=
d.selectedIndex>-1?h.map(d.options,function(p){return p.selected}).join("-"):"";else if(d.nodeName.toLowerCase()==="select")m=d.selectedIndex;return m},Oa=function(d,g){var m=d.target,p,o;if(!(!Ca.test(m.nodeName)||m.readOnly)){p=h.data(m,"_change_data");o=Ya(m);if(d.type!=="focusout"||m.type!=="radio")h.data(m,"_change_data",o);if(!(p===c||o===p))if(p!=null||o){d.type="change";return h.event.trigger(d,g,m)}}};h.event.special.change={filters:{focusout:Oa,click:function(d){var g=d.target,m=g.type;
if(m==="radio"||m==="checkbox"||g.nodeName.toLowerCase()==="select")return Oa.call(this,d)},keydown:function(d){var g=d.target,m=g.type;if(d.keyCode===13&&g.nodeName.toLowerCase()!=="textarea"||d.keyCode===32&&(m==="checkbox"||m==="radio")||m==="select-multiple")return Oa.call(this,d)},beforeactivate:function(d){d=d.target;h.data(d,"_change_data",Ya(d))}},setup:function(){if(this.type==="file")return false;for(var d in Da)h.event.add(this,d+".specialChange",Da[d]);return Ca.test(this.nodeName)},teardown:function(){h.event.remove(this,
".specialChange");return Ca.test(this.nodeName)}};Da=h.event.special.change.filters}E.addEventListener&&h.each({focus:"focusin",blur:"focusout"},function(d,g){function m(p){p=h.event.fix(p);p.type=g;return h.event.handle.call(this,p)}h.event.special[g]={setup:function(){this.addEventListener(d,m,true)},teardown:function(){this.removeEventListener(d,m,true)}}});h.each(["bind","one"],function(d,g){h.fn[g]=function(m,p,o){if(typeof m==="object"){for(var A in m)this[g](A,p,m[A],o);return this}if(h.isFunction(p)){o=
p;p=c}var z=g==="one"?h.proxy(o,function(F){h(this).unbind(F,z);return o.apply(this,arguments)}):o;if(m==="unload"&&g!=="one")this.one(m,p,o);else{A=0;for(var K=this.length;A<K;A++)h.event.add(this[A],m,z,p)}return this}});h.fn.extend({unbind:function(d,g){if(typeof d==="object"&&!d.preventDefault)for(var m in d)this.unbind(m,d[m]);else{m=0;for(var p=this.length;m<p;m++)h.event.remove(this[m],d,g)}return this},delegate:function(d,g,m,p){return this.live(g,m,p,d)},undelegate:function(d,g,m){return arguments.length===
0?this.unbind("live"):this.die(g,null,m,d)},trigger:function(d,g){return this.each(function(){h.event.trigger(d,g,this)})},triggerHandler:function(d,g){if(this[0]){d=h.Event(d);d.preventDefault();d.stopPropagation();h.event.trigger(d,g,this[0]);return d.result}},toggle:function(d){for(var g=arguments,m=1;m<g.length;)h.proxy(d,g[m++]);return this.click(h.proxy(d,function(p){var o=(h.data(this,"lastToggle"+d.guid)||0)%m;h.data(this,"lastToggle"+d.guid,o+1);p.preventDefault();return g[o].apply(this,
arguments)||false}))},hover:function(d,g){return this.mouseenter(d).mouseleave(g||d)}});var Za={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};h.each(["live","die"],function(d,g){h.fn[g]=function(m,p,o,A){var z,K=0,F,J,R=A||this.selector,W=A?this:h(this.context);if(h.isFunction(p)){o=p;p=c}for(m=(m||"").split(" ");(z=m[K++])!=null;){A=ua.exec(z);F="";if(A){F=A[0];z=z.replace(ua,"")}if(z==="hover")m.push("mouseenter"+F,"mouseleave"+F);else{J=z;if(z==="focus"||z==="blur"){m.push(Za[z]+
F);z+=F}else z=(Za[z]||z)+F;g==="live"?W.each(function(){h.event.add(this,u(z,R),{data:p,selector:R,handler:o,origType:z,origHandler:o,preType:J})}):W.unbind(u(z,R),o)}}return this}});h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(d,g){h.fn[g]=function(m){return m?this.bind(g,m):this.trigger(g)};if(h.attrFn)h.attrFn[g]=true});b.attachEvent&&
!b.addEventListener&&b.attachEvent("onunload",function(){for(var d in h.cache)if(h.cache[d].handle)try{h.event.remove(h.cache[d].handle.elem)}catch(g){}});(function(){function d(t){for(var y="",G,I=0;t[I];I++){G=t[I];if(G.nodeType===3||G.nodeType===4)y+=G.nodeValue;else if(G.nodeType!==8)y+=d(G.childNodes)}return y}function g(t,y,G,I,O,M){O=0;for(var X=I.length;O<X;O++){var V=I[O];if(V){V=V[t];for(var ea=false;V;){if(V.sizcache===G){ea=I[V.sizset];break}if(V.nodeType===1&&!M){V.sizcache=G;V.sizset=
O}if(V.nodeName.toLowerCase()===y){ea=V;break}V=V[t]}I[O]=ea}}}function m(t,y,G,I,O,M){O=0;for(var X=I.length;O<X;O++){var V=I[O];if(V){V=V[t];for(var ea=false;V;){if(V.sizcache===G){ea=I[V.sizset];break}if(V.nodeType===1){if(!M){V.sizcache=G;V.sizset=O}if(typeof y!=="string"){if(V===y){ea=true;break}}else if(F.filter(y,[V]).length>0){ea=V;break}}V=V[t]}I[O]=ea}}}var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
o=0,A=Object.prototype.toString,z=false,K=true;[0,0].sort(function(){K=false;return 0});var F=function(t,y,G,I){G=G||[];var O=y=y||E;if(y.nodeType!==1&&y.nodeType!==9)return[];if(!t||typeof t!=="string")return G;for(var M=[],X,V,ea,Ka,Fa=true,Ia=Y(y),Ga=t;(p.exec(""),X=p.exec(Ga))!==null;){Ga=X[3];M.push(X[1]);if(X[2]){Ka=X[3];break}}if(M.length>1&&R.exec(t))if(M.length===2&&J.relative[M[0]])V=Pa(M[0]+M[1],y);else for(V=J.relative[M[0]]?[y]:F(M.shift(),y);M.length;){t=M.shift();if(J.relative[t])t+=
M.shift();V=Pa(t,V)}else{if(!I&&M.length>1&&y.nodeType===9&&!Ia&&J.match.ID.test(M[0])&&!J.match.ID.test(M[M.length-1])){X=F.find(M.shift(),y,Ia);y=X.expr?F.filter(X.expr,X.set)[0]:X.set[0]}if(y){X=I?{expr:M.pop(),set:fa(I)}:F.find(M.pop(),M.length===1&&(M[0]==="~"||M[0]==="+")&&y.parentNode?y.parentNode:y,Ia);V=X.expr?F.filter(X.expr,X.set):X.set;if(M.length>0)ea=fa(V);else Fa=false;for(;M.length;){var za=M.pop();X=za;if(J.relative[za])X=M.pop();else za="";if(X==null)X=y;J.relative[za](ea,X,Ia)}}else ea=
[]}ea||(ea=V);ea||F.error(za||t);if(A.call(ea)==="[object Array]")if(Fa)if(y&&y.nodeType===1)for(t=0;ea[t]!=null;t++){if(ea[t]&&(ea[t]===true||ea[t].nodeType===1&&Aa(y,ea[t])))G.push(V[t])}else for(t=0;ea[t]!=null;t++)ea[t]&&ea[t].nodeType===1&&G.push(V[t]);else G.push.apply(G,ea);else fa(ea,G);if(Ka){F(Ka,O,G,I);F.uniqueSort(G)}return G};F.uniqueSort=function(t){if(na){z=K;t.sort(na);if(z)for(var y=1;y<t.length;y++)t[y]===t[y-1]&&t.splice(y--,1)}return t};F.matches=function(t,y){return F(t,null,
null,y)};F.find=function(t,y,G){var I,O;if(!t)return[];for(var M=0,X=J.order.length;M<X;M++){var V=J.order[M];if(O=J.leftMatch[V].exec(t)){var ea=O[1];O.splice(1,1);if(ea.substr(ea.length-1)!=="\\"){O[1]=(O[1]||"").replace(/\\/g,"");I=J.find[V](O,y,G);if(I!=null){t=t.replace(J.match[V],"");break}}}}I||(I=y.getElementsByTagName("*"));return{set:I,expr:t}};F.filter=function(t,y,G,I){for(var O=t,M=[],X=y,V,ea,Ka=y&&y[0]&&Y(y[0]);t&&y.length;){for(var Fa in J.filter)if((V=J.leftMatch[Fa].exec(t))!=null&&
V[2]){var Ia=J.filter[Fa],Ga,za;za=V[1];ea=false;V.splice(1,1);if(za.substr(za.length-1)!=="\\"){if(X===M)M=[];if(J.preFilter[Fa])if(V=J.preFilter[Fa](V,X,G,M,I,Ka)){if(V===true)continue}else ea=Ga=true;if(V)for(var La=0;(za=X[La])!=null;La++)if(za){Ga=Ia(za,V,La,X);var $a=I^!!Ga;if(G&&Ga!=null)if($a)ea=true;else X[La]=false;else if($a){M.push(za);ea=true}}if(Ga!==c){G||(X=M);t=t.replace(J.match[Fa],"");if(!ea)return[];break}}}if(t===O)if(ea==null)F.error(t);else break;O=t}return X};F.error=function(t){throw"Syntax error, unrecognized expression: "+
t;};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(t){return t.getAttribute("href")}},relative:{"+":function(t,y){var G=typeof y==="string",I=G&&!/\W/.test(y);G=G&&!I;if(I)y=y.toLowerCase();I=0;for(var O=t.length,M;I<O;I++)if(M=t[I]){for(;(M=M.previousSibling)&&M.nodeType!==1;);t[I]=G||M&&M.nodeName.toLowerCase()===y?M||false:M===y}G&&F.filter(y,t,true)},">":function(t,y){var G=typeof y==="string";if(G&&!/\W/.test(y)){y=y.toLowerCase();for(var I=0,O=t.length;I<O;I++){var M=
t[I];if(M){G=M.parentNode;t[I]=G.nodeName.toLowerCase()===y?G:false}}}else{I=0;for(O=t.length;I<O;I++)if(M=t[I])t[I]=G?M.parentNode:M.parentNode===y;G&&F.filter(y,t,true)}},"":function(t,y,G){var I=o++,O=m;if(typeof y==="string"&&!/\W/.test(y)){var M=y=y.toLowerCase();O=g}O("parentNode",y,I,t,M,G)},"~":function(t,y,G){var I=o++,O=m;if(typeof y==="string"&&!/\W/.test(y)){var M=y=y.toLowerCase();O=g}O("previousSibling",y,I,t,M,G)}},find:{ID:function(t,y,G){if(typeof y.getElementById!=="undefined"&&
!G)return(t=y.getElementById(t[1]))?[t]:[]},NAME:function(t,y){if(typeof y.getElementsByName!=="undefined"){var G=[];y=y.getElementsByName(t[1]);for(var I=0,O=y.length;I<O;I++)y[I].getAttribute("name")===t[1]&&G.push(y[I]);return G.length===0?null:G}},TAG:function(t,y){return y.getElementsByTagName(t[1])}},preFilter:{CLASS:function(t,y,G,I,O,M){t=" "+t[1].replace(/\\/g,"")+" ";if(M)return t;M=0;for(var X;(X=y[M])!=null;M++)if(X)if(O^(X.className&&(" "+X.className+" ").replace(/[\t\n]/g," ").indexOf(t)>=
0))G||I.push(X);else if(G)y[M]=false;return false},ID:function(t){return t[1].replace(/\\/g,"")},TAG:function(t){return t[1].toLowerCase()},CHILD:function(t){if(t[1]==="nth"){var y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(t[2]==="even"&&"2n"||t[2]==="odd"&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=y[1]+(y[2]||1)-0;t[3]=y[3]-0}t[0]=o++;return t},ATTR:function(t,y,G,I,O,M){y=t[1].replace(/\\/g,"");if(!M&&J.attrMap[y])t[1]=J.attrMap[y];if(t[2]==="~=")t[4]=" "+t[4]+" ";return t},PSEUDO:function(t,y,G,I,
O){if(t[1]==="not")if((p.exec(t[3])||"").length>1||/^\w/.test(t[3]))t[3]=F(t[3],null,null,y);else{t=F.filter(t[3],y,G,true^O);G||I.push.apply(I,t);return false}else if(J.match.POS.test(t[0])||J.match.CHILD.test(t[0]))return true;return t},POS:function(t){t.unshift(true);return t}},filters:{enabled:function(t){return t.disabled===false&&t.type!=="hidden"},disabled:function(t){return t.disabled===true},checked:function(t){return t.checked===true},selected:function(t){return t.selected===true},parent:function(t){return!!t.firstChild},
empty:function(t){return!t.firstChild},has:function(t,y,G){return!!F(G[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){return"text"===t.type},radio:function(t){return"radio"===t.type},checkbox:function(t){return"checkbox"===t.type},file:function(t){return"file"===t.type},password:function(t){return"password"===t.type},submit:function(t){return"submit"===t.type},image:function(t){return"image"===t.type},reset:function(t){return"reset"===t.type},button:function(t){return"button"===
t.type||t.nodeName.toLowerCase()==="button"},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)}},setFilters:{first:function(t,y){return y===0},last:function(t,y,G,I){return y===I.length-1},even:function(t,y){return y%2===0},odd:function(t,y){return y%2===1},lt:function(t,y,G){return y<G[3]-0},gt:function(t,y,G){return y>G[3]-0},nth:function(t,y,G){return G[3]-0===y},eq:function(t,y,G){return G[3]-0===y}},filter:{PSEUDO:function(t,y,G,I){var O=y[1],M=J.filters[O];if(M)return M(t,
G,y,I);else if(O==="contains")return(t.textContent||t.innerText||d([t])||"").indexOf(y[3])>=0;else if(O==="not"){y=y[3];G=0;for(I=y.length;G<I;G++)if(y[G]===t)return false;return true}else F.error("Syntax error, unrecognized expression: "+O)},CHILD:function(t,y){var G=y[1],I=t;switch(G){case "only":case "first":for(;I=I.previousSibling;)if(I.nodeType===1)return false;if(G==="first")return true;I=t;case "last":for(;I=I.nextSibling;)if(I.nodeType===1)return false;return true;case "nth":G=y[2];var O=
y[3];if(G===1&&O===0)return true;y=y[0];var M=t.parentNode;if(M&&(M.sizcache!==y||!t.nodeIndex)){var X=0;for(I=M.firstChild;I;I=I.nextSibling)if(I.nodeType===1)I.nodeIndex=++X;M.sizcache=y}t=t.nodeIndex-O;return G===0?t===0:t%G===0&&t/G>=0}},ID:function(t,y){return t.nodeType===1&&t.getAttribute("id")===y},TAG:function(t,y){return y==="*"&&t.nodeType===1||t.nodeName.toLowerCase()===y},CLASS:function(t,y){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(y)>-1},ATTR:function(t,y){var G=
y[1];t=J.attrHandle[G]?J.attrHandle[G](t):t[G]!=null?t[G]:t.getAttribute(G);G=t+"";var I=y[2];y=y[4];return t==null?I==="!=":I==="="?G===y:I==="*="?G.indexOf(y)>=0:I==="~="?(" "+G+" ").indexOf(y)>=0:!y?G&&t!==false:I==="!="?G!==y:I==="^="?G.indexOf(y)===0:I==="$="?G.substr(G.length-y.length)===y:I==="|="?G===y||G.substr(0,y.length+1)===y+"-":false},POS:function(t,y,G,I){var O=J.setFilters[y[2]];if(O)return O(t,G,y,I)}}},R=J.match.POS;for(var W in J.match){J.match[W]=new RegExp(J.match[W].source+/(?![^\[]*\])(?![^\(]*\))/.source);
J.leftMatch[W]=new RegExp(/(^(?:.|\r|\n)*?)/.source+J.match[W].source.replace(/\\(\d+)/g,function(t,y){return"\\"+(y-0+1)}))}var fa=function(t,y){t=Array.prototype.slice.call(t,0);if(y){y.push.apply(y,t);return y}return t};try{Array.prototype.slice.call(E.documentElement.childNodes,0)}catch(qa){fa=function(t,y){y=y||[];if(A.call(t)==="[object Array]")Array.prototype.push.apply(y,t);else if(typeof t.length==="number")for(var G=0,I=t.length;G<I;G++)y.push(t[G]);else for(G=0;t[G];G++)y.push(t[G]);return y}}var na;
if(E.documentElement.compareDocumentPosition)na=function(t,y){if(!t.compareDocumentPosition||!y.compareDocumentPosition){if(t==y)z=true;return t.compareDocumentPosition?-1:1}t=t.compareDocumentPosition(y)&4?-1:t===y?0:1;if(t===0)z=true;return t};else if("sourceIndex"in E.documentElement)na=function(t,y){if(!t.sourceIndex||!y.sourceIndex){if(t==y)z=true;return t.sourceIndex?-1:1}t=t.sourceIndex-y.sourceIndex;if(t===0)z=true;return t};else if(E.createRange)na=function(t,y){if(!t.ownerDocument||!y.ownerDocument){if(t==
y)z=true;return t.ownerDocument?-1:1}var G=t.ownerDocument.createRange(),I=y.ownerDocument.createRange();G.setStart(t,0);G.setEnd(t,0);I.setStart(y,0);I.setEnd(y,0);t=G.compareBoundaryPoints(Range.START_TO_END,I);if(t===0)z=true;return t};(function(){var t=E.createElement("div"),y="script"+(new Date).getTime();t.innerHTML="<a name='"+y+"'/>";var G=E.documentElement;G.insertBefore(t,G.firstChild);if(E.getElementById(y)){J.find.ID=function(I,O,M){if(typeof O.getElementById!=="undefined"&&!M)return(O=
O.getElementById(I[1]))?O.id===I[1]||typeof O.getAttributeNode!=="undefined"&&O.getAttributeNode("id").nodeValue===I[1]?[O]:c:[]};J.filter.ID=function(I,O){var M=typeof I.getAttributeNode!=="undefined"&&I.getAttributeNode("id");return I.nodeType===1&&M&&M.nodeValue===O}}G.removeChild(t);G=t=null})();(function(){var t=E.createElement("div");t.appendChild(E.createComment(""));if(t.getElementsByTagName("*").length>0)J.find.TAG=function(y,G){G=G.getElementsByTagName(y[1]);if(y[1]==="*"){y=[];for(var I=
0;G[I];I++)G[I].nodeType===1&&y.push(G[I]);G=y}return G};t.innerHTML="<a href='#'></a>";if(t.firstChild&&typeof t.firstChild.getAttribute!=="undefined"&&t.firstChild.getAttribute("href")!=="#")J.attrHandle.href=function(y){return y.getAttribute("href",2)};t=null})();E.querySelectorAll&&function(){var t=F,y=E.createElement("div");y.innerHTML="<p class='TEST'></p>";if(!(y.querySelectorAll&&y.querySelectorAll(".TEST").length===0)){F=function(I,O,M,X){O=O||E;if(!X&&O.nodeType===9&&!Y(O))try{return fa(O.querySelectorAll(I),
M)}catch(V){}return t(I,O,M,X)};for(var G in t)F[G]=t[G];y=null}}();(function(){var t=E.createElement("div");t.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!t.getElementsByClassName||t.getElementsByClassName("e").length===0)){t.lastChild.className="e";if(t.getElementsByClassName("e").length!==1){J.order.splice(1,0,"CLASS");J.find.CLASS=function(y,G,I){if(typeof G.getElementsByClassName!=="undefined"&&!I)return G.getElementsByClassName(y[1])};t=null}}})();var Aa=E.compareDocumentPosition?
function(t,y){return!!(t.compareDocumentPosition(y)&16)}:function(t,y){return t!==y&&(t.contains?t.contains(y):true)},Y=function(t){return(t=(t?t.ownerDocument||t:0).documentElement)?t.nodeName!=="HTML":false},Pa=function(t,y){var G=[],I="",O;for(y=y.nodeType?[y]:y;O=J.match.PSEUDO.exec(t);){I+=O[0];t=t.replace(J.match.PSEUDO,"")}t=J.relative[t]?t+"*":t;O=0;for(var M=y.length;O<M;O++)F(t,y[O],G);return F.filter(I,G)};h.find=F;h.expr=F.selectors;h.expr[":"]=h.expr.filters;h.unique=F.uniqueSort;h.text=
d;h.isXMLDoc=Y;h.contains=Aa})();var ib=/Until$/,jb=/^(?:parents|prevUntil|prevAll)/,kb=/,/;aa=Array.prototype.slice;var ab=function(d,g,m){if(h.isFunction(g))return h.grep(d,function(o,A){return!!g.call(o,A,o)===m});else if(g.nodeType)return h.grep(d,function(o){return o===g===m});else if(typeof g==="string"){var p=h.grep(d,function(o){return o.nodeType===1});if(ha.test(g))return h.filter(g,p,!m);else g=h.filter(g,p)}return h.grep(d,function(o){return h.inArray(o,g)>=0===m})};h.fn.extend({find:function(d){for(var g=
this.pushStack("","find",d),m=0,p=0,o=this.length;p<o;p++){m=g.length;h.find(d,this[p],g);if(p>0)for(var A=m;A<g.length;A++)for(var z=0;z<m;z++)if(g[z]===g[A]){g.splice(A--,1);break}}return g},has:function(d){var g=h(d);return this.filter(function(){for(var m=0,p=g.length;m<p;m++)if(h.contains(this,g[m]))return true})},not:function(d){return this.pushStack(ab(this,d,false),"not",d)},filter:function(d){return this.pushStack(ab(this,d,true),"filter",d)},is:function(d){return!!d&&h.filter(d,this).length>
0},closest:function(d,g){if(h.isArray(d)){var m=[],p=this[0],o,A={},z;if(p&&d.length){o=0;for(var K=d.length;o<K;o++){z=d[o];A[z]||(A[z]=h.expr.match.POS.test(z)?h(z,g||this.context):z)}for(;p&&p.ownerDocument&&p!==g;){for(z in A){o=A[z];if(o.jquery?o.index(p)>-1:h(p).is(o)){m.push({selector:z,elem:p});delete A[z]}}p=p.parentNode}}return m}var F=h.expr.match.POS.test(d)?h(d,g||this.context):null;return this.map(function(J,R){for(;R&&R.ownerDocument&&R!==g;){if(F?F.index(R)>-1:h(R).is(d))return R;
R=R.parentNode}return null})},index:function(d){if(!d||typeof d==="string")return h.inArray(this[0],d?h(d):this.parent().children());return h.inArray(d.jquery?d[0]:d,this)},add:function(d,g){d=typeof d==="string"?h(d,g||this.context):h.makeArray(d);g=h.merge(this.get(),d);return this.pushStack(w(d[0])||w(g[0])?g:h.unique(g))},andSelf:function(){return this.add(this.prevObject)}});h.each({parent:function(d){return(d=d.parentNode)&&d.nodeType!==11?d:null},parents:function(d){return h.dir(d,"parentNode")},
parentsUntil:function(d,g,m){return h.dir(d,"parentNode",m)},next:function(d){return h.nth(d,2,"nextSibling")},prev:function(d){return h.nth(d,2,"previousSibling")},nextAll:function(d){return h.dir(d,"nextSibling")},prevAll:function(d){return h.dir(d,"previousSibling")},nextUntil:function(d,g,m){return h.dir(d,"nextSibling",m)},prevUntil:function(d,g,m){return h.dir(d,"previousSibling",m)},siblings:function(d){return h.sibling(d.parentNode.firstChild,d)},children:function(d){return h.sibling(d.firstChild)},
contents:function(d){return h.nodeName(d,"iframe")?d.contentDocument||d.contentWindow.document:h.makeArray(d.childNodes)}},function(d,g){h.fn[d]=function(m,p){var o=h.map(this,g,m);ib.test(d)||(p=m);if(p&&typeof p==="string")o=h.filter(p,o);o=this.length>1?h.unique(o):o;if((this.length>1||kb.test(p))&&jb.test(d))o=o.reverse();return this.pushStack(o,d,aa.call(arguments).join(","))}});h.extend({filter:function(d,g,m){if(m)d=":not("+d+")";return h.find.matches(d,g)},dir:function(d,g,m){var p=[];for(d=
d[g];d&&d.nodeType!==9&&(m===c||d.nodeType!==1||!h(d).is(m));){d.nodeType===1&&p.push(d);d=d[g]}return p},nth:function(d,g,m){g=g||1;for(var p=0;d;d=d[m])if(d.nodeType===1&&++p===g)break;return d},sibling:function(d,g){for(var m=[];d;d=d.nextSibling)d.nodeType===1&&d!==g&&m.push(d);return m}});var bb=/ jQuery\d+="(?:\d+|null)"/g,Ma=/^\s+/,cb=/(<([\w:]+)[^>]*?)\/>/g,lb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,db=/<([\w:]+)/,mb=/<tbody/i,nb=/<|&#?\w+;/,Va=/<script|<object|<embed|<option|<style/i,
Wa=/checked\s*(?:[^=]|=\s*.checked.)/i,eb=function(d,g,m){return lb.test(m)?d:g+"></"+m+">"},Ba={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,"",""]};Ba.optgroup=Ba.option;Ba.tbody=Ba.tfoot=Ba.colgroup=Ba.caption=Ba.thead;Ba.th=
Ba.td;if(!h.support.htmlSerialize)Ba._default=[1,"div<div>","</div>"];h.fn.extend({text:function(d){if(h.isFunction(d))return this.each(function(g){var m=h(this);m.text(d.call(this,g,m.text()))});if(typeof d!=="object"&&d!==c)return this.empty().append((this[0]&&this[0].ownerDocument||E).createTextNode(d));return h.text(this)},wrapAll:function(d){if(h.isFunction(d))return this.each(function(m){h(this).wrapAll(d.call(this,m))});if(this[0]){var g=h(d,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&
g.insertBefore(this[0]);g.map(function(){for(var m=this;m.firstChild&&m.firstChild.nodeType===1;)m=m.firstChild;return m}).append(this)}return this},wrapInner:function(d){if(h.isFunction(d))return this.each(function(g){h(this).wrapInner(d.call(this,g))});return this.each(function(){var g=h(this),m=g.contents();m.length?m.wrapAll(d):g.append(d)})},wrap:function(d){return this.each(function(){h(this).wrapAll(d)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()},
append:function(){return this.domManip(arguments,true,function(d){this.nodeType===1&&this.appendChild(d)})},prepend:function(){return this.domManip(arguments,true,function(d){this.nodeType===1&&this.insertBefore(d,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 d=h(arguments[0]);d.push.apply(d,this.toArray());return this.pushStack(d,"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 d=this.pushStack(this,"after",arguments);d.push.apply(d,h(arguments[0]).toArray());return d}},remove:function(d,g){for(var m=0,p;(p=this[m])!=null;m++)if(!d||h.filter(d,[p]).length){if(!g&&p.nodeType===1){h.cleanData(p.getElementsByTagName("*"));h.cleanData([p])}p.parentNode&&p.parentNode.removeChild(p)}return this},empty:function(){for(var d=0,g;(g=
this[d])!=null;d++)for(g.nodeType===1&&h.cleanData(g.getElementsByTagName("*"));g.firstChild;)g.removeChild(g.firstChild);return this},clone:function(d){var g=this.map(function(){if(!h.support.noCloneEvent&&!h.isXMLDoc(this)){var m=this.outerHTML,p=this.ownerDocument;if(!m){m=p.createElement("div");m.appendChild(this.cloneNode(true));m=m.innerHTML}return h.clean([m.replace(bb,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(Ma,"")],p)[0]}else return this.cloneNode(true)});if(d===true){q(this,g);
q(this.find("*"),g.find("*"))}return g},html:function(d){if(d===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(bb,""):null;else if(typeof d==="string"&&!Va.test(d)&&(h.support.leadingWhitespace||!Ma.test(d))&&!Ba[(db.exec(d)||["",""])[1].toLowerCase()]){d=d.replace(cb,eb);try{for(var g=0,m=this.length;g<m;g++)if(this[g].nodeType===1){h.cleanData(this[g].getElementsByTagName("*"));this[g].innerHTML=d}}catch(p){this.empty().append(d)}}else h.isFunction(d)?this.each(function(o){var A=
h(this),z=A.html();A.empty().append(function(){return d.call(this,o,z)})}):this.empty().append(d);return this},replaceWith:function(d){if(this[0]&&this[0].parentNode){if(h.isFunction(d))return this.each(function(g){var m=h(this),p=m.html();m.replaceWith(d.call(this,g,p))});if(typeof d!=="string")d=h(d).detach();return this.each(function(){var g=this.nextSibling,m=this.parentNode;h(this).remove();g?h(g).before(d):h(m).append(d)})}else return this.pushStack(h(h.isFunction(d)?d():d),"replaceWith",d)},
detach:function(d){return this.remove(d,true)},domManip:function(d,g,m){function p(W){return h.nodeName(W,"table")?W.getElementsByTagName("tbody")[0]||W.appendChild(W.ownerDocument.createElement("tbody")):W}var o,A,z=d[0],K=[],F;if(!h.support.checkClone&&arguments.length===3&&typeof z==="string"&&Wa.test(z))return this.each(function(){h(this).domManip(d,g,m,true)});if(h.isFunction(z))return this.each(function(W){var fa=h(this);d[0]=z.call(this,W,g?fa.html():c);fa.domManip(d,g,m)});if(this[0]){o=z&&
z.parentNode;o=h.support.parentNode&&o&&o.nodeType===11&&o.childNodes.length===this.length?{fragment:o}:C(d,this,K);F=o.fragment;if(A=F.childNodes.length===1?(F=F.firstChild):F.firstChild){g=g&&h.nodeName(A,"tr");for(var J=0,R=this.length;J<R;J++)m.call(g?p(this[J],A):this[J],J>0||o.cacheable||this.length>1?F.cloneNode(true):F)}K.length&&h.each(K,a)}return this}});h.fragments={};h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,
g){h.fn[d]=function(m){var p=[];m=h(m);var o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&m.length===1){m[g](this[0]);return this}else{o=0;for(var A=m.length;o<A;o++){var z=(o>0?this.clone(true):this).get();h.fn[g].apply(h(m[o]),z);p=p.concat(z)}return this.pushStack(p,d,m.selector)}}});h.extend({clean:function(d,g,m,p){g=g||E;if(typeof g.createElement==="undefined")g=g.ownerDocument||g[0]&&g[0].ownerDocument||E;for(var o=[],A=0,z;(z=d[A])!=null;A++){if(typeof z===
"number")z+="";if(z){if(typeof z==="string"&&!nb.test(z))z=g.createTextNode(z);else if(typeof z==="string"){z=z.replace(cb,eb);var K=(db.exec(z)||["",""])[1].toLowerCase(),F=Ba[K]||Ba._default,J=F[0],R=g.createElement("div");for(R.innerHTML=F[1]+z+F[2];J--;)R=R.lastChild;if(!h.support.tbody){J=mb.test(z);K=K==="table"&&!J?R.firstChild&&R.firstChild.childNodes:F[1]==="<table>"&&!J?R.childNodes:[];for(F=K.length-1;F>=0;--F)h.nodeName(K[F],"tbody")&&!K[F].childNodes.length&&K[F].parentNode.removeChild(K[F])}!h.support.leadingWhitespace&&
Ma.test(z)&&R.insertBefore(g.createTextNode(Ma.exec(z)[0]),R.firstChild);z=R.childNodes}if(z.nodeType)o.push(z);else o=h.merge(o,z)}}if(m)for(A=0;o[A];A++)if(p&&h.nodeName(o[A],"script")&&(!o[A].type||o[A].type.toLowerCase()==="text/javascript"))p.push(o[A].parentNode?o[A].parentNode.removeChild(o[A]):o[A]);else{o[A].nodeType===1&&o.splice.apply(o,[A+1,0].concat(h.makeArray(o[A].getElementsByTagName("script"))));m.appendChild(o[A])}return o},cleanData:function(d){for(var g,m,p=h.cache,o=h.event.special,
A=h.support.deleteExpando,z=0,K;(K=d[z])!=null;z++)if(m=K[h.expando]){g=p[m];if(g.events)for(var F in g.events)o[F]?h.event.remove(K,F):xa(K,F,g.handle);if(A)delete K[h.expando];else K.removeAttribute&&K.removeAttribute(h.expando);delete p[m]}}});var ob=/z-?index|font-?weight|opacity|zoom|line-?height/i,fb=/alpha\([^)]*\)/,gb=/opacity=([^)]*)/,Qa=/float/i,Ra=/-([a-z])/ig,pb=/([A-Z])/g,qb=/^-?\d+(?:px)?$/i,rb=/^-?\d/,sb={position:"absolute",visibility:"hidden",display:"block"},tb=["Left","Right"],
ub=["Top","Bottom"],vb=E.defaultView&&E.defaultView.getComputedStyle,hb=h.support.cssFloat?"cssFloat":"styleFloat",Sa=function(d,g){return g.toUpperCase()};h.fn.css=function(d,g){return e(this,d,g,true,function(m,p,o){if(o===c)return h.curCSS(m,p);if(typeof o==="number"&&!ob.test(p))o+="px";h.style(m,p,o)})};h.extend({style:function(d,g,m){if(!d||d.nodeType===3||d.nodeType===8)return c;if((g==="width"||g==="height")&&parseFloat(m)<0)m=c;var p=d.style||d,o=m!==c;if(!h.support.opacity&&g==="opacity"){if(o){p.zoom=
1;g=parseInt(m,10)+""==="NaN"?"":"alpha(opacity="+m*100+")";d=p.filter||h.curCSS(d,"filter")||"";p.filter=fb.test(d)?d.replace(fb,g):g}return p.filter&&p.filter.indexOf("opacity=")>=0?parseFloat(gb.exec(p.filter)[1])/100+"":""}if(Qa.test(g))g=hb;g=g.replace(Ra,Sa);if(o)p[g]=m;return p[g]},css:function(d,g,m,p){if(g==="width"||g==="height"){var o,A=g==="width"?tb:ub;function z(){o=g==="width"?d.offsetWidth:d.offsetHeight;p!=="border"&&h.each(A,function(){p||(o-=parseFloat(h.curCSS(d,"padding"+this,
true))||0);if(p==="margin")o+=parseFloat(h.curCSS(d,"margin"+this,true))||0;else o-=parseFloat(h.curCSS(d,"border"+this+"Width",true))||0})}d.offsetWidth!==0?z():h.swap(d,sb,z);return Math.max(0,Math.round(o))}return h.curCSS(d,g,m)},curCSS:function(d,g,m){var p,o=d.style;if(!h.support.opacity&&g==="opacity"&&d.currentStyle){p=gb.test(d.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return p===""?"1":p}if(Qa.test(g))g=hb;if(!m&&o&&o[g])p=o[g];else if(vb){if(Qa.test(g))g="float";g=g.replace(pb,
"-$1").toLowerCase();o=d.ownerDocument.defaultView;if(!o)return null;if(d=o.getComputedStyle(d,null))p=d.getPropertyValue(g);if(g==="opacity"&&p==="")p="1"}else if(d.currentStyle){m=g.replace(Ra,Sa);p=d.currentStyle[g]||d.currentStyle[m];if(!qb.test(p)&&rb.test(p)){g=o.left;var A=d.runtimeStyle.left;d.runtimeStyle.left=d.currentStyle.left;o.left=m==="fontSize"?"1em":p||0;p=o.pixelLeft+"px";o.left=g;d.runtimeStyle.left=A}}return p},swap:function(d,g,m){var p={};for(var o in g){p[o]=d.style[o];d.style[o]=
g[o]}m.call(d);for(o in g)d.style[o]=p[o]}});if(h.expr&&h.expr.filters){h.expr.filters.hidden=function(d){var g=d.offsetWidth,m=d.offsetHeight,p=d.nodeName.toLowerCase()==="tr";return g===0&&m===0&&!p?true:g>0&&m>0&&!p?false:h.curCSS(d,"display")==="none"};h.expr.filters.visible=function(d){return!h.expr.filters.hidden(d)}}var wb=i(),xb=/<script(.|\s)*?\/script>/gi,yb=/select|textarea/i,zb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,Ja=/=\?(&|$)/,
Ta=/\?/,Ab=/(\?|&)_=.*?(&|$)/,Bb=/^(\w+:)?\/\/([^\/?#]+)/,Cb=/%20/g,Db=h.fn.load;h.fn.extend({load:function(d,g,m){if(typeof d!=="string")return Db.call(this,d);else if(!this.length)return this;var p=d.indexOf(" ");if(p>=0){var o=d.slice(p,d.length);d=d.slice(0,p)}p="GET";if(g)if(h.isFunction(g)){m=g;g=null}else if(typeof g==="object"){g=h.param(g,h.ajaxSettings.traditional);p="POST"}var A=this;h.ajax({url:d,type:p,dataType:"html",data:g,complete:function(z,K){if(K==="success"||K==="notmodified")A.html(o?
h("<div />").append(z.responseText.replace(xb,"")).find(o):z.responseText);m&&A.each(m,[z.responseText,K,z])}});return this},serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?h.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||yb.test(this.nodeName)||zb.test(this.type))}).map(function(d,g){d=h(this).val();return d==null?null:h.isArray(d)?h.map(d,function(m){return{name:g.name,
value:m}}):{name:g.name,value:d}}).get()}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,g){h.fn[g]=function(m){return this.bind(g,m)}});h.extend({get:function(d,g,m,p){if(h.isFunction(g)){p=p||m;m=g;g=null}return h.ajax({type:"GET",url:d,data:g,success:m,dataType:p})},getScript:function(d,g){return h.get(d,null,g,"script")},getJSON:function(d,g,m){return h.get(d,g,m,"json")},post:function(d,g,m,p){if(h.isFunction(g)){p=p||m;m=g;g={}}return h.ajax({type:"POST",
url:d,data:g,success:m,dataType:p})},ajaxSetup:function(d){h.extend(h.ajaxSettings,d)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:b.XMLHttpRequest&&(b.location.protocol!=="file:"||!b.ActiveXObject)?function(){return new b.XMLHttpRequest}:function(){try{return new b.ActiveXObject("Microsoft.XMLHTTP")}catch(d){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(d){function g(){o.success&&o.success.call(F,K,z,Y);o.global&&p("ajaxSuccess",[Y,o])}function m(){o.complete&&o.complete.call(F,Y,z);o.global&&p("ajaxComplete",[Y,o]);o.global&&!--h.active&&h.event.trigger("ajaxStop")}function p(O,M){(o.context?h(o.context):h.event).trigger(O,M)}var o=h.extend(true,{},h.ajaxSettings,d),A,z,K,F=d&&d.context||o,J=o.type.toUpperCase();if(o.data&&o.processData&&
typeof o.data!=="string")o.data=h.param(o.data,o.traditional);if(o.dataType==="jsonp"){if(J==="GET")Ja.test(o.url)||(o.url+=(Ta.test(o.url)?"&":"?")+(o.jsonp||"callback")+"=?");else if(!o.data||!Ja.test(o.data))o.data=(o.data?o.data+"&":"")+(o.jsonp||"callback")+"=?";o.dataType="json"}if(o.dataType==="json"&&(o.data&&Ja.test(o.data)||Ja.test(o.url))){A=o.jsonpCallback||"jsonp"+wb++;if(o.data)o.data=(o.data+"").replace(Ja,"="+A+"$1");o.url=o.url.replace(Ja,"="+A+"$1");o.dataType="script";b[A]=b[A]||
function(O){K=O;g();m();b[A]=c;try{delete b[A]}catch(M){}fa&&fa.removeChild(qa)}}if(o.dataType==="script"&&o.cache===null)o.cache=false;if(o.cache===false&&J==="GET"){var R=i(),W=o.url.replace(Ab,"$1_="+R+"$2");o.url=W+(W===o.url?(Ta.test(o.url)?"&":"?")+"_="+R:"")}if(o.data&&J==="GET")o.url+=(Ta.test(o.url)?"&":"?")+o.data;o.global&&!h.active++&&h.event.trigger("ajaxStart");R=(R=Bb.exec(o.url))&&(R[1]&&R[1]!==location.protocol||R[2]!==location.host);if(o.dataType==="script"&&J==="GET"&&R){var fa=
E.getElementsByTagName("head")[0]||E.documentElement,qa=E.createElement("script");qa.src=o.url;if(o.scriptCharset)qa.charset=o.scriptCharset;if(!A){var na=false;qa.onload=qa.onreadystatechange=function(){if(!na&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){na=true;g();m();qa.onload=qa.onreadystatechange=null;fa&&qa.parentNode&&fa.removeChild(qa)}}}fa.insertBefore(qa,fa.firstChild);return c}var Aa=false,Y=o.xhr();if(Y){o.username?Y.open(J,o.url,o.async,o.username,o.password):
Y.open(J,o.url,o.async);try{if(o.data||d&&d.contentType)Y.setRequestHeader("Content-Type",o.contentType);if(o.ifModified){h.lastModified[o.url]&&Y.setRequestHeader("If-Modified-Since",h.lastModified[o.url]);h.etag[o.url]&&Y.setRequestHeader("If-None-Match",h.etag[o.url])}R||Y.setRequestHeader("X-Requested-With","XMLHttpRequest");Y.setRequestHeader("Accept",o.dataType&&o.accepts[o.dataType]?o.accepts[o.dataType]+", */*":o.accepts._default)}catch(Pa){}if(o.beforeSend&&o.beforeSend.call(F,Y,o)===false){o.global&&
!--h.active&&h.event.trigger("ajaxStop");Y.abort();return false}o.global&&p("ajaxSend",[Y,o]);var t=Y.onreadystatechange=function(O){if(!Y||Y.readyState===0||O==="abort"){Aa||m();Aa=true;if(Y)Y.onreadystatechange=h.noop}else if(!Aa&&Y&&(Y.readyState===4||O==="timeout")){Aa=true;Y.onreadystatechange=h.noop;z=O==="timeout"?"timeout":!h.httpSuccess(Y)?"error":o.ifModified&&h.httpNotModified(Y,o.url)?"notmodified":"success";var M;if(z==="success")try{K=h.httpData(Y,o.dataType,o)}catch(X){z="parsererror";
M=X}if(z==="success"||z==="notmodified")A||g();else h.handleError(o,Y,z,M);m();O==="timeout"&&Y.abort();if(o.async)Y=null}};try{var y=Y.abort;Y.abort=function(){Y&&y.call(Y);t("abort")}}catch(G){}o.async&&o.timeout>0&&setTimeout(function(){Y&&!Aa&&t("timeout")},o.timeout);try{Y.send(J==="POST"||J==="PUT"||J==="DELETE"?o.data:null)}catch(I){h.handleError(o,Y,null,I);m()}o.async||t();return Y}},handleError:function(d,g,m,p){if(d.error)d.error.call(d.context||d,g,m,p);if(d.global)(d.context?h(d.context):
h.event).trigger("ajaxError",[g,d,p])},active:0,httpSuccess:function(d){try{return!d.status&&location.protocol==="file:"||d.status>=200&&d.status<300||d.status===304||d.status===1223||d.status===0}catch(g){}return false},httpNotModified:function(d,g){var m=d.getResponseHeader("Last-Modified"),p=d.getResponseHeader("Etag");if(m)h.lastModified[g]=m;if(p)h.etag[g]=p;return d.status===304||d.status===0},httpData:function(d,g,m){var p=d.getResponseHeader("content-type")||"",o=g==="xml"||!g&&p.indexOf("xml")>=
0;d=o?d.responseXML:d.responseText;o&&d.documentElement.nodeName==="parsererror"&&h.error("parsererror");if(m&&m.dataFilter)d=m.dataFilter(d,g);if(typeof d==="string")if(g==="json"||!g&&p.indexOf("json")>=0)d=h.parseJSON(d);else if(g==="script"||!g&&p.indexOf("javascript")>=0)h.globalEval(d);return d},param:function(d,g){function m(z,K){if(h.isArray(K))h.each(K,function(F,J){g||/\[\]$/.test(z)?p(z,J):m(z+"["+(typeof J==="object"||h.isArray(J)?F:"")+"]",J)});else!g&&K!=null&&typeof K==="object"?h.each(K,
function(F,J){m(z+"["+F+"]",J)}):p(z,K)}function p(z,K){K=h.isFunction(K)?K():K;o[o.length]=encodeURIComponent(z)+"="+encodeURIComponent(K)}var o=[];if(g===c)g=h.ajaxSettings.traditional;if(h.isArray(d)||d.jquery)h.each(d,function(){p(this.name,this.value)});else for(var A in d)m(A,d[A]);return o.join("&").replace(Cb,"+")}});var Ua={},Eb=/toggle|show|hide/,Fb=/^([+-]=)?([\d+-.]+)(.*)$/,Na,Xa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft",
"paddingRight"],["opacity"]];h.fn.extend({show:function(d,g){if(d||d===0)return this.animate(H("show",3),d,g);else{d=0;for(g=this.length;d<g;d++){var m=h.data(this[d],"olddisplay");this[d].style.display=m||"";if(h.css(this[d],"display")==="none"){m=this[d].nodeName;var p;if(Ua[m])p=Ua[m];else{var o=h("<"+m+" />").appendTo("body");p=o.css("display");if(p==="none")p="block";o.remove();Ua[m]=p}h.data(this[d],"olddisplay",p)}}d=0;for(g=this.length;d<g;d++)this[d].style.display=h.data(this[d],"olddisplay")||
"";return this}},hide:function(d,g){if(d||d===0)return this.animate(H("hide",3),d,g);else{d=0;for(g=this.length;d<g;d++){var m=h.data(this[d],"olddisplay");!m&&m!=="none"&&h.data(this[d],"olddisplay",h.css(this[d],"display"))}d=0;for(g=this.length;d<g;d++)this[d].style.display="none";return this}},_toggle:h.fn.toggle,toggle:function(d,g){var m=typeof d==="boolean";if(h.isFunction(d)&&h.isFunction(g))this._toggle.apply(this,arguments);else d==null||m?this.each(function(){var p=m?d:h(this).is(":hidden");
h(this)[p?"show":"hide"]()}):this.animate(H("toggle",3),d,g);return this},fadeTo:function(d,g,m){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:g},d,m)},animate:function(d,g,m,p){var o=h.speed(g,m,p);if(h.isEmptyObject(d))return this.each(o.complete);return this[o.queue===false?"each":"queue"](function(){var A=h.extend({},o),z,K=this.nodeType===1&&h(this).is(":hidden"),F=this;for(z in d){var J=z.replace(Ra,Sa);if(z!==J){d[J]=d[z];delete d[z];z=J}if(d[z]==="hide"&&K||
d[z]==="show"&&!K)return A.complete.call(this);if((z==="height"||z==="width")&&this.style){A.display=h.css(this,"display");A.overflow=this.style.overflow}if(h.isArray(d[z])){(A.specialEasing=A.specialEasing||{})[z]=d[z][1];d[z]=d[z][0]}}if(A.overflow!=null)this.style.overflow="hidden";A.curAnim=h.extend({},d);h.each(d,function(R,W){var fa=new h.fx(F,A,R);if(Eb.test(W))fa[W==="toggle"?K?"show":"hide":W](d);else{var qa=Fb.exec(W),na=fa.cur(true)||0;if(qa){W=parseFloat(qa[2]);var Aa=qa[3]||"px";if(Aa!==
"px"){F.style[R]=(W||1)+Aa;na=(W||1)/fa.cur(true)*na;F.style[R]=na+Aa}if(qa[1])W=(qa[1]==="-="?-1:1)*W+na;fa.custom(na,W,Aa)}else fa.custom(na,W,"")}});return true})},stop:function(d,g){var m=h.timers;d&&this.queue([]);this.each(function(){for(var p=m.length-1;p>=0;p--)if(m[p].elem===this){g&&m[p](true);m.splice(p,1)}});g||this.dequeue();return this}});h.each({slideDown:H("show",1),slideUp:H("hide",1),slideToggle:H("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(d,g){h.fn[d]=
function(m,p){return this.animate(g,m,p)}});h.extend({speed:function(d,g,m){var p=d&&typeof d==="object"?d:{complete:m||!m&&g||h.isFunction(d)&&d,duration:d,easing:m&&g||g&&!h.isFunction(g)&&g};p.duration=h.fx.off?0:typeof p.duration==="number"?p.duration:h.fx.speeds[p.duration]||h.fx.speeds._default;p.old=p.complete;p.complete=function(){p.queue!==false&&h(this).dequeue();h.isFunction(p.old)&&p.old.call(this)};return p},easing:{linear:function(d,g,m,p){return m+p*d},swing:function(d,g,m,p){return(-Math.cos(d*
Math.PI)/2+0.5)*p+m}},timers:[],fx:function(d,g,m){this.options=g;this.elem=d;this.prop=m;if(!g.orig)g.orig={}}});h.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(h.fx.step[this.prop]||h.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(d){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(d=parseFloat(h.css(this.elem,
this.prop,d)))&&d>-10000?d:parseFloat(h.curCSS(this.elem,this.prop))||0},custom:function(d,g,m){function p(A){return o.step(A)}this.startTime=i();this.start=d;this.end=g;this.unit=m||this.unit||"px";this.now=this.start;this.pos=this.state=0;var o=this;p.elem=this.elem;if(p()&&h.timers.push(p)&&!Na)Na=setInterval(h.fx.tick,13)},show:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());h(this.elem).show()},
hide:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(d){var g=i(),m=true;if(d||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 p in this.options.curAnim)if(this.options.curAnim[p]!==true)m=false;if(m){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;d=h.data(this.elem,"olddisplay");this.elem.style.display=
d?d:this.options.display;if(h.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&h(this.elem).hide();if(this.options.hide||this.options.show)for(var o in this.options.curAnim)h.style(this.elem,o,this.options.orig[o]);this.options.complete.call(this.elem)}return false}else{o=g-this.startTime;this.state=o/this.options.duration;d=this.options.easing||(h.easing.swing?"swing":"linear");this.pos=h.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||
d](this.state,o,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};h.extend(h.fx,{tick:function(){for(var d=h.timers,g=0;g<d.length;g++)d[g]()||d.splice(g--,1);d.length||h.fx.stop()},stop:function(){clearInterval(Na);Na=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(d){h.style(d.elem,"opacity",d.now)},_default:function(d){if(d.elem.style&&d.elem.style[d.prop]!=null)d.elem.style[d.prop]=(d.prop==="width"||d.prop==="height"?
Math.max(0,d.now):d.now)+d.unit;else d.elem[d.prop]=d.now}}});if(h.expr&&h.expr.filters)h.expr.filters.animated=function(d){return h.grep(h.timers,function(g){return d===g.elem}).length};h.fn.offset="getBoundingClientRect"in E.documentElement?function(d){var g=this[0];if(d)return this.each(function(o){h.offset.setOffset(this,d,o)});if(!g||!g.ownerDocument)return null;if(g===g.ownerDocument.body)return h.offset.bodyOffset(g);var m=g.getBoundingClientRect(),p=g.ownerDocument;g=p.body;p=p.documentElement;
return{top:m.top+(self.pageYOffset||h.support.boxModel&&p.scrollTop||g.scrollTop)-(p.clientTop||g.clientTop||0),left:m.left+(self.pageXOffset||h.support.boxModel&&p.scrollLeft||g.scrollLeft)-(p.clientLeft||g.clientLeft||0)}}:function(d){var g=this[0];if(d)return this.each(function(R){h.offset.setOffset(this,d,R)});if(!g||!g.ownerDocument)return null;if(g===g.ownerDocument.body)return h.offset.bodyOffset(g);h.offset.initialize();var m=g.offsetParent,p=g,o=g.ownerDocument,A,z=o.documentElement,K=o.body;
p=(o=o.defaultView)?o.getComputedStyle(g,null):g.currentStyle;for(var F=g.offsetTop,J=g.offsetLeft;(g=g.parentNode)&&g!==K&&g!==z;){if(h.offset.supportsFixedPosition&&p.position==="fixed")break;A=o?o.getComputedStyle(g,null):g.currentStyle;F-=g.scrollTop;J-=g.scrollLeft;if(g===m){F+=g.offsetTop;J+=g.offsetLeft;if(h.offset.doesNotAddBorder&&!(h.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.nodeName))){F+=parseFloat(A.borderTopWidth)||0;J+=parseFloat(A.borderLeftWidth)||0}p=m;m=g.offsetParent}if(h.offset.subtractsBorderForOverflowNotVisible&&
A.overflow!=="visible"){F+=parseFloat(A.borderTopWidth)||0;J+=parseFloat(A.borderLeftWidth)||0}p=A}if(p.position==="relative"||p.position==="static"){F+=K.offsetTop;J+=K.offsetLeft}if(h.offset.supportsFixedPosition&&p.position==="fixed"){F+=Math.max(z.scrollTop,K.scrollTop);J+=Math.max(z.scrollLeft,K.scrollLeft)}return{top:F,left:J}};h.offset={initialize:function(){var d=E.body,g=E.createElement("div"),m,p,o,A=parseFloat(h.curCSS(d,"marginTop",true))||0;h.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>";d.insertBefore(g,d.firstChild);m=g.firstChild;p=m.firstChild;o=m.nextSibling.firstChild.firstChild;this.doesNotAddBorder=p.offsetTop!==
5;this.doesAddBorderForTableAndCells=o.offsetTop===5;p.style.position="fixed";p.style.top="20px";this.supportsFixedPosition=p.offsetTop===20||p.offsetTop===15;p.style.position=p.style.top="";m.style.overflow="hidden";m.style.position="relative";this.subtractsBorderForOverflowNotVisible=p.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==A;d.removeChild(g);h.offset.initialize=h.noop},bodyOffset:function(d){var g=d.offsetTop,m=d.offsetLeft;h.offset.initialize();if(h.offset.doesNotIncludeMarginInBodyOffset){g+=
parseFloat(h.curCSS(d,"marginTop",true))||0;m+=parseFloat(h.curCSS(d,"marginLeft",true))||0}return{top:g,left:m}},setOffset:function(d,g,m){if(/static/.test(h.curCSS(d,"position")))d.style.position="relative";var p=h(d),o=p.offset(),A=parseInt(h.curCSS(d,"top",true),10)||0,z=parseInt(h.curCSS(d,"left",true),10)||0;if(h.isFunction(g))g=g.call(d,m,o);m={top:g.top-o.top+A,left:g.left-o.left+z};"using"in g?g.using.call(d,m):p.css(m)}};h.fn.extend({position:function(){if(!this[0])return null;var d=this[0],
g=this.offsetParent(),m=this.offset(),p=/^body|html$/i.test(g[0].nodeName)?{top:0,left:0}:g.offset();m.top-=parseFloat(h.curCSS(d,"marginTop",true))||0;m.left-=parseFloat(h.curCSS(d,"marginLeft",true))||0;p.top+=parseFloat(h.curCSS(g[0],"borderTopWidth",true))||0;p.left+=parseFloat(h.curCSS(g[0],"borderLeftWidth",true))||0;return{top:m.top-p.top,left:m.left-p.left}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent||E.body;d&&!/^body|html$/i.test(d.nodeName)&&h.css(d,
"position")==="static";)d=d.offsetParent;return d})}});h.each(["Left","Top"],function(d,g){var m="scroll"+g;h.fn[m]=function(p){var o=this[0],A;if(!o)return null;return p!==c?this.each(function(){if(A=N(this))A.scrollTo(!d?p:h(A).scrollLeft(),d?p:h(A).scrollTop());else this[m]=p}):(A=N(o))?"pageXOffset"in A?A[d?"pageYOffset":"pageXOffset"]:h.support.boxModel&&A.document.documentElement[m]||A.document.body[m]:o[m]}});h.each(["Height","Width"],function(d,g){var m=g.toLowerCase();h.fn["inner"+g]=function(){return this[0]?
h.css(this[0],m,false,"padding"):null};h.fn["outer"+g]=function(p){return this[0]?h.css(this[0],m,false,p?"margin":"border"):null};h.fn[m]=function(p){var o=this[0];if(!o)return p==null?null:this;if(h.isFunction(p))return this.each(function(A){var z=h(this);z[m](p.call(this,A,z[m]()))});return"scrollTo"in o&&o.document?o.document.compatMode==="CSS1Compat"&&o.document.documentElement["client"+g]||o.document.body["client"+g]:o.nodeType===9?Math.max(o.documentElement["client"+g],o.body["scroll"+g],o.documentElement["scroll"+
g],o.body["offset"+g],o.documentElement["offset"+g]):p===c?h.css(o,m):this.css(m,typeof p==="string"?p:p+"px")}});b.jQuery=b.$=h})(window);(function(b){b.extend(b.expr[":"],{icontains:function(c,f,a){return(c.textContent||c.innerText||jQuery(c).text()||"").toLowerCase().indexOf(a[3].toLowerCase())>=0}});b.iterators={getText:function(){return b(this).text()},parseInt:function(c){return parseInt(c,10)}};b.extend({range:function(){if(!arguments.length)return[];var c,f,a;if(arguments.length==1){c=0;f=arguments[0]-1;a=1}else{c=arguments[0];f=arguments[1]-1;a=arguments[2]||1}if(a<0&&c>=f){a*=-1;var e=c;c=f;f=e;c+=(f-c)%a}e=[];for(c=c;c<=f;c+=
a)e.push(c);return e},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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},keyIs:function(c,f){return parseInt(b.keyCode[c.toUpperCase()],10)==parseInt(typeof f=="number"?f:f.keyCode,10)},keys:function(c){var f=[];for(k in c)f.push(k);return f},
redirect:function(c){return window.location.href=c},stop:function(c,f,a){f&&c.preventDefault();a&&c.stopPropagation();return f&&false||true},basename:function(c){c=c.split("/");return c[c.length]===""&&s||c.slice(0,c.length).join("/")},filename:function(c){return c.split("/").pop()},filesizeformat:function(c,f){c=parseInt(c,10);f=f||["byte","bytes","KB","MB","GB"];if(isNaN(c)||c===0)return"0 "+f[0];if(c==1)return"1 "+f[0];if(c<1024)return c.toFixed(2)+" "+f[1];if(c<1048576)return(c/1024).toFixed(2)+
" "+f[2];return c<1073741824?(c/1048576).toFixed(2)+" "+f[3]:(c/1073741824).toFixed(2)+" "+f[4]},fileExtension:function(c){c=c.split(".");return c[c.length-1]||false},isString:function(c){return typeof c=="string"&&true||false},isRegExp:function(c){return c&&c.constructor.toString().indexOf("RegExp()")!=-1||false},isObject:function(c){return typeof c=="object"},toCurrency:function(c){c=parseFloat(c,10).toFixed(2);return c=="NaN"?"0.00":c},pxToEm:function(c,f){f=jQuery.extend({scope:"body",reverse:false},
f);c=c===""?0:parseFloat(c);var a,e=function(){var i=document.documentElement;return self.innerWidth||i&&i.clientWidth||document.body.clientWidth};a=f.scope=="body"&&b.browser.msie&&(parseFloat(b("body").css("font-size"))/e()).toFixed(1)>0?function(){return(parseFloat(b("body").css("font-size"))/e()).toFixed(3)*16}():parseFloat(jQuery(f.scope).css("font-size"));return f.reverse===true?(c*a).toFixed(2)+"px":(c/a).toFixed(2)+"em"}});b.extend(b.fn,{type:function(){try{return b(this).get(0).nodeName.toLowerCase()}catch(c){return false}},
selectRange:function(c,f){if(b(this).get(0).createTextRange){var a=b(this).get(0).createTextRange();a.collapse(true);a.moveEnd("character",f);a.moveStart("character",c);a.select()}else b(this).get(0).setSelectionRange&&b(this).bind("focus",function(e){e.preventDefault()}).get(0).setSelectionRange(c,f);return b(this)},equalHeights:function(c){b(this).each(function(){var f=0;b(this).children().each(function(){if(b(this).height()>f)f=b(this).height()});if(!c||!b.pxToEm)f=b.pxToEm(f);b.browser.msie&&
b.browser.version==6&&b(this).children().css({height:f});b(this).children().css({"min-height":f})});return this},delay:function(c,f){jQuery.fx.step.delay=function(){};return this.animate({delay:1},c,f)}})})(jQuery);
(function(b){var c={strConversion:{__repr:function(e){switch(this.__getType(e)){case "array":case "date":case "number":return e.toString();case "object":var i=[];for(x=0;x<e.length;e++)i.push(e+": "+this.__repr(e[x]));return i.join(", ");case "string":return e;default:return e}},__getType:function(e){if(!e||!e.constructor)return typeof e;var i=e.constructor.toString().match(/Array|Number|String|Object|Date/);return i&&i[0].toLowerCase()||typeof e},__pad:function(e,i,j,r){j=j||" ";var n=e;if(i-e.length>
0)n=(new Array(Math.ceil(i/j.length))).join(j).substr(0,r=!r?i:r==1?0:Math.ceil(i/2))+e+j.substr(0,i-r);return n},__getInput:function(e,i){var j=e.getKey();switch(this.__getType(i)){case "object":var r=j.split(".");i=i;for(var n=0;n<r.length;n++)i=i[r[n]];if(typeof i!="undefined"){if(c.strConversion.__getType(i)=="array")return e.getFormat().match(/\.\*/)&&i[1]||i;return i}break;case "array":j=parseInt(j,10);return e.getFormat().match(/\.\*/)&&typeof i[j+1]!="undefined"?i[j+1]:typeof i[j]!="undefined"?
i[j]:j}return"{"+j+"}"},__formatToken:function(e,i){e=new f(e,i);return c.strConversion[e.getFormat().slice(-1)](this.__getInput(e,i),e)},d:function(e,i){e=parseInt(e,10);var j=i.getPaddingLength();return j?this.__pad(e.toString(),j,i.getPaddingString(),0):e},i:function(e,i){return this.d(e,i)},o:function(e,i){e=e.toString(8);if(i.isAlternate())e=this.__pad(e,e.length+1,"0",0);return this.__pad(e,i.getPaddingLength(),i.getPaddingString(),0)},u:function(e,i){return Math.abs(this.d(e,i))},x:function(e,
i){e=parseInt(e,10).toString(16);e=this.__pad(e,i.getPaddingLength(),i.getPaddingString(),0);return i.isAlternate()?"0x"+e:e},X:function(e,i){return this.x(e,i).toUpperCase()},e:function(e,i){return parseFloat(e,10).toExponential(i.getPrecision())},E:function(e,i){return this.e(e,i).toUpperCase()},f:function(e,i){return this.__pad(parseFloat(e,10).toFixed(i.getPrecision()),i.getPaddingLength(),i.getPaddingString(),0)},F:function(e,i){return this.f(e,i)},g:function(e,i){e=parseFloat(e,10);return e.toString().length>
6?Math.round(e.toExponential(i.getPrecision())):e},G:function(e,i){return this.g(e,i)},c:function(e){return(e=e.match(/\w|\d/))&&e[0]||""},r:function(e){return this.__repr(e)},s:function(e){return e.toString&&e.toString()||""+e}},format:function(e,i){var j=0,r=0,n=[],v="",u=(e||"").split("");for(r=0;r<u.length;r++)if(u[r]=="{"&&u[r+1]!="{"){j=e.indexOf("}",r);v=u.slice(r+1,j).join("");if(u[r-1]!="{"&&u[j+1]!="}"){var w=typeof arguments[1]!="object"?a(arguments,2):i||[];n.push(c.strConversion.__formatToken(v,
w))}else n.push(v)}else if(r>j||n.length<1)n.push(u[r]);return n.length>1?n.join(""):n[0]},calc:function(e,i){return eval(format(e,i))},repeat:function(e,i){return(new Array(i+1)).join(e)},UTF8encode:function(e){return unescape(encodeURIComponent(e))},UTF8decode:function(e){return decodeURIComponent(escape(e))},tpl:function(){if(arguments.length==2&&b.isArray(arguments[1])){this[arguments[0]]=arguments[1].join("");return b(this[arguments[0]])}if(arguments.length==2&&b.isString(arguments[1])){this[arguments[0]]=
arguments[1];return b(this[arguments[0]])}if(arguments.length==1)return b(this[arguments[0]]);if(arguments.length==2&&arguments[1]==false)return this[arguments[0]];if(arguments.length==2&&b.isObject(arguments[1]))return b(b.format(this[arguments[0]],arguments[1]));if(arguments.length==3&&b.isObject(arguments[1]))return arguments[2]==true?b.format(this[arguments[0]],arguments[1]):b(b.format(this[arguments[0]],arguments[1]))}},f=function(e,i){this.__arg=e;this.__args=i;this.__max_precision=parseFloat("1."+
(new Array(32)).join("1"),10).toString().length-3;this.__def_precision=6;this.getString=function(){return this.__arg};this.getKey=function(){return this.__arg.split(":")[0]};this.getFormat=function(){var j=this.getString().split(":");return j&&j[1]?j[1]:"s"};this.getPrecision=function(){var j=this.getFormat().match(/\.(\d+|\*)/g);if(j){j=j[0].slice(1);return j!="*"?parseInt(j,10):c.strConversion.__getType(this.__args)=="array"?this.__args[1]&&this.__args[0]||this.__def_precision:c.strConversion.__getType(this.__args)==
"object"?this.__args[this.getKey()]&&this.__args[this.getKey()][0]||this.__def_precision:this.__def_precision}else return this.__def_precision};this.getPaddingLength=function(){var j=false;if(this.isAlternate())if((j=this.getString().match(/0?#0?(\d+)/))&&j[1])return parseInt(j[1],10);return(j=this.getString().match(/(0|\.)(\d+|\*)/g))&&parseInt(j[0].slice(1),10)||0};this.getPaddingString=function(){var j="";if(this.isAlternate())j=" ";if(this.getFormat().match(/#0|0#|^0|\.\d+/))j="0";return j};this.getFlags=
function(){var j=this.getString().matc(/^(0|\#|\-|\+|\s)+/);return j&&j[0].split("")||[]};this.isAlternate=function(){return!!this.getFormat().match(/^0?#/)}},a=function(e,i){var j=[];l=e.length;for(x=(i||0)-1;x<l;x++)j.push(e[x]);return j};b.extend(c)})(jQuery);
(function(b){var c=window.location.hash,f=[];b.extend({anchorHandler:{apply:function(){b.map(f,function(a){var e=c.match(a.r)&&c.match(a.r)[0]||false;if(e)a.cb.apply(b("a[href*="+e+"]").get(0),[a.r,c||""])});return b.anchorHandler},add:function(a,e,i){var j=b.extend({handleClick:true,preserveHash:true},i);j.handleClick&&b("a[href*=#]").each(function(r,n){n.href.match(a)&&b(n).bind("click.anchorHandler",function(){if(j.preserveHash)window.location.hash=n.hash;return e.apply(this,[a,n.href])})});f.push({r:a,
cb:e});b(b.anchorHandler.apply);return b.anchorHandler}}})})(jQuery);
jQuery.cookie=function(b,c,f){if(typeof c!="undefined"){f=f||{};if(c===null){c="";f.expires=-1}var a="";if(f.expires&&(typeof f.expires=="number"||f.expires.toUTCString)){if(typeof f.expires=="number"){a=new Date;a.setTime(a.getTime()+f.expires*24*60*60*1E3)}else a=f.expires;a="; expires="+a.toUTCString()}var e=f.path?"; path="+f.path:"",i=f.domain?"; domain="+f.domain:"";f=f.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(c),a,e,i,f].join("")}else{c=null;if(document.cookie&&document.cookie!=
""){f=document.cookie.split(";");for(a=0;a<f.length;a++){e=jQuery.trim(f[a]);if(e.substring(0,b.length+1)==b+"="){c=decodeURIComponent(e.substring(b.length+1));break}}}return c}};
(function(b){function c(f,a){var e=function(u,w){w=w||new Date;if(w>=u)return true;var q={};u=Math.floor((u.getTime()-w.getTime())/1E3);q.days=Math.floor(u/86400);u%=86400;q.hours=Math.floor(u/3600);u%=3600;q.minutes=Math.floor(u/60);u%=60;q.seconds=u;q.years=Math.floor(q.days/365);q.months=Math.floor(q.days/30);q.weeks=Math.floor(q.days/7);return q};a=b.extend({date:new Date,modifiers:[],interval:1E3,msgFormat:"%d [day|days] %hh %mm %ss",msgNow:"Now !"},a);var i={y:new RegExp("\\%y(.+?)\\[(\\w+)\\|(\\w+)\\]",
"g"),M:new RegExp("\\%M(.+?)\\[(\\w+)\\|(\\w+)\\]","g"),w:new RegExp("\\%w(.+?)\\[(\\w+)\\|(\\w+)\\]","g"),d:new RegExp("\\%d(.+?)\\[(\\w+)\\|(\\w+)\\]","g"),h:new RegExp("\\%h(.+?)\\[(\\w+)\\|(\\w+)\\]","g"),m:new RegExp("\\%m(.+?)\\[(\\w+)\\|(\\w+)\\]","g"),s:new RegExp("\\%s(.+?)\\[(\\w+)\\|(\\w+)\\]","g")},j=function(u,w,q){return!i[w]?"":u.match(/\[|\]/g)&&(u.replace(i[w],q+"$1"+(parseInt(q,10)<2?"$2":"$3"))||"")||u.replace("%"+w,q)},r=function(u,w){u=u;u=j(u,"y",w.years);u=j(u,"M",w.months);
u=j(u,"w",w.weeks);u=j(u,"d",w.days);u=j(u,"h",w.hours);u=j(u,"m",w.minutes);return u=j(u,"s",w.seconds)},n=function(){var u=e(v.date);if(u===true){v.stop();clearInterval(v.id);b(v.el).html(a.msgNow);return true}else b(v.el).text(r(a.msgFormat,u))},v={id:setInterval(n,a.interval),el:f,start:function(){return new c(b(this.el),a)},stop:function(){return clearInterval(this.id)},date:function(u,w){if(u.length===0)return w;for(var q=/^([+-]\d+)([yMdhms])$/,C={s:1E3,m:6E4,h:36E5,d:864E5,M:2592E6,y:31536E6},
H=0,N=0,h=u.length;N<h;++N){var Q=u[N].match(q);if(Q!==null)H+=parseInt(Q[1],10)*C[Q[2]]}return new Date(w.getTime()+H)}(a.modifiers,a.date)};b(f).data("countdown",v);n();return b(f).data("countdown")}b.fn.countdown=function(f){if(this.get(0))return new c(this.get(0),f)}})(jQuery);
(function(b){function c(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}function f(r,n,v,u){if(!n.busy){var w=n.container,q=r[n.currSlide],C=r[n.nextSlide];if(!(w.cycleTimeout===0&&!v))if(!v&&!w.cyclePause&&(n.autostop&&--n.countdown<=0||n.nowrap&&!n.random&&n.nextSlide<n.currSlide))n.end&&n.end(n);else{if(v||!w.cyclePause){n.before.length&&b.each(n.before,function(H,N){N.apply(C,[q,C,n,u])});v=function(){b.browser.msie&&n.cleartype&&this.style.removeAttribute("filter");
b.each(n.after,function(H,N){N.apply(C,[q,C,n,u])})};if(n.nextSlide!=n.currSlide){n.busy=1;if(n.fxFn)n.fxFn(q,C,n,v,u);else b.isFunction(b.fn.cycle[n.fx])?b.fn.cycle[n.fx](q,C,n,v):b.fn.cycle.custom(q,C,n,v)}if(n.random){n.currSlide=n.nextSlide;if(++n.randomIndex==r.length)n.randomIndex=0;n.nextSlide=n.randomMap[n.randomIndex]}else{v=n.nextSlide+1==r.length;n.nextSlide=v?0:n.nextSlide+1;n.currSlide=v?r.length-1:n.nextSlide-1}n.pager&&b.fn.cycle.updateActivePagerLink(n.pager,n.currSlide)}if(n.timeout&&
!n.continuous)w.cycleTimeout=setTimeout(function(){f(r,n,0,!n.rev)},n.timeout);else if(n.continuous&&w.cyclePause)w.cycleTimeout=setTimeout(function(){f(r,n,0,!n.rev)},10)}}}function a(r,n,v){var u=n.container,w=u.cycleTimeout;if(w){clearTimeout(w);u.cycleTimeout=0}if(n.random&&v<0){n.randomIndex--;if(--n.randomIndex==-2)n.randomIndex=r.length-2;else if(n.randomIndex==-1)n.randomIndex=r.length-1;n.nextSlide=n.randomMap[n.randomIndex]}else if(n.random){if(++n.randomIndex==r.length)n.randomIndex=0;
n.nextSlide=n.randomMap[n.randomIndex]}else{n.nextSlide=n.currSlide+v;if(n.nextSlide<0){if(n.nowrap)return false;n.nextSlide=r.length-1}else if(n.nextSlide>=r.length){if(n.nowrap)return false;n.nextSlide=0}}c("nextSlide: "+n.nextSlide+"; randomIndex: "+n.randomIndex);n.prevNextClick&&typeof n.prevNextClick=="function"&&n.prevNextClick(v>0,n.nextSlide,r[n.nextSlide]);f(r,n,1,v>=0);return false}function e(r,n){var v=b(n.pager);b.each(r,function(u,w){b.fn.cycle.createPagerAnchor(u,w,v,r,n)});b.fn.cycle.updateActivePagerLink(n.pager,
n.startingSlide)}function i(r){function n(u){u=parseInt(u).toString(16);return u.length<2?"0"+u:u}function v(u){for(;u&&u.nodeName.toLowerCase()!="html";u=u.parentNode){var w=b.css(u,"background-color");if(w.indexOf("rgb")>=0){u=w.match(/\d+/g);return"#"+n(u[0])+n(u[1])+n(u[2])}if(w&&w!="transparent")return w}return"#ffffff"}r.each(function(){b(this).css("background-color",v(this))})}var j=b.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);b.fn.cycle=function(r){return this.each(function(){if(r===
undefined||r===null)r={};if(r.constructor==String)switch(r){case "stop":this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=0;b(this).data("cycle.opts","");return;case "pause":this.cyclePause=1;return;case "resume":this.cyclePause=0;return;default:r={fx:r}}else if(r.constructor==Number){var n=r;r=b(this).data("cycle.opts");if(!r){c("options not found, can not advance slide");return}if(n<0||n>=r.elements.length){c("invalid slide index: "+n);return}r.nextSlide=n;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);
this.cycleTimeout=0}f(r.elements,r,1,1);return}this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var v=b(this),u=r.slideExpr?b(r.slideExpr,this):v.children(),w=u.get();if(w.length<2)c("terminating; too few slides: "+w.length);else{var q=b.extend({},b.fn.cycle.defaults,r||{},b.metadata?v.metadata():b.meta?v.data():{});if(q.autostop)q.countdown=q.autostopCount||w.length;v.data("cycle.opts",q);q.container=this;q.elements=w;q.before=q.before?[q.before]:[];q.after=
q.after?[q.after]:[];q.after.unshift(function(){q.busy=0});q.continuous&&q.after.push(function(){f(w,q,0,!q.rev)});j&&q.cleartype&&!q.cleartypeNoBg&&i(u);n=this.className;q.width=parseInt((n.match(/w:(\d+)/)||[])[1])||q.width;q.height=parseInt((n.match(/h:(\d+)/)||[])[1])||q.height;q.timeout=parseInt((n.match(/t:(\d+)/)||[])[1])||q.timeout;v.css("position")=="static"&&v.css("position","relative");q.width&&v.width(q.width);q.height&&q.height!="auto"&&v.height(q.height);if(q.random){q.randomMap=[];
for(n=0;n<w.length;n++)q.randomMap.push(n);q.randomMap.sort(function(){return Math.random()-0.5});q.randomIndex=0;q.startingSlide=q.randomMap[0]}else if(q.startingSlide>=w.length)q.startingSlide=0;var C=q.startingSlide||0;u.css({position:"absolute",top:0,left:0}).hide().each(function(H){H=C?H>=C?w.length-(H-C):C-H:w.length-H;b(this).css("z-index",H)});b(w[C]).css("opacity",1).show();b.browser.msie&&w[C].style.removeAttribute("filter");q.fit&&q.width&&u.width(q.width);q.fit&&q.height&&q.height!="auto"&&
u.height(q.height);q.pause&&v.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});n=b.fn.cycle.transitions[q.fx];if(b.isFunction(n))n(v,u,q);else q.fx!="custom"&&c("unknown transition: "+q.fx);u.each(function(){var H=b(this);this.cycleH=q.fit&&q.height?q.height:H.height();this.cycleW=q.fit&&q.width?q.width:H.width()});q.cssBefore=q.cssBefore||{};q.animIn=q.animIn||{};q.animOut=q.animOut||{};u.not(":eq("+C+")").css(q.cssBefore);q.cssFirst&&b(u[C]).css(q.cssFirst);if(q.timeout){if(q.speed.constructor==
String)q.speed={slow:600,fast:200}[q.speed]||400;for(q.sync||(q.speed/=2);q.timeout-q.speed<250;)q.timeout+=q.speed}if(q.easing)q.easeIn=q.easeOut=q.easing;if(!q.speedIn)q.speedIn=q.speed;if(!q.speedOut)q.speedOut=q.speed;q.slideCount=w.length;q.currSlide=C;if(q.random){q.nextSlide=q.currSlide;if(++q.randomIndex==w.length)q.randomIndex=0;q.nextSlide=q.randomMap[q.randomIndex]}else q.nextSlide=q.startingSlide>=w.length-1?0:q.startingSlide+1;n=u[C];q.before.length&&q.before[0].apply(n,[n,n,q,true]);
q.after.length>1&&q.after[1].apply(n,[n,n,q,true]);if(q.click&&!q.next)q.next=q.click;q.next&&b(q.next).bind("click",function(){return a(w,q,q.rev?-1:1)});q.prev&&b(q.prev).bind("click",function(){return a(w,q,q.rev?1:-1)});q.pager&&e(w,q);q.addSlide=function(H){H=b(H);var N=H[0];q.autostopCount||q.countdown++;w.push(N);q.els&&q.els.push(N);q.slideCount=w.length;H.css("position","absolute").appendTo(v);j&&q.cleartype&&!q.cleartypeNoBg&&i(H);q.fit&&q.width&&H.width(q.width);q.fit&&q.height&&q.height!=
"auto"&&u.height(q.height);N.cycleH=q.fit&&q.height?q.height:H.height();N.cycleW=q.fit&&q.width?q.width:H.width();H.css(q.cssBefore);q.pager&&b.fn.cycle.createPagerAnchor(w.length-1,N,b(q.pager),w,q);typeof q.onAddSlide=="function"&&q.onAddSlide(H)};if(q.timeout||q.continuous)this.cycleTimeout=setTimeout(function(){f(w,q,0,!q.rev)},q.continuous?10:q.timeout+(q.delay||0))}})};b.fn.cycle.updateActivePagerLink=function(r,n){b(r).find("a").removeClass("activeSlide").filter("a:eq("+n+")").addClass("activeSlide")};
b.fn.cycle.createPagerAnchor=function(r,n,v,u,w){n=typeof w.pagerAnchorBuilder=="function"?b(w.pagerAnchorBuilder(r,n)):b('<a href="#">'+(r+1)+"</a>");n.parents("body").length==0&&n.appendTo(v);n.bind(w.pagerEvent,function(){w.nextSlide=r;var q=w.container,C=q.cycleTimeout;if(C){clearTimeout(C);q.cycleTimeout=0}typeof w.pagerClick=="function"&&w.pagerClick(w.nextSlide,u[w.nextSlide]);f(u,w,1,w.currSlide<r);return false})};b.fn.cycle.custom=function(r,n,v,u){var w=b(r),q=b(n);q.css(v.cssBefore);var C=
function(){q.animate(v.animIn,v.speedIn,v.easeIn,u)};w.animate(v.animOut,v.speedOut,v.easeOut,function(){v.cssAfter&&w.css(v.cssAfter);v.sync||C()});v.sync&&C()};b.fn.cycle.transitions={fade:function(r,n,v){n.not(":eq("+v.startingSlide+")").css("opacity",0);v.before.push(function(){b(this).show()});v.animIn={opacity:1};v.animOut={opacity:0};v.cssBefore={opacity:0};v.cssAfter={display:"none"}}};b.fn.cycle.ver=function(){return"2.24"};b.fn.cycle.defaults={fx:"fade",timeout:4E3,continuous:0,speed:1E3,
speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,pause:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0}})(jQuery);
(function(b){b.fn.cycle.transitions.scrollUp=function(c,f,a){c.css("overflow","hidden");a.before.push(function(e,i,j){b(this).show();j.cssBefore.top=i.offsetHeight;j.animOut.top=0-e.offsetHeight});a.cssFirst={top:0};a.animIn={top:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.scrollDown=function(c,f,a){c.css("overflow","hidden");a.before.push(function(e,i,j){b(this).show();j.cssBefore.top=0-i.offsetHeight;j.animOut.top=e.offsetHeight});a.cssFirst={top:0};a.animIn={top:0};a.cssAfter={display:"none"}};
b.fn.cycle.transitions.scrollLeft=function(c,f,a){c.css("overflow","hidden");a.before.push(function(e,i,j){b(this).show();j.cssBefore.left=i.offsetWidth;j.animOut.left=0-e.offsetWidth});a.cssFirst={left:0};a.animIn={left:0}};b.fn.cycle.transitions.scrollRight=function(c,f,a){c.css("overflow","hidden");a.before.push(function(e,i,j){b(this).show();j.cssBefore.left=0-i.offsetWidth;j.animOut.left=e.offsetWidth});a.cssFirst={left:0};a.animIn={left:0}};b.fn.cycle.transitions.scrollHorz=function(c,f,a){c.css("overflow",
"hidden").width();a.before.push(function(e,i,j,r){b(this).show();var n=e.offsetWidth;i=i.offsetWidth;j.cssBefore=r?{left:i}:{left:-i};j.animIn.left=0;j.animOut.left=r?-n:n;f.not(e).css(j.cssBefore)});a.cssFirst={left:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.scrollVert=function(c,f,a){c.css("overflow","hidden");a.before.push(function(e,i,j,r){b(this).show();var n=e.offsetHeight;i=i.offsetHeight;j.cssBefore=r?{top:-i}:{top:i};j.animIn.top=0;j.animOut.top=r?n:-n;f.not(e).css(j.cssBefore)});
a.cssFirst={top:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.slideX=function(c,f,a){a.before.push(function(e){b(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide()};a.cssBefore={zIndex:2};a.animIn={width:"show"};a.animOut={width:"hide"}};b.fn.cycle.transitions.slideY=function(c,f,a){a.before.push(function(e){b(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide()};a.cssBefore={zIndex:2};a.animIn={height:"show"};a.animOut={height:"hide"}};b.fn.cycle.transitions.shuffle=function(c,f,a){c=
c.css("overflow","visible").width();f.css({left:0,top:0});a.before.push(function(){b(this).show()});a.speed/=2;a.random=0;a.shuffle=a.shuffle||{left:-c,top:15};a.els=[];for(c=0;c<f.length;c++)a.els.push(f[c]);for(c=0;c<a.startingSlide;c++)a.els.push(a.els.shift());a.fxFn=function(e,i,j,r,n){var v=n?b(e):b(i);v.animate(j.shuffle,j.speedIn,j.easeIn,function(){n?j.els.push(j.els.shift()):j.els.unshift(j.els.pop());if(n)for(var u=0,w=j.els.length;u<w;u++)b(j.els[u]).css("z-index",w-u);else{u=b(e).css("z-index");
v.css("z-index",parseInt(u)+1)}v.animate({left:0,top:0},j.speedOut,j.easeOut,function(){b(n?this:e).hide();r&&r()})})};a.onAddSlide=function(e){e.hide()}};b.fn.cycle.transitions.turnUp=function(c,f,a){a.before.push(function(e,i,j){b(this).show();j.cssBefore.top=i.cycleH;j.animIn.height=i.cycleH});a.onAddSlide=function(e){e.hide()};a.cssFirst={top:0};a.cssBefore={height:0};a.animIn={top:0};a.animOut={height:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.turnDown=function(c,f,a){a.before.push(function(e,
i,j){b(this).show();j.animIn.height=i.cycleH;j.animOut.top=e.cycleH});a.onAddSlide=function(e){e.hide()};a.cssFirst={top:0};a.cssBefore={top:0,height:0};a.animOut={height:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.turnLeft=function(c,f,a){a.before.push(function(e,i,j){b(this).show();j.cssBefore.left=i.cycleW;j.animIn.width=i.cycleW});a.onAddSlide=function(e){e.hide()};a.cssBefore={width:0};a.animIn={left:0};a.animOut={width:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.turnRight=
function(c,f,a){a.before.push(function(e,i,j){b(this).show();j.animIn.width=i.cycleW;j.animOut.left=e.cycleW});a.onAddSlide=function(e){e.hide()};a.cssBefore={left:0,width:0};a.animIn={left:0};a.animOut={width:0};a.cssAfter={display:"none"}};b.fn.cycle.transitions.zoom=function(c,f,a){a.cssFirst={top:0,left:0};a.cssAfter={display:"none"};a.before.push(function(e,i,j){b(this).show();j.cssBefore={width:0,height:0,top:i.cycleH/2,left:i.cycleW/2};j.cssAfter={display:"none"};j.animIn={top:0,left:0,width:i.cycleW,
height:i.cycleH};j.animOut={width:0,height:0,top:e.cycleH/2,left:e.cycleW/2};b(e).css("zIndex",2);b(i).css("zIndex",1)});a.onAddSlide=function(e){e.hide()}};b.fn.cycle.transitions.fadeZoom=function(c,f,a){a.before.push(function(e,i,j){j.cssBefore={width:0,height:0,opacity:1,left:i.cycleW/2,top:i.cycleH/2,zIndex:1};j.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH}});a.animOut={opacity:0};a.cssAfter={zIndex:0}};b.fn.cycle.transitions.blindX=function(c,f,a){c=c.css("overflow","hidden").width();
f.show();a.before.push(function(e){b(e).css("zIndex",1)});a.cssBefore={left:c,zIndex:2};a.cssAfter={zIndex:1};a.animIn={left:0};a.animOut={left:c}};b.fn.cycle.transitions.blindY=function(c,f,a){c=c.css("overflow","hidden").height();f.show();a.before.push(function(e){b(e).css("zIndex",1)});a.cssBefore={top:c,zIndex:2};a.cssAfter={zIndex:1};a.animIn={top:0};a.animOut={top:c}};b.fn.cycle.transitions.blindZ=function(c,f,a){var e=c.css("overflow","hidden").height();c=c.width();f.show();a.before.push(function(i){b(i).css("zIndex",
1)});a.cssBefore={top:e,left:c,zIndex:2};a.cssAfter={zIndex:1};a.animIn={top:0,left:0};a.animOut={top:e,left:c}};b.fn.cycle.transitions.growX=function(c,f,a){a.before.push(function(e,i,j){j.cssBefore={left:this.cycleW/2,width:0,zIndex:2};j.animIn={left:0,width:this.cycleW};j.animOut={left:0};b(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide().css("zIndex",1)}};b.fn.cycle.transitions.growY=function(c,f,a){a.before.push(function(e,i,j){j.cssBefore={top:this.cycleH/2,height:0,zIndex:2};j.animIn=
{top:0,height:this.cycleH};j.animOut={top:0};b(e).css("zIndex",1)});a.onAddSlide=function(e){e.hide().css("zIndex",1)}};b.fn.cycle.transitions.curtainX=function(c,f,a){a.before.push(function(e,i,j){j.cssBefore={left:i.cycleW/2,width:0,zIndex:1,display:"block"};j.animIn={left:0,width:this.cycleW};j.animOut={left:e.cycleW/2,width:0};b(e).css("zIndex",2)});a.onAddSlide=function(e){e.hide()};a.cssAfter={zIndex:1,display:"none"}};b.fn.cycle.transitions.curtainY=function(c,f,a){a.before.push(function(e,
i,j){j.cssBefore={top:i.cycleH/2,height:0,zIndex:1,display:"block"};j.animIn={top:0,height:this.cycleH};j.animOut={top:e.cycleH/2,height:0};b(e).css("zIndex",2)});a.onAddSlide=function(e){e.hide()};a.cssAfter={zIndex:1,display:"none"}};b.fn.cycle.transitions.cover=function(c,f,a){var e=a.direction||"left",i=c.css("overflow","hidden").width(),j=c.height();a.before.push(function(r,n,v){v.cssBefore=v.cssBefore||{};v.cssBefore.zIndex=2;v.cssBefore.display="block";if(e=="right")v.cssBefore.left=-i;else if(e==
"up")v.cssBefore.top=j;else if(e=="down")v.cssBefore.top=-j;else v.cssBefore.left=i;b(r).css("zIndex",1)});if(!a.animIn)a.animIn={left:0,top:0};if(!a.animOut)a.animOut={left:0,top:0};a.cssAfter=a.cssAfter||{};a.cssAfter.zIndex=2;a.cssAfter.display="none"};b.fn.cycle.transitions.uncover=function(c,f,a){var e=a.direction||"left",i=c.css("overflow","hidden").width(),j=c.height();a.before.push(function(r,n,v){v.cssBefore.display="block";if(e=="right")v.animOut.left=i;else if(e=="up")v.animOut.top=-j;
else if(e=="down")v.animOut.top=j;else v.animOut.left=-i;b(r).css("zIndex",2);b(n).css("zIndex",1)});a.onAddSlide=function(r){r.hide()};if(!a.animIn)a.animIn={left:0,top:0};a.cssBefore=a.cssBefore||{};a.cssBefore.top=0;a.cssBefore.left=0;a.cssAfter=a.cssAfter||{};a.cssAfter.zIndex=1;a.cssAfter.display="none"};b.fn.cycle.transitions.toss=function(c,f,a){var e=c.css("overflow","visible").width(),i=c.height();a.before.push(function(j,r,n){b(j).css("zIndex",2);n.cssBefore.display="block";if(!n.animOut.left&&
!n.animOut.top)n.animOut={left:e*2,top:-i/2,opacity:0};else n.animOut.opacity=0});a.onAddSlide=function(j){j.hide()};a.cssBefore={left:0,top:0,zIndex:1,opacity:1};a.animIn={left:0};a.cssAfter={zIndex:2,display:"none"}};b.fn.cycle.transitions.wipe=function(c,f,a){var e=c.css("overflow","hidden").width(),i=c.height();a.cssBefore=a.cssBefore||{};var j;if(a.clip)if(/l2r/.test(a.clip))j="rect(0px 0px "+i+"px 0px)";else if(/r2l/.test(a.clip))j="rect(0px "+e+"px "+i+"px "+e+"px)";else if(/t2b/.test(a.clip))j=
"rect(0px "+e+"px 0px 0px)";else if(/b2t/.test(a.clip))j="rect("+i+"px "+e+"px "+i+"px 0px)";else if(/zoom/.test(a.clip)){var r=parseInt(i/2),n=parseInt(e/2);j="rect("+r+"px "+n+"px "+r+"px "+n+"px)"}a.cssBefore.clip=a.cssBefore.clip||j||"rect(0px 0px 0px 0px)";c=a.cssBefore.clip.match(/(\d+)/g);r=parseInt(c[0]);var v=parseInt(c[1]),u=parseInt(c[2]);n=parseInt(c[3]);a.before.push(function(w,q,C){function H(){var E=r?r-parseInt(Q*(r/L)):0,U=n?n-parseInt(Q*(n/L)):0,da=u<i?u+parseInt(Q*((i-u)/L||1)):
i,ha=v<e?v+parseInt(Q*((e-v)/L||1)):e;h.css({clip:"rect("+E+"px "+ha+"px "+da+"px "+U+"px)"});Q++<=L?setTimeout(H,13):N.css("display","none")}if(w!=q){var N=b(w).css("zIndex",2),h=b(q).css({zIndex:3,display:"block"}),Q=1,L=parseInt(C.speedIn/13)-1;H()}});a.cssAfter={};a.animIn={left:0};a.animOut={left:0}}})(jQuery);
(function(b){b.extend(b.fn,{delayedObserver:function(c,f,a){return this.each(function(){var e=b(this),i=a||{};e.data("oldval",e.val()).data("delay",f||0.5).data("condition",i.condition||function(){return b(this).data("oldval")==b(this).val()}).data("callback",c)[i.event||"keyup"](function(){if(!e.data("condition").apply(e)){e.data("timer")&&clearTimeout(e.data("timer"));e.data("timer",setTimeout(function(){e.data("callback").apply(e)},e.data("delay")*1E3));e.data("oldval",e.val())}})})}})})(jQuery);
(function(){function b(){var a="";for(var e in this)if(typeof this[e]!="function")a+=e+'="'+this[e]+'" ';return a}function c(){var a="";for(var e in this)if(typeof this[e]!="function")a+=e+"="+encodeURIComponent(this[e])+"&";return a.replace(/&$/,"")}var f;f=jQuery.fn.flash=function(a,e,i,j){var r=i||f.replace;e=f.copy(f.pluginOptions,e);if(!f.hasFlash(e.version))if(e.expressInstall&&f.hasFlash(6,0,65))var n={flashvars:{MMredirectURL:location,MMplayerType:"PlugIn",MMdoctitle:jQuery("title").text()}};
else if(e.update)r=j||f.update;else return this;a=f.copy(f.htmlOptions,n,a);return this.each(function(){r.call(this,f.copy(a))})};f.copy=function(){for(var a={},e={},i=0;i<arguments.length;i++){var j=arguments[i];if(j!=undefined){jQuery.extend(a,j);j.flashvars!=undefined&&jQuery.extend(e,j.flashvars)}}a.flashvars=e;return a};f.hasFlash=function(a,e,i){if(/hasFlash\=true/.test(location))return true;if(/hasFlash\=false/.test(location))return false;var j=f.hasFlash.playerVersion().match(/\d+/g);a=String([a,
e,i]).match(/\d+/g)||String(f.pluginOptions.version).match(/\d+/g);for(e=0;e<3;e++){j[e]=parseInt(j[e]||0);a[e]=parseInt(a[e]||0);if(j[e]<a[e])return false;if(j[e]>a[e])return true}return true};f.hasFlash.playerVersion=function(){try{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{a.AllowScriptAccess="always"}catch(e){return"6,0,0"}}catch(i){}return(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(j){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||
navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(r){}}return"0,0,0"};f.htmlOptions={height:240,flashvars:{},pluginspage:"http://www.adobe.com/go/getflashplayer",src:"#",type:"application/x-shockwave-flash",width:320};f.pluginOptions={expressInstall:false,update:true,version:"6.0.65"};f.replace=function(a){this.innerHTML='<div class="alt">'+this.innerHTML+"</div>";jQuery(this).addClass("flash-replaced").prepend(f.transform(a))};f.update=function(){var a=
String(location).split("?");a.splice(1,0,"?hasFlash=true&");a=a.join("");a='<p>This content requires the Flash Player. <a href="http://www.adobe.com/go/getflashplayer">Download Flash Player</a>. Already have Flash Player? <a href="'+a+'">Click here.</a></p>';this.innerHTML='<span class="alt">'+this.innerHTML+"</span>";jQuery(this).addClass("flash-update").prepend(a)};f.transform=function(a){a.toString=b;if(a.flashvars)a.flashvars.toString=c;return"<embed "+String(a)+"/>"};window.attachEvent&&window.attachEvent("onbeforeunload",
function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})})();
(function(b){b._i18n={trans:{},"default":"en",language:"en"};b.i18n=function(){var c=function(a,e){var i=false;if(b._i18n.trans[b._i18n.language]&&b._i18n.trans[b._i18n.language][a]&&b._i18n.trans[b._i18n.language][a][e])i=b._i18n.trans[b._i18n.language][a][e];else if(b._i18n.trans[b._i18n["default"]]&&b._i18n.trans[b._i18n["default"]][a]&&b._i18n.trans[b._i18n["default"]][a][e])i=b._i18n.trans[b._i18n["default"]][a][e];return i||e};if(arguments.length<2){b._i18n.language=arguments[0];return b._i18n.language}else if(typeof arguments[1]==
"string"){c=c(arguments[0],arguments[1]);return arguments[2]&&typeof arguments[2]=="object"?b.format(c,arguments[2]):c}else{var f=arguments[0].split(".");c=f[0];f=f[1]||"jQuery";if(b._i18n.trans[c])b.extend(b._i18n.trans[c][f],arguments[1]);else{b._i18n.trans[c]={};b._i18n.trans[c][f]=arguments[1]}}}})(jQuery);
(function(b){b.fn.caret=function(f,a){if(this.length!=0)if(typeof f=="number"){a=typeof a=="number"?a:f;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(f,a)}else if(this.createTextRange){var i=this.createTextRange();i.collapse(true);i.moveEnd("character",a);i.moveStart("character",f);i.select()}})}else{if(this[0].setSelectionRange){f=this[0].selectionStart;a=this[0].selectionEnd}else if(document.selection&&document.selection.createRange){var e=document.selection.createRange();
f=0-e.duplicate().moveStart("character",-100000);a=f+e.text.length}return{begin:f,end:a}}};var c={"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"};b.mask={addPlaceholder:function(f,a){c[f]=a}};b.fn.unmask=function(){return this.trigger("unmask")};b.fn.mask=function(f,a){a=b.extend({placeholder:"_",completed:null},a);var e=new RegExp("^"+b.map(f.split(""),function(i){return c[i]||(/[A-Za-z0-9]/.test(i)?"":"\\")+i}).join("")+"$");return this.each(function(){function i(){u();v();setTimeout(function(){b(q[0]).caret(N?
f.length:Q)},0)}function j(L){var E=b(this).caret();L=L.keyCode;h=L<16||L>16&&L<32||L>32&&L<41;if(E.begin-E.end!=0&&(!h||L==8||L==46))n(E.begin,E.end);if(L==8)for(;E.begin-- >=0;){if(!H[E.begin]){C[E.begin]=a.placeholder;if(b.browser.opera){s=v();q.val(s.substring(0,E.begin)+" "+s.substring(E.begin));b(this).caret(E.begin+1)}else{v();b(this).caret(Math.max(Q,E.begin))}return false}}else if(L==46){n(E.begin,E.begin+1);v();b(this).caret(Math.max(Q,E.begin));return false}else if(L==27){n(0,f.length);
v();b(this).caret(Q);return false}}function r(L){if(h){h=false;return L.keyCode==8?false:null}L=L||window.event;var E=L.charCode||L.keyCode||L.which,U=b(this).caret();if(L.ctrlKey||L.altKey)return true;else if(E>=41&&E<=122||E==32||E>186){L=w(U.begin-1);if(L<f.length)if((new RegExp(c[f.charAt(L)])).test(String.fromCharCode(E))){C[L]=String.fromCharCode(E);v();E=w(L);b(this).caret(E);a.completed&&E==f.length&&a.completed.call(q)}}return false}function n(L,E){for(L=L;L<E&&L<f.length;L++)if(!H[L])C[L]=
a.placeholder}function v(){return q.val(C.join("")).val()}function u(){for(var L=q.val(),E=0,U=0;U<f.length;U++)if(!H[U])for(C[U]=a.placeholder;E++<L.length;){var da=new RegExp(c[f.charAt(U)]);if(L.charAt(E-1).match(da)){C[U]=L.charAt(E-1);break}}if(v().match(e))N=true;else{q.val("");n(0,f.length);N=false}}function w(L){for(;++L<f.length;)if(!H[L])return L;return f.length}var q=b(this),C=new Array(f.length),H=new Array(f.length),N=false,h=false,Q=null;b.each(f.split(""),function(L,E){H[L]=c[E]==null;
C[L]=H[L]?E:a.placeholder;if(!H[L]&&Q==null)Q=L});q.one("unmask",function(){q.unbind("focus",i);q.unbind("blur",u);q.unbind("keydown",j);q.unbind("keypress",r);if(b.browser.msie)this.onpaste=null;else b.browser.mozilla&&this.removeEventListener("input",u,false)});q.bind("focus",i);q.bind("blur",u);q.bind("keydown",j);q.bind("keypress",r);if(b.browser.msie)this.onpaste=function(){setTimeout(u,0)};else b.browser.mozilla&&this.addEventListener("input",u,false);u()})}})(jQuery);
(function(b){b.event.special.mousewheel={setup:function(){var c=b.event.special.mousewheel.handler;b.browser.mozilla&&b(this).bind("mousemove.mousewheel",function(f){b.data(this,"mwcursorposdata",{pageX:f.pageX,pageY:f.pageY,clientX:f.clientX,clientY:f.clientY})});if(this.addEventListener)this.addEventListener(b.browser.mozilla?"DOMMouseScroll":"mousewheel",c,false);else this.onmousewheel=c},teardown:function(){var c=b.event.special.mousewheel.handler;b(this).unbind("mousemove.mousewheel");if(this.removeEventListener)this.removeEventListener(b.browser.mozilla?
"DOMMouseScroll":"mousewheel",c,false);else this.onmousewheel=function(){};b.removeData(this,"mwcursorposdata")},handler:function(c){var f=Array.prototype.slice.call(arguments,1);c=b.event.fix(c||window.event);b.extend(c,b.data(this,"mwcursorposdata")||{});var a=0;if(c.wheelDelta)a=c.wheelDelta/120;if(c.detail)a=-c.detail/3;if(b.browser.opera)a=-c.wheelDelta;c.data=c.data||{};c.type="mousewheel";f.unshift(a);f.unshift(c);return b.event.handle.apply(this,f)}};b.fn.extend({mousewheel:function(c){return c?
this.bind("mousewheel",c):this.trigger("mousewheel")},unmousewheel:function(c){return this.unbind("mousewheel",c)}})})(jQuery);
(function(b){function c(){var B=w.scrollLeft(),D=ta?ga.clientWidth:w.width();b([la,va]).css("left",B+D/2);L&&b(ia).css({left:B,top:w.scrollTop(),width:D,height:w.height()})}function f(B){b("object").add(ha?"select":"embed").each(function(P,S){B&&b.data(S,"slimbox",S.style.visibility);S.style.visibility=B?"hidden":b.data(S,"slimbox")});var D=B?"bind":"unbind";w[D]("scroll resize",c);b(document)[D]("keydown",a)}function a(B){B=B.keyCode;var D=b.inArray;return D(B,q.closeKeys)>=0?u():D(B,q.nextKeys)>=
0?i():D(B,q.previousKeys)>=0?e():false}function e(){return j(h)}function i(){return j(Q)}function j(B){if(B>=0){H=B;N=C[H][0];h=(H||(q.loop?C.length:0))-1;Q=(H+1)%C.length||(q.loop?0:-1);v();la.className="lbLoading";Z=new Image;Z.onload=r;Z.src=N}return false}function r(){la.className="";b(ca).css({backgroundImage:"url("+N+")",visibility:"hidden",display:""});b(oa).width(Z.width);b([oa,sa,aa]).height(Z.height);b(wa).html(C[H][1]||"");b(T).html((C.length>1&&q.counterText||"").replace(/{x}/,H+1).replace(/{y}/,
C.length));if(h>=0)ma.src=C[h][0];if(Q>=0)ya.src=C[Q][0];U=ca.offsetWidth;da=ca.offsetHeight;var B=Math.max(0,E-da/2);la.offsetHeight!=da&&b(la).animate({height:da,top:B},q.resizeDuration,q.resizeEasing);la.offsetWidth!=U&&b(la).animate({width:U,marginLeft:-U/2},q.resizeDuration,q.resizeEasing);b(la).queue(function(){b(va).css({width:U,top:B+da,marginLeft:-U/2,visibility:"hidden",display:""});b(ca).css({display:"none",visibility:"",opacity:""}).fadeIn(q.imageFadeDuration,n)})}function n(){h>=0&&b(sa).show();
Q>=0&&b(aa).show();b(ra).css("marginTop",-ra.offsetHeight).animate({marginTop:0},q.captionAnimationDuration);va.style.visibility=""}function v(){Z.onload=null;Z.src=ma.src=ya.src=N;b([la,ca,ra]).stop(true);b([sa,aa,ca,va]).hide()}function u(){if(H>=0){v();H=h=Q=-1;b(la).hide();b(ia).stop().fadeOut(q.overlayFadeDuration,f)}return false}var w=b(window),q,C,H=-1,N,h,Q,L,E,U,da,ha=!window.XMLHttpRequest,ta=window.opera&&document.compatMode=="CSS1Compat"&&b.browser.version>=9.3,ga=document.documentElement,
Z={},ma=new Image,ya=new Image,ia,la,ca,oa,sa,aa,va,ra,wa,T;b(function(){b("body").append(b([ia=b('<div id="lbOverlay" />')[0],la=b('<div id="lbCenter" />')[0],va=b('<div id="lbBottomContainer" />')[0]]).css("display","none"));ca=b('<div id="lbImage" />').appendTo(la).append(oa=b('<div style="position: relative;" />').append([sa=b('<a id="lbPrevLink" href="#" />').click(e)[0],aa=b('<a id="lbNextLink" href="#" />').click(i)[0]])[0])[0];ra=b('<div id="lbBottom" />').appendTo(va).append([b('<a id="lbCloseLink" href="#" />').add(ia).click(u)[0],
wa=b('<div id="lbCaption" />')[0],T=b('<div id="lbNumber" />')[0],b('<div style="clear: both;" />')[0]])[0]});b.slimbox=function(B,D,P){q=b.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},P);if(typeof B=="string"){B=[[B,D]];D=0}E=w.scrollTop()+(ta?ga.clientHeight:w.height())/
2;U=q.initialWidth;da=q.initialHeight;b(la).css({top:Math.max(0,E-da/2),width:U,height:da,marginLeft:-U/2}).show();if(L=ha||ia.currentStyle&&ia.currentStyle.position!="fixed")ia.style.position="absolute";b(ia).css("opacity",q.overlayOpacity).fadeIn(q.overlayFadeDuration);c();f(1);C=B;q.loop=q.loop&&C.length>1;return j(D)};b.fn.slimbox=function(B,D,P){D=D||function($){return[$.href,$.title]};P=P||function(){return true};var S=this;return S.unbind("click").click(function(){var $=this,ja=0,ka,ba=0,ua;
ka=b.grep(S,function(pa,xa){return P.call($,pa,xa)});for(ua=ka.length;ba<ua;++ba){if(ka[ba]==$)ja=ba;ka[ba]=D(ka[ba],ba)}return b.slimbox(ka,ja,B)})}})(jQuery);
(function(b){function c(){var j=i.parse(this.title);isNaN(j)||b(this).text(f(j));return this}function f(j){return i.inWords(a(j))}function a(j){return(new Date).getTime()-j.getTime()}function e(j,r){return j.replace(/%d/i,r)}b.timeago=function(j){return j instanceof Date?f(j):typeof j=="string"?f(b.timeago.parse(j)):f(b.timeago.parse(b(j).attr("title")))};var i=b.timeago;b.extend(b.timeago,{settings:{refreshMillis:6E4,allowFuture:false,strings:{ago:"ago",fromNow:"from now",seconds:"less than a minute",
minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years"}},inWords:function(j){var r=this.settings.strings,n=r.ago;if(this.settings.allowFuture){if(j<0)n=r.fromNow;j=Math.abs(j)}j=j/1E3;var v=j/60,u=v/60,w=u/24,q=w/365;return(j<45&&e(r.seconds,Math.round(j))||j<90&&r.minute||v<45&&e(r.minutes,Math.round(v))||v<90&&r.hour||u<24&&e(r.hours,Math.round(u))||u<48&&r.day||
w<30&&e(r.days,Math.floor(w))||w<60&&r.month||w<365&&e(r.months,Math.floor(w/30))||q<2&&r.year||e(r.years,Math.floor(q)))+" "+n},parse:function(j){j=b.trim(j);j=j.replace(/-/,"/").replace(/-/,"/");j=j.replace(/T/," ").replace(/Z/," UTC");j=j.replace(/([\+-]\d\d)\:?(\d\d)/," $1$2");return new Date(j)}});b.fn.timeago=function(){var j=this;j.each(c);var r=i.settings;r.refreshMillis>0&&setInterval(function(){j.each(c)},r.refreshMillis);return j};b.browser.msie&&b.browser.version<7&&document.createElement("abbr")})(jQuery);jQuery.ui||function(b){function c(n,v,u,w){function q(H){H=b[n][v][H]||[];return typeof H=="string"?H.split(/,?\s+/):H}var C=q("getter");if(w.length==1&&typeof w[0]=="string")C=C.concat(q("getterSetter"));return b.inArray(u,C)!=-1}var f=b.fn.remove,a=b.browser.mozilla&&parseFloat(b.browser.version)<1.9;b.ui={version:"1.7.2",plugin:{add:function(n,v,u){n=b.ui[n].prototype;for(var w in u){n.plugins[w]=n.plugins[w]||[];n.plugins[w].push([v,u[w]])}},call:function(n,v,u){if((v=n.plugins[v])&&n.element[0].parentNode)for(var w=
0;w<v.length;w++)n.options[v[w][0]]&&v[w][1].apply(n.element,u)}},contains:function(n,v){return document.compareDocumentPosition?n.compareDocumentPosition(v)&16:n!==v&&n.contains(v)},hasScroll:function(n,v){if(b(n).css("overflow")=="hidden")return false;v=v&&v=="left"?"scrollLeft":"scrollTop";var u=false;if(n[v]>0)return true;n[v]=1;u=n[v]>0;n[v]=0;return u},isOverAxis:function(n,v,u){return n>v&&n<v+u},isOver:function(n,v,u,w,q,C){return b.ui.isOverAxis(n,u,q)&&b.ui.isOverAxis(v,w,C)},keyCode:{BACKSPACE:8,
CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};if(a){var e=b.attr,i=b.fn.removeAttr,j=/^aria-/,r=/^wairole:/;b.attr=function(n,v,u){var w=u!==undefined;return v=="role"?w?e.call(this,n,v,"wairole:"+u):(e.apply(this,arguments)||"").replace(r,""):j.test(v)?w?n.setAttributeNS("http://www.w3.org/2005/07/aaa",
v.replace(j,"aaa:"),u):e.call(this,n,v.replace(j,"aaa:")):e.apply(this,arguments)};b.fn.removeAttr=function(n){return j.test(n)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",n.replace(j,""))}):i.call(this,n)}}b.fn.extend({remove:function(){b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return f.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var n;n=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"))||!n.length?b(document):n}});b.extend(b.expr[":"],{data:function(n,v,u){return!!b.data(n,u[3])},focusable:function(n){var v=n.nodeName.toLowerCase(),u=b.attr(n,"tabindex");return(/input|select|textarea|button|object/.test(v)?!n.disabled:"a"==v||"area"==v?n.href||!isNaN(u):!isNaN(u))&&!b(n)["area"==v?"parents":"closest"](":hidden").length},tabbable:function(n){var v=b.attr(n,"tabindex");
return(isNaN(v)||v>=0)&&b(n).is(":focusable")}});b.widget=function(n,v){var u=n.split(".")[0];n=n.split(".")[1];b.fn[n]=function(w){var q=typeof w=="string",C=Array.prototype.slice.call(arguments,1);if(q&&w.substring(0,1)=="_")return this;if(q&&c(u,n,w,C)){var H=b.data(this[0],n);return H?H[w].apply(H,C):undefined}return this.each(function(){var N=b.data(this,n);!N&&!q&&b.data(this,n,new b[u][n](this,w))._init();N&&q&&b.isFunction(N[w])&&N[w].apply(N,C)})};b[u]=b[u]||{};b[u][n]=function(w,q){var C=
this;this.namespace=u;this.widgetName=n;this.widgetEventPrefix=b[u][n].eventPrefix||n;this.widgetBaseClass=u+"-"+n;this.options=b.extend({},b.widget.defaults,b[u][n].defaults,b.metadata&&b.metadata.get(w)[n],q);this.element=b(w).bind("setData."+n,function(H,N,h){if(H.target==w)return C._setData(N,h)}).bind("getData."+n,function(H,N){if(H.target==w)return C._getData(N)}).bind("remove",function(){return C.destroy()})};b[u][n].prototype=b.extend({},b.widget.prototype,v);b[u][n].getterSetter="option"};
b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(n,v){var u=n,w=this;if(typeof n=="string"){if(v===undefined)return this._getData(n);u={};u[n]=v}b.each(u,function(q,C){w._setData(q,C)})},_getData:function(n){return this.options[n]},_setData:function(n,v){this.options[n]=v;if(n=="disabled")this.element[v?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",v)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(n,v,u){var w=this.options[n];n=n==this.widgetEventPrefix?n:this.widgetEventPrefix+n;v=b.Event(v);v.type=n;if(v.originalEvent){n=b.event.props.length;for(var q;n;){q=b.event.props[--n];v[q]=v.originalEvent[q]}}this.element.trigger(v,u);return!(b.isFunction(w)&&w.call(this.element[0],v,u)===false||v.isDefaultPrevented())}};
b.widget.defaults={disabled:false};b.ui.mouse={_mouseInit:function(){var n=this;this.element.bind("mousedown."+this.widgetName,function(v){return n._mouseDown(v)}).bind("click."+this.widgetName,function(v){if(n._preventClickEvent){n._preventClickEvent=false;v.stopImmediatePropagation();return false}});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(n){n.originalEvent=n.originalEvent||{};if(!n.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(n);this._mouseDownEvent=n;var v=this,u=n.which==1,w=typeof this.options.cancel=="string"?b(n.target).parents().add(n.target).filter(this.options.cancel).length:false;if(!u||w||!this._mouseCapture(n))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){v.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(n)&&this._mouseDelayMet(n)){this._mouseStarted=this._mouseStart(n)!==false;if(!this._mouseStarted){n.preventDefault();return true}}this._mouseMoveDelegate=function(q){return v._mouseMove(q)};this._mouseUpDelegate=function(q){return v._mouseUp(q)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.browser.safari||n.preventDefault();return n.originalEvent.mouseHandled=true}},
_mouseMove:function(n){if(b.browser.msie&&!n.button)return this._mouseUp(n);if(this._mouseStarted){this._mouseDrag(n);return n.preventDefault()}if(this._mouseDistanceMet(n)&&this._mouseDelayMet(n))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,n)!==false)?this._mouseDrag(n):this._mouseUp(n);return!this._mouseStarted},_mouseUp:function(n){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=n.target==this._mouseDownEvent.target;this._mouseStop(n)}return false},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
this._mouseDestroy()}},_mouseCapture:function(c){var f=this.options;if(this.helper||f.disabled||b(c.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(c);if(!this.handle)return false;return true},_mouseStart:function(c){var f=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(b.ui.ddmanager)b.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();
this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);f.containment&&this._setContainment();this._trigger("start",c);this._cacheHelperProportions();b.ui.ddmanager&&
!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);return true},_mouseDrag:function(c,f){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!f){f=this._uiHash();this._trigger("drag",c,f);this.position=f.position}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";b.ui.ddmanager&&b.ui.ddmanager.drag(this,c);return false},_mouseStop:function(c){var f=false;if(b.ui.ddmanager&&!this.options.dropBehaviour)f=b.ui.ddmanager.drop(this,c);if(this.dropped){f=this.dropped;this.dropped=false}if(this.options.revert=="invalid"&&!f||this.options.revert=="valid"&&f||this.options.revert===true||b.isFunction(this.options.revert)&&this.options.revert.call(this.element,f)){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",
c);a._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(c){var f=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target)f=true});return f},_createHelper:function(c){var f=this.options;c=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[c])):f.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(f.appendTo=="parent"?
this.element[0].parentNode:f.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){if(c.left!=undefined)this.offset.click.left=c.left+this.margins.left;if(c.right!=undefined)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if(c.top!=undefined)this.offset.click.top=c.top+this.margins.top;if(c.bottom!=undefined)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},
_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),
10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),
10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(c.containment=="document"?document:window).width()-this.helperProportions.width-
this.margins.left,(b(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var f=b(c.containment)[0];if(f){c=b(c.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[c.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(b(f).css("borderTopWidth"),
10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,c.left+(a?Math.max(f.scrollWidth,f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(c.containment.constructor==
Array)this.containment=c.containment},_convertPositionTo:function(c,f){if(!f)f=this.position;c=c=="absolute"?1:-1;var a=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(a[0].tagName);return{top:f.top+this.offset.relative.top*c+this.offset.parent.top*c-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:a.scrollTop())*
c),left:f.left+this.offset.relative.left*c+this.offset.parent.left*c-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:a.scrollLeft())*c)}},_generatePosition:function(c){var f=this.options,a=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(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=
document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var i=c.pageX,j=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-this.offset.click.left<this.containment[0])i=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])j=this.containment[1]+this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])i=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])j=
this.containment[3]+this.offset.click.top}if(f.grid){j=this.originalPageY+Math.round((j-this.originalPageY)/f.grid[1])*f.grid[1];j=this.containment?!(j-this.offset.click.top<this.containment[1]||j-this.offset.click.top>this.containment[3])?j:!(j-this.offset.click.top<this.containment[1])?j-f.grid[1]:j+f.grid[1]:j;i=this.originalPageX+Math.round((i-this.originalPageX)/f.grid[0])*f.grid[0];i=this.containment?!(i-this.offset.click.left<this.containment[0]||i-this.offset.click.left>this.containment[2])?
i:!(i-this.offset.click.left<this.containment[0])?i-f.grid[0]:i+f.grid[0]:i}}return{top:j-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:a.scrollTop()),left:i-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:a.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");
this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,f,a){a=a||this._uiHash();b.ui.plugin.call(this,c,[f,a]);if(c=="drag")this.positionAbs=this._convertPositionTo("absolute");return b.widget.prototype._trigger.call(this,c,f,a)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",
eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add("draggable","connectToSortable",{start:function(c,
f){var a=b(this).data("draggable"),e=a.options,i=b.extend({},f,{item:a.element});a.sortables=[];b(e.connectToSortable).each(function(){var j=b.data(this,"sortable");if(j&&!j.options.disabled){a.sortables.push({instance:j,shouldRevert:j.options.revert});j._refreshItems();j._trigger("activate",c,i)}})},stop:function(c,f){var a=b(this).data("draggable"),e=b.extend({},f,{item:a.element});b.each(a.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;a.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=
false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(c);this.instance.options.helper=this.instance.options._helper;a.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",c,e)}})},drag:function(c,f){var a=b(this).data("draggable"),e=this;b.each(a.sortables,function(){this.instance.positionAbs=a.positionAbs;this.instance.helperProportions=a.helperProportions;
this.instance.offset.click=a.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(e).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return f.helper[0]};c.target=this.instance.currentItem[0];this.instance._mouseCapture(c,true);this.instance._mouseStart(c,true,true);this.instance.offset.click.top=
a.offset.click.top;this.instance.offset.click.left=a.offset.click.left;this.instance.offset.parent.left-=a.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=a.offset.parent.top-this.instance.offset.parent.top;a._trigger("toSortable",c);a.dropped=this.instance.element;a.currentItem=a.element;this.instance.fromOutside=a}this.instance.currentItem&&this.instance._mouseDrag(c)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;
this.instance.options.revert=false;this.instance._trigger("out",c,this.instance._uiHash(this.instance));this.instance._mouseStop(c,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();a._trigger("fromSortable",c);a.dropped=false}})}});b.ui.plugin.add("draggable","cursor",{start:function(){var c=b("body"),f=b(this).data("draggable").options;if(c.css("cursor"))f._cursor=c.css("cursor");c.css("cursor",
f.cursor)},stop:function(){var c=b(this).data("draggable").options;c._cursor&&b("body").css("cursor",c._cursor)}});b.ui.plugin.add("draggable","iframeFix",{start:function(){var c=b(this).data("draggable").options;b(c.iframeFix===true?"iframe":c.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(b(this).offset()).appendTo("body")})},stop:function(){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});
b.ui.plugin.add("draggable","opacity",{start:function(c,f){c=b(f.helper);f=b(this).data("draggable").options;if(c.css("opacity"))f._opacity=c.css("opacity");c.css("opacity",f.opacity)},stop:function(c,f){c=b(this).data("draggable").options;c._opacity&&b(f.helper).css("opacity",c._opacity)}});b.ui.plugin.add("draggable","scroll",{start:function(){var c=b(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var f=
b(this).data("draggable"),a=f.options,e=false;if(f.scrollParent[0]!=document&&f.scrollParent[0].tagName!="HTML"){if(!a.axis||a.axis!="x")if(f.overflowOffset.top+f.scrollParent[0].offsetHeight-c.pageY<a.scrollSensitivity)f.scrollParent[0].scrollTop=e=f.scrollParent[0].scrollTop+a.scrollSpeed;else if(c.pageY-f.overflowOffset.top<a.scrollSensitivity)f.scrollParent[0].scrollTop=e=f.scrollParent[0].scrollTop-a.scrollSpeed;if(!a.axis||a.axis!="y")if(f.overflowOffset.left+f.scrollParent[0].offsetWidth-c.pageX<
a.scrollSensitivity)f.scrollParent[0].scrollLeft=e=f.scrollParent[0].scrollLeft+a.scrollSpeed;else if(c.pageX-f.overflowOffset.left<a.scrollSensitivity)f.scrollParent[0].scrollLeft=e=f.scrollParent[0].scrollLeft-a.scrollSpeed}else{if(!a.axis||a.axis!="x")if(c.pageY-b(document).scrollTop()<a.scrollSensitivity)e=b(document).scrollTop(b(document).scrollTop()-a.scrollSpeed);else if(b(window).height()-(c.pageY-b(document).scrollTop())<a.scrollSensitivity)e=b(document).scrollTop(b(document).scrollTop()+
a.scrollSpeed);if(!a.axis||a.axis!="y")if(c.pageX-b(document).scrollLeft()<a.scrollSensitivity)e=b(document).scrollLeft(b(document).scrollLeft()-a.scrollSpeed);else if(b(window).width()-(c.pageX-b(document).scrollLeft())<a.scrollSensitivity)e=b(document).scrollLeft(b(document).scrollLeft()+a.scrollSpeed)}e!==false&&b.ui.ddmanager&&!a.dropBehaviour&&b.ui.ddmanager.prepareOffsets(f,c)}});b.ui.plugin.add("draggable","snap",{start:function(){var c=b(this).data("draggable"),f=c.options;c.snapElements=
[];b(f.snap.constructor!=String?f.snap.items||":data(draggable)":f.snap).each(function(){var a=b(this),e=a.offset();this!=c.element[0]&&c.snapElements.push({item:this,width:a.outerWidth(),height:a.outerHeight(),top:e.top,left:e.left})})},drag:function(c,f){for(var a=b(this).data("draggable"),e=a.options,i=e.snapTolerance,j=f.offset.left,r=j+a.helperProportions.width,n=f.offset.top,v=n+a.helperProportions.height,u=a.snapElements.length-1;u>=0;u--){var w=a.snapElements[u].left,q=w+a.snapElements[u].width,
C=a.snapElements[u].top,H=C+a.snapElements[u].height;if(w-i<j&&j<q+i&&C-i<n&&n<H+i||w-i<j&&j<q+i&&C-i<v&&v<H+i||w-i<r&&r<q+i&&C-i<n&&n<H+i||w-i<r&&r<q+i&&C-i<v&&v<H+i){if(e.snapMode!="inner"){var N=Math.abs(C-v)<=i,h=Math.abs(H-n)<=i,Q=Math.abs(w-r)<=i,L=Math.abs(q-j)<=i;if(N)f.position.top=a._convertPositionTo("relative",{top:C-a.helperProportions.height,left:0}).top-a.margins.top;if(h)f.position.top=a._convertPositionTo("relative",{top:H,left:0}).top-a.margins.top;if(Q)f.position.left=a._convertPositionTo("relative",
{top:0,left:w-a.helperProportions.width}).left-a.margins.left;if(L)f.position.left=a._convertPositionTo("relative",{top:0,left:q}).left-a.margins.left}var E=N||h||Q||L;if(e.snapMode!="outer"){N=Math.abs(C-n)<=i;h=Math.abs(H-v)<=i;Q=Math.abs(w-j)<=i;L=Math.abs(q-r)<=i;if(N)f.position.top=a._convertPositionTo("relative",{top:C,left:0}).top-a.margins.top;if(h)f.position.top=a._convertPositionTo("relative",{top:H-a.helperProportions.height,left:0}).top-a.margins.top;if(Q)f.position.left=a._convertPositionTo("relative",
{top:0,left:w}).left-a.margins.left;if(L)f.position.left=a._convertPositionTo("relative",{top:0,left:q-a.helperProportions.width}).left-a.margins.left}if(!a.snapElements[u].snapping&&(N||h||Q||L||E))a.options.snap.snap&&a.options.snap.snap.call(a.element,c,b.extend(a._uiHash(),{snapItem:a.snapElements[u].item}));a.snapElements[u].snapping=N||h||Q||L||E}else{a.snapElements[u].snapping&&a.options.snap.release&&a.options.snap.release.call(a.element,c,b.extend(a._uiHash(),{snapItem:a.snapElements[u].item}));
a.snapElements[u].snapping=false}}}});b.ui.plugin.add("draggable","stack",{start:function(){var c=b(this).data("draggable").options,f=b.makeArray(b(c.stack.group)).sort(function(a,e){return(parseInt(b(a).css("zIndex"),10)||c.stack.min)-(parseInt(b(e).css("zIndex"),10)||c.stack.min)});b(f).each(function(a){this.style.zIndex=c.stack.min+a});this[0].style.zIndex=c.stack.min+f.length}});b.ui.plugin.add("draggable","zIndex",{start:function(c,f){c=b(f.helper);f=b(this).data("draggable").options;if(c.css("zIndex"))f._zIndex=
c.css("zIndex");c.css("zIndex",f.zIndex)},stop:function(c,f){c=b(this).data("draggable").options;c._zIndex&&b(f.helper).css("zIndex",c._zIndex)}})})(jQuery);
(function(b){b.widget("ui.droppable",{_init:function(){var c=this.options.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&b.isFunction(this.options.accept)?this.options.accept:function(f){return f.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};b.ui.ddmanager.droppables[this.options.scope]=b.ui.ddmanager.droppables[this.options.scope]||[];b.ui.ddmanager.droppables[this.options.scope].push(this);this.options.addClasses&&this.element.addClass("ui-droppable")},
destroy:function(){for(var c=b.ui.ddmanager.droppables[this.options.scope],f=0;f<c.length;f++)c[f]==this&&c.splice(f,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},_setData:function(c,f){if(c=="accept")this.options.accept=f&&b.isFunction(f)?f:function(a){return a.is(f)};else b.widget.prototype._setData.apply(this,arguments)},_activate:function(c){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);
f&&this._trigger("activate",c,this.ui(f))},_deactivate:function(c){var f=b.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);f&&this._trigger("deactivate",c,this.ui(f))},_over:function(c){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",c,this.ui(f))}},
_out:function(c){var f=b.ui.ddmanager.current;if(!(!f||(f.currentItem||f.element)[0]==this.element[0]))if(this.options.accept.call(this.element[0],f.currentItem||f.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",c,this.ui(f))}},_drop:function(c,f){var a=f||b.ui.ddmanager.current;if(!a||(a.currentItem||a.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var i=
b.data(this,"droppable");if(i.options.greedy&&b.ui.intersect(a,b.extend(i,{offset:i.element.offset()}),i.options.tolerance)){e=true;return false}});if(e)return false;if(this.options.accept.call(this.element[0],a.currentItem||a.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",c,this.ui(a));return this.element}return false},ui:function(c){return{draggable:c.currentItem||
c.element,helper:c.helper,position:c.position,absolutePosition:c.positionAbs,offset:c.positionAbs}}});b.extend(b.ui.droppable,{version:"1.7.2",eventPrefix:"drop",defaults:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"}});b.ui.intersect=function(c,f,a){if(!f.offset)return false;var e=(c.positionAbs||c.position.absolute).left,i=e+c.helperProportions.width,j=(c.positionAbs||c.position.absolute).top,r=j+c.helperProportions.height,n=f.offset.left,
v=n+f.proportions.width,u=f.offset.top,w=u+f.proportions.height;switch(a){case "fit":return n<e&&i<v&&u<j&&r<w;case "intersect":return n<e+c.helperProportions.width/2&&i-c.helperProportions.width/2<v&&u<j+c.helperProportions.height/2&&r-c.helperProportions.height/2<w;case "pointer":return b.ui.isOver((c.positionAbs||c.position.absolute).top+(c.clickOffset||c.offset.click).top,(c.positionAbs||c.position.absolute).left+(c.clickOffset||c.offset.click).left,u,n,f.proportions.height,f.proportions.width);
case "touch":return(j>=u&&j<=w||r>=u&&r<=w||j<u&&r>w)&&(e>=n&&e<=v||i>=n&&i<=v||e<n&&i>v);default:return false}};b.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,f){var a=b.ui.ddmanager.droppables[c.options.scope],e=f?f.type:null,i=(c.currentItem||c.element).find(":data(droppable)").andSelf(),j=0;a:for(;j<a.length;j++)if(!(a[j].options.disabled||c&&!a[j].options.accept.call(a[j].element[0],c.currentItem||c.element))){for(var r=0;r<i.length;r++)if(i[r]==a[j].element[0]){a[j].proportions.height=
0;continue a}a[j].visible=a[j].element.css("display")!="none";if(a[j].visible){a[j].offset=a[j].element.offset();a[j].proportions={width:a[j].element[0].offsetWidth,height:a[j].element[0].offsetHeight};e=="mousedown"&&a[j]._activate.call(a[j],f)}}},drop:function(c,f){var a=false;b.each(b.ui.ddmanager.droppables[c.options.scope],function(){if(this.options){if(!this.options.disabled&&this.visible&&b.ui.intersect(c,this,this.options.tolerance))a=this._drop.call(this,f);if(!this.options.disabled&&this.visible&&
this.options.accept.call(this.element[0],c.currentItem||c.element)){this.isout=1;this.isover=0;this._deactivate.call(this,f)}}});return a},drag:function(c,f){c.options.refreshPositions&&b.ui.ddmanager.prepareOffsets(c,f);b.each(b.ui.ddmanager.droppables[c.options.scope],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var a=b.ui.intersect(c,this,this.options.tolerance);if(a=!a&&this.isover==1?"isout":a&&this.isover==0?"isover":null){var e;if(this.options.greedy){var i=this.element.parents(":data(droppable):eq(0)");
if(i.length){e=b.data(i[0],"droppable");e.greedyChild=a=="isover"?1:0}}if(e&&a=="isover"){e.isover=0;e.isout=1;e._out.call(e,f)}this[a]=1;this[a=="isout"?"isover":"isout"]=0;this[a=="isover"?"_over":"_out"].call(this,f);if(e&&a=="isout"){e.isout=0;e.isover=1;e._over.call(e,f)}}}})}}})(jQuery);
(function(b){b.widget("ui.sortable",b.extend({},b.ui.mouse,{_init: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 c=this.items.length-1;c>=0;c--)this.items[c].item.removeData("sortable-item")},
_mouseCapture:function(c,f){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(c);var a=null,e=this;b(c.target).parents().each(function(){if(b.data(this,"sortable-item")==e){a=b(this);return false}});if(b.data(c.target,"sortable-item")==e)a=b(c.target);if(!a)return false;if(this.options.handle&&!f){var i=false;b(this.options.handle,a).find("*").andSelf().each(function(){if(this==c.target)i=true});if(!i)return false}this.currentItem=
a;this._removeCurrentsFromItems();return true},_mouseStart:function(c,f,a){f=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(c);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:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();
if(f.cursor){if(b("body").css("cursor"))this._storedCursor=b("body").css("cursor");b("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
c,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!a)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",c,e._uiHash(this));if(b.ui.ddmanager)b.ui.ddmanager.current=this;b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,c);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(c);return true},_mouseDrag:function(c){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");
if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var f=this.options,a=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-c.pageY<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+f.scrollSpeed;else if(c.pageY-this.overflowOffset.top<f.scrollSensitivity)this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-f.scrollSpeed;if(this.overflowOffset.left+
this.scrollParent[0].offsetWidth-c.pageX<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+f.scrollSpeed;else if(c.pageX-this.overflowOffset.left<f.scrollSensitivity)this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-f.scrollSpeed}else{if(c.pageY-b(document).scrollTop()<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()-f.scrollSpeed);else if(b(window).height()-(c.pageY-b(document).scrollTop())<f.scrollSensitivity)a=b(document).scrollTop(b(document).scrollTop()+
f.scrollSpeed);if(c.pageX-b(document).scrollLeft()<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()-f.scrollSpeed);else if(b(window).width()-(c.pageX-b(document).scrollLeft())<f.scrollSensitivity)a=b(document).scrollLeft(b(document).scrollLeft()+f.scrollSpeed)}a!==false&&b.ui.ddmanager&&!f.dropBehaviour&&b.ui.ddmanager.prepareOffsets(this,c)}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(f=this.items.length-1;f>=0;f--){a=this.items[f];var e=a.item[0],i=this._intersectsWithPointer(a);if(i)if(e!=this.currentItem[0]&&this.placeholder[i==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=i==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(a))this._rearrange(c,
a);else break;this._trigger("change",c,this._uiHash());break}}this._contactContainers(c);b.ui.ddmanager&&b.ui.ddmanager.drag(this,c);this._trigger("sort",c,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,f){if(c){b.ui.ddmanager&&!this.options.dropBehaviour&&b.ui.ddmanager.drop(this,c);if(this.options.revert){var a=this;f=a.placeholder.offset();a.reverting=true;b(this.helper).animate({left:f.left-this.offset.parent.left-a.margins.left+(this.offsetParent[0]==
document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-a.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){a._clear(c)})}else this._clear(c,f);return false}},cancel:function(){var c=this;if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var f=this.containers.length-1;f>=0;f--){this.containers[f]._trigger("deactivate",
null,c._uiHash(this));if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",null,c._uiHash(this));this.containers[f].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 true},serialize:function(c){var f=this._getItemsAsjQuery(c&&c.connected),a=[];c=c||{};b(f).each(function(){var e=(b(c.item||this).attr(c.attribute||"id")||"").match(c.expression||/(.+)[-=_](.+)/);if(e)a.push((c.key||e[1]+"[]")+"="+(c.key&&c.expression?e[1]:e[2]))});return a.join("&")},toArray:function(c){var f=this._getItemsAsjQuery(c&&c.connected),a=[];c=c||{};f.each(function(){a.push(b(c.item||this).attr(c.attribute||"id")||"")});return a},
_intersectsWith:function(c){var f=this.positionAbs.left,a=f+this.helperProportions.width,e=this.positionAbs.top,i=e+this.helperProportions.height,j=c.left,r=j+c.width,n=c.top,v=n+c.height,u=this.offset.click.top,w=this.offset.click.left;u=e+u>n&&e+u<v&&f+w>j&&f+w<r;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>c[this.floating?"width":"height"]?u:j<f+this.helperProportions.width/
2&&a-this.helperProportions.width/2<r&&n<e+this.helperProportions.height/2&&i-this.helperProportions.height/2<v},_intersectsWithPointer:function(c){var f=b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height);c=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width);f=f&&c;c=this._getDragVerticalDirection();var a=this._getDragHorizontalDirection();if(!f)return false;return this.floating?a&&a=="right"||c=="down"?2:1:c&&(c=="down"?2:1)},_intersectsWithSides:function(c){var f=
b.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height);c=b.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width);var a=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&c||e=="left"&&!c:a&&(a=="down"&&f||a=="up"&&!f)},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=
this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions()},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var f=[],a=[],e=this._connectWith();if(e&&c)for(c=e.length-1;c>=0;c--)for(var i=b(e[c]),j=i.length-1;j>=0;j--){var r=b.data(i[j],"sortable");if(r&&r!=this&&!r.options.disabled)a.push([b.isFunction(r.options.items)?
r.options.items.call(r.element):b(r.options.items,r.element).not(".ui-sortable-helper"),r])}a.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"),this]);for(c=a.length-1;c>=0;c--)a[c][0].each(function(){f.push(this)});return b(f)},_removeCurrentsFromItems:function(){for(var c=this.currentItem.find(":data(sortable-item)"),f=0;f<this.items.length;f++)for(var a=0;a<
c.length;a++)c[a]==this.items[f].item[0]&&this.items.splice(f,1)},_refreshItems:function(c){this.items=[];this.containers=[this];var f=this.items,a=[[b.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):b(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var i=e.length-1;i>=0;i--)for(var j=b(e[i]),r=j.length-1;r>=0;r--){var n=b.data(j[r],"sortable");if(n&&n!=this&&!n.options.disabled){a.push([b.isFunction(n.options.items)?n.options.items.call(n.element[0],
c,{item:this.currentItem}):b(n.options.items,n.element),n]);this.containers.push(n)}}for(i=a.length-1;i>=0;i--){c=a[i][1];e=a[i][0];r=0;for(j=e.length;r<j;r++){n=b(e[r]);n.data("sortable-item",c);f.push({item:n,instance:c,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var f=this.items.length-1;f>=0;f--){var a=this.items[f];if(!(a.instance!=this.currentContainer&&this.currentContainer&&a.item[0]!=this.currentItem[0])){var e=
this.options.toleranceElement?b(this.options.toleranceElement,a.item):a.item;if(!c){a.width=e.outerWidth();a.height=e.outerHeight()}e=e.offset();a.left=e.left;a.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(f=this.containers.length-1;f>=0;f--){e=this.containers[f].element.offset();this.containers[f].containerCache.left=e.left;this.containers[f].containerCache.top=e.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();
this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}},_createPlaceholder:function(c){var f=c||this,a=f.options;if(!a.placeholder||a.placeholder.constructor==String){var e=a.placeholder;a.placeholder={element:function(){var i=b(document.createElement(f.currentItem[0].nodeName)).addClass(e||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)i.style.visibility="hidden";return i},update:function(i,j){if(!(e&&!a.forcePlaceholderSize)){j.height()||
j.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));j.width()||j.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=b(a.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);a.placeholder.update(f,f.placeholder)},_contactContainers:function(c){for(var f=this.containers.length-1;f>=0;f--)if(this._intersectsWith(this.containers[f].containerCache)){if(!this.containers[f].containerCache.over){if(this.currentContainer!=
this.containers[f]){for(var a=1E4,e=null,i=this.positionAbs[this.containers[f].floating?"left":"top"],j=this.items.length-1;j>=0;j--)if(b.ui.contains(this.containers[f].element[0],this.items[j].item[0])){var r=this.items[j][this.containers[f].floating?"left":"top"];if(Math.abs(r-i)<a){a=Math.abs(r-i);e=this.items[j]}}if(!e&&!this.options.dropOnEmpty)continue;this.currentContainer=this.containers[f];e?this._rearrange(c,e,null,true):this._rearrange(c,null,this.containers[f].element,true);this._trigger("change",
c,this._uiHash());this.containers[f]._trigger("change",c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder)}this.containers[f]._trigger("over",c,this._uiHash(this));this.containers[f].containerCache.over=1}}else if(this.containers[f].containerCache.over){this.containers[f]._trigger("out",c,this._uiHash(this));this.containers[f].containerCache.over=0}},_createHelper:function(c){var f=this.options;c=b.isFunction(f.helper)?b(f.helper.apply(this.element[0],[c,
this.currentItem])):f.helper=="clone"?this.currentItem.clone():this.currentItem;c.parents("body").length||b(f.appendTo!="parent"?f.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]);if(c[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(c[0].style.width==""||f.forceHelperSize)c.width(this.currentItem.width());
if(c[0].style.height==""||f.forceHelperSize)c.height(this.currentItem.height());return c},_adjustOffsetFromHelper:function(c){if(c.left!=undefined)this.offset.click.left=c.left+this.margins.left;if(c.right!=undefined)this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;if(c.top!=undefined)this.offset.click.top=c.top+this.margins.top;if(c.bottom!=undefined)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.currentItem.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.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 c=this.options;if(c.containment=="parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(c.containment=="document"?document:window).height()||
document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)){var f=b(c.containment)[0];c=b(c.containment).offset();var a=b(f).css("overflow")!="hidden";this.containment=[c.left+(parseInt(b(f).css("borderLeftWidth"),10)||0)+(parseInt(b(f).css("paddingLeft"),10)||0)-this.margins.left,c.top+(parseInt(b(f).css("borderTopWidth"),10)||0)+(parseInt(b(f).css("paddingTop"),10)||0)-this.margins.top,c.left+(a?Math.max(f.scrollWidth,
f.offsetWidth):f.offsetWidth)-(parseInt(b(f).css("borderLeftWidth"),10)||0)-(parseInt(b(f).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,c.top+(a?Math.max(f.scrollHeight,f.offsetHeight):f.offsetHeight)-(parseInt(b(f).css("borderTopWidth"),10)||0)-(parseInt(b(f).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(c,f){if(!f)f=this.position;c=c=="absolute"?1:-1;var a=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(a[0].tagName);return{top:f.top+this.offset.relative.top*c+this.offset.parent.top*c-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:a.scrollTop())*c),left:f.left+this.offset.relative.left*c+this.offset.parent.left*c-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
e?0:a.scrollLeft())*c)}},_generatePosition:function(c){var f=this.options,a=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(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var i=c.pageX,j=c.pageY;if(this.originalPosition){if(this.containment){if(c.pageX-
this.offset.click.left<this.containment[0])i=this.containment[0]+this.offset.click.left;if(c.pageY-this.offset.click.top<this.containment[1])j=this.containment[1]+this.offset.click.top;if(c.pageX-this.offset.click.left>this.containment[2])i=this.containment[2]+this.offset.click.left;if(c.pageY-this.offset.click.top>this.containment[3])j=this.containment[3]+this.offset.click.top}if(f.grid){j=this.originalPageY+Math.round((j-this.originalPageY)/f.grid[1])*f.grid[1];j=this.containment?!(j-this.offset.click.top<
this.containment[1]||j-this.offset.click.top>this.containment[3])?j:!(j-this.offset.click.top<this.containment[1])?j-f.grid[1]:j+f.grid[1]:j;i=this.originalPageX+Math.round((i-this.originalPageX)/f.grid[0])*f.grid[0];i=this.containment?!(i-this.offset.click.left<this.containment[0]||i-this.offset.click.left>this.containment[2])?i:!(i-this.offset.click.left<this.containment[0])?i-f.grid[0]:i+f.grid[0]:i}}return{top:j-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:a.scrollTop()),left:i-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:a.scrollLeft())}},_rearrange:function(c,f,a,e){a?a[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?f.item[0]:f.item[0].nextSibling);this.counter=
this.counter?++this.counter:1;var i=this,j=this.counter;window.setTimeout(function(){j==i.counter&&i.refreshPositions(!e)},0)},_clear:function(c,f){this.reverting=false;var a=[];!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&&!f&&a.push(function(i){this._trigger("receive",i,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])&&!f)a.push(function(i){this._trigger("update",i,this._uiHash())});if(!b.ui.contains(this.element[0],this.currentItem[0])){f||a.push(function(i){this._trigger("remove",i,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(b.ui.contains(this.containers[e].element[0],
this.currentItem[0])&&!f){a.push(function(i){return function(j){i._trigger("receive",j,this._uiHash(this))}}.call(this,this.containers[e]));a.push(function(i){return function(j){i._trigger("update",j,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){f||a.push(function(i){return function(j){i._trigger("deactivate",j,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){a.push(function(i){return function(j){i._trigger("out",
j,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(!f){this._trigger("beforeStop",c,this._uiHash());for(e=0;e<a.length;e++)a[e].call(this,c);this._trigger("stop",c,this._uiHash())}return false}f||
this._trigger("beforeStop",c,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(e=0;e<a.length;e++)a[e].call(this,c);this._trigger("stop",c,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){b.widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(c){var f=c||this;return{helper:f.helper,placeholder:f.placeholder||b([]),position:f.position,
absolutePosition:f.positionAbs,offset:f.positionAbs,item:f.currentItem,sender:c?c.element:null}}}));b.extend(b.ui.sortable,{getter:"serialize toArray",version:"1.7.2",eventPrefix:"sort",defaults:{appendTo:"parent",axis:false,cancel:":input,option",connectWith:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,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}})})(jQuery);
(function(b){b.widget("ui.slider",b.extend({},b.ui.mouse,{_init:function(){var c=this,f=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=b([]);if(f.range){if(f.range===true){this.range=b("<div></div>");if(!f.values)f.values=[this._valueMin(),this._valueMin()];if(f.values.length&&f.values.length!=2)f.values=[f.values[0],f.values[0]]}else this.range=
b("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(f.range=="min"||f.range=="max")this.range.addClass("ui-slider-range-"+f.range);this.range.addClass("ui-widget-header")}b(".ui-slider-handle",this.element).length==0&&b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(f.values&&f.values.length)for(;b(".ui-slider-handle",this.element).length<f.values.length;)b('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){f.disabled||b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(f.disabled)b(this).blur();else{b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}}).blur(function(){b(this).removeClass("ui-state-focus")});
this.handles.each(function(a){b(this).data("index.ui-slider-handle",a)});this.handles.keydown(function(a){var e=true,i=b(this).data("index.ui-slider-handle");if(!c.options.disabled){switch(a.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:e=false;if(!c._keySliding){c._keySliding=true;b(this).addClass("ui-state-active");c._start(a,i)}break}var j,r,n=c._step();j=c.options.values&&c.options.values.length?
(r=c.values(i)):(r=c.value());switch(a.keyCode){case b.ui.keyCode.HOME:r=c._valueMin();break;case b.ui.keyCode.END:r=c._valueMax();break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(j==c._valueMax())return;r=j+n;break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(j==c._valueMin())return;r=j-n;break}c._slide(a,i,r);return e}}).keyup(function(a){var e=b(this).data("index.ui-slider-handle");if(c._keySliding){c._stop(a,e);c._change(a,e);c._keySliding=false;b(this).removeClass("ui-state-active")}});
this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(c){var f=this.options;if(f.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var a={x:c.pageX,y:c.pageY},
e=this._normValueFromMouse(a),i=this._valueMax()-this._valueMin()+1,j,r=this,n;this.handles.each(function(v){var u=Math.abs(e-r.values(v));if(i>u){i=u;j=b(this);n=v}});if(f.range==true&&this.values(1)==f.min)j=b(this.handles[++n]);this._start(c,n);r._handleIndex=n;j.addClass("ui-state-active").focus();f=j.offset();this._clickOffset=!b(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-f.left-j.width()/2,top:c.pageY-f.top-j.height()/2-(parseInt(j.css("borderTopWidth"),
10)||0)-(parseInt(j.css("borderBottomWidth"),10)||0)+(parseInt(j.css("marginTop"),10)||0)};e=this._normValueFromMouse(a);this._slide(c,n,e);return true},_mouseStart:function(){return true},_mouseDrag:function(c){var f=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,f);return false},_mouseStop:function(c){this.handles.removeClass("ui-state-active");this._stop(c,this._handleIndex);this._change(c,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var f;if("horizontal"==this.orientation){f=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{f=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}f=c/f;if(f>1)f=1;if(f<0)f=0;if("vertical"==this.orientation)f=1-f;c=this._valueMax()-this._valueMin();c=f*c;f=c%this.options.step;
c=this._valueMin()+c-f;if(f>this.options.step/2)c+=this.options.step;return parseFloat(c.toFixed(5))},_start:function(c,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("start",c,a)},_slide:function(c,f,a){if(this.options.values&&this.options.values.length){var e=this.values(f?0:1);if(this.options.values.length==2&&this.options.range===true&&(f==0&&a>e||f==1&&a<e))a=e;if(a!=this.values(f)){e=
this.values();e[f]=a;e=this._trigger("slide",c,{handle:this.handles[f],value:a,values:e});this.values(f?0:1);e!==false&&this.values(f,a,c.type=="mousedown"&&this.options.animate,true)}}else if(a!=this.value()){e=this._trigger("slide",c,{handle:this.handles[f],value:a});e!==false&&this._setData("value",a,c.type=="mousedown"&&this.options.animate)}},_stop:function(c,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=
this.values()}this._trigger("stop",c,a)},_change:function(c,f){var a={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){a.value=this.values(f);a.values=this.values()}this._trigger("change",c,a)},value:function(c){if(arguments.length){this._setData("value",c);this._change(null,0)}return this._value()},values:function(c,f,a,e){if(arguments.length>1){this.options.values[c]=f;this._refreshValue(a);e||this._change(null,c)}return arguments.length?this.options.values&&
this.options.values.length?this._values(c):this.value():this._values()},_setData:function(c,f,a){b.widget.prototype._setData.apply(this,arguments);switch(c){case "disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);
this._refreshValue(a);break;case "value":this._refreshValue(a);break}},_step:function(){return this.options.step},_value:function(){var c=this.options.value;if(c<this._valueMin())c=this._valueMin();if(c>this._valueMax())c=this._valueMax();return c},_values:function(c){if(arguments.length){var f=this.options.values[c];if(f<this._valueMin())f=this._valueMin();if(f>this._valueMax())f=this._valueMax();return f}else return this.options.values},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
_refreshValue:function(c){var f=this.options.range,a=this.options,e=this;if(this.options.values&&this.options.values.length)this.handles.each(function(n){var v=(e.values(n)-e._valueMin())/(e._valueMax()-e._valueMin())*100,u={};u[e.orientation=="horizontal"?"left":"bottom"]=v+"%";b(this).stop(1,1)[c?"animate":"css"](u,a.animate);if(e.options.range===true)if(e.orientation=="horizontal"){n==0&&e.range.stop(1,1)[c?"animate":"css"]({left:v+"%"},a.animate);n==1&&e.range[c?"animate":"css"]({width:v-lastValPercent+
"%"},{queue:false,duration:a.animate})}else{n==0&&e.range.stop(1,1)[c?"animate":"css"]({bottom:v+"%"},a.animate);n==1&&e.range[c?"animate":"css"]({height:v-lastValPercent+"%"},{queue:false,duration:a.animate})}lastValPercent=v});else{var i=this.value(),j=this._valueMin(),r=this._valueMax();i=r!=j?(i-j)/(r-j)*100:0;j={};j[e.orientation=="horizontal"?"left":"bottom"]=i+"%";this.handle.stop(1,1)[c?"animate":"css"](j,a.animate);f=="min"&&this.orientation=="horizontal"&&this.range.stop(1,1)[c?"animate":
"css"]({width:i+"%"},a.animate);f=="max"&&this.orientation=="horizontal"&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:false,duration:a.animate});f=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate);f=="max"&&this.orientation=="vertical"&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:false,duration:a.animate})}}}));b.extend(b.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,
distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);
(function(b){function c(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,
beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};b.extend(this._defaults,this.regional[""]);this.dpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function f(a,e){b.extend(a,e);for(var i in e)if(e[i]==null||e[i]==undefined)a[i]=e[i];return a}
b.extend(b.ui,{datepicker:{version:"1.7.2"}});b.extend(c.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},setDefaults:function(a){f(this._defaults,a||{});return this},_attachDatepicker:function(a,e){var i=null;for(var j in this._defaults){var r=a.getAttribute("date:"+j);if(r){i=i||{};try{i[j]=eval(r)}catch(n){i[j]=r}}}j=a.nodeName.toLowerCase();r=j=="div"||j=="span";if(!a.id)a.id="dp"+ ++this.uuid;var v=this._newInst(b(a),r);v.settings=b.extend({},
e||{},i||{});if(j=="input")this._connectDatepicker(a,v);else r&&this._inlineDatepicker(a,v)},_newInst:function(a,e){return{id:a[0].id.replace(/([:\[\]\.])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:!e?this.dpDiv:b('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,e){var i=b(a);e.append=b([]);e.trigger=b([]);if(!i.hasClass(this.markerClassName)){var j=
this._get(e,"appendText"),r=this._get(e,"isRTL");if(j){e.append=b('<span class="'+this._appendClass+'">'+j+"</span>");i[r?"before":"after"](e.append)}j=this._get(e,"showOn");if(j=="focus"||j=="both")i.focus(this._showDatepicker);if(j=="button"||j=="both"){j=this._get(e,"buttonText");var n=this._get(e,"buttonImage");e.trigger=b(this._get(e,"buttonImageOnly")?b("<img/>").addClass(this._triggerClass).attr({src:n,alt:j,title:j}):b('<button type="button"></button>').addClass(this._triggerClass).html(n==
""?j:b("<img/>").attr({src:n,alt:j,title:j})));i[r?"before":"after"](e.trigger);e.trigger.click(function(){b.datepicker._datepickerShowing&&b.datepicker._lastInput==a?b.datepicker._hideDatepicker():b.datepicker._showDatepicker(a);return false})}i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(v,u,w){e.settings[u]=w}).bind("getData.datepicker",function(v,u){return this._get(e,u)});b.data(a,"datepicker",e)}},_inlineDatepicker:function(a,
e){var i=b(a);if(!i.hasClass(this.markerClassName)){i.addClass(this.markerClassName).append(e.dpDiv).bind("setData.datepicker",function(j,r,n){e.settings[r]=n}).bind("getData.datepicker",function(j,r){return this._get(e,r)});b.data(a,"datepicker",e);this._setDate(e,this._getDefaultDate(e));this._updateDatepicker(e);this._updateAlternate(e)}},_dialogDatepicker:function(a,e,i,j,r){a=this._dialogInst;if(!a){a="dp"+ ++this.uuid;this._dialogInput=b('<input type="text" id="'+a+'" size="1" style="position: absolute; top: -100px;"/>');
this._dialogInput.keydown(this._doKeyDown);b("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};b.data(this._dialogInput[0],"datepicker",a)}f(a.settings,j||{});this._dialogInput.val(e);this._pos=r?r.length?r:[r.pageX,r.pageY]:null;if(!this._pos)this._pos=[(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),(window.innerHeight||document.documentElement.clientHeight||
document.body.clientHeight)/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");a.settings.onSelect=i;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);b.blockUI&&b.blockUI(this.dpDiv);b.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var e=b(a),i=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var j=a.nodeName.toLowerCase();
b.removeData(a,"datepicker");if(j=="input"){i.append.remove();i.trigger.remove();e.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else if(j=="div"||j=="span")e.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var e=b(a),i=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var j=a.nodeName.toLowerCase();if(j=="input"){a.disabled=false;i.trigger.filter("button").each(function(){this.disabled=
false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(j=="div"||j=="span")e.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(r){return r==a?null:r})}},_disableDatepicker:function(a){var e=b(a),i=b.data(a,"datepicker");if(e.hasClass(this.markerClassName)){var j=a.nodeName.toLowerCase();if(j=="input"){a.disabled=true;i.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",
cursor:"default"})}else if(j=="div"||j=="span")e.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=b.map(this._disabledInputs,function(r){return r==a?null:r});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]==a)return true;return false},_getInst:function(a){try{return b.data(a,"datepicker")}catch(e){throw"Missing instance data for this datepicker";
}},_optionDatepicker:function(a,e,i){var j=this._getInst(a);if(arguments.length==2&&typeof e=="string")return e=="defaults"?b.extend({},b.datepicker._defaults):j?e=="all"?b.extend({},j.settings):this._get(j,e):null;var r=e||{};if(typeof e=="string"){r={};r[e]=i}if(j){this._curInst==j&&this._hideDatepicker(null);var n=this._getDateDatepicker(a);f(j.settings,r);this._setDateDatepicker(a,n);this._updateDatepicker(j)}},_changeDatepicker:function(a,e,i){this._optionDatepicker(a,e,i)},_refreshDatepicker:function(a){(a=
this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,e,i){if(a=this._getInst(a)){this._setDate(a,e,i);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a);return a?this._getDate(a):null},_doKeyDown:function(a){var e=b.datepicker._getInst(a.target),i=true,j=e.dpDiv.is(".ui-datepicker-rtl");e._keyEvent=true;if(b.datepicker._datepickerShowing)switch(a.keyCode){case 9:b.datepicker._hideDatepicker(null,
"");break;case 13:i=b("td."+b.datepicker._dayOverClass+", td."+b.datepicker._currentClass,e.dpDiv);i[0]?b.datepicker._selectDay(a.target,e.selectedMonth,e.selectedYear,i[0]):b.datepicker._hideDatepicker(null,b.datepicker._get(e,"duration"));return false;case 27:b.datepicker._hideDatepicker(null,b.datepicker._get(e,"duration"));break;case 33:b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,"stepMonths"),"M");break;case 34:b.datepicker._adjustDate(a.target,
a.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)b.datepicker._clearDate(a.target);i=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)b.datepicker._gotoToday(a.target);i=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,j?+1:-1,"D");i=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?-b.datepicker._get(e,"stepBigMonths"):-b.datepicker._get(e,
"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,-7,"D");i=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,j?-1:+1,"D");i=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)b.datepicker._adjustDate(a.target,a.ctrlKey?+b.datepicker._get(e,"stepBigMonths"):+b.datepicker._get(e,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)b.datepicker._adjustDate(a.target,+7,"D");i=a.ctrlKey||a.metaKey;break;default:i=false}else if(a.keyCode==
36&&a.ctrlKey)b.datepicker._showDatepicker(this);else i=false;if(i){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var e=b.datepicker._getInst(a.target);if(b.datepicker._get(e,"constrainInput")){e=b.datepicker._possibleChars(b.datepicker._get(e,"dateFormat"));var i=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||i<" "||!e||e.indexOf(i)>-1}},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=b("input",a.parentNode)[0];
if(!(b.datepicker._isDisabledDatepicker(a)||b.datepicker._lastInput==a)){var e=b.datepicker._getInst(a),i=b.datepicker._get(e,"beforeShow");f(e.settings,i?i.apply(a,[a,e]):{});b.datepicker._hideDatepicker(null,"");b.datepicker._lastInput=a;b.datepicker._setDateFromField(e);if(b.datepicker._inDialog)a.value="";if(!b.datepicker._pos){b.datepicker._pos=b.datepicker._findPos(a);b.datepicker._pos[1]+=a.offsetHeight}var j=false;b(a).parents().each(function(){j|=b(this).css("position")=="fixed";return!j});
if(j&&b.browser.opera){b.datepicker._pos[0]-=document.documentElement.scrollLeft;b.datepicker._pos[1]-=document.documentElement.scrollTop}a={left:b.datepicker._pos[0],top:b.datepicker._pos[1]};b.datepicker._pos=null;e.rangeStart=null;e.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});b.datepicker._updateDatepicker(e);a=b.datepicker._checkOffset(e,a,j);e.dpDiv.css({position:b.datepicker._inDialog&&b.blockUI?"static":j?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});
if(!e.inline){a=b.datepicker._get(e,"showAnim")||"show";i=b.datepicker._get(e,"duration");var r=function(){b.datepicker._datepickerShowing=true;b.browser.msie&&parseInt(b.browser.version,10)<7&&b("iframe.ui-datepicker-cover").css({width:e.dpDiv.width()+4,height:e.dpDiv.height()+4})};b.effects&&b.effects[a]?e.dpDiv.show(a,b.datepicker._get(e,"showOptions"),i,r):e.dpDiv[a](i,r);i==""&&r();e.input[0].type!="hidden"&&e.input[0].focus();b.datepicker._curInst=e}}},_updateDatepicker:function(a){var e={width:a.dpDiv.width()+
4,height:a.dpDiv.height()+4},i=this;a.dpDiv.empty().append(this._generateHTML(a)).find("iframe.ui-datepicker-cover").css({width:e.width,height:e.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){b(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",
function(){if(!i._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){b(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&b(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&b(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();e=this._getNumberOfMonths(a);var j=e[1];j>
1?a.dpDiv.addClass("ui-datepicker-multi-"+j).css("width",17*j+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(e[0]!=1||e[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a.input&&a.input[0].type!="hidden"&&a==b.datepicker._curInst&&b(a.input[0]).focus()},_checkOffset:function(a,e,i){var j=a.dpDiv.outerWidth(),r=a.dpDiv.outerHeight(),n=a.input?a.input.outerWidth():
0,v=a.input?a.input.outerHeight():0,u=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+b(document).scrollLeft(),w=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+b(document).scrollTop();e.left-=this._get(a,"isRTL")?j-n:0;e.left-=i&&e.left==a.input.offset().left?b(document).scrollLeft():0;e.top-=i&&e.top==a.input.offset().top+v?b(document).scrollTop():0;e.left-=e.left+j>u&&u>j?Math.abs(e.left+j-u):0;e.top-=e.top+r>w&&w>r?Math.abs(e.top+
r+v*2-w):0;return e},_findPos:function(a){for(;a&&(a.type=="hidden"||a.nodeType!=1);)a=a.nextSibling;a=b(a).offset();return[a.left,a.top]},_hideDatepicker:function(a,e){var i=this._curInst;if(!(!i||a&&i!=b.data(a,"datepicker"))){i.stayOpen&&this._selectDate("#"+i.id,this._formatDate(i,i.currentDay,i.currentMonth,i.currentYear));i.stayOpen=false;if(this._datepickerShowing){e=e!=null?e:this._get(i,"duration");a=this._get(i,"showAnim");var j=function(){b.datepicker._tidyDialog(i)};e!=""&&b.effects&&
b.effects[a]?i.dpDiv.hide(a,b.datepicker._get(i,"showOptions"),e,j):i.dpDiv[e==""?"hide":a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](e,j);e==""&&this._tidyDialog(i);if(e=this._get(i,"onClose"))e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(b.blockUI){b.unblockUI();b("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null}},
_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(b.datepicker._curInst){a=b(a.target);a.parents("#"+b.datepicker._mainDivId).length==0&&!a.hasClass(b.datepicker.markerClassName)&&!a.hasClass(b.datepicker._triggerClass)&&b.datepicker._datepickerShowing&&!(b.datepicker._inDialog&&b.blockUI)&&b.datepicker._hideDatepicker(null,"")}},_adjustDate:function(a,e,i){a=b(a);var j=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(j,
e+(i=="M"?this._get(j,"showCurrentAtPos"):0),i);this._updateDatepicker(j)}},_gotoToday:function(a){a=b(a);var e=this._getInst(a[0]);if(this._get(e,"gotoCurrent")&&e.currentDay){e.selectedDay=e.currentDay;e.drawMonth=e.selectedMonth=e.currentMonth;e.drawYear=e.selectedYear=e.currentYear}else{var i=new Date;e.selectedDay=i.getDate();e.drawMonth=e.selectedMonth=i.getMonth();e.drawYear=e.selectedYear=i.getFullYear()}this._notifyChange(e);this._adjustDate(a)},_selectMonthYear:function(a,e,i){a=b(a);var j=
this._getInst(a[0]);j._selectingMonthYear=false;j["selected"+(i=="M"?"Month":"Year")]=j["draw"+(i=="M"?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10);this._notifyChange(j);this._adjustDate(a)},_clickMonthYear:function(a){a=this._getInst(b(a)[0]);a.input&&a._selectingMonthYear&&!b.browser.msie&&a.input[0].focus();a._selectingMonthYear=!a._selectingMonthYear},_selectDay:function(a,e,i,j){var r=b(a);if(!(b(j).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0]))){r=this._getInst(r[0]);
r.selectedDay=r.currentDay=b("a",j).html();r.selectedMonth=r.currentMonth=e;r.selectedYear=r.currentYear=i;if(r.stayOpen)r.endDay=r.endMonth=r.endYear=null;this._selectDate(a,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear));if(r.stayOpen){r.rangeStart=this._daylightSavingAdjust(new Date(r.currentYear,r.currentMonth,r.currentDay));this._updateDatepicker(r)}}},_clearDate:function(a){a=b(a);var e=this._getInst(a[0]);e.stayOpen=false;e.endDay=e.endMonth=e.endYear=e.rangeStart=null;this._selectDate(a,
"")},_selectDate:function(a,e){a=this._getInst(b(a)[0]);e=e!=null?e:this._formatDate(a);a.input&&a.input.val(e);this._updateAlternate(a);var i=this._get(a,"onSelect");if(i)i.apply(a.input?a.input[0]:null,[e,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else if(!a.stayOpen){this._hideDatepicker(null,this._get(a,"duration"));this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input[0].focus();this._lastInput=null}},_updateAlternate:function(a){var e=this._get(a,
"altField");if(e){var i=this._get(a,"altFormat")||this._get(a,"dateFormat"),j=this._getDate(a);dateStr=this.formatDate(i,j,this._getFormatConfig(a));b(e).each(function(){b(this).val(dateStr)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getFullYear(),a.getMonth(),a.getDate());var e=new Date(a.getFullYear(),0,4),i=e.getDay()||7;e.setDate(e.getDate()+1-i);if(i<4&&a<e){a.setDate(a.getDate()-3);return b.datepicker.iso8601Week(a)}else if(a>new Date(a.getFullYear(),
11,28)){i=(new Date(a.getFullYear()+1,0,4)).getDay()||7;if(i>4&&(a.getDay()||7)<i-3)return 1}return Math.floor((a-e)/864E5/7)+1},parseDate:function(a,e,i){if(a==null||e==null)throw"Invalid arguments";e=typeof e=="object"?e.toString():e+"";if(e=="")return null;for(var j=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,n=(i?i.dayNames:null)||this._defaults.dayNames,v=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,u=(i?i.monthNames:
null)||this._defaults.monthNames,w=i=-1,q=-1,C=-1,H=false,N=function(ha){(ha=U+1<a.length&&a.charAt(U+1)==ha)&&U++;return ha},h=function(ha){N(ha);for(var ta=ha=ha=="@"?14:ha=="y"?4:ha=="o"?3:2,ga=0;ta>0&&E<e.length&&e.charAt(E)>="0"&&e.charAt(E)<="9";){ga=ga*10+parseInt(e.charAt(E++),10);ta--}if(ta==ha)throw"Missing number at position "+E;return ga},Q=function(ha,ta,ga){ha=N(ha)?ga:ta;for(ga=ta=0;ga<ha.length;ga++)ta=Math.max(ta,ha[ga].length);ga="";for(var Z=E;ta>0&&E<e.length;){ga+=e.charAt(E++);
for(var ma=0;ma<ha.length;ma++)if(ga==ha[ma])return ma+1;ta--}throw"Unknown name at position "+Z;},L=function(){if(e.charAt(E)!=a.charAt(U))throw"Unexpected literal at position "+E;E++},E=0,U=0;U<a.length;U++)if(H)if(a.charAt(U)=="'"&&!N("'"))H=false;else L();else switch(a.charAt(U)){case "d":q=h("d");break;case "D":Q("D",r,n);break;case "o":C=h("o");break;case "m":w=h("m");break;case "M":w=Q("M",v,u);break;case "y":i=h("y");break;case "@":var da=new Date(h("@"));i=da.getFullYear();w=da.getMonth()+
1;q=da.getDate();break;case "'":if(N("'"))L();else H=true;break;default:L()}if(i==-1)i=(new Date).getFullYear();else if(i<100)i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=j?0:-100);if(C>-1){w=1;q=C;do{j=this._getDaysInMonth(i,w-1);if(q<=j)break;w++;q-=j}while(1)}da=this._daylightSavingAdjust(new Date(i,w-1,q));if(da.getFullYear()!=i||da.getMonth()+1!=w||da.getDate()!=q)throw"Invalid date";return da},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",
RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(a,e,i){if(!e)return"";var j=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,n=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort;i=(i?i.monthNames:null)||this._defaults.monthNames;var v=function(Q){(Q=H+1<a.length&&a.charAt(H+1)==Q)&&H++;return Q},u=function(Q,L,E){L=""+L;if(v(Q))for(;L.length<E;)L="0"+L;return L},
w=function(Q,L,E,U){return v(Q)?U[L]:E[L]},q="",C=false;if(e)for(var H=0;H<a.length;H++)if(C)if(a.charAt(H)=="'"&&!v("'"))C=false;else q+=a.charAt(H);else switch(a.charAt(H)){case "d":q+=u("d",e.getDate(),2);break;case "D":q+=w("D",e.getDay(),j,r);break;case "o":for(var N=e.getDate(),h=e.getMonth()-1;h>=0;h--)N+=this._getDaysInMonth(e.getFullYear(),h);q+=u("o",N,3);break;case "m":q+=u("m",e.getMonth()+1,2);break;case "M":q+=w("M",e.getMonth(),n,i);break;case "y":q+=v("y")?e.getFullYear():(e.getYear()%
100<10?"0":"")+e.getYear()%100;break;case "@":q+=e.getTime();break;case "'":if(v("'"))q+="'";else C=true;break;default:q+=a.charAt(H)}return q},_possibleChars:function(a){for(var e="",i=false,j=0;j<a.length;j++)if(i)if(a.charAt(j)=="'"&&!lookAhead("'"))i=false;else e+=a.charAt(j);else switch(a.charAt(j)){case "d":case "m":case "y":case "@":e+="0123456789";break;case "D":case "M":return null;case "'":if(lookAhead("'"))e+="'";else i=true;break;default:e+=a.charAt(j)}return e},_get:function(a,e){return a.settings[e]!==
undefined?a.settings[e]:this._defaults[e]},_setDateFromField:function(a){var e=this._get(a,"dateFormat"),i=a.input?a.input.val():null;a.endDay=a.endMonth=a.endYear=null;var j=defaultDate=this._getDefaultDate(a),r=this._getFormatConfig(a);try{j=this.parseDate(e,i,r)||defaultDate}catch(n){this.log(n);j=defaultDate}a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();a.currentDay=i?j.getDate():0;a.currentMonth=i?j.getMonth():0;a.currentYear=i?j.getFullYear():
0;this._adjustInstDate(a)},_getDefaultDate:function(a){var e=this._determineDate(this._get(a,"defaultDate"),new Date),i=this._getMinMaxDate(a,"min",true);a=this._getMinMaxDate(a,"max");e=i&&e<i?i:e;return e=a&&e>a?a:e},_determineDate:function(a,e){var i=function(r){var n=new Date;n.setDate(n.getDate()+r);return n},j=function(r,n){var v=new Date,u=v.getFullYear(),w=v.getMonth();v=v.getDate();for(var q=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,C=q.exec(r);C;){switch(C[2]||"d"){case "d":case "D":v+=parseInt(C[1],
10);break;case "w":case "W":v+=parseInt(C[1],10)*7;break;case "m":case "M":w+=parseInt(C[1],10);v=Math.min(v,n(u,w));break;case "y":case "Y":u+=parseInt(C[1],10);v=Math.min(v,n(u,w));break}C=q.exec(r)}return new Date(u,w,v)};if(a=(a=a==null?e:typeof a=="string"?j(a,this._getDaysInMonth):typeof a=="number"?isNaN(a)?e:i(a):a)&&a.toString()=="Invalid Date"?e:a){a.setHours(0);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)}return this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(a){if(!a)return null;
a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,e){var i=!e,j=a.selectedMonth,r=a.selectedYear;e=this._determineDate(e,new Date);a.selectedDay=a.currentDay=e.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=e.getMonth();a.drawYear=a.selectedYear=a.currentYear=e.getFullYear();if(j!=a.selectedMonth||r!=a.selectedYear)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(i?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==
""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var e=new Date;e=this._daylightSavingAdjust(new Date(e.getFullYear(),e.getMonth(),e.getDate()));var i=this._get(a,"isRTL"),j=this._get(a,"showButtonPanel"),r=this._get(a,"hideIfNoPrevNext"),n=this._get(a,"navigationAsDateFormat"),v=this._getNumberOfMonths(a),u=this._get(a,"showCurrentAtPos"),w=this._get(a,"stepMonths");this._get(a,"stepBigMonths");var q=v[0]!=1||v[1]!=1,C=this._daylightSavingAdjust(!a.currentDay?
new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),H=this._getMinMaxDate(a,"min",true),N=this._getMinMaxDate(a,"max");u=a.drawMonth-u;var h=a.drawYear;if(u<0){u+=12;h--}if(N){var Q=this._daylightSavingAdjust(new Date(N.getFullYear(),N.getMonth()-v[1]+1,N.getDate()));for(Q=H&&Q<H?H:Q;this._daylightSavingAdjust(new Date(h,u,1))>Q;){u--;if(u<0){u=11;h--}}}a.drawMonth=u;a.drawYear=h;Q=this._get(a,"prevText");Q=!n?Q:this.formatDate(Q,this._daylightSavingAdjust(new Date(h,u-w,1)),this._getFormatConfig(a));
Q=this._canAdjustMonth(a,-1,h,u)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', -"+w+", 'M');\" title=\""+Q+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+Q+"</span></a>":r?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+Q+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"e":"w")+'">'+Q+"</span></a>";var L=this._get(a,"nextText");L=!n?L:this.formatDate(L,this._daylightSavingAdjust(new Date(h,u+
w,1)),this._getFormatConfig(a));r=this._canAdjustMonth(a,+1,h,u)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+a.id+"', +"+w+", 'M');\" title=\""+L+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+L+"</span></a>":r?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+L+'"><span class="ui-icon ui-icon-circle-triangle-'+(i?"w":"e")+'">'+L+"</span></a>";w=this._get(a,"currentText");L=this._get(a,"gotoCurrent")&&a.currentDay?
C:e;w=!n?w:this.formatDate(w,L,this._getFormatConfig(a));n=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";j=j?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(i?n:"")+(this._isInRange(a,L)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+
a.id+"');\">"+w+"</button>":"")+(i?"":n)+"</div>":"";n=parseInt(this._get(a,"firstDay"),10);n=isNaN(n)?0:n;w=this._get(a,"dayNames");this._get(a,"dayNamesShort");L=this._get(a,"dayNamesMin");var E=this._get(a,"monthNames"),U=this._get(a,"monthNamesShort"),da=this._get(a,"beforeShowDay"),ha=this._get(a,"showOtherMonths");this._get(a,"calculateWeek");for(var ta=a.endDay?this._daylightSavingAdjust(new Date(a.endYear,a.endMonth,a.endDay)):C,ga=this._getDefaultDate(a),Z="",ma=0;ma<v[0];ma++){for(var ya=
"",ia=0;ia<v[1];ia++){var la=this._daylightSavingAdjust(new Date(h,u,a.selectedDay)),ca=" ui-corner-all",oa="";if(q){oa+='<div class="ui-datepicker-group ui-datepicker-group-';switch(ia){case 0:oa+="first";ca=" ui-corner-"+(i?"right":"left");break;case v[1]-1:oa+="last";ca=" ui-corner-"+(i?"left":"right");break;default:oa+="middle";ca="";break}oa+='">'}oa+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+ca+'">'+(/all|left/.test(ca)&&ma==0?i?r:Q:"")+(/all|right/.test(ca)&&ma==
0?i?Q:r:"")+this._generateMonthYearHeader(a,u,h,H,N,la,ma>0||ia>0,E,U)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var sa="";for(ca=0;ca<7;ca++){var aa=(ca+n)%7;sa+="<th"+((ca+n+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+w[aa]+'">'+L[aa]+"</span></th>"}oa+=sa+"</tr></thead><tbody>";sa=this._getDaysInMonth(h,u);if(h==a.selectedYear&&u==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,sa);ca=(this._getFirstDayOfMonth(h,u)-n+7)%7;sa=q?6:Math.ceil((ca+sa)/7);aa=this._daylightSavingAdjust(new Date(h,
u,1-ca));for(var va=0;va<sa;va++){oa+="<tr>";var ra="";for(ca=0;ca<7;ca++){var wa=da?da.apply(a.input?a.input[0]:null,[aa]):[true,""],T=aa.getMonth()!=u,B=T||!wa[0]||H&&aa<H||N&&aa>N;ra+='<td class="'+((ca+n+6)%7>=5?" ui-datepicker-week-end":"")+(T?" ui-datepicker-other-month":"")+(aa.getTime()==la.getTime()&&u==a.selectedMonth&&a._keyEvent||ga.getTime()==aa.getTime()&&ga.getTime()==la.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(T&&!ha?"":" "+wa[1]+
(aa.getTime()>=C.getTime()&&aa.getTime()<=ta.getTime()?" "+this._currentClass:"")+(aa.getTime()==e.getTime()?" ui-datepicker-today":""))+'"'+((!T||ha)&&wa[2]?' title="'+wa[2]+'"':"")+(B?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+a.id+"',"+u+","+h+', this);return false;"')+">"+(T?ha?aa.getDate():"&#xa0;":B?'<span class="ui-state-default">'+aa.getDate()+"</span>":'<a class="ui-state-default'+(aa.getTime()==e.getTime()?" ui-state-highlight":"")+(aa.getTime()>=C.getTime()&&aa.getTime()<=ta.getTime()?
" ui-state-active":"")+'" href="#">'+aa.getDate()+"</a>")+"</td>";aa.setDate(aa.getDate()+1);aa=this._daylightSavingAdjust(aa)}oa+=ra+"</tr>"}u++;if(u>11){u=0;h++}oa+="</tbody></table>"+(q?"</div>"+(v[0]>0&&ia==v[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");ya+=oa}Z+=ya}Z+=j+(b.browser.msie&&parseInt(b.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return Z},_generateMonthYearHeader:function(a,
e,i,j,r,n,v,u,w){j=a.rangeStart&&j&&n<j?n:j;n=this._get(a,"changeMonth");var q=this._get(a,"changeYear"),C=this._get(a,"showMonthAfterYear"),H='<div class="ui-datepicker-title">',N="";if(v||!n)N+='<span class="ui-datepicker-month">'+u[e]+"</span> ";else{u=j&&j.getFullYear()==i;var h=r&&r.getFullYear()==i;N+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";for(var Q=0;Q<
12;Q++)if((!u||Q>=j.getMonth())&&(!h||Q<=r.getMonth()))N+='<option value="'+Q+'"'+(Q==e?' selected="selected"':"")+">"+w[Q]+"</option>";N+="</select>"}C||(H+=N+((v||n||q)&&!(n&&q)?"&#xa0;":""));if(v||!q)H+='<span class="ui-datepicker-year">'+i+"</span>";else{e=this._get(a,"yearRange").split(":");u=w=0;if(e.length!=2){w=i-10;u=i+10}else if(e[0].charAt(0)=="+"||e[0].charAt(0)=="-"){w=i+parseInt(e[0],10);u=i+parseInt(e[1],10)}else{w=parseInt(e[0],10);u=parseInt(e[1],10)}w=j?Math.max(w,j.getFullYear()):
w;u=r?Math.min(u,r.getFullYear()):u;for(H+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+a.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+a.id+"');\">";w<=u;w++)H+='<option value="'+w+'"'+(w==i?' selected="selected"':"")+">"+w+"</option>";H+="</select>"}if(C)H+=(v||n||q?"&#xa0;":"")+N;H+="</div>";return H},_adjustInstDate:function(a,e,i){var j=a.drawYear+(i=="Y"?e:0),r=a.drawMonth+(i=="M"?e:0);e=Math.min(a.selectedDay,this._getDaysInMonth(j,
r))+(i=="D"?e:0);j=this._daylightSavingAdjust(new Date(j,r,e));r=this._getMinMaxDate(a,"min",true);e=this._getMinMaxDate(a,"max");j=r&&j<r?r:j;j=e&&j>e?e:j;a.selectedDay=j.getDate();a.drawMonth=a.selectedMonth=j.getMonth();a.drawYear=a.selectedYear=j.getFullYear();if(i=="M"||i=="Y")this._notifyChange(a)},_notifyChange:function(a){var e=this._get(a,"onChangeMonthYear");if(e)e.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");
return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,e,i){e=this._determineDate(this._get(a,e+"Date"),null);return!i||!a.rangeStart?e:!e||a.rangeStart>e?a.rangeStart:e},_getDaysInMonth:function(a,e){return 32-(new Date(a,e,32)).getDate()},_getFirstDayOfMonth:function(a,e){return(new Date(a,e,1)).getDay()},_canAdjustMonth:function(a,e,i,j){var r=this._getNumberOfMonths(a);i=this._daylightSavingAdjust(new Date(i,j+(e<0?e:r[1]),1));e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),
i.getMonth()));return this._isInRange(a,i)},_isInRange:function(a,e){var i=!a.rangeStart?null:this._daylightSavingAdjust(new Date(a.selectedYear,a.selectedMonth,a.selectedDay));i=(i=i&&a.rangeStart<i?a.rangeStart:i)||this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!i||e>=i)&&(!a||e<=a)},_getFormatConfig:function(a){var e=this._get(a,"shortYearCutoff");e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);return{shortYearCutoff:e,dayNamesShort:this._get(a,"dayNamesShort"),
dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,e,i,j){if(!e){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}e=e?typeof e=="object"?e:this._daylightSavingAdjust(new Date(j,i,e)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}});b.fn.datepicker=function(a){if(!b.datepicker.initialized){b(document).mousedown(b.datepicker._checkExternalClick).find("body").append(b.datepicker.dpDiv);
b.datepicker.initialized=true}var e=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"))return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this[0]].concat(e));return this.each(function(){typeof a=="string"?b.datepicker["_"+a+"Datepicker"].apply(b.datepicker,[this].concat(e)):b.datepicker._attachDatepicker(this,
a)})};b.datepicker=new c;b.datepicker.initialized=false;b.datepicker.uuid=(new Date).getTime();b.datepicker.version="1.7.2";window.DP_jQuery=b})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,c,f,a,e){return jQuery.easing[jQuery.easing.def](b,c,f,a,e)},easeInQuad:function(b,c,f,a,e){return a*(c/=e)*c+f},easeOutQuad:function(b,c,f,a,e){return-a*(c/=e)*(c-2)+f},easeInOutQuad:function(b,c,f,a,e){if((c/=e/2)<1)return a/2*c*c+f;return-a/2*(--c*(c-2)-1)+f},easeInCubic:function(b,c,f,a,e){return a*(c/=e)*c*c+f},easeOutCubic:function(b,c,f,a,e){return a*((c=c/e-1)*c*c+1)+f},easeInOutCubic:function(b,c,f,a,e){if((c/=e/2)<1)return a/
2*c*c*c+f;return a/2*((c-=2)*c*c+2)+f},easeInQuart:function(b,c,f,a,e){return a*(c/=e)*c*c*c+f},easeOutQuart:function(b,c,f,a,e){return-a*((c=c/e-1)*c*c*c-1)+f},easeInOutQuart:function(b,c,f,a,e){if((c/=e/2)<1)return a/2*c*c*c*c+f;return-a/2*((c-=2)*c*c*c-2)+f},easeInQuint:function(b,c,f,a,e){return a*(c/=e)*c*c*c*c+f},easeOutQuint:function(b,c,f,a,e){return a*((c=c/e-1)*c*c*c*c+1)+f},easeInOutQuint:function(b,c,f,a,e){if((c/=e/2)<1)return a/2*c*c*c*c*c+f;return a/2*((c-=2)*c*c*c*c+2)+f},easeInSine:function(b,
c,f,a,e){return-a*Math.cos(c/e*(Math.PI/2))+a+f},easeOutSine:function(b,c,f,a,e){return a*Math.sin(c/e*(Math.PI/2))+f},easeInOutSine:function(b,c,f,a,e){return-a/2*(Math.cos(Math.PI*c/e)-1)+f},easeInExpo:function(b,c,f,a,e){return c==0?f:a*Math.pow(2,10*(c/e-1))+f},easeOutExpo:function(b,c,f,a,e){return c==e?f+a:a*(-Math.pow(2,-10*c/e)+1)+f},easeInOutExpo:function(b,c,f,a,e){if(c==0)return f;if(c==e)return f+a;if((c/=e/2)<1)return a/2*Math.pow(2,10*(c-1))+f;return a/2*(-Math.pow(2,-10*--c)+2)+f},
easeInCirc:function(b,c,f,a,e){return-a*(Math.sqrt(1-(c/=e)*c)-1)+f},easeOutCirc:function(b,c,f,a,e){return a*Math.sqrt(1-(c=c/e-1)*c)+f},easeInOutCirc:function(b,c,f,a,e){if((c/=e/2)<1)return-a/2*(Math.sqrt(1-c*c)-1)+f;return a/2*(Math.sqrt(1-(c-=2)*c)+1)+f},easeInElastic:function(b,c,f,a,e){var i=0,j=a;if(c==0)return f;if((c/=e)==1)return f+a;i||(i=e*0.3);if(j<Math.abs(a)){j=a;b=i/4}else b=i/(2*Math.PI)*Math.asin(a/j);return-(j*Math.pow(2,10*(c-=1))*Math.sin((c*e-b)*2*Math.PI/i))+f},easeOutElastic:function(b,
c,f,a,e){var i=0,j=a;if(c==0)return f;if((c/=e)==1)return f+a;i||(i=e*0.3);if(j<Math.abs(a)){j=a;b=i/4}else b=i/(2*Math.PI)*Math.asin(a/j);return j*Math.pow(2,-10*c)*Math.sin((c*e-b)*2*Math.PI/i)+a+f},easeInOutElastic:function(b,c,f,a,e){var i=0,j=a;if(c==0)return f;if((c/=e/2)==2)return f+a;i||(i=e*0.3*1.5);if(j<Math.abs(a)){j=a;b=i/4}else b=i/(2*Math.PI)*Math.asin(a/j);if(c<1)return-0.5*j*Math.pow(2,10*(c-=1))*Math.sin((c*e-b)*2*Math.PI/i)+f;return j*Math.pow(2,-10*(c-=1))*Math.sin((c*e-b)*2*Math.PI/
i)*0.5+a+f},easeInBack:function(b,c,f,a,e,i){if(i==undefined)i=1.70158;return a*(c/=e)*c*((i+1)*c-i)+f},easeOutBack:function(b,c,f,a,e,i){if(i==undefined)i=1.70158;return a*((c=c/e-1)*c*((i+1)*c+i)+1)+f},easeInOutBack:function(b,c,f,a,e,i){if(i==undefined)i=1.70158;if((c/=e/2)<1)return a/2*c*c*(((i*=1.525)+1)*c-i)+f;return a/2*((c-=2)*c*(((i*=1.525)+1)*c+i)+2)+f},easeInBounce:function(b,c,f,a,e){return a-jQuery.easing.easeOutBounce(b,e-c,0,a,e)+f},easeOutBounce:function(b,c,f,a,e){return(c/=e)<1/
2.75?a*7.5625*c*c+f:c<2/2.75?a*(7.5625*(c-=1.5/2.75)*c+0.75)+f:c<2.5/2.75?a*(7.5625*(c-=2.25/2.75)*c+0.9375)+f:a*(7.5625*(c-=2.625/2.75)*c+0.984375)+f},easeInOutBounce:function(b,c,f,a,e){if(c<e/2)return jQuery.easing.easeInBounce(b,c*2,0,a,e)*0.5+f;return jQuery.easing.easeOutBounce(b,c*2-e,0,a,e)*0.5+a*0.5+f}});if(!window.chattarati){window.chattarati={};var chattarati=window.chattarati}
(function(b){protos={a:b("<a />"),img:b("<img />"),li:b("<li />"),span:b("<span />"),div:b("<div />")};b(document).ready(function(){b("body").addClass("scripted");chattarati.isMobile=b("body").is(".mobile");chattarati.login();if(chattarati.isMobile)chattarati.mobile();else{chattarati.nav();chattarati.equalHeights();chattarati.selectors();chattarati.audio();chattarati.lightbox();chattarati.polls();chattarati.ajaxLikes();b(".splitdatetimewidget input[name$=_0], input[rel=date]").datepicker();chattarati.timepicker()}chattarati.ajaxComments();
chattarati.tweet();b("a[rel*=external]").attr({target:"_blank"});b.browser.msie&&b.browser.version<7&&chattarati.IE6();chattarati.trackAds()});b(document).ajaxComplete(function(){chattarati.polls()});b(window).load(function(){chattarati.slideshow();chattarati.isMobile?setTimeout(function(){b(window).scrollTop()==0&&window.scrollTo(0,0)},10):chattarati.equalHeights();setTimeout(function(){b("html").addClass("loaded")},500)});b(window).resize(function(){chattarati.isMobile||chattarati.equalHeights()});
chattarati.nav=function(){var c=b("#nav > ul > li > a").filter(":not(.selected)").filter(":not(.ancestor)");b("#sub-nav li[rel]").each(function(){var f=b(this),a=c.filter("[rel="+f.attr("rel")+"]");a.parent("li").append(f.children("ul").clone().addClass(a.attr("rel")))})};chattarati.equalHeights=function(){if(!(jQuery.browser.msie&&jQuery.browser.version<7)){var c=b("section:has(.articles), section:has(article):not(.top-story), .metablog #main section");if(b("body").is(".metablog")){c=b(".metablog #main section:first-child,.metablog #main section:nth-child(3n+1)").filter(":not(.top-story)");
c.each(function(){var a=0;b(this).add(b(this).next("section")).add(b(this).next("section").next("section")).each(function(){a=b(this).height()>a?b(this).height():a}).each(function(){var e=b(this).children("footer:has(a.more)");e.css({"padding-top":a-b(this).height()+parseInt(e.css("padding-top"),10)+"px"})})})}else c.each(function(){var a=b(this).find("article,aside"),e=0;a.each(function(){e=b(this).height()>e?b(this).height():e});a.each(function(){var i=b(this).children("footer:has(a.more)");i.size()?
i.css({"padding-top":e-b(this).height()+parseInt(i.css("padding-top"),10)+"px"}):b(this).css({"min-height":e+"px",_height:e+"px"})})});var f=0;b(".author").each(function(){f=b(this).height()>f?b(this).height():f}).each(function(){b(this).height(f)});b(".two-up section:nth-child(odd)").each(function(){b(this).height()<b(this).next("section").height()?b(this).height(b(this).next("section").height()):b(this).next("section").height(b(this).height())})}};chattarati.tools=function(){var c=b("ul.tools"),
f=c.find("a.share"),a=f.siblings("ul");c.width(c.width());a.hide();f.click(function(e){e.preventDefault();a.slideToggle(500)})};chattarati.weather=function(){b("body").is("#home")&&b.ajax({url:"http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20location%3D37415&format=json&callback=?",type:"GET",dataType:"json",success:function(c){c=c.query.results.channel.item.condition;var f=protos.li.clone();f.addClass("weather");f.append(protos.span.clone().addClass("title").text("Current Weather:")).append(protos.span.clone().addClass("image").append(protos.img.clone().attr({src:"http://l.yimg.com/a/i/us/we/52/"+
c.code+".gif",alt:c.text,title:c.text}))).append(protos.span.clone().addClass("conditions").html(c.temp+"&deg; and "+c.text)).append(protos.span.clone().addClass("powered-by").append(protos.a.clone().attr({href:"http://weather.yahoo.com"}).text("Powered by Yahoo!")));f.prependTo(b("#sub-nav li[rel=home] ul"))}})};chattarati.selectors=function(){b("#main section article:first-child, #main section article:nth-child(3n+1), .metablog #main section:first-child, .metablog #main section:nth-child(3n+1), #main .articles article:first-child, #main .articles article:nth-child(3n+1)").addClass("first-of-row")};
chattarati.login=function(){if(b("body").is("#login")){var c={login:b("label[for=id_action_0]"),register:b("label[for=id_action_1]")};b("form#login-form").addClass("scripted");var f=b("form#login-form button span"),a=b("form#login-form li.email");if(c.register.find("input").is(":checked")){c.register.addClass("on");f.text("Register")}else{a.hide();c.login.addClass("on");f.text("Log In")}c.login.click(function(){c.login.addClass("on");a.hide();c.register.removeClass("on");f.text("Log In")});c.register.click(function(){c.login.removeClass("on");
a.show();c.register.addClass("on");f.text("Register")})}};chattarati.slideshow=function(){var c=b("article .photos .figure");if(!(c.size()<2)){var f="WebkitTransition"in document.documentElement.style||"MozTransition"in document.documentElement.style,a=b('<a href="#prev" class="prev">&laquo; Previous</a>'),e=b('<a href="#next" class="next">Next &raquo;</a>'),i=b('<a href="#pause" class="play-pause pause">Pause</a>'),j=b('<a href="#view-larger" class="view-larger" title="View larger version">View Larger</a>'),
r=c.parent(".photos");r.append(a).append(i).append(e).prepend(j);r.addClass("scripted");var n=0;c.each(function(){n=b(this).height()>n?b(this).height():n});r.height(n);if(f){c.hide().css({opacity:0}).eq(0).show().css({opacity:1}).attr({current:"current"});setTimeout(function(){c.show()},1E3)}else c.hide().eq(0).show().attr({current:"current"});var v=function(u){if(typeof u=="undefined")u=false;if(u){u=c.filter("[current]");var w=u.next(".figure").size()?u.next(".figure"):c.eq(0);if(f){u.css({opacity:0,
"z-index":1}).removeAttr("current");w.css({opacity:1,"z-index":2}).attr({current:"current"})}else{u.fadeOut(1E3).removeAttr("current");w.fadeIn(1E3).attr({current:"current"})}}chattarati.slideshow.interval=setInterval(function(){var q=c.filter("[current]"),C=q.next(".figure").size()?q.next(".figure"):c.eq(0);if(f){q.css({opacity:0,"z-index":1}).removeAttr("current");C.css({opacity:1,"z-index":2}).attr({current:"current"})}else{q.fadeOut(1E3).removeAttr("current");C.fadeIn(1E3).attr({current:"current"})}},
6E3)};i.swap=function(){i.is(".play")?i.removeClass("play").addClass("pause").text("Pause").attr({href:"#pause"}):i.addClass("play").removeClass("pause").text("Play").attr({href:"#play"})};a.add(e).click(function(u){u.preventDefault();clearInterval(chattarati.slideshow.interval);i.addClass("play").removeClass("pause").text("Play").attr({href:"#play"});u=c.filter("[current]");var w=b(this).is(".prev")?u.prev(".figure").size()?u.prev(".figure"):c.eq(c.size()-1):u.next(".figure").size()?u.next(".figure"):
c.eq(0);if(f){u.css({opacity:0,"z-index":1}).removeAttr("current");w.css({opacity:1,"z-index":2}).attr({current:"current"})}else{u.fadeOut(1E3).removeAttr("current");w.fadeIn(1E3).attr({current:"current"})}});i.click(function(u){u.preventDefault();i.is(".play")?v(true):clearInterval(chattarati.slideshow.interval);i.swap()});j.click(function(u){u.preventDefault();i.is(".pause")&&i.click();c.filter("[current]").find("a[rel=lightbox]").click()});v()}};chattarati.audio=function(){try{var c=b(".audio .playlist"),
f=b(".singles audio");b("<div />");AudioPlayer.setup("http://media.chattarati.com/media/player.swf",{width:"100%",transparentpagebg:"yes",leftbg:"000000",lefticon:"ffffff",rightbg:"000000",rightbghover:"333333",righticon:"ffffff",bg:"000000",voltrack:"000000",volslider:"ffffff",loader:"666666",text:"ffffff",track:"000000",border:"000000",tracker:"333333",skip:"ffffff",animation:"no"});f.each(function(e){var i=b(this);i.siblings(".name").remove();i.attr({id:"audio-"+e}).prependTo(i.parent());AudioPlayer.embed("audio-"+
e,{soundFile:i.attr("src"),titles:i.attr("title")})});c.each(function(e){var i=b(this),j="",r="";i.find("audio").each(function(){j+=b(this).attr("src")+",";r+=b(this).attr("title")+","});j=j.replace(/,$/,"");r=r.replace(/,$/,"");i.attr({id:"playlist-"+e});AudioPlayer.embed("playlist-"+e,{soundFile:j,titles:r})})}catch(a){}};chattarati.ajaxComments=function(){var c=b("#comments"),f=c.find("form"),a=b('<p class="loading">Your comment is being submitted.</p>'),e=b('<p class="error">There was an error submitting your comment.</p>'),
i=b('<ul class="errorlist"><li>Comment is a required field.</li></ul>'),j=f.find("textarea[name=comment]");f.submit(function(r){r.preventDefault();j.val()?b.ajax({beforeSend:function(){e.remove();i.remove();chattarati.isMobile&&a.css({top:b(document).scrollTop()+b(window).height()/2});a.hide();f.before(a);a.fadeIn(500);f.find(":input").attr({disabled:"disabled"})},cache:false,complete:function(){a.fadeIn(500,function(){a.remove();f.find(":input").removeAttr("disabled");j.val("")})},data:f.serialize(),
error:function(){f.before(e)},success:function(n){e.remove();if(b(n).find("#comments ol.comment-list").size()){c.find("ol.comment-list").replaceWith(b(n).find("#comments ol.comment-list"));window.location.hash=c.find("ol.comment-list li:last-child").attr("id")}try{onlocation.live.updater.comments()}catch(v){}},type:"POST",url:f.attr("action")}):f.prepend(i)})};chattarati.tweet=function(){var c=b(".tools a.twitter");if(c.size())c.attr("href").indexOf("twitter.com")>-1||c.click(function(f){f.preventDefault();
try{b.ajax({beforeSend:function(){c.addClass("loading")},cache:false,complete:function(){c.removeClass("loading")},data:c.attr("href").split("?")[1]+"&next="+window.location,success:function(e){b(e).find("ul.messages").size()&&b("#bd").prepend(b(e).find("ul.messages"))},type:"POST",url:c.attr("href").split("?")[0]})}catch(a){window.location=c.attr("href")}})};chattarati.lightbox=function(){var c=b("a[rel^=lightbox]"),f=b('<div id="overlay" style="display: none"></div>'),a=b('<div id="lightbox" style="display: none"></div>'),
e=b('<a href="#close" class="close">&times; Close</a>'),i=b('<div class="target"></div>'),j=b('<a href="#prev" class="prev">&laquo; Previous</a>'),r=b('<a href="#next" class="next">Next &raquo;</a>'),n=b("<label />");chattarati.lightbox.links=c;chattarati.lightbox.overlay=f;chattarati.lightbox.container=a;chattarati.lightbox.close=e;chattarati.lightbox.target=i;chattarati.lightbox.prev=j;chattarati.lightbox.next=r;chattarati.lightbox.title=n;f.click(function(){e.click()});a.click(function(w){w.stopPropagation()});
b("body").append(f).append(a);a.append(e).append(i).append(j).append(r).append(n);a.show().css({top:Math.round(((b(window).height()>window.innerHeight?window.innerHeight:b(window).height())-a.outerHeight())/2)+"px",left:Math.round((b(window).width()-a.outerWidth())/2)+"px","margin-top":0,"margin-left":0}).hide();e.click(function(w){w.preventDefault();f.add(a).fadeOut("normal")});j.add(r).click(function(w){w.preventDefault();w=parseInt(c.filter(".selected").attr("lb-position"),10);w=b(this).is(".prev")?
c.eq(w-1):c.eq(w+1);w.size()||(w=b(this).is(".prev")?c.eq(c.size()-1):c.eq(0));w.size()&&w.click()});c.each(function(w){var q=b(this);q.click(function(C){C.preventDefault();v(q.attr("href"),q.siblings(".legend").text());c.filter(".selected").removeClass("selected");q.addClass("selected")});q.attr({"lb-position":w})});var v=function(w,q){if(a.is(":visible"))i.children().add(n).fadeOut("normal",function(){i.children().remove();u(w,q)});else{i.children().remove();n.hide();f.add(a).fadeIn("normal",function(){u(w,
q)})}},u=function(w,q){if(!a.is(".loading")){a.addClass("loading");var C=new Image;C.onload=function(){C.style.display="none";var H=b(window).width()-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10)-100,N=(b(window).height()>window.innerHeight?window.innerHeight:b(window).height())-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10)-100;if(C.width>H||C.height>N){var h=C.width/C.height;if(C.height>=N){C.height=N;C.width=N*h}else{C.width=H;C.height=H*h}}n.text(q);
a.animate({width:C.width,height:C.height,top:Math.round(((b(window).height()>window.innerHeight?window.innerHeight:b(window).height())-C.height-parseInt(a.css("padding-top"),10)-parseInt(a.css("padding-bottom"),10))/2)+"px",left:Math.round((b(window).width()-C.width-parseInt(a.css("padding-left"),10)-parseInt(a.css("padding-right"),10))/2)+"px"},"normal",function(){i.append(C);b(C).add(n).fadeIn("normal",function(){a.removeClass("loading")})});b(C).click(function(){var Q=c.filter("[href="+b(C).attr("src")+
"]");(c.size()>c.index(Q)+2?c.eq(c.index(Q)+1):c.eq(0)).click()})};C.src=w}}};chattarati.mobile=function(){var c=b("body"),f=b("#nav"),a=function(){switch(window.orientation){case 90:case -90:c.addClass("landscape").removeClass("portrait");b("#sb *[data-equal-height]").height("");break;default:c.removeClass("landscape").addClass("portrait");b("#sb *[data-equal-height]").each(function(){b(this).height(parseInt(b(this).attr("data-equal-height"),10))});break}};document.getElementsByTagName("body")[0].onorientationchange=
a;a();if(c.is(".ipad")){var e=protos.a.clone().attr({title:"Close",href:"#hide-nav"}).addClass("close").html(f.is(".do-close")?"&raquo;":"&laquo;"),i=b("#bd-wrapper");f.prepend(e);f.addClass("opened");var j=f.width()+parseInt(f.css("padding-left"),10)+parseInt(f.css("padding-right"),10);f.children().each(function(){b(this).width(b(this).width())});e.click(function(w){w.preventDefault();if(f.is(".opened")){f.css({"margin-left":0-j+"px"}).removeClass("opened").addClass("closed");e.html("&raquo;");i.css({"margin-left":0});
b.cookie("close_nav","true")}else{f.css({"margin-left":"0px"}).addClass("opened").removeClass("closed");e.html("&laquo;");i.css({"margin-left":"200px"});b.cookie("close_nav","false")}});if(b.cookie("close_nav")=="true"||f.is(".do-close")){e.click();setTimeout(function(){f.removeClass(".do-close")},550)}}else{var r=f.find("ul.nav");r.hide();var n=f.find("ul.tabs");a=n.find(".list a");n=n.find(".search a");var v=b("form#search-form");v.appendTo(f).hide();v.css({"-webkit-transform-style":"preserves-3d"});
var u=protos.a.clone().attr({href:"#close"}).addClass("close").text("Close Navigation");u.wrap(protos.li.clone()).parent("li").addClass("metablog close").appendTo(r);a.click(function(w){w.preventDefault();v.is(":visible")&&v.hide();r.slideToggle(500)});n.click(function(w){w.preventDefault();r.is(":visible")&&r.hide();v.toggle().find("input").focus()});u.click(function(w){w.preventDefault();r.slideUp(500);window.scrollTo(0,0)})}!c.is(".home")&&!c.is(".metablog")&&!c.is(".blog")||c.is(".ipad")||b("#main section:not(.top-story) article, .blog #main article").each(function(){var w=
b(this),q=w.children(":not(header,footer)");q.slideUp(0);w.find("header a").click(function(C){C.preventDefault();q.slideToggle(500)})})};chattarati.IE6=function(){var c=b('<div class="breaking stop-ie6">Some features of Chattarati will not work properly in Internet Explorer 6.<br />Please consider using <a href="http://www.google.com/chrome" title="Google Chrome">Chrome</a>, <a href="http://getfirefox.com" title="Mozilla Firefox">Firefox</a>, <a href="http://www.apple.com/safari/">Safari</a> or upgrading <a href="http://www.microsoft.com/windows/internet-explorer/" title="Microsoft Internet Explorer">Internet Explorer</a>.</div>');
b("#bd").prepend(c)};chattarati.trackAds=function(){b("a[href^=http]").click(function(){try{pageTracker._trackPageview(b(this).attr("href"))}catch(c){}})};chattarati.polls=function(){var c=b("form[action*=/polls/]");c.submit(function(f){f.preventDefault();if(c.find("input[name=choice]:checked").size())var a=c.serialize();else alert("Please make your choice first.");b.post(c.attr("action"),a,function(e){e=b(e);e.find("ul.messages").prependTo(b("#bd"));c.parents("section,article").html(e.find("#sb .poll-article, .polls #main article").children())});
return false});c.find(".buttons a").click(function(f){f.preventDefault();b.get(b(this).attr("href"),function(a){a=b(a);c.parents("section,article").html(a.find("#main article").children())})})};chattarati.ajaxLikes=function(){b(".tools a.like").click(function(c){c.preventDefault();b(this).addClass("loading");b.get(b(this).attr("href"),function(f){f=b(f);b("#bd").prepend(f.find("ul.messages"));b("ul.tools").replaceWith(f.find("ul.tools"))})})};chattarati.timepicker=function(){for(var c=b('<div class="ui-datepicker ui-timepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible" style="display:none"><div class="ui-widget-header ui-helper-clearfix ui-corner-all"><div class="ui-datepicker-title">Time</div></div></div>'),
f=b("<option />"),a=b('<select class="hour"></select>'),e=b('<select class="min"></select>'),i=b('<select class="meridian"><option value="0">a.m.</option><option value="12">p.m.</option></select>'),j=b('<option value="--" selected="selected">--</option>'),r=b('<table><tr><td class="hour"></td><td class="minutes"></td><td class="meridian"></td></tr></table>'),n=12;n>=1;n--)a.prepend(f.clone().attr({value:n}).text(n));for(n=45;n>=0;n-=15){var v=n<10?"0"+n:n;e.prepend(f.clone().attr({value:v}).text(v))}var u=
function(C,H){C=parseInt(C.val(),10)+parseInt(H.val(),10);if(C==24)C="12";else if(C==12)C="00";else if(C<10)C="0"+C;return isNaN(C)?"00":C},w=function(C,H,N,h){if(H.val()=="--"||N.val()=="--"||h.val()=="--")C.val("");C.val(u(H,h)+":"+(isNaN(N.val())?"00":N.val())+":00")},q=function(C,H,N,h){H.add(N).add(h).find("[selected]").removeAttr("selected");C=C.val().split(":");if(!(!C||C[0]=="")){N.find("option[value="+C[1]+"]").attr({selected:"selected"});if(C[0]=="00"){H.find("option[value=12]").click();
h.find("option[value=12]").attr({selected:"selected"})}else if(parseInt(C[0],10)>12){H.find("option[value="+(parseInt(C[0],10)-12)+"]").attr({selected:"selected"});h.find("option[value=12]").attr({selected:"selected"})}else{H.find("option[value="+C[0]+"]").attr({selected:"selected"});h.find("option[value=0]").attr({selected:"selected"})}}};b(".splitdatetimewidget input[name$=_1]").each(function(){var C=b(this);if(!C.is("[timepicker]")){var H=c.clone(),N=r.clone(),h=false;b("#main").parent().append(H);
C.attr({timepicker:"true"});var Q=a.clone(),L=e.clone(),E=i.clone();C.parent().is(".required");Q.prepend(j.clone());L.prepend(j.clone());E.prepend(j.clone());q(C,Q,L,E);Q.appendTo(N.find(".hour"));L.appendTo(N.find(".minutes"));E.appendTo(N.find(".meridian"));N.appendTo(H);H.hover(function(){C.addClass("focused");h=true},function(){C.removeClass("focused");h=false});Q.add(L).add(E).change(function(){w(C,Q,L,E)});C.focus(function(){H.css({top:parseInt(C.offset().top,10)+C.outerHeight()+parseInt(C.css("border-top-width"),
10)+"px",left:C.position().left+parseInt(C.parents("section").css("padding-left"),10)+"px"});H.show(500)});C.blur(function(){if(!h){C.removeClass("focused");H.hide()}});C.parents("form").find(":input").filter("[name!="+C.attr("name")+"]").focus(function(){C.removeClass("focused");H.hide()})}})}})(jQuery);

