/*
 * jQuery JavaScript Library v1.5.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Mar 31 15:28:23 2011 -0400
 */
(function(aR,aP){function af(b){return aL.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1}function al(e){if(!cn[e]){var d=aL("<"+e+">").appendTo("body"),f=d.css("display");d.remove();if(f==="none"||f===""){f="block"}cn[e]=f}return cn[e]}function an(e,d){var f={};aL.each(ao.concat.apply([],ao.slice(0,d)),function(){f[this]=e});return f}function c2(){try{return new aR.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}function cu(){try{return new aR.XMLHttpRequest}catch(a){}}function cw(){aL(aR).unload(function(){for(var b in cz){cz[b](0,1)}})}function cI(B,A){B.dataFilter&&(A=B.dataFilter(A,B.dataType));var z=B.dataTypes,y={},x,w,v=z.length,u,t=z[0],s,r,q,d,b;for(x=1;x<v;x++){if(x===1){for(w in B.converters){typeof w==="string"&&(y[w.toLowerCase()]=B.converters[w])}}s=t,t=z[x];if(t==="*"){t=s}else{if(s!=="*"&&s!==t){r=s+" "+t,q=y[r]||y["* "+t];if(!q){b=aP;for(d in y){u=d.split(" ");if(u[0]===s||u[0]==="*"){b=y[u[1]+" "+t];if(b){d=y[d],d===!0?q=b:b===!0&&(q=d);break}}}}!q&&!b&&aL.error("No conversion from "+r.replace(" "," to ")),q!==!0&&(A=q?q(A):b(d(A)))}}}return A}function cJ(u,t,s){var r=u.contents,q=u.dataTypes,o=u.responseFields,n,m,l,b;for(m in o){m in s&&(t[o[m]]=s[m])}while(q[0]==="*"){q.shift(),n===aP&&(n=u.mimeType||t.getResponseHeader("content-type"))}if(n){for(m in r){if(r[m]&&r[m].test(n)){q.unshift(m);break}}}if(q[0] in s){l=q[0]}else{for(m in s){if(!q[0]||u.converters[m+" "+q[0]]){l=m;break}b||(b=m)}l=l||b}if(l){l!==q[0]&&q.unshift(l);return s[l]}}function cK(g,d,k,j){if(aL.isArray(d)&&d.length){aL.each(d,function(a,c){k||aQ.test(g)?j(g,c):cK(g+"["+(typeof c==="object"||aL.isArray(c)?a:"")+"]",c,k,j)})}else{if(k||d==null||typeof d!=="object"){j(g,d)}else{if(aL.isArray(d)||aL.isEmptyObject(d)){j(g,"")}else{for(var h in d){cK(g+"["+h+"]",d[h],k,j)}}}}}function cL(w,v,u,t,s,r){s=s||v.dataTypes[0],r=r||{},r[s]=!0;var q=w[s],o=0,n=q?q.length:0,m=w===cR,b;for(;o<n&&(m||!b);o++){b=q[o](v,u,t),typeof b==="string"&&(!m||r[b]?b=aP:(v.dataTypes.unshift(b),b=cL(w,v,u,t,b,r)))}(m||!b)&&!r["*"]&&(b=cL(w,v,u,t,"*",r));return b}function cM(b){return function(a,q){typeof a!=="string"&&(q=a,a="*");if(aL.isFunction(q)){var o=a.toLowerCase().split(cX),n=0,m=o.length,l,k,d;for(;n<m;n++){l=o[n],d=/^\+/.test(l),d&&(l=l.substr(1)||"*"),k=b[l]=b[l]||[],k[d?"unshift":"push"](q)}}}}function aU(g,d,k){var j=d==="width"?a1:aZ,h=d==="width"?g.offsetWidth:g.offsetHeight;if(k==="border"){return h}aL.each(j,function(){k||(h-=parseFloat(aL.css(g,"padding"+this))||0),k==="margin"?h+=parseFloat(aL.css(g,"margin"+this))||0:h-=parseFloat(aL.css(g,"border"+this+"Width"))||0});return h}function b7(d,c){c.src?aL.ajax({url:c.src,async:!1,dataType:"script"}):aL.globalEval(c.text||c.textContent||c.innerHTML||""),c.parentNode&&c.parentNode.removeChild(c)}function b9(b){return"getElementsByTagName" in b?b.getElementsByTagName("*"):"querySelectorAll" in b?b.querySelectorAll("*"):[]}function ck(e,d){if(d.nodeType===1){var f=d.nodeName.toLowerCase();d.clearAttributes(),d.mergeAttributes(e);if(f==="object"){d.outerHTML=e.outerHTML}else{if(f!=="input"||e.type!=="checkbox"&&e.type!=="radio"){if(f==="option"){d.selected=e.defaultSelected}else{if(f==="input"||f==="textarea"){d.defaultValue=e.defaultValue}}}else{e.checked&&(d.defaultChecked=d.checked=e.checked),d.value!==e.value&&(d.value=e.value)}}d.removeAttribute(aL.expando)}}function aT(s,r){if(r.nodeType===1&&aL.hasData(s)){var q=aL.expando,o=aL.data(s),n=aL.data(r,o);if(o=o[q]){var m=o.events;n=n[q]=aL.extend({},o);if(m){delete n.handle,n.events={};for(var l in m){for(var k=0,d=m[l].length;k<d;k++){aL.event.add(r,l+(m[l][k].namespace?".":"")+m[l][k].namespace,m[l][k],m[l][k].data)}}}}}}function c1(d,c){return aL.nodeName(d,"table")?d.getElementsByTagName("tbody")[0]||d.appendChild(d.ownerDocument.createElement("tbody")):d}function b8(f,d,h){if(aL.isFunction(d)){return aL.grep(f,function(b,j){var c=!!d.call(b,j,b);return c===h})}if(d.nodeType){return aL.grep(f,function(b,c){return b===d===h})}if(typeof d==="string"){var g=aL.grep(f,function(b){return b.nodeType===1});if(cp.test(d)){return aL.filter(d,g,!h)}d=aL.filter(d,g)}return aL.grep(f,function(b,c){return aL.inArray(b,d)>=0===h})}function cj(b){return !b||!b.parentNode||b.parentNode.nodeType===11}function ct(d,c){return(d&&d!=="*"?d+".":"")+c.replace(aj,"`").replace(ah,"&")}function cv(J){var I,H,G,F,E,D,C,B,A,z,y,x,w,v=[],u=[],r=aL._data(this,"events");if(J.liveFired!==this&&r&&r.live&&!J.target.disabled&&(!J.button||J.type!=="click")){J.namespace&&(x=new RegExp("(^|\\.)"+J.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),J.liveFired=this;var d=r.live.slice(0);for(C=0;C<d.length;C++){E=d[C],E.origType.replace(am,"")===J.type?u.push(E.selector):d.splice(C--,1)}F=aL(J.target).closest(u,J.currentTarget);for(B=0,A=F.length;B<A;B++){y=F[B];for(C=0;C<d.length;C++){E=d[C];if(y.selector===E.selector&&(!x||x.test(E.namespace))&&!y.elem.disabled){D=y.elem,G=null;if(E.preType==="mouseenter"||E.preType==="mouseleave"){J.type=E.preType,G=aL(J.relatedTarget).closest(E.selector)[0]}(!G||G!==D)&&v.push({elem:D,handleObj:E,level:y.level})}}}for(B=0,A=v.length;B<A;B++){F=v[B];if(H&&F.level>H){break}J.currentTarget=F.elem,J.data=F.handleObj.data,J.handleObj=F.handleObj,w=F.handleObj.origHandler.apply(F.elem,arguments);if(w===!1||J.isPropagationStopped()){H=F.level,w===!1&&(I=!1);if(J.isImmediatePropagationStopped()){break}}}return I}}function cA(b,h,g){var d=aL.extend({},g[0]);d.type=b,d.originalEvent={},d.liveFired=aP,aL.event.handle.call(h,d),d.isDefaultPrevented()&&g[0].preventDefault()}function ab(){return !0}function ac(){return !1}function aB(d){for(var c in d){if(c!=="toJSON"){return !1}}return !0}function aD(b,h,g){if(g===aP&&b.nodeType===1){g=b.getAttribute("data-"+h);if(typeof g==="string"){try{g=g==="true"?!0:g==="false"?!1:g==="null"?null:aL.isNaN(g)?aF.test(g)?aL.parseJSON(g):g:parseFloat(g)}catch(d){}aL.data(b,h,g)}else{g=aP}}return g}var aN=aR.document,aL=function(){function J(){if(!bh.isReady){try{aN.documentElement.doScroll("left")}catch(d){setTimeout(J,1);return}bh.ready()}}var bh=function(e,d){return new bh.fn.init(e,d,be)},bg=aR.jQuery,bf=aR.$,be,bd=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bc=/\S/,bb=/^\s+/,ba=/\s+$/,Z=/\d/,Y=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,X=/^[\],:{}\s]*$/,W=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,V=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,T=/(?:^|:|,)(?:\s*\[)+/g,R=/(webkit)[ \/]([\w.]+)/,P=/(opera)(?:.*version)?[ \/]([\w.]+)/,N=/(msie) ([\w.]+)/,L=/(mozilla)(?:.*? rv:([\w.]+))?/,I=navigator.userAgent,H,c,b,a=Object.prototype.toString,U=Object.prototype.hasOwnProperty,S=Array.prototype.push,Q=Array.prototype.slice,O=String.prototype.trim,M=Array.prototype.indexOf,K={};bh.fn=bh.prototype={constructor:bh,init:function(d,q,o){var n,m,l,h;if(!d){return this}if(d.nodeType){this.context=this[0]=d,this.length=1;return this}if(d==="body"&&!q&&aN.body){this.context=aN,this[0]=aN.body,this.selector="body",this.length=1;return this}if(typeof d==="string"){n=bd.exec(d);if(!n||!n[1]&&q){return !q||q.jquery?(q||o).find(d):this.constructor(q).find(d)}if(n[1]){q=q instanceof bh?q[0]:q,h=q?q.ownerDocument||q:aN,l=Y.exec(d),l?bh.isPlainObject(q)?(d=[aN.createElement(l[1])],bh.fn.attr.call(d,q,!0)):d=[h.createElement(l[1])]:(l=bh.buildFragment([n[1]],[h]),d=(l.cacheable?bh.clone(l.fragment):l.fragment).childNodes);return bh.merge(this,d)}m=aN.getElementById(n[2]);if(m&&m.parentNode){if(m.id!==n[2]){return o.find(d)}this.length=1,this[0]=m}this.context=aN,this.selector=d;return this}if(bh.isFunction(d)){return o.ready(d)}d.selector!==aP&&(this.selector=d.selector,this.context=d.context);return bh.makeArray(d,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(d){return d==null?this.toArray():d<0?this[this.length+d]:this[d]},pushStack:function(f,d,h){var g=this.constructor();bh.isArray(f)?S.apply(g,f):bh.merge(g,f),g.prevObject=this,g.context=this.context,d==="find"?g.selector=this.selector+(this.selector?" ":"")+h:d&&(g.selector=this.selector+"."+d+"("+h+")");return g},each:function(e,d){return bh.each(this,e,d)},ready:function(d){bh.bindReady(),c.done(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(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(d){return this.pushStack(bh.map(this,function(e,f){return d.call(e,f,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:S,sort:[].sort,splice:[].splice},bh.fn.init.prototype=bh.fn,bh.extend=bh.fn.extend=function(){var v,u,t,s,r,q,o=arguments[0]||{},n=1,m=arguments.length,d=!1;typeof o==="boolean"&&(d=o,o=arguments[1]||{},n=2),typeof o!=="object"&&!bh.isFunction(o)&&(o={}),m===n&&(o=this,--n);for(;n<m;n++){if((v=arguments[n])!=null){for(u in v){t=o[u],s=v[u];if(o===s){continue}d&&s&&(bh.isPlainObject(s)||(r=bh.isArray(s)))?(r?(r=!1,q=t&&bh.isArray(t)?t:[]):q=t&&bh.isPlainObject(t)?t:{},o[u]=bh.extend(d,q,s)):s!==aP&&(o[u]=s)}}}return o},bh.extend({noConflict:function(d){aR.$=bf,d&&(aR.jQuery=bg);return bh},isReady:!1,readyWait:1,ready:function(d){d===!0&&bh.readyWait--;if(!bh.readyWait||d!==!0&&!bh.isReady){if(!aN.body){return setTimeout(bh.ready,1)}bh.isReady=!0;if(d!==!0&&--bh.readyWait>0){return}c.resolveWith(aN,[bh]),bh.fn.trigger&&bh(aN).trigger("ready").unbind("ready")}},bindReady:function(){if(!c){c=bh._Deferred();if(aN.readyState==="complete"){return setTimeout(bh.ready,1)}if(aN.addEventListener){aN.addEventListener("DOMContentLoaded",b,!1),aR.addEventListener("load",bh.ready,!1)}else{if(aN.attachEvent){aN.attachEvent("onreadystatechange",b),aR.attachEvent("onload",bh.ready);var d=!1;try{d=aR.frameElement==null}catch(f){}aN.documentElement.doScroll&&d&&J()}}}},isFunction:function(d){return bh.type(d)==="function"},isArray:Array.isArray||function(d){return bh.type(d)==="array"},isWindow:function(d){return d&&typeof d==="object"&&"setInterval" in d},isNaN:function(d){return d==null||!Z.test(d)||isNaN(d)},type:function(d){return d==null?String(d):K[a.call(d)]||"object"},isPlainObject:function(d){if(!d||bh.type(d)!=="object"||d.nodeType||bh.isWindow(d)){return !1}if(d.constructor&&!U.call(d,"constructor")&&!U.call(d.constructor.prototype,"isPrototypeOf")){return !1}var e;for(e in d){}return e===aP||U.call(d,e)},isEmptyObject:function(e){for(var d in e){return !1}return !0},error:function(d){throw d},parseJSON:function(d){if(typeof d!=="string"||!d){return null}d=bh.trim(d);if(X.test(d.replace(W,"@").replace(V,"]").replace(T,""))){return aR.JSON&&aR.JSON.parse?aR.JSON.parse(d):(new Function("return "+d))()}bh.error("Invalid JSON: "+d)},parseXML:function(d,g,f){aR.DOMParser?(f=new DOMParser,g=f.parseFromString(d,"text/xml")):(g=new ActiveXObject("Microsoft.XMLDOM"),g.async="false",g.loadXML(d)),f=g.documentElement,(!f||!f.nodeName||f.nodeName==="parsererror")&&bh.error("Invalid XML: "+d);return g},noop:function(){},globalEval:function(f){if(f&&bc.test(f)){var d=aN.head||aN.getElementsByTagName("head")[0]||aN.documentElement,g=aN.createElement("script");bh.support.scriptEval()?g.appendChild(aN.createTextNode(f)):g.text=f,d.insertBefore(g,d.firstChild),d.removeChild(g)}},nodeName:function(e,d){return e.nodeName&&e.nodeName.toUpperCase()===d.toUpperCase()},each:function(d,r,q){var o,n=0,m=d.length,l=m===aP||bh.isFunction(d);if(q){if(l){for(o in d){if(r.apply(d[o],q)===!1){break}}}else{for(;n<m;){if(r.apply(d[n++],q)===!1){break}}}}else{if(l){for(o in d){if(r.call(d[o],o,d[o])===!1){break}}}else{for(var k=d[0];n<m&&r.call(k,n,k)!==!1;k=d[++n]){}}}return d},trim:O?function(d){return d==null?"":O.call(d)}:function(d){return d==null?"":(d+"").replace(bb,"").replace(ba,"")},makeArray:function(f,d){var h=d||[];if(f!=null){var g=bh.type(f);f.length==null||g==="string"||g==="function"||g==="regexp"||bh.isWindow(f)?S.call(h,f):bh.merge(h,f)}return h},inArray:function(f,e){if(e.indexOf){return e.indexOf(f)}for(var h=0,g=e.length;h<g;h++){if(e[h]===f){return h}}return -1},merge:function(g,l){var k=g.length,j=0;if(typeof l.length==="number"){for(var h=l.length;j<h;j++){g[k++]=l[j]}}else{while(l[j]!==aP){g[k++]=l[j++]}}g.length=k;return g},grep:function(j,h,o){var n=[],m;o=!!o;for(var l=0,k=j.length;l<k;l++){m=!!h(j[l],l),o!==m&&n.push(j[l])}return n},map:function(j,h,o){var n=[],m;for(var l=0,k=j.length;l<k;l++){m=h(j[l],l,o),m!=null&&(n[n.length]=m)}return n.concat.apply([],n)},guid:1,proxy:function(d,g,f){arguments.length===2&&(typeof g==="string"?(f=d,d=f[g],g=aP):g&&!bh.isFunction(g)&&(f=g,g=aP)),!g&&d&&(g=function(){return d.apply(f||this,arguments)}),d&&(g.guid=d.guid=d.guid||g.guid||bh.guid++);return g},access:function(t,s,r,q,o,n){var m=t.length;if(typeof s==="object"){for(var l in s){bh.access(t,l,s[l],q,o,r)}return t}if(r!==aP){q=!n&&q&&bh.isFunction(r);for(var d=0;d<m;d++){o(t[d],s,q?r.call(t[d],d,o(t[d],s)):r,n)}return t}return m?o(t[0],s):aP},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var d=R.exec(e)||P.exec(e)||N.exec(e)||e.indexOf("compatible")<0&&L.exec(e)||[];return{browser:d[1]||"",version:d[2]||"0"}},sub:function(){function f(e,h){return new f.fn.init(e,h)}bh.extend(!0,f,this),f.superclass=this,f.fn=f.prototype=this(),f.fn.constructor=f,f.subclass=this.subclass,f.fn.init=function d(e,h){h&&h instanceof bh&&!(h instanceof f)&&(h=f(h));return bh.fn.init.call(this,e,h,g)},f.fn.init.prototype=f.fn;var g=f(aN);return f},browser:{}}),bh.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,d){K["[object "+d+"]"]=d.toLowerCase()}),H=bh.uaMatch(I),H.browser&&(bh.browser[H.browser]=!0,bh.browser.version=H.version),bh.browser.webkit&&(bh.browser.safari=!0),M&&(bh.inArray=function(e,d){return M.call(d,e)}),bc.test(" ")&&(bb=/^[\s\xA0]+/,ba=/[\s\xA0]+$/),be=bh(aN),aN.addEventListener?b=function(){aN.removeEventListener("DOMContentLoaded",b,!1),bh.ready()}:aN.attachEvent&&(b=function(){aN.readyState==="complete"&&(aN.detachEvent("onreadystatechange",b),bh.ready())});return bh}(),aJ="then done fail isResolved isRejected promise".split(" "),aH=[].slice;aL.extend({_Deferred:function(){var g=[],d,k,j,h={done:function(){if(!j){var m=arguments,l,f,e,b,a;d&&(a=d,d=0);for(l=0,f=m.length;l<f;l++){e=m[l],b=aL.type(e),b==="array"?h.done.apply(h,e):b==="function"&&g.push(e)}a&&h.resolveWith(a[0],a[1])}return this},resolveWith:function(b,a){if(!j&&!d&&!k){a=a||[],k=1;try{while(g[0]){g.shift().apply(b,a)}}finally{d=[b,a],k=0}}return this},resolve:function(){h.resolveWith(this,arguments);return this},isResolved:function(){return k||d},cancel:function(){j=1,g=[];return this}};return h},Deferred:function(e){var d=aL._Deferred(),h=aL._Deferred(),g;aL.extend(d,{then:function(b,f){d.done(b).fail(f);return this},fail:h.done,rejectWith:h.resolveWith,reject:h.resolve,isRejected:h.isResolved,promise:function(b){if(b==null){if(g){return g}g=b={}}var f=aJ.length;while(f--){b[aJ[f]]=d[aJ[f]]}return b}}),d.done(h.cancel).fail(d.cancel),delete d.cancel,e&&e.call(d,d);return d},when:function(f){function j(b){return function(a){d[b]=arguments.length>1?aH.call(arguments,0):a,--l||k.resolveWith(k,aH.call(d,0))}}var d=arguments,n=0,m=d.length,l=m,k=m<=1&&f&&aL.isFunction(f.promise)?f:aL.Deferred();if(m>1){for(;n<m;n++){d[n]&&aL.isFunction(d[n].promise)?d[n].promise().then(j(n),k.reject):--l}l||k.resolveWith(k,d)}else{k!==f&&k.resolveWith(k,m?[f]:[])}return k.promise()}}),function(){aL.support={};var w=aN.createElement("div");w.style.display="none",w.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var v=w.getElementsByTagName("*"),u=w.getElementsByTagName("a")[0],t=aN.createElement("select"),s=t.appendChild(aN.createElement("option")),r=w.getElementsByTagName("input")[0];if(v&&v.length&&u){aL.support={leadingWhitespace:w.firstChild.nodeType===3,tbody:!w.getElementsByTagName("tbody").length,htmlSerialize:!!w.getElementsByTagName("link").length,style:/red/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55$/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,checkOn:r.value==="on",optSelected:s.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},r.checked=!0,aL.support.noCloneChecked=r.cloneNode(!0).checked,t.disabled=!0,aL.support.optDisabled=!s.disabled;var q=null;aL.support.scriptEval=function(){if(q===null){var h=aN.documentElement,l=aN.createElement("script"),k="script"+aL.now();try{l.appendChild(aN.createTextNode("window."+k+"=1;"))}catch(j){}h.insertBefore(l,h.firstChild),aR[k]?(q=!0,delete aR[k]):q=!1,h.removeChild(l)}return q};try{delete w.test}catch(o){aL.support.deleteExpando=!1}!w.addEventListener&&w.attachEvent&&w.fireEvent&&(w.attachEvent("onclick",function d(){aL.support.noCloneEvent=!1,w.detachEvent("onclick",d)}),w.cloneNode(!0).fireEvent("onclick")),w=aN.createElement("div"),w.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var c=aN.createDocumentFragment();c.appendChild(w.firstChild),aL.support.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,aL(function(){var g=aN.createElement("div"),f=aN.getElementsByTagName("body")[0];if(f){g.style.width=g.style.paddingLeft="1px",f.appendChild(g),aL.boxModel=aL.support.boxModel=g.offsetWidth===2,"zoom" in g.style&&(g.style.display="inline",g.style.zoom=1,aL.support.inlineBlockNeedsLayout=g.offsetWidth===2,g.style.display="",g.innerHTML="<div style='width:4px;'></div>",aL.support.shrinkWrapBlocks=g.offsetWidth!==2),g.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var h=g.getElementsByTagName("td");aL.support.reliableHiddenOffsets=h[0].offsetHeight===0,h[0].style.display="",h[1].style.display="none",aL.support.reliableHiddenOffsets=aL.support.reliableHiddenOffsets&&h[0].offsetHeight===0,g.innerHTML="",aN.defaultView&&aN.defaultView.getComputedStyle&&(g.style.width="1px",g.style.marginRight="0",aL.support.reliableMarginRight=(parseInt(aN.defaultView.getComputedStyle(g,null).marginRight,10)||0)===0),f.removeChild(g).style.display="none",g=h=null}});var a=function(f){var e=aN.createElement("div");f="on"+f;if(!e.attachEvent){return !0}var g=f in e;g||(e.setAttribute(f,"return;"),g=typeof e[f]==="function");return g};aL.support.submitBubbles=a("submit"),aL.support.changeBubbles=a("change"),w=v=u=null}}();var aF=/^(?:\{.*\}|\[.*\])$/;aL.extend({cache:{},uuid:0,expando:"jQuery"+(aL.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(b){b=b.nodeType?aL.cache[b[aL.expando]]:b[aL.expando];return !!b&&!aB(b)},data:function(u,t,s,r){if(aL.acceptData(u)){var q=aL.expando,o=typeof t==="string",n,m=u.nodeType,d=m?aL.cache:u,b=m?u[aL.expando]:u[aL.expando]&&aL.expando;if((!b||r&&b&&!d[b][q])&&o&&s===aP){return}b||(m?u[aL.expando]=b=++aL.uuid:b=aL.expando),d[b]||(d[b]={},m||(d[b].toJSON=aL.noop));if(typeof t==="object"||typeof t==="function"){r?d[b][q]=aL.extend(d[b][q],t):d[b]=aL.extend(d[b],t)}n=d[b],r&&(n[q]||(n[q]={}),n=n[q]),s!==aP&&(n[t]=s);if(t==="events"&&!n[t]){return n[q]&&n[q].events}return o?n[t]:n}},removeData:function(t,s,r){if(aL.acceptData(t)){var q=aL.expando,o=t.nodeType,n=o?aL.cache:t,m=o?t[aL.expando]:aL.expando;if(!n[m]){return}if(s){var d=r?n[m][q]:n[m];if(d){delete d[s];if(!aB(d)){return}}}if(r){delete n[m][q];if(!aB(n[m])){return}}var a=n[m][q];aL.support.deleteExpando||n!=aR?delete n[m]:n[m]=null,a?(n[m]={},o||(n[m].toJSON=aL.noop),n[m][q]=a):o&&(aL.support.deleteExpando?delete t[aL.expando]:t.removeAttribute?t.removeAttribute(aL.expando):t[aL.expando]=null)}},_data:function(e,d,f){return aL.data(e,d,f,!0)},acceptData:function(d){if(d.nodeName){var c=aL.noData[d.nodeName.toLowerCase()];if(c){return c!==!0&&d.getAttribute("classid")===c}}return !0}}),aL.fn.extend({data:function(b,q){var o=null;if(typeof b==="undefined"){if(this.length){o=aL.data(this[0]);if(this[0].nodeType===1){var n=this[0].attributes,m;for(var l=0,h=n.length;l<h;l++){m=n[l].name,m.indexOf("data-")===0&&(m=m.substr(5),aD(this[0],m,o[m]))}}}return o}if(typeof b==="object"){return this.each(function(){aL.data(this,b)})}var d=b.split(".");d[1]=d[1]?"."+d[1]:"";if(q===aP){o=this.triggerHandler("getData"+d[1]+"!",[d[0]]),o===aP&&this.length&&(o=aL.data(this[0],b),o=aD(this[0],b,o));return o===aP&&d[1]?this.data(d[0]):o}return this.each(function(){var a=aL(this),c=[d[0],q];a.triggerHandler("setData"+d[1]+"!",c),aL.data(this,b,q),a.triggerHandler("changeData"+d[1]+"!",c)})},removeData:function(b){return this.each(function(){aL.removeData(this,b)})}}),aL.extend({queue:function(f,d,h){if(f){d=(d||"fx")+"queue";var g=aL._data(f,d);if(!h){return g||[]}!g||aL.isArray(h)?g=aL._data(f,d,aL.makeArray(h)):g.push(h);return g}},dequeue:function(f,d){d=d||"fx";var h=aL.queue(f,d),g=h.shift();g==="inprogress"&&(g=h.shift()),g&&(d==="fx"&&h.unshift("inprogress"),g.call(f,function(){aL.dequeue(f,d)})),h.length||aL.removeData(f,d+"queue",!0)}}),aL.fn.extend({queue:function(b,d){typeof b!=="string"&&(d=b,b="fx");if(d===aP){return aL.queue(this[0],b)}return this.each(function(a){var c=aL.queue(this,b,d);b==="fx"&&c[0]!=="inprogress"&&aL.dequeue(this,b)})},dequeue:function(b){return this.each(function(){aL.dequeue(this,b)})},delay:function(d,c){d=aL.fx?aL.fx.speeds[d]||d:d,c=c||"fx";return this.queue(c,function(){var a=this;setTimeout(function(){aL.dequeue(a,c)},d)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var aA=/[\n\t\r]/g,az=/\s+/,ay=/\r/g,ax=/^(?:href|src|style)$/,aw=/^(?:button|input)$/i,au=/^(?:button|input|object|select|textarea)$/i,ar=/^a(?:rea)?$/i,ap=/^(?:radio|checkbox)$/i;aL.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},aL.fn.extend({attr:function(d,c){return aL.access(this,d,c,!0,aL.attr)},removeAttr:function(d,c){return this.each(function(){aL.attr(this,d,""),this.nodeType===1&&this.removeAttribute(d)})},addClass:function(s){if(aL.isFunction(s)){return this.each(function(a){var e=aL(this);e.addClass(s.call(this,a,e.attr("class")))})}if(s&&typeof s==="string"){var r=(s||"").split(az);for(var q=0,o=this.length;q<o;q++){var n=this[q];if(n.nodeType===1){if(n.className){var m=" "+n.className+" ",l=n.className;for(var k=0,d=r.length;k<d;k++){m.indexOf(" "+r[k]+" ")<0&&(l+=" "+r[k])}n.className=aL.trim(l)}else{n.className=s}}}}return this},removeClass:function(d){if(aL.isFunction(d)){return this.each(function(a){var e=aL(this);e.removeClass(d.call(this,a,e.attr("class")))})}if(d&&typeof d==="string"||d===aP){var q=(d||"").split(az);for(var o=0,n=this.length;o<n;o++){var m=this[o];if(m.nodeType===1&&m.className){if(d){var k=(" "+m.className+" ").replace(aA," ");for(var j=0,b=q.length;j<b;j++){k=k.replace(" "+q[j]+" "," ")}m.className=aL.trim(k)}else{m.className=""}}}}return this},toggleClass:function(f,d){var h=typeof f,g=typeof d==="boolean";if(aL.isFunction(f)){return this.each(function(b){var a=aL(this);a.toggleClass(f.call(this,b,a.attr("class"),d),d)})}return this.each(function(){if(h==="string"){var k,e=0,c=aL(this),b=d,a=f.split(az);while(k=a[e++]){b=g?b:!c.hasClass(k),c[b?"addClass":"removeClass"](k)}}else{if(h==="undefined"||h==="boolean"){this.className&&aL._data(this,"__className__",this.className),this.className=this.className||f===!1?"":aL._data(this,"__className__")||""}}})},hasClass:function(f){var e=" "+f+" ";for(var h=0,g=this.length;h<g;h++){if((" "+this[h].className+" ").replace(aA," ").indexOf(e)>-1){return !0}}return !1},val:function(w){if(!arguments.length){var v=this[0];if(v){if(aL.nodeName(v,"option")){var u=v.attributes.value;return !u||u.specified?v.value:v.text}if(aL.nodeName(v,"select")){var t=v.selectedIndex,s=[],r=v.options,q=v.type==="select-one";if(t<0){return null}for(var o=q?t:0,l=q?t+1:r.length;o<l;o++){var d=r[o];if(d.selected&&(aL.support.optDisabled?!d.disabled:d.getAttribute("disabled")===null)&&(!d.parentNode.disabled||!aL.nodeName(d.parentNode,"optgroup"))){w=aL(d).val();if(q){return w}s.push(w)}}if(q&&!s.length&&r.length){return aL(r[t]).val()}return s}if(ap.test(v.type)&&!aL.support.checkOn){return v.getAttribute("value")===null?"on":v.value}return(v.value||"").replace(ay,"")}return aP}var b=aL.isFunction(w);return this.each(function(a){var j=aL(this),h=w;if(this.nodeType===1){b&&(h=w.call(this,a,j.val())),h==null?h="":typeof h==="number"?h+="":aL.isArray(h)&&(h=aL.map(h,function(c){return c==null?"":c+""}));if(aL.isArray(h)&&ap.test(this.type)){this.checked=aL.inArray(j.val(),h)>=0}else{if(aL.nodeName(this,"select")){var g=aL.makeArray(h);aL("option",this).each(function(){this.selected=aL.inArray(aL(this).val(),g)>=0}),g.length||(this.selectedIndex=-1)}else{this.value=h}}}})}}),aL.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(u,t,s,r){if(!u||u.nodeType===3||u.nodeType===8||u.nodeType===2){return aP}if(r&&t in aL.attrFn){return aL(u)[t](s)}var q=u.nodeType!==1||!aL.isXMLDoc(u),o=s!==aP;t=q&&aL.props[t]||t;if(u.nodeType===1){var n=ax.test(t);if(t==="selected"&&!aL.support.optSelected){var m=u.parentNode;m&&(m.selectedIndex,m.parentNode&&m.parentNode.selectedIndex)}if((t in u||u[t]!==aP)&&q&&!n){o&&(t==="type"&&aw.test(u.nodeName)&&u.parentNode&&aL.error("type property can't be changed"),s===null?u.nodeType===1&&u.removeAttribute(t):u[t]=s);if(aL.nodeName(u,"form")&&u.getAttributeNode(t)){return u.getAttributeNode(t).nodeValue}if(t==="tabIndex"){var d=u.getAttributeNode("tabIndex");return d&&d.specified?d.value:au.test(u.nodeName)||ar.test(u.nodeName)&&u.href?0:aP}return u[t]}if(!aL.support.style&&q&&t==="style"){o&&(u.style.cssText=""+s);return u.style.cssText}o&&u.setAttribute(t,""+s);if(!u.attributes[t]&&(u.hasAttribute&&!u.hasAttribute(t))){return aP}var b=!aL.support.hrefNormalized&&q&&n?u.getAttribute(t,2):u.getAttribute(t);return b===null?aP:b}o&&(u[t]=s);return u[t]}});var am=/\.(.*)$/,ak=/^(?:textarea|input|select)$/i,aj=/\./g,ah=/ /g,ae=/[^\w\s.|`]/g,ad=function(b){return b.replace(ae,"\\$&")};aL.event={add:function(D,C,B,A){if(D.nodeType!==3&&D.nodeType!==8){try{aL.isWindow(D)&&(D!==aR&&!D.frameElement)&&(D=aR)}catch(z){}if(B===!1){B=ac}else{if(!B){return}}var y,x;B.handler&&(y=B,B=y.handler),B.guid||(B.guid=aL.guid++);var w=aL._data(D);if(!w){return}var v=w.events,u=w.handle;v||(w.events=v={}),u||(w.handle=u=function(c){return typeof aL!=="undefined"&&aL.event.triggered!==c.type?aL.event.handle.apply(u.elem,arguments):aP}),u.elem=D,C=C.split(" ");var t,s=0,d;while(t=C[s++]){x=y?aL.extend({},y):{handler:B,data:A},t.indexOf(".")>-1?(d=t.split("."),t=d.shift(),x.namespace=d.slice(0).sort().join(".")):(d=[],x.namespace=""),x.type=t,x.guid||(x.guid=B.guid);var b=v[t],a=aL.event.special[t]||{};if(!b){b=v[t]=[];if(!a.setup||a.setup.call(D,A,d,u)===!1){D.addEventListener?D.addEventListener(t,u,!1):D.attachEvent&&D.attachEvent("on"+t,u)}}a.add&&(a.add.call(D,x),x.handler.guid||(x.handler.guid=B.guid)),b.push(x),aL.event.global[t]=!0}D=null}},global:{},remove:function(L,K,J,I){if(L.nodeType!==3&&L.nodeType!==8){J===!1&&(J=ac);var H,G,F,E,D=0,C,B,A,z,y,x,w,v=aL.hasData(L)&&aL._data(L),d=v&&v.events;if(!v||!d){return}K&&K.type&&(J=K.handler,K=K.type);if(!K||typeof K==="string"&&K.charAt(0)==="."){K=K||"";for(G in d){aL.event.remove(L,G+K)}return}K=K.split(" ");while(G=K[D++]){w=G,x=null,C=G.indexOf(".")<0,B=[],C||(B=G.split("."),G=B.shift(),A=new RegExp("(^|\\.)"+aL.map(B.slice(0).sort(),ad).join("\\.(?:.*\\.)?")+"(\\.|$)")),y=d[G];if(!y){continue}if(!J){for(E=0;E<y.length;E++){x=y[E];if(C||A.test(x.namespace)){aL.event.remove(L,w,x.handler,E),y.splice(E--,1)}}continue}z=aL.event.special[G]||{};for(E=I||0;E<y.length;E++){x=y[E];if(J.guid===x.guid){if(C||A.test(x.namespace)){I==null&&y.splice(E--,1),z.remove&&z.remove.call(L,x)}if(I!=null){break}}}if(y.length===0||I!=null&&y.length===1){(!z.teardown||z.teardown.call(L,B)===!1)&&aL.removeEvent(L,G,v.handle),H=null,delete d[G]}}if(aL.isEmptyObject(d)){var b=v.handle;b&&(b.elem=null),delete v.events,delete v.handle,aL.isEmptyObject(v)&&aL.removeData(L,aP,!0)}}},trigger:function(B,A,z){var y=B.type||B,x=arguments[3];if(!x){B=typeof B==="object"?B[aL.expando]?B:aL.extend(aL.Event(y),B):aL.Event(y),y.indexOf("!")>=0&&(B.type=y=y.slice(0,-1),B.exclusive=!0),z||(B.stopPropagation(),aL.event.global[y]&&aL.each(aL.cache,function(){var a=aL.expando,c=this[a];c&&c.events&&c.events[y]&&aL.event.trigger(B,A,c.handle.elem)}));if(!z||z.nodeType===3||z.nodeType===8){return aP}B.result=aP,B.target=z,A=aL.makeArray(A),A.unshift(B)}B.currentTarget=z;var w=aL._data(z,"handle");w&&w.apply(z,A);var v=z.parentNode||z.ownerDocument;try{z&&z.nodeName&&aL.noData[z.nodeName.toLowerCase()]||z["on"+y]&&z["on"+y].apply(z,A)===!1&&(B.result=!1,B.preventDefault())}catch(u){}if(!B.isPropagationStopped()&&v){aL.event.trigger(B,A,v,!0)}else{if(!B.isDefaultPrevented()){var t,s=B.target,r=y.replace(am,""),q=aL.nodeName(s,"a")&&r==="click",d=aL.event.special[r]||{};if((!d._default||d._default.call(z,B)===!1)&&!q&&!(s&&s.nodeName&&aL.noData[s.nodeName.toLowerCase()])){try{s[r]&&(t=s["on"+r],t&&(s["on"+r]=null),aL.event.triggered=B.type,s[r]())}catch(b){}t&&(s["on"+r]=t),aL.event.triggered=aP}}}},handle:function(y){var x,w,v,u,t,s=[],r=aL.makeArray(arguments);y=r[0]=aL.event.fix(y||aR.event),y.currentTarget=this,x=y.type.indexOf(".")<0&&!y.exclusive,x||(v=y.type.split("."),y.type=v.shift(),s=v.slice(0).sort(),u=new RegExp("(^|\\.)"+s.join("\\.(?:.*\\.)?")+"(\\.|$)")),y.namespace=y.namespace||s.join("."),t=aL._data(this,"events"),w=(t||{})[y.type];if(t&&w){w=w.slice(0);for(var q=0,d=w.length;q<d;q++){var b=w[q];if(x||u.test(b.namespace)){y.handler=b.handler,y.data=b.data,y.handleObj=b;var a=b.handler.apply(this,r);a!==aP&&(y.result=a,a===!1&&(y.preventDefault(),y.stopPropagation()));if(y.isImmediatePropagationStopped()){break}}}}return y.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b){if(b[aL.expando]){return b}var l=b;b=aL.Event(l);for(var k=this.props.length,j;k;){j=this.props[--k],b[j]=l[j]}b.target||(b.target=b.srcElement||aN),b.target.nodeType===3&&(b.target=b.target.parentNode),!b.relatedTarget&&b.fromElement&&(b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement);if(b.pageX==null&&b.clientX!=null){var d=aN.documentElement,c=aN.body;b.pageX=b.clientX+(d&&d.scrollLeft||c&&c.scrollLeft||0)-(d&&d.clientLeft||c&&c.clientLeft||0),b.pageY=b.clientY+(d&&d.scrollTop||c&&c.scrollTop||0)-(d&&d.clientTop||c&&c.clientTop||0)}b.which==null&&(b.charCode!=null||b.keyCode!=null)&&(b.which=b.charCode!=null?b.charCode:b.keyCode),!b.metaKey&&b.ctrlKey&&(b.metaKey=b.ctrlKey),!b.which&&b.button!==aP&&(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);return b},guid:100000000,proxy:aL.proxy,special:{ready:{setup:aL.bindReady,teardown:aL.noop},live:{add:function(b){aL.event.add(this,ct(b.origType,b.selector),aL.extend({},b,{handler:cv,guid:b.handler.guid}))},remove:function(b){aL.event.remove(this,ct(b.origType,b.selector),b)}},beforeunload:{setup:function(e,d,f){aL.isWindow(this)&&(this.onbeforeunload=f)},teardown:function(d,c){this.onbeforeunload===c&&(this.onbeforeunload=null)}}}},aL.removeEvent=aN.removeEventListener?function(e,d,f){e.removeEventListener&&e.removeEventListener(d,f,!1)}:function(e,d,f){e.detachEvent&&e.detachEvent("on"+d,f)},aL.Event=function(b){if(!this.preventDefault){return new aL.Event(b)}b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||b.returnValue===!1||b.getPreventDefault&&b.getPreventDefault()?ab:ac):this.type=b,this.timeStamp=aL.now(),this[aL.expando]=!0},aL.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ab;var b=this.originalEvent;b&&(b.preventDefault?b.preventDefault():b.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=ab;var b=this.originalEvent;b&&(b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ab,this.stopPropagation()},isDefaultPrevented:ac,isPropagationStopped:ac,isImmediatePropagationStopped:ac};var aa=function(d){var c=d.relatedTarget;try{if(c&&c!==aN&&!c.parentNode){return}while(c&&c!==this){c=c.parentNode}c!==this&&(d.type=d.data,aL.event.handle.apply(this,arguments))}catch(f){}},cH=function(b){b.type=b.data,aL.event.handle.apply(this,arguments)};aL.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,c){aL.event.special[d]={setup:function(a){aL.event.add(this,c,a&&a.selector?cH:aa,d)},teardown:function(b){aL.event.remove(this,c,b&&b.selector?cH:aa)}}}),aL.support.submitBubbles||(aL.event.special.submit={setup:function(d,c){if(this.nodeName&&this.nodeName.toLowerCase()!=="form"){aL.event.add(this,"click.specialSubmit",function(f){var e=f.target,g=e.type;(g==="submit"||g==="image")&&aL(e).closest("form").length&&cA("submit",this,arguments)}),aL.event.add(this,"keypress.specialSubmit",function(f){var e=f.target,g=e.type;(g==="text"||g==="password")&&aL(e).closest("form").length&&f.keyCode===13&&cA("submit",this,arguments)})}else{return !1}},teardown:function(b){aL.event.remove(this,".specialSubmit")}});if(!aL.support.changeBubbles){var cG,cE=function(e){var d=e.type,f=e.value;d==="radio"||d==="checkbox"?f=e.checked:d==="select-multiple"?f=e.selectedIndex>-1?aL.map(e.options,function(b){return b.selected}).join("-"):"":e.nodeName.toLowerCase()==="select"&&(f=e.selectedIndex);return f},cC=function cC(b){var h=b.target,g,d;if(ak.test(h.nodeName)&&!h.readOnly){g=aL._data(h,"_change_data"),d=cE(h),(b.type!=="focusout"||h.type!=="radio")&&aL._data(h,"_change_data",d);if(g===aP||d===g){return}if(g!=null||d){b.type="change",b.liveFired=aP,aL.event.trigger(b,arguments[1],h)}}};aL.event.special.change={filters:{focusout:cC,beforedeactivate:cC,click:function(e){var d=e.target,f=d.type;(f==="radio"||f==="checkbox"||d.nodeName.toLowerCase()==="select")&&cC.call(this,e)},keydown:function(e){var d=e.target,f=d.type;(e.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||e.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple")&&cC.call(this,e)},beforeactivate:function(d){var c=d.target;aL._data(c,"_change_data",cE(c))}},setup:function(e,d){if(this.type==="file"){return !1}for(var f in cG){aL.event.add(this,f+".specialChange",cG[f])}return ak.test(this.nodeName)},teardown:function(b){aL.event.remove(this,".specialChange");return ak.test(this.nodeName)}},cG=aL.event.special.change.filters,cG.focus=cG.beforeactivate}aN.addEventListener&&aL.each({focus:"focusin",blur:"focusout"},function(d,c){function g(b){var e=aL.event.fix(b);e.type=c,e.originalEvent={},aL.event.trigger(e,null,e.target),e.isDefaultPrevented()&&b.preventDefault()}var h=0;aL.event.special[c]={setup:function(){h++===0&&aN.addEventListener(d,g,!0)},teardown:function(){--h===0&&aN.removeEventListener(d,g,!0)}}}),aL.each(["bind","one"],function(b,d){aL.fn[d]=function(c,q,o){if(typeof c==="object"){for(var n in c){this[d](n,q,c[n],o)}return this}if(aL.isFunction(q)||q===!1){o=q,q=aP}var m=d==="one"?aL.proxy(o,function(e){aL(this).unbind(e,m);return o.apply(this,arguments)}):o;if(c==="unload"&&d!=="one"){this.one(c,q,o)}else{for(var l=0,k=this.length;l<k;l++){aL.event.add(this[l],c,m,q)}}return this}}),aL.fn.extend({unbind:function(g,d){if(typeof g!=="object"||g.preventDefault){for(var j=0,h=this.length;j<h;j++){aL.event.remove(this[j],g,d)}}else{for(var k in g){this.unbind(k,g[k])}}return this},delegate:function(f,e,h,g){return this.live(e,h,g,f)},undelegate:function(e,d,f){return arguments.length===0?this.unbind("live"):this.die(d,null,f,e)},trigger:function(d,c){return this.each(function(){aL.event.trigger(d,c,this)})},triggerHandler:function(e,d){if(this[0]){var f=aL.Event(e);f.preventDefault(),f.stopPropagation(),aL.event.trigger(f,d,this[0]);return f.result}},toggle:function(e){var d=arguments,f=1;while(f<d.length){aL.proxy(e,d[f++])}return this.click(aL.proxy(e,function(b){var a=(aL._data(this,"lastToggle"+e.guid)||0)%f;aL._data(this,"lastToggle"+e.guid,a+1),b.preventDefault();return d[a].apply(this,arguments)||!1}))},hover:function(d,c){return this.mouseenter(d).mouseleave(c||d)}});var cy={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};aL.each(["live","die"],function(b,d){aL.fn[d]=function(D,C,B,A){var z,y=0,x,w,v,u=A||this.selector,t=A?this:aL(this.context);if(typeof D==="object"&&!D.preventDefault){for(var s in D){t[d](s,C,D[s],u)}return this}aL.isFunction(C)&&(B=C,C=aP),D=(D||"").split(" ");while((z=D[y++])!=null){x=am.exec(z),w="",x&&(w=x[0],z=z.replace(am,""));if(z==="hover"){D.push("mouseenter"+w,"mouseleave"+w);continue}v=z,z==="focus"||z==="blur"?(D.push(cy[z]+w),z=z+w):z=(cy[z]||z)+w;if(d==="live"){for(var r=0,c=t.length;r<c;r++){aL.event.add(t[r],"live."+ct(z,u),{data:C,selector:u,handler:B,origType:z,origHandler:B,preType:v})}}else{t.unbind("live."+ct(z,u),B)}}return this}}),aL.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,c){aL.fn[c]=function(b,e){e==null&&(e=b,b=null);return arguments.length>0?this.bind(c,b,e):this.trigger(c)},aL.attrFn&&(aL.attrFn[c]=!0)}),function(){function c(u,t,s,r,q,o){for(var n=0,m=r.length;n<m;n++){var l=r[n];if(l){var k=!1;l=l[u];while(l){if(l.sizcache===s){k=r[l.sizset];break}if(l.nodeType===1){o||(l.sizcache=s,l.sizset=n);if(typeof t!=="string"){if(l===t){k=!0;break}}else{if(E.filter(t,[l]).length>0){k=l;break}}}l=l[u]}r[n]=k}}}function d(u,t,s,r,q,o){for(var n=0,m=r.length;n<m;n++){var l=r[n];if(l){var k=!1;l=l[u];while(l){if(l.sizcache===s){k=r[l.sizset];break}l.nodeType===1&&!o&&(l.sizcache=s,l.sizset=n);if(l.nodeName.toLowerCase()===t){k=l;break}l=l[u]}r[n]=k}}}var L=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,K=0,J=Object.prototype.toString,I=!1,H=!0,G=/\\/g,F=/\W/;[0,0].sort(function(){H=!1;return 0});var E=function(R,P,O,N){O=O||[],P=P||aN;var M=P;if(P.nodeType!==1&&P.nodeType!==9){return[]}if(!R||typeof R!=="string"){return O}var v,m,l,k,f,a,W,V,U=!0,T=E.isXML(P),S=[],Q=R;do{L.exec(""),v=L.exec(Q);if(v){Q=v[3],S.push(v[1]);if(v[2]){k=v[3];break}}}while(v);if(S.length>1&&C.exec(R)){if(S.length===2&&D.relative[S[0]]){m=b(S[0]+S[1],P)}else{m=D.relative[S[0]]?[P]:E(S.shift(),P);while(S.length){R=S.shift(),D.relative[R]&&(R+=S.shift()),m=b(R,m)}}}else{!N&&S.length>1&&P.nodeType===9&&!T&&D.match.ID.test(S[0])&&!D.match.ID.test(S[S.length-1])&&(f=E.find(S.shift(),P,T),P=f.expr?E.filter(f.expr,f.set)[0]:f.set[0]);if(P){f=N?{expr:S.pop(),set:z(N)}:E.find(S.pop(),S.length===1&&(S[0]==="~"||S[0]==="+")&&P.parentNode?P.parentNode:P,T),m=f.expr?E.filter(f.expr,f.set):f.set,S.length>0?l=z(m):U=!1;while(S.length){a=S.pop(),W=a,D.relative[a]?W=S.pop():a="",W==null&&(W=P),D.relative[a](l,W,T)}}else{l=S=[]}}l||(l=m),l||E.error(a||R);if(J.call(l)==="[object Array]"){if(U){if(P&&P.nodeType===1){for(V=0;l[V]!=null;V++){l[V]&&(l[V]===!0||l[V].nodeType===1&&E.contains(P,l[V]))&&O.push(m[V])}}else{for(V=0;l[V]!=null;V++){l[V]&&l[V].nodeType===1&&O.push(m[V])}}}else{O.push.apply(O,l)}}else{z(l,O)}k&&(E(k,M,O,N),E.uniqueSort(O));return O};E.uniqueSort=function(f){if(x){I=H,f.sort(x);if(I){for(var e=1;e<f.length;e++){f[e]===f[e-1]&&f.splice(e--,1)}}}return f},E.matches=function(f,e){return E(f,null,null,e)},E.matchesSelector=function(f,e){return E(e,null,null,[f]).length>0},E.find=function(t,s,r){var q;if(!t){return[]}for(var o=0,n=D.order.length;o<n;o++){var m,l=D.order[o];if(m=D.leftMatch[l].exec(t)){var k=m[1];m.splice(1,1);if(k.substr(k.length-1)!=="\\"){m[1]=(m[1]||"").replace(G,""),q=D.find[l](m,s,r);if(q!=null){t=t.replace(D.match[l],"");break}}}}q||(q=typeof s.getElementsByTagName!=="undefined"?s.getElementsByTagName("*"):[]);return{set:q,expr:t}},E.filter=function(W,V,U,T){var S,R,Q=W,P=[],O=V,N=V&&V[0]&&E.isXML(V[0]);while(W&&V.length){for(var M in D.filter){if((S=D.leftMatch[M].exec(W))!=null&&S[2]){var v,u,l=D.filter[M],k=S[1];R=!1,S.splice(1,1);if(k.substr(k.length-1)==="\\"){continue}O===P&&(P=[]);if(D.preFilter[M]){S=D.preFilter[M](S,O,U,P,T,N);if(S){if(S===!0){continue}}else{R=v=!0}}if(S){for(var Y=0;(u=O[Y])!=null;Y++){if(u){v=l(u,S,Y,O);var X=T^!!v;U&&v!=null?X?R=!0:O[Y]=!1:X&&(P.push(u),R=!0)}}}if(v!==aP){U||(O=P),W=W.replace(D.match[M],"");if(!R){return[]}break}}}if(W===Q){if(R==null){E.error(W)}else{break}}Q=W}return O},E.error=function(e){throw"Syntax error, unrecognized expression: "+e};var D=E.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(k,j){var r=typeof j==="string",q=r&&!F.test(j),o=r&&!q;q&&(j=j.toLowerCase());for(var n=0,m=k.length,l;n<m;n++){if(l=k[n]){while((l=l.previousSibling)&&l.nodeType!==1){}k[n]=o||l&&l.nodeName.toLowerCase()===j?l||!1:l===j}}o&&E.filter(j,k,!0)},">":function(j,h){var o,n=typeof h==="string",m=0,l=j.length;if(n&&!F.test(h)){h=h.toLowerCase();for(;m<l;m++){o=j[m];if(o){var k=o.parentNode;j[m]=k.nodeName.toLowerCase()===h?k:!1}}}else{for(;m<l;m++){o=j[m],o&&(j[m]=n?o.parentNode:o.parentNode===h)}n&&E.filter(h,j,!0)}},"":function(h,e,m){var l,k=K++,j=c;typeof e==="string"&&!F.test(e)&&(e=e.toLowerCase(),l=e,j=d),j("parentNode",e,k,h,l,m)},"~":function(h,e,m){var l,k=K++,j=c;typeof e==="string"&&!F.test(e)&&(e=e.toLowerCase(),l=e,j=d),j("previousSibling",e,k,h,l,m)}},find:{ID:function(f,e,h){if(typeof e.getElementById!=="undefined"&&!h){var g=e.getElementById(f[1]);return g&&g.parentNode?[g]:[]}},NAME:function(h,g){if(typeof g.getElementsByName!=="undefined"){var m=[],l=g.getElementsByName(h[1]);for(var k=0,j=l.length;k<j;k++){l[k].getAttribute("name")===h[1]&&m.push(l[k])}return m.length===0?null:m}},TAG:function(f,e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName(f[1])}}},preFilter:{CLASS:function(k,j,r,q,o,n){k=" "+k[1].replace(G,"")+" ";if(n){return k}for(var m=0,l;(l=j[m])!=null;m++){l&&(o^(l.className&&(" "+l.className+" ").replace(/[\t\n\r]/g," ").indexOf(k)>=0)?r||q.push(l):r&&(j[m]=!1))}return !1},ID:function(e){return e[1].replace(G,"")},TAG:function(f,e){return f[1].replace(G,"").toLowerCase()},CHILD:function(f){if(f[1]==="nth"){f[2]||E.error(f[0]),f[2]=f[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(f[2]==="even"&&"2n"||f[2]==="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=e[1]+(e[2]||1)-0,f[3]=e[3]-0}else{f[2]&&E.error(f[0])}f[0]=K++;return f},ATTR:function(j,h,o,n,m,l){var k=j[1]=j[1].replace(G,"");!l&&D.attrMap[k]&&(j[1]=D.attrMap[k]),j[4]=(j[4]||j[5]||"").replace(G,""),j[2]==="~="&&(j[4]=" "+j[4]+" ");return j},PSEUDO:function(a,m,l,k,j){if(a[1]==="not"){if((L.exec(a[3])||"").length>1||/^\w/.test(a[3])){a[3]=E(a[3],null,null,m)}else{var h=E.filter(a[3],m,l,!0^j);l||k.push.apply(k,h);return !1}}else{if(D.match.POS.test(a[0])||D.match.CHILD.test(a[0])){return !0}}return a},POS:function(e){e.unshift(!0);return e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){e.parentNode&&e.parentNode.selectedIndex;return e.selected===!0},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(f,e,g){return !!E(g[3],f).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(f){var e=f.getAttribute("type"),g=f.type;return"text"===g&&(e===g||e===null)},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(f,e){return e===0},last:function(f,e,h,g){return e===g.length-1},even:function(f,e){return e%2===0},odd:function(f,e){return e%2===1},lt:function(f,e,g){return e<g[3]-0},gt:function(f,e,g){return e>g[3]-0},nth:function(f,e,g){return g[3]-0===e},eq:function(f,e,g){return g[3]-0===e}},filter:{PSEUDO:function(s,r,q,o){var n=r[1],m=D.filters[n];if(m){return m(s,q,r,o)}if(n==="contains"){return(s.textContent||s.innerText||E.getText([s])||"").indexOf(r[3])>=0}if(n==="not"){var l=r[3];for(var k=0,j=l.length;k<j;k++){if(l[k]===s){return !1}}return !0}E.error(n)},CHILD:function(u,t){var s=t[1],r=u;switch(s){case"only":case"first":while(r=r.previousSibling){if(r.nodeType===1){return !1}}if(s==="first"){return !0}r=u;case"last":while(r=r.nextSibling){if(r.nodeType===1){return !1}}return !0;case"nth":var q=t[2],o=t[3];if(q===1&&o===0){return !0}var n=t[0],m=u.parentNode;if(m&&(m.sizcache!==n||!u.nodeIndex)){var l=0;for(r=m.firstChild;r;r=r.nextSibling){r.nodeType===1&&(r.nodeIndex=++l)}m.sizcache=n}var k=u.nodeIndex-o;return q===0?k===0:k%q===0&&k/q>=0}},ID:function(f,e){return f.nodeType===1&&f.getAttribute("id")===e},TAG:function(f,e){return e==="*"&&f.nodeType===1||f.nodeName.toLowerCase()===e},CLASS:function(f,e){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(j,h){var o=h[1],n=D.attrHandle[o]?D.attrHandle[o](j):j[o]!=null?j[o]:j.getAttribute(o),m=n+"",l=h[2],k=h[4];return n==null?l==="!=":l==="="?m===k:l==="*="?m.indexOf(k)>=0:l==="~="?(" "+m+" ").indexOf(k)>=0:k?l==="!="?m!==k:l==="^="?m.indexOf(k)===0:l==="$="?m.substr(m.length-k.length)===k:l==="|="?m===k||m.substr(0,k.length+1)===k+"-":!1:m&&n!==!1},POS:function(h,g,m,l){var k=g[2],j=D.setFilters[k];if(j){return j(h,m,g,l)}}}},C=D.match.POS,B=function(f,e){return"\\"+(e-0+1)};for(var A in D.match){D.match[A]=new RegExp(D.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source),D.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+D.match[A].source.replace(/\\(\d+)/g,B))}var z=function(f,e){f=Array.prototype.slice.call(f,0);if(e){e.push.apply(e,f);return e}return f};try{Array.prototype.slice.call(aN.documentElement.childNodes,0)[0].nodeType}catch(y){z=function(g,f){var k=0,j=f||[];if(J.call(g)==="[object Array]"){Array.prototype.push.apply(j,g)}else{if(typeof g.length==="number"){for(var h=g.length;k<h;k++){j.push(g[k])}}else{for(;g[k];k++){j.push(g[k])}}}return j}}var x,w;aN.documentElement.compareDocumentPosition?x=function(f,e){if(f===e){I=!0;return 0}if(!f.compareDocumentPosition||!e.compareDocumentPosition){return f.compareDocumentPosition?-1:1}return f.compareDocumentPosition(e)&4?-1:1}:(x=function(u,t){var s,r,q=[],o=[],n=u.parentNode,m=t.parentNode,l=n;if(u===t){I=!0;return 0}if(n===m){return w(u,t)}if(!n){return -1}if(!m){return 1}while(l){q.unshift(l),l=l.parentNode}l=m;while(l){o.unshift(l),l=l.parentNode}s=q.length,r=o.length;for(var g=0;g<s&&g<r;g++){if(q[g]!==o[g]){return w(q[g],o[g])}}return g===s?w(u,o[g],-1):w(q[g],t,1)},w=function(f,e,h){if(f===e){return h}var g=f.nextSibling;while(g){if(g===e){return -1}g=g.nextSibling}return 1}),E.getText=function(f){var e="",h;for(var g=0;f[g];g++){h=f[g],h.nodeType===3||h.nodeType===4?e+=h.nodeValue:h.nodeType!==8&&(e+=E.getText(h.childNodes))}return e},function(){var f=aN.createElement("div"),h="script"+(new Date).getTime(),g=aN.documentElement;f.innerHTML="<a name='"+h+"'/>",g.insertBefore(f,g.firstChild),aN.getElementById(h)&&(D.find.ID=function(j,m,l){if(typeof m.getElementById!=="undefined"&&!l){var k=m.getElementById(j[1]);return k?k.id===j[1]||typeof k.getAttributeNode!=="undefined"&&k.getAttributeNode("id").nodeValue===j[1]?[k]:aP:[]}},D.filter.ID=function(j,e){var k=typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id");return j.nodeType===1&&k&&k.nodeValue===e}),g.removeChild(f),g=f=null}(),function(){var e=aN.createElement("div");e.appendChild(aN.createComment("")),e.getElementsByTagName("*").length>0&&(D.find.TAG=function(g,f){var k=f.getElementsByTagName(g[1]);if(g[1]==="*"){var j=[];for(var h=0;k[h];h++){k[h].nodeType===1&&j.push(k[h])}k=j}return k}),e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(D.attrHandle.href=function(f){return f.getAttribute("href",2)}),e=null}(),aN.querySelectorAll&&function(){var g=E,f=aN.createElement("div"),j="__sizzle__";f.innerHTML="<p class='TEST'></p>";if(!f.querySelectorAll||f.querySelectorAll(".TEST").length!==0){E=function(R,Q,P,O){Q=Q||aN;if(!O&&!E.isXML(Q)){var N=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(R);if(N&&(Q.nodeType===1||Q.nodeType===9)){if(N[1]){return z(Q.getElementsByTagName(R),P)}if(N[2]&&D.find.CLASS&&Q.getElementsByClassName){return z(Q.getElementsByClassName(N[2]),P)}}if(Q.nodeType===9){if(R==="body"&&Q.body){return z([Q.body],P)}if(N&&N[3]){var M=Q.getElementById(N[3]);if(!M||!M.parentNode){return z([],P)}if(M.id===N[3]){return z([M],P)}}try{return z(Q.querySelectorAll(R),P)}catch(v){}}else{if(Q.nodeType===1&&Q.nodeName.toLowerCase()!=="object"){var u=Q,t=Q.getAttribute("id"),l=t||j,k=Q.parentNode,a=/^\s*[+~]/.test(R);t?l=l.replace(/'/g,"\\$&"):Q.setAttribute("id",l),a&&k&&(Q=Q.parentNode);try{if(!a||k){return z(Q.querySelectorAll("[id='"+l+"'] "+R),P)}}catch(S){}finally{t||u.removeAttribute("id")}}}}return g(R,Q,P,O)};for(var h in g){E[h]=g[h]}f=null}}(),function(){var h=aN.documentElement,g=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.msMatchesSelector;if(g){var l=!g.call(aN.createElement("div"),"div"),k=!1;try{g.call(aN.documentElement,"[test!='']:sizzle")}catch(j){k=!0}E.matchesSelector=function(e,o){o=o.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!E.isXML(e)){try{if(k||!D.match.PSEUDO.test(o)&&!/!=/.test(o)){var n=g.call(e,o);if(n||!l||e.document&&e.document.nodeType!==11){return n}}}catch(m){}}return E(o,null,null,[e]).length>0}}}(),function(){var e=aN.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName&&e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}D.order.splice(1,0,"CLASS"),D.find.CLASS=function(g,f,h){if(typeof f.getElementsByClassName!=="undefined"&&!h){return f.getElementsByClassName(g[1])}},e=null}}(),aN.documentElement.contains?E.contains=function(f,e){return f!==e&&(f.contains?f.contains(e):!0)}:aN.documentElement.compareDocumentPosition?E.contains=function(f,e){return !!(f.compareDocumentPosition(e)&16)}:E.contains=function(){return !1},E.isXML=function(f){var e=(f?f.ownerDocument||f:0).documentElement;return e?e.nodeName!=="HTML":!1};var b=function(k,j){var r,q=[],o="",n=j.nodeType?[j]:j;while(r=D.match.PSEUDO.exec(k)){o+=r[0],k=k.replace(D.match.PSEUDO,"")}k=D.relative[k]?k+"*":k;for(var m=0,l=n.length;m<l;m++){E(k,n[m],q)}return E.filter(o,q)};aL.find=E,aL.expr=E.selectors,aL.expr[":"]=aL.expr.filters,aL.unique=E.uniqueSort,aL.text=E.getText,aL.isXMLDoc=E.isXML,aL.contains=E.contains}();var cs=/Until$/,cr=/^(?:parents|prevUntil|prevAll)/,cq=/,/,cp=/^.[^:#\[\.,]*$/,co=Array.prototype.slice,cm=aL.expr.match.POS,cl={children:!0,contents:!0,next:!0,prev:!0};aL.fn.extend({find:function(j){var d=this.pushStack("","find",j),o=0;for(var n=0,m=this.length;n<m;n++){o=d.length,aL.find(j,this[n],d);if(n>0){for(var l=o;l<d.length;l++){for(var k=0;k<o;k++){if(d[k]===d[l]){d.splice(l--,1);break}}}}}return d},has:function(d){var c=aL(d);return this.filter(function(){for(var b=0,e=c.length;b<e;b++){if(aL.contains(this,c[b])){return !0}}})},not:function(b){return this.pushStack(b8(this,b,!1),"not",b)},filter:function(b){return this.pushStack(b8(this,b,!0),"filter",b)},is:function(b){return !!b&&aL.filter(b,this).length>0},closest:function(w,v){var u=[],t,s,r=this[0];if(aL.isArray(w)){var q,o,n={},m=1;if(r&&w.length){for(t=0,s=w.length;t<s;t++){o=w[t],n[o]||(n[o]=aL.expr.match.POS.test(o)?aL(o,v||this.context):o)}while(r&&r.ownerDocument&&r!==v){for(o in n){q=n[o],(q.jquery?q.index(r)>-1:aL(r).is(q))&&u.push({selector:o,elem:r,level:m})}r=r.parentNode,m++}}return u}var d=cm.test(w)?aL(w,v||this.context):null;for(t=0,s=this.length;t<s;t++){r=this[t];while(r){if(d?d.index(r)>-1:aL.find.matchesSelector(r,w)){u.push(r);break}r=r.parentNode;if(!r||!r.ownerDocument||r===v){break}}}u=u.length>1?aL.unique(u):u;return this.pushStack(u,"closest",w)},index:function(b){if(!b||typeof b==="string"){return aL.inArray(this[0],b?aL(b):this.parent().children())}return aL.inArray(b.jquery?b[0]:b,this)},add:function(f,d){var h=typeof f==="string"?aL(f,d):aL.makeArray(f),g=aL.merge(this.get(),h);return this.pushStack(cj(h[0])||cj(g[0])?g:aL.unique(g))},andSelf:function(){return this.add(this.prevObject)}}),aL.each({parent:function(d){var c=d.parentNode;return c&&c.nodeType!==11?c:null},parents:function(b){return aL.dir(b,"parentNode")},parentsUntil:function(e,d,f){return aL.dir(e,"parentNode",f)},next:function(b){return aL.nth(b,2,"nextSibling")},prev:function(b){return aL.nth(b,2,"previousSibling")},nextAll:function(b){return aL.dir(b,"nextSibling")},prevAll:function(b){return aL.dir(b,"previousSibling")},nextUntil:function(e,d,f){return aL.dir(e,"nextSibling",f)},prevUntil:function(e,d,f){return aL.dir(e,"previousSibling",f)},siblings:function(b){return aL.sibling(b.parentNode.firstChild,b)},children:function(b){return aL.sibling(b.firstChild)},contents:function(b){return aL.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:aL.makeArray(b.childNodes)}},function(d,c){aL.fn[d]=function(j,h){var b=aL.map(this,c,j),a=co.call(arguments);cs.test(d)||(h=j),h&&typeof h==="string"&&(b=aL.filter(h,b)),b=this.length>1&&!cl[d]?aL.unique(b):b,(this.length>1||cq.test(h))&&cr.test(d)&&(b=b.reverse());return this.pushStack(b,d,a.join(","))}}),aL.extend({filter:function(e,d,f){f&&(e=":not("+e+")");return d.length===1?aL.find.matchesSelector(d[0],e)?[d[0]]:[]:aL.find.matches(e,d)},dir:function(b,k,j){var h=[],d=b[k];while(d&&d.nodeType!==9&&(j===aP||d.nodeType!==1||!aL(d).is(j))){d.nodeType===1&&h.push(d),d=d[k]}return h},nth:function(g,f,k,j){f=f||1;var h=0;for(;g;g=g[k]){if(g.nodeType===1&&++h===f){break}}return g},sibling:function(e,d){var f=[];for(;e;e=e.nextSibling){e.nodeType===1&&e!==d&&f.push(e)}return f}});var b6=/ jQuery\d+="(?:\d+|null)"/g,b4=/^\s+/,b2=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,b0=/<([\w:]+)/,a8=/<tbody/i,a6=/<|&#?\w+;/,a4=/<(?:script|object|embed|option|style)/i,a2=/checked\s*(?:[^=]|=\s*.checked.)/i,a0={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,"",""]};a0.optgroup=a0.option,a0.tbody=a0.tfoot=a0.colgroup=a0.caption=a0.thead,a0.th=a0.td,aL.support.htmlSerialize||(a0._default=[1,"div<div>","</div>"]),aL.fn.extend({text:function(b){if(aL.isFunction(b)){return this.each(function(a){var d=aL(this);d.text(b.call(this,a,d.text()))})}if(typeof b!=="object"&&b!==aP){return this.empty().append((this[0]&&this[0].ownerDocument||aN).createTextNode(b))}return aL.text(this)},wrapAll:function(d){if(aL.isFunction(d)){return this.each(function(a){aL(this).wrapAll(d.call(this,a))})}if(this[0]){var c=aL(d,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){var b=this;while(b.firstChild&&b.firstChild.nodeType===1){b=b.firstChild}return b}).append(this)}return this},wrapInner:function(b){if(aL.isFunction(b)){return this.each(function(a){aL(this).wrapInner(b.call(this,a))})}return this.each(function(){var a=aL(this),d=a.contents();d.length?d.wrapAll(b):a.append(b)})},wrap:function(b){return this.each(function(){aL(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){aL.nodeName(this,"body")||aL(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)})}if(arguments.length){var b=aL(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)})}if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,aL(arguments[0]).toArray());return b}},remove:function(f,d){for(var h=0,g;(g=this[h])!=null;h++){if(!f||aL.filter(f,[g]).length){!d&&g.nodeType===1&&(aL.cleanData(g.getElementsByTagName("*")),aL.cleanData([g])),g.parentNode&&g.parentNode.removeChild(g)}}return this},empty:function(){for(var d=0,c;(c=this[d])!=null;d++){c.nodeType===1&&aL.cleanData(c.getElementsByTagName("*"));while(c.firstChild){c.removeChild(c.firstChild)}}return this},clone:function(d,c){d=d==null?!1:d,c=c==null?d:c;return this.map(function(){return aL.clone(this,d,c)})},html:function(b){if(b===aP){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(b6,""):null}if(typeof b!=="string"||a4.test(b)||!aL.support.leadingWhitespace&&b4.test(b)||a0[(b0.exec(b)||["",""])[1].toLowerCase()]){aL.isFunction(b)?this.each(function(a){var e=aL(this);e.html(b.call(this,a,e.html()))}):this.empty().append(b)}else{b=b.replace(b2,"<$1></$2>");try{for(var h=0,g=this.length;h<g;h++){this[h].nodeType===1&&(aL.cleanData(this[h].getElementsByTagName("*")),this[h].innerHTML=b)}}catch(d){this.empty().append(b)}}return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(aL.isFunction(b)){return this.each(function(a){var f=aL(this),d=f.html();f.replaceWith(b.call(this,a,d))})}typeof b!=="string"&&(b=aL(b).detach());return this.each(function(){var a=this.nextSibling,d=this.parentNode;aL(this).remove(),a?aL(a).before(b):aL(d).append(b)})}return this.length?this.pushStack(aL(aL.isFunction(b)?b():b),"replaceWith",b):this},detach:function(b){return this.remove(b,!0)},domManip:function(y,x,w){var v,u,t,s,r=y[0],q=[];if(!aL.support.checkClone&&arguments.length===3&&typeof r==="string"&&a2.test(r)){return this.each(function(){aL(this).domManip(y,x,w,!0)})}if(aL.isFunction(r)){return this.each(function(c){var a=aL(this);y[0]=r.call(this,c,x?a.html():aP),a.domManip(y,x,w)})}if(this[0]){s=r&&r.parentNode,aL.support.parentNode&&s&&s.nodeType===11&&s.childNodes.length===this.length?v={fragment:s}:v=aL.buildFragment(y,this,q),t=v.fragment,t.childNodes.length===1?u=t=t.firstChild:u=t.firstChild;if(u){x=x&&aL.nodeName(u,"tr");for(var o=0,d=this.length,b=d-1;o<d;o++){w.call(x?c1(this[o],u):this[o],v.cacheable||d>1&&o<b?aL.clone(t,!0,!0):t)}}q.length&&aL.each(q,b7)}return this}}),aL.buildFragment=function(d,c,n){var m,l,k,j=c&&c[0]?c[0].ownerDocument||c[0]:aN;d.length===1&&typeof d[0]==="string"&&d[0].length<512&&j===aN&&d[0].charAt(0)==="<"&&!a4.test(d[0])&&(aL.support.checkClone||!a2.test(d[0]))&&(l=!0,k=aL.fragments[d[0]],k&&(k!==1&&(m=k))),m||(m=j.createDocumentFragment(),aL.clean(d,j,m,n)),l&&(aL.fragments[d[0]]=k?m:1);return{fragment:m,cacheable:l}},aL.fragments={},aL.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,c){aL.fn[d]=function(o){var n=[],m=aL(o),l=this.length===1&&this[0].parentNode;if(l&&l.nodeType===11&&l.childNodes.length===1&&m.length===1){m[c](this[0]);return this}for(var k=0,b=m.length;k<b;k++){var a=(k>0?this.clone(!0):this).get();aL(m[k])[c](a),n=n.concat(a)}return this.pushStack(n,d,m.selector)}}),aL.extend({clone:function(j,d,o){var n=j.cloneNode(!0),m,l,k;if((!aL.support.noCloneEvent||!aL.support.noCloneChecked)&&(j.nodeType===1||j.nodeType===11)&&!aL.isXMLDoc(j)){ck(j,n),m=b9(j),l=b9(n);for(k=0;m[k];++k){ck(m[k],l[k])}}if(d){aT(j,n);if(o){m=b9(j),l=b9(n);for(k=0;m[k];++k){aT(m[k],l[k])}}}return n},clean:function(B,A,z,y){A=A||aN,typeof A.createElement==="undefined"&&(A=A.ownerDocument||A[0]&&A[0].ownerDocument||aN);var x=[];for(var w=0,v;(v=B[w])!=null;w++){typeof v==="number"&&(v+="");if(!v){continue}if(typeof v!=="string"||a6.test(v)){if(typeof v==="string"){v=v.replace(b2,"<$1></$2>");var u=(b0.exec(v)||["",""])[1].toLowerCase(),t=a0[u]||a0._default,s=t[0],r=A.createElement("div");r.innerHTML=t[1]+v+t[2];while(s--){r=r.lastChild}if(!aL.support.tbody){var q=a8.test(v),d=u==="table"&&!q?r.firstChild&&r.firstChild.childNodes:t[1]==="<table>"&&!q?r.childNodes:[];for(var c=d.length-1;c>=0;--c){aL.nodeName(d[c],"tbody")&&!d[c].childNodes.length&&d[c].parentNode.removeChild(d[c])}}!aL.support.leadingWhitespace&&b4.test(v)&&r.insertBefore(A.createTextNode(b4.exec(v)[0]),r.firstChild),v=r.childNodes}}else{v=A.createTextNode(v)}v.nodeType?x.push(v):x=aL.merge(x,v)}if(z){for(w=0;x[w];w++){!y||!aL.nodeName(x[w],"script")||x[w].type&&x[w].type.toLowerCase()!=="text/javascript"?(x[w].nodeType===1&&x.splice.apply(x,[w+1,0].concat(aL.makeArray(x[w].getElementsByTagName("script")))),z.appendChild(x[w])):y.push(x[w].parentNode?x[w].parentNode.removeChild(x[w]):x[w])}}return x},cleanData:function(u){var t,s,r=aL.cache,q=aL.expando,o=aL.event.special,n=aL.support.deleteExpando;for(var m=0,l;(l=u[m])!=null;m++){if(l.nodeName&&aL.noData[l.nodeName.toLowerCase()]){continue}s=l[aL.expando];if(s){t=r[s]&&r[s][q];if(t&&t.events){for(var d in t.events){o[d]?aL.event.remove(l,d):aL.removeEvent(l,d,t.handle)}t.handle&&(t.handle.elem=null)}n?delete l[aL.expando]:l.removeAttribute&&l.removeAttribute(aL.expando),delete r[s]}}}});var b5=/alpha\([^)]*\)/i,b3=/opacity=([^)]*)/,b1=/-([a-z])/ig,a9=/([A-Z]|^ms)/g,a7=/^-?\d+(?:px)?$/i,a5=/^-?\d/,a3={position:"absolute",visibility:"hidden",display:"block"},a1=["Left","Right"],aZ=["Top","Bottom"],aY,aX,aW,aV=function(d,c){return c.toUpperCase()};aL.fn.css=function(b,d){if(arguments.length===2&&d===aP){return this}return aL.access(this,b,d,!0,function(f,h,g){return g!==aP?aL.style(f,h,g):aL.css(f,h)})},aL.extend({cssHooks:{opacity:{get:function(e,d){if(d){var f=aY(e,"opacity","opacity");return f===""?"1":f}return e.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":aL.support.cssFloat?"cssFloat":"styleFloat"},style:function(s,r,q,o){if(s&&s.nodeType!==3&&s.nodeType!==8&&s.style){var n,m=aL.camelCase(r),l=s.style,d=aL.cssHooks[m];r=aL.cssProps[m]||m;if(q===aP){if(d&&"get" in d&&(n=d.get(s,!1,o))!==aP){return n}return l[r]}if(typeof q==="number"&&isNaN(q)||q==null){return}typeof q==="number"&&!aL.cssNumber[m]&&(q+="px");if(!d||!("set" in d)||(q=d.set(s,q))!==aP){try{l[r]=q}catch(b){}}}},css:function(b,m,l){var k,j=aL.camelCase(m),d=aL.cssHooks[j];m=aL.cssProps[j]||j;if(d&&"get" in d&&(k=d.get(b,!0,l))!==aP){return k}if(aY){return aY(b,m,j)}},swap:function(g,f,k){var j={};for(var h in f){j[h]=g.style[h],g.style[h]=f[h]}k.call(g);for(h in f){g.style[h]=j[h]}},camelCase:function(b){return b.replace(b1,aV)}}),aL.curCSS=aL.css,aL.each(["height","width"],function(d,c){aL.cssHooks[c]={get:function(b,j,h){var g;if(j){b.offsetWidth!==0?g=aU(b,c,h):aL.swap(b,a3,function(){g=aU(b,c,h)});if(g<=0){g=aY(b,c,c),g==="0px"&&aW&&(g=aW(b,c,c));if(g!=null){return g===""||g==="auto"?"0px":g}}if(g<0||g==null){g=b.style[c];return g===""||g==="auto"?"0px":g}return typeof g==="string"?g:g+"px"}},set:function(f,e){if(!a7.test(e)){return e}e=parseFloat(e);if(e>=0){return e+"px"}}}}),aL.support.opacity||(aL.cssHooks.opacity={get:function(d,c){return b3.test((c&&d.currentStyle?d.currentStyle.filter:d.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(g,d){var k=g.style;k.zoom=1;var j=aL.isNaN(d)?"":"alpha(opacity="+d*100+")",h=k.filter||"";k.filter=b5.test(h)?h.replace(b5,j):k.filter+" "+j}}),aL(function(){aL.support.reliableMarginRight||(aL.cssHooks.marginRight={get:function(e,d){var f;aL.swap(e,{display:"inline-block"},function(){d?f=aY(e,"margin-right","marginRight"):f=e.style.marginRight});return f}})}),aN.defaultView&&aN.defaultView.getComputedStyle&&(aX=function(b,m,l){var k,j,d;l=l.replace(a9,"-$1").toLowerCase();if(!(j=b.ownerDocument.defaultView)){return aP}if(d=j.getComputedStyle(b,null)){k=d.getPropertyValue(l),k===""&&!aL.contains(b.ownerDocument.documentElement,b)&&(k=aL.style(b,l))}return k}),aN.documentElement.currentStyle&&(aW=function(h,g){var m,l=h.currentStyle&&h.currentStyle[g],k=h.runtimeStyle&&h.runtimeStyle[g],j=h.style;!a7.test(l)&&a5.test(l)&&(m=j.left,k&&(h.runtimeStyle.left=h.currentStyle.left),j.left=g==="fontSize"?"1em":l||0,l=j.pixelLeft+"px",j.left=m,k&&(h.runtimeStyle.left=k));return l===""?"auto":l}),aY=aX||aW,aL.expr&&aL.expr.filters&&(aL.expr.filters.hidden=function(e){var d=e.offsetWidth,f=e.offsetHeight;return d===0&&f===0||!aL.support.reliableHiddenOffsets&&(e.style.display||aL.css(e,"display"))==="none"},aL.expr.filters.visible=function(b){return !aL.expr.filters.hidden(b)});var aS=/%20/g,aQ=/\[\]$/,aO=/\r?\n/g,aM=/#.*$/,aK=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aI=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aG=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,aE=/^(?:GET|HEAD)$/,aC=/^\/\//,c0=/\?/,cZ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cY=/^(?:select|textarea)/i,cX=/\s+/,cW=/([?&])_=[^&]*/,cV=/(^|\-)([a-z])/g,cU=function(e,d,f){return d+f.toUpperCase()},cT=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,cS=aL.fn.load,cR={},cQ={},cP,cO;try{cP=aN.location.href}catch(cN){cP=aN.createElement("a"),cP.href="",cP=cP.href}cO=cT.exec(cP.toLowerCase())||[],aL.fn.extend({load:function(b,n,m){if(typeof b!=="string"&&cS){return cS.apply(this,arguments)}if(!this.length){return this}var l=b.indexOf(" ");if(l>=0){var k=b.slice(l,b.length);b=b.slice(0,l)}var j="GET";n&&(aL.isFunction(n)?(m=n,n=aP):typeof n==="object"&&(n=aL.param(n,aL.ajaxSettings.traditional),j="POST"));var d=this;aL.ajax({url:b,type:j,dataType:"html",data:n,complete:function(f,e,g){g=f.responseText,f.isResolved()&&(f.done(function(c){g=c}),d.html(k?aL("<div>").append(g.replace(cZ,"")).find(k):g)),m&&d.each(m,[g,e,f])}});return this},serialize:function(){return aL.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?aL.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||cY.test(this.nodeName)||aI.test(this.type))}).map(function(e,d){var f=aL(this).val();return f==null?null:aL.isArray(f)?aL.map(f,function(b,g){return{name:d.name,value:b.replace(aO,"\r\n")}}):{name:d.name,value:f.replace(aO,"\r\n")}}).get()}}),aL.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,c){aL.fn[c]=function(b){return this.bind(c,b)}}),aL.each(["get","post"],function(b,d){aL[d]=function(c,k,j,h){aL.isFunction(k)&&(h=h||j,j=k,k=aP);return aL.ajax({type:d,url:c,data:k,success:j,dataType:h})}}),aL.extend({getScript:function(b,d){return aL.get(b,aP,d,"script")},getJSON:function(e,d,f){return aL.get(e,d,f,"json")},ajaxSetup:function(e,d){d?aL.extend(!0,e,aL.ajaxSettings,d):(d=e,e=aL.extend(!0,aL.ajaxSettings,d));for(var f in {context:1,url:1}){f in d?e[f]=d[f]:f in aL.ajaxSettings&&(e[f]=aL.ajaxSettings[f])}return e},ajaxSettings:{url:cP,isLocal:aG.test(cO[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":aR.String,"text html":!0,"text json":aL.parseJSON,"text xml":aL.parseXML}},ajaxPrefilter:cM(cR),ajaxTransport:cM(cQ),ajax:function(T,S){function A(o,j,g,f){if(E!==2){E=2,G&&clearTimeout(G),H=aP,J=f||"",B.readyState=o?4:0;var e,u,s,r=g?cJ(R,B,g):aP,m,k;if(o>=200&&o<300||o===304){if(R.ifModified){if(m=B.getResponseHeader("Last-Modified")){aL.lastModified[L]=m}if(k=B.getResponseHeader("Etag")){aL.etag[L]=k}}if(o===304){j="notmodified",e=!0}else{try{u=cI(R,r),j="success",e=!0}catch(h){j="parsererror",s=h}}}else{s=j;if(!j||o){j="error",o<0&&(o=0)}}B.status=o,B.statusText=j,e?O.resolveWith(Q,[u,j,B]):O.rejectWith(Q,[B,j,s]),B.statusCode(M),M=aP,D&&P.trigger("ajax"+(e?"Success":"Error"),[B,R,e?u:s]),N.resolveWith(Q,[B,j]),D&&(P.trigger("ajaxComplete",[B,R]),--aL.active||aL.event.trigger("ajaxStop"))}}typeof T==="object"&&(S=T,T=aP),S=S||{};var R=aL.ajaxSetup({},S),Q=R.context||R,P=Q!==R&&(Q.nodeType||Q instanceof aL)?aL(Q):aL.event,O=aL.Deferred(),N=aL._Deferred(),M=R.statusCode||{},L,K={},J,I,H,G,F,E=0,D,C,B={readyState:0,setRequestHeader:function(e,c){E||(K[e.toLowerCase().replace(cV,cU)]=c);return this},getAllResponseHeaders:function(){return E===2?J:null},getResponseHeader:function(e){var f;if(E===2){if(!I){I={};while(f=aK.exec(J)){I[f[1].toLowerCase()]=f[2]}}f=I[e.toLowerCase()]}return f===aP?null:f},overrideMimeType:function(c){E||(R.mimeType=c);return this},abort:function(c){c=c||"abort",H&&H.abort(c),A(0,c);return this}};O.promise(B),B.success=B.done,B.error=B.fail,B.complete=N.done,B.statusCode=function(e){if(e){var c;if(E<2){for(c in e){M[c]=[M[c],e[c]]}}else{c=e[B.status],B.then(c,c)}}return this},R.url=((T||R.url)+"").replace(aM,"").replace(aC,cO[1]+"//"),R.dataTypes=aL.trim(R.dataType||"*").toLowerCase().split(cX),R.crossDomain==null&&(F=cT.exec(R.url.toLowerCase()),R.crossDomain=F&&(F[1]!=cO[1]||F[2]!=cO[2]||(F[3]||(F[1]==="http:"?80:443))!=(cO[3]||(cO[1]==="http:"?80:443)))),R.data&&R.processData&&typeof R.data!=="string"&&(R.data=aL.param(R.data,R.traditional)),cL(cR,R,S,B);if(E===2){return !1}D=R.global,R.type=R.type.toUpperCase(),R.hasContent=!aE.test(R.type),D&&aL.active++===0&&aL.event.trigger("ajaxStart");if(!R.hasContent){R.data&&(R.url+=(c0.test(R.url)?"&":"?")+R.data),L=R.url;if(R.cache===!1){var z=aL.now(),d=R.url.replace(cW,"$1_="+z);R.url=d+(d===R.url?(c0.test(R.url)?"&":"?")+"_="+z:"")}}if(R.data&&R.hasContent&&R.contentType!==!1||S.contentType){K["Content-Type"]=R.contentType}R.ifModified&&(L=L||R.url,aL.lastModified[L]&&(K["If-Modified-Since"]=aL.lastModified[L]),aL.etag[L]&&(K["If-None-Match"]=aL.etag[L])),K.Accept=R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", */*; q=0.01":""):R.accepts["*"];for(C in R.headers){B.setRequestHeader(C,R.headers[C])}if(R.beforeSend&&(R.beforeSend.call(Q,B,R)===!1||E===2)){B.abort();return !1}for(C in {success:1,error:1,complete:1}){B[C](R[C])}H=cL(cQ,R,S,B);if(H){B.readyState=1,D&&P.trigger("ajaxSend",[B,R]),R.async&&R.timeout>0&&(G=setTimeout(function(){B.abort("timeout")},R.timeout));try{E=1,H.send(K,A)}catch(b){status<2?A(-1,b):aL.error(b)}}else{A(-1,"No Transport")}return B},param:function(b,k){var j=[],h=function(e,c){c=aL.isFunction(c)?c():c,j[j.length]=encodeURIComponent(e)+"="+encodeURIComponent(c)};k===aP&&(k=aL.ajaxSettings.traditional);if(aL.isArray(b)||b.jquery&&!aL.isPlainObject(b)){aL.each(b,function(){h(this.name,this.value)})}else{for(var d in b){cK(d,b[d],k,h)}}return j.join("&").replace(aS,"+")}}),aL.extend({active:0,lastModified:{},etag:{}});var cF=aL.now(),cD=/(\=)\?(&|$)|\?\?/i;aL.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return aL.expando+"_"+cF++}}),aL.ajaxPrefilter("json jsonp",function(w,v,u){var t=typeof w.data==="string";if(w.dataTypes[0]==="jsonp"||v.jsonpCallback||v.jsonp!=null||w.jsonp!==!1&&(cD.test(w.url)||t&&cD.test(w.data))){var s,r=w.jsonpCallback=aL.isFunction(w.jsonpCallback)?w.jsonpCallback():w.jsonpCallback,q=aR[r],o=w.url,n=w.data,d="$1"+r+"$2",a=function(){aR[r]=q,s&&aL.isFunction(q)&&aR[r](s[0])};w.jsonp!==!1&&(o=o.replace(cD,d),w.url===o&&(t&&(n=n.replace(cD,d)),w.data===n&&(o+=(/\?/.test(o)?"&":"?")+w.jsonp+"="+r))),w.url=o,w.data=n,aR[r]=function(b){s=[b]},u.then(a,a),w.converters["script json"]=function(){s||aL.error(r+" was not called");return s[0]},w.dataTypes[0]="json";return"script"}}),aL.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){aL.globalEval(b);return b}}}),aL.ajaxPrefilter("script",function(b){b.cache===aP&&(b.cache=!1),b.crossDomain&&(b.type="GET",b.global=!1)}),aL.ajaxTransport("script",function(b){if(b.crossDomain){var f,c=aN.head||aN.getElementsByTagName("head")[0]||aN.documentElement;return{send:function(d,a){f=aN.createElement("script"),f.async="async",b.scriptCharset&&(f.charset=b.scriptCharset),f.src=b.url,f.onload=f.onreadystatechange=function(e,g){if(!f.readyState||/loaded|complete/.test(f.readyState)){f.onload=f.onreadystatechange=null,c&&f.parentNode&&c.removeChild(f),f=aP,g||a(200,"success")}},c.insertBefore(f,c.firstChild)},abort:function(){f&&f.onload(0,1)}}}});var cB=aL.now(),cz,cx;aL.ajaxSettings.xhr=aR.ActiveXObject?function(){return !this.isLocal&&cu()||c2()}:cu,cx=aL.ajaxSettings.xhr(),aL.support.ajax=!!cx,aL.support.cors=cx&&"withCredentials" in cx,cx=aP,aL.support.ajax&&aL.ajaxTransport(function(b){if(!b.crossDomain||aL.support.cors){var d;return{send:function(n,m){var l=b.xhr(),k,c;b.username?l.open(b.type,b.url,b.async,b.username,b.password):l.open(b.type,b.url,b.async);if(b.xhrFields){for(c in b.xhrFields){l[c]=b.xhrFields[c]}}b.mimeType&&l.overrideMimeType&&l.overrideMimeType(b.mimeType),!b.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");try{for(c in n){l.setRequestHeader(c,n[c])}}catch(a){}l.send(b.hasContent&&b.data||null),d=function(v,u){var t,s,r,q,h;try{if(d&&(u||l.readyState===4)){d=aP,k&&(l.onreadystatechange=aL.noop,delete cz[k]);if(u){l.readyState!==4&&l.abort()}else{t=l.status,r=l.getAllResponseHeaders(),q={},h=l.responseXML,h&&h.documentElement&&(q.xml=h),q.text=l.responseText;try{s=l.statusText}catch(g){s=""}t||!b.isLocal||b.crossDomain?t===1223&&(t=204):t=q.text?200:404}}}catch(f){u||m(-1,f)}q&&m(t,s,q,r)},b.async&&l.readyState!==4?(cz||(cz={},cw()),k=cB++,l.onreadystatechange=cz[k]=d):d()},abort:function(){d&&d(0,1)}}}});var cn={},av=/^(?:toggle|show|hide)$/,at=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,aq,ao=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];aL.fn.extend({show:function(j,d,o){var n,m;if(j||j===0){return this.animate(an("show",3),j,d,o)}for(var l=0,k=this.length;l<k;l++){n=this[l],m=n.style.display,!aL._data(n,"olddisplay")&&m==="none"&&(m=n.style.display=""),m===""&&aL.css(n,"display")==="none"&&aL._data(n,"olddisplay",al(n.nodeName))}for(l=0;l<k;l++){n=this[l],m=n.style.display;if(m===""||m==="none"){n.style.display=aL._data(n,"olddisplay")||""}}return this},hide:function(h,d,m){if(h||h===0){return this.animate(an("hide",3),h,d,m)}for(var l=0,k=this.length;l<k;l++){var j=aL.css(this[l],"display");j!=="none"&&!aL._data(this[l],"olddisplay")&&aL._data(this[l],"olddisplay",j)}for(l=0;l<k;l++){this[l].style.display="none"}return this},_toggle:aL.fn.toggle,toggle:function(f,d,h){var g=typeof f==="boolean";aL.isFunction(f)&&aL.isFunction(d)?this._toggle.apply(this,arguments):f==null||g?this.each(function(){var a=g?f:aL(this).is(":hidden");aL(this)[a?"show":"hide"]()}):this.animate(an("toggle",3),f,d,h);return this},fadeTo:function(f,e,h,g){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},f,h,g)},animate:function(g,d,k,j){var h=aL.speed(d,k,j);if(aL.isEmptyObject(g)){return this.each(h.complete)}return this[h.queue===!1?"each":"queue"](function(){var a=aL.extend({},h),q,o=this.nodeType===1,n=o&&aL(this).is(":hidden"),m=this;for(q in g){var l=aL.camelCase(q);q!==l&&(g[l]=g[q],delete g[q],q=l);if(g[q]==="hide"&&n||g[q]==="show"&&!n){return a.complete.call(this)}if(o&&(q==="height"||q==="width")){a.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(aL.css(this,"display")==="inline"&&aL.css(this,"float")==="none"){if(aL.support.inlineBlockNeedsLayout){var f=al(this.nodeName);f==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else{this.style.display="inline-block"}}}aL.isArray(g[q])&&((a.specialEasing=a.specialEasing||{})[q]=g[q][1],g[q]=g[q][0])}a.overflow!=null&&(this.style.overflow="hidden"),a.curAnim=aL.extend({},g),aL.each(g,function(w,v){var u=new aL.fx(m,a,w);if(av.test(v)){u[v==="toggle"?n?"show":"hide":v](g)}else{var t=at.exec(v),s=u.cur();if(t){var r=parseFloat(t[2]),b=t[3]||(aL.cssNumber[w]?"":"px");b!=="px"&&(aL.style(m,w,(r||1)+b),s=(r||1)/u.cur()*s,aL.style(m,w,s+b)),t[1]&&(r=(t[1]==="-="?-1:1)*r+s),u.custom(s,r,b)}else{u.custom(s,v,"")}}});return !0})},stop:function(e,d){var f=aL.timers;e&&this.queue([]),this.each(function(){for(var b=f.length-1;b>=0;b--){f[b].elem===this&&(d&&f[b](!0),f.splice(b,1))}}),d||this.dequeue();return this}}),aL.each({slideDown:an("show",1),slideUp:an("hide",1),slideToggle:an("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,c){aL.fn[d]=function(b,f,e){return this.animate(c,b,f,e)}}),aL.extend({speed:function(f,d,h){var g=f&&typeof f==="object"?aL.extend({},f):{complete:h||!h&&d||aL.isFunction(f)&&f,duration:f,easing:h&&d||d&&!aL.isFunction(d)&&d};g.duration=aL.fx.off?0:typeof g.duration==="number"?g.duration:g.duration in aL.fx.speeds?aL.fx.speeds[g.duration]:aL.fx.speeds._default,g.old=g.complete,g.complete=function(){g.queue!==!1&&aL(this).dequeue(),aL.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(f,e,h,g){return h+g*f},swing:function(f,e,h,g){return(-Math.cos(f*Math.PI)/2+0.5)*g+h}},timers:[],fx:function(e,d,f){this.options=d,this.elem=e,this.prop=f,d.orig||(d.orig={})}}),aL.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(aL.fx.step[this.prop]||aL.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var d,c=aL.css(this.elem,this.prop);return isNaN(d=parseFloat(c))?!c||c==="auto"?0:c:d},custom:function(h,d,m){function j(b){return l.step(b)}var l=this,k=aL.fx;this.startTime=aL.now(),this.start=h,this.end=d,this.unit=m||this.unit||(aL.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,j.elem=this.elem,j()&&aL.timers.push(j)&&!aq&&(aq=setInterval(k.tick,k.interval))},show:function(){this.options.orig[this.prop]=aL.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),aL(this.elem).show()},hide:function(){this.options.orig[this.prop]=aL.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(u){var t=aL.now(),s=!0;if(u||t>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var r in this.options.curAnim){this.options.curAnim[r]!==!0&&(s=!1)}if(s){if(this.options.overflow!=null&&!aL.support.shrinkWrapBlocks){var q=this.elem,o=this.options;aL.each(["","X","Y"],function(e,c){q.style["overflow"+c]=o.overflow[e]})}this.options.hide&&aL(this.elem).hide();if(this.options.hide||this.options.show){for(var n in this.options.curAnim){aL.style(this.elem,n,this.options.orig[n])}}this.options.complete.call(this.elem)}return !1}var m=t-this.startTime;this.state=m/this.options.duration;var l=this.options.specialEasing&&this.options.specialEasing[this.prop],d=this.options.easing||(aL.easing.swing?"swing":"linear");this.pos=aL.easing[l||d](this.state,m,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return !0}},aL.extend(aL.fx,{tick:function(){var d=aL.timers;for(var c=0;c<d.length;c++){d[c]()||d.splice(c--,1)}d.length||aL.fx.stop()},interval:13,stop:function(){clearInterval(aq),aq=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){aL.style(b.elem,"opacity",b.now)},_default:function(b){b.elem.style&&b.elem.style[b.prop]!=null?b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit:b.elem[b.prop]=b.now}}}),aL.expr&&aL.expr.filters&&(aL.expr.filters.animated=function(b){return aL.grep(aL.timers,function(a){return b===a.elem}).length});var ai=/^t(?:able|d|h)$/i,ag=/^(?:body|html)$/i;"getBoundingClientRect" in aN.documentElement?aL.fn.offset=function(C){var B=this[0],A;if(C){return this.each(function(a){aL.offset.setOffset(this,C,a)})}if(!B||!B.ownerDocument){return null}if(B===B.ownerDocument.body){return aL.offset.bodyOffset(B)}try{A=B.getBoundingClientRect()}catch(z){}var y=B.ownerDocument,x=y.documentElement;if(!A||!aL.contains(x,B)){return A?{top:A.top,left:A.left}:{top:0,left:0}}var w=y.body,v=af(y),u=x.clientTop||w.clientTop||0,t=x.clientLeft||w.clientLeft||0,s=v.pageYOffset||aL.support.boxModel&&x.scrollTop||w.scrollTop,r=v.pageXOffset||aL.support.boxModel&&x.scrollLeft||w.scrollLeft,q=A.top+s-u,d=A.left+r-t;return{top:q,left:d}}:aL.fn.offset=function(y){var x=this[0];if(y){return this.each(function(a){aL.offset.setOffset(this,y,a)})}if(!x||!x.ownerDocument){return null}if(x===x.ownerDocument.body){return aL.offset.bodyOffset(x)}aL.offset.initialize();var w,v=x.offsetParent,u=x,t=x.ownerDocument,s=t.documentElement,r=t.body,q=t.defaultView,o=q?q.getComputedStyle(x,null):x.currentStyle,n=x.offsetTop,d=x.offsetLeft;while((x=x.parentNode)&&x!==r&&x!==s){if(aL.offset.supportsFixedPosition&&o.position==="fixed"){break}w=q?q.getComputedStyle(x,null):x.currentStyle,n-=x.scrollTop,d-=x.scrollLeft,x===v&&(n+=x.offsetTop,d+=x.offsetLeft,aL.offset.doesNotAddBorder&&(!aL.offset.doesAddBorderForTableAndCells||!ai.test(x.nodeName))&&(n+=parseFloat(w.borderTopWidth)||0,d+=parseFloat(w.borderLeftWidth)||0),u=v,v=x.offsetParent),aL.offset.subtractsBorderForOverflowNotVisible&&w.overflow!=="visible"&&(n+=parseFloat(w.borderTopWidth)||0,d+=parseFloat(w.borderLeftWidth)||0),o=w}if(o.position==="relative"||o.position==="static"){n+=r.offsetTop,d+=r.offsetLeft}aL.offset.supportsFixedPosition&&o.position==="fixed"&&(n+=Math.max(s.scrollTop,r.scrollTop),d+=Math.max(s.scrollLeft,r.scrollLeft));return{top:n,left:d}},aL.offset={initialize:function(){var d=aN.body,c=aN.createElement("div"),q,o,n,m,l=parseFloat(aL.css(d,"marginTop"))||0,k="<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>";aL.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),c.innerHTML=k,d.insertBefore(c,d.firstChild),q=c.firstChild,o=q.firstChild,m=q.nextSibling.firstChild.firstChild,this.doesNotAddBorder=o.offsetTop!==5,this.doesAddBorderForTableAndCells=m.offsetTop===5,o.style.position="fixed",o.style.top="20px",this.supportsFixedPosition=o.offsetTop===20||o.offsetTop===15,o.style.position=o.style.top="",q.style.overflow="hidden",q.style.position="relative",this.subtractsBorderForOverflowNotVisible=o.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==l,d.removeChild(c),aL.offset.initialize=aL.noop},bodyOffset:function(e){var d=e.offsetTop,f=e.offsetLeft;aL.offset.initialize(),aL.offset.doesNotIncludeMarginInBodyOffset&&(d+=parseFloat(aL.css(e,"marginTop"))||0,f+=parseFloat(aL.css(e,"marginLeft"))||0);return{top:d,left:f}},setOffset:function(A,z,y){var x=aL.css(A,"position");x==="static"&&(A.style.position="relative");var w=aL(A),v=w.offset(),u=aL.css(A,"top"),t=aL.css(A,"left"),s=(x==="absolute"||x==="fixed")&&aL.inArray("auto",[u,t])>-1,r={},q={},o,d;s&&(q=w.position()),o=s?q.top:parseInt(u,10)||0,d=s?q.left:parseInt(t,10)||0,aL.isFunction(z)&&(z=z.call(A,y,v)),z.top!=null&&(r.top=z.top-v.top+o),z.left!=null&&(r.left=z.left-v.left+d),"using" in z?z.using.call(A,r):w.css(r)}},aL.fn.extend({position:function(){if(!this[0]){return null}var f=this[0],d=this.offsetParent(),h=this.offset(),g=ag.test(d[0].nodeName)?{top:0,left:0}:d.offset();h.top-=parseFloat(aL.css(f,"marginTop"))||0,h.left-=parseFloat(aL.css(f,"marginLeft"))||0,g.top+=parseFloat(aL.css(d[0],"borderTopWidth"))||0,g.left+=parseFloat(aL.css(d[0],"borderLeftWidth"))||0;return{top:h.top-g.top,left:h.left-g.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||aN.body;while(b&&(!ag.test(b.nodeName)&&aL.css(b,"position")==="static")){b=b.offsetParent}return b})}}),aL.each(["Left","Top"],function(b,f){var d="scroll"+f;aL.fn[d]=function(h){var e=this[0],a;if(!e){return null}if(h!==aP){return this.each(function(){a=af(this),a?a.scrollTo(b?aL(a).scrollLeft():h,b?h:aL(a).scrollTop()):this[d]=h})}a=af(e);return a?"pageXOffset" in a?a[b?"pageYOffset":"pageXOffset"]:aL.support.boxModel&&a.document.documentElement[d]||a.document.body[d]:e[d]}}),aL.each(["Height","Width"],function(b,f){var d=f.toLowerCase();aL.fn["inner"+f]=function(){return this[0]?parseFloat(aL.css(this[0],d,"padding")):null},aL.fn["outer"+f]=function(c){return this[0]?parseFloat(aL.css(this[0],d,c?"margin":"border")):null},aL.fn[d]=function(c){var l=this[0];if(!l){return c==null?null:this}if(aL.isFunction(c)){return this.each(function(a){var g=aL(this);g[d](c.call(this,a,g[d]()))})}if(aL.isWindow(l)){var k=l.document.documentElement["client"+f];return l.document.compatMode==="CSS1Compat"&&k||l.document.body["client"+f]||k}if(l.nodeType===9){return Math.max(l.documentElement["client"+f],l.body["scroll"+f],l.documentElement["scroll"+f],l.body["offset"+f],l.documentElement["offset"+f])}if(c===aP){var j=aL.css(l,d),e=parseFloat(j);return aL.isNaN(e)?j:e}return this.css(d,typeof c==="string"?c:c+"px")}}),aR.jQuery=aR.$=aL})(window);(function($){$.fn.carouFredSel=function(o){if(this.length==0){return log("No element selected.")}if(this.length>1){return this.each(function(){$(this).carouFredSel(o)})}this.init=function(o){if(typeof o!="object"){o={}}if(typeof o.scroll=="number"){if(o.scroll<=50){o.scroll={items:o.scroll}}else{o.scroll={duration:o.scroll}}}else{if(typeof o.scroll=="string"){o.scroll={easing:o.scroll}}}if(typeof o.items=="number"){o.items={visible:o.items}}else{if(typeof o.items=="string"){o.items={visible:o.items,width:o.items,height:o.items}}}opts=$.extend(true,{},$.fn.carouFredSel.defaults,o);opts.padding=getPadding(opts.padding);opts.usePadding=(opts.padding[0]==0&&opts.padding[1]==0&&opts.padding[2]==0&&opts.padding[3]==0)?false:true;direction=(opts.direction=="up"||opts.direction=="left")?"next":"prev";if(opts.direction=="right"||opts.direction=="left"){opts.dimentions=["width","outerWidth","height","outerHeight","left","top","marginRight","innerWidth"]}else{opts.dimentions=["height","outerHeight","width","outerWidth","top","left","marginBottom","innerHeight"];opts.padding=[opts.padding[3],opts.padding[2],opts.padding[1],opts.padding[0]]}if(opts[opts.dimentions[2]]=="auto"){opts[opts.dimentions[2]]=getSizes(opts,getItems($cfs))[1];opts.items[opts.dimentions[2]]="auto"}else{if(!opts.items[opts.dimentions[2]]){opts.items[opts.dimentions[2]]=getItems($cfs)[opts.dimentions[3]](true)}}if(!opts.items[opts.dimentions[0]]){opts.items[opts.dimentions[0]]=getItems($cfs)[opts.dimentions[1]](true)}if(opts.items.visible=="variable"){if(typeof opts[opts.dimentions[0]]=="number"){opts.maxDimention=opts[opts.dimentions[0]];opts[opts.dimentions[0]]=null}else{opts.maxDimention=$wrp.parent()[opts.dimentions[7]]()}if(typeof opts.items[opts.dimentions[0]]=="number"){opts.items.visible=Math.floor(opts.maxDimention/opts.items[opts.dimentions[0]])}else{varnumvisitem=true;opts.items.visible=0}}if(typeof opts.items.minimum!="number"){opts.items.minimum=opts.items.visible}if(typeof opts.scroll.items!="number"){opts.scroll.items=opts.items.visible}if(typeof opts.scroll.duration!="number"){opts.scroll.duration=500}opts.auto=getNaviObject(opts.auto,false,true);opts.prev=getNaviObject(opts.prev);opts.next=getNaviObject(opts.next);opts.pagination=getNaviObject(opts.pagination,true);opts.auto=$.extend({},opts.scroll,opts.auto);opts.prev=$.extend({},opts.scroll,opts.prev);opts.next=$.extend({},opts.scroll,opts.next);opts.pagination=$.extend({},opts.scroll,opts.pagination);if(typeof opts.pagination.keys!="boolean"){opts.pagination.keys=false}if(typeof opts.pagination.anchorBuilder!="function"){opts.pagination.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder}if(typeof opts.auto.play!="boolean"){opts.auto.play=true}if(typeof opts.auto.nap!="boolean"){opts.auto.nap=true}if(typeof opts.auto.delay!="number"){opts.auto.delay=0}if(typeof opts.auto.pauseDuration!="number"){opts.auto.pauseDuration=(opts.auto.duration<10)?2500:opts.auto.duration*5}};this.build=function(){$wrp.css({position:"relative",overflow:"hidden"});$cfs.data("cfs_origCss",{width:$cfs.css("width"),height:$cfs.css("height"),position:$cfs.css("position"),top:$cfs.css("top"),left:$cfs.css("left")}).css({position:"absolute"});if(opts.usePadding){getItems($cfs).each(function(){var m=parseInt($(this).css(opts.dimentions[6]));if(isNaN(m)){m=0}$(this).data("cfs_origCssMargin",m)})}showNavi(opts,totalItems)};this.bind_events=function(){$cfs.bind("pause",function(e,g){if(typeof g!="boolean"){g=false}if(g){pausedGlobal=true}if(autoTimeout!=null){clearTimeout(autoTimeout)}if(autoInterval!=null){clearInterval(autoInterval)}});$cfs.bind("play",function(e,d,f,g){$cfs.trigger("pause");if(opts.auto.play){if(typeof g!="boolean"){if(typeof f=="boolean"){g=f}else{if(typeof d=="boolean"){g=d}else{g=false}}}if(typeof f!="number"){if(typeof d=="number"){f=d}else{f=0}}if(d!="prev"&&d!="next"){d=direction}if(g){pausedGlobal=false}if(pausedGlobal){return}autoTimeout=setTimeout(function(){if($cfs.is(":animated")){$cfs.trigger("play",d)}else{pauseTimePassed=0;$cfs.trigger(d,opts.auto)}},opts.auto.pauseDuration+f-pauseTimePassed);if(opts.auto.pauseOnHover==="resume"){autoInterval=setInterval(function(){pauseTimePassed+=100},100)}}});if(varnumvisitem){$cfs.bind("prev",function(e,sO,nI){if($cfs.is(":animated")){return}if(pausedGlobal){return}var items=getItems($cfs),total=0,x=0;if(typeof sO=="number"){nI=sO}if(typeof nI!="number"){for(var a=items.length-1;a>=0;a--){current=items.filter(":eq("+a+")")[opts.dimentions[1]](true);if(total+current>opts.maxDimention){break}total+=current;x++}nI=x}for(var a=items.length-nI;a<items.length;a++){current=items.filter(":eq("+a+")")[opts.dimentions[1]](true);if(total+current>opts.maxDimention){break}total+=current;if(a==items.length-1){a=0}x++}opts.items.visible=x;$cfs.trigger("scrollPrev",[sO,nI])});$cfs.bind("next",function(e,sO,nI){if($cfs.is(":animated")){return}if(pausedGlobal){return}var items=getItems($cfs),total=0,x=0;if(typeof sO=="number"){nI=sO}if(typeof nI!="number"){nI=opts.items.visible}for(var a=nI;a<items.length;a++){current=items.filter(":eq("+a+")")[opts.dimentions[1]](true);if(total+current>opts.maxDimention){break}total+=current;if(a==items.length-1){a=0}x++}opts.items.visible=x;$cfs.trigger("scrollNext",[sO,nI])}).trigger("next",{duration:0})}else{$cfs.bind("prev",function(e,sO,nI){$cfs.trigger("scrollPrev",[sO,nI])});$cfs.bind("next",function(e,sO,nI){$cfs.trigger("scrollNext",[sO,nI])})}$cfs.bind("scrollPrev",function(e,sO,nI){if($cfs.is(":animated")){return}if(pausedGlobal){return}if(opts.items.minimum>=totalItems){return log("Not enough items: not scrolling")}if(typeof sO=="number"){nI=sO}if(typeof sO!="object"){sO=opts.prev}if(typeof nI!="number"){nI=sO.items}if(typeof nI!="number"){return log("Not a valid number: not scrolling")}if(!opts.circular){var nulItem=totalItems-firstItem;if(nulItem-nI<0){nI=nulItem}if(firstItem==0){nI=0}}firstItem+=nI;if(firstItem>=totalItems){firstItem-=totalItems}if(!opts.circular){if(firstItem==0&&nI!=0&&opts.prev.onEnd){opts.prev.onEnd()}if(opts.infinite){if(nI==0){$cfs.trigger("next",totalItems-opts.items.visible);return false}}else{if(firstItem==0&&opts.prev.button){opts.prev.button.addClass("disabled")}if(opts.next.button){opts.next.button.removeClass("disabled")}}}if(nI==0){return false}getItems($cfs,":gt("+(totalItems-nI-1)+")").prependTo($cfs);if(totalItems<opts.items.visible+nI){getItems($cfs,":lt("+((opts.items.visible+nI)-totalItems)+")").clone(true).appendTo($cfs)}var c_itm=getCurrentItems($cfs,opts,nI),l_cur=getItems($cfs,":nth("+(nI-1)+")"),l_old=c_itm[1].filter(":last"),l_new=c_itm[0].filter(":last");if(opts.usePadding){l_old.css(opts.dimentions[6],l_old.data("cfs_origCssMargin"))}var i_siz=getSizes(opts,getItems($cfs,":lt("+nI+")")),w_siz=mapWrapperSizes(getSizes(opts,c_itm[0],true),opts);if(opts.usePadding){l_old.css(opts.dimentions[6],l_old.data("cfs_origCssMargin")+opts.padding[1])}var a_cfs={},a_new={},a_cur={},a_dur=sO.duration;if(a_dur=="auto"){a_dur=opts.scroll.duration/opts.scroll.items*nI}else{if(a_dur<=0){a_dur=0}else{if(a_dur<10){a_dur=i_siz[0]/a_dur}}}if(sO.onBefore){sO.onBefore(c_itm[1],c_itm[0],w_siz,a_dur)}if(opts.usePadding){var new_m=opts.padding[3];a_cur[opts.dimentions[6]]=l_cur.data("cfs_origCssMargin");a_new[opts.dimentions[6]]=l_new.data("cfs_origCssMargin")+opts.padding[1];l_cur.css(opts.dimentions[6],l_cur.data("cfs_origCssMargin")+opts.padding[3]);l_cur.stop().animate(a_cur,{duration:a_dur,easing:sO.easing});l_new.stop().animate(a_new,{duration:a_dur,easing:sO.easing})}else{var new_m=0}a_cfs[opts.dimentions[4]]=new_m;if((typeof opts[opts.dimentions[0]]!="number"&&typeof opts.items[opts.dimentions[0]]!="number")||(typeof opts[opts.dimentions[2]]!="number"&&typeof opts.items[opts.dimentions[2]]!="number")){$wrp.stop().animate(w_siz,{duration:a_dur,easing:sO.easing})}$cfs.data("cfs_numItems",nI).data("cfs_slideObj",sO).data("cfs_oldItems",c_itm[1]).data("cfs_newItems",c_itm[0]).data("cfs_wrapSize",w_siz).css(opts.dimentions[4],-i_siz[0]).animate(a_cfs,{duration:a_dur,easing:sO.easing,complete:function(){if($cfs.data("cfs_slideObj").onAfter){$cfs.data("cfs_slideObj").onAfter($cfs.data("cfs_oldItems"),$cfs.data("cfs_newItems"),$cfs.data("cfs_wrapSize"))}if(totalItems<opts.items.visible+$cfs.data("cfs_numItems")){getItems($cfs,":gt("+(totalItems-1)+")").remove()}var l_itm=getItems($cfs,":nth("+(opts.items.visible+$cfs.data("cfs_numItems")-1)+")");if(opts.usePadding){l_itm.css(opts.dimentions[6],l_itm.data("cfs_origCssMargin"))}}});$cfs.trigger("updatePageStatus").trigger("play",a_dur)});$cfs.bind("scrollNext",function(e,sO,nI){if($cfs.is(":animated")){return}if(pausedGlobal){return}if(opts.items.minimum>=totalItems){return log("Not enough items: not scrolling")}if(typeof sO=="number"){nI=sO}if(typeof sO!="object"){sO=opts.next}if(typeof nI!="number"){nI=sO.items}if(typeof nI!="number"){return log("Not a valid number: not scrolling")}if(!opts.circular){if(firstItem==0){if(nI>totalItems-opts.items.visible){nI=totalItems-opts.items.visible}}else{if(firstItem-nI<opts.items.visible){nI=firstItem-opts.items.visible}}}firstItem-=nI;if(firstItem<0){firstItem+=totalItems}if(!opts.circular){if(firstItem==opts.items.visible&&nI!=0&&opts.next.onEnd){opts.next.onEnd()}if(opts.infinite){if(nI==0){$cfs.trigger("prev",totalItems-opts.items.visible);return false}}else{if(firstItem==opts.items.visible&&opts.next.button){opts.next.button.addClass("disabled")}if(opts.prev.button){opts.prev.button.removeClass("disabled")}}}if(nI==0){return false}if(totalItems<opts.items.visible+nI){getItems($cfs,":lt("+((opts.items.visible+nI)-totalItems)+")").clone(true).appendTo($cfs)}var c_itm=getCurrentItems($cfs,opts,nI),l_cur=getItems($cfs,":nth("+(nI-1)+")"),l_old=c_itm[0].filter(":last"),l_new=c_itm[1].filter(":last");if(opts.usePadding){l_old.css(opts.dimentions[6],l_old.data("cfs_origCssMargin"));l_new.css(opts.dimentions[6],l_new.data("cfs_origCssMargin"))}var i_siz=getSizes(opts,getItems($cfs,":lt("+nI+")")),w_siz=mapWrapperSizes(getSizes(opts,c_itm[1],true),opts);if(opts.usePadding){l_old.css(opts.dimentions[6],l_old.data("cfs_origCssMargin")+opts.padding[1]);l_new.css(opts.dimentions[6],l_new.data("cfs_origCssMargin")+opts.padding[1])}var a_cfs={},a_old={},a_cur={},a_dur=sO.duration;if(a_dur=="auto"){a_dur=opts.scroll.duration/opts.scroll.items*nI}else{if(a_dur<=0){a_dur=0}else{if(a_dur<10){a_dur=i_siz[0]/a_dur}}}if(sO.onBefore){sO.onBefore(c_itm[0],c_itm[1],w_siz,a_dur)}a_cfs[opts.dimentions[4]]=-i_siz[0];if(opts.usePadding){a_old[opts.dimentions[6]]=l_old.data("cfs_origCssMargin");a_cur[opts.dimentions[6]]=l_cur.data("cfs_origCssMargin")+opts.padding[3];l_new.css(opts.dimentions[6],l_new.data("cfs_origCssMargin")+opts.padding[1]);l_old.stop().animate(a_old,{duration:a_dur,easing:sO.easing});l_cur.stop().animate(a_cur,{duration:a_dur,easing:sO.easing})}if((typeof opts[opts.dimentions[0]]!="number"&&typeof opts.items[opts.dimentions[0]]!="number")||(typeof opts[opts.dimentions[2]]!="number"&&typeof opts.items[opts.dimentions[2]]!="number")){$wrp.stop().animate(w_siz,{duration:a_dur,easing:sO.easing})}$cfs.data("cfs_numItems",nI).data("cfs_slideObj",sO).data("cfs_oldItems",c_itm[0]).data("cfs_newItems",c_itm[1]).data("cfs_wrapSize",w_siz).animate(a_cfs,{duration:a_dur,easing:sO.easing,complete:function(){if($cfs.data("cfs_slideObj").onAfter){$cfs.data("cfs_slideObj").onAfter($cfs.data("cfs_oldItems"),$cfs.data("cfs_newItems"),$cfs.data("cfs_wrapSize"))}if(totalItems<opts.items.visible+$cfs.data("cfs_numItems")){getItems($cfs,":gt("+(totalItems-1)+")").remove()}var org_m=(opts.usePadding)?opts.padding[3]:0;$cfs.css(opts.dimentions[4],org_m);var l_itm=getItems($cfs,":lt("+$cfs.data("cfs_numItems")+")").appendTo($cfs).filter(":last");if(opts.usePadding){l_itm.css(opts.dimentions[6],l_itm.data("cfs_origCssMargin"))}}});$cfs.trigger("updatePageStatus").trigger("play",a_dur)});$cfs.bind("slideTo",function(e,num,dev,org,obj){if($cfs.is(":animated")){return false}num=getItemIndex(num,dev,org,firstItem,totalItems,$cfs);if(num==0){return false}if(typeof obj!="object"){obj=false}if(opts.circular){if(num<totalItems/2){$cfs.trigger("next",[obj,num])}else{$cfs.trigger("prev",[obj,totalItems-num])}}else{if(firstItem==0||firstItem>num){$cfs.trigger("next",[obj,num])}else{$cfs.trigger("prev",[obj,totalItems-num])}}}).bind("insertItem",function(e,itm,num,org,dev){if(typeof itm=="object"&&typeof itm.jquery=="undefined"){itm=$(itm)}if(typeof itm=="string"){itm=$(itm)}if(typeof itm!="object"||typeof itm.jquery=="undefined"||itm.length==0){return log("Not a valid object.")}if(typeof num=="undefined"||num=="end"){$cfs.append(itm)}else{num=getItemIndex(num,dev,org,firstItem,totalItems,$cfs);var $cit=getItems($cfs,":nth("+num+")");if($cit.length){if(num<=firstItem){firstItem+=itm.length}$cit.before(itm)}else{$cfs.append(itm)}}totalItems=getItems($cfs).length;link_anchors("",".caroufredsel",$cfs);setSizes($cfs,opts);showNavi(opts,totalItems);$cfs.trigger("updatePageStatus",true)}).bind("removeItem",function(e,num,org,dev){if(typeof num=="undefined"||num=="end"){getItems($cfs,":last").remove()}else{num=getItemIndex(num,dev,org,firstItem,totalItems,$cfs);var $cit=getItems($cfs,":nth("+num+")");if($cit.length){if(num<firstItem){firstItem-=$cit.length}$cit.remove()}}totalItems=getItems($cfs).length;link_anchors("",".caroufredsel",$cfs);setSizes($cfs,opts);showNavi(opts,totalItems);$cfs.trigger("updatePageStatus",true)}).bind("updatePageStatus",function(e,bpa){if(!opts.pagination.container){return false}if(typeof bpa=="boolean"&&bpa){getItems(opts.pagination.container).remove();for(var a=0;a<Math.ceil(totalItems/opts.items.visible);a++){opts.pagination.container.append(opts.pagination.anchorBuilder(a+1))}getItems(opts.pagination.container).unbind("click").each(function(a){$(this).click(function(e){e.preventDefault();$cfs.trigger("slideTo",[a*opts.items.visible,0,true,opts.pagination])})})}var nr=(firstItem==0)?0:Math.round((totalItems-firstItem)/opts.items.visible);getItems(opts.pagination.container).removeClass("selected").filter(":nth("+nr+")").addClass("selected")})};this.bind_buttons=function(){if(opts.auto.pauseOnHover&&opts.auto.play){$wrp.hover(function(){$cfs.trigger("pause")},function(){$cfs.trigger("play")})}if(opts.prev.button){opts.prev.button.click(function(e){$cfs.trigger("prev");e.preventDefault()});if(opts.prev.pauseOnHover&&opts.auto.play){opts.prev.button.hover(function(){$cfs.trigger("pause")},function(){$cfs.trigger("play")})}if(!opts.circular&&!opts.infinite){opts.prev.button.addClass("disabled")}}if($.fn.mousewheel){if(opts.prev.mousewheel){$wrp.mousewheel(function(e,delta){if(delta>0){e.preventDefault();num=(typeof opts.prev.mousewheel=="number")?opts.prev.mousewheel:"";$cfs.trigger("prev",num)}})}if(opts.next.mousewheel){$wrp.mousewheel(function(e,delta){if(delta<0){e.preventDefault();num=(typeof opts.next.mousewheel=="number")?opts.next.mousewheel:"";$cfs.trigger("next",num)}})}}if(opts.next.button){opts.next.button.click(function(e){e.preventDefault();$cfs.trigger("next")});if(opts.next.pauseOnHover&&opts.auto.play){opts.next.button.hover(function(){$cfs.trigger("pause")},function(){$cfs.trigger("play")})}}if(opts.pagination.container){$cfs.trigger("updatePageStatus",true);if(opts.pagination.pauseOnHover&&opts.auto.play){opts.pagination.container.hover(function(){$cfs.trigger("pause")},function(){$cfs.trigger("play")})}}if(opts.next.key||opts.prev.key){$(document).keyup(function(e){var k=e.keyCode;if(k==opts.next.key){e.preventDefault();$cfs.trigger("next")}if(k==opts.prev.key){e.preventDefault();$cfs.trigger("prev")}})}if(opts.pagination.keys){$(document).keyup(function(e){var k=e.keyCode;if(k>=49&&k<58){k=(k-49)*opts.items.visible;if(k<=totalItems){e.preventDefault();$cfs.trigger("slideTo",[k,0,true,opts.pagination])}}})}if(opts.auto.play){$cfs.trigger("play",opts.auto.delay);if($.fn.nap&&opts.auto.nap){$cfs.nap("pause","play")}}};this.destroy=function(){$cfs.trigger("pause").css($cfs.data("cfs_origCss")).unbind("pause").unbind("play").unbind("prev").unbind("next").unbind("scrollTo").unbind("slideTo").unbind("insertItem").unbind("removeItem").unbind("updatePageStatus");$wrp.replaceWith($cfs);return this};this.configuration=function(a,b){if(typeof a=="undefined"){return opts}if(typeof b=="undefined"){var r=eval("opts."+a);if(typeof r=="undefined"){r=""}return r}eval("opts."+a+" = b");this.init(opts);setSizes($cfs,opts);return this};this.link_anchors=function($c,se){link_anchors($c,se,$cfs)};this.current_position=function(){if(firstItem==0){return 0}return totalItems-firstItem};var $cfs=$(this);if($(this).parent().is(".caroufredsel_wrapper")){var $wrp=$cfs.parent();this.destroy()}var $wrp=$(this).wrap('<div class="caroufredsel_wrapper" />').parent(),opts={},totalItems=getItems($cfs).length,firstItem=0,autoTimeout=null,autoInterval=null,pauseTimePassed=0,pausedGlobal=false,direction="next",varnumvisitem=false;this.init(o);this.build();this.bind_events();this.bind_buttons();link_anchors("",".caroufredsel",$cfs);setSizes($cfs,opts);if(opts.items.start!==0&&opts.items.start!==false){var s=opts.items.start;if(opts.items.start===true){s=window.location.hash;if(!s.length){s=0}}$cfs.trigger("slideTo",[s,0,true,{duration:0}])}return this};$.fn.carouFredSel.defaults={infinite:true,circular:true,direction:"left",padding:0,items:{visible:5,start:0},scroll:{easing:"swing",pauseOnHover:false,mousewheel:false}};$.fn.carouFredSel.pageAnchorBuilder=function(nr){return'<a href="#"><span>'+nr+"</span></a>"};function link_anchors($c,se,$cfs){if(typeof $c=="undefined"||$c.length==0){$c=$("body")}else{if(typeof $c=="string"){$c=$($c)}}if(typeof $c!="object"){return false}if(typeof se=="undefined"){se=""}$c.find("a"+se).each(function(){var h=this.hash||"";if(h.length>0&&getItems($cfs).index($(h))!=-1){$(this).unbind("click").click(function(e){e.preventDefault();$cfs.trigger("slideTo",h)})}})}function showNavi(o,t){if(o.items.minimum>=t){log("Not enough items: not scrolling");var f="hide"}else{var f="show"}if(o.prev.button){o.prev.button[f]()}if(o.next.button){o.next.button[f]()}if(o.pagination.container){o.pagination.container[f]()}}function getKeyCode(k){if(k=="right"){return 39}if(k=="left"){return 37}if(k=="up"){return 38}if(k=="down"){return 40}return -1}function getNaviObject(obj,pagi,auto){if(typeof pagi!="boolean"){pagi=false}if(typeof auto!="boolean"){auto=false}if(typeof obj=="undefined"){obj={}}if(typeof obj=="string"){var temp=getKeyCode(obj);if(temp==-1){obj=$(obj)}else{obj=temp}}if(pagi){if(typeof obj.jquery!="undefined"){obj={container:obj}}if(typeof Object=="boolean"){obj={keys:obj}}if(typeof obj.container=="string"){obj.container=$(obj.container)}}else{if(auto){if(typeof obj=="boolean"){obj={play:obj}}if(typeof obj=="number"){obj={pauseDuration:obj}}}else{if(typeof obj.jquery!="undefined"){obj={button:obj}}if(typeof obj=="number"){obj={key:obj}}if(typeof obj.button=="string"){obj.button=$(obj.button)}if(typeof obj.key=="string"){obj.key=getKeyCode(obj.key)}}}return obj}function getItems(a,f){if(typeof f!="string"){f=""}return $("> *"+f,a)}function getCurrentItems(c,o,n){var oi=getItems(c,":lt("+o.items.visible+")"),ni=getItems(c,":lt("+(o.items.visible+n)+"):gt("+(n-1)+")");return[oi,ni]}function getItemIndex(num,dev,org,firstItem,totalItems,$cfs){if(typeof num=="string"){if(isNaN(num)){num=$(num)}else{num=parseInt(num)}}if(typeof num=="object"){if(typeof num.jquery=="undefined"){num=$(num)}num=getItems($cfs).index(num);if(num==-1){num=0}if(typeof org!="boolean"){org=false}}else{if(typeof org!="boolean"){org=true}}if(isNaN(num)){num=0}else{num=parseInt(num)}if(isNaN(dev)){dev=0}else{dev=parseInt(dev)}if(org){num+=firstItem}num+=dev;if(totalItems>0){while(num>=totalItems){num-=totalItems}while(num<0){num+=totalItems}}return num}function getSizes(o,$i,wrap){if(typeof wrap!="boolean"){wrap=false}var di=o.dimentions,s1=0,s2=0;if(wrap&&typeof o[di[0]]=="number"){s1+=o[di[0]]}else{if(typeof o.items[di[0]]=="number"){s1+=o.items[di[0]]*$i.length}else{$i.each(function(){s1+=$(this)[di[1]](true)})}}if(wrap&&typeof o[di[2]]=="number"){s2+=o[di[2]]}else{if(typeof o.items[di[2]]=="number"){s2+=o.items[di[2]]}else{$i.each(function(){var m=$(this)[di[3]](true);if(s2<m){s2=m}})}}return[s1,s2]}function mapWrapperSizes(ws,o){var pad=(o.usePadding)?o.padding:[0,0,0,0];var wra={};wra[o.dimentions[0]]=ws[0]+pad[1]+pad[3];wra[o.dimentions[2]]=ws[1]+pad[0]+pad[2];return wra}function setSizes($c,o){var $w=$c.parent(),$i=getItems($c),$l=$i.filter(":nth("+(o.items.visible-1)+")"),is=getSizes(o,$i,false);$w.css(mapWrapperSizes(getSizes(o,$i.filter(":lt("+o.items.visible+")"),true),o));if(o.usePadding){$l.css(o.dimentions[6],$l.data("cfs_origCssMargin")+o.padding[1]);$c.css(o.dimentions[5],o.padding[0]);$c.css(o.dimentions[4],o.padding[3])}$c.css(o.dimentions[0],is[0]*2);$c.css(o.dimentions[2],is[1])}function getPadding(p){if(typeof p=="number"){p=[p]}else{if(typeof p=="string"){p=p.split("px").join("").split(" ")}}if(typeof p!="object"){log('Not a valid value, padding set to "0".');p=[0]}for(i in p){p[i]=parseInt(p[i])}switch(p.length){case 0:return[0,0,0,0];case 1:return[p[0],p[0],p[0],p[0]];case 2:return[p[0],p[1],p[0],p[1]];case 3:return[p[0],p[1],p[2],p[1]];default:return p}}function log(m){if(typeof m=="string"){m="carouFredSel: "+m}if(window.console&&window.console.log){window.console.log(m)}else{try{console.log(m)}catch(err){}}return false}$.fn.caroufredsel=function(o){this.carouFredSel(o)}})(jQuery);(function(g){var k="2.56";if(g.support==undefined){g.support={opacity:!(g.browser.msie)}}function d(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}}g.fn.cycle=function(r,q){if(this.length==0&&r!="stop"){if(!g.isReady&&this.selector){d("DOM not ready, queuing slideshow");var s={s:this.selector,c:this.context};g(function(){g(s.s,s.c).cycle(r,q)});return this}d("terminating; zero elements found by selector"+(g.isReady?"":" (DOM not ready)"));return this}return this.each(function(){r=l(this,r,q);if(r===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var u=g(this);var v=r.slideExpr?g(r.slideExpr,this):u.children();var o=v.get();if(o.length<2){d("terminating; too few slides: "+o.length);return}var t=j(u,v,o,r);if(t===false){return}if(t.timeout||t.continuous){this.cycleTimeout=setTimeout(function(){c(o,t,0,!t.rev)},t.continuous?10:t.timeout+(t.delay||0))}})};function l(o,s,q){if(o.cycleStop==undefined){o.cycleStop=0}if(s===undefined||s===null){s={}}if(s.constructor==String){switch(s){case"stop":o.cycleStop++;if(o.cycleTimeout){clearTimeout(o.cycleTimeout)}o.cycleTimeout=0;g(o).removeData("cycle.opts");return false;case"pause":o.cyclePause=1;return false;case"resume":o.cyclePause=0;if(q===true){s=g(o).data("cycle.opts");if(!s){d("options not found, can not resume");return}if(o.cycleTimeout){clearTimeout(o.cycleTimeout);o.cycleTimeout=0}c(s.elements,s,1,1)}return false;default:s={fx:s}}}else{if(s.constructor==Number){var r=s;s=g(o).data("cycle.opts");if(!s){d("options not found, can not advance slide");return false}if(r<0||r>=s.elements.length){d("invalid slide index: "+r);return false}s.nextSlide=r;if(o.cycleTimeout){clearTimeout(this.cycleTimeout);o.cycleTimeout=0}if(typeof q=="string"){s.oneTimeFx=q}c(s.elements,s,1,r>=s.currSlide);return false}}return s}function j(D,z,s,F){var o=g.extend({},g.fn.cycle.defaults,F||{},g.metadata?D.metadata():g.meta?D.data():{});if(o.autostop){o.countdown=o.autostopCount||s.length}var G=D[0];D.data("cycle.opts",o);o.$cont=D;o.stopCount=G.cycleStop;o.elements=s;o.before=o.before?[o.before]:[];o.after=o.after?[o.after]:[];o.after.unshift(function(){o.busy=0});if(!g.support.opacity&&o.cleartype){o.after.push(function(){this.style.removeAttribute("filter")})}if(o.continuous){o.after.push(function(){c(s,o,0,!o.rev)})}m(o);if(!g.support.opacity&&o.cleartype&&!o.cleartypeNoBg){e(z)}if(D.css("position")=="static"){D.css("position","relative")}if(o.width){D.width(o.width)}if(o.height&&o.height!="auto"){D.height(o.height)}if(o.startingSlide){o.startingSlide=parseInt(o.startingSlide)}if(o.random){o.randomMap=[];for(var u=0;u<s.length;u++){o.randomMap.push(u)}o.randomMap.sort(function(H,w){return Math.random()-0.5});o.randomIndex=0;o.startingSlide=o.randomMap[0]}else{if(o.startingSlide>=s.length){o.startingSlide=0}}o.currSlide=o.startingSlide=o.startingSlide||0;var x=o.startingSlide;z.css({position:"absolute",top:0,left:0}).hide().each(function(w){var H=x?w>=x?s.length-(w-x):x-w:s.length-w;g(this).css("z-index",H)});g(s[x]).css("opacity",1).show();if(!g.support.opacity&&o.cleartype){s[x].style.removeAttribute("filter")}if(o.fit&&o.width){z.width(o.width)}if(o.fit&&o.height&&o.height!="auto"){z.height(o.height)}var t=o.containerResize&&!D.innerHeight();if(t){var A=0,r=0;for(var u=0;u<s.length;u++){var q=g(s[u]),y=q[0],C=q.outerWidth(),v=q.outerHeight();if(!C){C=y.offsetWidth}if(!v){v=y.offsetHeight}A=C>A?C:A;r=v>r?v:r}if(A>0&&r>0){D.css({width:A+"px",height:r+"px"})}}if(o.pause){D.hover(function(){this.cyclePause++},function(){this.cyclePause--})}a(o);if(!o.multiFx){var E=g.fn.cycle.transitions[o.fx];if(g.isFunction(E)){E(D,z,o)}else{if(o.fx!="custom"&&!o.multiFx){d("unknown transition: "+o.fx,"; slideshow terminating");return false}}}z.each(function(){var w=g(this);this.cycleH=(o.fit&&o.height)?o.height:w.height();this.cycleW=(o.fit&&o.width)?o.width:w.width()});o.cssBefore=o.cssBefore||{};o.animIn=o.animIn||{};o.animOut=o.animOut||{};z.not(":eq("+x+")").css(o.cssBefore);if(o.cssFirst){g(z[x]).css(o.cssFirst)}if(o.timeout){o.timeout=parseInt(o.timeout);if(o.speed.constructor==String){o.speed=g.fx.speeds[o.speed]||parseInt(o.speed)}if(!o.sync){o.speed=o.speed/2}while((o.timeout-o.speed)<250){o.timeout+=o.speed}}if(o.easing){o.easeIn=o.easeOut=o.easing}if(!o.speedIn){o.speedIn=o.speed}if(!o.speedOut){o.speedOut=o.speed}o.slideCount=s.length;o.currSlide=o.lastSlide=x;if(o.random){o.nextSlide=o.currSlide;if(++o.randomIndex==s.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{o.nextSlide=o.startingSlide>=(s.length-1)?0:o.startingSlide+1}var B=z[x];if(o.before.length){o.before[0].apply(B,[B,B,o,true])}if(o.after.length>1){o.after[1].apply(B,[B,B,o,true])}if(o.next){g(o.next).click(function(){return n(o,o.rev?-1:1)})}if(o.prev){g(o.prev).click(function(){return n(o,o.rev?1:-1)})}if(o.pager){b(s,o)}h(o,s);return o}function m(o){o.original={before:[],after:[]};o.original.cssBefore=g.extend({},o.cssBefore);o.original.cssAfter=g.extend({},o.cssAfter);o.original.animIn=g.extend({},o.animIn);o.original.animOut=g.extend({},o.animOut);g.each(o.before,function(){o.original.before.push(this)});g.each(o.after,function(){o.original.after.push(this)})}function a(v){var r=g.fn.cycle.transitions;if(v.fx.indexOf(",")>0){v.multiFx=true;v.fxs=v.fx.replace(/\s*/g,"").split(",");for(var t=0;t<v.fxs.length;t++){var u=v.fxs[t];var q=r[u];if(!q||!r.hasOwnProperty(u)||!g.isFunction(q)){d("discarding unknowtn transition: ",u);v.fxs.splice(t,1);t--}}if(!v.fxs.length){d("No valid transitions named; slideshow terminating.");return false}}else{if(v.fx=="all"){v.multiFx=true;v.fxs=[];for(p in r){var q=r[p];if(r.hasOwnProperty(p)&&g.isFunction(q)){v.fxs.push(p)}}}}if(v.multiFx&&v.randomizeEffects){var s=Math.floor(Math.random()*20)+30;for(var t=0;t<s;t++){var o=Math.floor(Math.random()*v.fxs.length);v.fxs.push(v.fxs.splice(o,1)[0])}d("randomized fx sequence: ",v.fxs)}}function h(q,o){q.addSlide=function(t,u){var r=g(t),v=r[0];if(!q.autostopCount){q.countdown++}o[u?"unshift":"push"](v);if(q.els){q.els[u?"unshift":"push"](v)}q.slideCount=o.length;r.css("position","absolute");r[u?"prependTo":"appendTo"](q.$cont);if(u){q.currSlide++;q.nextSlide++}if(!g.support.opacity&&q.cleartype&&!q.cleartypeNoBg){e(r)}if(q.fit&&q.width){r.width(q.width)}if(q.fit&&q.height&&q.height!="auto"){$slides.height(q.height)}v.cycleH=(q.fit&&q.height)?q.height:r.height();v.cycleW=(q.fit&&q.width)?q.width:r.width();r.css(q.cssBefore);if(q.pager){g.fn.cycle.createPagerAnchor(o.length-1,v,g(q.pager),o,q)}if(g.isFunction(q.onAddSlide)){q.onAddSlide(r)}else{r.hide()}}}g.fn.cycle.resetState=function(q,o){var o=o||q.fx;q.before=[];q.after=[];q.cssBefore=g.extend({},q.original.cssBefore);q.cssAfter=g.extend({},q.original.cssAfter);q.animIn=g.extend({},q.original.animIn);q.animOut=g.extend({},q.original.animOut);q.fxFn=null;g.each(q.original.before,function(){q.before.push(this)});g.each(q.original.after,function(){q.after.push(this)});var r=g.fn.cycle.transitions[o];if(g.isFunction(r)){r(q.$cont,g(q.elements),q)}};function c(w,o,v,x){if(v&&o.busy){g(w).stop(true,true);o.busy=false}if(o.busy){return}var t=o.$cont[0],z=w[o.currSlide],y=w[o.nextSlide];if(t.cycleStop!=o.stopCount||t.cycleTimeout===0&&!v){return}if(!v&&!t.cyclePause&&((o.autostop&&(--o.countdown<=0))||(o.nowrap&&!o.random&&o.nextSlide<o.currSlide))){if(o.end){o.end(o)}return}if(v||!t.cyclePause){var u=o.fx;z.cycleH=z.cycleH||z.offsetHeight;z.cycleW=z.cycleW||z.offsetWidth;y.cycleH=y.cycleH||y.offsetHeight;y.cycleW=y.cycleW||y.offsetWidth;if(o.multiFx){if(o.lastFx==undefined||++o.lastFx>=o.fxs.length){o.lastFx=0}u=o.fxs[o.lastFx];o.currFx=u}if(o.oneTimeFx){u=o.oneTimeFx;o.oneTimeFx=null}g.fn.cycle.resetState(o,u);if(o.before.length){g.each(o.before,function(A,B){if(t.cycleStop!=o.stopCount){return}B.apply(y,[z,y,o,x])})}var r=function(){g.each(o.after,function(A,B){if(t.cycleStop!=o.stopCount){return}B.apply(y,[z,y,o,x])})};if(o.nextSlide!=o.currSlide){o.busy=1;if(o.fxFn){o.fxFn(z,y,o,r,x)}else{if(g.isFunction(g.fn.cycle[o.fx])){g.fn.cycle[o.fx](z,y,o,r)}else{g.fn.cycle.custom(z,y,o,r,v&&o.fastOnEvent)}}}o.lastSlide=o.currSlide;if(o.random){o.currSlide=o.nextSlide;if(++o.randomIndex==w.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{var s=(o.nextSlide+1)==w.length;o.nextSlide=s?0:o.nextSlide+1;o.currSlide=s?w.length-1:o.nextSlide-1}if(o.pager){g.fn.cycle.updateActivePagerLink(o.pager,o.currSlide)}}var q=0;if(o.timeout&&!o.continuous){q=f(z,y,o,x)}else{if(o.continuous&&t.cyclePause){q=10}}if(q>0){t.cycleTimeout=setTimeout(function(){c(w,o,0,!o.rev)},q)}}g.fn.cycle.updateActivePagerLink=function(o,q){g(o).find("a").removeClass("activeSlide").filter("a:eq("+q+")").addClass("activeSlide")};function f(u,r,s,q){if(s.timeoutFn){var o=s.timeoutFn(u,r,s,q);if(o!==false){return o}}return s.timeout}g.fn.cycle.next=function(o){n(o,o.rev?-1:1)};g.fn.cycle.prev=function(o){n(o,o.rev?1:-1)};function n(q,t){var o=q.elements;var s=q.$cont[0],r=s.cycleTimeout;if(r){clearTimeout(r);s.cycleTimeout=0}if(q.random&&t<0){q.randomIndex--;if(--q.randomIndex==-2){q.randomIndex=o.length-2}else{if(q.randomIndex==-1){q.randomIndex=o.length-1}}q.nextSlide=q.randomMap[q.randomIndex]}else{if(q.random){if(++q.randomIndex==o.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex]}else{q.nextSlide=q.currSlide+t;if(q.nextSlide<0){if(q.nowrap){return false}q.nextSlide=o.length-1}else{if(q.nextSlide>=o.length){if(q.nowrap){return false}q.nextSlide=0}}}}if(g.isFunction(q.prevNextClick)){q.prevNextClick(t>0,q.nextSlide,o[q.nextSlide])}c(o,q,1,t>=0);return false}function b(q,r){var o=g(r.pager);g.each(q,function(s,t){g.fn.cycle.createPagerAnchor(s,t,o,q,r)});g.fn.cycle.updateActivePagerLink(r.pager,r.startingSlide)}g.fn.cycle.createPagerAnchor=function(s,t,q,r,u){var o=(g.isFunction(u.pagerAnchorBuilder))?u.pagerAnchorBuilder(s,t):'<a href="#">'+(s+1)+"</a>";if(!o){return}var v=g(o);if(v.parents("body").length==0){v.appendTo(q)}v.bind(u.pagerEvent,function(){u.nextSlide=s;var x=u.$cont[0],w=x.cycleTimeout;if(w){clearTimeout(w);x.cycleTimeout=0}if(g.isFunction(u.pagerClick)){u.pagerClick(u.nextSlide,r[u.nextSlide])}c(r,u,1,u.currSlide<s);return false});if(u.pauseOnPagerHover){v.hover(function(){u.$cont[0].cyclePause++},function(){u.$cont[0].cyclePause--})}};g.fn.cycle.hopsFromLast=function(s,r){var q,o=s.lastSlide,t=s.currSlide;if(r){q=t>o?t-o:s.slideCount-o}else{q=t<o?o-t:o+s.slideCount-t}return q};function e(r){function q(t){var t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function o(u){for(;u&&u.nodeName.toLowerCase()!="html";u=u.parentNode){var s=g.css(u,"background-color");if(s.indexOf("rgb")>=0){var t=s.match(/\d+/g);return"#"+q(t[0])+q(t[1])+q(t[2])}if(s&&s!="transparent"){return s}}return"#ffffff"}r.each(function(){g(this).css("background-color",o(this))})}g.fn.cycle.commonReset=function(u,s,t,q,r,o){g(t.elements).not(u).hide();t.cssBefore.opacity=1;t.cssBefore.display="block";if(q!==false&&s.cycleW>0){t.cssBefore.width=s.cycleW}if(r!==false&&s.cycleH>0){t.cssBefore.height=s.cycleH}t.cssAfter=t.cssAfter||{};t.cssAfter.display="none";g(u).css("zIndex",t.slideCount+(o===true?1:0));g(s).css("zIndex",t.slideCount+(o===true?0:1))};g.fn.cycle.custom=function(A,u,o,r,q){var z=g(A),v=g(u);var s=o.speedIn,y=o.speedOut,t=o.easeIn,x=o.easeOut;v.css(o.cssBefore);if(q){if(typeof q=="number"){s=y=q}else{s=y=1}t=x=null}var w=function(){v.animate(o.animIn,s,t,r)};z.animate(o.animOut,y,x,function(){if(o.cssAfter){z.css(o.cssAfter)}if(!o.sync){w()}});if(o.sync){w()}};g.fn.cycle.transitions={fade:function(q,r,o){r.not(":eq("+o.currSlide+")").css("opacity",0);o.before.push(function(u,s,t){g.fn.cycle.commonReset(u,s,t);t.cssBefore.opacity=0});o.animIn={opacity:1};o.animOut={opacity:0};o.cssBefore={top:0,left:0}}};g.fn.cycle.ver=function(){return k};g.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,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,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!g.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0}})(jQuery);(function(a){a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(j,g,h){a.fn.cycle.commonReset(j,g,h,true,true,true)});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(var c=0;c<f.length;c++){d.els.push(f[c])}for(var c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(n,k,m,g,j){var h=j?a(n):a(k);a(k).css(m.cssBefore);var l=m.slideCount;h.animate(m.shuffle,m.speedIn,m.easeIn,function(){var q=a.fn.cycle.hopsFromLast(m,j);for(var r=0;r<q;r++){j?m.els.push(m.els.shift()):m.els.unshift(m.els.pop())}if(j){for(var s=0,o=m.els.length;s<o;s++){a(m.els[s]).css("z-index",o-s+l)}}else{var t=a(n).css("z-index");h.css("z-index",parseInt(t)+1+l)}h.animate({left:0,top:0},m.speedOut,m.easeOut,function(){a(j?this:n).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(j,g,h){a.fn.cycle.commonReset(j,g,h);h.animIn.height=g.cycleH;h.animOut.top=j.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var j=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(k,d,h){a.fn.cycle.commonReset(k,d,h);if(j=="right"){h.cssBefore.left=-b}else{if(j=="up"){h.cssBefore.top=c}else{if(j=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var j=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(k,d,h){a.fn.cycle.commonReset(k,d,h,true,true,true);if(j=="right"){h.animOut.left=b}else{if(j=="up"){h.animOut.top=-c}else{if(j=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(j,g,h){a.fn.cycle.commonReset(j,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(q,m,e){var o=q.css("overflow","hidden").width();var j=q.height();e.cssBefore=e.cssBefore||{};var f;if(e.clip){if(/l2r/.test(e.clip)){f="rect(0px 0px "+j+"px 0px)"}else{if(/r2l/.test(e.clip)){f="rect(0px "+o+"px "+j+"px "+o+"px)"}else{if(/t2b/.test(e.clip)){f="rect(0px "+o+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){f="rect("+j+"px "+o+"px "+j+"px 0px)"}else{if(/zoom/.test(e.clip)){var s=parseInt(j/2);var g=parseInt(o/2);f="rect("+s+"px "+g+"px "+s+"px "+g+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||f||"rect(0px 0px 0px 0px)";var k=e.cssBefore.clip.match(/(\d+)/g);var s=parseInt(k[0]),c=parseInt(k[1]),n=parseInt(k[2]),g=parseInt(k[3]);e.before.push(function(v,h,t){if(v==h){return}var d=a(v),b=a(h);a.fn.cycle.commonReset(v,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13))-1;(function u(){var x=s?s-parseInt(r*(s/l)):0;var y=g?g-parseInt(r*(g/l)):0;var z=n<j?n+parseInt(r*((j-n)/l||1)):j;var w=c<o?c+parseInt(r*((o-c)/l||1)):o;b.css({clip:"rect("+x+"px "+w+"px "+z+"px "+y+"px)"});(r++<=l)?setTimeout(u,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);
/*
jQuery Waypoints - v1.0.2
Copyright (c) 2011 Caleb Troughton
Dual licensed under the MIT license and GPL license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/MIT-license.txt
https://github.com/imakewebthings/jquery-waypoints/blob/master/GPL-license.txt
*/
(function($,m,o,k,d){var f=$(k),l=[],n=-99999,j=false,q=false,g="waypoint.reached",c={init:function(s,r){this.each(function(){var w=$(this),t=h(w),v=t<0?$.fn[m].defaults:l[t].options,u=$.extend({},v,r);u.offset=u.offset==="bottom-in-view"?function(){return $[o]("viewportHeight")-$(this).outerHeight()}:u.offset;if(t<0){l.push({element:w,offset:w.offset().top,options:u})}else{l[t].options=u}s&&w.bind(g,s)});$[o]("refresh");return this},remove:function(){return this.each(function(){var r=h($(this));if(r>=0){l.splice(r,1)}})},destroy:function(){return this.unbind(g)[m]("remove")}};function h(s){var r=l.length-1;while(r>=0&&l[r].element[0]!==s[0]){r-=1}return r}function b(s,r){s.element.trigger(g,r);if(s.options.triggerOnce){s.element[m]("destroy")}}function e(){var s=f.scrollTop(),r=s>n,t=$.grep(l,function(v,u){return r?(v.offset>n&&v.offset<=s):(v.offset<=n&&v.offset>s)});if(!n||!s){$[o]("refresh")}n=s;if(!t.length){return}if($[o].settings.continuous){$.each(r?t:t.reverse(),function(v,u){b(u,[r?"down":"up"])})}else{b(t[r?t.length-1:0],[r?"down":"up"])}}$.fn[m]=function(r){if(c[r]){return c[r].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof r==="function"||!r){return c.init.apply(this,arguments)}else{if(typeof r==="object"){return c.init.apply(this,[null,r])}else{$.error("Method "+r+" does not exist on jQuery"+m)}}}};$.fn[m].defaults={offset:0,triggerOnce:false};var a={refresh:function(){$.each(l,function(t,v){var r=0,u=v.offset;if(typeof v.options.offset==="function"){r=v.options.offset.apply(v.element)}else{if(typeof v.options.offset==="string"){var s=parseFloat(v.options.offset),r=v.options.offset.indexOf("%")?Math.ceil($[o]("viewportHeight")*(s/100)):s}else{r=v.options.offset}}v.offset=v.element.offset().top-r;if(n>u&&n<=v.offset){b(v,["up"])}else{if(n<u&&n>=v.offset){b(v,["down"])}}});l.sort(function(s,r){return s.offset-r.offset})},viewportHeight:function(){return(k.innerHeight?k.innerHeight:f.height())},aggregate:function(){var r=$();$.each(l,function(s,t){r=r.add(t.element)});return r}};$[o]=function(r){if(a[r]){return a[r].apply(this)}else{return a.aggregate()}};$[o].settings={continuous:true,resizeThrottle:200,scrollThrottle:100};f.scroll(function(){if(!j){j=true;k.setTimeout(function(){e();j=false},$[o].settings.scrollThrottle)}}).resize(function(){if(!q){q=true;k.setTimeout(function(){$[o]("refresh");q=false},$[o].settings.resizeThrottle)}}).load(function(){$[o]("refresh");e()})})(jQuery,"waypoint","waypoints",this);(function(d){var a=location.href.replace(/#.*/,"");var c=d.localScroll=function(e){d("body").localScroll(e)};c.defaults={duration:1000,axis:"y",event:"click",stop:true,target:window,reset:true};c.hash=function(f){if(location.hash){f=d.extend({},c.defaults,f);f.hash=false;if(f.reset){var g=f.duration;delete f.duration;d(f.target).scrollTo(0,f);f.duration=g}b(0,location,f)}};d.fn.localScroll=function(e){e=d.extend({},c.defaults,e);return e.lazy?this.bind(e.event,function(g){var h=d([g.target,g.target.parentNode]).filter(f)[0];if(h){b(g,h,e)}}):this.find("a,area").filter(f).bind(e.event,function(g){b(g,this,e)}).end().end();function f(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==a&&(!e.filter||d(this).is(e.filter))}};function b(l,r,g){var s=r.hash.slice(1),q=document.getElementById(s)||document.getElementsByName(s)[0];if(!q){return}if(l){l.preventDefault()}var o=d(g.target);if(g.lock&&o.is(":animated")||g.onBefore&&g.onBefore.call(g,l,q,o)===false){return}if(g.stop){o.stop(true)}if(g.hash){var n=q.id==s?"id":"name",m=d("<a> </a>").attr(n,s).css({position:"absolute",top:d(window).scrollTop(),left:d(window).scrollLeft()});q[n]="";d("body").prepend(m);location=r.hash;m.remove();q[n]=s}o.scrollTo(q,g).trigger("notify.serialScroll",[q])}})(jQuery);(function(c){var a=c.scrollTo=function(d,f,g){c(window).scrollTo(d,f,g)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var o=this,m=c(o),n=f,k,l={},h=m.is("html,body");switch(typeof n){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(n)){n=b(n);break}n=c(n,this);case"object":if(n.is||n.style){k=(n=c(n)).offset()}}c.each(d.axis.split(""),function(r,s){var u=s=="x"?"Left":"Top",t=u.toLowerCase(),w="scroll"+u,q=o[w],g=a.max(o,s);if(k){l[w]=k[t]+(h?0:q-m.offset()[t]);if(d.margin){l[w]-=parseInt(n.css("margin"+u))||0;l[w]-=parseInt(n.css("border"+u+"Width"))||0}l[w]+=d.offset[t]||0;if(d.over[t]){l[w]+=n[s=="x"?"width":"height"]()*d.over[t]}}else{var v=n[t];l[w]=v.slice&&v.slice(-1)=="%"?parseFloat(v)/100*g:v}if(/^\d+$/.test(l[w])){l[w]=l[w]<=0?0:Math.min(l[w],g)}if(!r&&d.queue){if(q!=l[w]){j(d.onAfterFirst)}delete l[w]}});j(d.onAfter);function j(g){m.animate(l,e,d.easing,g&&function(){g.call(this,f,d)})}}).end()};a.max=function(g,j){var n=j=="x"?"Width":"Height",k="scroll"+n;if(!c(g).is("html,body")){return g[k]-c(g)[n.toLowerCase()]()}var o="client"+n,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[k],d[k])-Math.min(f[o],d[o])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(a){function b(){var c=window.innerHeight;var d=document.compatMode;if((d||!a.support.boxModel)){c=(d=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return c}a(window).scroll(function(){var e=b(),c=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop),d=[];a.each(a.cache,function(){if(this.events&&this.events.inview){d.push(this.handle.elem)}});if(d.length){a(d).each(function(){var g=a(this),j=g.offset().top,f=g.height(),h=g.data("inview")||false;if(c>(j+f)||c+e<j){if(h){g.data("inview",false);g.trigger("inview",[false])}}else{if(c<(j+f)){if(!h){g.data("inview",true);g.trigger("inview",[true])}}}})}});a(function(){a(window).scroll()})})(jQuery);
/*
 * jQuery Tools v1.2.5 - The missing UI library for the Web
 * 
 * overlay/overlay.js
 * scrollable/scrollable.js
 * tabs/tabs.js
 * toolbox/toolbox.expose.js
 * tooltip/tooltip.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
(function(f){f.tools=f.tools||{version:"v1.2.5"},f.tools.overlay={addEffect:function(j,c,k){h[j]=[c,k]},conf:{close:null,closeOnClick:!0,closeOnEsc:!0,closeSpeed:"fast",effect:"default",fixed:!f.browser.msie||f.browser.version>6,left:"center",load:!1,mask:null,oneInstance:!0,speed:"normal",target:null,top:"10%"}};var e=[],h={};f.tools.overlay.addEffect("default",function(a,l){var k=this.getConf(),j=f(window);k.fixed||(a.top+=j.scrollTop(),a.left+=j.scrollLeft()),a.position=k.fixed?"fixed":"absolute",this.getOverlay().css(a).fadeIn(k.speed,l)},function(b){this.getOverlay().fadeOut(this.getConf().closeSpeed,b)});function g(w,v){var u=this,t=w.add(u),s=f(window),r,q,o,c=f.tools.expose&&(v.mask||v.expose),b=Math.random().toString().slice(10);c&&(typeof c=="string"&&(c={color:c}),c.closeOnClick=c.closeOnEsc=!1);var a=v.target||w.attr("rel");q=a?f(a):null||w;if(!q.length){throw"Could not find Overlay: "+a}w&&w.index(q)==-1&&w.click(function(d){u.load(d);return d.preventDefault()}),f.extend(u,{load:function(x){if(u.isOpened()){return u}var j=h[v.effect];if(!j){throw'Overlay: cannot find effect : "'+v.effect+'"'}v.oneInstance&&f.each(e,function(){this.close(x)}),x=x||f.Event(),x.type="onBeforeLoad",t.trigger(x);if(x.isDefaultPrevented()){return u}o=!0,c&&f(q).expose(c);var y=v.top,m=v.left,l=q.outerWidth({margin:!0}),k=q.outerHeight({margin:!0});typeof y=="string"&&(y=y=="center"?Math.max((s.height()-k)/2,0):parseInt(y,10)/100*s.height()),m=="center"&&(m=Math.max((s.width()-l)/2,0)),j[0].call(u,{top:y,left:m},function(){o&&(x.type="onLoad",t.trigger(x))}),c&&v.closeOnClick&&f.mask.getMask().one("click",u.close),v.closeOnClick&&f(document).bind("click."+b,function(d){f(d.target).parents(q).length||u.close(d)}),v.closeOnEsc&&f(document).bind("keydown."+b,function(d){d.keyCode==27&&u.close(d)});return u},close:function(d){if(!u.isOpened()){return u}d=d||f.Event(),d.type="onBeforeClose",t.trigger(d);if(!d.isDefaultPrevented()){o=!1,h[v.effect][1].call(u,function(){d.type="onClose",t.trigger(d)}),f(document).unbind("click."+b).unbind("keydown."+b),c&&f.mask.close();return u}},getOverlay:function(){return q},getTrigger:function(){return w},getClosers:function(){return r},isOpened:function(){return o},getConf:function(){return v}}),f.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(d,j){f.isFunction(v[j])&&f(u).bind(j,v[j]),u[j]=function(k){k&&f(u).bind(j,k);return u}}),r=q.find(v.close||".close"),!r.length&&!v.close&&(r=f('<a class="close"></a>'),q.prepend(r)),r.click(function(d){u.close(d)}),v.load&&u.load()}f.fn.overlay=function(b){var a=this.data("overlay");if(a){return a}f.isFunction(b)&&(b={onBeforeLoad:b}),b=f.extend(!0,{},f.tools.overlay.conf,b),this.each(function(){a=new g(f(this),b),e.push(a),f(this).data("overlay",a)});return b.api?a:this}})(jQuery);(function(g){g.tools=g.tools||{version:"v1.2.5"},g.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",speed:400,vertical:!1,touch:!0,wheelSpeed:0}};function f(l,e){var n=parseInt(l.css(e),10);if(n){return n}var m=l[0].currentStyle;return m&&m.width&&parseInt(m.width,10)}function k(a,l){var e=g(l);return e.length<2?e:a.parent().find(l)}var j;function h(y,x){var w=this,v=y.add(w),u=y.children(),t=0,s=x.vertical;j||(j=w),u.length>1&&(u=g(x.items,y)),g.extend(w,{getConf:function(){return x},getIndex:function(){return t},getSize:function(){return w.getItems().size()},getNaviButtons:function(){return d.add(c)},getRoot:function(){return y},getItemWrap:function(){return u},getItems:function(){return u.children(x.item).not("."+x.clonedClass)},move:function(l,e){return w.seekTo(t+l,e)},next:function(b){return w.move(1,b)},prev:function(b){return w.move(-1,b)},begin:function(b){return w.seekTo(0,b)},end:function(b){return w.seekTo(w.getSize()-1,b)},focus:function(){j=w;return w},addItem:function(e){e=g(e),x.circular?(u.children("."+x.clonedClass+":last").before(e),u.children("."+x.clonedClass+":first").replaceWith(e.clone().addClass(x.clonedClass))):u.append(e),v.trigger("onAddItem",[e]);return w},seekTo:function(o,C,A){o.jquery||(o*=1);if(x.circular&&o===0&&t==-1&&C!==0){return w}if(!x.circular&&o<0||o>w.getSize()||o<-1){return w}var z=o;o.jquery?o=w.getItems().index(o):z=w.getItems().eq(o);var e=g.Event("onBeforeSeek");if(!A){v.trigger(e,[o,C]);if(e.isDefaultPrevented()||!z.length){return w}}var B=s?{top:-z.position().top}:{left:-z.position().left};t=o,j=w,C===undefined&&(C=x.speed),u.animate(B,C,x.easing,A||function(){v.trigger("onSeek",[o])});return w}}),g.each(["onBeforeSeek","onSeek","onAddItem"],function(e,l){g.isFunction(x[l])&&g(w).bind(l,x[l]),w[l]=function(m){m&&g(w).bind(l,m);return w}});if(x.circular){var r=w.getItems().slice(-1).clone().prependTo(u),q=w.getItems().eq(1).clone().appendTo(u);r.add(q).addClass(x.clonedClass),w.onBeforeSeek(function(l,e,m){if(!l.isDefaultPrevented()){if(e==-1){w.seekTo(r,m,function(){w.end(0)});return l.preventDefault()}e==w.getSize()&&w.seekTo(q,m,function(){w.begin(0)})}}),w.seekTo(0,0,function(){})}var d=k(y,x.prev).click(function(){w.prev()}),c=k(y,x.next).click(function(){w.next()});!x.circular&&w.getSize()>1&&(w.onBeforeSeek(function(l,e){setTimeout(function(){l.isDefaultPrevented()||(d.toggleClass(x.disabledClass,e<=0),c.toggleClass(x.disabledClass,e>=w.getSize()-1))},1)}),x.initialIndex||d.addClass(x.disabledClass)),x.mousewheel&&g.fn.mousewheel&&y.mousewheel(function(l,e){if(x.mousewheel){w.move(e<0?1:-1,x.wheelSpeed||50);return !1}});if(x.touch){var a={};u[0].ontouchstart=function(l){var e=l.touches[0];a.x=e.clientX,a.y=e.clientY},u[0].ontouchmove=function(l){if(l.touches.length==1&&!u.is(":animated")){var e=l.touches[0],n=a.x-e.clientX,m=a.y-e.clientY;w[s&&m>0||!s&&n>0?"next":"prev"](),l.preventDefault()}}}x.keyboard&&g(document).bind("keydown.scrollable",function(e){if(x.keyboard&&!e.altKey&&!e.ctrlKey&&!g(e.target).is(":input")){if(x.keyboard!="static"&&j!=w){return}var l=e.keyCode;if(s&&(l==38||l==40)){w.move(l==38?-1:1);return e.preventDefault()}if(!s&&(l==37||l==39)){w.move(l==37?-1:1);return e.preventDefault()}}}),x.initialIndex&&w.seekTo(x.initialIndex,0,function(){})}g.fn.scrollable=function(a){var d=this.data("scrollable");if(d){return d}a=g.extend({},g.tools.scrollable.conf,a),this.each(function(){d=new h(g(this),a),g(this).data("scrollable",d)});return a.api?d:this}})(jQuery);(function(f){f.tools=f.tools||{version:"v1.2.5"},f.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(b,d){e[b]=d}};var e={"default":function(d,c){this.getPanes().hide().eq(d).show(),c.call()},fade:function(k,j){var n=this.getConf(),m=n.fadeOutSpeed,l=this.getPanes();m?l.fadeOut(m):l.hide(),l.eq(k).fadeIn(n.fadeInSpeed,j)},slide:function(d,c){this.getPanes().slideUp(200),this.getPanes().eq(d).slideDown(400,c)},ajax:function(d,c){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),c)}},h;f.tools.tabs.addEffect("horizontal",function(a,c){h||(h=this.getPanes().eq(0).width()),this.getCurrentPane().animate({width:0},function(){f(this).hide()}),this.getPanes().eq(a).animate({width:h},function(){f(this).show(),c.call()})});function g(q,o,n){var m=this,l=q.add(this),k=q.find(n.tabs),b=o.jquery?o:q.children(o),a;k.length||(k=q.children()),b.length||(b=q.parent().find(o)),b.length||(b=f(o)),f.extend(this,{click:function(t,s){var r=k.eq(t);typeof t=="string"&&t.replace("#","")&&(r=k.filter("[href*="+t.replace("#","")+"]"),t=Math.max(k.index(r),0));if(n.rotate){var j=k.length-1;if(t<0){return m.click(j,s)}if(t>j){return m.click(0,s)}}if(!r.length){if(a>=0){return m}t=n.initialIndex,r=k.eq(t)}if(t===a){return m}s=s||f.Event(),s.type="onBeforeClick",l.trigger(s,[t]);if(!s.isDefaultPrevented()){e[n.effect].call(m,t,function(){s.type="onClick",l.trigger(s,[t])}),a=t,k.removeClass(n.current),r.addClass(n.current);return m}},getConf:function(){return n},getTabs:function(){return k},getPanes:function(){return b},getCurrentPane:function(){return b.eq(a)},getCurrentTab:function(){return k.eq(a)},getIndex:function(){return a},next:function(){return m.click(a+1)},prev:function(){return m.click(a-1)},destroy:function(){k.unbind(n.event).removeClass(n.current),b.find("a[href^=#]").unbind("click.T");return m}}),f.each("onBeforeClick,onClick".split(","),function(d,j){f.isFunction(n[j])&&f(m).bind(j,n[j]),m[j]=function(c){c&&f(m).bind(j,c);return m}}),n.history&&f.fn.history&&(f.tools.history.init(k),n.event="history"),k.each(function(c){f(this).bind(n.event,function(d){m.click(c,d);return d.preventDefault()})}),b.find("a[href^=#]").bind("click.T",function(c){m.click(f(this).attr("href"),c)}),location.hash&&n.tabs=="a"&&q.find("[href="+location.hash+"]").length?m.click(location.hash):(n.initialIndex===0||n.initialIndex>0)&&m.click(n.initialIndex)}f.fn.tabs=function(a,j){var d=this.data("tabs");d&&(d.destroy(),this.removeData("tabs")),f.isFunction(j)&&(j={onBeforeClick:j}),j=f.extend({},f.tools.tabs.conf,j),this.each(function(){d=new g(f(this),a,j),f(this).data("tabs",d)});return j.api?d:this}})(jQuery);(function(s){s.tools=s.tools||{version:"v1.2.5"};var r;r=s.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:!0,closeOnEsc:!0,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};function q(){if(s.browser.msie){var a=s(document).height(),d=s(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[s(document).width(),s(document).height()]}function o(a){if(a){return a.call(s.mask)}}var n,m,l,k,j;s.mask={load:function(c,b){if(l){return this}typeof c=="string"&&(c={color:c}),c=c||k,k=c=s.extend(s.extend({},r.conf),c),n=s("#"+c.maskId),n.length||(n=s("<div/>").attr("id",c.maskId),s("body").append(n));var a=q();n.css({position:"absolute",top:0,left:0,width:a[0],height:a[1],display:"none",opacity:c.startOpacity,zIndex:c.zIndex}),c.color&&n.css("backgroundColor",c.color);if(o(c.onBeforeLoad)===!1){return this}c.closeOnEsc&&s(document).bind("keydown.mask",function(d){d.keyCode==27&&s.mask.close(d)}),c.closeOnClick&&n.bind("click.mask",function(d){s.mask.close(d)}),s(window).bind("resize.mask",function(){s.mask.fit()}),b&&b.length&&(j=b.eq(0).css("zIndex"),s.each(b,function(){var d=s(this);/relative|absolute|fixed/i.test(d.css("position"))||d.css("position","relative")}),m=b.css({zIndex:Math.max(c.zIndex+1,j=="auto"?0:j)})),n.css({display:"block"}).fadeTo(c.loadSpeed,c.opacity,function(){s.mask.fit(),o(c.onLoad),l="full"}),l=!0;return this},close:function(){if(l){if(o(k.onBeforeClose)===!1){return this}n.fadeOut(k.closeSpeed,function(){o(k.onClose),m&&m.css({zIndex:j}),l=!1}),s(document).unbind("keydown.mask"),n.unbind("click.mask"),s(window).unbind("resize.mask")}return this},fit:function(){if(l){var b=q();n.css({width:b[0],height:b[1]})}},getMask:function(){return n},isLoaded:function(b){return b?l=="full":l},getConf:function(){return k},getExposed:function(){return m}},s.fn.mask=function(a){s.mask.load(a);return this},s.fn.expose=function(a){s.mask.load(a,this);return this}})(jQuery);(function(f){f.tools=f.tools||{version:"v1.2.5"},f.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:!1,cancelDefault:!0,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(b,k,j){e[b]=[k,j]}};var e={toggle:[function(k){var j=this.getConf(),m=this.getTip(),l=j.opacity;l<1&&m.css({opacity:l}),m.show(),k.call()},function(b){this.getTip().hide(),b.call()}],fade:[function(d){var c=this.getConf();this.getTip().fadeTo(c.fadeInSpeed,c.opacity,d)},function(b){this.getTip().fadeOut(this.getConf().fadeOutSpeed,b)}]};function h(a,q,o){var n=o.relative?a.position().top:a.offset().top,m=o.relative?a.position().left:a.offset().left,l=o.position[0];n-=q.outerHeight()-o.offset[0],m+=a.outerWidth()+o.offset[1],/iPad/i.test(navigator.userAgent)&&(n-=f(window).scrollTop());var k=q.outerHeight()+a.outerHeight();l=="center"&&(n+=k/2),l=="bottom"&&(n+=k),l=o.position[1];var j=q.outerWidth()+a.outerWidth();l=="center"&&(m-=j/2),l=="left"&&(m-=j);return{top:n,left:m}}function g(D,C){var B=this,A=D.add(B),z,y=0,x=0,w=D.attr("title"),v=D.attr("data-tooltip"),u=e[C.effect],t,s=D.is(":input"),c=s&&D.is(":checkbox, :radio, select, :button, :submit"),b=D.attr("type"),a=C.events[b]||C.events[s?c?"widget":"input":"def"];if(!u){throw'Nonexistent effect "'+C.effect+'"'}a=a.split(/,\s*/);if(a.length!=2){throw"Tooltip: bad events configuration for "+b}D.bind(a[0],function(d){clearTimeout(y),C.predelay?x=setTimeout(function(){B.show(d)},C.predelay):B.show(d)}).bind(a[1],function(d){clearTimeout(x),C.delay?y=setTimeout(function(){B.hide(d)},C.delay):B.hide(d)}),w&&C.cancelDefault&&(D.removeAttr("title"),D.data("title",w)),f.extend(B,{show:function(d){if(!z){v?z=f(v):C.tip?z=f(C.tip).eq(0):w?z=f(C.layout).addClass(C.tipClass).appendTo(document.body).hide().append(w):(z=D.next(),z.length||(z=D.parent().next()));if(!z.length){throw"Cannot find tooltip for "+D}}if(B.isShown()){return B}z.stop(!0,!0);var k=h(D,z,C);C.tip&&z.html(D.data("title")),d=d||f.Event(),d.type="onBeforeShow",A.trigger(d,[k]);if(d.isDefaultPrevented()){return B}k=h(D,z,C),z.css({position:"absolute",top:k.top,left:k.left}),t=!0,u[0].call(B,function(){d.type="onShow",t="full",A.trigger(d)});var j=C.events.tooltip.split(/,\s*/);z.data("__set")||(z.bind(j[0],function(){clearTimeout(y),clearTimeout(x)}),j[1]&&!D.is("input:not(:checkbox, :radio), textarea")&&z.bind(j[1],function(l){l.relatedTarget!=D[0]&&D.trigger(a[1].split(" ")[0])}),z.data("__set",!0));return B},hide:function(d){if(!z||!B.isShown()){return B}d=d||f.Event(),d.type="onBeforeHide",A.trigger(d);if(!d.isDefaultPrevented()){t=!1,e[C.effect][1].call(B,function(){d.type="onHide",A.trigger(d)});return B}},isShown:function(d){return d?t=="full":t},getConf:function(){return C},getTip:function(){return z},getTrigger:function(){return D}}),f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,j){f.isFunction(C[j])&&f(B).bind(j,C[j]),B[j]=function(k){k&&f(B).bind(j,k);return B}})}f.fn.tooltip=function(a){var d=this.data("tooltip");if(d){return d}a=f.extend(!0,{},f.tools.tooltip.conf,a),typeof a.position=="string"&&(a.position=a.position.split(/,?\s/)),this.each(function(){d=new g(f(this),a),f(this).data("tooltip",d)});return a.api?d:this}})(jQuery);(function(f,c){var d=function(h){var g,j=[];for(g in h){if(/string|number/.test(typeof h[g])&&h[g]!==""){j.push(g+'="'+h[g]+'"')}}return j[a]("")},e=function(j){var g,l,k=[],h;if(typeof j=="object"){for(g in j){if(typeof j[g]=="object"){h=[];for(l in j[g]){h.push([l,"=",encodeURIComponent(j[g][l])][a](""))}j[g]=h[a]("&amp;")}if(j[g]){k.push(['<param name="',g,'" value="',j[g],'" />'][a](""))}}j=k[a]("")}return j},b=false,a="join";f[c]=(function(){try{var g="0,0,0",h=navigator.plugins["Shockwave Flash"]||ActiveXObject;g=h.description||(function(){try{return(new h("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(k){}}())}catch(j){}g=g.match(/^[A-Za-z\s]*?(\d+)[\.|,](\d+)(?:\s+[d|r]|,)(\d+)/);return{available:g[1]>0,activeX:h&&!h.name,version:{major:g[1]*1,minor:g[2]*1,release:g[3]*1},hasVersion:function(l){var o=this.version,m="major",n="minor",k="release";l=(/string|number/.test(typeof l))?l.toString().split("."):l||[0,0,0];l=[l[m]||l[0]||o[m],l[n]||l[1]||o[n],l[k]||l[2]||o[k]];return(l[0]<o[m])||(l[0]==o[m]&&l[1]<o[n])||(l[0]==o[m]&&l[1]==o[n]&&l[2]<=o[k])},expressInstall:"expressInstall.swf",create:function(k){if(!f[c].available||b||!typeof k=="object"||!k.swf){return false}if(k.hasVersion&&!f[c].hasVersion(k.hasVersion)){k={swf:k.expressInstall||f[c].expressInstall,attrs:{id:k.id||"SWFObjectExprInst",name:k.name,height:Math.max(k.height||137),width:Math.max(k.width||214)},params:{flashvars:{MMredirectURL:location.href,MMplayerType:(f[c].activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}};b=true}else{k=f.extend(true,{attrs:{id:k.id,name:k.name,height:k.height||180,width:k.width||320},params:{wmode:k.wmode||"opaque",flashvars:k.flashvars}},k)}if(f[c].activeX){k.attrs.classid=k.attrs.classid||"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";k.params.movie=k.params.movie||k.swf}else{k.attrs.type=k.attrs.classid||"application/x-shockwave-flash";k.attrs.data=k.attrs.data||k.swf}return["<object ",d(k.attrs),">",e(k.params),"</object>"][a]("")}}}());f.fn[c]=function(g){if(typeof g=="object"){this.each(function(){var j=document.createElement(c);var h=f[c].create(g);if(h){j.innerHTML=h;if(j.childNodes[0]){this.appendChild(j.childNodes[0])}}})}else{if(typeof g=="function"){this.find("object").andSelf().filter("object").each(function(){var j=this,h="jsInteractionTimeoutMs";j[h]=j[h]||0;if(j[h]<660){if(j.clientWidth||j.clientHeight){g.call(this)}else{setTimeout(function(){f(j)[c](g)},j[h]+66)}}})}}return this}}(jQuery,"flash"));(function(a){a.extend(a.fn,{validate:function(d){if(this.length){var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(d,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});c.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){c.submitButton=this});this.submit(function(f){function b(){if(c.settings.submitHandler){if(c.submitButton){var e=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);c.submitButton&&e.remove();return false}return true}c.settings.debug&&f.preventDefault();if(c.cancelSubmit){c.cancelSubmit=false;return b()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return b()}else{c.focusInvalid();return false}})}return c}else{d&&d.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")}},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var d=true,c=a(this[0].form).validate();this.each(function(){d&=c.element(this)});return d}},removeAttrs:function(e){var c={},f=this;a.each(e.split(/\s/),function(d,b){c[b]=f.attr(b);f.removeAttr(b)});return c},rules:function(j,c){var o=this[0];if(j){var n=a.data(o.form,"validator").settings,m=n.rules,l=a.validator.staticRules(o);switch(j){case"add":a.extend(l,a.validator.normalizeRule(c));m[o.name]=l;if(c.messages){n.messages[o.name]=a.extend(n.messages[o.name],c.messages)}break;case"remove":if(!c){delete m[o.name];return l}var k={};a.each(c.split(/\s/),function(b,d){k[d]=l[d];delete l[d]});return k}}o=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(o),a.validator.classRules(o),a.validator.attributeRules(o),a.validator.staticRules(o)),o);if(o.required){n=o.required;delete o.required;o=a.extend({required:n},o)}return o}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}});a.validator=function(d,c){this.settings=a.extend(true,{},a.validator.defaults,d);this.currentForm=c;this.init()};a.validator.format=function(d,c){if(arguments.length==1){return function(){var b=a.makeArray(arguments);b.unshift(d);return a.validator.format.apply(this,b)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(f,b){d=d.replace(RegExp("\\{"+f+"\\}","g"),b)});return d};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(b)).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}else{b.parentNode.name in this.submitted&&this.element(b.parentNode)}},highlight:function(e,c,f){e.type==="radio"?this.findByName(e.name).addClass(c).removeClass(f):a(e).addClass(c).removeClass(f)},unhighlight:function(e,c,f){e.type==="radio"?this.findByName(e.name).removeClass(c).addClass(f):a(e).removeClass(c).addClass(f)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function e(d){var b=a.data(this[0].form,"validator");d="on"+d.type.replace(/^validate/,"");b.settings[d]&&b.settings[d].call(b,this[0])}this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var c=this.groups={};a.each(this.settings.groups,function(d,b){a.each(b.split(/\s/),function(k,j){c[j]=d})});var f=this.settings.rules;a.each(f,function(d,b){f[d]=a.validator.normalizeRule(b)});a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",e).validateDelegate(":radio, :checkbox, select, option","click",e);this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var d=0,c=this.currentElements=this.elements();c[d];d++){this.check(c[d])}return this.valid()},element:function(d){this.lastElement=d=this.clean(d);this.prepareElement(d);this.currentElements=a(d);var c=this.check(d);if(c){delete this.invalid[d.name]}else{this.invalid[d.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return c},showErrors:function(d){if(d){a.extend(this.errorMap,d);this.errorList=[];for(var c in d){this.errorList.push({message:d[c],element:this.findByName(c)[0]})}this.successList=a.grep(this.successList,function(b){return !(b.name in d)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var c=0,f;for(f in e){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var d=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&d.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in c||!d.objectLength(a(this).rules())){return false}return c[this.name]=true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(j){j=this.clean(j);if(this.checkable(j)){j=this.findByName(j.name).not(this.settings.ignore)[0]}var c=a(j).rules(),o=false,n;for(n in c){var m={method:n,parameters:c[n]};try{var l=a.validator.methods[n].call(this,j.value.replace(/\r/g,""),j,m.parameters);if(l=="dependency-mismatch"){o=true}else{o=false;if(l=="pending"){this.toHide=this.toHide.not(this.errorsFor(j));return}if(!l){this.formatAndAdd(j,m);return false}}}catch(k){this.settings.debug&&window.console&&console.log("exception occured when checking element "+j.id+", check the '"+m.method+"' method",k);throw k}}if(!o){this.objectLength(c)&&this.successList.push(j);return true}},customMetaMessage:function(e,c){if(a.metadata){var f=this.settings.meta?a(e).metadata()[this.settings.meta]:a(e).metadata();return f&&f.messages&&f.messages[c]}},customMessage:function(e,c){var f=this.settings.messages[e];return f&&(f.constructor==String?f:f[c])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}},defaultMessage:function(d,c){return this.findDefined(this.customMessage(d.name,c),this.customMetaMessage(d,c),!this.settings.ignoreTitle&&d.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+d.name+"</strong>")},formatAndAdd:function(f,c){var h=this.defaultMessage(f,c.method),g=/\$?\{(\d+)\}/g;if(typeof h=="function"){h=h.call(this,c.parameters,f)}else{if(g.test(h)){h=jQuery.format(h.replace(g,"{$1}"),c.parameters)}}this.errorList.push({message:h,element:f});this.errorMap[f.name]=h;this.submitted[f.name]=h},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var d=0;this.errorList[d];d++){var c=this.errorList[d];this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass);this.showLabel(c.element,c.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(d=0;this.successList[d];d++){this.showLabel(this.successList[d])}}if(this.settings.unhighlight){d=0;for(c=this.validElements();c[d];d++){this.settings.unhighlight.call(this,c[d],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(e,c){var f=this.errorsFor(e);if(f.length){f.removeClass().addClass(this.settings.errorClass);f.attr("generated")&&f.html(c)}else{f=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(e),generated:true}).addClass(this.settings.errorClass).html(c||"");if(this.settings.wrapper){f=f.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}this.labelContainer.append(f).length||(this.settings.errorPlacement?this.settings.errorPlacement(f,a(e)):f.insertAfter(e))}if(!c&&this.settings.success){f.text("");typeof this.settings.success=="string"?f.addClass(this.settings.success):this.settings.success(f)}this.toShow=this.toShow.add(f)},errorsFor:function(d){var c=this.idOrName(d);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(d){var c=this.currentForm;return a(document.getElementsByName(d)).map(function(f,b){return b.form==c&&b.name==d&&b||null})},getLength:function(d,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c)){return this.findByName(c.name).filter(":checked").length}}return d.length},depend:function(d,c){return this.dependTypes[typeof d]?this.dependTypes[typeof d](d,c):true},dependTypes:{"boolean":function(b){return b},string:function(d,c){return !!a(d,c.form).length},"function":function(d,c){return d(c)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(d,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[d.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(d,c){d.constructor==String?this.classRuleSettings[d]=c:a.extend(this.classRuleSettings,d)},classRules:function(d){var c={};(d=a(d).attr("class"))&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])});return c},attributeRules:function(f){var c={};f=a(f);for(var h in a.validator.methods){var g=f.attr(h);if(g){c[h]=g}}c.maxlength&&/-1|2147483647|524288/.test(c.maxlength)&&delete c.maxlength;return c},metadataRules:function(d){if(!a.metadata){return{}}var c=a.data(d.form,"validator").settings.meta;return c?a(d).metadata()[c]:a(d).metadata()},staticRules:function(e){var c={},f=a.data(e.form,"validator");if(f.settings.rules){c=a.validator.normalizeRule(f.settings.rules[e.name])||{}}return c},normalizeRules:function(d,c){a.each(d,function(h,g){if(g===false){delete d[h]}else{if(g.param||g.depends){var b=true;switch(typeof g.depends){case"string":b=!!a(g.depends,c.form).length;break;case"function":b=g.depends.call(c,c)}if(b){d[h]=g.param!==undefined?g.param:true}else{delete d[h]}}}});a.each(d,function(f,b){d[f]=a.isFunction(b)?b(c):b});a.each(["minlength","maxlength","min","max"],function(){if(d[this]){d[this]=Number(d[this])}});a.each(["rangelength","range"],function(){if(d[this]){d[this]=[Number(d[this][0]),Number(d[this][1])]}});if(a.validator.autoCreateRanges){if(d.min&&d.max){d.range=[d.min,d.max];delete d.min;delete d.max}if(d.minlength&&d.maxlength){d.rangelength=[d.minlength,d.maxlength];delete d.minlength;delete d.maxlength}}d.messages&&delete d.messages;return d},normalizeRule:function(d){if(typeof d=="string"){var c={};a.each(d.split(/\s/),function(){c[this]=true});d=c}return d},addMethod:function(e,c,f){a.validator.methods[e]=c;a.validator.messages[e]=f!=undefined?f:a.validator.messages[e];c.length<3&&a.validator.addClassRules(e,a.validator.normalizeRule(e))},methods:{required:function(e,c,f){if(!this.depend(f,c)){return"dependency-mismatch"}switch(c.nodeName.toLowerCase()){case"select":return(e=a(c).val())&&e.length>0;case"input":if(this.checkable(c)){return this.getLength(e,c)>0}default:return a.trim(e).length>0}},remote:function(h,c,m){if(this.optional(c)){return"dependency-mismatch"}var l=this.previousValue(c);this.settings.messages[c.name]||(this.settings.messages[c.name]={});l.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=l.message;m=typeof m=="string"&&{url:m}||m;if(this.pending[c.name]){return"pending"}if(l.old===h){return l.valid}l.old=h;var k=this;this.startRequest(c);var j={};j[c.name]=h;a.ajax(a.extend(true,{url:m,mode:"abort",port:"validate"+c.name,dataType:"json",data:j,success:function(e){k.settings.messages[c.name].remote=l.originalMessage;var b=e===true;if(b){var d=k.formSubmitted;k.prepareElement(c);k.formSubmitted=d;k.successList.push(c);k.showErrors()}else{d={};e=e||k.defaultMessage(c,"remote");d[c.name]=l.message=a.isFunction(e)?e(h):e;k.showErrors(d)}l.valid=b;k.stopRequest(c,b)}},m));return"pending"},minlength:function(e,c,f){return this.optional(c)||this.getLength(a.trim(e),c)>=f},maxlength:function(e,c,f){return this.optional(c)||this.getLength(a.trim(e),c)<=f},rangelength:function(e,c,f){e=this.getLength(a.trim(e),c);return this.optional(c)||e>=f[0]&&e<=f[1]},min:function(e,c,f){return this.optional(c)||e>=f},max:function(e,c,f){return this.optional(c)||e<=f},range:function(e,c,f){return this.optional(c)||e>=f[0]&&e<=f[1]},email:function(d,c){return this.optional(c)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(d)},url:function(d,c){return this.optional(c)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(d)},date:function(d,c){return this.optional(c)||!/Invalid|NaN/.test(new Date(d))},dateISO:function(d,c){return this.optional(c)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(d)},number:function(d,c){return this.optional(c)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(d)},digits:function(d,c){return this.optional(c)||/^\d+$/.test(d)},creditcard:function(h,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(h)){return false}var m=0,l=0,k=false;h=h.replace(/\D/g,"");for(var j=h.length-1;j>=0;j--){l=h.charAt(j);l=parseInt(l,10);if(k){if((l*=2)>9){l-=9}}m+=l;k=!k}return m%10==0},accept:function(e,c,f){f=typeof f=="string"?f.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(c)||e.match(RegExp(".("+f+")$","i"))},equalTo:function(e,c,f){f=a(f).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()});return e==f.val()}}});a.format=a.validator.format})(jQuery);(function(f){var e={};if(f.ajaxPrefilter){f.ajaxPrefilter(function(c,b,a){b=c.port;if(c.mode=="abort"){e[b]&&e[b].abort();e[b]=a}})}else{var d=f.ajax;f.ajax=function(b){var a=("port" in b?b:f.ajaxSettings).port;if(("mode" in b?b:f.ajaxSettings).mode=="abort"){e[a]&&e[a].abort();return e[a]=d.apply(this,arguments)}return d.apply(this,arguments)}}})(jQuery);(function(a){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(e,c){function f(b){b=a.event.fix(b);b.type=c;return a.event.handle.call(this,b)}a.event.special[c]={setup:function(){this.addEventListener(e,f,true)},teardown:function(){this.removeEventListener(e,f,true)},handler:function(b){arguments[0]=a.event.fix(b);arguments[0].type=c;return a.event.handle.apply(this,arguments)}}});a.extend(a.fn,{validateDelegate:function(e,c,f){return this.bind(c,function(d){var b=a(d.target);if(b.is(e)){return f.apply(b,arguments)}})}})})(jQuery);
/*
 * jQuery Form Plugin
 * version: 2.81 (04-JUN-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(w){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof w=="function"){w={success:w}}var h=this.attr("action");var d=(typeof h==="string")?b.trim(h):"";d=d||window.location.href||"";if(d){d=(d.match(/^([^#]+)/)||[])[1]}w=b.extend(true,{url:d,success:b.ajaxSettings.success,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},w);var x={};this.trigger("form-pre-serialize",[this,w,x]);if(x.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(w.beforeSerialize&&w.beforeSerialize(this,w)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var f,s,o=this.formToArray(w.semantic);if(w.data){w.extraData=w.data;for(f in w.data){if(w.data[f] instanceof Array){for(var j in w.data[f]){o.push({name:f,value:w.data[f][j]})}}else{s=w.data[f];s=b.isFunction(s)?s():s;o.push({name:f,value:s})}}}if(w.beforeSubmit&&w.beforeSubmit(o,this,w)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[o,this,w,x]);if(x.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var c=b.param(o);if(w.type.toUpperCase()=="GET"){w.url+=(w.url.indexOf("?")>=0?"&":"?")+c;w.data=null}else{w.data=c}var u=this,m=[];if(w.resetForm){m.push(function(){u.resetForm()})}if(w.clearForm){m.push(function(){u.clearForm()})}if(!w.dataType&&w.target){var t=w.success||function(){};m.push(function(n){var k=w.replaceTarget?"replaceWith":"html";b(w.target)[k](n).each(t,arguments)})}else{if(w.success){m.push(w.success)}}w.success=function(y,n,z){var v=w.context||w;for(var q=0,k=m.length;q<k;q++){m[q].apply(v,[y,n,z||u,u])}};var g=b("input:file",this).length>0;var e="multipart/form-data";var l=(u.attr("enctype")==e||u.attr("encoding")==e);if(w.iframe!==false&&(g||w.iframe||l)){if(w.closeKeepAlive){b.get(w.closeKeepAlive,function(){r(o)})}else{r(o)}}else{b.ajax(w)}this.trigger("form-submit-notify",[this,w]);return this;function r(R){var v=u[0],N,H,P,K,z,C,A,B,L,O,F;if(R){for(N=0;N<R.length;N++){b(v[R[N].name]).attr("disabled",false)}}if(b(":input[name=submit],:input[id=submit]",v).length){alert('Error: Form elements must not have name or id of "submit".');return}H=b.extend(true,{},b.ajaxSettings,w);H.context=H.context||H;K="jqFormIO"+(new Date().getTime());if(H.iframeTarget){z=b(H.iframeTarget);L=z.attr("name");if(L==null){z.attr("name",K)}else{K=L}}else{z=b('<iframe name="'+K+'" src="'+H.iframeSrc+'" />');z.css({position:"absolute",top:"-1000px",left:"-1000px"})}C=z[0];A={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(n){var U=(n==="timeout"?"timeout":"aborted");a("aborting upload... "+U);this.aborted=1;z.attr("src",H.iframeSrc);A.error=U;H.error&&H.error.call(H.context,A,U,n);P&&b.event.trigger("ajaxError",[A,H,U]);H.complete&&H.complete.call(H.context,A,U)}};P=H.global;if(P&&!b.active++){b.event.trigger("ajaxStart")}if(P){b.event.trigger("ajaxSend",[A,H])}if(H.beforeSend&&H.beforeSend.call(H.context,A,H)===false){if(H.global){b.active--}return}if(A.aborted){return}B=v.clk;if(B){L=B.name;if(L&&!B.disabled){H.extraData=H.extraData||{};H.extraData[L]=B.value;if(B.type=="image"){H.extraData[L+".x"]=v.clk_x;H.extraData[L+".y"]=v.clk_y}}}var G=1;var D=2;function E(U){var n=U.contentWindow?U.contentWindow.document:U.contentDocument?U.contentDocument:U.document;return n}function M(){var W=u.attr("target"),U=u.attr("action");v.setAttribute("target",K);if(v.getAttribute("method")!="POST"){v.setAttribute("method","POST")}if(v.getAttribute("action")!=H.url){v.setAttribute("action",H.url)}if(!H.skipEncodingOverride){u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(H.timeout){F=setTimeout(function(){O=true;J(G)},H.timeout)}function X(){try{var n=E(C).readyState;a("state = "+n);if(n.toLowerCase()=="uninitialized"){setTimeout(X,50)}}catch(Z){a("Server abort: ",Z," (",Z.name,")");J(D);F&&clearTimeout(F);F=undefined}}var V=[];try{if(H.extraData){for(var Y in H.extraData){V.push(b('<input type="hidden" name="'+Y+'" />').attr("value",H.extraData[Y]).appendTo(v)[0])}}if(!H.iframeTarget){z.appendTo("body");C.attachEvent?C.attachEvent("onload",J):C.addEventListener("load",J,false)}setTimeout(X,15);v.submit()}finally{v.setAttribute("action",U);if(W){v.setAttribute("target",W)}else{u.removeAttr("target")}b(V).remove()}}if(H.forceSync){M()}else{setTimeout(M,10)}var S,T,Q=50,y;function J(Y){if(A.aborted||y){return}try{T=E(C)}catch(ab){a("cannot access response document: ",ab);Y=D}if(Y===G&&A){A.abort("timeout");return}else{if(Y==D&&A){A.abort("server abort");return}}if(!T||T.location.href==H.iframeSrc){if(!O){return}}C.detachEvent?C.detachEvent("onload",J):C.removeEventListener("load",J,false);var W="success",aa;try{if(O){throw"timeout"}var V=H.dataType=="xml"||T.XMLDocument||b.isXMLDoc(T);a("isXml="+V);if(!V&&window.opera&&(T.body==null||T.body.innerHTML=="")){if(--Q){a("requeing onLoad callback, DOM not available");setTimeout(J,250);return}}var ac=T.body?T.body:T.documentElement;A.responseText=ac?ac.innerHTML:null;A.responseXML=T.XMLDocument?T.XMLDocument:T;if(V){H.dataType="xml"}A.getResponseHeader=function(af){var ae={"content-type":H.dataType};return ae[af]};if(ac){A.status=Number(ac.getAttribute("status"))||A.status;A.statusText=ac.getAttribute("statusText")||A.statusText}var n=H.dataType||"";var Z=/(json|script|text)/.test(n.toLowerCase());if(Z||H.textarea){var X=T.getElementsByTagName("textarea")[0];if(X){A.responseText=X.value;A.status=Number(X.getAttribute("status"))||A.status;A.statusText=X.getAttribute("statusText")||A.statusText}else{if(Z){var U=T.getElementsByTagName("pre")[0];var ad=T.getElementsByTagName("body")[0];if(U){A.responseText=U.textContent?U.textContent:U.innerHTML}else{if(ad){A.responseText=ad.innerHTML}}}}}else{if(H.dataType=="xml"&&!A.responseXML&&A.responseText!=null){A.responseXML=I(A.responseText)}}try{S=k(A,H.dataType,H)}catch(Y){W="parsererror";A.error=aa=(Y||W)}}catch(Y){a("error caught: ",Y);W="error";A.error=aa=(Y||W)}if(A.aborted){a("upload aborted");W=null}if(A.status){W=(A.status>=200&&A.status<300||A.status===304)?"success":"error"}if(W==="success"){H.success&&H.success.call(H.context,S,"success",A);P&&b.event.trigger("ajaxSuccess",[A,H])}else{if(W){if(aa==undefined){aa=A.statusText}H.error&&H.error.call(H.context,A,W,aa);P&&b.event.trigger("ajaxError",[A,H,aa])}}P&&b.event.trigger("ajaxComplete",[A,H]);if(P&&!--b.active){b.event.trigger("ajaxStop")}H.complete&&H.complete.call(H.context,A,W);y=true;if(H.timeout){clearTimeout(F)}setTimeout(function(){if(!H.iframeTarget){z.remove()}A.responseXML=null},100)}var I=b.parseXML||function(n,U){if(window.ActiveXObject){U=new ActiveXObject("Microsoft.XMLDOM");U.async="false";U.loadXML(n)}else{U=(new DOMParser()).parseFromString(n,"text/xml")}return(U&&U.documentElement&&U.documentElement.nodeName!="parsererror")?U:null};var q=b.parseJSON||function(n){return window["eval"]("("+n+")")};var k=function(Y,W,V){var U=Y.getResponseHeader("content-type")||"",n=W==="xml"||!W&&U.indexOf("xml")>=0,X=n?Y.responseXML:Y.responseText;if(n&&X.documentElement.nodeName==="parsererror"){b.error&&b.error("parsererror")}if(V&&V.dataFilter){X=V.dataFilter(X,W)}if(typeof X==="string"){if(W==="json"||!W&&U.indexOf("json")>=0){X=q(X)}else{if(W==="script"||!W&&U.indexOf("javascript")>=0){b.globalEval(X)}}}return X}}};b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");b(function(){b(d.s,d.c).ajaxForm(c)});return this}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();b(this).ajaxSubmit(c)}}).bind("click.form-plugin",function(k){var j=k.target;var g=b(j);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return}j=f[0]}var h=this;h.clk=j;if(j.type=="image"){if(k.offsetX!=undefined){h.clk_x=k.offsetX;h.clk_y=k.offsetY}else{if(typeof b.fn.offset=="function"){var l=g.offset();h.clk_x=k.pageX-l.left;h.clk_y=k.pageY-l.top}else{h.clk_x=k.pageX-j.offsetLeft;h.clk_y=k.pageY-j.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(r){var q=[];if(this.length===0){return q}var d=this[0];var g=r?d.getElementsByTagName("*"):d.elements;if(!g){return q}var k,h,f,s,e,m,c;for(k=0,m=g.length;k<m;k++){e=g[k];f=e.name;if(!f){continue}if(r&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){q.push({name:f,value:b(e).val()});q.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}s=b.fieldValue(e,true);if(s&&s.constructor==Array){for(h=0,c=s.length;h<c;h++){q.push({name:f,value:s[h]})}}else{if(s!==null&&typeof s!="undefined"){q.push({name:f,value:s})}}}if(!r&&d.clk){var l=b(d.clk),o=l[0];f=o.name;if(f&&!o.disabled&&o.type=="image"){q.push({name:f,value:l.val()});q.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return q};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,q=c.type,r=c.tagName.toLowerCase();if(j===undefined){j=true}if(j&&(!e||c.disabled||q=="reset"||q=="button"||(q=="checkbox"||q=="radio")&&!c.checked||(q=="submit"||q=="image")&&c.form&&c.form.clk!=c||r=="select"&&c.selectedIndex==-1)){return null}if(r=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(q=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return b(c).val()};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c===undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c===undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c)}else{if(window.opera&&window.opera.postError){window.opera.postError(c)}}}})(jQuery);(function(d){var f={put:function(h,g){(g||window).location.hash=this.encoder(h)},get:function(j){var h=((j||window).location.hash).replace(/^#/,"");try{return d.browser.mozilla?h:decodeURIComponent(h)}catch(g){return h}},encoder:encodeURIComponent};var c={id:"__jQuery_history",init:function(){var g='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';d("body").prepend(g);return this},_document:function(){return d("#"+this.id)[0].contentWindow.document},put:function(h){var g=this._document();g.open();g.close();f.put(h,g)},get:function(){return f.get(this._document())}};function e(h){h=d.extend({unescape:false},h||{});f.encoder=j(h.unescape);function j(k){if(k===true){return function(l){return l}}if(typeof k=="string"&&(k=g(k.split("")))||typeof k=="function"){return function(l){return k(encodeURIComponent(l))}}return encodeURIComponent}function g(l){var k=new RegExp(d.map(l,encodeURIComponent).join("|"),"ig");return function(m){return m.replace(k,decodeURIComponent)}}}var b={};b.base={callback:undefined,type:undefined,check:function(){},load:function(g){},init:function(h,g){e(g);a.callback=h;a._options=g;a._init()},_init:function(){},_options:{}};b.timer={_appState:undefined,_init:function(){var g=f.get();a._appState=g;a.callback(g);setInterval(a.check,100)},check:function(){var g=f.get();if(g!=a._appState){a._appState=g;a.callback(g)}},load:function(g){if(g!=a._appState){f.put(g);a._appState=g;a.callback(g)}}};b.iframeTimer={_appState:undefined,_init:function(){var g=f.get();a._appState=g;c.init().put(g);a.callback(g);setInterval(a.check,100)},check:function(){var h=c.get(),g=f.get();if(g!=h){if(g==a._appState){a._appState=h;f.put(h);a.callback(h)}else{a._appState=g;c.put(g);a.callback(g)}}},load:function(g){if(g!=a._appState){f.put(g);c.put(g);a._appState=g;a.callback(g)}}};b.hashchangeEvent={_init:function(){a.callback(f.get());d(window).bind("hashchange",a.check)},check:function(){a.callback(f.get())},load:function(g){f.put(g)}};var a=d.extend({},b.base);if(d.browser.msie&&(d.browser.version<8||document.documentMode<8)){a.type="iframeTimer"}else{if("onhashchange" in window){a.type="hashchangeEvent"}else{a.type="timer"}}d.extend(a,b[a.type]);d.history=a})(jQuery);(function(a){a.fn.infoTruncate=function(e){var f=a.extend({},a.fn.infoTruncate.defaults,e),c;return this.each(function(g){c=a(this);if(f.max_lines!==null){b(c)}if(f.max_chars!==null){d(c)}});function b(g){var k=g.clone().insertAfter(g).text("i");var j=parseInt(k.height())*f.max_lines;k.remove();if(g.height()>j){g.css({height:j+"px",overflow:"hidden"})}}function d(g){var h=g.text();if(h.length>f.max_chars){h=""+h.substr(0,f.max_chars-2)+f.token;g.text(h)}}};a.fn.infoTruncate.defaults={max_lines:null,max_chars:null,token:"..."}})(jQuery);$(document).ready(function(){var e=$(window);var b=$(".disciplines.content-left");var d=$(".disciplines.content-right");$(".content-left, .content-right").bind("inview",function(f,g){if(g==true){$(this).addClass("inview")}else{$(this).removeClass("inview")}});function a(){var f=e.scrollTop()/$(document).height();return Math.round(f*0.75*$(window).height())}function c(){var f=a();b.css({backgroundPosition:"100% "+f+"px"});d.css({backgroundPosition:"0 "+f+"px"})}e.bind("scroll resize",function(){c()}).trigger("scroll")});var Base=function(e){var c=[];function d(){for(var f=0;f<c.length;f++){c[f]()}}function b(){if(e){if(!window.XMLHttpRequest){Base.ieVersion=6}if(e("html.ie7").length){Base.ieVersion=7}if(e("html.ie8").length){Base.ieVersion=8}if(Base.ieVersion==7||Base.ieVersion==8){a(e(this).width());e(window).resize(function(){a(e(this).width())})}}}function a(f){f=parseInt(f);if(f<320){e("#size-stylesheet").attr("href","/info2011/static/css/layout320.css")}else{if((f>=320)&&(f<640)){e("#size-stylesheet").attr("href","/info2011/static/css/layout600.css")}else{if((f>=640)&&(f<1024)){e("#size-stylesheet").attr("href","/info2011/static/css/layout960.css")}else{}}}}return{register:function(f){c.push(f)},log:function(){if(typeof console=="object"){console.log(arguments)}},init:function(){b();d();if(e("body").hasClass("address")){Base.GmapsContact.init()}}}}(jQuery);jQuery(document).ready(function(){Base.init()});
