(function(){if(typeof (screen.fontSmoothingEnabled)!="undefined"&&!screen.fontSmoothingEnabled){return 
}var d=document,e=d.documentElement,s=d.createElement("style");var h=document.getElementsByTagName("html")[0];
var c=h.className===""?"wf-loading":" wf-loading";h.className+=c;function f(){h.className=h.className.replace(c,"")
}if(window.attachEvent){window.attachEvent("onload",f)}else{if(addEventListener){addEventListener("load",f,false)
}}setTimeout(f,3000)})();var vi={version:"1.0"};if(vi.Info!==undefined){if(window.console&&window.console.log){window.console.log(vi.Info,"[Info] variable collision: Info already defined")
}}vi.Info=new function(){var userAgent=navigator.userAgent.toLowerCase();function is(str){return userAgent.indexOf(str)>-1
}function version(){var versionString="";var specificOffset=0;var specificLength=1;
if(b.isIE){versionString="msie";specificOffset=1}if(b.isFirefox){versionString="firefox/";
specificLength=3}if(b.isSafari){versionString="version/"}if(b.isChrome){versionString="chrome/"
}if(b.isOpera){versionString="version/";specificLength=2;if(userAgent.indexOf(versionString)==-1){versionString="opera/";
specificLength=1}}return parseFloat((userAgent.substr(userAgent.indexOf(versionString)+versionString.length+specificOffset,specificLength)))
}var b={};b.isOpera=typeof window.opera!="undefined";b.isIE=is("msie")&&b.isOpera===false;
b.isWebkit=is("webkit");b.isChrome=is("chrome");b.isSafari=is("safari")&&(b.isChrome===false)&&is("version");
b.isMozilla=is("gecko")&&b.isWebkit===false&&b.isSafari===false&&b.isChrome===false&&b.isOpera===false;
b.isFirefox=b.isMozilla===true&&is("firefox");b.isKonqueror=typeof navigator.product=="string"&&navigator.product.toLowerCase().indexOf("konqueror")>-1;
this.browser=b;b.version=version();if(b.version===0||isNaN(b.version)){b.version=false
}b.isSafari3=b.isSafari&&(b.version==3);b.isSafariGte3=b.isSafari&&(b.version>=3);
b.isIE7=b.isIE&&(b.version==7);b.isIEpre9=b.isIE&&(b.version<9);b.isIEpre8=b.isIE&&(b.version<8);
b.isIEpre7=b.isIE&&(b.version<7);b.isIEpre6=b.isIE&&(b.version<6);var os={};os.isLinux=(navigator.platform.indexOf("Linux")===0);
os.isMac=(navigator.platform.indexOf("Mac")===0);os.isWin=(navigator.platform.indexOf("Win")===0);
this.os=os;if(this.os.isWin){this.os.winVersion=parseFloat(userAgent.substr(userAgent.indexOf("nt")+3,3))
}this.hasTransparencySupport=true;if(this.os.isLinux||this.browser.isKonqueror||(this.os.isMac&&!this.browser.isSafariGte3)){this.hasTransparencySupport=false
}function setCss(){var h=document.getElementsByTagName("html")[0],classes=[(b.isIE?("ie ie"+b.version):b.isFirefox?("firefox firefox"+(b.version.toString().replace(/\./ig,""))):b.isChrome?("chrome chrome"+b.version):b.isSafari?("safari safari"+b.version):b.isOpera?("opera opera"+b.version):""),(b.isMozilla?"gecko":b.isWebkit?"webkit":""),(os.isWin?"win":os.isMac?"mac":os.isLinux?"linux":""),"js"];
h.className+=h.className===""?classes.join(" "):" "+classes.join(" ");return classes
}setCss();this.hasFlash=false};if(window.createPopup&&document.compatMode&&document.compatMode=="CSS1Compat"&&!window.XMLHttpRequest){try{document.execCommand("BackgroundImageCache",false,true)
}catch(e){}
/*
 * jQuery JavaScript Library v1.4.4
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Nov 11 19:04:53 2010 -0500
 */
}(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);
if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d
}catch(e){}c.data(a,b,d)}else{d=B}}return d}function U(){return false}function ca(){return true
}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];
f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function"){h=h.events
}if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace){A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")
}a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)
}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;
k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;
e=null;if(h.preType==="mouseenter"||h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]
}if(!e||e!==l){C.push({elem:l,handleObj:h,level:r.level})}}}}o=0;for(x=C.length;o<x;
o++){f=C[o];if(d&&f.level>d){break}a.currentTarget=f.elem;a.data=f.handleObj.data;
a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;
if(A===false){b=false}if(a.isImmediatePropagationStopped()){break}}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,"`").replace(Ma,"&")
}function ma(a,b,d){if(c.isFunction(b)){return c.grep(a,function(f,h){return !!b.call(f,h,f)===d
})}else{if(b.nodeType){return c.grep(a,function(f){return f===b===d})}else{if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1
});if(Na.test(b)){return c.filter(b,e,!d)}else{b=c.filter(b,e)}}}}return c.grep(a,function(f){return c.inArray(f,b)>=0===d
})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,e);
if(e=e&&e.events){delete f.handle;f.events={};for(var h in e){for(var l in e[h]){c.event.add(this,h,e[h][l],e[h][l].data)
}}}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");
b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;
if(d==="border"){return e}c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);
if(d==="margin"){e+=parseFloat(c.css(a,"margin"+this))||0}else{e-=parseFloat(c.css(a,"border"+this+"Width"))||0
}});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length){c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)
})}else{if(!d&&b!=null&&typeof b==="object"){c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)
})}else{e(a,b)}}}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a
});return d}function qa(a){if(!ea[a]){var b=c("<"+a+">").appendTo("body"),d=b.css("display");
b.remove();if(d==="none"||d===""){d="block"}ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false
}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")
}catch(j){setTimeout(a,1);return }b.ready()}}var b=function(j,s){return new b.fn.init(j,s)
},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};
b.fn=b.prototype={init:function(j,s){var v,z,H;if(!j){return this}if(j.nodeType){this.context=this[0]=j;
this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;
this.selector="body";this.length=1;return this}if(typeof j==="string"){if((v=h.exec(j))&&(v[1]||!s)){if(v[1]){H=s?s.ownerDocument||s:t;
if(z=A.exec(j)){if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)
}else{j=[H.createElement(z[1])]}}else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes
}return b.merge(this,j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2]){return f.find(j)
}this.length=1;this[0]=z}this.context=t;this.selector=j;return this}}else{if(!s&&!x.test(j)){this.selector=j;
this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else{return !s||s.jquery?(s||f).find(j):b(s).find(j)
}}}else{if(b.isFunction(j)){return f.ready(j)}}if(j.selector!==B){this.selector=j.selector;
this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length
},toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]
},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;
z.context=this.context;if(s==="find"){z.selector=this.selector+(this.selector?" ":"")+v
}else{if(s){z.selector=this.selector+"."+s+"("+v+")"}}return z},each:function(j,s){return b.each(this,j,s)
},ready:function(j){b.bindReady();if(b.isReady){j.call(t,b)}else{q&&q.push(j)}return this
},eq:function(j){return j===-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)
},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))
},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)
}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};
b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G)){G={}
}if(Q===K){G=this;--K}for(;K<Q;K++){if((j=arguments[K])!=null){for(s in j){v=G[s];
z=j[s];if(G!==z){if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;
v=v&&b.isArray(v)?v:[]}else{v=v&&b.isPlainObject(v)?v:{}}G[s]=b.extend(ga,v,z)}else{if(z!==B){G[s]=z
}}}}}}return G};b.extend({noConflict:function(j){E.$=e;if(j){E.jQuery=d}return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
if(!b.readyWait||j!==true&&!b.isReady){if(!t.body){return setTimeout(b.ready,1)}b.isReady=true;
if(!(j!==true&&--b.readyWait>0)){if(q){var s=0,v=q;for(q=null;j=v[s++];){j.call(t,b)
}b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}}},bindReady:function(){if(!p){p=true;
if(t.readyState==="complete"){return setTimeout(b.ready,1)}if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);
E.addEventListener("load",b.ready,false)}else{if(t.attachEvent){t.attachEvent("onreadystatechange",u);
E.attachEvent("onload",b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()
}}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"
},isWindow:function(j){return j&&typeof j==="object"&&"setInterval" in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)
},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j)){return false
}if(j.constructor&&!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf")){return false
}for(var s in j){}return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j){return false
}return true},error:function(j){throw j},parseJSON:function(j){if(typeof j!=="string"||!j){return null
}j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,""))){return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))()
}else{b.error("Invalid JSON: "+j)}},noop:function(){},globalEval:function(j){if(j&&l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");
v.type="text/javascript";if(b.support.scriptEval){v.appendChild(t.createTextNode(j))
}else{v.text=j}s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()
},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v){if(K){for(z in j){if(s.apply(j[z],v)===false){break
}}}else{for(;H<G;){if(s.apply(j[H++],v)===false){break}}}}else{if(K){for(z in j){if(s.call(j[z],z,j[z])===false){break
}}}else{for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]){}}}return j},trim:O?function(j){return j==null?"":O.call(j)
}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];
if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)
}return v},inArray:function(j,s){if(s.indexOf){return s.indexOf(j)}for(var v=0,z=s.length;
v<z;v++){if(s[v]===j){return v}}return -1},merge:function(j,s){var v=j.length,z=0;
if(typeof s.length==="number"){for(var H=s.length;z<H;z++){j[v++]=s[z]}}else{for(;
s[z]!==B;){j[v++]=s[z++]}}j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;
for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;
G<K;G++){H=s(j[G],G,v);if(H!=null){z[z.length]=H}}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2){if(typeof s==="string"){v=j;
j=v[s];s=B}else{if(s&&!b.isFunction(s)){v=s;s=B}}}if(!s&&j){s=function(){return j.apply(v||this,arguments)
}}if(j){s.guid=j.guid=j.guid||s.guid||b.guid++}return s},access:function(j,s,v,z,H,G){var K=j.length;
if(typeof s==="object"){for(var Q in s){b.access(j,Q,s[Q],z,H,v)}return j}if(v!==B){z=!G&&z&&b.isFunction(v);
for(Q=0;Q<K;Q++){H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G)}return j}return K?H(j[0],s):B
},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();
j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||[];return{browser:j[1]||"",version:j[2]||"0"}
},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()
});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version
}if(b.browser.webkit){b.browser.safari=true}if(D){b.inArray=function(j,s){return D.call(s,j)
}}if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener){u=function(){t.removeEventListener("DOMContentLoaded",u,false);
b.ready()}}else{if(t.attachEvent){u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);
b.ready()}}}}return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();
d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),k=l.appendChild(t.createElement("option"));
if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};
l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))
}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]
}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=false;
d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");
d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();
a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;
c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";
t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom" in r.style){r.style.display="inline";
r.style.zoom=1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";
r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2
}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;
A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;
r.innerHTML="";t.body.removeChild(r).style.display="none"});a=function(r){var A=t.createElement("div");
r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"
}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");
a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;
var e=a.nodeType,f=e?a[c.expando]:null,h=c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e){f||(a[c.expando]=f=++c.uuid)
}else{h=a}if(typeof b==="object"){if(e){h[f]=c.extend(h[f],b)}else{c.extend(h,b)}}else{if(e&&!h[f]){h[f]={}
}}a=e?h[f]:h;if(d!==B){a[b]=d}return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;
var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];
d&&c.isEmptyObject(h)&&c.removeData(a)}}else{if(d&&c.support.deleteExpando){delete a[c.expando]
}else{if(a.removeAttribute){a.removeAttribute(c.expando)}else{if(d){delete f[e]}else{for(var l in a){delete a[l]
}}}}}}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];
if(b){return !(b===true||a.getAttribute("classid")!==b)}}return true}});c.fn.extend({data:function(a,b){var d=null;
if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);
for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);
ka(this[0],f,d[f])}}}return d}else{if(typeof a==="object"){return this.each(function(){c.data(this,a)
})}}var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);
if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d
}else{return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);
c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})}},removeData:function(a){return this.each(function(){c.removeData(this,a)
})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);
if(!d){return e||[]}if(!e||c.isArray(d)){e=c.data(a,b,c.makeArray(d))}else{e.push(d)
}return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress"){e=d.shift()
}if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});
c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B){return c.queue(this[0],a)
}return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)
})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;
b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)
},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;
c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};
c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");
this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a)){return this.each(function(x){var r=c(this);
r.addClass(a.call(this,x,r.attr("class")))})}if(a&&typeof a==="string"){for(var b=(a||"").split(ha),d=0,e=this.length;
d<e;d++){var f=this[d];if(f.nodeType===1){if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;
k<o;k++){if(h.indexOf(" "+b[k]+" ")<0){l+=" "+b[k]}}f.className=c.trim(l)}else{f.className=a
}}}}return this},removeClass:function(a){if(c.isFunction(a)){return this.each(function(o){var x=c(this);
x.removeClass(a.call(this,o,x.attr("class")))})}if(a&&typeof a==="string"||a===B){for(var b=(a||"").split(ha),d=0,e=this.length;
d<e;d++){var f=this[d];if(f.nodeType===1&&f.className){if(a){for(var h=(" "+f.className+" ").replace(sa," "),l=0,k=b.length;
l<k;l++){h=h.replace(" "+b[l]+" "," ")}f.className=c.trim(h)}else{f.className=""}}}}return this
},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a)){return this.each(function(f){var h=c(this);
h.toggleClass(a.call(this,f,h.attr("class"),b),b)})}return this.each(function(){if(d==="string"){for(var f,h=0,l=c(this),k=b,o=a.split(ha);
f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}}else{if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);
this.className=this.className||a===false?"":c.data(this,"__className__")||""}}})},hasClass:function(a){a=" "+a+" ";
for(var b=0,d=this.length;b<d;b++){if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1){return true
}}return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;
return !d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;
d=[];var f=b.options;b=b.type==="select-one";if(e<0){return null}var h=b?e:0;for(e=b?e+1:f.length;
h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();
if(b){return a}d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn){return b.getAttribute("value")===null?"on":b.value
}return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;
if(this.nodeType===1){if(k){r=a.call(this,o,x.val())}if(r==null){r=""}else{if(typeof r==="number"){r+=""
}else{if(c.isArray(r)){r=c.map(r,function(C){return C==null?"":C+""})}}}if(c.isArray(r)&&ta.test(this.type)){this.checked=c.inArray(x.val(),r)>=0
}else{if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0
});if(!A.length){this.selectedIndex=-1}}else{this.value=r}}}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8){return B
}if(e&&b in c.attrFn){return c(a)[b](d)}e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;
b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
if(d===null){a.nodeType===1&&a.removeAttribute(b)}else{a[b]=d}}if(c.nodeName(a,"form")&&a.getAttributeNode(b)){return a.getAttributeNode(b).nodeValue
}if(b==="tabIndex"){return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B
}return a[b]}if(!c.support.style&&e&&b==="style"){if(f){a.style.cssText=""+d}return a.style.cssText
}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b)){return B
}a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a
}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")
},ua={focusin:0,focusout:0};c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement){a=E
}if(d===false){d=U}else{if(!d){return }}var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid){d.guid=c.guid++
}if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;
k=k.events}else{if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}}if(!o){h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):B
}}o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};
if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")
}else{r=[];h.namespace=""}h.type=l;if(!h.guid){h.guid=d.guid}var A=k[l],C=c.event.special[l]||{};
if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false){if(a.addEventListener){a.addEventListener(l,o,false)
}else{a.attachEvent&&a.attachEvent("on"+l,o)}}}if(C.add){C.add.call(a,h);if(!h.handler.guid){h.handler.guid=d.guid
}}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false){d=U
}var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];
if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type
}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I){c.event.remove(a,f+b)
}}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");
f=o.shift();x=RegExp("(^|\\.)"+c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")
}if(A=I[f]){if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);
r.remove&&r.remove.call(a,C)}if(e!=null){break}}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false){c.removeEvent(a,f,w.handle)
}delete I[f]}}else{for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);
A.splice(h--,1)}}}}}if(c.isEmptyObject(I)){if(b=w.handle){b.elem=null}delete w.events;
delete w.handle;if(typeof w==="function"){c.removeData(a,J)}else{c.isEmptyObject(w)&&c.removeData(a)
}}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);
if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();
c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)
})}if(!d||d.nodeType===3||d.nodeType===8){return B}a.result=B;a.target=d;b=c.makeArray(b);
b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);
e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;
a.preventDefault()}}}catch(h){}if(!a.isPropagationStopped()&&e){c.event.trigger(a,b,e,true)
}else{if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k==="click",x=c.event.special[k]||{};
if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k]){e["on"+k]=null
}c.event.triggered=true;e[k]()}}catch(r){}if(l){e["on"+k]=l}c.event.triggered=false
}}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);
a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");
a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)")
}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");
if(typeof f==="function"){f=f.events}d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;
for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;
a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();
a.stopPropagation()}}if(a.isImmediatePropagationStopped()){break}}}}return a.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(a){if(a[c.expando]){return a
}var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]
}if(!a.target){a.target=a.srcElement||t}if(a.target.nodeType===3){a.target=a.target.parentNode
}if(!a.relatedTarget&&a.fromElement){a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement
}if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);
a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)
}if(a.which==null&&(a.charCode!=null||a.keyCode!=null)){a.which=a.charCode!=null?a.charCode:a.keyCode
}if(!a.metaKey&&a.ctrlKey){a.metaKey=a.ctrlKey}if(!a.which&&a.button!==B){a.which=a.button&1?1:a.button&2?3:a.button&4?2:0
}return a},guid:100000000,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))
},remove:function(a){c.event.remove(this,Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this)){this.onbeforeunload=d
}},teardown:function(a,b){if(this.onbeforeunload===b){this.onbeforeunload=null}}}}};
c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)
}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault){return new c.Event(a)
}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=c.now();
this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;
var a=this.originalEvent;if(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false
}}},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;
if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;
this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;){b=b.parentNode}if(b!==this){a.type=a.data;
c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)
};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)
},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles){c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;
if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)
}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;
if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;
return la("submit",this,arguments)}})}else{return false}},teardown:function(){c.event.remove(this,".specialSubmit")
}}}if(!c.support.changeBubbles){var V,xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox"){d=a.checked
}else{if(b==="select-multiple"){d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected
}).join("-"):""}else{if(a.nodeName.toLowerCase()==="select"){d=a.selectedIndex}}}return d
},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");
f=xa(d);if(a.type!=="focusout"||d.type!=="radio"){c.data(d,"_change_data",f)}if(!(e===B||f===e)){if(e!=null||f){a.type="change";
a.liveFired=B;return c.event.trigger(a,b,d)}}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;
if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select"){return Z.call(this,a)
}},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple"){return Z.call(this,a)
}},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type==="file"){return false
}for(var a in V){c.event.add(this,a+".specialChange",V[a])}return ia.test(this.nodeName)
},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)
}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);
e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)
},teardown:function(){--ua[b]===0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d){this[b](h,e,d[h],f)
}return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);
return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one"){this.one(d,e,f)}else{h=0;
for(var k=this.length;h<k;h++){c.event.add(this[h],d,l,e)}}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault){for(var d in a){this.unbind(d,a[d])
}}else{d=0;for(var e=this.length;d<e;d++){c.event.remove(this[d],a,b)}}return this
},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)
},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);
d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result
}},toggle:function(a){for(var b=arguments,d=1;d<b.length;){c.proxy(a,b[d++])}return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;
c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false
}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};
c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;
h=h?this:c(this.context);if(typeof d==="object"&&!d.preventDefault){for(l in d){h[b](l,e,d[l],r)
}return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;
){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover"){d.push("mouseenter"+x,"mouseleave"+x)
}else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else{l=(ya[l]||l)+x}if(b==="live"){x=0;
for(var A=h.length;x<A;x++){c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})
}}else{h.unbind("live."+Y(l,r),f)}}}return this}});c.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(a,b){c.fn[b]=function(d,e){if(e==null){e=d;
d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn){c.attrFn[b]=true
}});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache){if(c.cache[a].handle){try{c.event.remove(c.cache[a].handle.elem)
}catch(b){}}}});(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];
if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;
y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;
for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];
break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;
break}}else{if(k.filter(i,[y]).length>0){F=y;break}}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;
[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;
if(i.nodeType!==1&&i.nodeType!==9){return[]}if(!g||typeof g!=="string"){return n}var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;
do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];break}}}while(q);
if(D.length>1&&x.exec(g)){if(D.length===2&&o.relative[D[0]]){u=L(D[0]+D[1],i)}else{for(u=o.relative[D[0]]?[i]:k(D.shift(),i);
D.length;){g=D.shift();if(o.relative[g]){g+=D.shift()}u=L(g,u)}}}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);
i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);
u=q.expr?k.filter(q.expr,q.set):q.set;if(D.length>0){y=C(u)}else{N=false}for(;D.length;
){q=M=D.pop();if(o.relative[M]){q=D.pop()}else{M=""}if(q==null){q=i}o.relative[M](y,q,O)
}}else{y=[]}}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]"){if(N){if(i&&i.nodeType===1){for(g=0;
y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g]))){n.push(u[g])
}}}else{for(g=0;y[g]!=null;g++){y[g]&&y[g].nodeType===1&&n.push(u[g])}}}else{n.push.apply(n,y)
}}else{C(y,n)}if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=l;
g.sort(w);if(h){for(var i=1;i<g.length;i++){g[i]===g[i-1]&&g.splice(i--,1)}}}return g
};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0
};k.find=function(g,i,n){var m;if(!g){return[]}for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];
if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");
m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);
g&&i.length;){for(var N in o.filter){if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];
D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y){y=[]}if(o.preFilter[N]){if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true){continue
}}else{q=O=true}}if(p){for(var j=0;(D=F[j])!=null;j++){if(D){O=R(D,p,j,F);var s=m^!!O;
if(n&&O!=null){if(s){q=true}else{F[j]=false}}else{if(s){y.push(D);q=true}}}}}if(O!==B){n||(F=y);
g=g.replace(o.match[N],"");if(!q){return[]}break}}}}if(g===u){if(q==null){k.error(g)
}else{break}}u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g
};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")
}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;
if(m){i=i.toLowerCase()}m=0;for(var p=g.length,q;m<p;m++){if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;
){}g[m]=n||q&&q.nodeName.toLowerCase()===i?q||false:q===i}}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;
if(m&&!/\W/.test(i)){for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false
}}}else{for(;p<q;p++){if(n=g[p]){g[p]=m?n.parentNode:n.parentNode===i}}m&&k.filter(i,g,true)
}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();
q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();
q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n){return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]
}},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;
p<q;p++){m[p].getAttribute("name")===g[1]&&n.push(m[p])}return n.length===0?null:n
}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,"")+" ";
if(q){return g}q=0;for(var u;(u=i[q])!=null;q++){if(u){if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0)){n||m.push(u)
}else{if(n){i[q]=false}}}}return false},ID:function(g){return g[1].replace(/\\/g,"")
},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);
g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,m,p,q){i=g[1].replace(/\\/g,"");
if(!q&&o.attrMap[i]){g[1]=o.attrMap[i]}if(g[2]==="~="){g[4]=" "+g[4]+" "}return g
},PSEUDO:function(g,i,n,m,p){if(g[1]==="not"){if((d.exec(g[3])||"").length>1||/^\w/.test(g[3])){g[3]=k(g[3],null,null,i)
}else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}}else{if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0])){return true
}}return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"
},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true
},selected:function(g){return g.selected===true},parent:function(g){return !!g.firstChild
},empty:function(g){return !g.firstChild},has:function(g,i,n){return !!k(n[3],g).length
},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type
},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type
},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type
},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type
},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"
},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0
},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0
},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0
},nth:function(g,i,n){return n[3]-0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];
if(q){return q(g,n,i,m)}else{if(p==="contains"){return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0
}else{if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++){if(i[n]===g){return false}}return true
}else{k.error("Syntax error, unrecognized expression: "+p)}}}},CHILD:function(g,i){var n=i[1],m=g;
switch(n){case"only":case"first":for(;m=m.previousSibling;){if(m.nodeType===1){return false
}}if(n==="first"){return true}m=g;case"last":for(;m=m.nextSibling;){if(m.nodeType===1){return false
}}return true;case"nth":n=i[2];var p=i[3];if(n===1&&p===0){return true}var q=i[0],u=g.parentNode;
if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling){if(m.nodeType===1){m.nodeIndex=++y
}}u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i
},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1
},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);
var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false
},POS:function(g,i,n,m){var p=o.setFilters[i[2]];if(p){return p(g,n,i,m)}}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)
},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);
o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))
}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i
}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];
if(f.call(g)==="[object Array]"){Array.prototype.push.apply(m,g)}else{if(typeof g.length==="number"){for(var p=g.length;
n<p;n++){m.push(g[n])}}else{for(;g[n];n++){m.push(g[n])}}}return m}}var w,I;if(t.documentElement.compareDocumentPosition){w=function(g,i){if(g===i){h=true;
return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition){return g.compareDocumentPosition?-1:1
}return g.compareDocumentPosition(i)&4?-1:1}}else{w=function(g,i){var n,m,p=[],q=[];
n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else{if(n===m){return I(g,i)
}else{if(n){if(!m){return 1}}else{return -1}}}for(;u;){p.unshift(u);u=u.parentNode
}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++){if(p[u]!==q[u]){return I(p[u],q[u])
}}return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i){return n}for(g=g.nextSibling;
g;){if(g===i){return -1}g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;
g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4){i+=n.nodeValue}else{if(n.nodeType!==8){i+=k.getText(n.childNodes)
}}}return i};(function(){var g=t.createElement("div"),i="script"+(new Date).getTime(),n=t.documentElement;
g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q){return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]
}};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");
return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);n=g=null})();(function(){var g=t.createElement("div");
g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0){o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);
if(i[1]==="*"){for(var p=[],q=0;m[q];q++){m[q].nodeType===1&&p.push(m[q])}m=p}return m
}}g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#"){o.attrHandle.href=function(i){return i.getAttribute("href",2)
}}g=null})();t.querySelectorAll&&function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";
if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;
m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p)){if(p.nodeType===9){try{return C(p.querySelectorAll(m),q)
}catch(y){}}else{if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";
F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||p.removeAttribute("id")
}}}}return g(m,p,q,u)};for(var n in g){k[n]=g[n]}i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;
try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i){k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");
if(!k.isXML(p)){try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q)){return i.call(p,q)
}}catch(u){}}return k(q,null,null,[p]).length>0}}})();(function(){var g=t.createElement("div");
g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";
if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m){return n.getElementsByClassName(i[1])
}};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)
}:t.documentElement.compareDocumentPosition?function(g,i){return !!(g.compareDocumentPosition(i)&16)
}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false
};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);
){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;
n<u;n++){k(g,q[n],m)}return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;
c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;c.contains=k.contains})();
var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;
c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;
e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0){for(var h=d;h<b.length;h++){for(var l=0;
l<d;l++){if(b[l]===b[h]){b.splice(h--,1);break}}}}}return b},has:function(a){var b=c(a);
return this.filter(function(){for(var d=0,e=b.length;d<e;d++){if(c.contains(this,b[d])){return true
}}})},not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)
},is:function(a){return !!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];
if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];
k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;
){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e)){d.push({selector:l,elem:h,level:o})
}}h=h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;
e<f;e++){for(h=this[e];h;){if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);
break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b){break}}}}d=d.length>1?c.unique(d):d;
return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string"){return c.inArray(this[0],a?c(a):this.parent().children())
}return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):c.makeArray(a),e=c.merge(this.get(),d);
return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))
},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null
},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)
},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")
},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")
},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)
},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)
},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)
}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string"){f=c.filter(e,f)
}f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a)){f=f.reverse()
}return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d){a=":not("+a+")"
}return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)
},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));
){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;
a;a=a[d]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){for(var d=[];
a;a=a.nextSibling){a.nodeType===1&&a!==b&&d.push(a)}return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={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,"",""]};
P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize){P._default=[1,"div<div>","</div>"]
}c.fn.extend({text:function(a){if(c.isFunction(a)){return this.each(function(b){var d=c(this);
d.text(a.call(this,b,d.text()))})}if(typeof a!=="object"&&a!==B){return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a))
}return c.text(this)},wrapAll:function(a){if(c.isFunction(a)){return this.each(function(d){c(this).wrapAll(a.call(this,d))
})}if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);
b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;){d=d.firstChild
}return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a)){return this.each(function(b){c(this).wrapInner(a.call(this,b))
})}return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)
})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)
}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)
})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)
})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)
})}else{if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());
return this.pushStack(a,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)
})}else{if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());
return a}}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++){if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));
c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}}return this},empty:function(){for(var a=0,b;
(b=this[a])!=null;a++){for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));
b.firstChild;){b.removeChild(b.firstChild)}}return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;
if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML
}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else{return this.cloneNode(true)
}});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null
}else{if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");
try{for(var b=0,d=this.length;b<d;b++){if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));
this[b].innerHTML=a}}}catch(e){this.empty().append(a)}}else{c.isFunction(a)?this.each(function(f){var h=c(this);
h.html(a.call(this,f,h.html()))}):this.empty().append(a)}}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a)){return this.each(function(b){var d=c(this),e=d.html();
d.replaceWith(a.call(this,b,e))})}if(typeof a!=="string"){a=c(a).detach()}return this.each(function(){var b=this.nextSibling,d=this.parentNode;
c(this).remove();b?c(b).before(a):c(d).append(a)})}else{return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)
}},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];
if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l)){return this.each(function(){c(this).domManip(a,b,d,true)
})}if(c.isFunction(l)){return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);
r.domManip(a,b,d)})}if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);
h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");
f=0;for(var o=this.length;f<o;f++){d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)
}}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;
b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;
if(h=c.fragments[a[0]]){if(h!==1){e=h}}}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)
}if(f){c.fragments[a[0]]=h?e:1}return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];
d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();
c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;
if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||t
}for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number"){l+=""}if(l){if(typeof l==="string"&&!eb.test(l)){l=b.createTextNode(l)
}else{if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");
for(r.innerHTML=o[1]+l+o[2];x--;){r=r.lastChild}if(!c.support.tbody){x=db.test(l);
k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];
for(o=k.length-1;o>=0;--o){c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])
}}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);
l=r.childNodes}}if(l.nodeType){f.push(l)}else{f=c.merge(f,l)}}}if(d){for(h=0;f[h];
h++){if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")){e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h])
}else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
d.appendChild(f[h])}}}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;
(k=a[l])!=null;l++){if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()])){if(d=k[c.expando]){if((b=e[d])&&b.events){for(var o in b.events){f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle)
}}if(h){delete k[c.expando]}else{k.removeAttribute&&k.removeAttribute(c.expando)}delete e[d]
}}}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()
};c.fn.css=function(a,b){if(arguments.length===2&&b===B){return this}return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)
})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");
return d===""?"1":d}else{return a.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];
b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h]){d+="px"
}if(!k||!("set" in k)||(d=k.set(a,d))!==B){try{l[b]=d}catch(o){}}}}else{if(k&&"get" in k&&(f=k.get(a,false,e))!==B){return f
}return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),h=c.cssHooks[f];b=c.cssProps[f]||f;
if(h&&"get" in h&&(e=h.get(a,true,d))!==B){return e}else{if(W){return W(a,b,f)}}},swap:function(a,b,d){var e={},f;
for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b){a.style[f]=e[f]
}},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;
if(e){if(d.offsetWidth!==0){h=oa(d,b,f)}else{c.swap(d,kb,function(){h=oa(d,b,f)})
}if(h<=0){h=W(d,b,b);if(h==="0px"&&aa){h=aa(d,b,b)}if(h!=null){return h===""||h==="auto"?"0px":h
}}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"
}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0){return e+"px"}}else{return e
}}}});if(!c.support.opacity){c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""
},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=d.filter||"";
d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}}}if(t.defaultView&&t.defaultView.getComputedStyle){Ga=function(a,b,d){var e;
d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView)){return B
}if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a)){e=c.style(a,d)
}}return e}}if(t.documentElement.currentStyle){aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;
if(!Fa.test(f)&&jb.test(f)){d=h.left;e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;
h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e
}return f===""?"auto":f}}W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;
return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"
};c.expr.filters.visible=function(a){return !c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;
c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha){return Ha.apply(this,arguments)
}else{if(!this.length){return this}}var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);
a=a.slice(0,e)}e="GET";if(b){if(c.isFunction(b)){d=b;b=null}else{if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);
e="POST"}}}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified"){h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText)
}d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())
},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this
}).filter(function(){return this.name&&!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))
}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}
}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)
}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})
},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")
},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})
},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);
b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string"){b.data=c.param(b.data,b.traditional)
}if(b.dataType==="jsonp"){if(h==="GET"){T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?")
}else{if(!b.data||!T.test(b.data)){b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?"
}}b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;
if(b.data){b.data=(b.data+"").replace(T,"="+d+"$1")}b.url=b.url.replace(T,"="+d+"$1");
b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k)){k(m)}else{E[d]=B;
try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);
r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null){b.cache=false}if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);
b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l){b.url+=(ja.test(b.url)?"&":"?")+b.data
}b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);
if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");
if(b.scriptCharset){A.charset=b.scriptCharset}A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;
c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;
r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();
if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);
try{if(b.data!=null&&!l||a&&a.contentType){w.setRequestHeader("Content-Type",b.contentType)
}if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);
c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");
w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)
}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");
w.abort();return false}b.global&&c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);
J=true;if(w){w.onreadystatechange=c.noop}}else{if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;
w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";
var p;if(e==="success"){try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";
p=q}}if(e==="success"||e==="notmodified"){d||c.handleSuccess(b,w,e,f)}else{c.handleError(b,w,e,p)
}d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async){w=null}}}};try{var g=w.abort;
w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")
},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);
c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;
d[d.length]=encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B){b=c.ajaxSettings.traditional
}if(c.isArray(a)||a.jquery){c.each(a,function(){e(this.name,this.value)})}else{for(var f in a){da(f,a[f],b,e)
}}return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);
a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);
a.global&&c.triggerGlobal(a,"ajaxSuccess",[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);
a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")
},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)
},httpSuccess:function(a){try{return !a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223
}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");
if(d){c.lastModified[b]=d}if(e){c.etag[b]=e}return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;
a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");
if(d&&d.dataFilter){a=d.dataFilter(a,b)}if(typeof a==="string"){if(b==="json"||!b&&e.indexOf("json")>=0){a=c.parseJSON(a)
}else{if(b==="script"||!b&&e.indexOf("javascript")>=0){c.globalEval(a)}}}return a
}});if(E.ActiveXObject){c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:"){try{return new E.XMLHttpRequest
}catch(a){}}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}c.support.ajax=!!c.ajaxSettings.xhr();
var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
c.fn.extend({show:function(a,b,d){if(a||a===0){return this.animate(S("show",3),a,b,d)
}else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none"){b=a.style.display=""
}b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;
d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none"){a.style.display=c.data(a,"olddisplay")||""
}}return this}},hide:function(a,b,d){if(a||a===0){return this.animate(S("hide",3),a,b,d)
}else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",d)
}for(a=0;a<b;a++){this[a].style.display="none"}return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";
if(c.isFunction(a)&&c.isFunction(b)){this._toggle.apply(this,arguments)}else{a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");
c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d)}return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)
},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a)){return this.each(f.complete)
}return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;
for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o){return h.complete.call(this)
}if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];
if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none"){if(c.support.inlineBlockNeedsLayout){if(qa(this.nodeName)==="inline"){this.style.display="inline-block"
}else{this.style.display="inline";this.style.zoom=1}}else{this.style.display="inline-block"
}}}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]
}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);
if(vb.test(C)){J[C==="toggle"?o?"show":"hide":C](a)}else{var w=wb.exec(C),I=J.cur()||0;
if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||1)/J.cur()*I;
c.style(x,A,I+g)}if(w[1]){L=(w[1]==="-="?-1:1)*L+I}J.custom(I,L,g)}else{J.custom(I,C,"")
}}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;
e>=0;e--){if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}}});b||this.dequeue();
return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,d,e,f)
}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};
e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;
e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)
};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d
}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig){b.orig={}
}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);
(c.fx.step[this.prop]||c.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 a=parseFloat(c.css(this.elem,this.prop));return a&&a>-10000?a:0},custom:function(a,b,d){function e(l){return f.step(l)
}var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";
this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba){ba=setInterval(h.tick,h.interval)
}},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;
this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()
},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){d=false
}}if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;
c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();
if(this.options.hide||this.options.show){for(var l in this.options.curAnim){c.style(this.elem,l,this.options.orig[l])
}}this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;
b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;
b<a.length;b++){a[b]()||a.splice(b--,1)}a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);
ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)
},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit
}else{a.elem[a.prop]=a.now}}}});if(c.expr&&c.expr.filters){c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem
}).length}}var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect" in t.documentElement?function(a){var b=this[0],d;
if(a){return this.each(function(l){c.offset.setOffset(this,a,l)})}if(!b||!b.ownerDocument){return null
}if(b===b.ownerDocument.body){return c.offset.bodyOffset(b)}try{d=b.getBoundingClientRect()
}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b)){return d||{top:0,left:0}
}b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}
}:function(a){var b=this[0];if(a){return this.each(function(x){c.offset.setOffset(this,a,x)
})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return c.offset.bodyOffset(b)
}c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;
d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,o=b.offsetLeft;
(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed"){break
}d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;
o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;
o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=parseFloat(d.borderTopWidth)||0;
o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;
o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);
o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;
c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});
b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;
e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;
e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";
this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;
a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;
c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,"marginTop"))||0;
d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");
if(e==="static"){a.style.position="relative"}var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;
e={};var x={};if(o){x=f.position()}l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;
if(c.isFunction(b)){b=b.call(a,d,h)}if(b.top!=null){e.top=b.top-h.top+l}if(b.left!=null){e.left=b.left-h.left+k
}"using" in b?b.using.call(a,e):f.css(e)}};c.fn.extend({position:function(){if(!this[0]){return null
}var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();
d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;
e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;
return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;
a&&!Ia.test(a.nodeName)&&c.css(a,"position")==="static";){a=a.offsetParent}return a
})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;
if(!f){return null}if(e!==B){return this.each(function(){if(h=fa(this)){h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop())
}else{this[d]=e}})}else{return(h=fa(f))?"pageXOffset" in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]
}}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null
};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null
};c.fn[d]=function(e){var f=this[0];if(!f){return e==null?null:this}if(c.isFunction(e)){return this.each(function(l){var k=c(this);
k[d](e.call(this,l,k[d]()))})}if(c.isWindow(f)){return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]
}else{if(f.nodeType===9){return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b])
}else{if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else{return this.css(d,typeof e==="string"?e:e+"px")
}}}}})})(window);
/*
 * jQuery UI 1.8.6
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(c,j){function k(a){return !c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)
}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.6",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});
c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;
setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)
},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))
}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))
}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j){return this.css("zIndex",a)
}if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");
if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0){return b
}}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()
})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;
if(l){g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0}if(m){g-=parseFloat(c.curCSS(f,"margin"+this,true))||0
}});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};
c.fn["inner"+b]=function(f){if(f===j){return i["inner"+b].call(this)}return this.each(function(){c(this).css(h,d(this,f)+"px")
})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number"){return i["outer"+b].call(this,f)
}return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return !!c.data(a,d[3])
},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;
d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map"){return false}a=c("img[usemap=#"+d+"]")[0];
return !!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)
},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")
}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));
c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;
c.support.selectstart="onselectstart" in b;a.removeChild(b).style.display="none"});
c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];
a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode){for(var e=0;
e<b.length;e++){a.options[b[e][0]]&&b[e][1].apply(a.element,d)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)
},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden"){return false}b=b&&b==="left"?"scrollLeft":"scrollTop";
var d=false;if(a[b]>0){return true}a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d
},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)
}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.6
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,j){if(b.cleanData){var k=b.cleanData;
b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++){b(d).triggerHandler("remove")
}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c){if(!a||b.filter(a,[this]).length){b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")
})}}return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;
a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return !!b.data(h,a)
};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};
c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);
b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;
d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_"){return h
}e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;
if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))
});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);
this.element=b(c);this.options=b.extend(true,{},this.options,this._getCreateOptions(),a);
var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();
this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]
},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")
},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0){return b.extend({},this.options)
}if(typeof a==="string"){if(c===j){return this.options[a]}d={};d[a]=c}this._setOptions(d);
return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)
});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled"){this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c)
}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)
},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();
d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];
c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return !(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())
}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.6
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;
this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)
}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;
b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)
},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(a);
this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;
if(!e||f||!this._mouseCapture(a)){return true}this.mouseDelayMet=!this.options.delay;
if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true
},this.options.delay)}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;
if(!this._mouseStarted){a.preventDefault();return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)
};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);
a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!(document.documentMode>=9)&&!a.button){return this._mouseUp(a)
}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a)
}return !this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);
if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;
this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance
},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true
}})})(jQuery);(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;
c.fn.position=function(b){if(!b||!b.of){return t.apply(this,arguments)}b=c.extend({},b);
var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;
if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else{if(d.setTimeout){h=a.width();
k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else{if(d.preventDefault){b.at="left top";
h=k=0;j={top:b.of.pageY,left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();
j=a.offset()}}}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1){f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"]
}f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1){g[1]=g[0]
}e[0]=parseInt(e[0],10)||0;if(e.length===1){e[1]=e[0]}e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right"){j.left+=h
}else{if(b.at[0]==="center"){j.left+=h/2}}if(b.at[1]==="bottom"){j.top+=k}else{if(b.at[1]==="center"){j.top+=k/2
}}j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+parseInt(c.curCSS(this,"marginRight",true))||0,w=m+q+parseInt(c.curCSS(this,"marginBottom",true))||0,i=c.extend({},j),r;
if(b.my[0]==="right"){i.left-=l}else{if(b.my[0]==="center"){i.left-=l/2}}if(b.my[1]==="bottom"){i.top-=m
}else{if(b.my[1]==="center"){i.top-=m/2}}i.left=parseInt(i.left);i.top=parseInt(i.top);
r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})
});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);
d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left=d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)
},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();
b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);
d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];
b.left+=a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);
d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];
b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position"))){b.style.position="relative"
}var d=c(b),g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;
g={top:a.top-g.top+e,left:a.left-g.left+h};"using" in a?a.using.call(b,g):d.css(g)
};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument){return null}if(b){return this.each(function(){c.offset.setOffset(this,b)
})}return u.call(this)}}})(jQuery);(function(d,G){function K(){this.debug=false;this._curInst=null;
this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;
this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";
this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";
this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";
this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";
this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};
this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};
d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')
}function E(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==G){a[c]=b[c]}}return a
}d.extend(d.ui,{datepicker:{version:"1.8.10"}});var y=(new Date).getTime();d.extend(K.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)
},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});
return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);
if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";
if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});
if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}
},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);
c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h
}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);
d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");
b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");
a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();
c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");
var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));
a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);
return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");
if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++){if(f[g].length>h){h=f[g].length;
i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));
b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())
}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);
if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h
}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);
this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);
b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;
this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');
this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);
a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;
this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]
}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");
a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);
return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();
b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)
}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");
if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;
c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})
}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().removeClass("ui-state-disabled")
}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})
}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();
if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true
}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().addClass("ui-state-disabled")
}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});
this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false
}for(var b=0;b<this._disabledInputs.length;b++){if(this._disabledInputs[b]==a){return true
}}return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker"
}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null
}var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();
var h=this._getDateDatepicker(a,true);E(e.settings,f);this._attachments(d(a),e);this._autoSize(e);
this._setDateDatepicker(a,h);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)
},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);
this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);
return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");
b._keyEvent=true;if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();
c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);
c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();
return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");
break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");
break;case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)}c=a.ctrlKey||a.metaKey;
break;case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)}c=a.ctrlKey||a.metaKey;
break;case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")
}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")
}break;case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")
}c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")
}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")
}break;case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")
}c=a.ctrlKey||a.metaKey;break;default:c=false}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)
}else{c=false}}if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);
if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));
var c=String.fromCharCode(a.charCode==G?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1
}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);
d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)
}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]
}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);
d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);
var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;
d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""
}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight
}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e
});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;
d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};
d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});
d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});
if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;
var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);
i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})
}};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);
if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();
d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);
a.dpDiv.empty().append(this._generateHTML(a));var e=a.dpDiv.find("iframe.ui-datepicker-cover");
e.length&&e.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});
a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")
}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")
}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);
e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();
if(a.yearshtml){var f=a.yearshtml;setTimeout(function(){f===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);
f=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c
};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]
},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();
b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;
b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);
b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");
a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]
}a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;
if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");
var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null
};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);
a||e();if(a=this._get(b,"onClose")){a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])
}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});
if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")
},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()
}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);
this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);
if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;
b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();
b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()
}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);
var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);
this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);
b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear
},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);
f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;
this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))
}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);
b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);
var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")
}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];
typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");
if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));
d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]
},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));
var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1
},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";
if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;
e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;
return p},m=function(p){var v=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&v?4:p=="o"?3:2)+"}");
p=b.substring(s).match(p);if(!p){throw"Missing number at position "+s}s+=p[0].length;
return parseInt(p[0],10)},n=function(p,v,H){p=o(p)?H:v;for(v=0;v<p.length;v++){if(b.substr(s,p[v].length).toLowerCase()==p[v].toLowerCase()){s+=p[v].length;
return v+1}}throw"Unknown name at position "+s},r=function(){if(b.charAt(s)!=a.charAt(z)){throw"Unexpected literal at position "+s
}s++},s=0,z=0;z<a.length;z++){if(k){if(a.charAt(z)=="'"&&!o("'")){k=false}else{r()
}}else{switch(a.charAt(z)){case"d":l=m("d");break;case"D":n("D",f,h);break;case"o":u=m("o");
break;case"m":j=m("m");break;case"M":j=n("M",i,g);break;case"y":c=m("y");break;case"@":var w=new Date(m("@"));
c=w.getFullYear();j=w.getMonth()+1;l=w.getDate();break;case"!":w=new Date((m("!")-this._ticksTo1970)/10000);
c=w.getFullYear();j=w.getMonth()+1;l=w.getDate();break;case"'":if(o("'")){r()}else{k=true
}break;default:r()}}}if(c==-1){c=(new Date).getFullYear()}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)
}}if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)
}w=this._daylightSavingAdjust(new Date(c,j-1,l));if(w.getFullYear()!=c||w.getMonth()+1!=j||w.getDate()!=l){throw"Invalid date"
}return w},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""
}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;
c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;
return o},g=function(o,m,n){m=""+m;if(i(o)){for(;m.length<n;){m="0"+m}}return m},j=function(o,m,n,r){return i(o)?r[m]:n[m]
},l="",u=false;if(b){for(var k=0;k<a.length;k++){if(u){if(a.charAt(k)=="'"&&!i("'")){u=false
}else{l+=a.charAt(k)}}else{switch(a.charAt(k)){case"d":l+=g("d",b.getDate(),2);break;
case"D":l+=j("D",b.getDay(),e,f);break;case"o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000,3);
break;case"m":l+=g("m",b.getMonth()+1,2);break;case"M":l+=j("M",b.getMonth(),h,c);
break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;
break;case"@":l+=b.getTime();break;case"!":l+=b.getTime()*10000+this._ticksTo1970;
break;case"'":if(i("'")){l+="'"}else{u=true}break;default:l+=a.charAt(k)}}}}return l
},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;
return h},f=0;f<a.length;f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false}else{b+=a.charAt(f)
}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";break;
case"D":case"M":return null;case"'":if(e("'")){b+="'"}else{c=true}break;default:b+=a.charAt(f)
}}}return b},_get:function(a,b){return a.settings[b]!==G?a.settings[b]:this._defaults[b]
},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;
f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h
}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();
a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;
a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))
},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);
return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))
}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();
g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case"d":case"D":g+=parseInt(k[1],10);
break;case"w":case"W":g+=parseInt(k[1],10)*7;break;case"m":case"M":l+=parseInt(k[1],10);
g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case"y":case"Y":j+=parseInt(k[1],10);
g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)
};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);
b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)
},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);
return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));
a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();
a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)
}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))
},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));
var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");
g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));
for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;
m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));
n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";
var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));
f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";
j=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,r,this._getFormatConfig(a));
h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";
e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";
h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");r=this._get(a,"dayNames");
this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),w=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),v=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");
this._get(a,"calculateWeek");for(var L=this._getDefaultDate(a),I="",C=0;C<i[0];C++){for(var M="",D=0;
D<i[1];D++){var N=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";
if(l){x+='<div class="ui-datepicker-group';if(i[1]>1){switch(D){case 0:x+=" ui-datepicker-group-first";
t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";
t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";
t="";break}}x+='">'}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C==0?c?f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,C>0||D>0,z,w)+'</div><table class="ui-datepicker-calendar"><thead><tr>';
var A=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";
for(t=0;t<7;t++){var q=(t+h)%7;A+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"
}x+=A+"</tr></thead><tbody>";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,A)
}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));
for(var O=0;O<A;O++){x+="<tr>";var P=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";
for(t=0;t<7;t++){var F=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,J=B&&!H||!F[0]||k&&q<k||o&&q>o;
P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==N.getTime()&&g==a.selectedMonth&&a._keyEvent||L.getTime()==q.getTime()&&L.getTime()==N.getTime()?" "+this._dayOverClass:"")+(J?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!v?"":" "+F[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!B||v)&&F[2]?' title="'+F[2]+'"':"")+(J?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!v?"&#xa0;":J?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==u.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";
q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+"</tr>"}g++;if(g>11){g=0;
m++}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&D==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");
M+=x}I+=M}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");
a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";
if(h||!j){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"}else{i=e&&e.getFullYear()==c;
var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";
for(var n=0;n<12;n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"
}}o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));a.yearshtml="";if(h||!l){k+='<span class="ui-datepicker-year">'+c+"</span>"
}else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);
return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;
g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";
b<=g;b++){a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"
}a.yearshtml+="</select>";if(d.browser.mozilla){k+='<select class="ui-datepicker-year"><option value="'+c+'" selected="selected">'+c+"</option></select>"
}else{k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?"&#xa0;":"")+o
}k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);
b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));
a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();
if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");
a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");
if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");
return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)
},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()
},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);
c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));
return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");
a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())
},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);
return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}
},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;
a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));
return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this
}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);
d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))
}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))
}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)
})};d.datepicker=new K;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();
d.datepicker.version="1.8.10";window["DP_jQuery_"+y]=d})(jQuery);(function($){$.fn.doubleSelect=function(doubleid,values,options){options=$.extend({preselectFirst:null,preselectSecond:null,hideSecond:false,emptyOption:false,emptyKey:-1,emptyValue:["Choose ...","Choose ..."]},options||{});
var $first=this;var $secondid="#"+doubleid;var $second=$($secondid);var $secondWrapper=$($secondid+"-wrapper");
var removeValues=function(){$($secondid+" option").remove()};function emptyOption(emptyValue){return $("<option>").html(emptyValue).attr("value",options.emptyKey)
}$(this).change(function(){removeValues();$current=this.options[this.selectedIndex].value;
if($current!=""){$.each(values,function(k,v){var bestk;if($current==v.key){options.hideSecond?$secondWrapper.show():$second.removeAttr("disabled");
$($secondid).focus();if(!v.values){options.hideSecond?$secondWrapper.hide():$second.attr("disabled","disabled");
return false}$.each(v.values,function(k,v2){if(!bestk&&(v.defaultvalue!==null&&v2==v.defaultvalue)){bestk=k
}if(options.preselectSecond!==null&&v2==options.preselectSecond){bestk=k}});if(options.emptyOption){var oe=emptyOption(options.emptyValue[1]);
oe.appendTo($second)}$.each(v.values,function(k,v2){var o=$("<option>").html(k).attr("value",v2);
if(options.preselectSecond&&options.preselectSecond==v2){o.attr("selected","selected")
}o.appendTo($second)})}})}else{options.hideSecond?$secondWrapper.hide():$second.attr("disabled","disabled");
var oe=emptyOption(options.emptyValue[1]);oe.appendTo($second)}});return this.each(function(){$first.children().remove();
$second.children().remove();if(options.emptyOption){var oe=emptyOption(options.emptyValue[0]);
oe.appendTo($first);var oe=emptyOption(options.emptyValue[1]);oe.appendTo($second)
}$.each(values,function(k,v){var of=$("<option>").html(k).attr("value",v.key);if(options.preselectFirst!==null&&v.key==options.preselectFirst){of.html(k).attr("selected","selected")
}of.appendTo($first)});if(options.preselectFirst===null){$current=this.options[this.selectedIndex].value;
if($current!=""){$.each(values,function(k,v){var bestk;if($current==v.key){$.each(v.values,function(k,v2){if(!bestk&&(v.defaultvalue!==null&&v2==v.defaultvalue)){bestk=k
}if(options.preselectSecond!==null&&v2==options.preselectSecond){bestk=k}});$.each(v.values,function(k,v2){var o=$("<option>").html(k).attr("value",v2);
if(k===bestk){o.html(k).attr("selected","selected")}o.appendTo($second)})}})}else{options.hideSecond?$secondWrapper.hide():$second.attr("disabled","disabled")
}}else{$first.change()}})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)
},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b
},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t+b}return -c/2*((--t)*(t-2)-1)+b
},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b
},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t+b}return c/2*((t-=2)*t*t+2)+b
},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b
},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t+b}return -c/2*((t-=2)*t*t*t-2)+b
},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b
},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1){return c/2*t*t*t*t*t+b}return c/2*((t-=2)*t*t*t*t+2)+b
},easeInSine:function(x,t,b,c,d){return -c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b
},easeInOutSine:function(x,t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b
},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0){return b
}if(t==d){return b+c}if((t/=d/2)<1){return c/2*Math.pow(2,10*(t-1))+b}return c/2*(-Math.pow(2,-10*--t)+2)+b
},easeInCirc:function(x,t,b,c,d){return -c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b
},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1){return -c/2*(Math.sqrt(1-t*t)-1)+b
}return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;
var p=0;var a=c;if(t==0){return b}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;
var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}return -(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b
},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0){return b
}if((t/=d)==1){return b+c}if(!p){p=d*0.3}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)
}return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;
var p=0;var a=c;if(t==0){return b}if((t/=d/2)==2){return b+c}if(!p){p=d*(0.3*1.5)
}if(a<Math.abs(c)){a=c;var s=p/4}else{var s=p/(2*Math.PI)*Math.asin(c/a)}if(t<1){return -0.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b
}return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*0.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158
}return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158
}return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined){s=1.70158
}if((t/=d/2)<1){return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b}return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b
},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b
},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else{if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+0.75)+b
}else{if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+0.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+0.984375)+b
}}}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2){return jQuery.easing.easeInBounce(x,t*2,0,c,d)*0.5+b
}return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*0.5+c*0.5+b}});var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;
if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;
X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);
ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0
}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");
if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]
}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return 
}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()
}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)
}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);
f()}});if(O==top){(function(){if(J){return }try{j.documentElement.doScroll("left")
}catch(X){setTimeout(arguments.callee,0);return }f()})()}}if(M.wk){(function(){if(J){return 
}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return 
}f()})()}s(f)}}();function f(){if(J){return }try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));
Z.parentNode.removeChild(Z)}catch(aa){return }J=true;var X=U.length;for(var Y=0;Y<X;
Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)
}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)
}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}
}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];
var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");
if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]
}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return }}X.removeChild(aa);Z=null;
H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;
var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);
if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};
ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";
if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")
}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;
ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")
}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;
aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y
}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)
}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);
Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"
}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"
}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;
if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");
X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";
(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)
}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);
X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)
}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)
}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];
if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))
}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y
}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]
}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'
}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'
}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";
N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])
}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])
}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");
aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);
if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)
}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);
if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)
}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)
}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");
X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false
}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return }var aa=j.getElementsByTagName("head")[0];
if(!aa){return }var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");
Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]
}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))
}}}function w(Z,X){if(!m){return }var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y
}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;
return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;
for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;
aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null
}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};
Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)
}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)
}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);
K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]
}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]
}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]
}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)
}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return }else{w(ah,true)
}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}
},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined
}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)
}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;
if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");
for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))
}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);
if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
(function($){var uID=new Date().getTime();$.fn.embedSWF=function(o){var ret=[],reservedParams=["width","height","expressInstall","version"];
o=$.extend(true,{},$.fn.embedSWF.defaults,o);function getId(jElem){var id=jElem.attr("id");
if(!id){id="id-"+String(uID++);jElem.attr({id:id})}return id}function strToObj(str){var obj={};
if(str){str=str.replace(/^\?/,"").replace(/&amp;/g,"&").split(/&/);$.each(str,function(i,param){queryPair=param.split(/\=/);
obj[decodeURIComponent(queryPair[0])]=(queryPair[1])?decodeURIComponent(queryPair[1]):""
})}return obj}this.each(function(){var jElem=$(this),classes=this.className,linkSrc=$("a",this).filter("[href*=.swf], [href*=.flv]"),id=getId(jElem),src=linkSrc.attr("href").split("?"),params=strToObj(src[1]),width=params.width||jElem.width(),height=params.height||jElem.height(),version=params.version||o.version,expressInstall,flash;
if(params.expressInstall=="false"){expressInstall=false}else{if(!params.expressInstall){expressInstall=o.expressInstall
}else{expressInstall=params.expressInstall}}$.each(reservedParams,function(i,reservedParam){delete params[reservedParam]
});$.extend({},o.parameters,params);swfobject.embedSWF(src[0],id,width,height,version,expressInstall,false,params);
flash=document.getElementById(id);flash.className=classes;ret.push(flash)});return this.pushStack(ret)
};$.fn.embedSWF.defaults={expressInstall:false,version:"9.0.124",parameters:{}}})(jQuery);
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q
}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o
}function m(t,q){if(!t){return }var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break
}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)
}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s
}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";
var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)
}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();
o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];
q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};
q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;
if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);
return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]
}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];
return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)
}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)
}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)
}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)
}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);
if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration
}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;
q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);
delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;
if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o
}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500
}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o
},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);
i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o
},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);
return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();
s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)
},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q
},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return 
}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);
var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true
}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o
}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E
},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q
},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"
}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"
}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0
},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;
if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)
}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()
}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)
}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)
}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;
q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w
},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s
},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);
if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")
},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")
}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")
},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;
M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);
y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)
}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)
},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.4";
if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"
}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p
},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;
if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);
return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;
w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)
}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K
}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;
if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();
m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")
});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return }if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;
M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return }if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;
var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return 
}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))
})}if(R=="onClipAdd"){if(O.isInStream){return }O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;
K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];
if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);
if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";
p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;
E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}
}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)
}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;
if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M
}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)
}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});
if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)
}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();
if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true
}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)
}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)
}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q
}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)
};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;
var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;
return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]
}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;
return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};
if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);
if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))
});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)
}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);
var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;
return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];
this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)
}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};
if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};
__flash_savedUnloadHandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasOwnProperty(f)){m[f]=l[f]
}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])
}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))
}if(!f){return }if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};
var g=i(window.flashembed,{conf:b,getVersion:function(){var m,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)
}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=m&&m.GetVariable("$version")
}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=m&&m.GetVariable("$version")
}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null
}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");
l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)
}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))
}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')
},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';
if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'
}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'
}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;
for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];
p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);
n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]
}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)
}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})
}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");
if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);
if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)
}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m
},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.4"};
jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))
})}}})();$f.addPlugin("ipad",function(r){var H=-1;var s=0;var t=1;var F=2;var w=3;
var B=4;var f=5;var e=this;var J=1;var I=false;var y=false;var o=false;var m=0;var G=[];
var c={accelerated:false,autoBuffering:false,autoPlay:true,baseUrl:null,bufferLength:3,connectionProvider:null,cuepointMultiplier:1000,cuepoints:[],controls:{},duration:0,extension:"",fadeInSpeed:1000,fadeOutSpeed:1000,image:false,linkUrl:null,linkWindow:"_self",live:false,metaData:{},originalUrl:null,position:0,playlist:[],provider:"http",scaling:"scale",seekableOnBegin:false,start:0,url:null,urlResolvers:[]};
var q=H;var k=H;var n=/iPad|iPhone|iPod/i.test(navigator.userAgent);var b=null;function i(N,M,K){if(M){for(key in M){if(key){if(M[key]&&typeof M[key]=="function"&&!K){continue
}if(M[key]&&typeof M[key]=="object"&&M[key].length==undefined){var L={};i(L,M[key]);
N[key]=L}else{N[key]=M[key]}}}}}var u={simulateiDevice:false,controlsSizeRatio:1.5,controls:true,debug:false};
i(u,r);function d(){if(u.debug){if(n){var K=[].splice.call(arguments,0).join(", ");
console.log.apply(console,[K])}else{console.log.apply(console,arguments)}}}function h(K){switch(K){case -1:return"UNLOADED";
case 0:return"LOADED";case 1:return"UNSTARTED";case 2:return"BUFFERING";case 3:return"PLAYING";
case 4:return"PAUSED";case 5:return"ENDED"}return"UNKOWN"}function z(K){var L=$f.fireEvent(e.id(),"onBefore"+K,m);
return L!==false}function D(K){K.stopPropagation();K.preventDefault();return false
}function C(L,K){if(q==H&&!K){return }k=q;q=L;d(h(L))}function v(){b.fp_stop();I=false;
y=false;o=false;C(t);C(t)}function x(){v();o=true;b.fp_seek(0)}function E(K){}function l(){function K(M){var L={};
i(L,c);i(L,e.getCommonClip());i(L,M);if(L.ipadUrl){url=L.ipadUrl}else{if(L.url){url=L.url
}}if(url&&url.indexOf("://")==-1&&L.baseUrl){url=L.baseUrl+"/"+url}L.originalUrl=L.url;
L.completeUrl=url;L.extension=L.completeUrl.substr(L.completeUrl.lastIndexOf("."));
L.type="video";delete L.index;d("fixed clip",L);return L}b.fp_play=function(O,M,Q){var L=null;
var P=true;var N=true;d("Calling play() "+O,O);if(M){d("ERROR: inStream clips not yet supported");
return }if(O!==undefined){if(typeof O=="number"){if(m>=G.length){return }m=O;O=G[m]
}else{if(typeof O=="string"){O={url:O}}b.fp_setPlaylist(O.length!==undefined?O:[O])
}O=G[m];L=O.completeUrl;if(O.autoBuffering!==undefined&&O.autoBuffering===false){P=false
}if(O.autoPlay===undefined||O.autoPlay===true||Q===true){P=true;N=true}else{N=false
}}else{d("clip was not given, simply calling video.play, if not already buffering");
if(q!=F){b.play()}return }d("about to play "+L,P,N);v();if(L){d("Changing SRC attribute"+L);
b.setAttribute("src",L)}if(P){if(!z("Begin")){return false}$f.fireEvent(e.id(),"onBegin",m);
d("calling video.load()");b.load()}if(N){d("calling video.play()");b.play()}};b.fp_pause=function(){d("pause called");
if(!z("Pause")){return false}b.pause()};b.fp_resume=function(){d("resume called");
if(!z("Resume")){return false}b.play()};b.fp_stop=function(){d("stop called");if(!z("Stop")){return false
}y=true;b.pause();try{b.currentTime=0}catch(L){}};b.fp_seek=function(L){d("seek called "+L);
if(!z("Seek")){return false}var P=0;var L=L+"";if(L.charAt(L.length-1)=="%"){var M=parseInt(L.substr(0,L.length-1))/100;
var O=b.duration;P=O*M}else{P=L}try{b.currentTime=P}catch(N){d("Wrong seek time")
}};b.fp_getTime=function(){return b.currentTime};b.fp_mute=function(){d("mute called");
if(!z("Mute")){return false}J=b.volume;b.volume=0};b.fp_unmute=function(){if(!z("Unmute")){return false
}b.volume=J};b.fp_getVolume=function(){return b.volume*100};b.fp_setVolume=function(L){if(!z("Volume")){return false
}b.volume=L/100};b.fp_toggle=function(){d("toggle called");if(e.getState()==f){x();
return }if(b.paused){b.fp_play()}else{b.fp_pause()}};b.fp_isPaused=function(){return b.paused
};b.fp_isPlaying=function(){return !b.paused};b.fp_getPlugin=function(M){if(M=="canvas"||M=="controls"){var L=e.getConfig();
return L.plugins&&L.plugins[M]?L.plugins[M]:null}d("ERROR: no support for "+M+" plugin on iDevices");
return null};b.fp_close=function(){C(H);b.parentNode.removeChild(b);b=null};b.fp_getStatus=function(){var M=0;
var N=0;try{M=b.buffered.start();N=b.buffered.end()}catch(L){}return{bufferStart:M,bufferEnd:N,state:q,time:b.fp_getTime(),muted:b.muted,volume:b.fp_getVolume()}
};b.fp_getState=function(){return q};b.fp_startBuffering=function(){if(q==t){b.load()
}};b.fp_setPlaylist=function(M){d("Setting playlist");m=0;for(var L=0;L<M.length;
L++){M[L]=K(M[L])}G=M;$f.fireEvent(e.id(),"onPlaylistReplace",M)};b.fp_addClip=function(M,L){M=K(M);
G.splice(L,0,M);$f.fireEvent(e.id(),"onClipAdd",M,L)};b.fp_updateClip=function(M,L){i(G[L],M);
return G[L]};b.fp_getVersion=function(){return"3.2.3"};b.fp_isFullscreen=function(){return false
};b.fp_toggleFullscreen=function(){if(b.fp_isFullscreen()){b.webkitExitFullscreen()
}else{b.webkitEnterFullscreen()}};$f.each(("toggleFullscreen,stopBuffering,reset,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled,addCuepoints,css,animate,showPlugin,hidePlugin,togglePlugin,fadeTo,invoke,loadPlugin").split(","),function(){var L=this;
b["fp_"+L]=function(){d("ERROR: unsupported API on iDevices "+L);return false}})}function A(){var V=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"];
var N=function(X){d("Got event "+X.type,X)};for(var P=0;P<V.length;P++){b.addEventListener(V[P],N)
}var K=function(X){d("got onBufferEmpty event "+X.type);C(F);$f.fireEvent(e.id(),"onBufferEmpty",m)
};b.addEventListener("emptied",K,false);b.addEventListener("waiting",K,false);var M=function(X){if(k==t||k==F){}else{d("Restoring old state "+h(k));
C(k)}$f.fireEvent(e.id(),"onBufferFull",m)};b.addEventListener("canplay",M,false);
b.addEventListener("canplaythrough",M,false);var L=function(X){b.fp_updateClip({duration:b.duration,metaData:{duration:b.duration}},m);
G[m].duration=b.duration;$f.fireEvent(e.id(),"onMetaData",m,G[m])};b.addEventListener("loadedmetadata",L,false);
b.addEventListener("durationchange",L,false);var U=function(X){if(q==B){if(!z("Resume")){d("Resume disallowed, pausing");
b.fp_pause();return D(X)}$f.fireEvent(e.id(),"onResume",m)}C(w);if(!I){I=true;$f.fireEvent(e.id(),"onStart",m)
}};b.addEventListener("playing",U,false);var R=function(X){if(!z("Finish")){if(G.length==1){d("Active playlist only has one clip, onBeforeFinish returned false. Replaying");
x()}else{if(m!=(G.length-1)){d("Not the last clip in the playlist, but onBeforeFinish returned false. Returning to the beginning of current clip");
b.fp_seek(0)}else{d("Last clip in playlist, but onBeforeFinish returned false, start again from the beginning");
b.fp_play(0)}}return D(X)}C(f);$f.fireEvent(e.id(),"onFinish",m);if(G.length>1&&m<(G.length-1)){d("Not last clip in the playlist, moving to next one");
b.fp_play(++m,false,true)}};b.addEventListener("ended",R,false);var Q=function(X){C(s,true);
$f.fireEvent(e.id(),"onError",m,201);if(u.onFail&&u.onFail instanceof Function){u.onFail.apply(e,[])
}};b.addEventListener("error",Q,false);var T=function(X){d("got pause event from player"+e.id());
if(y){return }if(q==F&&k==t){d("forcing play");setTimeout(function(){b.play()},0);
return }if(!z("Pause")){b.fp_resume();return D(X)}C(B);$f.fireEvent(e.id(),"onPause",m)
};b.addEventListener("pause",T,false);var W=function(X){$f.fireEvent(e.id(),"onBeforeSeek",m)
};b.addEventListener("seeking",W,false);var O=function(X){if(y){y=false;$f.fireEvent(e.id(),"onStop",m)
}else{$f.fireEvent(e.id(),"onSeek",m)}d("seek done, currentState",h(q));if(o){o=false;
b.fp_play()}else{if(q!=w){b.fp_pause()}}};b.addEventListener("seeked",O,false);var S=function(X){$f.fireEvent(e.id(),"onVolume",b.fp_getVolume())
};b.addEventListener("volumechange",S,false)}function j(){b.fp_play(0)}function p(){}if(n||u.simulateiDevice){if(!window.flashembed.__replaced){var g=window.flashembed;
window.flashembed=function(M,R,N){if(typeof M=="string"){M=document.getElementById(M.replace("#",""))
}if(!M){return }var Q=window.getComputedStyle(M,null);var P=parseInt(Q.width);var K=parseInt(Q.height);
while(M.firstChild){M.removeChild(M.firstChild)}var L=document.createElement("div");
var O=document.createElement("video");L.appendChild(O);M.appendChild(L);L.style.height=K+"px";
L.style.width=P+"px";L.style.display="block";L.style.position="relative";L.style.background="-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.7)))";
L.style.cursor="default";L.style.webkitUserDrag="none";O.style.height="100%";O.style.width="100%";
O.style.display="block";O.id=R.id;O.name=R.id;O.style.cursor="pointer";O.style.webkitUserDrag="none";
O.type="video/mp4";O.playerConfig=N.config;$f.fireEvent(N.config.playerId,"onLoad","player")
};flashembed.getVersion=g.getVersion;flashembed.asString=g.asString;flashembed.isSupported=function(){return true
};flashembed.__replaced=true}var a=e._fireEvent;e._fireEvent=function(K){if(K[0]=="onLoad"&&K[1]=="player"){b=e.getParent().querySelector("video");
if(u.controls){b.controls="controls"}l();A();C(s,true);b.fp_setPlaylist(b.playerConfig.playlist);
j();a.apply(e,[K])}var L=q!=H;if(q==H&&typeof K=="string"){L=true}if(L){return a.apply(e,[K])
}};e._swfHeight=function(){return parseInt(b.style.height)};e.hasiPadSupport=function(){return true
}}return e});(function(b,a,c){b.fn.jScrollPane=function(f){function d(D,N){var ay,P=this,X,aj,w,al,S,Y,z,r,az,aE,au,j,I,i,k,Z,T,ap,W,u,B,aq,ae,am,G,m,at,ax,y,av,aH,g,K,ai=true,O=true,aG=false,l=false,ao=D.clone(false,false).empty(),ab=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";
aH=D.css("paddingTop")+" "+D.css("paddingRight")+" "+D.css("paddingBottom")+" "+D.css("paddingLeft");
g=(parseInt(D.css("paddingLeft"),10)||0)+(parseInt(D.css("paddingRight"),10)||0);
function ar(aQ){var aO,aP,aK,aM,aL,aJ,aI,aN;ay=aQ;if(X===c){aI=D.scrollTop();aN=D.scrollLeft();
D.css({overflow:"hidden",padding:0});aj=D.innerWidth()+g;w=D.innerHeight();D.width(aj);
X=b('<div class="jspPane" />').css("padding",aH).append(D.children());al=b('<div class="jspContainer" />').css({width:aj+"px",height:w+"px"}).append(X).appendTo(D)
}else{D.css("width","");aJ=D.innerWidth()+g!=aj||D.outerHeight()!=w;if(aJ){aj=D.innerWidth()+g;
w=D.innerHeight();al.css({width:aj+"px",height:w+"px"})}if(!aJ&&K==S&&X.outerHeight()==Y){D.width(aj);
return }K=S;X.css("width","");D.width(aj);al.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()
}aO=X.clone(false,false).css("position","absolute");aP=b('<div style="width:1px; position: relative;" />').append(aO);
b("body").append(aP);S=Math.max(X.outerWidth(),aO.outerWidth());aP.remove();Y=X.outerHeight();
z=S/aj;r=Y/w;az=r>1;aE=z>1;if(!(aE||az)){D.removeClass("jspScrollable");X.css({top:0,width:al.width()-g});
o();E();Q();x();ah()}else{D.addClass("jspScrollable");aK=ay.maintainPosition&&(I||Z);
if(aK){aM=aC();aL=aA()}aF();A();F();if(aK){M(aM,false);L(aL,false)}J();af();an();
if(ay.enableKeyboardNavigation){R()}if(ay.clickOnTrack){q()}C();if(ay.hijackInternalLinks){n()
}}if(ay.autoReinitialise&&!av){av=setInterval(function(){ar(ay)},ay.autoReinitialiseDelay)
}else{if(!ay.autoReinitialise&&av){clearInterval(av)}}aI&&D.scrollTop(0)&&L(aI,false);
aN&&D.scrollLeft(0)&&M(aN,false);D.trigger("jsp-initialised",[aE||az])}function aF(){if(az){al.append(b('<div class="jspVerticalBar" />').append(b('<div class="jspCap jspCapTop" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragTop" />'),b('<div class="jspDragBottom" />'))),b('<div class="jspCap jspCapBottom" />')));
T=al.find(">.jspVerticalBar");ap=T.find(">.jspTrack");au=ap.find(">.jspDrag");if(ay.showArrows){aq=b('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",aD(0,-1)).bind("click.jsp",aB);
ae=b('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",aD(0,1)).bind("click.jsp",aB);
if(ay.arrowScrollOnHover){aq.bind("mouseover.jsp",aD(0,-1,aq));ae.bind("mouseover.jsp",aD(0,1,ae))
}ak(ap,ay.verticalArrowPositions,aq,ae)}u=w;al.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){u-=b(this).outerHeight()
});au.hover(function(){au.addClass("jspHover")},function(){au.removeClass("jspHover")
}).bind("mousedown.jsp",function(aI){b("html").bind("dragstart.jsp selectstart.jsp",aB);
au.addClass("jspActive");var s=aI.pageY-au.position().top;b("html").bind("mousemove.jsp",function(aJ){U(aJ.pageY-s,false)
}).bind("mouseup.jsp mouseleave.jsp",aw);return false});p()}}function p(){ap.height(u+"px");
I=0;W=ay.verticalGutter+ap.outerWidth();X.width(aj-W-g);if(T.position().left===0){X.css("margin-left",W+"px")
}}function A(){if(aE){al.append(b('<div class="jspHorizontalBar" />').append(b('<div class="jspCap jspCapLeft" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragLeft" />'),b('<div class="jspDragRight" />'))),b('<div class="jspCap jspCapRight" />')));
am=al.find(">.jspHorizontalBar");G=am.find(">.jspTrack");i=G.find(">.jspDrag");if(ay.showArrows){ax=b('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",aD(-1,0)).bind("click.jsp",aB);
y=b('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",aD(1,0)).bind("click.jsp",aB);
if(ay.arrowScrollOnHover){ax.bind("mouseover.jsp",aD(-1,0,ax));y.bind("mouseover.jsp",aD(1,0,y))
}ak(G,ay.horizontalArrowPositions,ax,y)}i.hover(function(){i.addClass("jspHover")
},function(){i.removeClass("jspHover")}).bind("mousedown.jsp",function(aI){b("html").bind("dragstart.jsp selectstart.jsp",aB);
i.addClass("jspActive");var s=aI.pageX-i.position().left;b("html").bind("mousemove.jsp",function(aJ){V(aJ.pageX-s,false)
}).bind("mouseup.jsp mouseleave.jsp",aw);return false});m=al.innerWidth();ag()}}function ag(){al.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){m-=b(this).outerWidth()
});G.width(m+"px");Z=0}function F(){if(aE&&az){var aI=G.outerHeight(),s=ap.outerWidth();
u-=aI;b(am).find(">.jspCap:visible,>.jspArrow").each(function(){m+=b(this).outerWidth()
});m-=s;w-=s;aj-=aI;G.parent().append(b('<div class="jspCorner" />').css("width",aI+"px"));
p();ag()}if(aE){X.width((al.outerWidth()-g)+"px")}Y=X.outerHeight();r=Y/w;if(aE){at=Math.ceil(1/z*m);
if(at>ay.horizontalDragMaxWidth){at=ay.horizontalDragMaxWidth}else{if(at<ay.horizontalDragMinWidth){at=ay.horizontalDragMinWidth
}}i.width(at+"px");k=m-at;ad(Z)}if(az){B=Math.ceil(1/r*u);if(B>ay.verticalDragMaxHeight){B=ay.verticalDragMaxHeight
}else{if(B<ay.verticalDragMinHeight){B=ay.verticalDragMinHeight}}au.height(B+"px");
j=u-B;ac(I)}}function ak(aJ,aL,aI,s){var aN="before",aK="after",aM;if(aL=="os"){aL=/Mac/.test(navigator.platform)?"after":"split"
}if(aL==aN){aK=aL}else{if(aL==aK){aN=aL;aM=aI;aI=s;s=aM}}aJ[aN](aI)[aK](s)}function aD(aI,s,aJ){return function(){H(aI,s,this,aJ);
this.blur();return false}}function H(aL,aK,aO,aN){aO=b(aO).addClass("jspActive");
var aM,aJ,aI=true,s=function(){if(aL!==0){P.scrollByX(aL*ay.arrowButtonSpeed)}if(aK!==0){P.scrollByY(aK*ay.arrowButtonSpeed)
}aJ=setTimeout(s,aI?ay.initialDelay:ay.arrowRepeatFreq);aI=false};s();aM=aN?"mouseout.jsp":"mouseup.jsp";
aN=aN||b("html");aN.bind(aM,function(){aO.removeClass("jspActive");aJ&&clearTimeout(aJ);
aJ=null;aN.unbind(aM)})}function q(){x();if(az){ap.bind("mousedown.jsp",function(aN){if(aN.originalTarget===c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageY-aO.top-I,aJ,aI=true,s=function(){var aR=aL.offset(),aS=aN.pageY-aR.top-B/2,aP=w*ay.scrollPagePercent,aQ=j*aP/(Y-w);
if(aM<0){if(I-aQ>aS){P.scrollByY(-aP)}else{U(aS)}}else{if(aM>0){if(I+aQ<aS){P.scrollByY(aP)
}else{U(aS)}}else{aK();return }}aJ=setTimeout(s,aI?ay.initialDelay:ay.trackClickRepeatFreq);
aI=false},aK=function(){aJ&&clearTimeout(aJ);aJ=null;b(document).unbind("mouseup.jsp",aK)
};s();b(document).bind("mouseup.jsp",aK);return false}})}if(aE){G.bind("mousedown.jsp",function(aN){if(aN.originalTarget===c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageX-aO.left-Z,aJ,aI=true,s=function(){var aR=aL.offset(),aS=aN.pageX-aR.left-at/2,aP=aj*ay.scrollPagePercent,aQ=k*aP/(S-aj);
if(aM<0){if(Z-aQ>aS){P.scrollByX(-aP)}else{V(aS)}}else{if(aM>0){if(Z+aQ<aS){P.scrollByX(aP)
}else{V(aS)}}else{aK();return }}aJ=setTimeout(s,aI?ay.initialDelay:ay.trackClickRepeatFreq);
aI=false},aK=function(){aJ&&clearTimeout(aJ);aJ=null;b(document).unbind("mouseup.jsp",aK)
};s();b(document).bind("mouseup.jsp",aK);return false}})}}function x(){if(G){G.unbind("mousedown.jsp")
}if(ap){ap.unbind("mousedown.jsp")}}function aw(){b("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");
if(au){au.removeClass("jspActive")}if(i){i.removeClass("jspActive")}}function U(s,aI){if(!az){return 
}if(s<0){s=0}else{if(s>j){s=j}}if(aI===c){aI=ay.animateScroll}if(aI){P.animate(au,"top",s,ac)
}else{au.css("top",s);ac(s)}}function ac(aI){if(aI===c){aI=au.position().top}al.scrollTop(0);
I=aI;var aL=I===0,aJ=I==j,aK=aI/j,s=-aK*(Y-w);if(ai!=aL||aG!=aJ){ai=aL;aG=aJ;D.trigger("jsp-arrow-change",[ai,aG,O,l])
}v(aL,aJ);X.css("top",s);D.trigger("jsp-scroll-y",[-s,aL,aJ]).trigger("scroll")}function V(aI,s){if(!aE){return 
}if(aI<0){aI=0}else{if(aI>k){aI=k}}if(s===c){s=ay.animateScroll}if(s){P.animate(i,"left",aI,ad)
}else{i.css("left",aI);ad(aI)}}function ad(aI){if(aI===c){aI=i.position().left}al.scrollTop(0);
Z=aI;var aL=Z===0,aK=Z==k,aJ=aI/k,s=-aJ*(S-aj);if(O!=aL||l!=aK){O=aL;l=aK;D.trigger("jsp-arrow-change",[ai,aG,O,l])
}t(aL,aK);X.css("left",s);D.trigger("jsp-scroll-x",[-s,aL,aK]).trigger("scroll")}function v(aI,s){if(ay.showArrows){aq[aI?"addClass":"removeClass"]("jspDisabled");
ae[s?"addClass":"removeClass"]("jspDisabled")}}function t(aI,s){if(ay.showArrows){ax[aI?"addClass":"removeClass"]("jspDisabled");
y[s?"addClass":"removeClass"]("jspDisabled")}}function L(s,aI){var aJ=s/(Y-w);U(aJ*j,aI)
}function M(aI,s){var aJ=aI/(S-aj);V(aJ*k,s)}function aa(aU,aP,aJ){var aN,aK,aL,s=0,aT=0,aI,aO,aR,aQ,aS;
try{aN=b(aU)}catch(aM){return }aK=aN.outerHeight();aL=aN.outerWidth();al.scrollTop(0);
al.scrollLeft(0);while(!aN.is(".jspPane")){s+=aN.position().top;aT+=aN.position().left;
aN=aN.offsetParent();if(/^body|html$/i.test(aN[0].nodeName)){return }}aI=aA();aO=aI+w;
if(s<aI||aP){aQ=s-ay.verticalGutter}else{if(s+aK>aO){aQ=s-w+aK+ay.verticalGutter}}if(aQ){L(aQ,aJ)
}viewportLeft=aC();aR=viewportLeft+aj;if(aT<viewportLeft||aP){aS=aT-ay.horizontalGutter
}else{if(aT+aL>aR){aS=aT-aj+aL+ay.horizontalGutter}}if(aS){M(aS,aJ)}}function aC(){return -X.position().left
}function aA(){return -X.position().top}function af(){al.unbind(ab).bind(ab,function(aL,aM,aK,aI){var aJ=Z,s=I;
P.scrollBy(aK*ay.mouseWheelSpeed,-aI*ay.mouseWheelSpeed,false);return aJ==Z&&s==I
})}function o(){al.unbind(ab)}function aB(){return false}function J(){X.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(s){aa(s.target,false)
})}function E(){X.find(":input,a").unbind("focus.jsp")}function R(){var s,aI;X.focus(function(){D.focus()
});D.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(aM){if(aM.target!==this){return 
}var aL=Z,aK=I;switch(aM.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:s=aM.keyCode;
aJ();break;case 35:L(Y-w);s=null;break;case 36:L(0);s=null;break}aI=aM.keyCode==s&&aL!=Z||aK!=I;
return !aI}).bind("keypress.jsp",function(aK){if(aK.keyCode==s){aJ()}return !aI});
if(ay.hideFocus){D.css("outline","none");if("hideFocus" in al[0]){D.attr("hideFocus",true)
}}else{D.css("outline","");if("hideFocus" in al[0]){D.attr("hideFocus",false)}}function aJ(){var aL=Z,aK=I;
switch(s){case 40:P.scrollByY(ay.keyboardSpeed,false);break;case 38:P.scrollByY(-ay.keyboardSpeed,false);
break;case 34:case 32:P.scrollByY(w*ay.scrollPagePercent,false);break;case 33:P.scrollByY(-w*ay.scrollPagePercent,false);
break;case 39:P.scrollByX(ay.keyboardSpeed,false);break;case 37:P.scrollByX(-ay.keyboardSpeed,false);
break}aI=aL!=Z||aK!=I;return aI}}function Q(){D.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")
}function C(){if(location.hash&&location.hash.length>1){var aJ,aI;try{aJ=b(location.hash)
}catch(s){return }if(aJ.length&&X.find(location.hash)){if(al.scrollTop()===0){aI=setInterval(function(){if(al.scrollTop()>0){aa(location.hash,true);
b(document).scrollTop(al.position().top);clearInterval(aI)}},50)}else{aa(location.hash,true);
b(document).scrollTop(al.position().top)}}}}function ah(){b("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")
}function n(){ah();b("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var s=this.href.split("#"),aI;
if(s.length>1){aI=s[1];if(aI.length>0&&X.find("#"+aI).length>0){aa("#"+aI,true);return false
}}})}function an(){var aJ,aI,aL,aK,aM,s=false;al.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(aN){var aO=aN.originalEvent.touches[0];
aJ=aC();aI=aA();aL=aO.pageX;aK=aO.pageY;aM=false;s=true}).bind("touchmove.jsp",function(aQ){if(!s){return 
}var aP=aQ.originalEvent.touches[0],aO=Z,aN=I;P.scrollTo(aJ+aL-aP.pageX,aI+aK-aP.pageY);
aM=aM||Math.abs(aL-aP.pageX)>5||Math.abs(aK-aP.pageY)>5;return aO==Z&&aN==I}).bind("touchend.jsp",function(aN){s=false
}).bind("click.jsp-touchclick",function(aN){if(aM){aM=false;return false}})}function h(){var s=aA(),aI=aC();
D.removeClass("jspScrollable").unbind(".jsp");D.replaceWith(ao.append(X.children()));
ao.scrollTop(s);ao.scrollLeft(aI)}b.extend(P,{reinitialise:function(aI){aI=b.extend({},ay,aI);
ar(aI)},scrollToElement:function(aJ,aI,s){aa(aJ,aI,s)},scrollTo:function(aJ,s,aI){M(aJ,aI);
L(s,aI)},scrollToX:function(aI,s){M(aI,s)},scrollToY:function(s,aI){L(s,aI)},scrollToPercentX:function(aI,s){M(aI*(S-aj),s)
},scrollToPercentY:function(aI,s){L(aI*(Y-w),s)},scrollBy:function(aI,s,aJ){P.scrollByX(aI,aJ);
P.scrollByY(s,aJ)},scrollByX:function(s,aJ){var aI=aC()+s,aK=aI/(S-aj);V(aK*k,aJ)
},scrollByY:function(s,aJ){var aI=aA()+s,aK=aI/(Y-w);U(aK*j,aJ)},positionDragX:function(s,aI){V(s,aI)
},positionDragY:function(aI,s){V(aI,s)},animate:function(aI,aL,s,aK){var aJ={};aJ[aL]=s;
aI.animate(aJ,{duration:ay.animateDuration,ease:ay.animateEase,queue:false,step:aK})
},getContentPositionX:function(){return aC()},getContentPositionY:function(){return aA()
},getContentWidth:function(){return S()},getContentHeight:function(){return Y()},getPercentScrolledX:function(){return aC()/(S-aj)
},getPercentScrolledY:function(){return aA()/(Y-w)},getIsScrollableH:function(){return aE
},getIsScrollableV:function(){return az},getContentPane:function(){return X},scrollToBottom:function(s){U(j,s)
},hijackInternalLinks:function(){n()},destroy:function(){h()}});ar(N)}f=b.extend({},b.fn.jScrollPane.defaults,f);
b.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){f[this]=f[this]||f.speed
});var e;this.each(function(){var g=b(this),h=g.data("jsp");if(h){h.reinitialise(f)
}else{h=new d(g,f);g.data("jsp",h)}e=e?e.add(g):g});return e};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}
})(jQuery,this);(function($){var NivoSlider=function(element,options){var settings=$.extend({},$.fn.nivoSlider.defaults,options);
var vars={currentSlide:0,currentImage:"",totalSlides:0,randAnim:"",running:false,paused:false,stop:false};
var slider=$(element);slider.data("nivo:vars",vars);slider.css("position","relative");
slider.addClass("nivoSlider");var kids=slider.children();kids.each(function(){var child=$(this);
var link="";if(!child.is("img")){if(child.is("a")){child.addClass("nivo-imageLink");
link=child}child=child.find("img:first")}var childWidth=child.width();if(childWidth==0){childWidth=child.attr("width")
}var childHeight=child.height();if(childHeight==0){childHeight=child.attr("height")
}if(childWidth>slider.width()){slider.width(childWidth)}if(childHeight>slider.height()){slider.height(childHeight)
}if(link!=""){link.css("display","none")}child.css("display","none");vars.totalSlides++
});if(settings.startSlide>0){if(settings.startSlide>=vars.totalSlides){settings.startSlide=vars.totalSlides-1
}vars.currentSlide=settings.startSlide}if($(kids[vars.currentSlide]).is("img")){vars.currentImage=$(kids[vars.currentSlide])
}else{vars.currentImage=$(kids[vars.currentSlide]).find("img:first")}if($(kids[vars.currentSlide]).is("a")){$(kids[vars.currentSlide]).css("display","block")
}slider.css("background",'url("'+vars.currentImage.attr("src")+'") no-repeat');slider.append($('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:settings.captionOpacity}));
var processCaption=function(settings){var nivoCaption=$(".nivo-caption",slider);if(vars.currentImage.attr("title")!=""&&vars.currentImage.attr("title")!=undefined){var title=vars.currentImage.attr("title");
if(title.substr(0,1)=="#"){title=$(title).html()}if(nivoCaption.css("display")=="block"){nivoCaption.find("p").fadeOut(settings.animSpeed,function(){$(this).html(title);
$(this).fadeIn(settings.animSpeed)})}else{nivoCaption.find("p").html(title)}nivoCaption.fadeIn(settings.animSpeed)
}else{nivoCaption.fadeOut(settings.animSpeed)}};processCaption(settings);var timer=0;
if(!settings.manualAdvance&&kids.length>1){timer=setInterval(function(){nivoRun(slider,kids,settings,false)
},settings.pauseTime)}if(settings.directionNav){slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+settings.prevText+'</a><a class="nivo-nextNav">'+settings.nextText+"</a></div>");
if(settings.directionNavHide){$(".nivo-directionNav",slider).hide();slider.hover(function(){$(".nivo-directionNav",slider).show()
},function(){$(".nivo-directionNav",slider).hide()})}$("a.nivo-prevNav",slider).live("click",function(){if(vars.running){return false
}clearInterval(timer);timer="";vars.currentSlide-=2;nivoRun(slider,kids,settings,"prev")
});$("a.nivo-nextNav",slider).live("click",function(){if(vars.running){return false
}clearInterval(timer);timer="";nivoRun(slider,kids,settings,"next")})}if(settings.controlNav){var nivoControl=$('<div class="nivo-controlNav"></div>');
slider.append(nivoControl);for(var i=0;i<kids.length;i++){if(settings.controlNavThumbs){var child=kids.eq(i);
if(!child.is("img")){child=child.find("img:first")}if(settings.controlNavThumbsFromRel){nivoControl.append('<a class="nivo-control" rel="'+i+'"><img src="'+child.attr("rel")+'" alt="" /></a>')
}else{nivoControl.append('<a class="nivo-control" rel="'+i+'"><img src="'+child.attr("src").replace(settings.controlNavThumbsSearch,settings.controlNavThumbsReplace)+'" alt="" /></a>')
}}else{nivoControl.append('<a class="nivo-control" rel="'+i+'">'+(i+1)+"</a>")}}$(".nivo-controlNav a:eq("+vars.currentSlide+")",slider).addClass("active");
$(".nivo-controlNav a",slider).live("click",function(){if(vars.running){return false
}if($(this).hasClass("active")){return false}clearInterval(timer);timer="";slider.css("background",'url("'+vars.currentImage.attr("src")+'") no-repeat');
vars.currentSlide=$(this).attr("rel")-1;nivoRun(slider,kids,settings,"control")})
}if(settings.keyboardNav){$(window).keypress(function(event){if(event.keyCode=="37"){if(vars.running){return false
}clearInterval(timer);timer="";vars.currentSlide-=2;nivoRun(slider,kids,settings,"prev")
}if(event.keyCode=="39"){if(vars.running){return false}clearInterval(timer);timer="";
nivoRun(slider,kids,settings,"next")}})}if(settings.pauseOnHover){slider.hover(function(){vars.paused=true;
clearInterval(timer);timer=""},function(){vars.paused=false;if(timer==""&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false)
},settings.pauseTime)}})}slider.bind("nivo:animFinished",function(){vars.running=false;
$(kids).each(function(){if($(this).is("a")){$(this).css("display","none")}});if($(kids[vars.currentSlide]).is("a")){$(kids[vars.currentSlide]).css("display","block")
}if(timer==""&&!vars.paused&&!settings.manualAdvance){timer=setInterval(function(){nivoRun(slider,kids,settings,false)
},settings.pauseTime)}settings.afterChange.call(this)});var createSlices=function(slider,settings,vars){for(var i=0;
i<settings.slices;i++){var sliceWidth=Math.round(slider.width()/settings.slices);
if(i==settings.slices-1){slider.append($('<div class="nivo-slice"></div>').css({left:(sliceWidth*i)+"px",width:(slider.width()-(sliceWidth*i))+"px",height:"0px",opacity:"0",background:'url("'+vars.currentImage.attr("src")+'") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+"px 0%"}))
}else{slider.append($('<div class="nivo-slice"></div>').css({left:(sliceWidth*i)+"px",width:sliceWidth+"px",height:"0px",opacity:"0",background:'url("'+vars.currentImage.attr("src")+'") no-repeat -'+((sliceWidth+(i*sliceWidth))-sliceWidth)+"px 0%"}))
}}};var createBoxes=function(slider,settings,vars){var boxWidth=Math.round(slider.width()/settings.boxCols);
var boxHeight=Math.round(slider.height()/settings.boxRows);for(var rows=0;rows<settings.boxRows;
rows++){for(var cols=0;cols<settings.boxCols;cols++){if(cols==settings.boxCols-1){slider.append($('<div class="nivo-box"></div>').css({opacity:0,left:(boxWidth*cols)+"px",top:(boxHeight*rows)+"px",width:(slider.width()-(boxWidth*cols))+"px",height:boxHeight+"px",background:'url("'+vars.currentImage.attr("src")+'") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+"px -"+((boxHeight+(rows*boxHeight))-boxHeight)+"px"}))
}else{slider.append($('<div class="nivo-box"></div>').css({opacity:0,left:(boxWidth*cols)+"px",top:(boxHeight*rows)+"px",width:boxWidth+"px",height:boxHeight+"px",background:'url("'+vars.currentImage.attr("src")+'") no-repeat -'+((boxWidth+(cols*boxWidth))-boxWidth)+"px -"+((boxHeight+(rows*boxHeight))-boxHeight)+"px"}))
}}}};var nivoRun=function(slider,kids,settings,nudge){var vars=slider.data("nivo:vars");
if(vars&&(vars.currentSlide==vars.totalSlides-1)){settings.lastSlide.call(this)}if((!vars||vars.stop)&&!nudge){return false
}settings.beforeChange.call(this);if(!nudge){slider.css("background",'url("'+vars.currentImage.attr("src")+'") no-repeat')
}else{if(nudge=="prev"){slider.css("background",'url("'+vars.currentImage.attr("src")+'") no-repeat')
}if(nudge=="next"){slider.css("background",'url("'+vars.currentImage.attr("src")+'") no-repeat')
}}vars.currentSlide++;if(vars.currentSlide==vars.totalSlides){vars.currentSlide=0;
settings.slideshowEnd.call(this)}if(vars.currentSlide<0){vars.currentSlide=(vars.totalSlides-1)
}if($(kids[vars.currentSlide]).is("img")){vars.currentImage=$(kids[vars.currentSlide])
}else{vars.currentImage=$(kids[vars.currentSlide]).find("img:first")}if(settings.controlNav){$(".nivo-controlNav a",slider).removeClass("active");
$(".nivo-controlNav a:eq("+vars.currentSlide+")",slider).addClass("active")}processCaption(settings);
$(".nivo-slice",slider).remove();$(".nivo-box",slider).remove();if(settings.effect=="random"){var anims=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");
vars.randAnim=anims[Math.floor(Math.random()*(anims.length+1))];if(vars.randAnim==undefined){vars.randAnim="fade"
}}if(settings.effect.indexOf(",")!=-1){var anims=settings.effect.split(",");vars.randAnim=anims[Math.floor(Math.random()*(anims.length))];
if(vars.randAnim==undefined){vars.randAnim="fade"}}vars.running=true;if(settings.effect=="sliceDown"||settings.effect=="sliceDownRight"||vars.randAnim=="sliceDownRight"||settings.effect=="sliceDownLeft"||vars.randAnim=="sliceDownLeft"){createSlices(slider,settings,vars);
var timeBuff=0;var i=0;var slices=$(".nivo-slice",slider);if(settings.effect=="sliceDownLeft"||vars.randAnim=="sliceDownLeft"){slices=$(".nivo-slice",slider)._reverse()
}slices.each(function(){var slice=$(this);slice.css({top:"0px"});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:"100%",opacity:"1.0"},settings.animSpeed,"",function(){slider.trigger("nivo:animFinished")
})},(100+timeBuff))}else{setTimeout(function(){slice.animate({height:"100%",opacity:"1.0"},settings.animSpeed)
},(100+timeBuff))}timeBuff+=50;i++})}else{if(settings.effect=="sliceUp"||settings.effect=="sliceUpRight"||vars.randAnim=="sliceUpRight"||settings.effect=="sliceUpLeft"||vars.randAnim=="sliceUpLeft"){createSlices(slider,settings,vars);
var timeBuff=0;var i=0;var slices=$(".nivo-slice",slider);if(settings.effect=="sliceUpLeft"||vars.randAnim=="sliceUpLeft"){slices=$(".nivo-slice",slider)._reverse()
}slices.each(function(){var slice=$(this);slice.css({bottom:"0px"});if(i==settings.slices-1){setTimeout(function(){slice.animate({height:"100%",opacity:"1.0"},settings.animSpeed,"",function(){slider.trigger("nivo:animFinished")
})},(100+timeBuff))}else{setTimeout(function(){slice.animate({height:"100%",opacity:"1.0"},settings.animSpeed)
},(100+timeBuff))}timeBuff+=50;i++})}else{if(settings.effect=="sliceUpDown"||settings.effect=="sliceUpDownRight"||vars.randAnim=="sliceUpDown"||settings.effect=="sliceUpDownLeft"||vars.randAnim=="sliceUpDownLeft"){createSlices(slider,settings,vars);
var timeBuff=0;var i=0;var v=0;var slices=$(".nivo-slice",slider);if(settings.effect=="sliceUpDownLeft"||vars.randAnim=="sliceUpDownLeft"){slices=$(".nivo-slice",slider)._reverse()
}slices.each(function(){var slice=$(this);if(i==0){slice.css("top","0px");i++}else{slice.css("bottom","0px");
i=0}if(v==settings.slices-1){setTimeout(function(){slice.animate({height:"100%",opacity:"1.0"},settings.animSpeed,"",function(){slider.trigger("nivo:animFinished")
})},(100+timeBuff))}else{setTimeout(function(){slice.animate({height:"100%",opacity:"1.0"},settings.animSpeed)
},(100+timeBuff))}timeBuff+=50;v++})}else{if(settings.effect=="fold"||vars.randAnim=="fold"){createSlices(slider,settings,vars);
var timeBuff=0;var i=0;$(".nivo-slice",slider).each(function(){var slice=$(this);
var origWidth=slice.width();slice.css({top:"0px",height:"100%",width:"0px"});if(i==settings.slices-1){setTimeout(function(){slice.animate({width:origWidth,opacity:"1.0"},settings.animSpeed,"",function(){slider.trigger("nivo:animFinished")
})},(100+timeBuff))}else{setTimeout(function(){slice.animate({width:origWidth,opacity:"1.0"},settings.animSpeed)
},(100+timeBuff))}timeBuff+=50;i++})}else{if(settings.effect=="fade"||vars.randAnim=="fade"){createSlices(slider,settings,vars);
var firstSlice=$(".nivo-slice:first",slider);firstSlice.css({height:"100%",width:slider.width()+"px"});
firstSlice.animate({opacity:"1.0"},(settings.animSpeed*2),"",function(){slider.trigger("nivo:animFinished")
})}else{if(settings.effect=="slideInRight"||vars.randAnim=="slideInRight"){createSlices(slider,settings,vars);
var firstSlice=$(".nivo-slice:first",slider);firstSlice.css({height:"100%",width:"0px",opacity:"1"});
firstSlice.animate({width:slider.width()+"px"},(settings.animSpeed*2),"",function(){slider.trigger("nivo:animFinished")
})}else{if(settings.effect=="slideInLeft"||vars.randAnim=="slideInLeft"){createSlices(slider,settings,vars);
var firstSlice=$(".nivo-slice:first",slider);firstSlice.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});
firstSlice.animate({width:slider.width()+"px"},(settings.animSpeed*2),"",function(){firstSlice.css({left:"0px",right:""});
slider.trigger("nivo:animFinished")})}else{if(settings.effect=="boxRandom"||vars.randAnim=="boxRandom"){createBoxes(slider,settings,vars);
var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var boxes=shuffle($(".nivo-box",slider));
boxes.each(function(){var box=$(this);if(i==totalBoxes-1){setTimeout(function(){box.animate({opacity:"1"},settings.animSpeed,"",function(){slider.trigger("nivo:animFinished")
})},(100+timeBuff))}else{setTimeout(function(){box.animate({opacity:"1"},settings.animSpeed)
},(100+timeBuff))}timeBuff+=20;i++})}else{if(settings.effect=="boxRain"||vars.randAnim=="boxRain"||settings.effect=="boxRainReverse"||vars.randAnim=="boxRainReverse"||settings.effect=="boxRainGrow"||vars.randAnim=="boxRainGrow"||settings.effect=="boxRainGrowReverse"||vars.randAnim=="boxRainGrowReverse"){createBoxes(slider,settings,vars);
var totalBoxes=settings.boxCols*settings.boxRows;var i=0;var timeBuff=0;var rowIndex=0;
var colIndex=0;var box2Darr=new Array();box2Darr[rowIndex]=new Array();var boxes=$(".nivo-box",slider);
if(settings.effect=="boxRainReverse"||vars.randAnim=="boxRainReverse"||settings.effect=="boxRainGrowReverse"||vars.randAnim=="boxRainGrowReverse"){boxes=$(".nivo-box",slider)._reverse()
}boxes.each(function(){box2Darr[rowIndex][colIndex]=$(this);colIndex++;if(colIndex==settings.boxCols){rowIndex++;
colIndex=0;box2Darr[rowIndex]=new Array()}});for(var cols=0;cols<(settings.boxCols*2);
cols++){var prevCol=cols;for(var rows=0;rows<settings.boxRows;rows++){if(prevCol>=0&&prevCol<settings.boxCols){(function(row,col,time,i,totalBoxes){var box=$(box2Darr[row][col]);
var w=box.width();var h=box.height();if(settings.effect=="boxRainGrow"||vars.randAnim=="boxRainGrow"||settings.effect=="boxRainGrowReverse"||vars.randAnim=="boxRainGrowReverse"){box.width(0).height(0)
}if(i==totalBoxes-1){setTimeout(function(){box.animate({opacity:"1",width:w,height:h},settings.animSpeed/1.3,"",function(){slider.trigger("nivo:animFinished")
})},(100+time))}else{setTimeout(function(){box.animate({opacity:"1",width:w,height:h},settings.animSpeed/1.3)
},(100+time))}})(rows,prevCol,timeBuff,i,totalBoxes);i++}prevCol--}timeBuff+=100}}}}}}}}}}};
var shuffle=function(arr){for(var j,x,i=arr.length;i;j=parseInt(Math.random()*i),x=arr[--i],arr[i]=arr[j],arr[j]=x){}return arr
};var trace=function(msg){if(this.console&&typeof console.log!="undefined"){console.log(msg)
}};this.stop=function(){if(!$(element).data("nivo:vars").stop){$(element).data("nivo:vars").stop=true;
trace("Stop Slider")}};this.start=function(){if($(element).data("nivo:vars").stop){$(element).data("nivo:vars").stop=false;
trace("Start Slider")}};this.next=function(){if(vars.running){return false}clearInterval(timer);
timer="";nivoRun(slider,kids,settings,"next")};this.prev=function(){if(vars.running){return false
}clearInterval(timer);timer="";nivoRun(slider,kids,settings,"next")};this.go=function(el){if(vars.running){return false
}clearInterval(timer);timer="";slider.css("background",'url("'+vars.currentImage.attr("src")+'") no-repeat');
vars.currentSlide=el-1;nivoRun(slider,kids,settings,"control")};settings.afterLoad.call(this);
return this};$.fn.nivoSlider=function(options){return this.each(function(key,value){var element=$(this);
if(element.data("nivoslider")){return element.data("nivoslider")}var nivoslider=new NivoSlider(this,options);
element.data("nivoslider",nivoslider)})};$.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,prevText:"Prev",nextText:"Next",beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};
$.fn._reverse=[].reverse})(jQuery);
/*
 * jQuery Tools dev - The missing UI library for the Web
 * 
 * scrollable/scrollable.js
 * scrollable/scrollable.navigator.js
 * toolbox/toolbox.history.js
 * toolbox/toolbox.mousewheel.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 * jquery.event.wheel.js - rev 1 
 * Copyright (c) 2008, Three Dub Media (http://threedubmedia.com)
 * Liscensed under the MIT License (MIT-LICENSE.txt)
 * http://www.opensource.org/licenses/mit-license.php
 * Created: 2008-07-01 | Updated: 2008-07-14
 * 
 * -----
 * 
 */
(function(a){a.tools=a.tools||{version:"dev"},a.tools.scrollable={conf:{activeClass:"active",circular:!1,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:"> *",items:".items",keyboard:!0,mousewheel:!1,next:".next",prev:".prev",size:1,speed:400,vertical:!1,touch:!0,wheelSpeed:0}};
function b(a,b){var c=parseInt(a.css(b),10);if(c){return c}var d=a[0].currentStyle;
return d&&d.width&&parseInt(d.width,10)}function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)
}var d;function e(b,e){var f=this,g=b.add(f),h=b.children(),i=0,j=e.vertical;d||(d=f),h.length>1&&(h=a(e.items,b)),e.size>1&&(e.circular=!1),a.extend(f,{getConf:function(){return e
},getIndex:function(){return i},getSize:function(){return f.getItems().size()},getNaviButtons:function(){return n.add(o)
},getRoot:function(){return b},getItemWrap:function(){return h},getItems:function(){return h.find(e.item).not("."+e.clonedClass)
},move:function(a,b){return f.seekTo(i+a,b)},next:function(a){return f.move(e.size,a)
},prev:function(a){return f.move(-e.size,a)},begin:function(a){return f.seekTo(0,a)
},end:function(a){return f.seekTo(f.getSize()-1,a)},focus:function(){d=f;return f
},addItem:function(b){b=a(b),e.circular?(h.children().last().before(b),h.children().first().replaceWith(b.clone().addClass(e.clonedClass))):(h.append(b),o.removeClass("disabled")),g.trigger("onAddItem",[b]);
return f},seekTo:function(b,c,k){b.jquery||(b*=1);if(e.circular&&b===0&&i==-1&&c!==0){return f
}if(!e.circular&&b<0||b>f.getSize()||b<-1){return f}var l=b;b.jquery?b=f.getItems().index(b):l=f.getItems().eq(b);
var m=a.Event("onBeforeSeek");if(!k){g.trigger(m,[b,c]);if(m.isDefaultPrevented()||!l.length){return f
}}var n=j?{top:-l.position().top}:{left:-l.position().left};i=b,d=f,c===undefined&&(c=e.speed),h.animate(n,c,e.easing,k||function(){g.trigger("onSeek",[b])
});return f}}),a.each(["onBeforeSeek","onSeek","onAddItem"],function(b,c){a.isFunction(e[c])&&a(f).bind(c,e[c]),f[c]=function(b){b&&a(f).bind(c,b);
return f}});if(e.circular){var k=f.getItems().slice(-1).clone().prependTo(h),l=f.getItems().eq(1).clone().appendTo(h);
k.add(l).addClass(e.clonedClass),f.onBeforeSeek(function(a,b,c){if(!a.isDefaultPrevented()){if(b==-1){f.seekTo(k,c,function(){f.end(0)
});return a.preventDefault()}b==f.getSize()&&f.seekTo(l,c,function(){f.begin(0)})
}});var m=b.parents().add(b).filter(function(){if(a(this).css("display")==="none"){return !0
}});m.length?(m.show(),f.seekTo(0,0,function(){}),m.hide()):f.seekTo(0,0,function(){})
}var n=c(b,e.prev).click(function(){f.prev()}),o=c(b,e.next).click(function(){f.next()
});e.circular||(f.onBeforeSeek(function(a,b){setTimeout(function(){a.isDefaultPrevented()||(n.toggleClass(e.disabledClass,b<=0),o.toggleClass(e.disabledClass,b>=f.getSize()-1))
},1)}),e.initialIndex||n.addClass(e.disabledClass)),f.getSize()<2&&n.add(o).addClass(e.disabledClass),e.mousewheel&&a.fn.mousewheel&&b.mousewheel(function(a,b){if(e.mousewheel){f.move(b<0?1:-1,e.wheelSpeed||50);
return !1}});if(e.touch){var p={};h[0].ontouchstart=function(a){var b=a.touches[0];
p.x=b.clientX,p.y=b.clientY},h[0].ontouchmove=function(a){if(a.touches.length==1&&!h.is(":animated")){var b=a.touches[0],c=p.x-b.clientX,d=p.y-b.clientY;
f[j&&d>0||!j&&c>0?"next":"prev"](),a.preventDefault()}}}e.keyboard&&a(document).bind("keydown.scrollable",function(b){if(!(!e.keyboard||b.altKey||b.ctrlKey||b.metaKey||a(b.target).is(":input"))){if(e.keyboard!="static"&&d!=f){return 
}var c=b.keyCode;if(j&&(c==38||c==40)){f.move(c==38?-1:1);return b.preventDefault()
}if(!j&&(c==37||c==39)){f.move(c==37?-1:1);return b.preventDefault()}}}),e.initialIndex&&f.seekTo(e.initialIndex,0,function(){})
}a.fn.scrollable=function(b){var c=this.data("scrollable");if(c){return c}b=a.extend({},a.tools.scrollable.conf,b),this.each(function(){c=new e(a(this),b),a(this).data("scrollable",c)
});return b.api?c:this}})(jQuery);(function(a){var b=a.tools.scrollable;b.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:!1,idPrefix:null,history:!1}};
function c(b,c){var d=a(c);return d.length<2?d:b.parent().find(c)}a.fn.navigator=function(d){typeof d=="string"&&(d={navi:d}),d=a.extend({},b.navigator.conf,d);
var e;this.each(function(){var b=a(this).data("scrollable"),f=d.navi.jquery?d.navi:c(b.getRoot(),d.navi),g=b.getNaviButtons(),h=d.activeClass,i=d.history&&history.pushState,j=b.getConf().size;
b&&(e=b),b.getNaviButtons=function(){return g.add(f)},i&&(history.pushState({i:0}),a(window).bind("popstate",function(a){var c=a.originalEvent.state;
c&&b.seekTo(c.i)}));function k(a,c,d){b.seekTo(c),d.preventDefault(),i&&history.pushState({i:c})
}function l(){return f.find(d.naviItem||"> *")}function m(b){var c=a("<"+(d.naviItem||"a")+"/>").click(function(c){k(a(this),b,c)
});b===0&&c.addClass(h),d.indexed&&c.text(b+1),d.idPrefix&&c.attr("id",d.idPrefix+b);
return c.appendTo(f)}l().length?l().each(function(b){a(this).click(function(c){k(a(this),b,c)
})}):a.each(b.getItems(),function(a){a%j==0&&m(a)}),b.onBeforeSeek(function(a,b){setTimeout(function(){if(!a.isDefaultPrevented()){var c=b/j,d=l().eq(c);
d.length&&l().removeClass(h).eq(c).addClass(h)}},1)}),b.onAddItem(function(a,c){var d=b.getItems().index(c);
d%j==0&&m(d)})});return d.api?e:this}})(jQuery);(function(a){var b,c,d,e;a.tools=a.tools||{version:"dev"},a.tools.history={init:function(g){e||(a.browser.msie&&a.browser.version<"8"?c||(c=a("<iframe/>").attr("src","javascript:false;").hide().get(0),a("body").append(c),setInterval(function(){var d=c.contentWindow.document,e=d.location.hash;
b!==e&&a.event.trigger("hash",e)},100),f(location.hash||"#")):setInterval(function(){var c=location.hash;
c!==b&&a.event.trigger("hash",c)},100),d=d?d.add(g):g,g.click(function(b){var d=a(this).attr("href");
c&&f(d);if(d.slice(0,1)!="#"){location.href="#"+d;return b.preventDefault()}}),e=!0)
}};function f(a){if(a){var b=c.contentWindow.document;b.open().close(),b.location.hash=a
}}a(window).bind("hash",function(c,e){e?d.filter(function(){var b=a(this).attr("href");
return b==e||b==e.replace("#","")}).trigger("history",[e]):d.eq(0).trigger("history",[e]),b=e
}),a.fn.history=function(b){a.tools.history.init(this);return this.bind("history",b)
}})(jQuery);(function(a){a.fn.mousewheel=function(a){return this[a?"bind":"trigger"]("wheel",a)
},a.event.special.wheel={setup:function(){a.event.add(this,b,c,{})},teardown:function(){a.event.remove(this,b,c)
}};var b=a.browser.mozilla?"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":""):"mousewheel";
function c(b){switch(b.type){case"mousemove":return a.extend(b.data,{clientX:b.clientX,clientY:b.clientY,pageX:b.pageX,pageY:b.pageY});
case"DOMMouseScroll":a.extend(b,b.data),b.delta=-b.detail/3;break;case"mousewheel":b.delta=b.wheelDelta/120
}b.type="wheel";return a.event.handle.call(this,b,b.delta)}})(jQuery);(function($){function numsort(a,b){return a-b
}var uniqueID=0;$.widget("ui.tabtree",{options:{buttonSel:"a",panelSel:false,focusOnExpand:true,focusSel:true,createPanelwrapper:false,toggleButton:false,multiSelectable:false,createPanelTabRelation:false,selectEvents:"ariaclick",bindStyle:"bind",bindContext:false,defaultSelected:0,slideShow:false,restartSlideShow:true,activeButtonClass:"js-selected",hoverListItemClass:"js-hovered",activePanelClass:"js-expanded",handleDisplay:true,interceptClick:true,addAria:true,setPanelHeightByTabbar:false},_createPanelAPI:function(button,panel){var that=this;
$.data(panel[0],"tabtreepanel",{instance:this,button:button,expand:function(e){that.expand(button,e)
},collapse:function(e){that.collapse(button,e)}});$.data(button[0],"tabtreebutton",{instance:this,panel:panel,expand:function(e){that.expand(button,e)
},collapse:function(e){that.collapse(button,e)}})},_create:function(){var that=this,o=this.options,elem=this.element,isSelectedArray=o.defaultSelected.length,isHTMLSelected;
var tabbarHeight=elem.height();this.selectedIndexes=[];this.slideShowtimer=null;this.buttons=$(o.buttonSel,elem[0]);
this.panels=(o.panelSel)?$(o.panelSel,this.element[0]).each(function(i){var button=$(that.buttons[i]),panel=$(this);
button.controlsThis(panel);if(o.createPanelTabRelation){panel.labelWith(button)}that._createPanelAPI(button,panel)
}):this.buttons.map(function(){var button=$(this),idRef=button.getHrefHash(),panel=$(idRef);
if(o.createPanelTabRelation){panel.labelWith(button)}button.attr({"aria-controls":idRef.replace("#","")});
that._createPanelAPI(button,panel);return panel[0]});this.panels=$($.unique(this.panels.get()));
if(o.createPanelwrapper){this.panels.wrap('<div class="a11y-panelwrapper" />')}if(o.setPanelHeightByTabbar){if($("html").is(".ie6")){this.panels.css("height",tabbarHeight+"px")
}else{this.panels.css("min-height",tabbarHeight+"px")}}isHTMLSelected=!!this.buttons.filter("."+o.activeButtonClass)[0];
this.buttons.each(function(i){var initAction;if(isHTMLSelected){initAction=($(this).hasClass(o.activeButtonClass))?"expand":"collapse"
}else{if(isSelectedArray){initAction=($.inArray(i,o.defaultSelected)!==-1)?"expand":"collapse"
}else{initAction=(o.defaultSelected===i)?"expand":"collapse"}}that[initAction].call(that,this,{type:"init"})
});if(o.addAria){this.buttons.attr({role:"button"});if(this.buttons[0]&&$.nodeName(this.buttons[0],"a")){this.buttons.each(function(){var jElm=$(this);
this.setAttribute("data-href",jElm.attr("href"));if($.support.waiAria){jElm.removeAttr("href")
}})}}this.panels.attr({role:"group"}).addClass("a11y-js-overflow");uniqueID++;if(o.bindStyle==="live"){this.buttons.context=(o.bindContext)?$(o.bindContext,this.element)[0]:this.element[0];
this.buttons.selector=".tabtree-button_"+uniqueID;this.buttons.addClass("tabtree-button_"+uniqueID);
if(!this.buttons.context){console.log(o.bindContext+" not found in tab-module")}}if(o.selectEvents){this.buttons[o.bindStyle](o.selectEvents,function(e){var action=(o.toggleButton)?"toggle":"expand";
clearInterval(that.slideShowtimer);that[action].call(that,this,e);return false})}if(o.interceptClick&&(!o.selectEvents||o.selectEvents.indexOf("click")==-1)){this.buttons[o.bindStyle]("click",function(){clearInterval(that.slideShowtimer);
if(o.focusOnExpand){that.focusPanel.call(that,$("#"+$(this).attr("aria-controls")),1)
}return false})}if(o.slideShow&&isFinite(o.slideShow)){this.slideShowtimer=setInterval(function(){that.showPrevNext.call(that,1)
},o.slideShow);this.element.inOut(function(){clearInterval(that.slideShowtimer)},function(){if(o.restartSlideShow){clearInterval(that.slideShowtimer);
that.slideShowtimer=setInterval(function(){that.showPrevNext.call(that,1)},o.slideShow)
}})}this._trigger("init",{type:"init"},this.ui())},getPrevNext:function(dir){var index=this.buttons.index(this.buttons.filter("."+this.options.activeButtonClass)[0])+dir;
if(index<0){index=this.buttons.length-1}else{if(index>=this.buttons.length){index=0
}}return{button:this.buttons.get(index),panel:this.panels.get(index)}},showPrevNext:function(dir){var data=this.getPrevNext(dir);
this.expand(data.button,{type:"show-"+dir})},toggle:function(button,e){var action=($(button).hasClass(this.options.activeButtonClass))?"collapse":"expand";
this[action](button,e)},collapse:function(button,e,_panel,_opener){e=e||{type:"collapse"};
button=$(button);if(!button.hasClass(this.options.activeButtonClass)&&e.type!="init"){return false
}var panel=_panel||this.getPanel(button),buttons=this.getButtons(panel),type=(e.type=="init")?"collapseinit":"collapse",that=this,o=this.options,uiObj={button:buttons,panel:panel};
if(!o.multiSelectable){uiObj.expandElements=_opener||{panel:$([]),button:$([])}}this.removeIndex(panel);
if(this._trigger(type,e,$.extend({},this.ui(),uiObj))===false){this.addIndex(panel);
return undefined}this.setState(buttons,uiObj.panel,"inactive");button.parents("li").removeClass(o.hoverListItemClass);
if(o.handleDisplay===true||(e.type=="init"&&o.handleDisplay)){if(o.hideStyle==="visibility"){uiObj.panel.parent().css({overflow:"hidden",height:0}).end().css({visibility:"hidden"})
}else{uiObj.panel.hide()}}uiObj.button=button;$.ui.SR.update();return uiObj},addIndex:function(index){if(!isFinite(index)&&index.jquery){index=this.panels.index(index[0])
}if($.inArray(index,this.selectedIndexes)===-1){this.selectedIndexes.push(index);
this.selectedIndexes.sort(numsort)}},removeIndex:function(index){if(!isFinite(index)&&index.jquery){index=this.panels.index(index[0])
}this.selectedIndexes=$.grep(this.selectedIndexes,function(num,i){return(index!==num)
})},expand:function(button,e){e=e||{type:"expand"};button=$(button);if(e.type!="init"&&button.hasClass(this.options.activeButtonClass)){return false
}var type=(e.type=="init")?"expandinit":"expand",that=this,o=this.options,uiObj={},panel=this.getPanel(button),buttons=this.getButtons(panel),collapseButton=this.buttons.filter("."+o.activeButtonClass),posStyle,panelWrapper;
uiObj.button=buttons;uiObj.panel=panel;if(!o.multiSelectable){uiObj.collapseElements={button:collapseButton,panel:this.getPanel(collapseButton)}
}this.addIndex(panel);if(e.type!="init"&&!o.multiSelectable){collapseButton.each(function(){that.collapse.call(that,this,e,false,{button:buttons,panel:panel})
})}this.setState(buttons,panel,"active");button.parents("li").addClass(o.hoverListItemClass);
if(o.handleDisplay===true||(e.type=="init"&&o.handleDisplay=="initial")){if(o.hideStyle==="visibility"){panel.parent().css({overflow:"",height:""}).end().css({visibility:""})
}else{panel.show()}}$.ui.SR.update();if(o.addToHistory&&e.type!=="init"&&e.type!=="hashHistoryChange"){$.hashHistory.add("tab-"+panel.getID())
}this._trigger(type,e,$.extend({},this.ui(),uiObj));if(/click|hashHistoryChange/.test(e.type)&&o.focusOnExpand){that.focusPanel(panel)
}return undefined},collapseAll:function(e){var that=this;$.each(this.selectedIndexes,function(i,index){that.collapse.call(that,that.buttons[index],e)
})},getButtons:function(panel){return this.buttons.filter("[aria-controls="+panel.getID()+"]")
},getPanel:function(button){return this.panels.filter("#"+button.attr("aria-controls"))
},setState:function(button,panel,state){var o=this.options,set=(state=="active")?{c:"addClass",index:"-1",aria:"true"}:{c:"removeClass",index:"0",aria:"false"};
if((!o.toggleButton)){button.attr({tabindex:set.index,"aria-disabled":set.aria})[set.c]("ui-disabled")
}else{button.attr({tabindex:"0"})}button[set.c](o.activeButtonClass).attr("aria-expanded",set.aria);
panel[set.c](o.activePanelClass).attr("aria-expanded",set.aria)},focusPanel:function(panel){var o=this.options,focusElem=(o.focusSel===true||!o.focusSel)?panel.firstExpOf("focusPoint"):$(o.focusSel,panel);
focusElem.setFocus({context:(panel[0].parentNode||{}).parentNode});return undefined
},ui:function(){return{instance:this,panels:this.panels,buttons:this.buttons,selectedIndexes:this.selectedIndexes}
}})})(jQuery);(function($){try{if(!window.console){window.console={}}if(!console.log){console.log=$.noop
}}catch(e){}if(document.execCommand){try{document.execCommand("BackgroundImageCache",false,true)
}catch(e){}}if(!$.support.opacity&&!$.opacityRemoveFix){var oldStyle=$.style;$.style=function(elem,name,value){var ret=oldStyle(elem,name,value);
if(name==="opacity"&&value==1){elem.style.filter=(elem.style.filter||"").replace("alpha(opacity=100)","")
}return ret};$.opacityRemoveFix=true}$.beget=function(o,cfg){var f=function(){};o=new f();
if(o.create&&o.create.apply){o.create.call(o,cfg||{})}return o};var atom=["h1","h2","h3","h4","h5","h6","a","p","li","dt","dd","blockquote","address","th","td","dfn"],exp=$.expr.filters;
exp.focusPoint=function(elem){var name=elem.nodeName.toLowerCase();return((!elem.disabled&&elem.type!=="hidden"&&elem.getAttribute("role")!=="presentation"&&elem.getAttribute("aria-disabled")!=="true")&&(elem.offsetWidth>0&&elem.offsetHeight>0&&$.curCSS(elem,"visibility")!=="hidden")&&($.inArray(name,atom)!==-1))
};exp.focusAble=function(i,elem){return($.attr(elem,"tabindex")!==undefined)};$.fn.firstExpOf=function(sel){if(!this[0]){return this.pushStack([])
}var elems=$("*",this[0]),len=elems.length,ret=[];for(var i=0;i<len;i++){if(exp[sel](elems[i],i)){ret=[elems[i]];
break}}return this.pushStack(ret)};var currentLoc=location.href.split("#")[0];$.fn.getHrefHash=function(sel){var ret="";
if(this[0]){ret=this[0].hash||this[0].href.replace(currentLoc,"")}return ret};$("html").addClass("js-on");
var body,bodyStyle;$.SCROLLBARWIDTH=15;$.SCROLLROOT=$($.browser.webkit||document.compatMode=="BackCompat"?document.body:document.documentElement);
function setConstants(){body=$(document.body);bodyStyle=body[0].style;var testElem=$('<div style="position: absolute; visibility: hidden; width: 80px; overflow: scroll;height: 80px;"><div style="width: 99px; height: 99px;" /></div>').appendTo("body");
$.SCROLLBARWIDTH=testElem.innerWidth()-$("div",testElem).css("width","auto").innerWidth();
testElem.remove();testElem=null;body.removeClass("js-off")}if(!document.body||!document.body.style){$(setConstants)
}else{setConstants()}$.each(["outerHeight","outerWidth","height","width","innerHeight","innerWidth"],function(i,name){$.fn[name+"s"]=function(arg){if((name==="height"||name==="width")&&arg!==undefined){return $.fn[name].apply(this,arguments)
}var ret=0;this.each(function(){ret+=$(this)[name](arg)});return ret}})})(jQuery);
(function($){var allowFocus=true;function stopFocus(){allowFocus=false;setTimeout(function(){allowFocus=true
},1)}function testDomTarget(e){var oE=e.originalEvent;if(e.target===document||e.target===window||$.nodeName(e.target,"body")||$.nodeName(e.target,"html")||$.attr(e.target,"tabindex")===undefined){stopFocus();
return false}if(oE){if(allowFocus&&e.target&&e.target.nodeType===1&&(oE.explicitOriginalTarget&&oE.explicitOriginalTarget&&oE.explicitOriginalTarget!==window&&oE.explicitOriginalTarget!==document&&!$(oE.explicitOriginalTarget).is("html, body")||oE.toElement||oE.fromElement)){return true
}else{return false}}return true}$.each(["focusin","focusout"],function(i,eType){$.event.special["dom"+eType]={setup:function(){$(this).bind(eType,$.event.special["dom"+eType].handler);
return true},teardown:function(){$(this).unbind(eType,$.event.special["dom"+eType].handler);
return true},handler:function(e){if(testDomTarget(e)){e=$.extend({},e,{type:"dom"+eType});
return $.event.handle.call(this,e)}return undefined}}});var clearInterval=window.clearInterval,setInterval=window.setInterval,setTimeout=window.setTimeout;
$.createTimer=function(obj){function clear(name){if(obj[name]!==undefined){clearInterval(obj[name])
}}return{setInterval:function(name,fn,delay){clear(name);obj[name]=setInterval(function(){fn.call(obj)
},delay)},setDelay:function(name,fn,delay){clear(name);obj[name]=setTimeout(function(){fn.call(obj)
},delay)},clear:clear}}})(jQuery);(function($){var offsetBaseCSS="position: absolute; width: 1px; height: 1px; overflow: hidden;margin: 0; padding: 0;top: 0;",offsetDir=($("html").attr("dir")==="rtl")?"right: -9999em;":"left: -99999em;",offsetCSS=offsetBaseCSS+offsetDir,version=parseInt($.browser.version,10);
$.support.waiAria=(!$.browser.msie||version>7);$.notIE6=(!$.browser.msie||version>6);
$.browser.lteIE6=($.browser.msie&&version<7);$.browser.lteIE7=($.browser.msie&&version<8);
$.browser.lteIE8=($.browser.msie&&version<9);if($.fx.interval<16){$.fx.interval=17;
if($.browser.lteIE8||$.browser.mozilla&&version<2){$.fx.interval=25}$(function(){try{if($(window).width()<490&&$(window).height()<490){$.fx.interval=33
}}catch(e){}})}$(function(){var style=document.createElement("style"),styleS;style.setAttribute("type","text/css");
style=$(style).prependTo("head");styleS=document.styleSheets[0];function add(sel,prop){if(styleS.cssRules||styleS.rules){if(styleS.insertRule){styleS.insertRule(sel+" {"+prop+";}",styleS.cssRules.length)
}else{if(styleS.addRule){styleS.addRule(sel,prop)}}}}add(".a11y-js-overflow","overflow:visible !important");
add(".a11y-hidden","position:absolute");add(".a11y-hidden",offsetDir.replace(";",""));
$.cssRule={add:add}});$.ui=$.ui||{};if(!$.ui.keyCode){$.ui.keyCode={DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}
}$.ui.userMode=(function(){var userBg,timer,testDiv;function testBg(){if(console.firebug&&console.info){return 
}testDiv=testDiv||$('<div style="'+offsetCSS+'"></div>').appendTo("body");var black=$.curCSS(testDiv.css({backgroundColor:"#000000"})[0],"backgroundColor",true),white=$.curCSS(testDiv.css({backgroundColor:"#ffffff"})[0],"backgroundColor",true),newBgStatus=(black===white||white==="transparent");
if(newBgStatus!=userBg){userBg=newBgStatus;$.event.trigger({type:"usermode",disabled:!userBg,enabled:userBg})
}return userBg}function init(){testBg();clearInterval(timer);timer=setInterval(testBg,3000)
}$.event.special.usermode={add:function(handler){testBg();var elem=this;setTimeout(function(){$(elem).trigger({type:"usermode",disabled:!userBg,enabled:userBg})
},0);return handler},setup:function(){},teardown:function(){},handler:function(){}};
return{get:testBg,init:init}})();$.fn.userMode=function(fn){return this[(fn)?"bind":"trigger"]("usermode",fn)
};$(function(){$("html").userMode(function(e){$(this)[e.enabled?"addClass":"removeClass"]("hcm")
});$.ui.userMode.init()});(function($){var preventclick=false;function handleAriaClick(e){if(!preventclick&&(!e.keyCode||e.keyCode===13||(e.keyCode===32&&$.attr(e.target,"role")==="button"))){preventclick=true;
setTimeout(function(){preventclick=false},1);return $.event.special.ariaclick.handler.apply(this,arguments)
}else{if(preventclick&&e.type=="click"){e.preventDefault();return false}}return undefined
}$.event.special.ariaclick={setup:function(){$(this).bind("click keypress",handleAriaClick);
return true},teardown:function(){$(this).unbind("click keypress",handleAriaClick);
return true},handler:function(e){e.type="ariaclick";return $.event.handle.apply(this,arguments)
}}})(jQuery);$.bodyDefaultFontsize=10;$.testEm=(function(){var body=document.body,timer,evt={type:"emchange",emPx:0,oldEmPx:0},html=$(document.documentElement);
function test(){if(console.firebug&&console.info){return }var oldEmPx=evt.emPx;evt.emPx=parseInt($.curCSS(body,"fontSize",true),10);
if(evt.emPx!==oldEmPx){evt.oldEmPx=oldEmPx;$.event.trigger(evt)}return evt}function addEmClass(e){var dif=e.emPx-$.bodyDefaultFontsize,prefix=(dif>0)?"em-increased-":"em-decreased-",newCl=[];
dif=Math.abs(dif)+1;while(dif-->1){newCl.push(prefix+dif)}html[0].className=$.grep(html[0].className.split(" "),function(n){return(n.indexOf("em-increased-")!==0&&n.indexOf("em-decreased-")!==0)
}).concat(newCl).join(" ")}$(function(){body=document.body;clearInterval(timer);setTimeout(function(){html.bind("emchange",addEmClass);
test();timer=setInterval(test,3000)},0)});return test})();(function($){var allowFocus=true,currentFocus=document,supActiveElem=("activeElement" in document),minFocusTimer=70,keyFocusTimer,focusTimer;
function stopKeyFocus(e){allowFocus=false;clearTimeout(keyFocusTimer);setTimeout(function(){allowFocus=true;
clearTimeout(keyFocusTimer)},99)}function addFocus(e){var jElm=$(e.target).addClass("a11y-focus");
currentFocus=e.target;if(!supActiveElem){document.activeElement=e.target}clearTimeout(keyFocusTimer);
keyFocusTimer=setTimeout(function(){if(allowFocus){jElm.addClass("a11y-focus-key").trigger("keyfocus")
}},0)}$(document).bind("mousedown click",stopKeyFocus).bind("domfocusin",addFocus).bind("focusout",function(e){clearTimeout(keyFocusTimer);
$(e.target).removeClass("a11y-focus-key a11y-focus-widget a11y-focus")});function addTabindex(jElm){var tabindex=jElm.attr("tabindex");
if(!(tabindex||tabindex===0)){jElm.css({outline:"none"}).attr({tabindex:"-1"});if(!$.support.waiAria&&jElm[0]){jElm[0].hideFocus=true
}}return jElm}$.fn.setFocus=function(opts){if(!this[0]){return this}opts=$.extend({},$.fn.setFocus.defaults,opts);
var elem=this[0],jElm=$(elem),activeElem=document.activeElement,now=new Date().getTime(),focusFn=function(){try{stopKeyFocus();
elem.focus();jElm.addClass("a11y-focus-widget")}catch(e){}},fxParent;if(opts.addTabindex){addTabindex(jElm)
}$.ui.SR.update();if(!opts.fast){if(activeElem&&activeElem.focus&&activeElem.blur){activeElem.blur();
stopKeyFocus();activeElem.focus()}clearTimeout(focusTimer);fxParent=jElm.closest(":animated",opts.context);
if(fxParent[0]){fxParent.queue(function(){var time=new Date().getTime()-now-minFocusTimer;
time=(time>9)?time:9;focusTimer=setTimeout(focusFn,time);setTimeout(function(){fxParent.dequeue()
},time+16)})}else{focusTimer=setTimeout(focusFn,minFocusTimer)}}else{focusFn()}return this
};$.fn.setFocus.defaults={addTabindex:true,fast:false,context:false}})(jQuery);$.fn.ariaHide=function(){$.fn.hide.apply(this,arguments);
return this.attr({"aria-hidden":"true"})};$.fn.ariaShow=function(){$.fn.show.apply(this,arguments);
return this.attr({"aria-hidden":"false"})};$.ui.SR=(function(){var input,val=0,alertBox,boxTimer,statusBox,statusTimer;
function init(){alertBox=$('<div class="a11y-hidden" role="alert" style="'+offsetCSS+'" />').ariaHide().appendTo("body");
statusBox=$('<div class="a11y-hidden" style="'+offsetCSS+'"><div aria-live="polite" relevant="additions text" /> </div>').appendTo("body").find("div");
input=$('<form role="presentation" action="#" class="aural" style="'+offsetCSS+'"><input name="sr-update" id="sr-update" type="hidden" value="'+val+'" /></form>').appendTo("body").find("input").ajaxComplete(update)
}function update(){var posStyle,wrapperHeight;if(input){input[0].setAttribute("value",""+(++val));
setTimeout(function(){input[0].setAttribute("value",""+(++val))},1)}}function alert(notice){clearTimeout(boxTimer);
alertBox.ariaHide().html(notice).find("*").attr({role:"presentation"}).end().ariaShow();
boxTimer=setTimeout(function(){alertBox.ariaHide().empty()},999)}function giveStatus(text){text=$("<div>"+text+"</div>").find("*").attr({role:"presentation"}).end();
statusBox.html(text);clearTimeout(statusTimer);statusTimer=setTimeout(function(){statusBox.empty()
},999)}return{update:update,alert:alert,giveStatus:giveStatus,init:init}})();$($.ui.SR.init);
if(!$.fn.getID){var uId=new Date().getTime();$.fn.getID=function(setAll){function setID(){var id=this.getAttribute("id");
if(!id){id="ID-"+(uId++);this.setAttribute("id",id)}return id}if(this[0]){if(setAll){this.each(setID)
}return setID.call(this[0])}return undefined}}$.each({labelWith:"aria-labelledby",describeWith:"aria-describedby",ownsThis:"aria-owns",controlsThis:"aria-controls",activateThis:"aria-activedescendant"},function(name,prop){$.fn[name]=function(elem){return this.attr(prop,$(elem).getID()||"")
}});var inReg=/focusin|focus$|mouseenter|mouseover/,inID=0;$.fn.enterLeave=function(enter,out,opts){opts=$.extend({},$.fn.enterLeave.defaults,opts);
inID++;var dataID="enterLeaveData-"+inID;var eventTypes="mouseenter mouseleave focusin focusout";
if(opts.useEventTypes==="mouse"){eventTypes="mouseenter mouseleave"}else{if(opts.useEventTypes==="focus"){eventTypes="focusin focusout"
}}var handler=function handler(e){var fn,inOutData=$.data(this,dataID)||$.data(this,dataID,{inEvents:0}),params,elem=this,evt;
if(inReg.test(e.type)){fn=enter;params=[1,"in",true];if(opts.useWebkitAutoBlur){inOutData.autoBlur=true;
setTimeout(function(){inOutData.autoBlur=false},0)}}else{fn=out;params=[-1,"out",false];
if(inOutData.autoBlur){return }}clearTimeout(inOutData.inOutTimer);inOutData.inEvents=Math.max(inOutData.inEvents+params[0],0);
inOutData.inOutTimer=setTimeout(function(){if(params[2]!=inOutData.inOutState&&(params[2]||!opts.bothOut||!inOutData.inEvents)){inOutData.inOutState=params[2];
evt=$.Event(params[1]);evt.originalEvent=e;$.extend(evt,{target:e.target,currentTarget:e.currentTarget});
fn.call(elem,evt)}},/focus/.test(e.type)?opts.keyDelay:opts.mouseDelay)};return this[opts.bindStyle](eventTypes,handler)
};$.fn.enterLeave.defaults={mouseDelay:0,keyDelay:1,bothOut:false,useEventTypes:"both",useWebkitAutoBlur:false,bindStyle:"bind"};
$.fn.inOut=$.fn.enterLeave;$.fn.slideParentDown=function(opts){opts=$.extend({},$.fn.slideParentDown.defaults,opts);
var fn=opts.complete;return this.each(function(){var jElm=$(this),parent=jElm.parent().css({height:""}),outerHeight;
jElm.css((opts.hideStyle==="visibility")?{visibility:""}:{display:"block"});outerHeight=parent.height();
parent.css({overflow:"hidden",height:"0px"}).animate({height:outerHeight},$.extend({},opts,{complete:function(){parent.css({height:""});
fn.apply(this,arguments)}}))})};$.fn.slideParentDown.defaults={duration:400,complete:$.noop,hideStyle:"display"};
$.fn.slideParentUp=function(opts){opts=$.extend({},$.fn.slideParentUp.defaults,opts);
var fn=opts.complete;return this.each(function(){var jElm=$(this),parent=jElm.parent().css({overflow:"hidden"}),cssProp={height:"0px"};
if($.browser.mozilla&&opts.flickrFix){cssProp.flickrFix=Math.random()*2}parent.animate(cssProp,$.extend({},opts,{complete:function(){if(opts.hideStyle==="visibility"){jElm.css({visibility:"hidden"})
}else{jElm.css({display:"none"});parent.css({height:"",overflow:"",display:""})}fn.apply(this,arguments)
}}))})};$.fn.slideParentUp.defaults={duration:400,hideStyle:"display",complete:$.noop,flickrFix:false};
$.support.inlineBlock=true;$(function(){var tElm=$('<div style="display: inline-block;"/>').appendTo("body");
$.support.inlineBlock=(tElm.css("display")==="inline-block");tElm.remove()})})(jQuery);
(function($){$.debug=$.debug||function(){};$.fn.turnInto=function(classId,options){$.debug("turnInto count: "+this.size(),this,classId,options);
var _class=getClass(classId);if(!_class){return this}return this.each(function(){var $this=$(this);
if($.data(this,classId)){return }var obj=new _class(this,options);$.data(this,classId,obj)
})};function getClass(classId){try{var path=classId.split(".");var _class=window;
$.each(path,function(i,val){_class=_class[val]});return _class}catch(ex){return null
}}$.fn.invoke=function(classId,methodName){var args=arguments.length>2?Array.prototype.slice.call(arguments,2):[];
return this.each(function(){var $this=$(this);if($.data(this,classId)&&$.data(this,classId)[methodName]){$.data(this,classId)[methodName].apply($.data(this,classId),args)
}})};$.fn.getInstances=function(classId){var instances=[];this.each(function(){var $this=$(this);
if($.data(this,classId)){instances.push($.data(this,classId))}});return instances
};$.fn.getInstance=function(classId){return $(this).getInstances(classId)[0]}})(jQuery);
(function($,window){var defaults={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true},colorbox="colorbox",prefix="cbox",event_open=prefix+"_open",event_load=prefix+"_load",event_complete=prefix+"_complete",event_cleanup=prefix+"_cleanup",event_closed=prefix+"_closed",event_purge=prefix+"_purge",event_loaded=prefix+"_loaded",isIE=$.browser.msie&&!$.support.opacity,isIE6=isIE&&$.browser.version<7,event_ie6=prefix+"_IE6",$overlay,$box,$wrap,$content,$topBorder,$leftBorder,$rightBorder,$bottomBorder,$related,$window,$loaded,$loadingBay,$loadingOverlay,$title,$current,$slideshow,$next,$prev,$close,interfaceHeight,interfaceWidth,loadedHeight,loadedWidth,element,index,settings,open,active,closing=false,publicMethod,boxElement=prefix+"Element";
function $div(id,css){id=id?' id="'+prefix+id+'"':"";css=css?' style="'+css+'"':"";
return $("<div"+id+css+"/>")}function setSize(size,dimension){dimension=dimension==="x"?$window.width():$window.height();
return(typeof size==="string")?Math.round((/%/.test(size)?(dimension/100)*parseInt(size,10):parseInt(size,10))):size
}function isImage(url){return settings.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(url)
}function process(settings){for(var i in settings){if($.isFunction(settings[i])&&i.substring(0,2)!=="on"){settings[i]=settings[i].call(element)
}}settings.rel=settings.rel||element.rel||"nofollow";settings.href=settings.href||$(element).attr("href");
settings.title=settings.title||element.title;return settings}function trigger(event,callback){if(callback){callback.call(element)
}$.event.trigger(event)}function slideshow(){var timeOut,className=prefix+"Slideshow_",click="click."+prefix,start,stop,clear;
if(settings.slideshow&&$related[1]){start=function(){$slideshow.text(settings.slideshowStop).unbind(click).bind(event_complete,function(){if(index<$related.length-1||settings.loop){timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed)
}}).bind(event_load,function(){clearTimeout(timeOut)}).one(click+" "+event_cleanup,stop);
$box.removeClass(className+"off").addClass(className+"on");timeOut=setTimeout(publicMethod.next,settings.slideshowSpeed)
};stop=function(){clearTimeout(timeOut);$slideshow.text(settings.slideshowStart).unbind([event_complete,event_load,event_cleanup,click].join(" ")).one(click,start);
$box.removeClass(className+"on").addClass(className+"off")};if(settings.slideshowAuto){start()
}else{stop()}}}function launch(elem){if(!closing){element=elem;settings=process($.extend({},$.data(element,colorbox)));
$related=$(element);index=0;if(settings.rel!=="nofollow"){$related=$("."+boxElement).filter(function(){var relRelated=$.data(this,colorbox).rel||this.rel;
return(relRelated===settings.rel)});index=$related.index(element);if(index===-1){$related=$related.add(element);
index=$related.length-1}}if(!open){open=active=true;$box.show();if(settings.returnFocus){try{element.blur();
$(element).one(event_closed,function(){try{this.focus()}catch(e){}})}catch(e){}}$overlay.css({opacity:+settings.opacity,cursor:settings.overlayClose?"pointer":"auto"}).show();
settings.w=setSize(settings.initialWidth,"x");settings.h=setSize(settings.initialHeight,"y");
publicMethod.position(0);if(isIE6){$window.bind("resize."+event_ie6+" scroll."+event_ie6,function(){$overlay.css({width:$window.width(),height:$window.height(),top:$window.scrollTop(),left:$window.scrollLeft()})
}).trigger("scroll."+event_ie6)}trigger(event_open,settings.onOpen);$current.add($prev).add($next).add($slideshow).add($title).hide();
$close.html(settings.close).show()}publicMethod.load(true)}}publicMethod=$.fn[colorbox]=$[colorbox]=function(options,callback){var $this=this,autoOpen;
if(!$this[0]&&$this.selector){return $this}options=options||{};if(callback){options.onComplete=callback
}if(!$this[0]||$this.selector===undefined){$this=$("<a/>");options.open=true}$this.each(function(){$.data(this,colorbox,$.extend({},$.data(this,colorbox)||defaults,options));
$(this).addClass(boxElement)});autoOpen=options.open;if($.isFunction(autoOpen)){autoOpen=autoOpen.call($this)
}if(autoOpen){launch($this[0])}return $this};publicMethod.init=function(){$window=$(window);
$box=$div().attr({id:colorbox,"class":isIE?prefix+"IE":""});$overlay=$div("Overlay",isIE6?"position:absolute":"").hide();
$wrap=$div("Wrapper");$content=$div("Content").append($loaded=$div("LoadedContent","width:0; height:0; overflow:hidden"),$loadingOverlay=$div("LoadingOverlay").add($div("LoadingGraphic")),$title=$div("Title"),$current=$div("Current"),$next=$div("Next"),$prev=$div("Previous"),$slideshow=$div("Slideshow").bind(event_open,slideshow),$close=$div("Close"));
$wrap.append($div().append($div("TopLeft"),$topBorder=$div("TopCenter"),$div("TopRight")),$div(false,"clear:left").append($leftBorder=$div("MiddleLeft"),$content,$rightBorder=$div("MiddleRight")),$div(false,"clear:left").append($div("BottomLeft"),$bottomBorder=$div("BottomCenter"),$div("BottomRight"))).children().children().css({"float":"left"});
$loadingBay=$div(false,"position:absolute; width:9999px; visibility:hidden; display:none");
$("body").prepend($overlay,$box.append($wrap,$loadingBay));$content.children().hover(function(){$(this).addClass("hover")
},function(){$(this).removeClass("hover")}).addClass("hover");interfaceHeight=$topBorder.height()+$bottomBorder.height()+$content.outerHeight(true)-$content.height();
interfaceWidth=$leftBorder.width()+$rightBorder.width()+$content.outerWidth(true)-$content.width();
loadedHeight=$loaded.outerHeight(true);loadedWidth=$loaded.outerWidth(true);$box.css({"padding-bottom":interfaceHeight,"padding-right":interfaceWidth}).hide();
$next.click(publicMethod.next);$prev.click(publicMethod.prev);$close.click(publicMethod.close);
$content.children().removeClass("hover");$("."+boxElement).live("click",function(e){if(!((e.button!==0&&typeof e.button!=="undefined")||e.ctrlKey||e.shiftKey||e.altKey)){e.preventDefault();
launch(this)}});$overlay.click(function(){if(settings.overlayClose){publicMethod.close()
}});$(document).bind("keydown",function(e){if(open&&settings.escKey&&e.keyCode===27){e.preventDefault();
publicMethod.close()}if(open&&settings.arrowKey&&!active&&$related[1]){if(e.keyCode===37&&(index||settings.loop)){e.preventDefault();
$prev.click()}else{if(e.keyCode===39&&(index<$related.length-1||settings.loop)){e.preventDefault();
$next.click()}}}})};publicMethod.remove=function(){$box.add($overlay).remove();$("."+boxElement).die("click").removeData(colorbox).removeClass(boxElement)
};publicMethod.position=function(speed,loadedCallback){var animate_speed,posTop=Math.max(document.documentElement.clientHeight-settings.h-loadedHeight-interfaceHeight,0)/2+$window.scrollTop(),posLeft=Math.max($window.width()-settings.w-loadedWidth-interfaceWidth,0)/2+$window.scrollLeft();
animate_speed=($box.width()===settings.w+loadedWidth&&$box.height()===settings.h+loadedHeight)?0:speed;
$wrap[0].style.width=$wrap[0].style.height="9999px";function modalDimensions(that){$topBorder[0].style.width=$bottomBorder[0].style.width=$content[0].style.width=that.style.width;
$loadingOverlay[0].style.height=$loadingOverlay[1].style.height=$content[0].style.height=$leftBorder[0].style.height=$rightBorder[0].style.height=that.style.height
}$box.dequeue().animate({width:settings.w+loadedWidth,height:settings.h+loadedHeight,top:posTop,left:posLeft},{duration:animate_speed,complete:function(){modalDimensions(this);
active=false;$wrap[0].style.width=(settings.w+loadedWidth+interfaceWidth)+"px";$wrap[0].style.height=(settings.h+loadedHeight+interfaceHeight)+"px";
if(loadedCallback){loadedCallback()}},step:function(){modalDimensions(this)}})};publicMethod.resize=function(options){if(open){options=options||{};
if(options.width){settings.w=setSize(options.width,"x")-loadedWidth-interfaceWidth
}if(options.innerWidth){settings.w=setSize(options.innerWidth,"x")}$loaded.css({width:settings.w});
if(options.height){settings.h=setSize(options.height,"y")-loadedHeight-interfaceHeight
}if(options.innerHeight){settings.h=setSize(options.innerHeight,"y")}if(!options.innerHeight&&!options.height){var $child=$loaded.wrapInner("<div style='overflow:auto'></div>").children();
settings.h=$child.height();$child.replaceWith($child.children())}$loaded.css({height:settings.h});
publicMethod.position(settings.transition==="none"?0:settings.speed)}};publicMethod.prep=function(object){if(!open){return 
}var photo,speed=settings.transition==="none"?0:settings.speed;$window.unbind("resize."+prefix);
$loaded.remove();$loaded=$div("LoadedContent").html(object);function getWidth(){settings.w=settings.w||$loaded.width();
settings.w=settings.mw&&settings.mw<settings.w?settings.mw:settings.w;return settings.w
}function getHeight(){settings.h=settings.h||$loaded.height();settings.h=settings.mh&&settings.mh<settings.h?settings.mh:settings.h;
return settings.h}$loaded.hide().appendTo($loadingBay.show()).css({width:getWidth(),overflow:settings.scrolling?"auto":"hidden"}).css({height:getHeight()}).prependTo($content);
$loadingBay.hide();$("#"+prefix+"Photo").css({cssFloat:"none",marginLeft:"auto",marginRight:"auto"});
if(isIE6){$("select").not($box.find("select")).filter(function(){return this.style.visibility!=="hidden"
}).css({visibility:"hidden"}).one(event_cleanup,function(){this.style.visibility="inherit"
})}function setPosition(s){var prev,prevSrc,next,nextSrc,total=$related.length,loop=settings.loop;
publicMethod.position(s,function(){function defilter(){if(isIE){$box[0].style.removeAttribute("filter")
}}if(!open){return }if(isIE){if(photo){$loaded.fadeIn(100)}}$loaded.show();trigger(event_loaded);
$title.show().html(settings.title);if(total>1){if(typeof settings.current==="string"){$current.html(settings.current.replace(/\{current\}/,index+1).replace(/\{total\}/,total)).show()
}$next[(loop||index<total-1)?"show":"hide"]().html(settings.next);$prev[(loop||index)?"show":"hide"]().html(settings.previous);
prev=index?$related[index-1]:$related[total-1];next=index<total-1?$related[index+1]:$related[0];
if(settings.slideshow){$slideshow.show()}if(settings.preloading){nextSrc=$.data(next,colorbox).href||next.href;
prevSrc=$.data(prev,colorbox).href||prev.href;nextSrc=$.isFunction(nextSrc)?nextSrc.call(next):nextSrc;
prevSrc=$.isFunction(prevSrc)?prevSrc.call(prev):prevSrc;if(isImage(nextSrc)){$("<img/>")[0].src=nextSrc
}if(isImage(prevSrc)){$("<img/>")[0].src=prevSrc}}}$loadingOverlay.hide();if(settings.transition==="fade"){$box.fadeTo(speed,1,function(){defilter()
})}else{defilter()}$window.bind("resize."+prefix,function(){publicMethod.position(0)
});trigger(event_complete,settings.onComplete)})}if(settings.transition==="fade"){$box.fadeTo(speed,0,function(){setPosition(0)
})}else{setPosition(speed)}};publicMethod.load=function(launched){var href,img,setResize,prep=publicMethod.prep;
active=true;element=$related[index];if(!launched){settings=process($.extend({},$.data(element,colorbox)))
}trigger(event_purge);trigger(event_load,settings.onLoad);settings.h=settings.height?setSize(settings.height,"y")-loadedHeight-interfaceHeight:settings.innerHeight&&setSize(settings.innerHeight,"y");
settings.w=settings.width?setSize(settings.width,"x")-loadedWidth-interfaceWidth:settings.innerWidth&&setSize(settings.innerWidth,"x");
settings.mw=settings.w;settings.mh=settings.h;if(settings.maxWidth){settings.mw=setSize(settings.maxWidth,"x")-loadedWidth-interfaceWidth;
settings.mw=settings.w&&settings.w<settings.mw?settings.w:settings.mw}if(settings.maxHeight){settings.mh=setSize(settings.maxHeight,"y")-loadedHeight-interfaceHeight;
settings.mh=settings.h&&settings.h<settings.mh?settings.h:settings.mh}href=settings.href;
$loadingOverlay.show();if(settings.inline){$div().hide().insertBefore($(href)[0]).one(event_purge,function(){$(this).replaceWith($loaded.children())
});prep($(href))}else{if(settings.iframe){$box.one(event_loaded,function(){var iframe=$("<iframe frameborder='0' style='width:100%; height:100%; border:0; display:block'/>")[0];
iframe.name=+new Date();iframe.src=settings.href;if(!settings.scrolling){iframe.scrolling="no"
}if(isIE){iframe.allowtransparency="true"}$(iframe).appendTo($loaded).one(event_purge,function(){iframe.src="//about:blank"
})});prep(" ")}else{if(settings.html){prep(settings.html)}else{if(isImage(href)){img=new Image();
img.onload=function(){var percent;img.onload=null;img.id=prefix+"Photo";$(img).css({border:"none",display:"block",cssFloat:"left"});
if(settings.scalePhotos){setResize=function(){img.height-=img.height*percent;img.width-=img.width*percent
};if(settings.mw&&img.width>settings.mw){percent=(img.width-settings.mw)/img.width;
setResize()}if(settings.mh&&img.height>settings.mh){percent=(img.height-settings.mh)/img.height;
setResize()}}if(settings.h){img.style.marginTop=Math.max(settings.h-img.height,0)/2+"px"
}if($related[1]&&(index<$related.length-1||settings.loop)){$(img).css({cursor:"pointer"}).click(publicMethod.next)
}if(isIE){img.style.msInterpolationMode="bicubic"}setTimeout(function(){prep(img)
},1)};setTimeout(function(){img.src=href},1)}else{if(href){$loadingBay.load(href,function(data,status,xhr){prep(status==="error"?"Request unsuccessful: "+xhr.statusText:$(this).children())
})}}}}}};publicMethod.next=function(){if(!active){index=index<$related.length-1?index+1:0;
publicMethod.load()}};publicMethod.prev=function(){if(!active){index=index?index-1:$related.length-1;
publicMethod.load()}};publicMethod.close=function(){if(open&&!closing){closing=true;
open=false;trigger(event_cleanup,settings.onCleanup);$window.unbind("."+prefix+" ."+event_ie6);
$overlay.fadeTo("fast",0);$box.stop().fadeTo("fast",0,function(){trigger(event_purge);
$loaded.remove();$box.add($overlay).css({opacity:1,cursor:"auto"}).hide();setTimeout(function(){closing=false;
trigger(event_closed,settings.onClosed)},1)})}};publicMethod.element=function(){return $(element)
};publicMethod.settings=defaults;$(publicMethod.init)}(jQuery,this));(function($){$.fn.inputLabel=function(text,opts){o=$.extend({color:"#666",e:"focus",password:true,force:false,keep:true},opts||{});
function isDefault(element){if(element.type=="select-one"){return $(":selected",element).val()==""
}return element.value==element.defaultValue}function clearInput(e){var $target=$(e.target);
var value=$.trim($target.val());var defaultValue=$.trim($target.attr("defaultValue"));
if(e.type==e.data.obj.e&&isDefault(e.target)){$target.css("color","").val("");if(!e.data.obj.keep){$target.unbind(e.data.obj.e+" blur",clearInput)
}}else{if(e.type=="blur"&&value==""&&e.data.obj.keep){$target.css("color",e.data.obj.color).val(defaultValue)
}}}return this.each(function(){$this=$(this);$this.addClass("inputlabel");var labelText=(text||false);
if(!labelText){labelText=$(this.form).find("label[for="+this.id+"]").hide().text()
}else{if(typeof labelText!="string"){labelText=$(labelText).text()}}labelText=$.trim(labelText);
if(o.force||$this.val()==""||$this.val()==labelText||this.type=="select-one"){if(this.type=="select-one"){var $firstElement=$("option:first",$this);
if($.trim($firstElement.val())==""){$firstElement.remove()}$this.css("color",o.color);
var option=$("<option />",{value:"",selected:"selected",html:labelText});$this.prepend(option);
$this.bind(o.e+" blur",{obj:o},clearInput)}else{if(o.password&&this.type=="password"){var passwordDummy=$("<input />",{"class":$this.attr("class"),id:"dummy-"+$this.attr("id"),name:"dummy-"+$this.attr("id"),type:"text",value:labelText}).css({color:o.color});
$this.hide().wrap("<div />").before(passwordDummy);$this.closest("div").delegate("input:eq(0)",o.e,{input:$this,dummy:passwordDummy},function(e){e.data.dummy.hide();
e.data.input.show().trigger("focus")}).delegate("input:eq(1)","blur",{input:$this,dummy:passwordDummy},function(e){var value=$.trim(e.data.input.val());
if(value==""){e.data.input.hide();e.data.dummy.show()}})}else{$this.css("color",o.color).val(labelText).attr("defaultValue",labelText);
$this.bind(o.e+" blur",{obj:o},clearInput)}}}})}})(jQuery);(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");
return }var validator=$.data(this[0],"validator");if(validator){return validator}validator=new $.validator(options,this[0]);
$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=true
});if(validator.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){validator.submitButton=this
})}this.submit(function(event){if(validator.settings.debug){event.preventDefault()
}function handle(){if(validator.settings.submitHandler){if(validator.submitButton){var hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm)
}validator.settings.submitHandler.call(validator,validator.currentForm);if(validator.submitButton){hidden.remove()
}return false}return true}if(validator.cancelSubmit){validator.cancelSubmit=false;
return handle()}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;
return false}return handle()}else{validator.focusInvalid();return false}})}return validator
},valid:function(){if($(this[0]).is("form")){return this.validate().form()}else{var valid=true;
var validator=$(this[0].form).validate();this.each(function(){valid&=validator.element(this)
});return valid}},removeAttrs:function(attributes){var result={},$element=this;$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);
$element.removeAttr(value)});return result},rules:function(command,argument){var element=this[0];
if(command){var settings=$.data(element.form,"validator").settings;var staticRules=settings.rules;
var existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));
staticRules[element.name]=existingRules;if(argument.messages){settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages)
}break;case"remove":if(!argument){delete staticRules[element.name];return existingRules
}var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];
delete existingRules[method]});return filtered}}var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);
if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data)
}return data}});$.extend($.expr[":"],{blank:function(a){return !$.trim(""+a.value)
},filled:function(a){return !!$.trim(""+a.value)},unchecked:function(a){return !a.checked
}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);
this.currentForm=form;this.init()};$.validator.format=function(source,params){if(arguments.length==1){return function(){var args=$.makeArray(arguments);
args.unshift(source);return $.validator.format.apply(this,args)}}if(arguments.length>2&&params.constructor!=Array){params=$.makeArray(arguments).slice(1)
}if(params.constructor!=Array){params=[params]}$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n)
});return source};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(element){this.lastActive=element;
if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);
this.errorsFor(element).hide()}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element)
}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element)
}},onclick:function(element){if(element.name in this.submitted){this.element(element)
}else{if(element.parentNode.name in this.submitted){this.element(element.parentNode)
}}},highlight:function(element,errorClass,validClass){$(element).addClass(errorClass).removeClass(validClass)
},unhighlight:function(element,errorClass,validClass){$(element).removeClass(errorClass).addClass(validClass)
}},setDefaults:function(settings){$.extend($.validator.defaults,settings)},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:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);
this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);
this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);
this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};
this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key
})});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value)
});function delegate(event){var validator=$.data(this[0].form,"validator"),eventType="on"+event.type.replace(/^validate/,"");
validator.settings[eventType]&&validator.settings[eventType].call(validator,this[0])
}$(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",delegate).validateDelegate(":radio, :checkbox, select, option","click",delegate);
if(this.settings.invalidHandler){$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)
}},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);
if(!this.valid()){$(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();
return this.valid()},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());
elements[i];i++){this.check(elements[i])}return this.valid()},element:function(element){element=this.clean(element);
this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);
var result=this.check(element);if(result){delete this.invalid[element.name]}else{this.invalid[element.name]=true
}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();
return result},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);
this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]})
}this.successList=$.grep(this.successList,function(element){return !(element.name in errors)
})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()
},resetForm:function(){if($.fn.resetForm){$(this.currentForm).resetForm()}this.submitted={};
this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)
},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(obj){var count=0;
for(var i in obj){count++}return count},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{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")
}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name
}).length==1&&lastActive},elements:function(){var validator=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);
if(this.name in rulesCache||!validator.objectLength($(this).rules())){return false
}rulesCache[this.name]=true;return true})},clean:function(selector){return $(selector)[0]
},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)
},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);
this.toHide=$([]);this.currentElements=$([])},prepareForm:function(){this.reset();
this.toHide=this.errors().add(this.containers)},prepareElement:function(element){this.reset();
this.toHide=this.errorsFor(element)},check:function(element){element=this.clean(element);
if(this.checkable(element)){element=this.findByName(element.name)[0]}var rules=$(element).rules();
var dependencyMismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};
try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);
if(result=="dependency-mismatch"){dependencyMismatch=true;continue}dependencyMismatch=false;
if(result=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return 
}if(!result){this.formatAndAdd(element,rule);return false}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id+", check the '"+rule.method+"' method",e);
throw e}}if(dependencyMismatch){return }if(this.objectLength(rules)){this.successList.push(element)
}return true},customMetaMessage:function(element,method){if(!$.metadata){return }var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();
return meta&&meta.messages&&meta.messages[method]},customMessage:function(name,method){var m=this.settings.messages[name];
return m&&(m.constructor==String?m:m[method])},findDefined:function(){for(var i=0;
i<arguments.length;i++){if(arguments[i]!==undefined){return arguments[i]}}return undefined
},defaultMessage:function(element,method){return this.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>")
},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule.method),theregex=/\$?\{(\d+)\}/g;
if(typeof message=="function"){message=message.call(this,rule.parameters,element)
}else{if(theregex.test(message)){message=jQuery.format(message.replace(theregex,"{$1}"),rule.parameters)
}}this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;
this.submitted[element.name]=message},addWrapper:function(toToggle){if(this.settings.wrapper){toToggle=toToggle.add(toToggle.parent(this.settings.wrapper))
}return toToggle},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];
this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);
this.showLabel(error.element,error.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)
}if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i])
}}if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];
i++){this.settings.unhighlight.call(this,elements[i],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 $(this.errorList).map(function(){return this.element
})},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);
label.attr("generated")&&label.html(message)}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");
if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()
}if(!this.labelContainer.append(label).length){this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element)
}}if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label)
}this.toShow=this.toShow.add(label)},errorsFor:function(element){var name=this.idOrName(element);
return this.errors().filter(function(){return $(this).attr("for")==name})},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name)
},checkable:function(element){return/radio|checkbox/i.test(element.type)},findByName:function(name){var form=this.currentForm;
return $(document.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null
})},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case"select":return $("option:selected",element).length;
case"input":if(this.checkable(element)){return this.findByName(element.name).filter(":checked").length
}}return value.length},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true
},dependTypes:{"boolean":function(param,element){return param},string:function(param,element){return !!$(param,element.form).length
},"function":function(param,element){return param(element)}},optional:function(element){return !$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch"
},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;
this.pending[element.name]=true}},stopRequest:function(element,valid){this.pendingRequest--;
if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[element.name];
if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();
this.formSubmitted=false}else{if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);
this.formSubmitted=false}}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,"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(className,rules){className.constructor==String?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className)
},classRules:function(element){var rules={};var classes=$(element).attr("class");
classes&&$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this])
}});return rules},attributeRules:function(element){var rules={};var $element=$(element);
for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value
}}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength
}return rules},metadataRules:function(element){if(!$.metadata){return{}}var meta=$.data(element.form,"validator").settings.meta;
return meta?$(element).metadata()[meta]:$(element).metadata()},staticRules:function(element){var rules={};
var validator=$.data(element.form,"validator");if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{}
}return rules},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];
return }if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;
break;case"function":keepRule=val.depends.call(element,element);break}if(keepRule){rules[prop]=val.param!==undefined?val.param:true
}else{delete rules[prop]}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)?parameter(element):parameter
});$.each(["minlength","maxlength","min","max"],function(){if(rules[this]){rules[this]=Number(rules[this])
}});$.each(["rangelength","range"],function(){if(rules[this]){rules[this]=[Number(rules[this][0]),Number(rules[this][1])]
}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];
delete rules.min;delete rules.max}if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];
delete rules.minlength;delete rules.maxlength}}if(rules.messages){delete rules.messages
}return rules},normalizeRule:function(data){if(typeof data=="string"){var transformed={};
$.each(data.split(/\s/),function(){transformed[this]=true});data=transformed}return data
},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!=undefined?message:$.validator.messages[name];
if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name))
}},methods:{required:function(value,element,param){if(!this.depend(param,element)){return"dependency-mismatch"
}switch(element.nodeName.toLowerCase()){case"select":var val=$(element).val();return val&&val.length>0;
case"input":if(this.checkable(element)){return this.getLength(value,element)>0}default:return $.trim(value).length>0
}},remote:function(value,element,param){if(this.optional(element)){return"dependency-mismatch"
}var previous=this.previousValue(element);if(!this.settings.messages[element.name]){this.settings.messages[element.name]={}
}previous.originalMessage=this.settings.messages[element.name].remote;this.settings.messages[element.name].remote=previous.message;
param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;
var validator=this;this.startRequest(element);var data={};data[element.name]=value;
$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(response){validator.settings.messages[element.name].remote=previous.originalMessage;
var valid=response===true;if(valid){var submitted=validator.formSubmitted;validator.prepareElement(element);
validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors()
}else{var errors={};var message=(previous.message=response||validator.defaultMessage(element,"remote"));
errors[element.name]=$.isFunction(message)?message(value):message;validator.showErrors(errors)
}previous.valid=valid;validator.stopRequest(element,valid)}},param));return"pending"
}else{if(this.pending[element.name]){return"pending"}}return previous.valid},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param
},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param
},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);
return this.optional(element)||(length>=param[0]&&length<=param[1])},min:function(value,element,param){return this.optional(element)||value>=param
},max:function(value,element,param){return this.optional(element)||value<=param},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1])
},email:function(value,element){return this.optional(element)||/^((([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(value)
},url:function(value,element){return this.optional(element)||/^(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(value)
},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new Date(value))
},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value)
},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value)
},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value)
},creditcard:function(value,element){if(this.optional(element)){return"dependency-mismatch"
}if(/[^0-9-]+/.test(value)){return false}var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");
for(var n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);
if(bEven){if((nDigit*=2)>9){nDigit-=9}}nCheck+=nDigit;bEven=!bEven}return(nCheck%10)==0
},accept:function(value,element,param){param=typeof param=="string"?param.replace(/,/g,"|"):"png|jpe?g|gif";
return this.optional(element)||value.match(new RegExp(".("+param+")$","i"))},equalTo:function(value,element,param){var target=$(param).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){$(element).valid()
});return value==target.val()}}});$.format=$.validator.format})(jQuery);(function($){var ajax=$.ajax;
var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));
var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort()
}return(pendingRequests[port]=ajax.apply(this,arguments))}return ajax.apply(this,arguments)
}})(jQuery);(function($){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){$.each({focus:"focusin",blur:"focusout"},function(original,fix){$.event.special[fix]={setup:function(){this.addEventListener(original,handler,true)
},teardown:function(){this.removeEventListener(original,handler,true)},handler:function(e){arguments[0]=$.event.fix(e);
arguments[0].type=fix;return $.event.handle.apply(this,arguments)}};function handler(e){e=$.event.fix(e);
e.type=fix;return $.event.handle.call(this,e)}})}$.extend($.fn,{validateDelegate:function(delegate,type,handler){return this.bind(type,function(event){var target=$(event.target);
if(target.is(delegate)){return handler.apply(target,arguments)}})}})})(jQuery);(function($){if(typeof $.fn.validate=="function"){$.validator.setDefaults({errorClass:"invalid",debug:true,errorElement:"em",errorPlacement:function(error,element){return false
},highlight:function(element,errorClass){var $element=$(element);if(element.type!="radio"&&element.type!="checkbox"){$(element).addClass(errorClass)
}if(this.groups[element.name]){$("#group-"+this.idOrName(element)).addClass(errorClass)
}else{if(isInlineLabel($element)){$("#error-"+element.id).show();$element.addClass(errorClass)
}else{$("#error-"+element.id).show();findLabel($element,element.id,element.form).addClass(errorClass)
}}},unhighlight:function(element,errorClass){var $element=$(element);$(element).removeClass(errorClass);
if(this.groups[element.name]){$("#group-"+this.idOrName(element)).removeClass(errorClass)
}else{if(isInlineLabel($element)){$("#error-"+element.id).hide();$element.removeClass(errorClass)
}else{$("#error-"+element.name).hide();findLabel($element,element.id,element.form).removeClass(errorClass)
}}},invalidHandler:function(e,validator){var errors=validator.numberOfInvalids();
var formId=this.id;errors>0?$("#errors-"+formId).fadeIn(500):$("#errors-"+formId).hide()
},submitHandler:function(form){$(".inputlabel",form).each(function(){if(this.value==this.defaultValue){this.value=""
}});form.submit()}});var isInlineLabel=function($element){return $element.data("isInlineLabel")||$.data($element,"isInlineLabel",$element.filter(".inputlabel").length)
};var findLabel=function($element,elementId,form){return $element.data("label")||$.data($element,"label",$(form).find("label[for="+clearElementId(elementId)+"]"))
};var clearElementId=function(elementId){var index=elementId.lastIndexOf("_");if(index>-1){elementId=elementId.substr(0,index)
}return elementId};$.validator.addClassRules("required",{required:function(element){return $(element).is(":visible")
}});$.validator.addMethod("requiredDefault",function(value,element){return value!=element.defaultValue
})}})(jQuery);(function($){})(jQuery);
/******************************* Phoenix Solar AG - Website script *****/
/***************************** Copyright (c) 2011 Phoenix Solar AG *****/
/***********************************************************************/
/*********************************************** individual script *****/
/***********************************************************************/
/************************************** author virtual identity AG *****/
var RESOURCES_PATH=RESOURCES_PATH!==undefined?RESOURCES_PATH:"";
var CONTEXT_PATH=CONTEXT_PATH!==undefined?CONTEXT_PATH:"";(function($){$(document).ready(function(){if($("#stage").length){$("#stage .claim .linked").click(function(){var target=$(":visible a:lt(1)",this).attr("href");
if(target==undefined){target="#"}window.location=target});$("#stage .claim a").click(function(e){e.preventDefault()
})}$("form").each(function(){$(this).validate({})});if(vi.Info.browser.isIEpre8){var itemsPerRow=0;
var teasers=$("#main").children("div.teaser");if($("body").hasClass("nav-col-float2")){itemsPerRow=2
}if($("body").hasClass("col-float3")){itemsPerRow=3}if(itemsPerRow>0){for(var i=itemsPerRow;
i<teasers.length;i+=itemsPerRow){teasers.eq(i).before('<div class="new-row" />')}}}if(vi.Info.browser.isIEpre9){$("div#nav-global ul.nav > li > a").addClass("br-fix")
}if(vi.Info.browser.isIEpre7){$("div.search-results table tr th:first-child, div.search-results table tr td:first-child").addClass("first-col");
$("div.search-results table tr:first-child").addClass("first-row");$("div#nav-global ul ul li:first-child").addClass("first-item");
$("div#nav-global ul.nav li").hover(function(){$(this).toggleClass("active hover")
});$("div#nav-global ul li ul").bgiframe()}$("dl.simple-tabs").turnInto("vi.SimpleTabs");
$(".accordion-section").each(function(){$("p.top").remove();$('p, ul, dl, h3, table:not(".mgnlControlBarSmall")',this).wrapAll('<div class="slide"/>')
}).wrapAll('<div class="accordion-wrapper"/>');$(".accordion-section h2").click(function(e,animatefirst,notjump){if(animatefirst===false){return false
}$this=$(this);if($this.hasClass("open")){$this.removeClass("open").parent().find(".slide").slideUp("fast")
}else{$this.addClass("open").parent().find(".slide").slideDown(function(){})}}).first().triggerHandler("click",[false,true]);
$(document).click(function(){$(".dropped-down").trigger("hide")});$(".filter :input").change(function(){if($(this).hasClass("all-handler")){var name=this.id.substring(4);
var $checkboxes=$(":checkbox",this.form).filter(function(){return this.name==name
});$checkboxes.attr("checked",this.checked)}this.form.submit()});$("#germany-map-navigation").hover(null,function(){var className=$(this).find("a.active").parent("li").attr("class");
$("#germany-map").removeClass().addClass(className)}).find("li").mouseenter(function(){switch($(this).attr("class")){case"north":$("#germany-map").removeClass().addClass("north");
break;case"middle":$("#germany-map").removeClass().addClass("middle");break;case"south":$("#germany-map").removeClass().addClass("south");
break;default:$("#germany-map").removeClass()}}).click(function(){$("#region").val(this.className).get(0).form.submit();
return false}).end().siblings("#germany-map").append("<div>").end().trigger("mouseout");
$("input.text, textarea.text, select",$(".labels-inside")).inputLabel(false,{color:"#646464"});
$("#nav-meta li.select").each(function(){var containerObj=$(this);var formObj=containerObj.find("form");
var selectField=formObj.find("select");var labelObj=formObj.find("label[for="+selectField.attr("id")+"]");
var fieldName=selectField.attr("name");var selectedOption=selectField.find("option:selected")||selectField.find("option:first");
var linkUrl="";var urlHasParam=false;var linkList="";var selectBox=$('<div class="nav-layer">');
var listHead=$('<span class="top-level"></span>');if(selectField.length!=1||!fieldName||formObj.length!=1){return 
}linkUrl=formObj.attr("action");urlHasParam=/\?/.test(linkUrl);selectField.children("option").not(selectedOption).each(function(){var optionObj=$(this);
var cssClass=optionObj.attr("class");var value=optionObj.val();var linkLabel="";if(!value){return 
}var getString=urlHasParam?"&":"?";getString+=fieldName+"="+value;var linkLabelParts=optionObj.text().split("Phoenix Solar");
if(linkLabelParts.length>1){linkLabel+="Phoenix Solar <em>"+linkLabelParts[1]+"</em>"
}else{linkLabel=linkLabelParts[0]}linkList+='<li><a class="'+cssClass+'" href="'+linkUrl+getString+'">'+linkLabel+"</a></li>"
});if(linkList==""){return }linkList=$("<ul>"+linkList+"</ul>");listHead.addClass(selectedOption.attr("class"));
listHead.append("<em>"+selectedOption.text()+"</em>");listHead.append('<a class="select-handle" href="javascript:void(0)">Select Corporate Group</a>');
selectBox.addClass(selectField.attr("class"));selectBox.append(linkList);formObj.replaceWith(listHead);
listHead.after(selectBox);selectBox.css("width",selectBox.width()+"px");selectBox.hide();
listHead.click(function(evt){evt.stopPropagation();evt.preventDefault();if(selectBox.hasClass("dropped-down")){linkList.trigger("hide")
}else{linkList.trigger("show")}});selectBox.click(function(evt){evt.stopPropagation()
});selectBox.bind({hide:function(){$(this).stop().removeClass("dropped-down").slideUp(200,"easeInOutSine")
},show:function(){$(this).addClass("dropped-down").slideDown(500,"easeInOutSine")
}})});(function(){$.fn.mySlide=function(fn){fn=fn||function(){};return this.animate({height:"toggle",opacity:"toggle"},{duration:500,complete:fn,deque:true})
};$("ol.superpromos-toc").each(function(){$(this).bind("tabtreecollapse",function(e,ui){ui.panel.stop(true,true).hide()
}).bind("tabtreeexpand",function(e,ui){ui.panel.stop(true,true).fadeIn(400)}).tabtree({activeButtonClass:"on",hoverListItemClass:"active",selectEvents:"mouseenter focus",handleDisplay:"initial",setPanelHeightByTabbar:true}).find("a").bind("click",function(e){if(e.pageX!==0&&e.pageY!==0){var url=$($(this).attr("href")).find("a:first").attr("href");
if(url){location=url}}})})})();(function(){if(typeof $.fn.jScrollPane=="function"){$("div.tw-switcher").each(function(){var scrollContainerWrapper=$(this);
var scrollContainer=scrollContainerWrapper.children("div.rack");var scrollContentWrapper=scrollContainer.find("div.rack-design");
var scrollContentItems=scrollContainer.find("div.rack-teaser");var contentWidth=0;
var currentSkipIndex=0;scrollContentItems.each(function(){contentWidth+=$(this).outerWidth(true)
});scrollContentWrapper.width(contentWidth);scrollContentItems.css("visibility","visible");
scrollContainer.jScrollPane({showArrows:true,isScrollableV:false,isScrollableH:true,animateScroll:true});
scrollContainer.find(".jspArrow").unbind("mousedown").click(function(evt){var pagingLink=$(this);
if(pagingLink.hasClass("jspDisabled")){return false}var skipBack=pagingLink.hasClass("jspArrowLeft");
var jspScrollObj=scrollContainer.data("jsp");var skipWidth=skipBack?scrollContentItems.eq(currentSkipIndex-1).outerWidth()*-1:scrollContentItems.eq(currentSkipIndex).outerWidth();
currentSkipIndex+=skipBack?-1:1;jspScrollObj.scrollByX(skipWidth)})})}})();(function(){if(typeof $.fn.jScrollPane=="function"){$("div.tw-slider").each(function(){var scrollContainerWrapper=$(this);
var scrollContainer=scrollContainerWrapper.children("div.rack");var scrollContentWrapper=scrollContainer.find("div.rack-design");
var scrollContentItems=scrollContainer.find("div.rack-teaser");var contentWidth=0;
var isGallerySlider=scrollContainerWrapper.hasClass("gallery-slider");var infoBoxObj=$('<div class="info"></div>');
var initInfoBox=function(teaserObj){var infoContent=teaserObj.find("h2, p");if(infoContent.length>0){teaserObj.bind({click:function(evt){evt.stopPropagation();
if(infoBoxObj.is(":visible")){infoBoxObj.hide()}infoBoxObj.html(infoContent);var displayLeft=evt.pageX>$(document).width()/2;
var boxPosX=evt.pageX-scrollContainerWrapper.offset().left+10;if(displayLeft){boxPosX-=infoBoxObj.outerWidth()+20
}var boxPosY=evt.pageY-scrollContainerWrapper.offset().top-infoBoxObj.outerHeight()-10;
infoBoxObj.css({left:boxPosX+"px",top:boxPosY+"px"});infoBoxObj.fadeIn(500)},mousedown:function(evt){evt.stopPropagation()
}})}};if(isGallerySlider){scrollContainerWrapper.append(infoBoxObj);infoBoxObj.mousedown(function(evt){evt.stopPropagation()
})}scrollContentItems.each(function(){contentWidth+=$(this).outerWidth(true);if(isGallerySlider){initInfoBox($(this))
}});scrollContentWrapper.width(contentWidth);scrollContentItems.css("visibility","visible");
scrollContainer.jScrollPane({showArrows:true,isScrollableV:false,isScrollableH:true})
});var infoBoxItems=$("div.teaser-wrapper.tw-slider div.info");if(infoBoxItems.length>0){$("body, .jspDrag, .jspTrack, .jspArrow").mousedown(function(){infoBoxItems.hide()
})}}})();$(function(){$(".datepicker").datepicker();var dates=$(".shipping, .pick-up").datepicker({minDate:+7,onSelect:function(selectedDate){var option=$(this).hasClass("shipping")?"minDate":"maxDate";
var instance=$(this).data("datepicker");var date=$.datepicker.parseDate($.datepicker._defaults.dateFormat,selectedDate,instance.settings,maxDate);
dates.not(this).datepicker("option",option,date);if(dates.is(".shipping")){var maxDate=new Date($.datepicker.parseDate("dd.mm.yy",selectedDate));
maxDate.setDate(maxDate.getDate()+10);$(".pick-up").datepicker("option",{maxDate:maxDate})
}}});$.datepicker.setDefaults({regional:"de"})});$("a.job-application").colorbox({width:"650px",height:"80%",iframe:true,overlayClose:false});
$("a.lightbox").colorbox({initialWidth:300,initialHeight:100,opacity:0.8,current:"{current} / {total}",onOpen:function(){$("#colorbox").addClass("downloads")
},onComplete:function(){if(vi.Info.os.isIOS){var $videos=$("div.video a.ipad",$("#colorbox"));
$videos.flowplayer(RESOURCES_PATH+"swf/flowplayer-3-2-5.swf",{plugins:{controls:{url:RESOURCES_PATH+"swf/flowplayer-controls-3-2-3.swf"}},clip:{autoBuffering:true,bufferLength:5,autoPlay:true}});
$videos.flowplayer().each(function(){this.ipad({simulateiDevice:true})})}else{var $embeddedVideos=$("div.video a:not(.ipad)",$("#colorbox"));
if($embeddedVideos.length){$("div.video a",$("#colorbox")).flowplayer().each(function(){this.unload()
});$("div.video a").append('<div id="fp_player" />');swfobject.embedSWF(RESOURCES_PATH+"swf/flowplayer-3-2-5.swf","fp_player","100%","100%","9.0.0",RESOURCES_PATH+"swf/expressInstall.swf",{config:"{'plugins': {'controls': {'url':'"+RESOURCES_PATH+"swf/flowplayer-controls-3-2-3.swf'}}, 'clip': {'url': '"+$("div.video a")[0].href+"', 'autoPlay': true, 'bufferLength': 5, 'autoBuffering': true }}"},{allowFullScreen:"true"})
}}},onLoad:function(){if(vi.Info.browser.isIEpre7){$("#colorbox")[0].style.overflow="hidden"
}$("div.video",$("#colorbox")).css("visibility","hidden")},onCleanup:function(){$("div.video a",$("#colorbox")).flowplayer().each(function(){this.unload()
});$("div.video",$("#colorbox")).empty().css("visibility","hidden")}});var $videos=vi.Info.os.isIOS?$("div.video a.ipad"):$("div.video a:not(.ipad)");
$videos.flowplayer(RESOURCES_PATH+"swf/flowplayer-3-2-5.swf",{plugins:{controls:{url:RESOURCES_PATH+"swf/flowplayer-controls-3-2-3.swf"}},clip:{autoPlay:false,autoBuffering:true}});
if(vi.Info.os.isIOS){$videos.flowplayer().each(function(){this.ipad({simulateiDevice:true})
})}swfobject.addDomLoadEvent(function(){$("div.flash a, div.flash-head a").wrap('<div class="flashplayer" />').parent().embedSWF()
});$("form.collapsible > fieldset").each(function(index){var $that=$(this);if($that.hasClass("not-close")){return 
}if($that.find('input[type="hidden"]').length){var status=$that.find('input[type="hidden"]').attr("value");
if(status=="hidden"){$that.find("div").hide()}$that.find("h2").addClass(status)}$that.find("h2").click(function(){if($(this).hasClass("hidden")){$(this).removeClass("hidden").addClass("visible");
$that.find('input[type="hidden"]').attr({value:"visible"});$that.find("div").show()
}else{if($(this).hasClass("visible")){$(this).removeClass("visible").addClass("hidden");
$that.find('input[type="hidden"]').attr({value:"hidden"});$that.find("div").hide()
}}})});$("dd.zoom a").click(function(evt){var zoomLink=$(this);var lightboxLink=zoomLink.parents("dl").find("dt a.lightbox");
if(lightboxLink.length==1){evt.preventDefault();lightboxLink.click()}else{return true
}});$("div.glossary-box:even:not(.glossary-details)").addClass("left");$("dl.collapsible").each(function(){var containerObj=$(this);
var togglerClass="section";var togglerClassActive="selected";var expandTime=600;var collapseTime=400;
containerObj.data("animationsPending",0);var registerPendingAnimations=function(){var incr=arguments[0]?arguments[0]:1;
containerObj.data("animationsPending",containerObj.data("animationsPending")+incr)
};var unregisterPendingAnimations=function(){var decr=arguments[0]?arguments[0]:1;
containerObj.data("animationsPending",containerObj.data("animationsPending")-decr)
};var hasPendingAnimation=function(){return containerObj.data("animationsPending")>0
};var expandSection=function(toggleObj,toggledItems,animate){if(!animate){toggledItems.show();
toggleObj.addClass(togglerClassActive);return }registerPendingAnimations(toggledItems.length);
toggleObj.addClass(togglerClassActive);toggledItems.slideDown(expandTime,"easeInOutSine",function(){unregisterPendingAnimations()
})};var collapseSection=function(toggleObj,toggledItems,animate){if(!animate){toggledItems.hide();
toggleObj.removeClass(togglerClassActive);return }registerPendingAnimations(toggledItems.length);
toggledItems.slideUp(collapseTime,"easeInOutSine",function(){toggleObj.removeClass(togglerClassActive);
unregisterPendingAnimations()})};containerObj.children(":not(."+togglerClass+")").hide();
containerObj.children("."+togglerClass).each(function(){var toggleObj=$(this);var toggledItems=toggleObj.nextUntil("."+togglerClass);
toggleObj.wrapInner("<span>");toggleObj.click(function(evt){if(hasPendingAnimation()){return false
}evt.preventDefault();if(toggleObj.hasClass(togglerClassActive)){collapseSection(toggleObj,toggledItems,false)
}else{containerObj.children("."+togglerClassActive).click();expandSection(toggleObj,toggledItems,true)
}});if(toggleObj.hasClass(togglerClassActive)){expandSection(toggleObj,toggledItems,false)
}})});$("div.worldmap .location").each(function(){var locationObj=$(this);locationObj.click(function(){showLocation($(locationObj).attr("class").split(" ")[1])
});var showLocation=function(location){$("div.worldmap").hide();$("div.location-wrapper").hide();
$("div#location-"+location).show()}});$("div.location-map .close").each(function(){var locationObj=$(this);
locationObj.click(function(){$("div.worldmap").show();$("div.location-wrapper").hide()
})});$(".new-window").each(function(){$(this).click(function(){window.open(this.href);
return false})});if($("#target-group").length&&$("#site-select").length&&selectValues&&selectOptions){$("#target-group").doubleSelect("site-select",selectValues,selectOptions);
$("#site-select").change(function(event){$(event.target).closest("form").submit()
})}if(vi.Info.browser.isIEpre8){$(".service-nav li.first").before('<li class="clear"></li>')
}$("#extras").delegate("a","click",function(e){if(this.href=="javascript:void(0);"){return true
}if($(this).hasClass("lightbox")){return true}var norm=this.href.replace("http://","");
norm=norm.substring(norm.indexOf("/"));if(norm.indexOf("/dms")==0){return true}if(norm.indexOf(CONTEXT_PATH+"/de")==-1&&norm.indexOf(CONTEXT_PATH+"/en")==-1&&norm.indexOf(CONTEXT_PATH+"/business")==-1){return true
}var current=window.location.pathname;current=current.replace(CONTEXT_PATH,"");var current_corporate=current.indexOf("/de")==0||current.indexOf("/en")==0;
var current_business=current.indexOf("/business")==0;var target=$(this).attr("href");
target=target.replace("http://","");target=target.substring(target.indexOf("/"));
target=target.replace(CONTEXT_PATH,"");var target_corporate=target.indexOf("/de")==0||target.indexOf("/en")==0;
var target_business=target.indexOf("/business")==0;if(current_corporate!=target_corporate||current_business!=target_business){window.open(this.href);
return false}return true});var stage=$("#stage");var stageIsInAction=false;initStage(stage);
function initStage(stage){if(stage.length){var itemsInStage=stage.find("#slider img").length;
$(".scrollable .items a.video",stage).append('<span class="video-preview" />');$("#slider",stage).nivoSlider({effect:"slideInRight",controlNavThumbs:false,boxCols:1,boxRows:1,slices:1,manualAdvance:true,directionNav:false,keyboardNav:false,controlNav:false,afterChange:function(){stageChangedCallback()
}});if(itemsInStage>1){$(".claim",stage).css({bottom:(parseInt($(".control",stage).show().css("bottom"))+$(".control",stage).outerHeight()),"padding-bottom":0});
$(".scrollable",stage).scrollable({circular:true});var firstElement=$("#stage .control .scrollable .items div:first-child").not(".cloned").find("a:first-child");
var firstElementIndex=(((firstElement.parent().index()-1)*3)+(firstElement.index()+1)-1);
setActiveStageIsVideo(firstElement,firstElementIndex);if(stage.data("activeStageIsVideo")==true){initVideoStage()
}$(".scrollable .items a",stage).click(function(){if($(this).hasClass("active")||stageIsInAction==true){return false
}stageIsInAction=true;var itemIndex=((($(this).parent().index()-1)*3)+($(this).index()+1)-1);
$("#slider",stage).data("nivoslider").go(itemIndex);$(stage).find("#slider>a>span.video-preview").remove();
setActiveStageIsVideo($(this),itemIndex);$(".scrollable .items a",stage).removeClass("active");
$(this).addClass("active");$(".claim>div",stage).hide();return true})}$("#stage #slider .stage-editor-bar").click(function(e){e.preventDefault();
e.stopPropagation()});$(".ie6 #stage .scrollable .items div a:first-child").addClass("ie6-first-child")
}}function setActiveStageIsVideo(element,itemIndex){var isVideo=false;if(element.hasClass("video")){isVideo=true
}stage.data({activeStage:itemIndex,activeStageIsVideo:isVideo})}function stageChangedCallback(){var claim=$(".claim>div:eq("+stage.data("activeStage")+")",stage);
if(stage.data("activeStageIsVideo")==true){initVideoStage()}if(!claim.is(":empty")){claim.slideDown()
}stageIsInAction=false}function initVideoStage(){$("#slider a:eq("+stage.data("activeStage")+")",stage).unbind("click").bind("click",function(e){e.preventDefault();
$(".video-layer",stage).show().find("span.close").click(function(){stageVideoClose()
});$(stage).css({"z-index":30});swfobject.embedSWF(RESOURCES_PATH+"swf/flowplayer-3-2-5.swf","stage-video-flash-replace","100%","100%","9.0.0",RESOURCES_PATH+"swf/expressInstall.swf",{config:"{'plugins': {'controls': {'url':'"+RESOURCES_PATH+"swf/flowplayer-controls-3-2-3.swf'}}, 'clip': {'url': '"+$(this).attr("href")+"', 'autoPlay': true, 'bufferLength': 5, 'autoBuffering': true }}"},{allowFullScreen:"true",wmode:"opaque"})
}).append('<span class="video-preview" />')}function stageVideoClose(){$(stage).css({"z-index":""});
$(".video-layer",stage).hide();$(".video-layer .stage-video-wrapper",stage).html('<div id="stage-video-flash-replace" />')
}return })})(jQuery);
