(function(d,a1){function ao(){if(!m.isReady){try{aM.documentElement.doScroll("left")}catch(c){setTimeout(ao,1);return}m.ready()}}function aG(c,s){s.src?m.ajax({url:s.src,async:false,dataType:"script"}):m.globalEval(s.text||s.textContent||s.innerHTML||"");s.parentNode&&s.parentNode.removeChild(s)}function a6(c,s,w,F,A,J){var G=c.length;if(typeof s==="object"){for(var K in s){a6(c,K,s[K],F,A,w)}return c}if(w!==a1){F=!J&&F&&m.isFunction(w);for(K=0;K<G;K++){A(c[K],s,F?w.call(c[K],K,A(c[K],s)):w,J)}return c}return G?A(c[0],s):a1}function ac(){return(new Date).getTime()}function ba(){return false}function be(){return true}function at(c,s,w){w[0].type=c;return m.event.handle.apply(s,w)}function ax(c){var s,w=[],F=[],A=arguments,J,G,N,K,L,O;G=m.data(this,"events");if(!(c.liveFired===this||!G||!G.live||c.button&&c.type==="click")){c.liveFired=this;var P=G.live.slice(0);for(K=0;K<P.length;K++){G=P[K];G.origType.replace(aw,"")===c.type?F.push(G.selector):P.splice(K--,1)}J=m(c.target).closest(F,c.currentTarget);L=0;for(O=J.length;L<O;L++){for(K=0;K<P.length;K++){G=P[K];if(J[L].selector===G.selector){N=J[L].elem;F=null;if(G.preType==="mouseenter"||G.preType==="mouseleave"){F=m(c.relatedTarget).closest(G.selector)[0]}if(!F||F!==N){w.push({elem:N,handleObj:G})}}}}L=0;for(O=w.length;L<O;L++){J=w[L];c.currentTarget=J.elem;c.data=J.handleObj.data;c.handleObj=J.handleObj;if(J.handleObj.origHandler.apply(J.elem,A)===false){s=false;break}}return s}}function aB(c,s){return"live."+(c&&c!=="*"?c+".":"")+s.replace(/\./g,"`").replace(/ /g,"&")}function aF(c){return !c||!c.parentNode||c.parentNode.nodeType===11}function aJ(c,s){var w=0;s.each(function(){if(this.nodeName===(c[w]&&c[w].nodeName)){var F=m.data(c[w++]),A=m.data(this,F);if(F=F&&F.events){delete A.handle;A.events={};for(var J in F){for(var G in F[J]){m.event.add(this,J,F[J][G],F[J][G].data)}}}}})}function aN(c,s,w){var F,A,G;s=s&&s[0]?s[0].ownerDocument||s[0]:aM;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&s===aM&&!aR.test(c[0])&&(m.support.checkClone||!aU.test(c[0]))){A=true;if(G=m.fragments[c[0]]){if(G!==1){F=G}}}if(!F){F=s.createDocumentFragment();m.clean(c,s,F,w)}if(A){m.fragments[c[0]]=G?F:1}return{fragment:F,cacheable:A}}function ag(c,s){var w={};m.each(aY.concat.apply([],aY.slice(0,s)),function(){w[this]=c});return w}function a3(c){return"scrollTo" in c&&c.document?c:c.nodeType===9?c.defaultView||c.parentWindow:false}var m=function(c,s){return new m.fn.init(c,s)},aK=d.jQuery,aO=d.$,aM=d.document,aQ,aS=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,aV=/^.[^:#\[\.,]*$/,aZ=/\S/,a4=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,a8=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,aA=navigator.userAgent,a7=false,aE=[],ak,a=Object.prototype.toString,e=Object.prototype.hasOwnProperty,i=Array.prototype.push,aI=Array.prototype.slice,bb=Array.prototype.indexOf;m.fn=m.prototype={init:function(c,s){var w,A;if(!c){return this}if(c.nodeType){this.context=this[0]=c;this.length=1;return this}if(c==="body"&&!s){this.context=aM;this[0]=aM.body;this.selector="body";this.length=1;return this}if(typeof c==="string"){if((w=aS.exec(c))&&(w[1]||!s)){if(w[1]){A=s?s.ownerDocument||s:aM;if(c=a8.exec(c)){if(m.isPlainObject(s)){c=[aM.createElement(c[1])];m.fn.attr.call(c,s,true)}else{c=[A.createElement(c[1])]}}else{c=aN([w[1]],[A]);c=(c.cacheable?c.fragment.cloneNode(true):c.fragment).childNodes}return m.merge(this,c)}else{if(s=aM.getElementById(w[2])){if(s.id!==w[2]){return aQ.find(c)}this.length=1;this[0]=s}this.context=aM;this.selector=c;return this}}else{if(!s&&/^\w+$/.test(c)){this.selector=c;this.context=aM;c=aM.getElementsByTagName(c);return m.merge(this,c)}else{return !s||s.jquery?(s||aQ).find(c):m(s).find(c)}}}else{if(m.isFunction(c)){return aQ.ready(c)}}if(c.selector!==a1){this.selector=c.selector;this.context=c.context}return m.makeArray(c,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return aI.call(this,0)},get:function(c){return c==null?this.toArray():c<0?this.slice(c)[0]:this[c]},pushStack:function(c,s,w){var A=m();m.isArray(c)?i.apply(A,c):m.merge(A,c);A.prevObject=this;A.context=this.context;if(s==="find"){A.selector=this.selector+(this.selector?" ":"")+w}else{if(s){A.selector=this.selector+"."+s+"("+w+")"}}return A},each:function(c,s){return m.each(this,c,s)},ready:function(c){m.bindReady();if(m.isReady){c.call(aM,m)}else{aE&&aE.push(c)}return this},eq:function(c){return c===-1?this.slice(c):this.slice(c,+c+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(aI.apply(this,arguments),"slice",aI.call(arguments).join(","))},map:function(c){return this.pushStack(m.map(this,function(s,w){return c.call(s,w,s)}))},end:function(){return this.prevObject||m(null)},push:i,sort:[].sort,splice:[].splice};m.fn.init.prototype=m.fn;m.extend=m.fn.extend=function(){var c=arguments[0]||{},s=1,w=arguments.length,F=false,A,J,G,K;if(typeof c==="boolean"){F=c;c=arguments[1]||{};s=2}if(typeof c!=="object"&&!m.isFunction(c)){c={}}if(w===s){c=this;--s}for(;s<w;s++){if((A=arguments[s])!=null){for(J in A){G=c[J];K=A[J];if(c!==K){if(F&&K&&(m.isPlainObject(K)||m.isArray(K))){G=G&&(m.isPlainObject(G)||m.isArray(G))?G:m.isArray(K)?[]:{};c[J]=m.extend(F,G,K)}else{if(K!==a1){c[J]=K}}}}}}return c};m.extend({noConflict:function(c){d.$=aO;if(c){d.jQuery=aK}return m},isReady:false,ready:function(){if(!m.isReady){if(!aM.body){return setTimeout(m.ready,13)}m.isReady=true;if(aE){for(var c,s=0;c=aE[s++];){c.call(aM,m)}aE=null}m.fn.triggerHandler&&m(aM).triggerHandler("ready")}},bindReady:function(){if(!a7){a7=true;if(aM.readyState==="complete"){return m.ready()}if(aM.addEventListener){aM.addEventListener("DOMContentLoaded",ak,false);d.addEventListener("load",m.ready,false)}else{if(aM.attachEvent){aM.attachEvent("onreadystatechange",ak);d.attachEvent("onload",m.ready);var c=false;try{c=d.frameElement==null}catch(s){}aM.documentElement.doScroll&&c&&ao()}}}},isFunction:function(c){return a.call(c)==="[object Function]"},isArray:function(c){return a.call(c)==="[object Array]"},isPlainObject:function(c){if(!c||a.call(c)!=="[object Object]"||c.nodeType||c.setInterval){return false}if(c.constructor&&!e.call(c,"constructor")&&!e.call(c.constructor.prototype,"isPrototypeOf")){return false}var s;for(s in c){}return s===a1||e.call(c,s)},isEmptyObject:function(c){for(var s in c){return false}return true},error:function(c){throw c},parseJSON:function(c){if(typeof c!=="string"||!c){return null}c=m.trim(c);if(/^[\],:{}\s]*$/.test(c.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return d.JSON&&d.JSON.parse?d.JSON.parse(c):(new Function("return "+c))()}else{m.error("Invalid JSON: "+c)}},noop:function(){},globalEval:function(c){if(c&&aZ.test(c)){var s=aM.getElementsByTagName("head")[0]||aM.documentElement,w=aM.createElement("script");w.type="text/javascript";if(m.support.scriptEval){w.appendChild(aM.createTextNode(c))}else{w.text=c}s.insertBefore(w,s.firstChild);s.removeChild(w)}},nodeName:function(c,s){return c.nodeName&&c.nodeName.toUpperCase()===s.toUpperCase()},each:function(c,s,w){var F,A=0,J=c.length,G=J===a1||m.isFunction(c);if(w){if(G){for(F in c){if(s.apply(c[F],w)===false){break}}}else{for(;A<J;){if(s.apply(c[A++],w)===false){break}}}}else{if(G){for(F in c){if(s.call(c[F],F,c[F])===false){break}}}else{for(w=c[0];A<J&&s.call(w,A,w)!==false;w=c[++A]){}}}return c},trim:function(c){return(c||"").replace(a4,"")},makeArray:function(c,s){s=s||[];if(c!=null){c.length==null||typeof c==="string"||m.isFunction(c)||typeof c!=="function"&&c.setInterval?i.call(s,c):m.merge(s,c)}return s},inArray:function(c,s){if(s.indexOf){return s.indexOf(c)}for(var w=0,A=s.length;w<A;w++){if(s[w]===c){return w}}return -1},merge:function(c,s){var w=c.length,F=0;if(typeof s.length==="number"){for(var A=s.length;F<A;F++){c[w++]=s[F]}}else{for(;s[F]!==a1;){c[w++]=s[F++]}}c.length=w;return c},grep:function(c,s,w){for(var F=[],A=0,G=c.length;A<G;A++){!w!==!s(c[A],A)&&F.push(c[A])}return F},map:function(c,s,w){for(var F=[],A,J=0,G=c.length;J<G;J++){A=s(c[J],J,w);if(A!=null){F[F.length]=A}}return F.concat.apply([],F)},guid:1,proxy:function(c,s,w){if(arguments.length===2){if(typeof s==="string"){w=c;c=w[s];s=a1}else{if(s&&!m.isFunction(s)){w=s;s=a1}}}if(!s&&c){s=function(){return c.apply(w||this,arguments)}}if(c){s.guid=c.guid=c.guid||s.guid||m.guid++}return s},uaMatch:function(c){c=c.toLowerCase();c=/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||!/compatible/.test(c)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(c)||[];return{browser:c[1]||"",version:c[2]||"0"}},browser:{}});aA=m.uaMatch(aA);if(aA.browser){m.browser[aA.browser]=true;m.browser.version=aA.version}if(m.browser.webkit){m.browser.safari=true}if(bb){m.inArray=function(c,s){return bb.call(s,c)}}aQ=m(aM);if(aM.addEventListener){ak=function(){aM.removeEventListener("DOMContentLoaded",ak,false);m.ready()}}else{if(aM.attachEvent){ak=function(){if(aM.readyState==="complete"){aM.detachEvent("onreadystatechange",ak);m.ready()}}}}(function(){m.support={};var c=aM.documentElement,s=aM.createElement("script"),w=aM.createElement("div"),F="script"+ac();w.style.display="none";w.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var A=w.getElementsByTagName("*"),J=w.getElementsByTagName("a")[0];if(!(!A||!A.length||!J)){m.support={leadingWhitespace:w.firstChild.nodeType===3,tbody:!w.getElementsByTagName("tbody").length,htmlSerialize:!!w.getElementsByTagName("link").length,style:/red/.test(J.getAttribute("style")),hrefNormalized:J.getAttribute("href")==="/a",opacity:/^0.55$/.test(J.style.opacity),cssFloat:!!J.style.cssFloat,checkOn:w.getElementsByTagName("input")[0].value==="on",optSelected:aM.createElement("select").appendChild(aM.createElement("option")).selected,parentNode:w.removeChild(w.appendChild(aM.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};s.type="text/javascript";try{s.appendChild(aM.createTextNode("window."+F+"=1;"))}catch(G){}c.insertBefore(s,c.firstChild);if(d[F]){m.support.scriptEval=true;delete d[F]}try{delete s.test}catch(L){m.support.deleteExpando=false}c.removeChild(s);if(w.attachEvent&&w.fireEvent){w.attachEvent("onclick",function K(){m.support.noCloneEvent=false;w.detachEvent("onclick",K)});w.cloneNode(true).fireEvent("onclick")}w=aM.createElement("div");w.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";c=aM.createDocumentFragment();c.appendChild(w.firstChild);m.support.checkClone=c.cloneNode(true).cloneNode(true).lastChild.checked;m(function(){var N=aM.createElement("div");N.style.width=N.style.paddingLeft="1px";aM.body.appendChild(N);m.boxModel=m.support.boxModel=N.offsetWidth===2;aM.body.removeChild(N).style.display="none"});c=function(N){var O=aM.createElement("div");N="on"+N;var P=N in O;if(!P){O.setAttribute(N,"return;");P=typeof O[N]==="function"}return P};m.support.submitBubbles=c("submit");m.support.changeBubbles=c("change");c=s=w=A=J=null}})();m.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var E="jQuery"+ac(),bc=0,bf={};m.extend({cache:{},expando:E,noData:{embed:true,object:true,applet:true},data:function(c,s,w){if(!(c.nodeName&&m.noData[c.nodeName.toLowerCase()])){c=c==d?bf:c;var F=c[E],A=m.cache;if(!F&&typeof s==="string"&&w===a1){return null}F||(F=++bc);if(typeof s==="object"){c[E]=F;A[F]=m.extend(true,{},s)}else{if(!A[F]){c[E]=F;A[F]={}}}c=A[F];if(w!==a1){c[s]=w}return typeof s==="string"?c[s]:c}},removeData:function(c,s){if(!(c.nodeName&&m.noData[c.nodeName.toLowerCase()])){c=c==d?bf:c;var w=c[E],F=m.cache,A=F[w];if(s){if(A){delete A[s];m.isEmptyObject(A)&&m.removeData(c)}}else{if(m.support.deleteExpando){delete c[m.expando]}else{c.removeAttribute&&c.removeAttribute(m.expando)}delete F[w]}}}});m.fn.extend({data:function(c,s){if(typeof c==="undefined"&&this.length){return m.data(this[0])}else{if(typeof c==="object"){return this.each(function(){m.data(this,c)})}}var w=c.split(".");w[1]=w[1]?"."+w[1]:"";if(s===a1){var A=this.triggerHandler("getData"+w[1]+"!",[w[0]]);if(A===a1&&this.length){A=m.data(this[0],c)}return A===a1&&w[1]?this.data(w[0]):A}else{return this.trigger("setData"+w[1]+"!",[w[0],s]).each(function(){m.data(this,c,s)})}},removeData:function(c){return this.each(function(){m.removeData(this,c)})}});m.extend({queue:function(c,s,w){if(c){s=(s||"fx")+"queue";var A=m.data(c,s);if(!w){return A||[]}if(!A||m.isArray(w)){A=m.data(c,s,m.makeArray(w))}else{A.push(w)}return A}},dequeue:function(c,s){s=s||"fx";var w=m.queue(c,s),A=w.shift();if(A==="inprogress"){A=w.shift()}if(A){s==="fx"&&w.unshift("inprogress");A.call(c,function(){m.dequeue(c,s)})}}});m.fn.extend({queue:function(c,s){if(typeof c!=="string"){s=c;c="fx"}if(s===a1){return m.queue(this[0],c)}return this.each(function(){var w=m.queue(this,c,s);c==="fx"&&w[0]!=="inprogress"&&m.dequeue(this,c)})},dequeue:function(c){return this.each(function(){m.dequeue(this,c)})},delay:function(c,s){c=m.fx?m.fx.speeds[c]||c:c;s=s||"fx";return this.queue(s,function(){var w=this;setTimeout(function(){m.dequeue(w,s)},c)})},clearQueue:function(c){return this.queue(c||"fx",[])}});var f=/[\n\t]/g,n=/\s+/,bg=/\r/g,b=/href|src|style/,g=/(button|input)/i,k=/(button|input|object|select|textarea)/i,q=/^(a|area)$/i,j=/radio|checkbox/;m.fn.extend({attr:function(c,s){return a6(this,c,s,true,m.attr)},removeAttr:function(c){return this.each(function(){m.attr(this,c,"");this.nodeType===1&&this.removeAttribute(c)})},addClass:function(c){if(m.isFunction(c)){return this.each(function(N){var O=m(this);O.addClass(c.call(this,N,O.attr("class")))})}if(c&&typeof c==="string"){for(var s=(c||"").split(n),w=0,F=this.length;w<F;w++){var A=this[w];if(A.nodeType===1){if(A.className){for(var J=" "+A.className+" ",G=A.className,L=0,K=s.length;L<K;L++){if(J.indexOf(" "+s[L]+" ")<0){G+=" "+s[L]}}A.className=m.trim(G)}else{A.className=c}}}}return this},removeClass:function(c){if(m.isFunction(c)){return this.each(function(L){var N=m(this);N.removeClass(c.call(this,L,N.attr("class")))})}if(c&&typeof c==="string"||c===a1){for(var s=(c||"").split(n),w=0,F=this.length;w<F;w++){var A=this[w];if(A.nodeType===1&&A.className){if(c){for(var J=(" "+A.className+" ").replace(f," "),G=0,K=s.length;G<K;G++){J=J.replace(" "+s[G]+" "," ")}A.className=m.trim(J)}else{A.className=""}}}}return this},toggleClass:function(c,s){var w=typeof c,A=typeof s==="boolean";if(m.isFunction(c)){return this.each(function(F){var G=m(this);G.toggleClass(c.call(this,F,G.attr("class"),s),s)})}return this.each(function(){if(w==="string"){for(var F,J=0,G=m(this),L=s,K=c.split(n);F=K[J++];){L=A?L:!G.hasClass(F);G[L?"addClass":"removeClass"](F)}}else{if(w==="undefined"||w==="boolean"){this.className&&m.data(this,"__className__",this.className);this.className=this.className||c===false?"":m.data(this,"__className__")||""}}})},hasClass:function(c){c=" "+c+" ";for(var s=0,w=this.length;s<w;s++){if((" "+this[s].className+" ").replace(f," ").indexOf(c)>-1){return true}}return false},val:function(c){if(c===a1){var s=this[0];if(s){if(m.nodeName(s,"option")){return(s.attributes.value||{}).specified?s.value:s.text}if(m.nodeName(s,"select")){var w=s.selectedIndex,F=[],A=s.options;s=s.type==="select-one";if(w<0){return null}var J=s?w:0;for(w=s?w+1:A.length;J<w;J++){var G=A[J];if(G.selected){c=m(G).val();if(s){return c}F.push(c)}}return F}if(j.test(s.type)&&!m.support.checkOn){return s.getAttribute("value")===null?"on":s.value}return(s.value||"").replace(bg,"")}return a1}var K=m.isFunction(c);return this.each(function(L){var N=m(this),O=c;if(this.nodeType===1){if(K){O=c.call(this,L,N.val())}if(typeof O==="number"){O+=""}if(m.isArray(O)&&j.test(this.type)){this.checked=m.inArray(N.val(),O)>=0}else{if(m.nodeName(this,"select")){var P=m.makeArray(O);m("option",this).each(function(){this.selected=m.inArray(m(this).val(),P)>=0});if(!P.length){this.selectedIndex=-1}}else{this.value=O}}}})}});m.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(c,s,w,F){if(!c||c.nodeType===3||c.nodeType===8){return a1}if(F&&s in m.attrFn){return m(c)[s](w)}F=c.nodeType!==1||!m.isXMLDoc(c);var A=w!==a1;s=F&&m.props[s]||s;if(c.nodeType===1){var G=b.test(s);if(s in c&&F&&!G){if(A){s==="type"&&g.test(c.nodeName)&&c.parentNode&&m.error("type property can't be changed");c[s]=w}if(m.nodeName(c,"form")&&c.getAttributeNode(s)){return c.getAttributeNode(s).nodeValue}if(s==="tabIndex"){return(s=c.getAttributeNode("tabIndex"))&&s.specified?s.value:k.test(c.nodeName)||q.test(c.nodeName)&&c.href?0:a1}return c[s]}if(!m.support.style&&F&&s==="style"){if(A){c.style.cssText=""+w}return c.style.cssText}A&&c.setAttribute(s,""+w);c=!m.support.hrefNormalized&&F&&G?c.getAttribute(s,2):c.getAttribute(s);return c===null?a1:c}return m.style(c,s,w)}});var aw=/\.(.*)$/,u=function(c){return c.replace(/[^\w\s\.\|`]/g,function(s){return"\\"+s})};m.event={add:function(c,s,w,F){if(!(c.nodeType===3||c.nodeType===8)){if(c.setInterval&&c!==d&&!c.frameElement){c=d}var A,J;if(w.handler){A=w;w=A.handler}if(!w.guid){w.guid=m.guid++}if(J=m.data(c)){var G=J.events=J.events||{},N=J.handle;if(!N){J.handle=N=function(){return typeof m!=="undefined"&&!m.event.triggered?m.event.handle.apply(N.elem,arguments):a1}}N.elem=c;s=s.split(" ");for(var K,L=0,O;K=s[L++];){J=A?m.extend({},A):{handler:w,data:F};if(K.indexOf(".")>-1){O=K.split(".");K=O.shift();J.namespace=O.slice(0).sort().join(".")}else{O=[];J.namespace=""}J.type=K;J.guid=w.guid;var P=G[K],Q=m.event.special[K]||{};if(!P){P=G[K]=[];if(!Q.setup||Q.setup.call(c,F,O,N)===false){if(c.addEventListener){c.addEventListener(K,N,false)}else{c.attachEvent&&c.attachEvent("on"+K,N)}}}if(Q.add){Q.add.call(c,J);if(!J.handler.guid){J.handler.guid=w.guid}}P.push(J);m.event.global[K]=true}c=null}}},global:{},remove:function(c,s,F,J){if(!(c.nodeType===3||c.nodeType===8)){var G,L=0,K,P,N,O,Q,R,T=m.data(c),A=T&&T.events;if(T&&A){if(s&&s.type){F=s.handler;s=s.type}if(!s||typeof s==="string"&&s.charAt(0)==="."){s=s||"";for(G in A){m.event.remove(c,G+s)}}else{for(s=s.split(" ");G=s[L++];){O=G;K=G.indexOf(".")<0;P=[];if(!K){P=G.split(".");G=P.shift();N=new RegExp("(^|\\.)"+m.map(P.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(Q=A[G]){if(F){O=m.event.special[G]||{};for(w=J||0;w<Q.length;w++){R=Q[w];if(F.guid===R.guid){if(K||N.test(R.namespace)){J==null&&Q.splice(w--,1);O.remove&&O.remove.call(c,R)}if(J!=null){break}}}if(Q.length===0||J!=null&&Q.length===1){if(!O.teardown||O.teardown.call(c,P)===false){o(c,G,T.handle)}delete A[G]}}else{for(var w=0;w<Q.length;w++){R=Q[w];if(K||N.test(R.namespace)){m.event.remove(c,O,R.handler,w);Q.splice(w--,1)}}}}}if(m.isEmptyObject(A)){if(s=T.handle){s.elem=null}delete T.events;delete T.handle;m.isEmptyObject(T)&&m.removeData(c)}}}}},trigger:function(c,s,w,F){var A=c.type||c;if(!F){c=typeof c==="object"?c[E]?c:m.extend(m.Event(A),c):m.Event(A);if(A.indexOf("!")>=0){c.type=A=A.slice(0,-1);c.exclusive=true}if(!w){c.stopPropagation();m.event.global[A]&&m.each(m.cache,function(){this.events&&this.events[A]&&m.event.trigger(c,s,this.handle.elem)})}if(!w||w.nodeType===3||w.nodeType===8){return a1}c.result=a1;c.target=w;s=m.makeArray(s);s.unshift(c)}c.currentTarget=w;(F=m.data(w,"handle"))&&F.apply(w,s);F=w.parentNode||w.ownerDocument;try{if(!(w&&w.nodeName&&m.noData[w.nodeName.toLowerCase()])){if(w["on"+A]&&w["on"+A].apply(w,s)===false){c.result=false}}}catch(J){}if(!c.isPropagationStopped()&&F){m.event.trigger(c,s,F,true)}else{if(!c.isDefaultPrevented()){F=c.target;var G,N=m.nodeName(F,"a")&&A==="click",K=m.event.special[A]||{};if((!K._default||K._default.call(w,c)===false)&&!N&&!(F&&F.nodeName&&m.noData[F.nodeName.toLowerCase()])){try{if(F[A]){if(G=F["on"+A]){F["on"+A]=null}m.event.triggered=true;F[A]()}}catch(L){}if(G){F["on"+A]=G}m.event.triggered=false}}}},handle:function(c){var s,w,F,A;c=arguments[0]=m.event.fix(c||d.event);c.currentTarget=this;s=c.type.indexOf(".")<0&&!c.exclusive;if(!s){w=c.type.split(".");c.type=w.shift();F=new RegExp("(^|\\.)"+w.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}A=m.data(this,"events");w=A[c.type];if(A&&w){w=w.slice(0);A=0;for(var J=w.length;A<J;A++){var G=w[A];if(s||F.test(G.namespace)){c.handler=G.handler;c.data=G.data;c.handleObj=G;G=G.handler.apply(this,arguments);if(G!==a1){c.result=G;if(G===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped()){break}}}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[E]){return c}var s=c;c=m.Event(s);for(var w=this.props.length,A;w;){A=this.props[--w];c[A]=s[A]}if(!c.target){c.target=c.srcElement||aM}if(c.target.nodeType===3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){s=aM.documentElement;w=aM.body;c.pageX=c.clientX+(s&&s.scrollLeft||w&&w.scrollLeft||0)-(s&&s.clientLeft||w&&w.clientLeft||0);c.pageY=c.clientY+(s&&s.scrollTop||w&&w.scrollTop||0)-(s&&s.clientTop||w&&w.clientTop||0)}if(!c.which&&(c.charCode||c.charCode===0?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button!==a1){c.which=c.button&1?1:c.button&2?3:c.button&4?2:0}return c},guid:100000000,proxy:m.proxy,special:{ready:{setup:m.bindReady,teardown:m.noop},live:{add:function(c){m.event.add(this,c.origType,m.extend({},c,{handler:ax}))},remove:function(c){var s=true,w=c.origType.replace(aw,"");m.each(m.data(this,"events").live||[],function(){if(w===this.origType.replace(aw,"")){return s=false}});s&&m.event.remove(this,c.origType,ax)}},beforeunload:{setup:function(c,s,w){if(this.setInterval){this.onbeforeunload=w}return false},teardown:function(c,s){if(this.onbeforeunload===s){this.onbeforeunload=null}}}}};var o=aM.removeEventListener?function(c,s,w){c.removeEventListener(s,w,false)}:function(c,s,w){c.detachEvent("on"+s,w)};m.Event=function(c){if(!this.preventDefault){return new m.Event(c)}if(c&&c.type){this.originalEvent=c;this.type=c.type}else{this.type=c}this.timeStamp=ac();this[E]=true};m.Event.prototype={preventDefault:function(){this.isDefaultPrevented=be;var c=this.originalEvent;if(c){c.preventDefault&&c.preventDefault();c.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=be;var c=this.originalEvent;if(c){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=be;this.stopPropagation()},isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba};var t=function(c){var s=c.relatedTarget;try{for(;s&&s!==this;){s=s.parentNode}if(s!==this){c.type=c.data;m.event.handle.apply(this,arguments)}}catch(w){}},x=function(c){c.type=c.data;m.event.handle.apply(this,arguments)};m.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(c,s){m.event.special[c]={setup:function(w){m.event.add(this,s,w&&w.selector?x:t,c)},teardown:function(w){m.event.remove(this,s,w&&w.selector?x:t)}}});if(!m.support.submitBubbles){m.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){m.event.add(this,"click.specialSubmit",function(c){var s=c.target,w=s.type;if((w==="submit"||w==="image")&&m(s).closest("form").length){return at("submit",this,arguments)}});m.event.add(this,"keypress.specialSubmit",function(c){var s=c.target,w=s.type;if((w==="text"||w==="password")&&m(s).closest("form").length&&c.keyCode===13){return at("submit",this,arguments)}})}else{return false}},teardown:function(){m.event.remove(this,".specialSubmit")}}}if(!m.support.changeBubbles){var r=/textarea|input|select/i,v,C=function(c){var s=c.type,w=c.value;if(s==="radio"||s==="checkbox"){w=c.checked}else{if(s==="select-multiple"){w=c.selectedIndex>-1?m.map(c.options,function(A){return A.selected}).join("-"):""}else{if(c.nodeName.toLowerCase()==="select"){w=c.selectedIndex}}}return w},B=function(c,s){var w=c.target,F,A;if(!(!r.test(w.nodeName)||w.readOnly)){F=m.data(w,"_change_data");A=C(w);if(c.type!=="focusout"||w.type!=="radio"){m.data(w,"_change_data",A)}if(!(F===a1||A===F)){if(F!=null||A){c.type="change";return m.event.trigger(c,s,w)}}}};m.event.special.change={filters:{focusout:B,click:function(c){var s=c.target,w=s.type;if(w==="radio"||w==="checkbox"||s.nodeName.toLowerCase()==="select"){return B.call(this,c)}},keydown:function(c){var s=c.target,w=s.type;if(c.keyCode===13&&s.nodeName.toLowerCase()!=="textarea"||c.keyCode===32&&(w==="checkbox"||w==="radio")||w==="select-multiple"){return B.call(this,c)}},beforeactivate:function(c){c=c.target;m.data(c,"_change_data",C(c))}},setup:function(){if(this.type==="file"){return false}for(var c in v){m.event.add(this,c+".specialChange",v[c])}return r.test(this.nodeName)},teardown:function(){m.event.remove(this,".specialChange");return r.test(this.nodeName)}};v=m.event.special.change.filters}aM.addEventListener&&m.each({focus:"focusin",blur:"focusout"},function(c,s){function w(A){A=m.event.fix(A);A.type=s;return m.event.handle.call(this,A)}m.event.special[s]={setup:function(){this.addEventListener(c,w,true)},teardown:function(){this.removeEventListener(c,w,true)}}});m.each(["bind","one"],function(c,s){m.fn[s]=function(w,F,A){if(typeof w==="object"){for(var J in w){this[s](J,F,w[J],A)}return this}if(m.isFunction(F)){A=F;F=a1}var G=s==="one"?m.proxy(A,function(L){m(this).unbind(L,G);return A.apply(this,arguments)}):A;if(w==="unload"&&s!=="one"){this.one(w,F,A)}else{J=0;for(var K=this.length;J<K;J++){m.event.add(this[J],w,G,F)}}return this}});m.fn.extend({unbind:function(c,s){if(typeof c==="object"&&!c.preventDefault){for(var w in c){this.unbind(w,c[w])}}else{w=0;for(var A=this.length;w<A;w++){m.event.remove(this[w],c,s)}}return this},delegate:function(c,s,w,A){return this.live(s,w,A,c)},undelegate:function(c,s,w){return arguments.length===0?this.unbind("live"):this.die(s,null,w,c)},trigger:function(c,s){return this.each(function(){m.event.trigger(c,s,this)})},triggerHandler:function(c,s){if(this[0]){c=m.Event(c);c.preventDefault();c.stopPropagation();m.event.trigger(c,s,this[0]);return c.result}},toggle:function(c){for(var s=arguments,w=1;w<s.length;){m.proxy(c,s[w++])}return this.click(m.proxy(c,function(F){var A=(m.data(this,"lastToggle"+c.guid)||0)%w;m.data(this,"lastToggle"+c.guid,A+1);F.preventDefault();return s[A].apply(this,arguments)||false}))},hover:function(c,s){return this.mouseenter(c).mouseleave(s||c)}});var H={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};m.each(["live","die"],function(c,s){m.fn[s]=function(w,F,A,J){var G,N=0,K,L,O=J||this.selector,P=J?this:m(this.context);if(m.isFunction(F)){A=F;F=a1}for(w=(w||"").split(" ");(G=w[N++])!=null;){J=aw.exec(G);K="";if(J){K=J[0];G=G.replace(aw,"")}if(G==="hover"){w.push("mouseenter"+K,"mouseleave"+K)}else{L=G;if(G==="focus"||G==="blur"){w.push(H[G]+K);G+=K}else{G=(H[G]||G)+K}s==="live"?P.each(function(){m.event.add(this,aB(G,O),{data:F,selector:O,handler:A,origType:G,origHandler:A,preType:L})}):P.unbind(aB(G,O),A)}}return this}});m.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(c,s){m.fn[s]=function(w){return w?this.bind(s,w):this.trigger(s)};if(m.attrFn){m.attrFn[s]=true}});d.attachEvent&&!d.addEventListener&&d.attachEvent("onunload",function(){for(var c in m.cache){if(m.cache[c].handle){try{m.event.remove(m.cache[c].handle.elem)}catch(s){}}}});(function(){function c(Y){for(var Z="",bi,bj=0;Y[bj];bj++){bi=Y[bj];if(bi.nodeType===3||bi.nodeType===4){Z+=bi.nodeValue}else{if(bi.nodeType!==8){Z+=c(bi.childNodes)}}}return Z}function s(Y,Z,bi,bj,bl,bk){bl=0;for(var bn=bj.length;bl<bn;bl++){var bm=bj[bl];if(bm){bm=bm[Y];for(var bo=false;bm;){if(bm.sizcache===bi){bo=bj[bm.sizset];break}if(bm.nodeType===1&&!bk){bm.sizcache=bi;bm.sizset=bl}if(bm.nodeName.toLowerCase()===Z){bo=bm;break}bm=bm[Y]}bj[bl]=bo}}}function F(Y,Z,bi,bj,bl,bk){bl=0;for(var bn=bj.length;bl<bn;bl++){var bm=bj[bl];if(bm){bm=bm[Y];for(var bo=false;bm;){if(bm.sizcache===bi){bo=bj[bm.sizset];break}if(bm.nodeType===1){if(!bk){bm.sizcache=bi;bm.sizset=bl}if(typeof Z!=="string"){if(bm===Z){bo=true;break}}else{if(P.filter(Z,[bm]).length>0){bo=bm;break}}}bm=bm[Y]}bj[bl]=bo}}}var K=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,G=0,O=Object.prototype.toString,N=false,R=true;[0,0].sort(function(){R=false;return 0});var P=function(Z,bi,bl,bm){bl=bl||[];var bp=bi=bi||aM;if(bi.nodeType!==1&&bi.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return bl}for(var bo=[],bs,br,bt,bq,bj=true,bn=W(bi),bk=Z;(K.exec(""),bs=K.exec(bk))!==null;){bk=bs[3];bo.push(bs[1]);if(bs[2]){bq=bs[3];break}}if(bo.length>1&&T.exec(Z)){if(bo.length===2&&Q.relative[bo[0]]){br=L(bo[0]+bo[1],bi)}else{for(br=Q.relative[bo[0]]?[bi]:P(bo.shift(),bi);bo.length;){Z=bo.shift();if(Q.relative[Z]){Z+=bo.shift()}br=L(Z,br)}}}else{if(!bm&&bo.length>1&&bi.nodeType===9&&!bn&&Q.match.ID.test(bo[0])&&!Q.match.ID.test(bo[bo.length-1])){bs=P.find(bo.shift(),bi,bn);bi=bs.expr?P.filter(bs.expr,bs.set)[0]:bs.set[0]}if(bi){bs=bm?{expr:bo.pop(),set:X(bm)}:P.find(bo.pop(),bo.length===1&&(bo[0]==="~"||bo[0]==="+")&&bi.parentNode?bi.parentNode:bi,bn);br=bs.expr?P.filter(bs.expr,bs.set):bs.set;if(bo.length>0){bt=X(br)}else{bj=false}for(;bo.length;){var Y=bo.pop();bs=Y;if(Q.relative[Y]){bs=bo.pop()}else{Y=""}if(bs==null){bs=bi}Q.relative[Y](bt,bs,bn)}}else{bt=[]}}bt||(bt=br);bt||P.error(Y||Z);if(O.call(bt)==="[object Array]"){if(bj){if(bi&&bi.nodeType===1){for(Z=0;bt[Z]!=null;Z++){if(bt[Z]&&(bt[Z]===true||bt[Z].nodeType===1&&J(bi,bt[Z]))){bl.push(br[Z])}}}else{for(Z=0;bt[Z]!=null;Z++){bt[Z]&&bt[Z].nodeType===1&&bl.push(br[Z])}}}else{bl.push.apply(bl,bt)}}else{X(bt,bl)}if(bq){P(bq,bp,bl,bm);P.uniqueSort(bl)}return bl};P.uniqueSort=function(Y){if(w){N=R;Y.sort(w);if(N){for(var Z=1;Z<Y.length;Z++){Y[Z]===Y[Z-1]&&Y.splice(Z--,1)}}}return Y};P.matches=function(Y,Z){return P(Y,null,null,Z)};P.find=function(Y,Z,bi){var bj,bl;if(!Y){return[]}for(var bk=0,bn=Q.order.length;bk<bn;bk++){var bm=Q.order[bk];if(bl=Q.leftMatch[bm].exec(Y)){var bo=bl[1];bl.splice(1,1);if(bo.substr(bo.length-1)!=="\\"){bl[1]=(bl[1]||"").replace(/\\/g,"");bj=Q.find[bm](bl,Z,bi);if(bj!=null){Y=Y.replace(Q.match[bm],"");break}}}}bj||(bj=Z.getElementsByTagName("*"));return{set:bj,expr:Y}};P.filter=function(Z,bi,bm,bn){for(var bq=Z,bp=[],bu=bi,bs,bv,br=bi&&bi[0]&&W(bi[0]);Z&&bi.length;){for(var bj in Q.filter){if((bs=Q.leftMatch[bj].exec(Z))!=null&&bs[2]){var bo=Q.filter[bj],bl,Y;Y=bs[1];bv=false;bs.splice(1,1);if(Y.substr(Y.length-1)!=="\\"){if(bu===bp){bp=[]}if(Q.preFilter[bj]){if(bs=Q.preFilter[bj](bs,bu,bm,bp,bn,br)){if(bs===true){continue}}else{bv=bl=true}}if(bs){for(var bt=0;(Y=bu[bt])!=null;bt++){if(Y){bl=bo(Y,bs,bt,bu);var bk=bn^!!bl;if(bm&&bl!=null){if(bk){bv=true}else{bu[bt]=false}}else{if(bk){bp.push(Y);bv=true}}}}}if(bl!==a1){bm||(bu=bp);Z=Z.replace(Q.match[bj],"");if(!bv){return[]}break}}}}if(Z===bq){if(bv==null){P.error(Z)}else{break}}bq=Z}return bu};P.error=function(Y){throw"Syntax error, unrecognized expression: "+Y};var Q=P.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")}},relative:{"+":function(Y,Z){var bi=typeof Z==="string",bj=bi&&!/\W/.test(Z);bi=bi&&!bj;if(bj){Z=Z.toLowerCase()}bj=0;for(var bl=Y.length,bk;bj<bl;bj++){if(bk=Y[bj]){for(;(bk=bk.previousSibling)&&bk.nodeType!==1;){}Y[bj]=bi||bk&&bk.nodeName.toLowerCase()===Z?bk||false:bk===Z}}bi&&P.filter(Z,Y,true)},">":function(Y,Z){var bi=typeof Z==="string";if(bi&&!/\W/.test(Z)){Z=Z.toLowerCase();for(var bj=0,bl=Y.length;bj<bl;bj++){var bk=Y[bj];if(bk){bi=bk.parentNode;Y[bj]=bi.nodeName.toLowerCase()===Z?bi:false}}}else{bj=0;for(bl=Y.length;bj<bl;bj++){if(bk=Y[bj]){Y[bj]=bi?bk.parentNode:bk.parentNode===Z}}bi&&P.filter(Z,Y,true)}},"":function(Y,Z,bi){var bj=G++,bl=F;if(typeof Z==="string"&&!/\W/.test(Z)){var bk=Z=Z.toLowerCase();bl=s}bl("parentNode",Z,bj,Y,bk,bi)},"~":function(Y,Z,bi){var bj=G++,bl=F;if(typeof Z==="string"&&!/\W/.test(Z)){var bk=Z=Z.toLowerCase();bl=s}bl("previousSibling",Z,bj,Y,bk,bi)}},find:{ID:function(Y,Z,bi){if(typeof Z.getElementById!=="undefined"&&!bi){return(Y=Z.getElementById(Y[1]))?[Y]:[]}},NAME:function(Y,Z){if(typeof Z.getElementsByName!=="undefined"){var bi=[];Z=Z.getElementsByName(Y[1]);for(var bj=0,bk=Z.length;bj<bk;bj++){Z[bj].getAttribute("name")===Y[1]&&bi.push(Z[bj])}return bi.length===0?null:bi}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])}},preFilter:{CLASS:function(Y,Z,bi,bj,bl,bk){Y=" "+Y[1].replace(/\\/g,"")+" ";if(bk){return Y}bk=0;for(var bm;(bm=Z[bk])!=null;bk++){if(bm){if(bl^(bm.className&&(" "+bm.className+" ").replace(/[\t\n]/g," ").indexOf(Y)>=0)){bi||bj.push(bm)}else{if(bi){Z[bk]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")},TAG:function(Y){return Y[1].toLowerCase()},CHILD:function(Y){if(Y[1]==="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Y[2]==="even"&&"2n"||Y[2]==="odd"&&"2n+1"||!/\D/.test(Y[2])&&"0n+"+Y[2]||Y[2]);Y[2]=Z[1]+(Z[2]||1)-0;Y[3]=Z[3]-0}Y[0]=G++;return Y},ATTR:function(Y,Z,bi,bj,bl,bk){Z=Y[1].replace(/\\/g,"");if(!bk&&Q.attrMap[Z]){Y[1]=Q.attrMap[Z]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,Z,bi,bj,bk){if(Y[1]==="not"){if((K.exec(Y[3])||"").length>1||/^\w/.test(Y[3])){Y[3]=P(Y[3],null,null,Z)}else{Y=P.filter(Y[3],Z,bi,true^bk);bi||bj.push.apply(bj,Y);return false}}else{if(Q.match.POS.test(Y[0])||Q.match.CHILD.test(Y[0])){return true}}return Y},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true},selected:function(Y){return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(Y,Z,bi){return !!P(bi[3],Y).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toLowerCase()==="button"},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Y,Z){return Z===0},last:function(Y,Z,bi,bj){return Z===bj.length-1},even:function(Y,Z){return Z%2===0},odd:function(Y,Z){return Z%2===1},lt:function(Y,Z,bi){return Z<bi[3]-0},gt:function(Y,Z,bi){return Z>bi[3]-0},nth:function(Y,Z,bi){return bi[3]-0===Z},eq:function(Y,Z,bi){return bi[3]-0===Z}},filter:{PSEUDO:function(Y,Z,bi,bj){var bl=Z[1],bk=Q.filters[bl];if(bk){return bk(Y,bi,Z,bj)}else{if(bl==="contains"){return(Y.textContent||Y.innerText||c([Y])||"").indexOf(Z[3])>=0}else{if(bl==="not"){Z=Z[3];bi=0;for(bj=Z.length;bi<bj;bi++){if(Z[bi]===Y){return false}}return true}else{P.error("Syntax error, unrecognized expression: "+bl)}}}},CHILD:function(Y,Z){var bi=Z[1],bj=Y;switch(bi){case"only":case"first":for(;bj=bj.previousSibling;){if(bj.nodeType===1){return false}}if(bi==="first"){return true}bj=Y;case"last":for(;bj=bj.nextSibling;){if(bj.nodeType===1){return false}}return true;case"nth":bi=Z[2];var bl=Z[3];if(bi===1&&bl===0){return true}Z=Z[0];var bk=Y.parentNode;if(bk&&(bk.sizcache!==Z||!Y.nodeIndex)){var bm=0;for(bj=bk.firstChild;bj;bj=bj.nextSibling){if(bj.nodeType===1){bj.nodeIndex=++bm}}bk.sizcache=Z}Y=Y.nodeIndex-bl;return bi===0?Y===0:Y%bi===0&&Y/bi>=0}},ID:function(Y,Z){return Y.nodeType===1&&Y.getAttribute("id")===Z},TAG:function(Y,Z){return Z==="*"&&Y.nodeType===1||Y.nodeName.toLowerCase()===Z},CLASS:function(Y,Z){return(" "+(Y.className||Y.getAttribute("class"))+" ").indexOf(Z)>-1},ATTR:function(Y,Z){var bi=Z[1];Y=Q.attrHandle[bi]?Q.attrHandle[bi](Y):Y[bi]!=null?Y[bi]:Y.getAttribute(bi);bi=Y+"";var bj=Z[2];Z=Z[4];return Y==null?bj==="!=":bj==="="?bi===Z:bj==="*="?bi.indexOf(Z)>=0:bj==="~="?(" "+bi+" ").indexOf(Z)>=0:!Z?bi&&Y!==false:bj==="!="?bi!==Z:bj==="^="?bi.indexOf(Z)===0:bj==="$="?bi.substr(bi.length-Z.length)===Z:bj==="|="?bi===Z||bi.substr(0,Z.length+1)===Z+"-":false},POS:function(Y,Z,bi,bj){var bk=Q.setFilters[Z[2]];if(bk){return bk(Y,bi,Z,bj)}}}},T=Q.match.POS;for(var V in Q.match){Q.match[V]=new RegExp(Q.match[V].source+/(?![^\[]*\])(?![^\(]*\))/.source);Q.leftMatch[V]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Q.match[V].source.replace(/\\(\d+)/g,function(Y,Z){return"\\"+(Z-0+1)}))}var X=function(Y,Z){Y=Array.prototype.slice.call(Y,0);if(Z){Z.push.apply(Z,Y);return Z}return Y};try{Array.prototype.slice.call(aM.documentElement.childNodes,0)}catch(A){X=function(Y,Z){Z=Z||[];if(O.call(Y)==="[object Array]"){Array.prototype.push.apply(Z,Y)}else{if(typeof Y.length==="number"){for(var bi=0,bj=Y.length;bi<bj;bi++){Z.push(Y[bi])}}else{for(bi=0;Y[bi];bi++){Z.push(Y[bi])}}}return Z}}var w;if(aM.documentElement.compareDocumentPosition){w=function(Y,Z){if(!Y.compareDocumentPosition||!Z.compareDocumentPosition){if(Y==Z){N=true}return Y.compareDocumentPosition?-1:1}Y=Y.compareDocumentPosition(Z)&4?-1:Y===Z?0:1;if(Y===0){N=true}return Y}}else{if("sourceIndex" in aM.documentElement){w=function(Y,Z){if(!Y.sourceIndex||!Z.sourceIndex){if(Y==Z){N=true}return Y.sourceIndex?-1:1}Y=Y.sourceIndex-Z.sourceIndex;if(Y===0){N=true}return Y}}else{if(aM.createRange){w=function(Y,Z){if(!Y.ownerDocument||!Z.ownerDocument){if(Y==Z){N=true}return Y.ownerDocument?-1:1}var bi=Y.ownerDocument.createRange(),bj=Z.ownerDocument.createRange();bi.setStart(Y,0);bi.setEnd(Y,0);bj.setStart(Z,0);bj.setEnd(Z,0);Y=bi.compareBoundaryPoints(Range.START_TO_END,bj);if(Y===0){N=true}return Y}}}}(function(){var Y=aM.createElement("div"),Z="script"+(new Date).getTime();Y.innerHTML="<a name='"+Z+"'/>";var bi=aM.documentElement;bi.insertBefore(Y,bi.firstChild);if(aM.getElementById(Z)){Q.find.ID=function(bj,bl,bk){if(typeof bl.getElementById!=="undefined"&&!bk){return(bl=bl.getElementById(bj[1]))?bl.id===bj[1]||typeof bl.getAttributeNode!=="undefined"&&bl.getAttributeNode("id").nodeValue===bj[1]?[bl]:a1:[]}};Q.filter.ID=function(bj,bl){var bk=typeof bj.getAttributeNode!=="undefined"&&bj.getAttributeNode("id");return bj.nodeType===1&&bk&&bk.nodeValue===bl}}bi.removeChild(Y);bi=Y=null})();(function(){var Y=aM.createElement("div");Y.appendChild(aM.createComment(""));if(Y.getElementsByTagName("*").length>0){Q.find.TAG=function(Z,bi){bi=bi.getElementsByTagName(Z[1]);if(Z[1]==="*"){Z=[];for(var bj=0;bi[bj];bj++){bi[bj].nodeType===1&&Z.push(bi[bj])}bi=Z}return bi}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){Q.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}Y=null})();aM.querySelectorAll&&function(){var Y=P,Z=aM.createElement("div");Z.innerHTML="<p class='TEST'></p>";if(!(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0)){P=function(bj,bl,bk,bn){bl=bl||aM;if(!bn&&bl.nodeType===9&&!W(bl)){try{return X(bl.querySelectorAll(bj),bk)}catch(bm){}}return Y(bj,bl,bk,bn)};for(var bi in Y){P[bi]=Y[bi]}Z=null}}();(function(){var Y=aM.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!Y.getElementsByClassName||Y.getElementsByClassName("e").length===0)){Y.lastChild.className="e";if(Y.getElementsByClassName("e").length!==1){Q.order.splice(1,0,"CLASS");Q.find.CLASS=function(Z,bi,bj){if(typeof bi.getElementsByClassName!=="undefined"&&!bj){return bi.getElementsByClassName(Z[1])}};Y=null}}})();var J=aM.compareDocumentPosition?function(Y,Z){return !!(Y.compareDocumentPosition(Z)&16)}:function(Y,Z){return Y!==Z&&(Y.contains?Y.contains(Z):true)},W=function(Y){return(Y=(Y?Y.ownerDocument||Y:0).documentElement)?Y.nodeName!=="HTML":false},L=function(Y,Z){var bi=[],bj="",bl;for(Z=Z.nodeType?[Z]:Z;bl=Q.match.PSEUDO.exec(Y);){bj+=bl[0];Y=Y.replace(Q.match.PSEUDO,"")}Y=Q.relative[Y]?Y+"*":Y;bl=0;for(var bk=Z.length;bl<bk;bl++){P(Y,Z[bl],bi)}return P.filter(bj,bi)};m.find=P;m.expr=P.selectors;m.expr[":"]=m.expr.filters;m.unique=P.uniqueSort;m.text=c;m.isXMLDoc=W;m.contains=J})();var y=/Until$/,D=/^(?:parents|prevUntil|prevAll)/,I=/,/;aI=Array.prototype.slice;var aa=function(c,s,w){if(m.isFunction(s)){return m.grep(c,function(F,G){return !!s.call(F,G,F)===w})}else{if(s.nodeType){return m.grep(c,function(F){return F===s===w})}else{if(typeof s==="string"){var A=m.grep(c,function(F){return F.nodeType===1});if(aV.test(s)){return m.filter(s,A,!w)}else{s=m.filter(s,A)}}}}return m.grep(c,function(F){return m.inArray(F,s)>=0===w})};m.fn.extend({find:function(c){for(var s=this.pushStack("","find",c),w=0,F=0,A=this.length;F<A;F++){w=s.length;m.find(c,this[F],s);if(F>0){for(var J=w;J<s.length;J++){for(var G=0;G<w;G++){if(s[G]===s[J]){s.splice(J--,1);break}}}}}return s},has:function(c){var s=m(c);return this.filter(function(){for(var w=0,A=s.length;w<A;w++){if(m.contains(this,s[w])){return true}}})},not:function(c){return this.pushStack(aa(this,c,false),"not",c)},filter:function(c){return this.pushStack(aa(this,c,true),"filter",c)},is:function(c){return !!c&&m.filter(c,this).length>0},closest:function(c,s){if(m.isArray(c)){var w=[],F=this[0],A,J={},G;if(F&&c.length){A=0;for(var L=c.length;A<L;A++){G=c[A];J[G]||(J[G]=m.expr.match.POS.test(G)?m(G,s||this.context):G)}for(;F&&F.ownerDocument&&F!==s;){for(G in J){A=J[G];if(A.jquery?A.index(F)>-1:m(F).is(A)){w.push({selector:G,elem:F});delete J[G]}}F=F.parentNode}}return w}var K=m.expr.match.POS.test(c)?m(c,s||this.context):null;return this.map(function(N,O){for(;O&&O.ownerDocument&&O!==s;){if(K?K.index(O)>-1:m(O).is(c)){return O}O=O.parentNode}return null})},index:function(c){if(!c||typeof c==="string"){return m.inArray(this[0],c?m(c):this.parent().children())}return m.inArray(c.jquery?c[0]:c,this)},add:function(c,s){c=typeof c==="string"?m(c,s||this.context):m.makeArray(c);s=m.merge(this.get(),c);return this.pushStack(aF(c[0])||aF(s[0])?s:m.unique(s))},andSelf:function(){return this.add(this.prevObject)}});m.each({parent:function(c){return(c=c.parentNode)&&c.nodeType!==11?c:null},parents:function(c){return m.dir(c,"parentNode")},parentsUntil:function(c,s,w){return m.dir(c,"parentNode",w)},next:function(c){return m.nth(c,2,"nextSibling")},prev:function(c){return m.nth(c,2,"previousSibling")},nextAll:function(c){return m.dir(c,"nextSibling")},prevAll:function(c){return m.dir(c,"previousSibling")},nextUntil:function(c,s,w){return m.dir(c,"nextSibling",w)},prevUntil:function(c,s,w){return m.dir(c,"previousSibling",w)},siblings:function(c){return m.sibling(c.parentNode.firstChild,c)},children:function(c){return m.sibling(c.firstChild)},contents:function(c){return m.nodeName(c,"iframe")?c.contentDocument||c.contentWindow.document:m.makeArray(c.childNodes)}},function(c,s){m.fn[c]=function(w,F){var A=m.map(this,s,w);y.test(c)||(F=w);if(F&&typeof F==="string"){A=m.filter(F,A)}A=this.length>1?m.unique(A):A;if((this.length>1||I.test(F))&&D.test(c)){A=A.reverse()}return this.pushStack(A,c,aI.call(arguments).join(","))}});m.extend({filter:function(c,s,w){if(w){c=":not("+c+")"}return m.find.matches(c,s)},dir:function(c,s,w){var A=[];for(c=c[s];c&&c.nodeType!==9&&(w===a1||c.nodeType!==1||!m(c).is(w));){c.nodeType===1&&A.push(c);c=c[s]}return A},nth:function(c,s,w){s=s||1;for(var A=0;c;c=c[w]){if(c.nodeType===1&&++A===s){break}}return c},sibling:function(c,s){for(var w=[];c;c=c.nextSibling){c.nodeType===1&&c!==s&&w.push(c)}return w}});var ae=/ jQuery\d+="(?:\d+|null)"/g,aX=/^\s+/,ai=/(<([\w:]+)[^>]*?)\/>/g,S=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,am=/<([\w:]+)/,ab=/<tbody/i,af=/<|&#?\w+;/,aR=/<script|<object|<embed|<option|<style/i,aU=/checked\s*(?:[^=]|=\s*.checked.)/i,ap=function(c,s,w){return S.test(w)?c:s+"></"+w+">"},z={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,"",""]};z.optgroup=z.option;z.tbody=z.tfoot=z.colgroup=z.caption=z.thead;z.th=z.td;if(!m.support.htmlSerialize){z._default=[1,"div<div>","</div>"]}m.fn.extend({text:function(c){if(m.isFunction(c)){return this.each(function(s){var w=m(this);w.text(c.call(this,s,w.text()))})}if(typeof c!=="object"&&c!==a1){return this.empty().append((this[0]&&this[0].ownerDocument||aM).createTextNode(c))}return m.text(this)},wrapAll:function(c){if(m.isFunction(c)){return this.each(function(w){m(this).wrapAll(c.call(this,w))})}if(this[0]){var s=m(c,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&s.insertBefore(this[0]);s.map(function(){for(var w=this;w.firstChild&&w.firstChild.nodeType===1;){w=w.firstChild}return w}).append(this)}return this},wrapInner:function(c){if(m.isFunction(c)){return this.each(function(s){m(this).wrapInner(c.call(this,s))})}return this.each(function(){var s=m(this),w=s.contents();w.length?w.wrapAll(c):s.append(c)})},wrap:function(c){return this.each(function(){m(this).wrapAll(c)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.appendChild(c)})},prepend:function(){return this.domManip(arguments,true,function(c){this.nodeType===1&&this.insertBefore(c,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this)})}else{if(arguments.length){var c=m(arguments[0]);c.push.apply(c,this.toArray());return this.pushStack(c,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(s){this.parentNode.insertBefore(s,this.nextSibling)})}else{if(arguments.length){var c=this.pushStack(this,"after",arguments);c.push.apply(c,m(arguments[0]).toArray());return c}}},remove:function(c,s){for(var w=0,A;(A=this[w])!=null;w++){if(!c||m.filter(c,[A]).length){if(!s&&A.nodeType===1){m.cleanData(A.getElementsByTagName("*"));m.cleanData([A])}A.parentNode&&A.parentNode.removeChild(A)}}return this},empty:function(){for(var c=0,s;(s=this[c])!=null;c++){for(s.nodeType===1&&m.cleanData(s.getElementsByTagName("*"));s.firstChild;){s.removeChild(s.firstChild)}}return this},clone:function(c){var s=this.map(function(){if(!m.support.noCloneEvent&&!m.isXMLDoc(this)){var w=this.outerHTML,A=this.ownerDocument;if(!w){w=A.createElement("div");w.appendChild(this.cloneNode(true));w=w.innerHTML}return m.clean([w.replace(ae,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(aX,"")],A)[0]}else{return this.cloneNode(true)}});if(c===true){aJ(this,s);aJ(this.find("*"),s.find("*"))}return s},html:function(c){if(c===a1){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ae,""):null}else{if(typeof c==="string"&&!aR.test(c)&&(m.support.leadingWhitespace||!aX.test(c))&&!z[(am.exec(c)||["",""])[1].toLowerCase()]){c=c.replace(ai,ap);try{for(var s=0,w=this.length;s<w;s++){if(this[s].nodeType===1){m.cleanData(this[s].getElementsByTagName("*"));this[s].innerHTML=c}}}catch(A){this.empty().append(c)}}else{m.isFunction(c)?this.each(function(F){var J=m(this),G=J.html();J.empty().append(function(){return c.call(this,F,G)})}):this.empty().append(c)}}return this},replaceWith:function(c){if(this[0]&&this[0].parentNode){if(m.isFunction(c)){return this.each(function(s){var w=m(this),A=w.html();w.replaceWith(c.call(this,s,A))})}if(typeof c!=="string"){c=m(c).detach()}return this.each(function(){var s=this.nextSibling,w=this.parentNode;m(this).remove();s?m(s).before(c):m(w).append(c)})}else{return this.pushStack(m(m.isFunction(c)?c():c),"replaceWith",c)}},detach:function(c){return this.remove(c,true)},domManip:function(c,s,w){function F(P){return m.nodeName(P,"table")?P.getElementsByTagName("tbody")[0]||P.appendChild(P.ownerDocument.createElement("tbody")):P}var A,J,G=c[0],N=[],K;if(!m.support.checkClone&&arguments.length===3&&typeof G==="string"&&aU.test(G)){return this.each(function(){m(this).domManip(c,s,w,true)})}if(m.isFunction(G)){return this.each(function(P){var Q=m(this);c[0]=G.call(this,P,s?Q.html():a1);Q.domManip(c,s,w)})}if(this[0]){A=G&&G.parentNode;A=m.support.parentNode&&A&&A.nodeType===11&&A.childNodes.length===this.length?{fragment:A}:aN(c,this,N);K=A.fragment;if(J=K.childNodes.length===1?(K=K.firstChild):K.firstChild){s=s&&m.nodeName(J,"tr");for(var L=0,O=this.length;L<O;L++){w.call(s?F(this[L],J):this[L],L>0||A.cacheable||this.length>1?K.cloneNode(true):K)}}N.length&&m.each(N,aG)}return this}});m.fragments={};m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,s){m.fn[c]=function(w){var F=[];w=m(w);var A=this.length===1&&this[0].parentNode;if(A&&A.nodeType===11&&A.childNodes.length===1&&w.length===1){w[s](this[0]);return this}else{A=0;for(var J=w.length;A<J;A++){var G=(A>0?this.clone(true):this).get();m.fn[s].apply(m(w[A]),G);F=F.concat(G)}return this.pushStack(F,c,w.selector)}}});m.extend({clean:function(c,s,w,F){s=s||aM;if(typeof s.createElement==="undefined"){s=s.ownerDocument||s[0]&&s[0].ownerDocument||aM}for(var A=[],J=0,G;(G=c[J])!=null;J++){if(typeof G==="number"){G+=""}if(G){if(typeof G==="string"&&!af.test(G)){G=s.createTextNode(G)}else{if(typeof G==="string"){G=G.replace(ai,ap);var N=(am.exec(G)||["",""])[1].toLowerCase(),K=z[N]||z._default,L=K[0],O=s.createElement("div");for(O.innerHTML=K[1]+G+K[2];L--;){O=O.lastChild}if(!m.support.tbody){L=ab.test(G);N=N==="table"&&!L?O.firstChild&&O.firstChild.childNodes:K[1]==="<table>"&&!L?O.childNodes:[];for(K=N.length-1;K>=0;--K){m.nodeName(N[K],"tbody")&&!N[K].childNodes.length&&N[K].parentNode.removeChild(N[K])}}!m.support.leadingWhitespace&&aX.test(G)&&O.insertBefore(s.createTextNode(aX.exec(G)[0]),O.firstChild);G=O.childNodes}}if(G.nodeType){A.push(G)}else{A=m.merge(A,G)}}}if(w){for(J=0;A[J];J++){if(F&&m.nodeName(A[J],"script")&&(!A[J].type||A[J].type.toLowerCase()==="text/javascript")){F.push(A[J].parentNode?A[J].parentNode.removeChild(A[J]):A[J])}else{A[J].nodeType===1&&A.splice.apply(A,[J+1,0].concat(m.makeArray(A[J].getElementsByTagName("script"))));w.appendChild(A[J])}}}return A},cleanData:function(c){for(var s,w,F=m.cache,A=m.event.special,J=m.support.deleteExpando,G=0,L;(L=c[G])!=null;G++){if(w=L[m.expando]){s=F[w];if(s.events){for(var K in s.events){A[K]?m.event.remove(L,K):o(L,K,s.handle)}}if(J){delete L[m.expando]}else{L.removeAttribute&&L.removeAttribute(m.expando)}delete F[w]}}}});var aj=/z-?index|font-?weight|opacity|zoom|line-?height/i,au=/alpha\([^)]*\)/,ay=/opacity=([^)]*)/,M=/float/i,U=/-([a-z])/ig,an=/([A-Z])/g,aq=/^-?\d+(?:px)?$/i,av=/^-?\d/,az={position:"absolute",visibility:"hidden",display:"block"},aD=["Left","Right"],aH=["Top","Bottom"],aL=aM.defaultView&&aM.defaultView.getComputedStyle,aC=m.support.cssFloat?"cssFloat":"styleFloat",ad=function(c,s){return s.toUpperCase()};m.fn.css=function(c,s){return a6(this,c,s,true,function(w,F,A){if(A===a1){return m.curCSS(w,F)}if(typeof A==="number"&&!aj.test(F)){A+="px"}m.style(w,F,A)})};m.extend({style:function(c,s,w){if(!c||c.nodeType===3||c.nodeType===8){return a1}if((s==="width"||s==="height")&&parseFloat(w)<0){w=a1}var F=c.style||c,A=w!==a1;if(!m.support.opacity&&s==="opacity"){if(A){F.zoom=1;s=parseInt(w,10)+""==="NaN"?"":"alpha(opacity="+w*100+")";c=F.filter||m.curCSS(c,"filter")||"";F.filter=au.test(c)?c.replace(au,s):s}return F.filter&&F.filter.indexOf("opacity=")>=0?parseFloat(ay.exec(F.filter)[1])/100+"":""}if(M.test(s)){s=aC}s=s.replace(U,ad);if(A){F[s]=w}return F[s]},css:function(c,s,w,F){if(s==="width"||s==="height"){var A,J=s==="width"?aD:aH;function G(){A=s==="width"?c.offsetWidth:c.offsetHeight;F!=="border"&&m.each(J,function(){F||(A-=parseFloat(m.curCSS(c,"padding"+this,true))||0);if(F==="margin"){A+=parseFloat(m.curCSS(c,"margin"+this,true))||0}else{A-=parseFloat(m.curCSS(c,"border"+this+"Width",true))||0}})}c.offsetWidth!==0?G():m.swap(c,az,G);return Math.max(0,Math.round(A))}return m.curCSS(c,s,w)},curCSS:function(c,s,w){var F,A=c.style;if(!m.support.opacity&&s==="opacity"&&c.currentStyle){F=ay.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return F===""?"1":F}if(M.test(s)){s=aC}if(!w&&A&&A[s]){F=A[s]}else{if(aL){if(M.test(s)){s="float"}s=s.replace(an,"-$1").toLowerCase();A=c.ownerDocument.defaultView;if(!A){return null}if(c=A.getComputedStyle(c,null)){F=c.getPropertyValue(s)}if(s==="opacity"&&F===""){F="1"}}else{if(c.currentStyle){w=s.replace(U,ad);F=c.currentStyle[s]||c.currentStyle[w];if(!aq.test(F)&&av.test(F)){s=A.left;var G=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;A.left=w==="fontSize"?"1em":F||0;F=A.pixelLeft+"px";A.left=s;c.runtimeStyle.left=G}}}}return F},swap:function(c,s,w){var F={};for(var A in s){F[A]=c.style[A];c.style[A]=s[A]}w.call(c);for(A in s){c.style[A]=F[A]}}});if(m.expr&&m.expr.filters){m.expr.filters.hidden=function(c){var s=c.offsetWidth,w=c.offsetHeight,A=c.nodeName.toLowerCase()==="tr";return s===0&&w===0&&!A?true:s>0&&w>0&&!A?false:m.curCSS(c,"display")==="none"};m.expr.filters.visible=function(c){return !m.expr.filters.hidden(c)}}var aP=ac(),aT=/<script(.|\s)*?\/script>/gi,aW=/select|textarea/i,a0=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ar=/=\?(&|$)/,ah=/\?/,a5=/(\?|&)_=.*?(&|$)/,a9=/^(\w+:)?\/\/([^\/?#]+)/,bd=/%20/g,bh=m.fn.load;m.fn.extend({load:function(c,s,w){if(typeof c!=="string"){return bh.call(this,c)}else{if(!this.length){return this}}var F=c.indexOf(" ");if(F>=0){var A=c.slice(F,c.length);c=c.slice(0,F)}F="GET";if(s){if(m.isFunction(s)){w=s;s=null}else{if(typeof s==="object"){s=m.param(s,m.ajaxSettings.traditional);F="POST"}}}var G=this;m.ajax({url:c,type:F,dataType:"html",data:s,complete:function(J,K){if(K==="success"||K==="notmodified"){G.html(A?m("<div />").append(J.responseText.replace(aT,"")).find(A):J.responseText)}w&&G.each(w,[J.responseText,K,J])}});return this},serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?m.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||aW.test(this.nodeName)||a0.test(this.type))}).map(function(c,s){c=m(this).val();return c==null?null:m.isArray(c)?m.map(c,function(w){return{name:s.name,value:w}}):{name:s.name,value:c}}).get()}});m.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,s){m.fn[s]=function(w){return this.bind(s,w)}});m.extend({get:function(c,s,w,A){if(m.isFunction(s)){A=A||w;w=s;s=null}return m.ajax({type:"GET",url:c,data:s,success:w,dataType:A})},getScript:function(c,s){return m.get(c,null,s,"script")},getJSON:function(c,s,w){return m.get(c,s,w,"json")},post:function(c,s,w,A){if(m.isFunction(s)){A=A||w;w=s;s={}}return m.ajax({type:"POST",url:c,data:s,success:w,dataType:A})},ajaxSetup:function(c){m.extend(m.ajaxSettings,c)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:d.XMLHttpRequest&&(d.location.protocol!=="file:"||!d.ActiveXObject)?function(){return new d.XMLHttpRequest}:function(){try{return new d.ActiveXObject("Microsoft.XMLHTTP")}catch(c){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(c){function s(){G.success&&G.success.call(R,X,P,bi);G.global&&K("ajaxSuccess",[bi,G])}function F(){G.complete&&G.complete.call(R,bi,P);G.global&&K("ajaxComplete",[bi,G]);G.global&&!--m.active&&m.event.trigger("ajaxStop")}function K(bl,bk){(G.context?m(G.context):m.event).trigger(bl,bk)}var G=m.extend(true,{},m.ajaxSettings,c),Q,P,X,R=c&&c.context||G,W=G.type.toUpperCase();if(G.data&&G.processData&&typeof G.data!=="string"){G.data=m.param(G.data,G.traditional)}if(G.dataType==="jsonp"){if(W==="GET"){ar.test(G.url)||(G.url+=(ah.test(G.url)?"&":"?")+(G.jsonp||"callback")+"=?")}else{if(!G.data||!ar.test(G.data)){G.data=(G.data?G.data+"&":"")+(G.jsonp||"callback")+"=?"}}G.dataType="json"}if(G.dataType==="json"&&(G.data&&ar.test(G.data)||ar.test(G.url))){Q=G.jsonpCallback||"jsonp"+aP++;if(G.data){G.data=(G.data+"").replace(ar,"="+Q+"$1")}G.url=G.url.replace(ar,"="+Q+"$1");G.dataType="script";d[Q]=d[Q]||function(bl){X=bl;s();F();d[Q]=a1;try{delete d[Q]}catch(bk){}bj&&bj.removeChild(A)}}if(G.dataType==="script"&&G.cache===null){G.cache=false}if(G.cache===false&&W==="GET"){var Y=ac(),Z=G.url.replace(a5,"$1_="+Y+"$2");G.url=Z+(Z===G.url?(ah.test(G.url)?"&":"?")+"_="+Y:"")}if(G.data&&W==="GET"){G.url+=(ah.test(G.url)?"&":"?")+G.data}G.global&&!m.active++&&m.event.trigger("ajaxStart");Y=(Y=a9.exec(G.url))&&(Y[1]&&Y[1]!==location.protocol||Y[2]!==location.host);if(G.dataType==="script"&&W==="GET"&&Y){var bj=aM.getElementsByTagName("head")[0]||aM.documentElement,A=aM.createElement("script");A.src=G.url;if(G.scriptCharset){A.charset=G.scriptCharset}if(!Q){var w=false;A.onload=A.onreadystatechange=function(){if(!w&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){w=true;s();F();A.onload=A.onreadystatechange=null;bj&&A.parentNode&&bj.removeChild(A)}}}bj.insertBefore(A,bj.firstChild);return a1}var J=false,bi=G.xhr();if(bi){G.username?bi.open(W,G.url,G.async,G.username,G.password):bi.open(W,G.url,G.async);try{if(G.data||c&&c.contentType){bi.setRequestHeader("Content-Type",G.contentType)}if(G.ifModified){m.lastModified[G.url]&&bi.setRequestHeader("If-Modified-Since",m.lastModified[G.url]);m.etag[G.url]&&bi.setRequestHeader("If-None-Match",m.etag[G.url])}Y||bi.setRequestHeader("X-Requested-With","XMLHttpRequest");bi.setRequestHeader("Accept",G.dataType&&G.accepts[G.dataType]?G.accepts[G.dataType]+", */*":G.accepts._default)}catch(N){}if(G.beforeSend&&G.beforeSend.call(R,bi,G)===false){G.global&&!--m.active&&m.event.trigger("ajaxStop");bi.abort();return false}G.global&&K("ajaxSend",[bi,G]);var L=bi.onreadystatechange=function(bl){if(!bi||bi.readyState===0||bl==="abort"){J||F();J=true;if(bi){bi.onreadystatechange=m.noop}}else{if(!J&&bi&&(bi.readyState===4||bl==="timeout")){J=true;bi.onreadystatechange=m.noop;P=bl==="timeout"?"timeout":!m.httpSuccess(bi)?"error":G.ifModified&&m.httpNotModified(bi,G.url)?"notmodified":"success";var bk;if(P==="success"){try{X=m.httpData(bi,G.dataType,G)}catch(bm){P="parsererror";bk=bm}}if(P==="success"||P==="notmodified"){Q||s()}else{m.handleError(G,bi,P,bk)}F();bl==="timeout"&&bi.abort();if(G.async){bi=null}}}};try{var O=bi.abort;bi.abort=function(){bi&&O.call(bi);L("abort")}}catch(T){}G.async&&G.timeout>0&&setTimeout(function(){bi&&!J&&L("timeout")},G.timeout);try{bi.send(W==="POST"||W==="PUT"||W==="DELETE"?G.data:null)}catch(V){m.handleError(G,bi,null,V);F()}G.async||L();return bi}},handleError:function(c,s,w,A){if(c.error){c.error.call(c.context||c,s,w,A)}if(c.global){(c.context?m(c.context):m.event).trigger("ajaxError",[s,c,A])}},active:0,httpSuccess:function(c){try{return !c.status&&location.protocol==="file:"||c.status>=200&&c.status<300||c.status===304||c.status===1223||c.status===0}catch(s){}return false},httpNotModified:function(c,s){var w=c.getResponseHeader("Last-Modified"),A=c.getResponseHeader("Etag");if(w){m.lastModified[s]=w}if(A){m.etag[s]=A}return c.status===304||c.status===0},httpData:function(c,s,w){var F=c.getResponseHeader("content-type")||"",A=s==="xml"||!s&&F.indexOf("xml")>=0;c=A?c.responseXML:c.responseText;A&&c.documentElement.nodeName==="parsererror"&&m.error("parsererror");if(w&&w.dataFilter){c=w.dataFilter(c,s)}if(typeof c==="string"){if(s==="json"||!s&&F.indexOf("json")>=0){c=m.parseJSON(c)}else{if(s==="script"||!s&&F.indexOf("javascript")>=0){m.globalEval(c)}}}return c},param:function(c,s){function w(J,K){if(m.isArray(K)){m.each(K,function(L,N){s||/\[\]$/.test(J)?F(J,N):w(J+"["+(typeof N==="object"||m.isArray(N)?L:"")+"]",N)})}else{!s&&K!=null&&typeof K==="object"?m.each(K,function(L,N){w(J+"["+L+"]",N)}):F(J,K)}}function F(J,K){K=m.isFunction(K)?K():K;A[A.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}var A=[];if(s===a1){s=m.ajaxSettings.traditional}if(m.isArray(c)||c.jquery){m.each(c,function(){F(this.name,this.value)})}else{for(var G in c){w(G,c[G])}}return A.join("&").replace(bd,"+")}});var al={},h=/toggle|show|hide/,l=/^([+-]=)?([\d+-.]+)(.*)$/,a2,aY=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];m.fn.extend({show:function(c,s){if(c||c===0){return this.animate(ag("show",3),c,s)}else{c=0;for(s=this.length;c<s;c++){var w=m.data(this[c],"olddisplay");this[c].style.display=w||"";if(m.css(this[c],"display")==="none"){w=this[c].nodeName;var F;if(al[w]){F=al[w]}else{var A=m("<"+w+" />").appendTo("body");F=A.css("display");if(F==="none"){F="block"}A.remove();al[w]=F}m.data(this[c],"olddisplay",F)}}c=0;for(s=this.length;c<s;c++){this[c].style.display=m.data(this[c],"olddisplay")||""}return this}},hide:function(c,s){if(c||c===0){return this.animate(ag("hide",3),c,s)}else{c=0;for(s=this.length;c<s;c++){var w=m.data(this[c],"olddisplay");!w&&w!=="none"&&m.data(this[c],"olddisplay",m.css(this[c],"display"))}c=0;for(s=this.length;c<s;c++){this[c].style.display="none"}return this}},_toggle:m.fn.toggle,toggle:function(c,s){var w=typeof c==="boolean";if(m.isFunction(c)&&m.isFunction(s)){this._toggle.apply(this,arguments)}else{c==null||w?this.each(function(){var A=w?c:m(this).is(":hidden");m(this)[A?"show":"hide"]()}):this.animate(ag("toggle",3),c,s)}return this},fadeTo:function(c,s,w){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:s},c,w)},animate:function(c,s,w,F){var A=m.speed(s,w,F);if(m.isEmptyObject(c)){return this.each(A.complete)}return this[A.queue===false?"each":"queue"](function(){var J=m.extend({},A),G,N=this.nodeType===1&&m(this).is(":hidden"),K=this;for(G in c){var L=G.replace(U,ad);if(G!==L){c[L]=c[G];delete c[G];G=L}if(c[G]==="hide"&&N||c[G]==="show"&&!N){return J.complete.call(this)}if((G==="height"||G==="width")&&this.style){J.display=m.css(this,"display");J.overflow=this.style.overflow}if(m.isArray(c[G])){(J.specialEasing=J.specialEasing||{})[G]=c[G][1];c[G]=c[G][0]}}if(J.overflow!=null){this.style.overflow="hidden"}J.curAnim=m.extend({},c);m.each(c,function(R,T){var V=new m.fx(K,J,R);if(h.test(T)){V[T==="toggle"?N?"show":"hide":T](c)}else{var P=l.exec(T),O=V.cur(true)||0;if(P){T=parseFloat(P[2]);var Q=P[3]||"px";if(Q!=="px"){K.style[R]=(T||1)+Q;O=(T||1)/V.cur(true)*O;K.style[R]=O+Q}if(P[1]){T=(P[1]==="-="?-1:1)*T+O}V.custom(O,T,Q)}else{V.custom(O,T,"")}}});return true})},stop:function(c,s){var w=m.timers;c&&this.queue([]);this.each(function(){for(var A=w.length-1;A>=0;A--){if(w[A].elem===this){s&&w[A](true);w.splice(A,1)}}});s||this.dequeue();return this}});m.each({slideDown:ag("show",1),slideUp:ag("hide",1),slideToggle:ag("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,s){m.fn[c]=function(w,A){return this.animate(s,w,A)}});m.extend({speed:function(c,s,w){var A=c&&typeof c==="object"?c:{complete:w||!w&&s||m.isFunction(c)&&c,duration:c,easing:w&&s||s&&!m.isFunction(s)&&s};A.duration=m.fx.off?0:typeof A.duration==="number"?A.duration:m.fx.speeds[A.duration]||m.fx.speeds._default;A.old=A.complete;A.complete=function(){A.queue!==false&&m(this).dequeue();m.isFunction(A.old)&&A.old.call(this)};return A},easing:{linear:function(c,s,w,A){return w+A*c},swing:function(c,s,w,A){return(-Math.cos(c*Math.PI)/2+0.5)*A+w}},timers:[],fx:function(c,s,w){this.options=s;this.elem=c;this.prop=w;if(!s.orig){s.orig={}}}});m.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(m.fx.step[this.prop]||m.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(c){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}return(c=parseFloat(m.css(this.elem,this.prop,c)))&&c>-10000?c:parseFloat(m.curCSS(this.elem,this.prop))||0},custom:function(c,s,w){function F(G){return A.step(G)}this.startTime=ac();this.start=c;this.end=s;this.unit=w||this.unit||"px";this.now=this.start;this.pos=this.state=0;var A=this;F.elem=this.elem;if(F()&&m.timers.push(F)&&!a2){a2=setInterval(m.fx.tick,13)}},show:function(){this.options.orig[this.prop]=m.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());m(this.elem).show()},hide:function(){this.options.orig[this.prop]=m.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var s=ac(),w=true;if(c||s>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){w=false}}if(w){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;c=m.data(this.elem,"olddisplay");this.elem.style.display=c?c:this.options.display;if(m.css(this.elem,"display")==="none"){this.elem.style.display="block"}}this.options.hide&&m(this.elem).hide();if(this.options.hide||this.options.show){for(var A in this.options.curAnim){m.style(this.elem,A,this.options.orig[A])}}this.options.complete.call(this.elem)}return false}else{A=s-this.startTime;this.state=A/this.options.duration;c=this.options.easing||(m.easing.swing?"swing":"linear");this.pos=m.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,A,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};m.extend(m.fx,{tick:function(){for(var c=m.timers,s=0;s<c.length;s++){c[s]()||c.splice(s--,1)}c.length||m.fx.stop()},stop:function(){clearInterval(a2);a2=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(c){m.style(c.elem,"opacity",c.now)},_default:function(c){if(c.elem.style&&c.elem.style[c.prop]!=null){c.elem.style[c.prop]=(c.prop==="width"||c.prop==="height"?Math.max(0,c.now):c.now)+c.unit}else{c.elem[c.prop]=c.now}}}});if(m.expr&&m.expr.filters){m.expr.filters.animated=function(c){return m.grep(m.timers,function(s){return c===s.elem}).length}}m.fn.offset="getBoundingClientRect" in aM.documentElement?function(c){var s=this[0];if(c){return this.each(function(F){m.offset.setOffset(this,c,F)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return m.offset.bodyOffset(s)}var w=s.getBoundingClientRect(),A=s.ownerDocument;s=A.body;A=A.documentElement;return{top:w.top+(self.pageYOffset||m.support.boxModel&&A.scrollTop||s.scrollTop)-(A.clientTop||s.clientTop||0),left:w.left+(self.pageXOffset||m.support.boxModel&&A.scrollLeft||s.scrollLeft)-(A.clientLeft||s.clientLeft||0)}}:function(c){var s=this[0];if(c){return this.each(function(O){m.offset.setOffset(this,c,O)})}if(!s||!s.ownerDocument){return null}if(s===s.ownerDocument.body){return m.offset.bodyOffset(s)}m.offset.initialize();var w=s.offsetParent,F=s,A=s.ownerDocument,J,G=A.documentElement,N=A.body;F=(A=A.defaultView)?A.getComputedStyle(s,null):s.currentStyle;for(var K=s.offsetTop,L=s.offsetLeft;(s=s.parentNode)&&s!==N&&s!==G;){if(m.offset.supportsFixedPosition&&F.position==="fixed"){break}J=A?A.getComputedStyle(s,null):s.currentStyle;K-=s.scrollTop;L-=s.scrollLeft;if(s===w){K+=s.offsetTop;L+=s.offsetLeft;if(m.offset.doesNotAddBorder&&!(m.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(s.nodeName))){K+=parseFloat(J.borderTopWidth)||0;L+=parseFloat(J.borderLeftWidth)||0}F=w;w=s.offsetParent}if(m.offset.subtractsBorderForOverflowNotVisible&&J.overflow!=="visible"){K+=parseFloat(J.borderTopWidth)||0;L+=parseFloat(J.borderLeftWidth)||0}F=J}if(F.position==="relative"||F.position==="static"){K+=N.offsetTop;L+=N.offsetLeft}if(m.offset.supportsFixedPosition&&F.position==="fixed"){K+=Math.max(G.scrollTop,N.scrollTop);L+=Math.max(G.scrollLeft,N.scrollLeft)}return{top:K,left:L}};m.offset={initialize:function(){var c=aM.body,s=aM.createElement("div"),w,F,A,G=parseFloat(m.curCSS(c,"marginTop",true))||0;m.extend(s.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});s.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>";c.insertBefore(s,c.firstChild);w=s.firstChild;F=w.firstChild;A=w.nextSibling.firstChild.firstChild;this.doesNotAddBorder=F.offsetTop!==5;this.doesAddBorderForTableAndCells=A.offsetTop===5;F.style.position="fixed";F.style.top="20px";this.supportsFixedPosition=F.offsetTop===20||F.offsetTop===15;F.style.position=F.style.top="";w.style.overflow="hidden";w.style.position="relative";this.subtractsBorderForOverflowNotVisible=F.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=c.offsetTop!==G;c.removeChild(s);m.offset.initialize=m.noop},bodyOffset:function(c){var s=c.offsetTop,w=c.offsetLeft;m.offset.initialize();if(m.offset.doesNotIncludeMarginInBodyOffset){s+=parseFloat(m.curCSS(c,"marginTop",true))||0;w+=parseFloat(m.curCSS(c,"marginLeft",true))||0}return{top:s,left:w}},setOffset:function(c,s,w){if(/static/.test(m.curCSS(c,"position"))){c.style.position="relative"}var F=m(c),A=F.offset(),J=parseInt(m.curCSS(c,"top",true),10)||0,G=parseInt(m.curCSS(c,"left",true),10)||0;if(m.isFunction(s)){s=s.call(c,w,A)}w={top:s.top-A.top+J,left:s.left-A.left+G};"using" in s?s.using.call(c,w):F.css(w)}};m.fn.extend({position:function(){if(!this[0]){return null}var c=this[0],s=this.offsetParent(),w=this.offset(),A=/^body|html$/i.test(s[0].nodeName)?{top:0,left:0}:s.offset();w.top-=parseFloat(m.curCSS(c,"marginTop",true))||0;w.left-=parseFloat(m.curCSS(c,"marginLeft",true))||0;A.top+=parseFloat(m.curCSS(s[0],"borderTopWidth",true))||0;A.left+=parseFloat(m.curCSS(s[0],"borderLeftWidth",true))||0;return{top:w.top-A.top,left:w.left-A.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||aM.body;c&&!/^body|html$/i.test(c.nodeName)&&m.css(c,"position")==="static";){c=c.offsetParent}return c})}});m.each(["Left","Top"],function(c,s){var w="scroll"+s;m.fn[w]=function(F){var A=this[0],G;if(!A){return null}if(F!==a1){return this.each(function(){if(G=a3(this)){G.scrollTo(!c?F:m(G).scrollLeft(),c?F:m(G).scrollTop())}else{this[w]=F}})}else{return(G=a3(A))?"pageXOffset" in G?G[c?"pageYOffset":"pageXOffset"]:m.support.boxModel&&G.document.documentElement[w]||G.document.body[w]:A[w]}}});m.each(["Height","Width"],function(c,s){var w=s.toLowerCase();m.fn["inner"+s]=function(){return this[0]?m.css(this[0],w,false,"padding"):null};m.fn["outer"+s]=function(A){return this[0]?m.css(this[0],w,false,A?"margin":"border"):null};m.fn[w]=function(F){var A=this[0];if(!A){return F==null?null:this}if(m.isFunction(F)){return this.each(function(J){var G=m(this);G[w](F.call(this,J,G[w]()))})}return"scrollTo" in A&&A.document?A.document.compatMode==="CSS1Compat"&&A.document.documentElement["client"+s]||A.document.body["client"+s]:A.nodeType===9?Math.max(A.documentElement["client"+s],A.body["scroll"+s],A.documentElement["scroll"+s],A.body["offset"+s],A.documentElement["offset"+s]):F===a1?m.css(A,w):this.css(w,typeof F==="string"?F:F+"px")}});d.jQuery=d.$=m})(window);(function(){function b(e,f){if(f){for(var g in f){if(f.hasOwnProperty(g)){e[g]=f[g]}}}return e}function r(e,f){var g=[];for(var i in e){if(e.hasOwnProperty(i)){g[i]=f(e[i])}}return g}function s(e,f,g){if(a.isSupported(f.version)){e.innerHTML=a.getHTML(f,g)}else{if(f.expressInstall&&a.isSupported([6,65])){e.innerHTML=a.getHTML(b(f,{src:f.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!e.innerHTML.replace(/\s/g,"")){e.innerHTML="<h2>Flash version "+f.version+" or greater is required</h2><h3>"+(c[0]>0?"Your version is "+c:"You have no flash plugin installed")+"</h3>"+(e.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+q+"'>here</a></p>");if(e.tagName=="A"){e.onclick=function(){location.href=q}}}if(f.onFail){var i=f.onFail.call(this);if(typeof i=="string"){e.innerHTML=i}}}}if(d){window[f.id]=document.getElementById(f.id)}b(this,{getRoot:function(){return e},getOptions:function(){return f},getConf:function(){return g},getApi:function(){return e.firstChild}})}var d=document.all,q="http://www.adobe.com/go/getflashplayer",t=typeof jQuery=="function",u=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,h={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};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}});window.flashembed=function(e,f,g){if(typeof e=="string"){e=document.getElementById(e.replace("#",""))}if(e){if(typeof f=="string"){f={src:f}}return new s(e,b(b({},h),f),g)}};var a=b(window.flashembed,{conf:h,getVersion:function(){var e,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(g){try{f=(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"))&&e.GetVariable("$version")}catch(i){try{f=(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"))&&e.GetVariable("$version")}catch(j){}}}return(f=u.exec(f))?[f[1],f[3]]:[0,0]},asString:function(e){if(e===null||e===undefined){return null}var f=typeof e;if(f=="object"&&e.push){f="array"}switch(f){case"string":e=e.replace(new RegExp('(["\\\\])',"g"),"\\$1");e=e.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+e+'"';case"array":return"["+r(e,function(i){return a.asString(i)}).join(",")+"]";case"function":return'"function()"';case"object":f=[];for(var g in e){e.hasOwnProperty(g)&&f.push('"'+g+'":'+a.asString(e[g]))}return"{"+f.join(",")+"}"}return String(e).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(e,f){e=b({},e);var g='<object width="'+e.width+'" height="'+e.height+'" id="'+e.id+'" name="'+e.id+'"';if(e.cachebusting){e.src+=(e.src.indexOf("?")!=-1?"&":"?")+Math.random()}g+=e.w3c||!d?' data="'+e.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';g+=">";if(e.w3c||d){g+='<param name="movie" value="'+e.src+'" />'}e.width=e.height=e.id=e.w3c=e.src=null;e.onFail=e.version=e.expressInstall=null;for(var i in e){if(e[i]){g+='<param name="'+i+'" value="'+e[i]+'" />'}}e="";if(f){for(var j in f){if(f[j]){i=f[j];e+=j+"="+(/function|object/.test(typeof i)?a.asString(i):i)+"&"}}e=e.slice(0,-1);g+='<param name="flashvars" value=\''+e+"' />"}g+="</object>";return g},isSupported:function(e){return c[0]>e[0]||c[0]==e[0]&&c[1]>=e[1]}}),c=a.getVersion();if(t){jQuery.tools=jQuery.tools||{version:"1.2.5"};jQuery.tools.flashembed={conf:h};jQuery.fn.flashembed=function(e,f){return this.each(function(){$(this).data("flashembed",flashembed(this,e,f))})}}})();(function(a){function k(d){if(d){var b=c.contentWindow.document;b.open().close();b.location.hash=d}}var j,c,e,l;a.tools=a.tools||{version:"1.2.5"};a.tools.history={init:function(b){if(!l){if(a.browser.msie&&a.browser.version<"8"){if(!c){c=a("<iframe/>").attr("src","javascript:false;").hide().get(0);a("body").append(c);setInterval(function(){var d=c.contentWindow.document;d=d.location.hash;j!==d&&a.event.trigger("hash",d)},100);k(location.hash||"#")}}else{setInterval(function(){var d=location.hash;d!==j&&a.event.trigger("hash",d)},100)}e=!e?b:e.add(b);b.click(function(d){var f=a(this).attr("href");c&&k(f);if(f.slice(0,1)!="#"){location.href="#"+f;return d.preventDefault()}});l=true}}};a(window).bind("hash",function(d,b){b?e.filter(function(){var f=a(this).attr("href");return f==b||f==b.replace("#","")}).trigger("history",[b]):e.eq(0).trigger("history",[b]);j=b});a.fn.history=function(b){a.tools.history.init(this);return this.bind("history",b)}})(jQuery);(function(a){function r(){if(a.browser.msie){var b=a(document).height(),c=a(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b-c<20?c:b]}return[a(document).width(),a(document).height()]}function n(b){if(b){return b.call(a.mask)}}a.tools=a.tools||{version:"1.2.5"};var s;s=a.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};var d,o,f,m,q;a.mask={load:function(b,c){if(f){return this}if(typeof b=="string"){b={color:b}}b=b||m;m=b=a.extend(a.extend({},s.conf),b);d=a("#"+b.maskId);if(!d.length){d=a("<div/>").attr("id",b.maskId);a("body").append(d)}var e=r();d.css({position:"absolute",top:0,left:0,width:e[0],height:e[1],display:"none",opacity:b.startOpacity,zIndex:b.zIndex});b.color&&d.css("backgroundColor",b.color);if(n(b.onBeforeLoad)===false){return this}b.closeOnEsc&&a(document).bind("keydown.mask",function(g){g.keyCode==27&&a.mask.close(g)});b.closeOnClick&&d.bind("click.mask",function(g){a.mask.close(g)});a(window).bind("resize.mask",function(){a.mask.fit()});if(c&&c.length){q=c.eq(0).css("zIndex");a.each(c,function(){var g=a(this);/relative|absolute|fixed/i.test(g.css("position"))||g.css("position","relative")});o=c.css({zIndex:Math.max(b.zIndex+1,q=="auto"?0:q)})}d.css({display:"block"}).fadeTo(b.loadSpeed,b.opacity,function(){a.mask.fit();n(b.onLoad);f="full"});f=true;return this},close:function(){if(f){if(n(m.onBeforeClose)===false){return this}d.fadeOut(m.closeSpeed,function(){n(m.onClose);o&&o.css({zIndex:q});f=false});a(document).unbind("keydown.mask");d.unbind("click.mask");a(window).unbind("resize.mask")}return this},fit:function(){if(f){var b=r();d.css({width:b[0],height:b[1]})}},getMask:function(){return d},isLoaded:function(b){return b?f=="full":f},getConf:function(){return m},getExposed:function(){return o}};a.fn.mask=function(b){a.mask.load(b);return this};a.fn.expose=function(b){a.mask.load(b,this);return this}})(jQuery);(function(a){function e(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;break}b.type="wheel";return a.event.handle.call(this,b,b.delta)}a.fn.mousewheel=function(b){return this[b?"bind":"trigger"]("wheel",b)};a.event.special.wheel={setup:function(){a.event.add(this,f,e,{})},teardown:function(){a.event.remove(this,f,e)}};var f=!a.browser.mozilla?"mousewheel":"DOMMouseScroll"+(a.browser.version<"1.9"?" mousemove":"")})(jQuery);(function(a){function e(g,f,c){var k=this,q=g.add(this),m=g.find(c.tabs),n=f.jquery?f:g.children(f),o;m.length||(m=g.children());n.length||(n=g.parent().find(f));n.length||(n=a(f));a.extend(this,{click:function(h,i){var j=m.eq(h);if(typeof h=="string"&&h.replace("#","")){j=m.filter("[href*="+h.replace("#","")+"]");h=Math.max(m.index(j),0)}if(c.rotate){var l=m.length-1;if(h<0){return k.click(l,i)}if(h>l){return k.click(0,i)}}if(!j.length){if(o>=0){return k}h=c.initialIndex;j=m.eq(h)}if(h===o){return k}i=i||a.Event();i.type="onBeforeClick";q.trigger(i,[h]);if(!i.isDefaultPrevented()){d[c.effect].call(k,h,function(){i.type="onClick";q.trigger(i,[h])});o=h;m.removeClass(c.current);j.addClass(c.current);return k}},getConf:function(){return c},getTabs:function(){return m},getPanes:function(){return n},getCurrentPane:function(){return n.eq(o)},getCurrentTab:function(){return m.eq(o)},getIndex:function(){return o},next:function(){return k.click(o+1)},prev:function(){return k.click(o-1)},destroy:function(){m.unbind(c.event).removeClass(c.current);n.find("a[href^=#]").unbind("click.T");return k}});a.each("onBeforeClick,onClick".split(","),function(h,i){a.isFunction(c[i])&&a(k).bind(i,c[i]);k[i]=function(j){j&&a(k).bind(i,j);return k}});if(c.history&&a.fn.history){a.tools.history.init(m);c.event="history"}m.each(function(h){a(this).bind(c.event,function(i){k.click(h,i);return i.preventDefault()})});n.find("a[href^=#]").bind("click.T",function(h){k.click(a(this).attr("href"),h)});if(location.hash&&c.tabs=="a"&&g.find("[href="+location.hash+"]").length){k.click(location.hash)}else{if(c.initialIndex===0||c.initialIndex>0){k.click(c.initialIndex)}}}a.tools=a.tools||{version:"1.2.5"};a.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(f,c){d[f]=c}};var d={"default":function(f,c){this.getPanes().hide().eq(f).show();c.call()},fade:function(g,f){var c=this.getConf(),h=c.fadeOutSpeed,i=this.getPanes();h?i.fadeOut(h):i.hide();i.eq(g).fadeIn(c.fadeInSpeed,f)},slide:function(f,c){this.getPanes().slideUp(200);this.getPanes().eq(f).slideDown(400,c)},ajax:function(f,c){this.getPanes().eq(0).load(this.getTabs().eq(f).attr("href"),c)}},b;a.tools.tabs.addEffect("horizontal",function(f,c){b||(b=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){a(this).hide()});this.getPanes().eq(f).animate({width:b},function(){a(this).show();c.call()})});a.fn.tabs=function(g,f){var c=this.data("tabs");if(c){c.destroy();this.removeData("tabs")}if(a.isFunction(f)){f={onBeforeClick:f}}f=a.extend({},a.tools.tabs.conf,f);this.each(function(){c=new e(a(this),g,f);a(this).data("tabs",c)});return f.api?c:this}})(jQuery);(function(a){function d(o,c){function v(h){var g=a(h);return g.length<2?g:o.parent().find(h)}var e=this,r=o.add(this),f=o.data("tabs"),q,s=true,w=v(c.next).click(function(){f.next()}),t=v(c.prev).click(function(){f.prev()});a.extend(e,{getTabs:function(){return f},getConf:function(){return c},play:function(){if(q){return e}var g=a.Event("onBeforePlay");r.trigger(g);if(g.isDefaultPrevented()){return e}q=setInterval(f.next,c.interval);s=false;r.trigger("onPlay");return e},pause:function(){if(!q){return e}var g=a.Event("onBeforePause");r.trigger(g);if(g.isDefaultPrevented()){return e}q=clearInterval(q);r.trigger("onPause");return e},stop:function(){e.pause();s=true}});a.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(h,g){a.isFunction(c[g])&&a(e).bind(g,c[g]);e[g]=function(i){return a(e).bind(g,i)}});c.autopause&&f.getTabs().add(w).add(t).add(f.getPanes()).hover(e.pause,function(){s||e.play()});c.autoplay&&e.play();c.clickable&&f.getPanes().click(function(){f.next()});if(!f.getConf().rotate){var u=c.disabledClass;f.getIndex()||t.addClass(u);f.onBeforeClick(function(h,g){t.toggleClass(u,!g);w.toggleClass(u,g==f.getTabs().length-1)})}}var b;b=a.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3000,clickable:true,api:false}};a.fn.slideshow=function(e){var c=this.data("slideshow");if(c){return c}e=a.extend({},b.conf,e);this.each(function(){c=new d(a(this),e);a(this).data("slideshow",c)});return e.api?c:this}})(jQuery);(function(a){function c(e,f,g){var l=g.relative?e.position().top:e.offset().top,k=g.relative?e.position().left:e.offset().left,m=g.position[0];l-=f.outerHeight()-g.offset[0];k+=e.outerWidth()+g.offset[1];if(/iPad/i.test(navigator.userAgent)){l-=a(window).scrollTop()}var n=f.outerHeight()+e.outerHeight();if(m=="center"){l+=n/2}if(m=="bottom"){l+=n}m=g.position[1];e=f.outerWidth()+e.outerWidth();if(m=="center"){k-=e/2}if(m=="left"){k-=e}return{top:l,left:k}}function d(e,f){var g=this,o=e.add(g),n,u=0,w=0,z=e.attr("title"),A=e.attr("data-tooltip"),B=b[f.effect],y,C=e.is(":input"),E=C&&e.is(":checkbox, :radio, select, :button, :submit"),D=e.attr("type"),x=f.events[D]||f.events[C?E?"widget":"input":"def"];if(!B){throw'Nonexistent effect "'+f.effect+'"'}x=x.split(/,\s*/);if(x.length!=2){throw"Tooltip: bad events configuration for "+D}e.bind(x[0],function(h){clearTimeout(u);if(f.predelay){w=setTimeout(function(){g.show(h)},f.predelay)}else{g.show(h)}}).bind(x[1],function(h){clearTimeout(w);if(f.delay){u=setTimeout(function(){g.hide(h)},f.delay)}else{g.hide(h)}});if(z&&f.cancelDefault){e.removeAttr("title");e.data("title",z)}a.extend(g,{show:function(h){if(!n){if(A){n=a(A)}else{if(f.tip){n=a(f.tip).eq(0)}else{if(z){n=a(f.layout).addClass(f.tipClass).appendTo(document.body).hide().append(z)}else{n=e.next();n.length||(n=e.parent().next())}}}if(!n.length){throw"Cannot find tooltip for "+e}}if(g.isShown()){return g}n.stop(true,true);var i=c(e,n,f);f.tip&&n.html(e.data("title"));h=h||a.Event();h.type="onBeforeShow";o.trigger(h,[i]);if(h.isDefaultPrevented()){return g}i=c(e,n,f);n.css({position:"absolute",top:i.top,left:i.left});y=true;B[0].call(g,function(){h.type="onShow";y="full";o.trigger(h)});i=f.events.tooltip.split(/,\s*/);if(!n.data("__set")){n.bind(i[0],function(){clearTimeout(u);clearTimeout(w)});i[1]&&!e.is("input:not(:checkbox, :radio), textarea")&&n.bind(i[1],function(j){j.relatedTarget!=e[0]&&e.trigger(x[1].split(" ")[0])});n.data("__set",true)}return g},hide:function(h){if(!n||!g.isShown()){return g}h=h||a.Event();h.type="onBeforeHide";o.trigger(h);if(!h.isDefaultPrevented()){y=false;b[f.effect][1].call(g,function(){h.type="onHide";o.trigger(h)});return g}},isShown:function(h){return h?y=="full":y},getConf:function(){return f},getTip:function(){return n},getTrigger:function(){return e}});a.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(h,i){a.isFunction(f[i])&&a(g).bind(i,f[i]);g[i]=function(j){j&&a(g).bind(i,j);return g}})}a.tools=a.tools||{version:"1.2.5"};a.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(e,f,g){b[e]=[f,g]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip();f=f.opacity;f<1&&g.css({opacity:f});g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){var f=this.getConf();this.getTip().fadeTo(f.fadeInSpeed,f.opacity,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};a.fn.tooltip=function(e){var f=this.data("tooltip");if(f){return f}e=a.extend(true,{},a.tools.tooltip.conf,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}this.each(function(){f=new d(a(this),e);a(this).data("tooltip",f)});return e.api?f:this}})(jQuery);(function(a){var c=a.tools.tooltip;a.extend(c.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!a.browser.msie});var b={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};c.addEffect("slide",function(j){var d=this.getConf(),i=this.getTip(),e=d.slideFade?{opacity:d.opacity}:{},h=b[d.direction]||b.up;e[h[1]]=h[0]+"="+d.slideOffset;d.slideFade&&i.css({opacity:0});i.show().animate(e,d.slideInSpeed,j)},function(k){var d=this.getConf(),j=d.slideOffset,e=d.slideFade?{opacity:0}:{},i=b[d.direction]||b.up,l=""+i[0];if(d.bounce){l=l=="+"?"-":"+"}e[i[1]]=l+"="+j;this.getTip().animate(e,d.slideOutSpeed,function(){a(this).hide();k.call()})})})(jQuery);(function(a){function c(e){var f=a(window),g=f.width()+f.scrollLeft(),i=f.height()+f.scrollTop();return[e.offset().top<=f.scrollTop(),g<=e.offset().left+e.width(),i<=e.offset().top+e.height(),f.scrollLeft()>=e.offset().left]}function d(e){for(var f=e.length;f--;){if(e[f]){return false}}return true}var b=a.tools.tooltip;b.dynamic={conf:{classNames:"top right bottom left"}};a.fn.dynamic=function(e){if(typeof e=="number"){e={speed:e}}e=a.extend({},b.dynamic.conf,e);var f=e.classNames.split(/\s/),g;this.each(function(){var i=a(this).tooltip().onBeforeShow(function(j,k){j=this.getTip();var h=this.getConf();g||(g=[h.position[0],h.position[1],h.offset[0],h.offset[1],a.extend({},h)]);a.extend(h,g[4]);h.position=[g[0],g[1]];h.offset=[g[2],g[3]];j.css({visibility:"hidden",position:"absolute",top:k.top,left:k.left}).show();k=c(j);if(!d(k)){if(k[2]){a.extend(h,e.top);h.position[0]="top";j.addClass(f[0])}if(k[3]){a.extend(h,e.right);h.position[1]="right";j.addClass(f[1])}if(k[0]){a.extend(h,e.bottom);h.position[0]="bottom";j.addClass(f[2])}if(k[1]){a.extend(h,e.left);h.position[1]="left";j.addClass(f[3])}if(k[0]||k[2]){h.offset[0]*=-1}if(k[1]||k[3]){h.offset[1]*=-1}}j.css({visibility:"visible"}).hide()});i.onBeforeShow(function(){var h=this.getConf();this.getTip();setTimeout(function(){h.position=[g[0],g[1]];h.offset=[g[2],g[3]]},0)});i.onHide(function(){var h=this.getTip();h.removeClass(e.classNames)});ret=i});return e.api?ret:this}})(jQuery);(function(a){function c(h,g){var e=a(g);return e.length<2?e:h.parent().find(g)}function d(i,h){var e=this,w=i.add(e),k=i.children(),u=0,r=h.vertical;b||(b=e);if(k.length>1){k=a(h.items,i)}a.extend(e,{getConf:function(){return h},getIndex:function(){return u},getSize:function(){return e.getItems().size()},getNaviButtons:function(){return x.add(y)},getRoot:function(){return i},getItemWrap:function(){return k},getItems:function(){return k.children(h.item).not("."+h.clonedClass)},move:function(f,g){return e.seekTo(u+f,g)},next:function(f){return e.move(1,f)},prev:function(f){return e.move(-1,f)},begin:function(f){return e.seekTo(0,f)},end:function(f){return e.seekTo(e.getSize()-1,f)},focus:function(){return b=e},addItem:function(f){f=a(f);if(h.circular){k.children("."+h.clonedClass+":last").before(f);k.children("."+h.clonedClass+":first").replaceWith(f.clone().addClass(h.clonedClass))}else{k.append(f)}w.trigger("onAddItem",[f]);return e},seekTo:function(f,g,j){f.jquery||(f*=1);if(h.circular&&f===0&&u==-1&&g!==0){return e}if(!h.circular&&f<0||f>e.getSize()||f<-1){return e}var l=f;if(f.jquery){f=e.getItems().index(f)}else{l=e.getItems().eq(f)}var m=a.Event("onBeforeSeek");if(!j){w.trigger(m,[f,g]);if(m.isDefaultPrevented()||!l.length){return e}}l=r?{top:-l.position().top}:{left:-l.position().left};u=f;b=e;if(g===undefined){g=h.speed}k.animate(l,g,h.easing,j||function(){w.trigger("onSeek",[f])});return e}});a.each(["onBeforeSeek","onSeek","onAddItem"],function(f,g){a.isFunction(h[g])&&a(e).bind(g,h[g]);e[g]=function(j){j&&a(e).bind(g,j);return e}});if(h.circular){var z=e.getItems().slice(-1).clone().prependTo(k),A=e.getItems().eq(1).clone().appendTo(k);z.add(A).addClass(h.clonedClass);e.onBeforeSeek(function(f,g,j){if(!f.isDefaultPrevented()){if(g==-1){e.seekTo(z,j,function(){e.end(0)});return f.preventDefault()}else{g==e.getSize()&&e.seekTo(A,j,function(){e.begin(0)})}}});e.seekTo(0,0,function(){})}var x=c(i,h.prev).click(function(){e.prev()}),y=c(i,h.next).click(function(){e.next()});if(!h.circular&&e.getSize()>1){e.onBeforeSeek(function(f,g){setTimeout(function(){if(!f.isDefaultPrevented()){x.toggleClass(h.disabledClass,g<=0);y.toggleClass(h.disabledClass,g>=e.getSize()-1)}},1)});h.initialIndex||x.addClass(h.disabledClass)}h.mousewheel&&a.fn.mousewheel&&i.mousewheel(function(f,g){if(h.mousewheel){e.move(g<0?1:-1,h.wheelSpeed||50);return false}});if(h.touch){var v={};k[0].ontouchstart=function(f){f=f.touches[0];v.x=f.clientX;v.y=f.clientY};k[0].ontouchmove=function(f){if(f.touches.length==1&&!k.is(":animated")){var g=f.touches[0],j=v.x-g.clientX;g=v.y-g.clientY;e[r&&g>0||!r&&j>0?"next":"prev"]();f.preventDefault()}}}h.keyboard&&a(document).bind("keydown.scrollable",function(f){if(!(!h.keyboard||f.altKey||f.ctrlKey||a(f.target).is(":input"))){if(!(h.keyboard!="static"&&b!=e)){var g=f.keyCode;if(r&&(g==38||g==40)){e.move(g==38?-1:1);return f.preventDefault()}if(!r&&(g==37||g==39)){e.move(g==37?-1:1);return f.preventDefault()}}}});h.initialIndex&&e.seekTo(h.initialIndex,0,function(){})}a.tools=a.tools||{version:"1.2.5"};a.tools.scrollable={conf:{activeClass:"active",circular:false,clonedClass:"cloned",disabledClass:"disabled",easing:"swing",initialIndex:0,item:null,items:".items",keyboard:true,mousewheel:false,next:".next",prev:".prev",speed:400,vertical:false,touch:true,wheelSpeed:0}};var b;a.fn.scrollable=function(g){var e=this.data("scrollable");if(e){return e}g=a.extend({},a.tools.scrollable.conf,g);this.each(function(){e=new d(a(this),g);a(this).data("scrollable",e)});return g.api?e:this}})(jQuery);(function(a){var c=a.tools.scrollable;c.autoscroll={conf:{autoplay:true,interval:3000,autopause:true}};a.fn.autoscroll=function(b){if(typeof b=="number"){b={interval:b}}var e=a.extend({},c.autoscroll.conf,b),f;this.each(function(){var d=a(this).data("scrollable");if(d){f=d}var g,i=true;d.play=function(){if(!g){i=false;g=setInterval(function(){d.next()},e.interval)}};d.pause=function(){g=clearInterval(g)};d.stop=function(){d.pause();i=true};e.autopause&&d.getRoot().add(d.getNaviButtons()).hover(d.pause,d.play);e.autoplay&&d.play()});return e.api?f:this}})(jQuery);(function(a){function c(d,e){var f=a(e);return f.length<2?f:d.parent().find(e)}var b=a.tools.scrollable;b.navigator={conf:{navi:".navi",naviItem:null,activeClass:"active",indexed:false,idPrefix:null,history:false}};a.fn.navigator=function(d){if(typeof d=="string"){d={navi:d}}d=a.extend({},b.navigator.conf,d);var e;this.each(function(){function m(f,h,j){g.seekTo(h);if(r){if(location.hash){location.hash=f.attr("href").replace("#","")}}else{return j.preventDefault()}}function i(){return s.find(d.naviItem||"> *")}function u(f){var h=a("<"+(d.naviItem||"a")+"/>").click(function(j){m(a(this),f,j)}).attr("href","#"+f);f===0&&h.addClass(t);d.indexed&&h.text(f+1);d.idPrefix&&h.attr("id",d.idPrefix+f);return h.appendTo(s)}function v(f,h){f=i().eq(h.replace("#",""));f.length||(f=i().filter("[href="+h+"]"));f.click()}var g=a(this).data("scrollable"),s=d.navi.jquery?d.navi:c(g.getRoot(),d.navi),w=g.getNaviButtons(),t=d.activeClass,r=d.history&&a.fn.history;if(g){e=g}g.getNaviButtons=function(){return w.add(s)};i().length?i().each(function(f){a(this).click(function(h){m(a(this),f,h)})}):a.each(g.getItems(),function(f){u(f)});g.onBeforeSeek(function(f,h){setTimeout(function(){if(!f.isDefaultPrevented()){var j=i().eq(h);!f.isDefaultPrevented()&&j.length&&i().removeClass(t).eq(h).addClass(t)}},1)});g.onAddItem(function(f,h){h=u(g.getItems().index(h));r&&h.history(v)});r&&i().history(v)});return d.api?e:this}})(jQuery);(function(b){function e(i,a){var h=this,r=i.add(h),v=b(window),s,l,t,q=b.tools.expose&&(a.mask||a.expose),u=Math.random().toString().slice(10);if(q){if(typeof q=="string"){q={color:q}}q.closeOnClick=q.closeOnEsc=false}var w=a.target||i.attr("rel");l=w?b(w):i;if(!l.length){throw"Could not find Overlay: "+w}i&&i.index(l)==-1&&i.click(function(f){h.load(f);return f.preventDefault()});b.extend(h,{load:function(f){if(h.isOpened()){return h}var g=c[a.effect];if(!g){throw'Overlay: cannot find effect : "'+a.effect+'"'}a.oneInstance&&b.each(d,function(){this.close(f)});f=f||b.Event();f.type="onBeforeLoad";r.trigger(f);if(f.isDefaultPrevented()){return h}t=true;q&&b(l).expose(q);var j=a.top,k=a.left,m=l.outerWidth({margin:true}),n=l.outerHeight({margin:true});if(typeof j=="string"){j=j=="center"?Math.max((v.height()-n)/2,0):parseInt(j,10)/100*v.height()}if(k=="center"){k=Math.max((v.width()-m)/2,0)}g[0].call(h,{top:j,left:k},function(){if(t){f.type="onLoad";r.trigger(f)}});q&&a.closeOnClick&&b.mask.getMask().one("click",h.close);a.closeOnClick&&b(document).bind("click."+u,function(o){b(o.target).parents(l).length||h.close(o)});a.closeOnEsc&&b(document).bind("keydown."+u,function(o){o.keyCode==27&&h.close(o)});return h},close:function(f){if(!h.isOpened()){return h}f=f||b.Event();f.type="onBeforeClose";r.trigger(f);if(!f.isDefaultPrevented()){t=false;c[a.effect][1].call(h,function(){f.type="onClose";r.trigger(f)});b(document).unbind("click."+u).unbind("keydown."+u);q&&b.mask.close();return h}},getOverlay:function(){return l},getTrigger:function(){return i},getClosers:function(){return s},isOpened:function(){return t},getConf:function(){return a}});b.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(f,g){b.isFunction(a[g])&&b(h).bind(g,a[g]);h[g]=function(j){j&&b(h).bind(g,j);return h}});s=l.find(a.close||".close");if(!s.length&&!a.close){s=b('<a class="close"></a>');l.prepend(s)}s.click(function(f){h.close(f)});a.load&&h.load()}b.tools=b.tools||{version:"1.2.5"};b.tools.overlay={addEffect:function(g,a,f){c[g]=[a,f]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!b.browser.msie||b.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var d=[],c={};b.tools.overlay.addEffect("default",function(g,a){var f=this.getConf(),h=b(window);if(!f.fixed){g.top+=h.scrollTop();g.left+=h.scrollLeft()}g.position=f.fixed?"fixed":"absolute";this.getOverlay().css(g).fadeIn(f.speed,a)},function(a){this.getOverlay().fadeOut(this.getConf().closeSpeed,a)});b.fn.overlay=function(f){var a=this.data("overlay");if(a){return a}if(b.isFunction(f)){f={onBeforeLoad:f}}f=b.extend(true,{},b.tools.overlay.conf,f);this.each(function(){a=new e(b(this),f);d.push(a);b(this).data("overlay",a)});return f.api?a:this}})(jQuery);(function(b){function c(f){var h=f.offset();return{top:h.top+f.height()/2,left:h.left+f.width()/2}}var d=b.tools.overlay,a=b(window);b.extend(d.conf,{start:{top:null,left:null},fadeInSpeed:"fast",zIndex:9999});function e(l,o){var f=this.getOverlay(),k=this.getConf(),q=this.getTrigger(),v=this,t=f.outerWidth({margin:true}),h=f.data("img"),u=k.fixed?"fixed":"absolute";if(!h){h=f.css("backgroundImage");if(!h){throw"background-image CSS property not set for overlay"}h=h.slice(h.indexOf("(")+1,h.indexOf(")")).replace(/\"/g,"");f.css("backgroundImage","none");h=b('<img src="'+h+'"/>');h.css({border:0,display:"none"}).width(t);b("body").append(h);f.data("img",h)}var r=k.start.top||Math.round(a.height()/2),s=k.start.left||Math.round(a.width()/2);if(q){q=c(q);r=q.top;s=q.left}if(k.fixed){r-=a.scrollTop();s-=a.scrollLeft()}else{l.top+=a.scrollTop();l.left+=a.scrollLeft()}h.css({position:"absolute",top:r,left:s,width:0,zIndex:k.zIndex}).show();l.position=u;f.css(l);h.animate({top:f.css("top"),left:f.css("left"),width:t},k.speed,function(){f.css("zIndex",k.zIndex+1).fadeIn(k.fadeInSpeed,function(){v.isOpened()&&!b(this).index(f)?o.call():f.hide()})}).css("position",u)}function g(i){var j=this.getOverlay().hide(),f=this.getConf(),h=this.getTrigger();j=j.data("img");var k={top:f.start.top,left:f.start.left,width:0};h&&b.extend(k,c(h));f.fixed&&j.css({position:"absolute"}).animate({top:"+="+a.scrollTop(),left:"+="+a.scrollLeft()},0);j.animate(k,f.closeSpeed,i)}d.addEffect("apple",e,g)})(jQuery);(function(c){function f(d,q){return 32-(new Date(d,q,32)).getDate()}function g(d,q){d=""+d;for(q=q||2;d.length<q;){d="0"+d}return d}function h(d,s,v){var w=d.getDate(),u=d.getDay(),x=d.getMonth();d=d.getFullYear();var t={d:w,dd:g(w),ddd:a[v].shortDays[u],dddd:a[v].days[u],m:x+1,mm:g(x+1),mmm:a[v].shortMonths[x],mmmm:a[v].months[x],yy:String(d).slice(2),yyyy:d};s=s.replace(m,function(q){return q in t?t[q]:q.slice(1,q.length-1)});return n.html(s).html()}function j(d){return parseInt(d,10)}function i(d,q){return d.getFullYear()===q.getFullYear()&&d.getMonth()==q.getMonth()&&d.getDate()==q.getDate()}function b(d){if(d){if(d.constructor==Date){return d}if(typeof d=="string"){var q=d.split("-");if(q.length==3){return new Date(j(q[0]),j(q[1])-1,j(q[2]))}if(!/^-?\d+$/.test(d)){return}d=j(d)}q=new Date;q.setDate(q.getDate()+d);return q}}function o(t,v){function R(q,r,s){Y=q;x=q.getFullYear();y=q.getMonth();C=q.getDate();s=s||c.Event("api");s.type="change";P.trigger(s,[q]);if(!s.isDefaultPrevented()){t.val(h(q,r.format,r.lang));t.data("date",q);F.hide(s)}}function ac(q){q.type="onShow";P.trigger(q);c(document).bind("keydown.d",function(r){if(r.ctrlKey){return true}var s=r.keyCode;if(s==8){t.val("");return F.hide(r)}if(s==27){return F.hide(r)}if(c(k).index(s)>=0){if(!af){F.show(r);return r.preventDefault()}var w=c("#"+B.weeks+" a"),A=c("."+B.focus),z=w.index(A);A.removeClass(B.focus);if(s==74||s==40){z+=7}else{if(s==75||s==38){z-=7}else{if(s==76||s==39){z+=1}else{if(s==72||s==37){z-=1}}}}if(z>41){F.addMonth();A=c("#"+B.weeks+" a:eq("+(z-42)+")")}else{if(z<0){F.addMonth(-1);A=c("#"+B.weeks+" a:eq("+(z+42)+")")}else{A=w.eq(z)}}A.addClass(B.focus);return r.preventDefault()}if(s==34){return F.addMonth()}if(s==33){return F.addMonth(-1)}if(s==36){return F.today()}if(s==13){c(r.target).is("select")||c("."+B.focus).click()}return c([16,17,18,9]).index(s)>=0});c(document).bind("click.d",function(r){var s=r.target;if(!c(s).parents("#"+B.root).length&&s!=t[0]&&(!V||s!=V[0])){F.hide(r)}})}var F=this,ad=new Date,B=v.css,ae=a[v.lang],T=c("#"+B.root),X=T.find("#"+B.title),V,Q,S,x,y,C,Y=t.attr("data-value")||v.value||t.val(),W=t.attr("min")||v.min,ab=t.attr("max")||v.max,af;if(W===0){W="0"}Y=b(Y)||ad;W=b(W||v.yearRange[0]*365);ab=b(ab||v.yearRange[1]*365);if(!ae){throw"Dateinput: invalid language: "+v.lang}if(t.attr("type")=="date"){var Z=c("<input/>");c.each("class,disabled,id,maxlength,name,readonly,required,size,style,tabindex,title,value".split(","),function(q,r){Z.attr(r,t.attr(r))});t.replaceWith(Z);t=Z}t.addClass(B.input);var P=t.add(F);if(!T.length){T=c("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",B.root);T.children().eq(0).attr("id",B.head).end().eq(1).attr("id",B.body).children().eq(0).attr("id",B.days).end().eq(1).attr("id",B.weeks).end().end().end().find("a").eq(0).attr("id",B.prev).end().eq(1).attr("id",B.next);X=T.find("#"+B.head).find("div").attr("id",B.title);if(v.selectors){var ag=c("<select/>").attr("id",B.month),u=c("<select/>").attr("id",B.year);X.html(ag.add(u))}for(var d=T.find("#"+B.days),aa=0;aa<7;aa++){d.append(c("<span/>").text(ae.shortDays[(aa+v.firstDay)%7]))}c("body").append(T)}if(v.trigger){V=c("<a/>").attr("href","#").addClass(B.trigger).click(function(q){F.show();return q.preventDefault()}).insertAfter(t)}var U=T.find("#"+B.weeks);u=T.find("#"+B.year);ag=T.find("#"+B.month);c.extend(F,{show:function(q){if(!(t.attr("readonly")||t.attr("disabled")||af)){q=q||c.Event();q.type="onBeforeShow";P.trigger(q);if(!q.isDefaultPrevented()){c.each(l,function(){this.hide()});af=true;ag.unbind("change").change(function(){F.setValue(u.val(),c(this).val())});u.unbind("change").change(function(){F.setValue(c(this).val(),ag.val())});Q=T.find("#"+B.prev).unbind("click").click(function(){Q.hasClass(B.disabled)||F.addMonth(-1);return false});S=T.find("#"+B.next).unbind("click").click(function(){S.hasClass(B.disabled)||F.addMonth();return false});F.setValue(Y);var r=t.offset();if(/iPad/i.test(navigator.userAgent)){r.top-=c(window).scrollTop()}T.css({top:r.top+t.outerHeight({margins:true})+v.offset[0],left:r.left+v.offset[1]});if(v.speed){T.show(v.speed,function(){ac(q)})}else{T.show();ac(q)}return F}}},setValue:function(q,r,s){var w=j(r)>=-1?new Date(j(q),j(r),j(s||1)):q||Y;if(w<W){w=W}else{if(w>ab){w=ab}}q=w.getFullYear();r=w.getMonth();s=w.getDate();if(r==-1){r=11;q--}else{if(r==12){r=0;q++}}if(!af){R(w,v);return F}y=r;x=q;s=new Date(q,r,1-v.firstDay);s=s.getDay();var E=f(q,r),A=f(q,r-1),D;if(v.selectors){ag.empty();c.each(ae.months,function(J,I){W<new Date(q,J+1,-1)&&ab>new Date(q,J,0)&&ag.append(c("<option/>").html(I).attr("value",J))});u.empty();w=ad.getFullYear();for(var z=w+v.yearRange[0];z<w+v.yearRange[1];z++){W<=new Date(z+1,-1,1)&&ab>new Date(z,0,0)&&u.append(c("<option/>").text(z))}ag.val(r);u.val(q)}else{X.html(ae.months[r]+" "+q)}U.empty();Q.add(S).removeClass(B.disabled);z=!s?-7:0;for(var G,H;z<(!s?35:42);z++){G=c("<a/>");if(z%7===0){D=c("<div/>").addClass(B.week);U.append(D)}if(z<s){G.addClass(B.off);H=A-s+z+1;w=new Date(q,r-1,H)}else{if(z>=s+E){G.addClass(B.off);H=z-E-s+1;w=new Date(q,r+1,H)}else{H=z-s+1;w=new Date(q,r,H);if(i(Y,w)){G.attr("id",B.current).addClass(B.focus)}else{i(ad,w)&&G.attr("id",B.today)}}}W&&w<W&&G.add(Q).addClass(B.disabled);ab&&w>ab&&G.add(S).addClass(B.disabled);G.attr("href","#"+H).text(H).data("date",w);D.append(G)}U.find("a").click(function(J){var I=c(this);if(!I.hasClass(B.disabled)){c("#"+B.current).removeAttr("id");I.attr("id",B.current);R(I.data("date"),v,J)}return false});B.sunday&&U.find(B.week).each(function(){var I=v.firstDay?7-v.firstDay:0;c(this).children().slice(I,I+1).addClass(B.sunday)});return F},setMin:function(q,r){W=b(q);r&&Y<W&&F.setValue(W);return F},setMax:function(q,r){ab=b(q);r&&Y>ab&&F.setValue(ab);return F},today:function(){return F.setValue(ad)},addDay:function(q){return this.setValue(x,y,C+(q||1))},addMonth:function(q){return this.setValue(x,y+(q||1),C)},addYear:function(q){return this.setValue(x+(q||1),y,C)},hide:function(q){if(af){q=c.Event();q.type="onHide";P.trigger(q);c(document).unbind("click.d").unbind("keydown.d");if(q.isDefaultPrevented()){return}T.hide();af=false}return F},getConf:function(){return v},getInput:function(){return t},getCalendar:function(){return T},getValue:function(q){return q?h(Y,q,v.lang):Y},isOpen:function(){return af}});c.each(["onBeforeShow","onShow","change","onHide"],function(q,r){c.isFunction(v[r])&&c(F).bind(r,v[r]);F[r]=function(s){s&&c(F).bind(r,s);return F}});t.bind("focus click",F.show).keydown(function(q){var r=q.keyCode;if(!af&&c(k).index(r)>=0){F.show(q);return q.preventDefault()}return q.shiftKey||q.ctrlKey||q.altKey||r==9?true:q.preventDefault()});b(t.val())&&R(Y,v)}c.tools=c.tools||{version:"1.2.5"};var l=[],e,k=[75,76,38,39,74,72,40,37],a={};e=c.tools.dateinput={conf:{format:"mm/dd/yy",selectors:false,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:undefined,max:undefined,trigger:false,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},localize:function(d,q){c.each(q,function(r,s){q[r]=s.split(",")});a[d]=q}};e.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var m=/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,n=c("<a/>");c.expr[":"].date=function(d){var q=d.getAttribute("type");return q&&q=="date"||!!c(d).data("dateinput")};c.fn.dateinput=function(d){if(this.data("dateinput")){return this}d=c.extend(true,{},e.conf,d);c.each(d.css,function(r,s){if(!s&&r!="prefix"){d.css[r]=(d.css.prefix||"")+(s||r)}});var q;this.each(function(){var r=new o(c(this),d);l.push(r);r=r.getInput().data("dateinput",r);q=q?q.add(r):r});return q?q:this}})(jQuery);(function(b){function d(j,e){e=Math.pow(10,e);return Math.round(j*e)/e}function g(j,e){if(e=parseInt(j.css(e),10)){return e}return(j=j[0].currentStyle)&&j.width&&parseInt(j.width,10)}function a(e){return(e=e.data("events"))&&e.onSlide}function f(r,e){function C(l,k,m,n){if(m===undefined){m=k/J*U}else{if(n){m-=e.min}}if(P){m=Math.round(m/P)*P}if(k===undefined||P){k=m*J/U}if(isNaN(m)){return y}k=Math.max(0,Math.min(k,J));m=k/J*U;if(n||!M){m+=e.min}if(M){if(n){k=J-k}else{m=e.max-m}}m=d(m,Q);var o=l.type=="click";if(x&&K!==undefined&&!o){l.type="onSlide";j.trigger(l,[m,k]);if(l.isDefaultPrevented()){return y}}n=o?e.speed:0;o=o?function(){l.type="change";j.trigger(l,[m])}:null;if(M){L.animate({top:k},n,o);e.progress&&q.animate({height:J-k+L.width()/2},n)}else{L.animate({left:k},n,o);e.progress&&q.animate({width:k+L.width()/2},n)}K=m;E=k;r.val(m);return y}function N(){if(M=e.vertical||g(F,"height")>g(F,"width")){J=g(F,"height")-g(L,"height");R=F.offset().top+J}else{J=g(F,"width")-g(L,"width");R=F.offset().left}}function S(){N();y.setValue(e.value!==undefined?e.value:e.min)}var y=this,O=e.css,F=b("<div><div/><a href='#'/></div>").data("rangeinput",y),M,K,R,J,E;r.before(F);var L=F.addClass(O.slider).find("a").addClass(O.handle),q=F.find("div").addClass(O.progress);b.each("min,max,step,value".split(","),function(l,k){l=r.attr(k);if(parseFloat(l)){e[k]=parseFloat(l,10)}});var U=e.max-e.min,P=e.step=="any"?0:e.step,Q=e.precision;if(Q===undefined){try{Q=P.toString().split(".")[1].length}catch(G){Q=0}}if(r.attr("type")=="range"){var T=b("<input/>");b.each("class,disabled,id,maxlength,name,readonly,required,size,style,tabindex,title,value".split(","),function(l,k){T.attr(k,r.attr(k))});T.val(e.value);r.replaceWith(T);r=T}r.addClass(O.input);var j=b(y).add(r),x=true;b.extend(y,{getValue:function(){return K},setValue:function(l,k){N();return C(k||b.Event("api"),undefined,l,true)},getConf:function(){return e},getProgress:function(){return q},getHandle:function(){return L},getInput:function(){return r},step:function(l,k){k=k||b.Event();var m=e.step=="any"?1:e.step;y.setValue(K+m*(l||1),k)},stepUp:function(k){return y.step(k||1)},stepDown:function(k){return y.step(-k||-1)}});b.each("onSlide,change".split(","),function(l,k){b.isFunction(e[k])&&b(y).bind(k,e[k]);y[k]=function(m){m&&b(y).bind(k,m);return y}});L.drag({drag:false}).bind("dragStart",function(){N();x=a(b(y))||a(r)}).bind("drag",function(l,k,m){if(r.is(":disabled")){return false}C(l,M?k:m)}).bind("dragEnd",function(k){if(!k.isDefaultPrevented()){k.type="change";j.trigger(k,[K])}}).click(function(k){return k.preventDefault()});F.click(function(l){if(r.is(":disabled")||l.target==L[0]){return l.preventDefault()}N();var k=L.width()/2;C(l,M?J-R-k+l.pageY:l.pageX-R-k)});e.keyboard&&r.keydown(function(l){if(!r.attr("readonly")){var k=l.keyCode,m=b([75,76,38,33,39]).index(k)!=-1,n=b([74,72,40,34,37]).index(k)!=-1;if((m||n)&&!(l.shiftKey||l.altKey||l.ctrlKey)){if(m){y.step(k==33?10:1,l)}else{if(n){y.step(k==34?-10:-1,l)}}return l.preventDefault()}}});r.blur(function(l){var k=b(this).val();k!==K&&y.setValue(k,l)});b.extend(r[0],{stepUp:y.stepUp,stepDown:y.stepDown});S();J||b(window).load(S)}b.tools=b.tools||{version:"1.2.5"};var c;c=b.tools.rangeinput={conf:{min:0,max:100,step:"any",steps:0,value:0,precision:undefined,vertical:0,keyboard:true,progress:false,speed:100,css:{input:"range",slider:"slider",progress:"progress",handle:"handle"}}};var h,i;b.fn.drag=function(e){document.ondragstart=function(){return false};e=b.extend({x:true,y:true,drag:true},e);h=h||b(document).bind("mousedown mouseup",function(j){var l=b(j.target);if(j.type=="mousedown"&&l.data("drag")){var m=l.position(),q=j.pageX-m.left,k=j.pageY-m.top,n=true;h.bind("mousemove.drag",function(o){var s=o.pageX-q;o=o.pageY-k;var r={};if(e.x){r.left=s}if(e.y){r.top=o}if(n){l.trigger("dragStart");n=false}e.drag&&l.css(r);l.trigger("drag",[o,s]);i=l});j.preventDefault()}else{try{i&&i.trigger("dragEnd")}finally{h.unbind("mousemove.drag");i=null}}});return this.data("drag",true)};b.expr[":"].range=function(j){var e=j.getAttribute("type");return e&&e=="range"||!!b(j).filter("input").data("rangeinput")};b.fn.rangeinput=function(j){if(this.data("rangeinput")){return this}j=b.extend(true,{},c.conf,j);var e;this.each(function(){var k=new f(b(this),b.extend(true,{},j));k=k.getInput().data("rangeinput",k);e=e?e.add(k):k});return e?e:this}})(jQuery);(function(d){function j(e,h,o){var r=e.offset().top,q=e.offset().left,s=o.position.split(/,?\s+/),t=s[0];s=s[1];r-=h.outerHeight()-o.offset[0];q+=e.outerWidth()+o.offset[1];if(/iPad/i.test(navigator.userAgent)){r-=d(window).scrollTop()}o=h.outerHeight()+e.outerHeight();if(t=="center"){r+=o/2}if(t=="bottom"){r+=o}e=e.outerWidth();if(s=="center"){q-=(e+h.outerWidth())/2}if(s=="left"){q-=e}return{top:r,left:q}}function m(e){function h(){return this.getAttribute("type")==e}h.key="[type="+e+"]";return h}function k(e,h,o){function r(v,u,w){if(!(!o.grouped&&v.length)){var x;if(w===false||d.isArray(w)){x=f.messages[u.key||u]||f.messages["*"];x=x[o.lang]||f.messages["*"].en;(u=x.match(/\$\d/g))&&d.isArray(w)&&d.each(u,function(y){x=x.replace(this,w[y])})}else{x=w[o.lang]||w}v.push(x)}}var q=this,s=h.add(q);e=e.not(":button, :image, :reset, :submit");d.extend(q,{getConf:function(){return o},getForm:function(){return h},getInputs:function(){return e},reflow:function(){e.each(function(){var v=d(this),u=v.data("msg.el");if(u){v=j(v,u,o);u.css({top:v.top,left:v.left})}});return q},invalidate:function(v,u){if(!u){var w=[];d.each(v,function(x,y){x=e.filter("[name='"+x+"']");if(x.length){x.trigger("OI",[y]);w.push({input:x,messages:[y]})}});v=w;u=d.Event()}u.type="onFail";s.trigger(u,[v]);u.isDefaultPrevented()||g[o.effect][0].call(q,v,u);return q},reset:function(u){u=u||e;u.removeClass(o.errorClass).each(function(){var v=d(this).data("msg.el");if(v){v.remove();d(this).data("msg.el",null)}}).unbind(o.errorInputEvent||"");return q},destroy:function(){h.unbind(o.formEvent+".V").unbind("reset.V");e.unbind(o.inputEvent+".V").unbind("change.V");return q.reset()},checkValidity:function(v,u){v=v||e;v=v.not(":disabled");if(!v.length){return true}u=u||d.Event();u.type="onBeforeValidate";s.trigger(u,[v]);if(u.isDefaultPrevented()){return u.result}var w=[];v.not(":radio:not(:checked)").each(function(){var y=[],z=d(this).data("messages",y),A=i&&z.is(":date")?"onHide.v":o.errorInputEvent+".v";z.unbind(A);d.each(l,function(){var B=this,C=B[0];if(z.filter(C).length){B=B[1].call(q,z,z.val());if(B!==true){u.type="onBeforeFail";s.trigger(u,[z,C]);if(u.isDefaultPrevented()){return false}var D=z.attr(o.messageAttr);if(D){y=[D];return false}else{r(y,C,B)}}}});if(y.length){w.push({input:z,messages:y});z.trigger("OI",[y]);o.errorInputEvent&&z.bind(A,function(B){q.checkValidity(z,B)})}if(o.singleError&&w.length){return false}});var x=g[o.effect];if(!x){throw'Validator: cannot find effect "'+o.effect+'"'}if(w.length){q.invalidate(w,u);return false}else{x[1].call(q,v,u);u.type="onSuccess";s.trigger(u,[v]);v.unbind(o.errorInputEvent+".v")}return true}});d.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),function(v,u){d.isFunction(o[u])&&d(q).bind(u,o[u]);q[u]=function(w){w&&d(q).bind(u,w);return q}});o.formEvent&&h.bind(o.formEvent+".V",function(u){if(!q.checkValidity(null,u)){return u.preventDefault()}});h.bind("reset.V",function(){q.reset()});e[0]&&e[0].validity&&e.each(function(){this.oninvalid=function(){return false}});if(h[0]){h[0].checkValidity=q.checkValidity}o.inputEvent&&e.bind(o.inputEvent+".V",function(u){q.checkValidity(d(this),u)});e.filter(":checkbox, select").filter("[required]").bind("change.V",function(v){var u=d(this);if(this.checked||u.is("select")&&d(this).val()){g[o.effect][1].call(q,u,v)}});var t=e.filter(":radio").change(function(u){q.checkValidity(t,u)});d(window).resize(function(){q.reflow()})}d.tools=d.tools||{version:"1.2.5"};var n=/\[type=([a-z]+)\]/,a=/^-?[0-9]*(\.[0-9]+)?$/,i=d.tools.dateinput,b=/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,6})$/i,c=/^(https?:\/\/)?[\da-z\.\-]+\.[a-z\.]{2,6}[#&+_\?\/\w \.\-=]*$/i,f;f=d.tools.validator={conf:{grouped:false,effect:"default",errorClass:"invalid",inputEvent:null,errorInputEvent:"keyup",formEvent:"submit",lang:"en",message:"<div/>",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:false,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(e,h){d.each(h,function(o,q){f.messages[o]=f.messages[o]||{};f.messages[o][e]=q})},localizeFn:function(e,h){f.messages[e]=f.messages[e]||{};d.extend(f.messages[e],h)},fn:function(e,h,o){if(d.isFunction(h)){o=h}else{if(typeof h=="string"){h={en:h}}this.messages[e.key||e]=h}if(h=n.exec(e)){e=m(h[1])}l.push([e,o])},addEffect:function(e,h,o){g[e]=[h,o]}};var l=[],g={"default":[function(e){var h=this.getConf();d.each(e,function(o,r){o=r.input;o.addClass(h.errorClass);var q=o.data("msg.el");if(!q){q=d(h.message).addClass(h.messageClass).appendTo(document.body);o.data("msg.el",q)}q.css({visibility:"hidden"}).find("p").remove();d.each(r.messages,function(s,t){d("<p/>").html(t).appendTo(q)});q.outerWidth()==q.parent().width()&&q.add(q.find("p")).css({display:"inline"});r=j(o,q,h);q.css({visibility:"visible",position:"absolute",top:r.top,left:r.left}).fadeIn(h.speed)})},function(e){var h=this.getConf();e.removeClass(h.errorClass).each(function(){var o=d(this).data("msg.el");o&&o.css({visibility:"hidden"})})}]};d.each("email,url,number".split(","),function(e,h){d.expr[":"][h]=function(o){return o.getAttribute("type")===h}});d.fn.oninvalid=function(e){return this[e?"bind":"trigger"]("OI",e)};f.fn(":email","Please enter a valid email address",function(e,h){return !h||b.test(h)});f.fn(":url","Please enter a valid URL",function(e,h){return !h||c.test(h)});f.fn(":number","Please enter a numeric value.",function(e,h){return a.test(h)});f.fn("[max]","Please enter a value smaller than $1",function(e,h){if(h===""||i&&e.is(":date")){return true}e=e.attr("max");return parseFloat(h)<=parseFloat(e)?true:[e]});f.fn("[min]","Please enter a value larger than $1",function(e,h){if(h===""||i&&e.is(":date")){return true}e=e.attr("min");return parseFloat(h)>=parseFloat(e)?true:[e]});f.fn("[required]","Please complete this mandatory field.",function(e,h){if(e.is(":checkbox")){return e.is(":checked")}return !!h});f.fn("[pattern]",function(e){var h=new RegExp("^"+e.attr("pattern")+"$");return h.test(e.val())});d.fn.validator=function(e){var h=this.data("validator");if(h){h.destroy();this.removeData("validator")}e=d.extend(true,{},f.conf,e);if(this.is("form")){return this.each(function(){var o=d(this);h=new k(o.find(":input"),o,e);o.data("validator",h)})}else{h=new k(this,this.eq(0).closest("form"),e);return this.data("validator",h)}}})(jQuery);(function(a){a.PaginationCalculator=function(b,c){this.maxentries=b;this.opts=c};a.extend(a.PaginationCalculator.prototype,{numPages:function(){return Math.ceil(this.maxentries/this.opts.items_per_page)},getInterval:function(b){var d=Math.floor(this.opts.num_display_entries/2);var e=this.numPages();var g=e-this.opts.num_display_entries;var f=b>d?Math.max(Math.min(b-d,g),0):0;var c=b>d?Math.min(b+d+(this.opts.num_display_entries%2),e):Math.min(this.opts.num_display_entries,e);return{start:f,end:c}}});a.PaginationRenderers={};a.PaginationRenderers.defaultRenderer=function(b,c){this.maxentries=b;this.opts=c;this.pc=new a.PaginationCalculator(b,c)};a.extend(a.PaginationRenderers.defaultRenderer.prototype,{createLink:function(f,c,b){var d,e=this.pc.numPages();f=f<0?0:(f<e?f:e-1);b=a.extend({text:f+1,classes:""},b||{});if(f==c){d=a("<span class='current'>"+b.text+"</span>")}else{d=a("<a>"+b.text+"</a>").attr("href",this.opts.link_to.replace(/__id__/,f))}if(b.classes){d.addClass(b.classes)}d.data("page_id",f);return d},appendRange:function(b,c,g,d,f){var e;for(e=g;e<d;e++){this.createLink(e,c,f).appendTo(b)}},getLinks:function(c,e){var b,d,g=this.pc.getInterval(c),h=this.pc.numPages(),f=a("<div class='pagination'></div>");if(g.start>0&&this.opts.num_edge_entries>0){d=Math.min(this.opts.num_edge_entries,g.start);this.appendRange(f,c,0,d,{classes:"sp"});if(this.opts.num_edge_entries<g.start&&this.opts.ellipse_text){jQuery("<span>"+this.opts.ellipse_text+"</span>").appendTo(f)}}this.appendRange(f,c,g.start,g.end);if(g.end<h&&this.opts.num_edge_entries>0){if(h-this.opts.num_edge_entries>g.end&&this.opts.ellipse_text){jQuery("<span>"+this.opts.ellipse_text+"</span>").appendTo(f)}b=Math.max(h-this.opts.num_edge_entries,g.end);this.appendRange(f,c,b,h,{classes:"ep"})}if(this.opts.prev_text&&(c>0||this.opts.prev_show_always)){f.append(this.createLink(c-1,c,{text:this.opts.prev_text,classes:"prev"}))}if(this.opts.next_text&&(c<h-1||this.opts.next_show_always)){f.append(this.createLink(c+1,c,{text:this.opts.next_text,classes:"next"}))}a("a",f).click(e);return f}});a.fn.pagination=function(e,g){g=jQuery.extend({items_per_page:10,num_display_entries:11,current_page:0,num_edge_entries:0,link_to:"#",prev_text:"Prev",next_text:"Next",ellipse_text:"...",prev_show_always:true,next_show_always:true,renderer:"defaultRenderer",callback:function(){return false}},g||{});var b=this,j,d,c;function h(m){var n,o=a(m.target).data("page_id"),l=k(o);if(!l){m.stopPropagation()}return l}function k(m){b.data("current_page",m);d=j.getLinks(m,h);b.empty();d.appendTo(b);var l=g.callback(m,b);return l}c=g.current_page;b.data("current_page",c);e=(!e||e<0)?1:e;g.items_per_page=(!g.items_per_page||g.items_per_page<0)?1:g.items_per_page;if(!a.PaginationRenderers[g.renderer]){throw new ReferenceError("Pagination renderer '"+g.renderer+"' was not found in jQuery.PaginationRenderers object.")}j=new a.PaginationRenderers[g.renderer](e,g);var i=new a.PaginationCalculator(e,g);var f=i.numPages();b.bind("setPage",{numPages:f},function(l,m){if(m>=0&&m<l.data.numPages){k(m);return false}});b.bind("prevPage",function(m){var l=a(this).data("current_page");if(l>0){k(l-1)}return false});b.bind("nextPage",{numPages:f},function(m){var l=a(this).data("current_page");if(l<m.data.numPages-1){k(l+1)}return false});d=j.getLinks(c,h);b.empty();d.appendTo(b);g.callback(c,b)}})(jQuery);
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * Version: 2.72 (09-SEP-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.6 or later
 *
 * Originally based on the work of:
 *	1) Matt Oakes
 *	2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)
 *	3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/)
 */
(function(a){var o="2.72";if(a.support==undefined){a.support={opacity:!(a.browser.msie)}}function f(q){if(a.fn.cycle.debug){k(q)}}function k(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}a.fn.cycle=function(s,q){var r={s:this.selector,c:this.context};if(this.length===0&&s!="stop"){if(!a.isReady&&r.s){k("DOM not ready, queuing slideshow");a(function(){a(r.s,r.c).cycle(s,q)});return this}k("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var w=j(this,s,q);if(w===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var t=a(this);var u=w.slideExpr?a(w.slideExpr,this):t.children();var v=u.get();if(v.length<2){k("terminating; too few slides: "+v.length);return}var x=c(t,u,v,w,r);if(x===false){return}var y=x.continuous?10:h(x.currSlide,x.nextSlide,x,!x.rev);if(y){y+=(x.delay||0);if(y<10){y=10}f("first timeout: "+y);this.cycleTimeout=setTimeout(function(){i(v,x,0,!x.rev)},y)}})};function j(r,t,q){if(r.cycleStop==undefined){r.cycleStop=0}if(t===undefined||t===null){t={}}if(t.constructor==String){switch(t){case"stop":r.cycleStop++;if(r.cycleTimeout){clearTimeout(r.cycleTimeout)}r.cycleTimeout=0;a(r).removeData("cycle.opts");return false;case"pause":r.cyclePause=1;return false;case"resume":r.cyclePause=0;if(q===true){t=a(r).data("cycle.opts");if(!t){k("options not found, can not resume");return false}if(r.cycleTimeout){clearTimeout(r.cycleTimeout);r.cycleTimeout=0}i(t.elements,t,1,1)}return false;case"prev":case"next":var u=a(r).data("cycle.opts");if(!u){k('options not found, "prev/next" ignored');return false}a.fn.cycle[t](u);return false;default:t={fx:t}}return t}else{if(t.constructor==Number){var s=t;t=a(r).data("cycle.opts");if(!t){k("options not found, can not advance slide");return false}if(s<0||s>=t.elements.length){k("invalid slide index: "+s);return false}t.nextSlide=s;if(r.cycleTimeout){clearTimeout(r.cycleTimeout);r.cycleTimeout=0}if(typeof q=="string"){t.oneTimeFx=q}i(t.elements,t,1,s>=t.currSlide);return false}}return t}function l(q,r){if(!a.support.opacity&&r.cleartype&&q.style.filter){try{q.style.removeAttribute("filter")}catch(s){}}}function c(q,s,x,G,F){var H=a.extend({},a.fn.cycle.defaults,G||{},a.metadata?q.metadata():a.meta?q.data():{});if(H.autostop){H.countdown=H.autostopCount||x.length}var t=q[0];q.data("cycle.opts",H);H.$cont=q;H.stopCount=t.cycleStop;H.elements=x;H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});if(!a.support.opacity&&H.cleartype){H.after.push(function(){l(this,H)})}if(H.continuous){H.after.push(function(){i(x,H,0,!H.rev)})}m(H);if(!a.support.opacity&&H.cleartype&&!H.cleartypeNoBg){e(s)}if(q.css("position")=="static"){q.css("position","relative")}if(H.width){q.width(H.width)}if(H.height&&H.height!="auto"){q.height(H.height)}if(H.startingSlide){H.startingSlide=parseInt(H.startingSlide)}if(H.random){H.randomMap=[];for(var A=0;A<x.length;A++){H.randomMap.push(A)}H.randomMap.sort(function(w,L){return Math.random()-0.5});H.randomIndex=0;H.startingSlide=H.randomMap[0]}else{if(H.startingSlide>=x.length){H.startingSlide=0}}H.currSlide=H.startingSlide=H.startingSlide||0;var y=H.startingSlide;s.css({position:"absolute",top:0,left:0}).hide().each(function(w){var L=y?w>=y?x.length-(w-y):y-w:x.length-w;a(this).css("z-index",L)});a(x[y]).css("opacity",1).show();l(x[y],H);if(H.fit&&H.width){s.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){s.height(H.height)}var J=H.containerResize&&!q.innerHeight();if(J){var E=0,D=0;for(var C=0;C<x.length;C++){var r=a(x[C]),u=r[0],K=r.outerWidth(),z=r.outerHeight();if(!K){K=u.offsetWidth}if(!z){z=u.offsetHeight}E=K>E?K:E;D=z>D?z:D}if(E>0&&D>0){q.css({width:E+"px",height:D+"px"})}}if(H.pause){q.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(n(H)===false){return false}var I=false;G.requeueAttempts=G.requeueAttempts||0;s.each(function(){var w=a(this);this.cycleH=(H.fit&&H.height)?H.height:w.height();this.cycleW=(H.fit&&H.width)?H.width:w.width();if(w.is("img")){var M=(a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var L=(a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var N=(a.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var O=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(M||L||N||O){if(F.s&&H.requeueOnImageNotLoaded&&++G.requeueAttempts<100){k(G.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(F.s,F.c).cycle(G)},H.requeueTimeout);I=true;return false}else{k("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(I){return false}H.cssBefore=H.cssBefore||{};H.animIn=H.animIn||{};H.animOut=H.animOut||{};s.not(":eq("+y+")").css(H.cssBefore);if(H.cssFirst){a(s[y]).css(H.cssFirst)}if(H.timeout){H.timeout=parseInt(H.timeout);if(H.speed.constructor==String){H.speed=a.fx.speeds[H.speed]||parseInt(H.speed)}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}if(H.easing){H.easeIn=H.easeOut=H.easing}if(!H.speedIn){H.speedIn=H.speed}if(!H.speedOut){H.speedOut=H.speed}H.slideCount=x.length;H.currSlide=H.lastSlide=y;if(H.random){H.nextSlide=H.currSlide;if(++H.randomIndex==x.length){H.randomIndex=0}H.nextSlide=H.randomMap[H.randomIndex]}else{H.nextSlide=H.startingSlide>=(x.length-1)?0:H.startingSlide+1}if(!H.multiFx){var B=a.fn.cycle.transitions[H.fx];if(a.isFunction(B)){B(q,s,H)}else{if(H.fx!="custom"&&!H.multiFx){k("unknown transition: "+H.fx,"; slideshow terminating");return false}}}var v=s[y];if(H.before.length){H.before[0].apply(v,[v,v,H,true])}if(H.after.length>1){H.after[1].apply(v,[v,v,H,true])}if(H.next){a(H.next).bind(H.prevNextEvent,function(){return b(H,H.rev?-1:1)})}if(H.prev){a(H.prev).bind(H.prevNextEvent,function(){return b(H,H.rev?1:-1)})}if(H.pager){d(x,H)}g(H,x);return H}function m(q){q.original={before:[],after:[]};q.original.cssBefore=a.extend({},q.cssBefore);q.original.cssAfter=a.extend({},q.cssAfter);q.original.animIn=a.extend({},q.animIn);q.original.animOut=a.extend({},q.animOut);a.each(q.before,function(){q.original.before.push(this)});a.each(q.after,function(){q.original.after.push(this)})}function n(s){var r,v,w=a.fn.cycle.transitions;if(s.fx.indexOf(",")>0){s.multiFx=true;s.fxs=s.fx.replace(/\s*/g,"").split(",");for(r=0;r<s.fxs.length;r++){var q=s.fxs[r];v=w[q];if(!v||!w.hasOwnProperty(q)||!a.isFunction(v)){k("discarding unknown transition: ",q);s.fxs.splice(r,1);r--}}if(!s.fxs.length){k("No valid transitions named; slideshow terminating.");return false}}else{if(s.fx=="all"){s.multiFx=true;s.fxs=[];for(p in w){v=w[p];if(w.hasOwnProperty(p)&&a.isFunction(v)){s.fxs.push(p)}}}}if(s.multiFx&&s.randomizeEffects){var t=Math.floor(Math.random()*20)+30;for(r=0;r<t;r++){var u=Math.floor(Math.random()*s.fxs.length);s.fxs.push(s.fxs.splice(u,1)[0])}f("randomized fx sequence: ",s.fxs)}return true}function g(r,q){r.addSlide=function(u,v){var t=a(u),w=t[0];if(!r.autostopCount){r.countdown++}q[v?"unshift":"push"](w);if(r.els){r.els[v?"unshift":"push"](w)}r.slideCount=q.length;t.css("position","absolute");t[v?"prependTo":"appendTo"](r.$cont);if(v){r.currSlide++;r.nextSlide++}if(!a.support.opacity&&r.cleartype&&!r.cleartypeNoBg){e(t)}if(r.fit&&r.width){t.width(r.width)}if(r.fit&&r.height&&r.height!="auto"){$slides.height(r.height)}w.cycleH=(r.fit&&r.height)?r.height:t.height();w.cycleW=(r.fit&&r.width)?r.width:t.width();t.css(r.cssBefore);if(r.pager){a.fn.cycle.createPagerAnchor(q.length-1,w,a(r.pager),q,r)}if(a.isFunction(r.onAddSlide)){r.onAddSlide(t)}else{t.hide()}}}a.fn.cycle.resetState=function(s,q){q=q||s.fx;s.before=[];s.after=[];s.cssBefore=a.extend({},s.original.cssBefore);s.cssAfter=a.extend({},s.original.cssAfter);s.animIn=a.extend({},s.original.animIn);s.animOut=a.extend({},s.original.animOut);s.fxFn=null;a.each(s.original.before,function(){s.before.push(this)});a.each(s.original.after,function(){s.after.push(this)});var r=a.fn.cycle.transitions[q];if(a.isFunction(r)){r(s.$cont,a(s.elements),s)}};function i(s,y,v,t){if(v&&y.busy&&y.manualTrump){a(s).stop(true,true);y.busy=false}if(y.busy){return}var z=y.$cont[0],r=s[y.currSlide],x=s[y.nextSlide];if(z.cycleStop!=y.stopCount||z.cycleTimeout===0&&!v){return}if(!v&&!z.cyclePause&&((y.autostop&&(--y.countdown<=0))||(y.nowrap&&!y.random&&y.nextSlide<y.currSlide))){if(y.end){y.end(y)}return}if(v||!z.cyclePause){var u=y.fx;r.cycleH=r.cycleH||a(r).height();r.cycleW=r.cycleW||a(r).width();x.cycleH=x.cycleH||a(x).height();x.cycleW=x.cycleW||a(x).width();if(y.multiFx){if(y.lastFx==undefined||++y.lastFx>=y.fxs.length){y.lastFx=0}u=y.fxs[y.lastFx];y.currFx=u}if(y.oneTimeFx){u=y.oneTimeFx;y.oneTimeFx=null}a.fn.cycle.resetState(y,u);if(y.before.length){a.each(y.before,function(B,C){if(z.cycleStop!=y.stopCount){return}C.apply(x,[r,x,y,t])})}var q=function(){a.each(y.after,function(B,C){if(z.cycleStop!=y.stopCount){return}C.apply(x,[r,x,y,t])})};if(y.nextSlide!=y.currSlide){y.busy=1;if(y.fxFn){y.fxFn(r,x,y,q,t)}else{if(a.isFunction(a.fn.cycle[y.fx])){a.fn.cycle[y.fx](r,x,y,q)}else{a.fn.cycle.custom(r,x,y,q,v&&y.fastOnEvent)}}}y.lastSlide=y.currSlide;if(y.random){y.currSlide=y.nextSlide;if(++y.randomIndex==s.length){y.randomIndex=0}y.nextSlide=y.randomMap[y.randomIndex]}else{var A=(y.nextSlide+1)==s.length;y.nextSlide=A?0:y.nextSlide+1;y.currSlide=A?s.length-1:y.nextSlide-1}if(y.pager){a.fn.cycle.updateActivePagerLink(y.pager,y.currSlide)}}var w=0;if(y.timeout&&!y.continuous){w=h(r,x,y,t)}else{if(y.continuous&&z.cyclePause){w=10}}if(w>0){z.cycleTimeout=setTimeout(function(){i(s,y,0,!y.rev)},w)}}a.fn.cycle.updateActivePagerLink=function(r,q){a(r).find("a").removeClass("activeSlide").filter("a:eq("+q+")").addClass("activeSlide")};function h(q,s,u,r){if(u.timeoutFn){var v=u.timeoutFn(q,s,u,r);while((v-u.speed)<250){v+=u.speed}f("calculated timeout: "+v+"; speed: "+u.speed);if(v!==false){return v}}return u.timeout}a.fn.cycle.next=function(q){b(q,q.rev?-1:1)};a.fn.cycle.prev=function(q){b(q,q.rev?1:-1)};function b(r,u){var q=r.elements;var s=r.$cont[0],t=s.cycleTimeout;if(t){clearTimeout(t);s.cycleTimeout=0}if(r.random&&u<0){r.randomIndex--;if(--r.randomIndex==-2){r.randomIndex=q.length-2}else{if(r.randomIndex==-1){r.randomIndex=q.length-1}}r.nextSlide=r.randomMap[r.randomIndex]}else{if(r.random){if(++r.randomIndex==q.length){r.randomIndex=0}r.nextSlide=r.randomMap[r.randomIndex]}else{r.nextSlide=r.currSlide+u;if(r.nextSlide<0){if(r.nowrap){return false}r.nextSlide=q.length-1}else{if(r.nextSlide>=q.length){if(r.nowrap){return false}r.nextSlide=0}}}}if(a.isFunction(r.prevNextClick)){r.prevNextClick(u>0,r.nextSlide,q[r.nextSlide])}i(q,r,1,u>=0);return false}function d(r,s){var q=a(s.pager);a.each(r,function(t,u){a.fn.cycle.createPagerAnchor(t,u,q,r,s)});a.fn.cycle.updateActivePagerLink(s.pager,s.startingSlide)}a.fn.cycle.createPagerAnchor=function(w,u,r,v,x){var s;if(a.isFunction(x.pagerAnchorBuilder)){s=x.pagerAnchorBuilder(w,u)}else{s='<a href="#">'+(w+1)+"</a>"}if(!s){return}var q=a(s);if(q.parents("body").length===0){var t=[];if(r.length>1){r.each(function(){var y=q.clone(true);a(this).append(y);t.push(y)});q=a(t)}else{q.appendTo(r)}}q.bind(x.pagerEvent,function(y){y.preventDefault();x.nextSlide=w;var z=x.$cont[0],A=z.cycleTimeout;if(A){clearTimeout(A);z.cycleTimeout=0}if(a.isFunction(x.pagerClick)){x.pagerClick(x.nextSlide,v[x.nextSlide])}i(v,x,1,x.currSlide<w);return false});if(x.pagerEvent!="click"){q.click(function(){return false})}if(x.pauseOnPagerHover){q.hover(function(){x.$cont[0].cyclePause++},function(){x.$cont[0].cyclePause--})}};a.fn.cycle.hopsFromLast=function(u,r){var s,t=u.lastSlide,q=u.currSlide;if(r){s=q>t?q-t:u.slideCount-t}else{s=q<t?t-q:t+u.slideCount-q}return s};function e(q){function s(t){t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function r(t){for(;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){var w=a.css(t,"background-color");if(w.indexOf("rgb")>=0){var u=w.match(/\d+/g);return"#"+s(u[0])+s(u[1])+s(u[2])}if(w&&w!="transparent"){return w}}return"#ffffff"}q.each(function(){a(this).css("background-color",r(this))})}a.fn.cycle.commonReset=function(q,s,t,v,r,u){a(t.elements).not(q).hide();t.cssBefore.opacity=1;t.cssBefore.display="block";if(v!==false&&s.cycleW>0){t.cssBefore.width=s.cycleW}if(r!==false&&s.cycleH>0){t.cssBefore.height=s.cycleH}t.cssAfter=t.cssAfter||{};t.cssAfter.display="none";a(q).css("zIndex",t.slideCount+(u===true?1:0));a(s).css("zIndex",t.slideCount+(u===true?0:1))};a.fn.cycle.custom=function(t,x,y,s,B){var q=a(t),r=a(x);var z=y.speedIn,A=y.speedOut,u=y.easeIn,v=y.easeOut;r.css(y.cssBefore);if(B){if(typeof B=="number"){z=A=B}else{z=A=1}u=v=null}var w=function(){r.animate(y.animIn,z,u,s)};q.animate(y.animOut,A,v,function(){if(y.cssAfter){q.css(y.cssAfter)}if(!y.sync){w()}});if(y.sync){w()}};a.fn.cycle.transitions={fade:function(q,r,s){r.not(":eq("+s.currSlide+")").css("opacity",0);s.before.push(function(t,u,v){a.fn.cycle.commonReset(t,u,v);v.cssBefore.opacity=0});s.animIn={opacity:1};s.animOut={opacity:0};s.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return o};a.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!a.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.cycle.transitions.none=function(b,c,d){d.fxFn=function(f,g,h,e){a(g).show();a(f).hide();e()}};a.fn.cycle.transitions.scrollUp=function(b,c,e){b.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);var d=b.height();e.cssBefore={top:d,left:0};e.cssFirst={top:0};e.animIn={top:0};e.animOut={top:-d}};a.fn.cycle.transitions.scrollDown=function(b,c,e){b.css("overflow","hidden");e.before.push(a.fn.cycle.commonReset);var d=b.height();e.cssFirst={top:0};e.cssBefore={top:-d,left:0};e.animIn={top:0};e.animOut={top:d}};a.fn.cycle.transitions.scrollLeft=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst={left:0};d.cssBefore={left:e,top:0};d.animIn={left:0};d.animOut={left:0-e}};a.fn.cycle.transitions.scrollRight=function(b,c,d){b.css("overflow","hidden");d.before.push(a.fn.cycle.commonReset);var e=b.width();d.cssFirst={left:0};d.cssBefore={left:-e,top:0};d.animIn={left:0};d.animOut={left:e}};a.fn.cycle.transitions.scrollHorz=function(b,c,d){b.css("overflow","hidden").width();d.before.push(function(e,g,h,f){a.fn.cycle.commonReset(e,g,h);h.cssBefore.left=f?(g.cycleW-1):(1-g.cycleW);h.animOut.left=f?-e.cycleW:e.cycleW});d.cssFirst={left:0};d.cssBefore={top:0};d.animIn={left:0};d.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(b,c,d){b.css("overflow","hidden");d.before.push(function(e,g,h,f){a.fn.cycle.commonReset(e,g,h);h.cssBefore.top=f?(1-g.cycleH):(g.cycleH-1);h.animOut.top=f?e.cycleH:-e.cycleH});d.cssFirst={top:0};d.cssBefore={left:0};d.animIn={top:0};d.animOut={left:0}};a.fn.cycle.transitions.slideX=function(b,c,d){d.before.push(function(e,f,g){a(g.elements).not(e).hide();a.fn.cycle.commonReset(e,f,g,false,true);g.animIn.width=f.cycleW});d.cssBefore={left:0,top:0,width:0};d.animIn={width:"show"};d.animOut={width:0}};a.fn.cycle.transitions.slideY=function(b,c,d){d.before.push(function(e,f,g){a(g.elements).not(e).hide();a.fn.cycle.commonReset(e,f,g,true,false);g.animIn.height=f.cycleH});d.cssBefore={left:0,top:0,height:0};d.animIn={height:"show"};d.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(b,c,e){var d,f=b.css("overflow","visible").width();c.css({left:0,top:0});e.before.push(function(g,h,i){a.fn.cycle.commonReset(g,h,i,true,true,true)});if(!e.speedAdjusted){e.speed=e.speed/2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-f,top:15};e.els=[];for(d=0;d<c.length;d++){e.els.push(c[d])}for(d=0;d<e.currSlide;d++){e.els.push(e.els.shift())}e.fxFn=function(j,l,m,h,k){var g=k?a(j):a(l);a(l).css(m.cssBefore);var i=m.slideCount;g.animate(m.shuffle,m.speedIn,m.easeIn,function(){var n=a.fn.cycle.hopsFromLast(m,k);for(var q=0;q<n;q++){k?m.els.push(m.els.shift()):m.els.unshift(m.els.pop())}if(k){for(var o=0,r=m.els.length;o<r;o++){a(m.els[o]).css("z-index",r-o+i)}}else{var s=a(j).css("z-index");g.css("z-index",parseInt(s)+1+i)}g.animate({left:0,top:0},m.speedOut,m.easeOut,function(){a(k?this:j).hide();if(h){h()}})})};e.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false);g.cssBefore.top=f.cycleH;g.animIn.height=f.cycleH});d.cssFirst={top:0};d.cssBefore={left:0,height:0};d.animIn={top:0};d.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false);g.animIn.height=f.cycleH;g.animOut.top=e.cycleH});d.cssFirst={top:0};d.cssBefore={left:0,top:0,height:0};d.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true);g.cssBefore.left=f.cycleW;g.animIn.width=f.cycleW});d.cssBefore={top:0,width:0};d.animIn={left:0};d.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true);g.animIn.width=f.cycleW;g.animOut.left=e.cycleW});d.cssBefore={top:0,left:0,width:0};d.animIn={left:0};d.animOut={width:0}};a.fn.cycle.transitions.zoom=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,false,true);g.cssBefore.top=f.cycleH/2;g.cssBefore.left=f.cycleW/2;g.animIn={top:0,left:0,width:f.cycleW,height:f.cycleH};g.animOut={width:0,height:0,top:e.cycleH/2,left:e.cycleW/2}});d.cssFirst={top:0,left:0};d.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,false);g.cssBefore.left=f.cycleW/2;g.cssBefore.top=f.cycleH/2;g.animIn={top:0,left:0,width:f.cycleW,height:f.cycleH}});d.cssBefore={width:0,height:0};d.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(b,c,d){var e=b.css("overflow","hidden").width();d.before.push(function(f,g,h){a.fn.cycle.commonReset(f,g,h);h.animIn.width=g.cycleW;h.animOut.left=f.cycleW});d.cssBefore={left:e,top:0};d.animIn={left:0};d.animOut={left:e}};a.fn.cycle.transitions.blindY=function(b,c,e){var d=b.css("overflow","hidden").height();e.before.push(function(f,g,h){a.fn.cycle.commonReset(f,g,h);h.animIn.height=g.cycleH;h.animOut.top=f.cycleH});e.cssBefore={top:d,left:0};e.animIn={top:0};e.animOut={top:d}};a.fn.cycle.transitions.blindZ=function(b,c,e){var d=b.css("overflow","hidden").height();var f=b.width();e.before.push(function(g,h,i){a.fn.cycle.commonReset(g,h,i);i.animIn.height=h.cycleH;i.animOut.top=g.cycleH});e.cssBefore={top:d,left:f};e.animIn={top:0,left:0};e.animOut={top:d,left:f}};a.fn.cycle.transitions.growX=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true);g.cssBefore.left=this.cycleW/2;g.animIn={left:0,width:this.cycleW};g.animOut={left:0}});d.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false);g.cssBefore.top=this.cycleH/2;g.animIn={top:0,height:this.cycleH};g.animOut={top:0}});d.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,false,true,true);g.cssBefore.left=f.cycleW/2;g.animIn={left:0,width:this.cycleW};g.animOut={left:e.cycleW/2,width:0}});d.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(b,c,d){d.before.push(function(e,f,g){a.fn.cycle.commonReset(e,f,g,true,false,true);g.cssBefore.top=f.cycleH/2;g.animIn={top:0,height:f.cycleH};g.animOut={top:e.cycleH/2,height:0}});d.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(b,c,g){var e=g.direction||"left";var i=b.css("overflow","hidden").width();var f=b.height();g.before.push(function(d,h,j){a.fn.cycle.commonReset(d,h,j);if(e=="right"){j.cssBefore.left=-i}else{if(e=="up"){j.cssBefore.top=f}else{if(e=="down"){j.cssBefore.top=-f}else{j.cssBefore.left=i}}}});g.animIn={left:0,top:0};g.animOut={opacity:1};g.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(b,c,g){var e=g.direction||"left";var i=b.css("overflow","hidden").width();var f=b.height();g.before.push(function(d,h,j){a.fn.cycle.commonReset(d,h,j,true,true,true);if(e=="right"){j.animOut.left=i}else{if(e=="up"){j.animOut.top=-f}else{if(e=="down"){j.animOut.top=f}else{j.animOut.left=-i}}}});g.animIn={left:0,top:0};g.animOut={opacity:1};g.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(b,c,e){var f=b.css("overflow","visible").width();var d=b.height();e.before.push(function(g,h,i){a.fn.cycle.commonReset(g,h,i,true,true,true);if(!i.animOut.left&&!i.animOut.top){i.animOut={left:f*2,top:-d/2,opacity:0}}else{i.animOut.opacity=0}});e.cssBefore={left:0,top:0};e.animIn={left:0}};a.fn.cycle.transitions.wipe=function(c,e,n){var u=c.css("overflow","hidden").width();var j=c.height();n.cssBefore=n.cssBefore||{};var g;if(n.clip){if(/l2r/.test(n.clip)){g="rect(0px 0px "+j+"px 0px)"}else{if(/r2l/.test(n.clip)){g="rect(0px "+u+"px "+j+"px "+u+"px)"}else{if(/t2b/.test(n.clip)){g="rect(0px "+u+"px 0px 0px)"}else{if(/b2t/.test(n.clip)){g="rect("+j+"px "+u+"px "+j+"px 0px)"}else{if(/zoom/.test(n.clip)){var s=parseInt(j/2);var m=parseInt(u/2);g="rect("+s+"px "+m+"px "+s+"px "+m+"px)"}}}}}}n.cssBefore.clip=n.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var i=n.cssBefore.clip.match(/(\d+)/g);var q=parseInt(i[0]),o=parseInt(i[1]),f=parseInt(i[2]),k=parseInt(i[3]);n.before.push(function(l,t,v){if(l==t){return}var b=a(l),d=a(t);a.fn.cycle.commonReset(l,t,v,true,true,false);v.cssAfter.display="block";var w=1,h=parseInt((v.speedIn/13))-1;(function r(){var A=q?q-parseInt(w*(q/h)):0;var y=k?k-parseInt(w*(k/h)):0;var x=f<j?f+parseInt(w*((j-f)/h||1)):j;var z=o<u?o+parseInt(w*((u-o)/h||1)):u;d.css({clip:"rect("+A+"px "+z+"px "+x+"px "+y+"px)"});(w++<=h)?setTimeout(r,13):b.css("display","none")})()});n.cssBefore={display:"block",opacity:1,top:0,left:0};n.animIn={left:0};n.animOut={left:0}}})(jQuery);(function(){function v(a){console.log("$f.fireEvent",[].slice.call(a))}function z(c){if(!c||typeof c!="object"){return c}var a=new c.constructor();for(var b in c){if(c.hasOwnProperty(b)){a[b]=z(c[b])}}return a}function B(f,c){if(!f){return}var a,b=0,d=f.length;if(d===undefined){for(a in f){if(c.call(f[a],a,f[a])===false){break}}}else{for(var e=f[0];b<d&&c.call(e,b,e)!==false;e=f[++b]){}}return f}function r(a){return document.getElementById(a)}function x(c,b,a){if(typeof b!="object"){return c}if(c&&b){B(b,function(d,e){if(!a||typeof e!="function"){c[d]=e}})}return c}function C(e){var c=e.indexOf(".");if(c!=-1){var b=e.slice(0,c)||"*";var a=e.slice(c+1,e.length);var d=[];B(document.getElementsByTagName(b),function(){if(this.className&&this.className.indexOf(a)!=-1){d.push(this)}});return d}}function u(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function y(c,a,b){c[a]=c[a]||[];c[a].push(b)}function t(){return"_"+(""+Math.random()).slice(2,10)}var w=function(f,d,e){var c=this,b={},g={};c.index=d;if(typeof f=="string"){f={url:f}}x(this,f,true);B(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var h="on"+this;if(h.indexOf("*")!=-1){h=h.slice(0,h.length-1);var i="onBefore"+h.slice(2);c[i]=function(j){y(g,i,j);return c}}c[h]=function(j){y(g,h,j);return c};if(d==-1){if(c[i]){e[i]=c[i]}if(c[h]){e[h]=c[h]}}});x(this,{onCuepoint:function(j,i){if(arguments.length==1){b.embedded=[null,j];return c}if(typeof j=="number"){j=[j]}var h=t();b[h]=[j,i];if(e.isLoaded()){e._api().fp_addCuepoints(j,d,h)}return c},update:function(i){x(c,i);if(e.isLoaded()){e._api().fp_updateClip(i,d)}var h=e.getConfig();var j=(d==-1)?h.clip:h.playlist[d];x(j,i,true)},_fireEvent:function(i,l,j,h){if(i=="onLoad"){B(b,function(n,D){if(D[0]){e._api().fp_addCuepoints(D[0],d,n)}});return false}h=h||c;if(i=="onCuepoint"){var m=b[l];if(m){return m[1].call(e,h,j)}}if(l&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(i)!=-1){x(h,l);if(l.metaData){if(!h.duration){h.duration=l.metaData.duration}else{h.fullDuration=l.metaData.duration}}}var k=true;B(g[i],function(){k=this.call(e,h,l,j)});return k}});if(f.onCuepoint){var a=f.onCuepoint;c.onCuepoint.apply(c,typeof a=="function"?[a]:a);delete f.onCuepoint}B(f,function(h,i){if(typeof i=="function"){y(g,h,i);delete f[h]}});if(d==-1){e.onCuepoint=this.onCuepoint}};var A=function(b,d,c,f){var a=this,e={},g=false;if(f){x(e,f)}B(d,function(h,i){if(typeof i=="function"){e[h]=i;delete d[h]}});x(this,{animate:function(k,l,j){if(!k){return a}if(typeof l=="function"){j=l;l=500}if(typeof k=="string"){var i=k;k={};k[i]=l;l=500}if(j){var h=t();e[h]=j}if(l===undefined){l=500}d=c._api().fp_animate(b,k,l,h);return a},css:function(i,j){if(j!==undefined){var h={};h[i]=j;i=h}d=c._api().fp_css(b,i);x(a,d);return a},show:function(){this.display="block";c._api().fp_showPlugin(b);return a},hide:function(){this.display="none";c._api().fp_hidePlugin(b);return a},toggle:function(){this.display=c._api().fp_togglePlugin(b);return a},fadeTo:function(k,j,i){if(typeof j=="function"){i=j;j=500}if(i){var h=t();e[h]=i}this.display=c._api().fp_fadeTo(b,k,j,h);this.opacity=k;return a},fadeIn:function(i,h){return a.fadeTo(1,i,h)},fadeOut:function(i,h){return a.fadeTo(0,i,h)},getName:function(){return b},getPlayer:function(){return c},_fireEvent:function(j,i,k){if(j=="onUpdate"){var m=c._api().fp_getPlugin(b);if(!m){return}x(a,m);delete a.methods;if(!g){B(m.methods,function(){var n=""+this;a[n]=function(){var E=[].slice.call(arguments);var F=c._api().fp_invoke(b,n,E);return F==="undefined"||F===undefined?a:F}});g=true}}var h=e[j];if(h){var l=h.apply(a,i);if(j.slice(0,1)=="_"){delete e[j]}return l}return a}})};function q(j,g,m){var I=this,H=null,d=false,n,l,f=[],K={},J={},e,k,i,c,h,a;x(I,{id:function(){return e},isLoaded:function(){return(H!==null&&H.fp_play!==undefined&&!d)},getParent:function(){return j},hide:function(D){if(D){j.style.height="0px"}if(I.isLoaded()){H.style.height="0px"}return I},show:function(){j.style.height=a+"px";if(I.isLoaded()){H.style.height=h+"px"}return I},isHidden:function(){return I.isLoaded()&&parseInt(H.style.height,10)===0},load:function(F){if(!I.isLoaded()&&I._fireEvent("onBeforeLoad")!==false){var D=function(){n=j.innerHTML;if(n&&!flashembed.isSupported(g.version)){j.innerHTML=""}if(F){F.cached=true;y(J,"onLoad",F)}flashembed(j,g,{config:m})};var E=0;B(o,function(){this.unload(function(G){if(++E==o.length){D()}})})}return I},unload:function(F){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(F){F(false)}return I}if(n.replace(/\s/g,"")!==""){if(I._fireEvent("onBeforeUnload")===false){if(F){F(false)}return I}d=true;try{if(H){H.fp_close();I._fireEvent("onUnload")}}catch(D){}var E=function(){H=null;j.innerHTML=n;d=false;if(F){F(true)}};setTimeout(E,50)}else{if(F){F(false)}}return I},getClip:function(D){if(D===undefined){D=c}return f[D]},getCommonClip:function(){return l},getPlaylist:function(){return f},getPlugin:function(D){var F=K[D];if(!F&&I.isLoaded()){var E=I._api().fp_getPlugin(D);if(E){F=new A(D,E,I);K[D]=F}}return F},getScreen:function(){return I.getPlugin("screen")},getControls:function(){return I.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return I.getPlugin("logo")._fireEvent("onUpdate")}catch(D){}},getPlay:function(){return I.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(D){return D?z(m):m},getFlashParams:function(){return g},loadPlugin:function(G,F,P,O){if(typeof P=="function"){O=P;P={}}var E=O?t():"_";I._api().fp_loadPlugin(G,F,P,E);var D={};D[E]=O;var Q=new A(G,null,I,D);K[G]=Q;return Q},getState:function(){return I.isLoaded()?H.fp_getState():-1},play:function(E,D){var F=function(){if(E!==undefined){I._api().fp_play(E,D)}else{I._api().fp_play()}};if(I.isLoaded()){F()}else{if(d){setTimeout(function(){I.play(E,D)},50)}else{I.load(function(){F()})}}return I},getVersion:function(){var E="flowplayer.js 3.2.6";if(I.isLoaded()){var D=H.fp_getVersion();D.push(E);return D}return E},_api:function(){if(!I.isLoaded()){throw"Flowplayer "+I.id()+" not loaded when calling an API method"}return H},setClip:function(D){I.setPlaylist([D]);return I},getIndex:function(){return i},_swfHeight:function(){return H.clientHeight}});B(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var D="on"+this;if(D.indexOf("*")!=-1){D=D.slice(0,D.length-1);var E="onBefore"+D.slice(2);I[E]=function(F){y(J,E,F);return I}}I[D]=function(F){y(J,D,F);return I}});B(("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 D=this;I[D]=function(F,E){if(!I.isLoaded()){return I}var G=null;if(F!==undefined&&E!==undefined){G=H["fp_"+D](F,E)}else{G=(F===undefined)?H["fp_"+D]():H["fp_"+D](F)}return G==="undefined"||G===undefined?I:G}});I._fireEvent=function(X){if(typeof X=="string"){X=[X]}var Y=X[0],V=X[1],T=X[2],S=X[3],G=0;if(m.debug){v(X)}if(!I.isLoaded()&&Y=="onLoad"&&V=="player"){H=H||r(k);h=I._swfHeight();B(f,function(){this._fireEvent("onLoad")});B(K,function(M,N){N._fireEvent("onUpdate")});l._fireEvent("onLoad")}if(Y=="onLoad"&&V!="player"){return}if(Y=="onError"){if(typeof V=="string"||(typeof V=="number"&&typeof T=="number")){V=T;T=S}}if(Y=="onContextMenu"){B(m.contextMenu[V],function(M,N){N.call(I)});return}if(Y=="onPluginEvent"||Y=="onBeforePluginEvent"){var D=V.name||V;var E=K[D];if(E){E._fireEvent("onUpdate",V);return E._fireEvent(T,X.slice(3))}return}if(Y=="onPlaylistReplace"){f=[];var U=0;B(V,function(){f.push(new w(this,U++,I))})}if(Y=="onClipAdd"){if(V.isInStream){return}V=new w(V,T,I);f.splice(T,0,V);for(G=T+1;G<f.length;G++){f[G].index++}}var W=true;if(typeof V=="number"&&V<f.length){c=V;var F=f[V];if(F){W=F._fireEvent(Y,T,S)}if(!F||W!==false){W=l._fireEvent(Y,T,S,F)}}B(J[Y],function(){W=this.call(I,V,T);if(this.cached){J[Y].splice(G,1)}if(W===false){return false}G++});return W};function b(){if($f(j)){$f(j).getParent().innerHTML="";i=$f(j).getIndex();o[i]=I}else{o.push(I);i=o.length-1}a=parseInt(j.style.height,10)||j.clientHeight;e=j.id||"fp"+t();k=g.id||e+"_api";g.id=k;m.playerId=e;if(typeof m=="string"){m={clip:{url:m}}}if(typeof m.clip=="string"){m.clip={url:m.clip}}m.clip=m.clip||{};if(j.getAttribute("href",2)&&!m.clip.url){m.clip.url=j.getAttribute("href",2)}l=new w(m.clip,-1,I);m.playlist=m.playlist||[m.clip];var E=0;B(m.playlist,function(){var G=this;if(typeof G=="object"&&G.length){G={url:""+G}}B(m.clip,function(N,O){if(O!==undefined&&G[N]===undefined&&typeof O!="function"){G[N]=O}});m.playlist[E]=G;G=new w(G,E,I);f.push(G);E++});B(m,function(G,M){if(typeof M=="function"){if(l[G]){l[G](M)}else{y(J,G,M)}delete m[G]}});B(m.plugins,function(G,M){if(M){K[G]=new A(G,M,I)}});if(!m.plugins||m.plugins.controls===undefined){K.controls=new A("controls",null,I)}K.canvas=new A("canvas",null,I);n=j.innerHTML;function F(M){var G=I.hasiPadSupport&&I.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(f[0].url)&&!G){return true}if(!I.isLoaded()&&I._fireEvent("onBeforeClick")!==false){I.load()}return u(M)}function D(){if(n.replace(/\s/g,"")!==""){if(j.addEventListener){j.addEventListener("click",F,false)}else{if(j.attachEvent){j.attachEvent("onclick",F)}}}else{if(j.addEventListener){j.addEventListener("click",u,false)}I.load()}}setTimeout(D,0)}if(typeof j=="string"){var L=r(j);if(!L){throw"Flowplayer cannot access element: "+j}j=L;b()}else{b()}}var o=[];function s(a){this.length=a.length;this.each=function(b){B(a,b)};this.size=function(){return a.length}}window.flowplayer=window.$f=function(){var b=null;var a=arguments[0];if(!arguments.length){B(o,function(){if(this.isLoaded()){b=this;return false}});return b||o[0]}if(arguments.length==1){if(typeof a=="number"){return o[a]}else{if(a=="*"){return new s(o)}B(o,function(){if(this.id()==a.id||this.id()==a||this.getParent()==a){b=this;return false}});return b}}if(arguments.length>1){var f=arguments[1],c=(arguments.length==3)?arguments[2]:{};if(typeof f=="string"){f={src:f}}f=x({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},f);if(typeof a=="string"){if(a.indexOf(".")!=-1){var e=[];B(C(a),function(){e.push(new q(this,z(f),z(c)))});return new s(e)}else{var d=r(a);return new q(d!==null?d:a,f,c)}}else{if(a){return new q(a,f,c)}}}return null};x(window.$f,{fireEvent:function(){var a=[].slice.call(arguments);var b=$f(a[0]);return b?b._fireEvent(a.slice(1)):null},addPlugin:function(a,b){q.prototype[a]=b;return $f},each:B,extend:x});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(c,b){if(!arguments.length||typeof arguments[0]=="number"){var a=[];this.each(function(){var d=$f(this);if(d){a.push(d)}});return arguments.length?a[arguments[0]]:new s(a)}return this.each(function(){$f(this,z(c),b?z(b):{})})}}})();(function(){var r=document.all,t="http://www.adobe.com/go/getflashplayer",m=typeof jQuery=="function",o=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,l={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 s(c,b){if(b){for(var a in b){if(b.hasOwnProperty(a)){c[a]=b[a]}}}return c}function f(a,d){var c=[];for(var b in a){if(a.hasOwnProperty(b)){c[b]=d(a[b])}}return c}window.flashembed=function(a,c,b){if(typeof a=="string"){a=document.getElementById(a.replace("#",""))}if(!a){return}if(typeof c=="string"){c={src:c}}return new n(a,s(s({},l),c),b)};var q=s(window.flashembed,{conf:l,getVersion:function(){var c,a;try{a=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(e){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=c&&c.GetVariable("$version")}catch(d){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=c&&c.GetVariable("$version")}catch(b){}}}a=o.exec(a);return a?[a[1],a[3]]:[0,0]},asString:function(b){if(b===null||b===undefined){return null}var a=typeof b;if(a=="object"&&b.push){a="array"}switch(a){case"string":b=b.replace(new RegExp('(["\\\\])',"g"),"\\$1");b=b.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+b+'"';case"array":return"["+f(b,function(e){return q.asString(e)}).join(",")+"]";case"function":return'"function()"';case"object":var c=[];for(var d in b){if(b.hasOwnProperty(d)){c.push('"'+d+'":'+q.asString(b[d]))}}return"{"+c.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(e,b){e=s({},e);var d='<object width="'+e.width+'" height="'+e.height+'" id="'+e.id+'" name="'+e.id+'"';if(e.cachebusting){e.src+=((e.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(e.w3c||!r){d+=' data="'+e.src+'" type="application/x-shockwave-flash"'}else{d+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}d+=">";if(e.w3c||r){d+='<param name="movie" value="'+e.src+'" />'}e.width=e.height=e.id=e.w3c=e.src=null;e.onFail=e.version=e.expressInstall=null;for(var c in e){if(e[c]){d+='<param name="'+c+'" value="'+e[c]+'" />'}}var g="";if(b){for(var a in b){if(b[a]){var h=b[a];g+=a+"="+(/function|object/.test(typeof h)?q.asString(h):h)+"&"}}g=g.slice(0,-1);d+='<param name="flashvars" value=\''+g+"' />"}d+="</object>";return d},isSupported:function(a){return u[0]>a[0]||u[0]==a[0]&&u[1]>=a[1]}});var u=q.getVersion();function n(a,d,c){if(q.isSupported(d.version)){a.innerHTML=q.getHTML(d,c)}else{if(d.expressInstall&&q.isSupported([6,65])){a.innerHTML=q.getHTML(s(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!a.innerHTML.replace(/\s/g,"")){a.innerHTML="<h2>Flash version "+d.version+" or greater is required</h2><h3>"+(u[0]>0?"Your version is "+u:"You have no flash plugin installed")+"</h3>"+(a.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+t+"'>here</a></p>");if(a.tagName=="A"){a.onclick=function(){location.href=t}}}if(d.onFail){var b=d.onFail.call(this);if(typeof b=="string"){a.innerHTML=b}}}}if(r){window[d.id]=document.getElementById(d.id)}s(this,{getRoot:function(){return a},getOptions:function(){return d},getConf:function(){return c},getApi:function(){return a.firstChild}})}if(m){jQuery.tools=jQuery.tools||{version:"3.2.6"};jQuery.tools.flashembed={conf:l};jQuery.fn.flashembed=function(b,a){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,b,a))})}}})();(function(d,b){var a=d.document;(function(){var f=false,e=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.JRClass=function(){};JRClass.extend=function(j){var g=this.prototype;f=true;var k=new this();f=false;for(var i in j){k[i]=typeof j[i]=="function"&&typeof g[i]=="function"&&e.test(j[i])?(function(m,l){return function(){var o=this._super;this._super=g[m];var n=l.apply(this,arguments);this._super=o;return n}})(i,j[i]):j[i]}function h(){if(!f&&this.init){this.init.apply(this,arguments)}}h.prototype=k;h.constructor=h;h.extend=arguments.callee;return h}})();var c=JRClass.extend({init:function(e,f){if(typeof e=="string"){this.video=a.getElementById(e)}else{this.video=e}this.video.player=this;this.values={};this.elements={};this.options={autoplay:false,preload:true,useBuiltInControls:false,controlsBelow:false,controlsAtStart:false,controlsHiding:true,defaultVolume:0.85,playerFallbackOrder:["html5","flash","links"],flashPlayer:"htmlObject",flashPlayerVersion:false};if(typeof c.options=="object"){_V_.merge(this.options,c.options)}if(typeof f=="object"){_V_.merge(this.options,f)}if(this.getPreloadAttribute()!==b){this.options.preload=this.getPreloadAttribute()}if(this.getAutoplayAttribute()!==b){this.options.autoplay=this.getAutoplayAttribute()}this.box=this.video.parentNode;this.linksFallback=this.getLinksFallback();this.hideLinksFallback();this.each(this.options.playerFallbackOrder,function(g){if(this[g+"Supported"]()){this[g+"Init"]();return true}});this.activateElement(this,"player");this.activateElement(this.box,"box")},behaviors:{},newBehavior:function(g,e,f){this.behaviors[g]=e;this.extend(f)},activateElement:function(f,e){if(typeof f=="string"){f=a.getElementById(f)}this.behaviors[e].call(this,f)},errors:[],warnings:[],warning:function(e){this.warnings.push(e);this.log(e)},history:[],log:function(g){if(!g){return}if(typeof g=="string"){g={type:g}}if(g.type){this.history.push(g.type)}if(this.history.length>=50){this.history.shift()}try{console.log(g.type)}catch(f){try{opera.postError(g.type)}catch(f){}}},setLocalStorage:function(g,h){if(!localStorage){return}try{localStorage[g]=h}catch(f){if(f.code==22||f.code==1014){this.warning(c.warnings.localStorageFull)}}},getPreloadAttribute:function(){if(typeof this.video.hasAttribute=="function"&&this.video.hasAttribute("preload")){var e=this.video.getAttribute("preload");if(e===""||e==="true"){return"auto"}if(e==="false"){return"none"}return e}},getAutoplayAttribute:function(){if(typeof this.video.hasAttribute=="function"&&this.video.hasAttribute("autoplay")){var e=this.video.getAttribute("autoplay");if(e==="false"){return false}return true}},bufferedPercent:function(){return(this.duration())?this.buffered()[1]/this.duration():0},each:function(e,f){if(!e||e.length===0){return}for(var g=0,h=e.length;g<h;g++){if(f.call(this,e[g],g)){break}}},extend:function(f){for(var e in f){if(f.hasOwnProperty(e)){this[e]=f[e]}}}});c.player=c.prototype;c.player.extend({flashSupported:function(){if(!this.flashElement){this.flashElement=this.getFlashElement()}if(this.flashElement&&this.flashPlayerVersionSupported()){return true}else{return false}},flashInit:function(){this.replaceWithFlash();this.element=this.flashElement;this.video.src="";var e=c.flashPlayers[this.options.flashPlayer];this.extend(c.flashPlayers[this.options.flashPlayer].api);(e.init.context(this))()},getFlashElement:function(){var e=this.video.children;for(var f=0,g=e.length;f<g;f++){if(e[f].className=="vjs-flash-fallback"){return e[f]}}},replaceWithFlash:function(){if(this.flashElement){this.box.insertBefore(this.flashElement,this.video);this.video.style.display="none"}},flashPlayerVersionSupported:function(){var e=(this.options.flashPlayerVersion)?this.options.flashPlayerVersion:c.flashPlayers[this.options.flashPlayer].flashPlayerVersion;return c.getFlashVersion()>=e}});c.flashPlayers={};c.flashPlayers.htmlObject={flashPlayerVersion:9,init:function(){return true},api:{width:function(e){if(e!==b){this.element.width=e;this.box.style.width=e+"px";this.triggerResizeListeners();return this}return this.element.width},height:function(e){if(e!==b){this.element.height=e;this.box.style.height=e+"px";this.triggerResizeListeners();return this}return this.element.height}}};c.player.extend({linksSupported:function(){return true},linksInit:function(){this.showLinksFallback();this.element=this.video},getLinksFallback:function(){return this.box.getElementsByTagName("P")[0]},hideLinksFallback:function(){if(this.linksFallback){this.linksFallback.style.display="none"}},showLinksFallback:function(){if(this.linksFallback){this.linksFallback.style.display="block"}}});c.merge=function(f,g,h){for(var e in g){if(g.hasOwnProperty(e)&&(!h||!f.hasOwnProperty(e))){f[e]=g[e]}}return f};c.extend=function(e){this.merge(this,e,true)};c.extend({setupAllWhenReady:function(e){c.options=e;c.DOMReady(c.setup)},DOMReady:function(e){c.addToDOMReady(e)},setup:function(k,f){var h=false,g=[],j;if(!k||k=="All"){k=c.getVideoJSTags()}else{if(typeof k!="object"||k.nodeType==1){k=[k];h=true}}for(var e=0;e<k.length;e++){if(typeof k[e]=="string"){j=a.getElementById(k[e])}else{j=k[e]}g.push(new c(j,f))}return(h)?g[0]:g},getVideoJSTags:function(){var k=a.getElementsByTagName("video"),g=[],h;for(var e=0,f=k.length;e<f;e++){h=k[e];if(h.className.indexOf("video-js")!=-1){g.push(h)}}return g},browserSupportsVideo:function(){if(typeof c.videoSupport!="undefined"){return c.videoSupport}c.videoSupport=!!a.createElement("video").canPlayType;return c.videoSupport},getFlashVersion:function(){if(typeof c.flashVersion!="undefined"){return c.flashVersion}var i=0,f;if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object"){f=navigator.plugins["Shockwave Flash"].description;if(f&&!(typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-shockwave-flash"]&&!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)){i=parseInt(f.match(/^.*\s+([^\s]+)\.[^\s]+\s+[^\s]+$/)[1],10)}}else{if(typeof d.ActiveXObject!="undefined"){try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(h){i=parseInt(h.GetVariable("$version").match(/^[^\s]+\s(\d+)/)[1],10)}}catch(g){}}}c.flashVersion=i;return c.flashVersion},isIE:function(){return !+"\v1"},isIPad:function(){return navigator.userAgent.match(/iPad/i)!==null},isIPhone:function(){return navigator.userAgent.match(/iPhone/i)!==null},isIOS:function(){return c.isIPhone()||c.isIPad()},iOSVersion:function(){var e=navigator.userAgent.match(/OS (\d+)_/i);if(e&&e[1]){return e[1]}},isAndroid:function(){return navigator.userAgent.match(/Android/i)!==null},androidVersion:function(){var e=navigator.userAgent.match(/Android (\d+)\./i);if(e&&e[1]){return e[1]}},warnings:{videoNotReady:"Video is not ready yet (try playing the video first).",localStorageFull:"Local Storage is Full"}});if(c.isIE()){a.createElement("video")}d.VideoJS=d._V_=c;c.player.extend({html5Supported:function(){if(c.browserSupportsVideo()&&this.canPlaySource()){return true}else{return false}},html5Init:function(){this.element=this.video;this.fixPreloading();this.supportProgressEvents();this.volume((localStorage&&localStorage.volume)||this.options.defaultVolume);if(c.isIOS()){this.options.useBuiltInControls=true;this.iOSInterface()}else{if(c.isAndroid()){this.options.useBuiltInControls=true;this.androidInterface()}}if(!this.options.useBuiltInControls){this.video.controls=false;if(this.options.controlsBelow){_V_.addClass(this.box,"vjs-controls-below")}this.activateElement(this.video,"playToggle");this.buildStylesCheckDiv();this.buildAndActivatePoster();this.buildBigPlayButton();this.buildAndActivateSpinner();this.buildAndActivateControlBar();this.loadInterface();this.getSubtitles()}},canPlaySource:function(){if(this.canPlaySourceResult){return this.canPlaySourceResult}var f=this.video.children;for(var g=0,h=f.length;g<h;g++){if(f[g].tagName.toUpperCase()=="SOURCE"){var e=this.video.canPlayType(f[g].type)||this.canPlayExt(f[g].src);if(e=="probably"||e=="maybe"){this.firstPlayableSource=f[g];this.canPlaySourceResult=true;return true}}}this.canPlaySourceResult=false;return false},canPlayExt:function(g){if(!g){return""}var f=g.match(/\.([^\.]+)$/);if(f&&f[1]){var e=f[1].toLowerCase();if(c.isAndroid()){if(e=="mp4"||e=="m4v"){return"maybe"}}else{if(c.isIOS()){if(e=="m3u8"){return"maybe"}}}}return""},forceTheSource:function(){this.video.src=this.firstPlayableSource.src;this.video.load()},fixPreloading:function(){if(typeof this.video.hasAttribute=="function"&&this.video.hasAttribute("preload")&&this.video.preload!="none"){this.video.autobuffer=true}else{this.video.autobuffer=false;this.video.preload="none"}},supportProgressEvents:function(f){_V_.addListener(this.video,"progress",this.playerOnVideoProgress.context(this))},playerOnVideoProgress:function(e){this.setBufferedFromProgress(e)},setBufferedFromProgress:function(e){if(e.total>0){var f=(e.loaded/e.total)*this.duration();if(f>this.values.bufferEnd){this.values.bufferEnd=f}}},iOSInterface:function(){if(c.iOSVersion()<4){this.forceTheSource()}if(c.isIPad()){this.buildAndActivateSpinner()}},androidInterface:function(){this.forceTheSource();_V_.addListener(this.video,"click",function(){this.play()});this.buildBigPlayButton();_V_.addListener(this.bigPlayButton,"click",function(){this.play()}.context(this));this.positionBox();this.showBigPlayButtons()},loadInterface:function(){if(!this.stylesHaveLoaded()){if(!this.positionRetries){this.positionRetries=1}if(this.positionRetries++<100){setTimeout(this.loadInterface.context(this),10);return}}this.hideStylesCheckDiv();this.showPoster();if(this.video.paused!==false){this.showBigPlayButtons()}if(this.options.controlsAtStart){this.showControlBars()}this.positionAll()},buildAndActivateControlBar:function(){this.controls=_V_.createElement("div",{className:"vjs-controls"});this.box.appendChild(this.controls);this.activateElement(this.controls,"controlBar");this.activateElement(this.controls,"mouseOverVideoReporter");this.playControl=_V_.createElement("div",{className:"vjs-play-control",innerHTML:"<span></span>"});this.controls.appendChild(this.playControl);this.activateElement(this.playControl,"playToggle");this.progressControl=_V_.createElement("div",{className:"vjs-progress-control"});this.controls.appendChild(this.progressControl);this.progressHolder=_V_.createElement("div",{className:"vjs-progress-holder"});this.progressControl.appendChild(this.progressHolder);this.activateElement(this.progressHolder,"currentTimeScrubber");this.loadProgressBar=_V_.createElement("div",{className:"vjs-load-progress"});this.progressHolder.appendChild(this.loadProgressBar);this.activateElement(this.loadProgressBar,"loadProgressBar");this.playProgressBar=_V_.createElement("div",{className:"vjs-play-progress"});this.progressHolder.appendChild(this.playProgressBar);this.activateElement(this.playProgressBar,"playProgressBar");this.timeControl=_V_.createElement("div",{className:"vjs-time-control"});this.controls.appendChild(this.timeControl);this.currentTimeDisplay=_V_.createElement("span",{className:"vjs-current-time-display",innerHTML:"00:00"});this.timeControl.appendChild(this.currentTimeDisplay);this.activateElement(this.currentTimeDisplay,"currentTimeDisplay");this.timeSeparator=_V_.createElement("span",{innerHTML:" / "});this.timeControl.appendChild(this.timeSeparator);this.durationDisplay=_V_.createElement("span",{className:"vjs-duration-display",innerHTML:"00:00"});this.timeControl.appendChild(this.durationDisplay);this.activateElement(this.durationDisplay,"durationDisplay");this.volumeControl=_V_.createElement("div",{className:"vjs-volume-control",innerHTML:"<div><span></span><span></span><span></span><span></span><span></span><span></span></div>"});this.controls.appendChild(this.volumeControl);this.activateElement(this.volumeControl,"volumeScrubber");this.volumeDisplay=this.volumeControl.children[0];this.activateElement(this.volumeDisplay,"volumeDisplay");this.fullscreenControl=_V_.createElement("div",{className:"vjs-fullscreen-control",innerHTML:"<div><span></span><span></span><span></span><span></span></div>"});this.controls.appendChild(this.fullscreenControl);this.activateElement(this.fullscreenControl,"fullscreenToggle")},buildAndActivatePoster:function(){this.updatePosterSource();if(this.video.poster){this.poster=a.createElement("img");this.box.appendChild(this.poster);this.poster.src=this.video.poster;this.poster.className="vjs-poster";this.activateElement(this.poster,"poster")}else{this.poster=false}},buildBigPlayButton:function(){this.bigPlayButton=_V_.createElement("div",{className:"vjs-big-play-button",innerHTML:"<span></span>"});this.box.appendChild(this.bigPlayButton);this.activateElement(this.bigPlayButton,"bigPlayButton")},buildAndActivateSpinner:function(){this.spinner=_V_.createElement("div",{className:"vjs-spinner",innerHTML:"<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>"});this.box.appendChild(this.spinner);this.activateElement(this.spinner,"spinner")},buildStylesCheckDiv:function(){this.stylesCheckDiv=_V_.createElement("div",{className:"vjs-styles-check"});this.stylesCheckDiv.style.position="absolute";this.box.appendChild(this.stylesCheckDiv)},hideStylesCheckDiv:function(){this.stylesCheckDiv.style.display="none"},stylesHaveLoaded:function(){if(this.stylesCheckDiv.offsetHeight!=5){return false}else{return true}},positionAll:function(){this.positionBox();this.positionControlBars();this.positionPoster()},positionBox:function(){if(this.videoIsFullScreen){this.box.style.width="714px";this.element.style.height="401px";if(this.options.controlsBelow){this.box.style.height="401px";this.element.style.height="401px"}}else{if(this.options.controlsBelow){this.element.style.height="401px";this.box.style.height="401px"}}},getSubtitles:function(){var g=this.video.getElementsByTagName("TRACK");for(var e=0,f=g.length;e<f;e++){if(g[e].getAttribute("kind")=="subtitles"&&g[e].getAttribute("src")){this.subtitlesSource=g[e].getAttribute("src");this.loadSubtitles();this.buildSubtitles()}}},loadSubtitles:function(){_V_.get(this.subtitlesSource,this.parseSubtitles.context(this))},parseSubtitles:function(k){var h=k.split("\n"),g="",l,n,m;this.subtitles=[];this.currentSubtitle=false;this.lastSubtitleIndex=0;for(var e=0;e<h.length;e++){g=_V_.trim(h[e]);if(g){l={id:g,index:this.subtitles.length};g=_V_.trim(h[++e]);n=g.split(" --> ");l.start=this.parseSubtitleTime(n[0]);l.end=this.parseSubtitleTime(n[1]);m=[];for(var f=e;f<h.length;f++){g=_V_.trim(h[++e]);if(!g){break}m.push(g)}l.text=m.join("<br/>");this.subtitles.push(l)}}},parseSubtitleTime:function(h){var e=h.split(":"),g=0;g+=parseFloat(e[0])*60*60;g+=parseFloat(e[1])*60;var f=e[2].split(/\.|,/);g+=parseFloat(f[0]);ms=parseFloat(f[1]);if(ms){g+=ms/1000}return g},buildSubtitles:function(){this.subtitlesDisplay=_V_.createElement("div",{className:"vjs-subtitles"});this.box.appendChild(this.subtitlesDisplay);this.activateElement(this.subtitlesDisplay,"subtitlesDisplay")},addVideoListener:function(f,e){_V_.addListener(this.video,f,e.rEvtContext(this))},play:function(){this.video.play();return this},onPlay:function(e){this.addVideoListener("play",e);return this},pause:function(){this.video.pause();return this},onPause:function(e){this.addVideoListener("pause",e);return this},paused:function(){return this.video.paused},currentTime:function(g){if(g!==b){try{this.video.currentTime=g}catch(f){this.warning(c.warnings.videoNotReady)}this.values.currentTime=g;return this}return this.video.currentTime},onCurrentTimeUpdate:function(e){this.currentTimeListeners.push(e)},duration:function(){return this.video.duration},buffered:function(){if(this.values.bufferStart===b){this.values.bufferStart=0;this.values.bufferEnd=0}if(this.video.buffered&&this.video.buffered.length>0){var e=this.video.buffered.end(0);if(e>this.values.bufferEnd){this.values.bufferEnd=e}}return[this.values.bufferStart,this.values.bufferEnd]},volume:function(e){if(e!==b){this.values.volume=Math.max(0,Math.min(1,parseFloat(e)));this.video.volume=this.values.volume;this.setLocalStorage("volume",this.values.volume);return this}if(this.values.volume){return this.values.volume}return this.video.volume},onVolumeChange:function(e){_V_.addListener(this.video,"volumechange",e.rEvtContext(this))},width:function(e){if(e!==b){this.video.width=e;this.box.style.width=e+"px";this.triggerResizeListeners();return this}return this.video.offsetWidth},height:function(e){if(e!==b){this.video.height=e;this.box.style.height=e+"px";this.triggerResizeListeners();return this}return this.video.offsetHeight},supportsFullScreen:function(){if(typeof this.video.webkitEnterFullScreen=="function"){if(!navigator.userAgent.match("Chrome")&&!navigator.userAgent.match("Mac OS X 10.5")){return true}}return false},html5EnterNativeFullScreen:function(){try{this.video.webkitEnterFullScreen()}catch(f){if(f.code==11){this.warning(c.warnings.videoNotReady)}}return this},enterFullScreen:function(){if(this.supportsFullScreen()){this.html5EnterNativeFullScreen()}else{this.enterFullWindow()}},exitFullScreen:function(){if(this.supportsFullScreen()){}else{this.exitFullWindow()}},enterFullWindow:function(){this.videoIsFullScreen=true;this.docOrigOverflow=a.documentElement.style.overflow;_V_.addListener(a,"keydown",this.fullscreenOnEscKey.rEvtContext(this));_V_.addListener(d,"resize",this.fullscreenOnWindowResize.rEvtContext(this));a.documentElement.style.overflow="hidden";_V_.addClass(this.box,"vjs-fullscreen");this.positionAll()},exitFullWindow:function(){this.videoIsFullScreen=false;a.removeEventListener("keydown",this.fullscreenOnEscKey,false);d.removeEventListener("resize",this.fullscreenOnWindowResize,false);a.documentElement.style.overflow=this.docOrigOverflow;_V_.removeClass(this.box,"vjs-fullscreen");this.positionAll()},onError:function(e){this.addVideoListener("error",e);return this},onEnded:function(e){this.addVideoListener("ended",e);return this}});c.player.newBehavior("player",function(e){this.onError(this.playerOnVideoError);this.onPlay(this.playerOnVideoPlay);this.onPlay(this.trackCurrentTime);this.onPause(this.playerOnVideoPause);this.onPause(this.stopTrackingCurrentTime);this.onEnded(this.playerOnVideoEnded);this.trackBuffered();this.onBufferedUpdate(this.isBufferFull)},{playerOnVideoError:function(e){this.log(e);this.log(this.video.error)},playerOnVideoPlay:function(e){this.hasPlayed=true},playerOnVideoPause:function(e){},playerOnVideoEnded:function(e){this.currentTime(0);this.pause()},trackBuffered:function(){this.bufferedInterval=setInterval(this.triggerBufferedListeners.context(this),500)},stopTrackingBuffered:function(){clearInterval(this.bufferedInterval)},bufferedListeners:[],onBufferedUpdate:function(e){this.bufferedListeners.push(e)},triggerBufferedListeners:function(){this.isBufferFull();this.each(this.bufferedListeners,function(e){(e.context(this))()})},isBufferFull:function(){if(this.bufferedPercent()==1){this.stopTrackingBuffered()}},trackCurrentTime:function(){if(this.currentTimeInterval){clearInterval(this.currentTimeInterval)}this.currentTimeInterval=setInterval(this.triggerCurrentTimeListeners.context(this),100);this.trackingCurrentTime=true},stopTrackingCurrentTime:function(){clearInterval(this.currentTimeInterval);this.trackingCurrentTime=false},currentTimeListeners:[],triggerCurrentTimeListeners:function(e,f){this.each(this.currentTimeListeners,function(g){(g.context(this))(f||this.currentTime())})},resizeListeners:[],onResize:function(e){this.resizeListeners.push(e)},triggerResizeListeners:function(){this.each(this.resizeListeners,function(e){(e.context(this))()})}});c.player.newBehavior("mouseOverVideoReporter",function(e){_V_.addListener(e,"mousemove",this.mouseOverVideoReporterOnMouseMove.context(this));_V_.addListener(e,"mouseout",this.mouseOverVideoReporterOnMouseOut.context(this))},{mouseOverVideoReporterOnMouseMove:function(){this.showControlBars();clearInterval(this.mouseMoveTimeout);this.mouseMoveTimeout=setTimeout(this.hideControlBars.context(this),4000)},mouseOverVideoReporterOnMouseOut:function(e){var f=e.relatedTarget;while(f&&f!==this.box){f=f.parentNode}if(f!==this.box){this.hideControlBars()}}});c.player.newBehavior("box",function(e){this.positionBox();_V_.addClass(e,"vjs-paused");this.activateElement(e,"mouseOverVideoReporter");this.onPlay(this.boxOnVideoPlay);this.onPause(this.boxOnVideoPause)},{boxOnVideoPlay:function(){_V_.removeClass(this.box,"vjs-paused");_V_.addClass(this.box,"vjs-playing")},boxOnVideoPause:function(){_V_.removeClass(this.box,"vjs-playing");_V_.addClass(this.box,"vjs-paused")}});c.player.newBehavior("poster",function(e){this.activateElement(e,"mouseOverVideoReporter");this.activateElement(e,"playButton");this.onPlay(this.hidePoster);this.onEnded(this.showPoster);this.onResize(this.positionPoster)},{showPoster:function(){if(!this.poster){return}this.poster.style.display="block";this.positionPoster()},positionPoster:function(){if(!this.poster||this.poster.style.display=="none"){return}this.poster.style.height=this.height()+"px";this.poster.style.width=this.width()+"px"},hidePoster:function(){if(!this.poster){return}this.poster.style.display="none"},updatePosterSource:function(){if(!this.video.poster){var e=this.video.getElementsByTagName("img");if(e.length>0){this.video.poster=e[0].src}}}});c.player.newBehavior("controlBar",function(e){if(!this.controlBars){this.controlBars=[];this.onResize(this.positionControlBars)}this.controlBars.push(e);_V_.addListener(e,"mousemove",this.onControlBarsMouseMove.context(this));_V_.addListener(e,"mouseout",this.onControlBarsMouseOut.context(this))},{showControlBars:function(){if(!this.options.controlsAtStart&&!this.hasPlayed){return}this.each(this.controlBars,function(e){e.style.display="block"})},positionControlBars:function(){this.updatePlayProgressBars();this.updateLoadProgressBars()},hideControlBars:function(){if(this.options.controlsHiding&&!this.mouseIsOverControls){this.each(this.controlBars,function(e){e.style.display="none"})}},onControlBarsMouseMove:function(){this.mouseIsOverControls=true},onControlBarsMouseOut:function(e){this.mouseIsOverControls=false}});c.player.newBehavior("playToggle",function(e){if(!this.elements.playToggles){this.elements.playToggles=[];this.onPlay(this.playTogglesOnPlay);this.onPause(this.playTogglesOnPause)}this.elements.playToggles.push(e);_V_.addListener(e,"click",this.onPlayToggleClick.context(this))},{onPlayToggleClick:function(e){if(this.paused()){this.play()}else{this.pause()}},playTogglesOnPlay:function(e){this.each(this.elements.playToggles,function(f){_V_.removeClass(f,"vjs-paused");_V_.addClass(f,"vjs-playing")})},playTogglesOnPause:function(e){this.each(this.elements.playToggles,function(f){_V_.removeClass(f,"vjs-playing");_V_.addClass(f,"vjs-paused")})}});c.player.newBehavior("playButton",function(e){_V_.addListener(e,"click",this.onPlayButtonClick.context(this))},{onPlayButtonClick:function(e){this.play()}});c.player.newBehavior("pauseButton",function(e){_V_.addListener(e,"click",this.onPauseButtonClick.context(this))},{onPauseButtonClick:function(e){this.pause()}});c.player.newBehavior("playProgressBar",function(e){if(!this.playProgressBars){this.playProgressBars=[];this.onCurrentTimeUpdate(this.updatePlayProgressBars)}this.playProgressBars.push(e)},{updatePlayProgressBars:function(e){var f=(e!==b)?e/this.duration():this.currentTime()/this.duration();if(isNaN(f)){f=0}this.each(this.playProgressBars,function(g){if(g.style){g.style.width=_V_.round(f*100,2)+"%"}})}});c.player.newBehavior("loadProgressBar",function(e){if(!this.loadProgressBars){this.loadProgressBars=[]}this.loadProgressBars.push(e);this.onBufferedUpdate(this.updateLoadProgressBars)},{updateLoadProgressBars:function(){this.each(this.loadProgressBars,function(e){if(e.style){e.style.width=_V_.round(this.bufferedPercent()*100,2)+"%"}})}});c.player.newBehavior("currentTimeDisplay",function(e){if(!this.currentTimeDisplays){this.currentTimeDisplays=[];this.onCurrentTimeUpdate(this.updateCurrentTimeDisplays)}this.currentTimeDisplays.push(e)},{updateCurrentTimeDisplays:function(e){if(!this.currentTimeDisplays){return}var f=(e)?e:this.currentTime();this.each(this.currentTimeDisplays,function(g){g.innerHTML=_V_.formatTime(f)})}});c.player.newBehavior("durationDisplay",function(e){if(!this.durationDisplays){this.durationDisplays=[];this.onCurrentTimeUpdate(this.updateDurationDisplays)}this.durationDisplays.push(e)},{updateDurationDisplays:function(){if(!this.durationDisplays){return}this.each(this.durationDisplays,function(e){if(this.duration()){e.innerHTML=_V_.formatTime(this.duration())}})}});c.player.newBehavior("currentTimeScrubber",function(e){_V_.addListener(e,"mousedown",this.onCurrentTimeScrubberMouseDown.rEvtContext(this))},{onCurrentTimeScrubberMouseDown:function(e,f){e.preventDefault();this.currentScrubber=f;this.stopTrackingCurrentTime();this.videoWasPlaying=!this.paused();this.pause();_V_.blockTextSelection();this.setCurrentTimeWithScrubber(e);_V_.addListener(a,"mousemove",this.onCurrentTimeScrubberMouseMove.rEvtContext(this));_V_.addListener(a,"mouseup",this.onCurrentTimeScrubberMouseUp.rEvtContext(this))},onCurrentTimeScrubberMouseMove:function(e){this.setCurrentTimeWithScrubber(e)},onCurrentTimeScrubberMouseUp:function(e){_V_.unblockTextSelection();a.removeEventListener("mousemove",this.onCurrentTimeScrubberMouseMove,false);a.removeEventListener("mouseup",this.onCurrentTimeScrubberMouseUp,false);if(this.videoWasPlaying){this.play();this.trackCurrentTime()}},setCurrentTimeWithScrubber:function(e){var f=_V_.getRelativePosition(e.pageX,this.currentScrubber);var g=f*this.duration();this.triggerCurrentTimeListeners(0,g);if(g==this.duration()){g=g-0.1}this.currentTime(g)}});c.player.newBehavior("volumeDisplay",function(e){if(!this.volumeDisplays){this.volumeDisplays=[];this.onVolumeChange(this.updateVolumeDisplays)}this.volumeDisplays.push(e);this.updateVolumeDisplay(e)},{updateVolumeDisplays:function(){if(!this.volumeDisplays){return}this.each(this.volumeDisplays,function(e){this.updateVolumeDisplay(e)})},updateVolumeDisplay:function(e){var f=Math.ceil(this.volume()*6);this.each(e.children,function(g,h){if(h<f){_V_.addClass(g,"vjs-volume-level-on")}else{_V_.removeClass(g,"vjs-volume-level-on")}})}});c.player.newBehavior("volumeScrubber",function(e){_V_.addListener(e,"mousedown",this.onVolumeScrubberMouseDown.rEvtContext(this))},{onVolumeScrubberMouseDown:function(e,f){_V_.blockTextSelection();this.currentScrubber=f;this.setVolumeWithScrubber(e);_V_.addListener(a,"mousemove",this.onVolumeScrubberMouseMove.rEvtContext(this));_V_.addListener(a,"mouseup",this.onVolumeScrubberMouseUp.rEvtContext(this))},onVolumeScrubberMouseMove:function(e){this.setVolumeWithScrubber(e)},onVolumeScrubberMouseUp:function(e){this.setVolumeWithScrubber(e);_V_.unblockTextSelection();a.removeEventListener("mousemove",this.onVolumeScrubberMouseMove,false);a.removeEventListener("mouseup",this.onVolumeScrubberMouseUp,false)},setVolumeWithScrubber:function(e){var f=_V_.getRelativePosition(e.pageX,this.currentScrubber);this.volume(f)}});c.player.newBehavior("fullscreenToggle",function(e){_V_.addListener(e,"click",this.onFullscreenToggleClick.context(this))},{onFullscreenToggleClick:function(e){if(!this.videoIsFullScreen){this.enterFullScreen()}else{this.exitFullScreen()}},fullscreenOnWindowResize:function(e){this.positionControlBars()},fullscreenOnEscKey:function(e){if(e.keyCode==27){this.exitFullScreen()}}});c.player.newBehavior("bigPlayButton",function(e){if(!this.elements.bigPlayButtons){this.elements.bigPlayButtons=[];this.onPlay(this.bigPlayButtonsOnPlay);this.onEnded(this.bigPlayButtonsOnEnded)}this.elements.bigPlayButtons.push(e);this.activateElement(e,"playButton")},{bigPlayButtonsOnPlay:function(e){this.hideBigPlayButtons()},bigPlayButtonsOnEnded:function(e){this.showBigPlayButtons()},showBigPlayButtons:function(){this.each(this.elements.bigPlayButtons,function(e){e.style.display="block"})},hideBigPlayButtons:function(){this.each(this.elements.bigPlayButtons,function(e){e.style.display="none"})}});c.player.newBehavior("spinner",function(e){if(!this.spinners){this.spinners=[];_V_.addListener(this.video,"loadeddata",this.spinnersOnVideoLoadedData.context(this));_V_.addListener(this.video,"loadstart",this.spinnersOnVideoLoadStart.context(this));_V_.addListener(this.video,"seeking",this.spinnersOnVideoSeeking.context(this));_V_.addListener(this.video,"seeked",this.spinnersOnVideoSeeked.context(this));_V_.addListener(this.video,"canplay",this.spinnersOnVideoCanPlay.context(this));_V_.addListener(this.video,"canplaythrough",this.spinnersOnVideoCanPlayThrough.context(this));_V_.addListener(this.video,"waiting",this.spinnersOnVideoWaiting.context(this));_V_.addListener(this.video,"stalled",this.spinnersOnVideoStalled.context(this));_V_.addListener(this.video,"suspend",this.spinnersOnVideoSuspend.context(this));_V_.addListener(this.video,"playing",this.spinnersOnVideoPlaying.context(this));_V_.addListener(this.video,"timeupdate",this.spinnersOnVideoTimeUpdate.context(this))}this.spinners.push(e)},{showSpinners:function(){this.each(this.spinners,function(e){e.style.display="block"});clearInterval(this.spinnerInterval);this.spinnerInterval=setInterval(this.rotateSpinners.context(this),100)},hideSpinners:function(){this.each(this.spinners,function(e){e.style.display="none"});clearInterval(this.spinnerInterval)},spinnersRotated:0,rotateSpinners:function(){this.each(this.spinners,function(e){e.style.WebkitTransform="scale(0.5) rotate("+this.spinnersRotated+"deg)";e.style.MozTransform="scale(0.5) rotate("+this.spinnersRotated+"deg)"});if(this.spinnersRotated==360){this.spinnersRotated=0}this.spinnersRotated+=45},spinnersOnVideoLoadedData:function(e){this.hideSpinners()},spinnersOnVideoLoadStart:function(e){this.showSpinners()},spinnersOnVideoSeeking:function(e){},spinnersOnVideoSeeked:function(e){},spinnersOnVideoCanPlay:function(e){},spinnersOnVideoCanPlayThrough:function(e){this.hideSpinners()},spinnersOnVideoWaiting:function(e){this.showSpinners()},spinnersOnVideoStalled:function(e){},spinnersOnVideoSuspend:function(e){},spinnersOnVideoPlaying:function(e){this.hideSpinners()},spinnersOnVideoTimeUpdate:function(e){if(this.spinner.style.display=="block"){this.hideSpinners()}}});c.player.newBehavior("subtitlesDisplay",function(e){if(!this.subtitleDisplays){this.subtitleDisplays=[];this.onCurrentTimeUpdate(this.subtitleDisplaysOnVideoTimeUpdate);this.onEnded(function(){this.lastSubtitleIndex=0}.context(this))}this.subtitleDisplays.push(e)},{subtitleDisplaysOnVideoTimeUpdate:function(h){if(this.subtitles){if(!this.currentSubtitle||this.currentSubtitle.start>=h||this.currentSubtitle.end<h){var f=false,g=(this.subtitles[this.lastSubtitleIndex].start>h),e=this.lastSubtitleIndex-(g)?1:0;while(true){if(g){if(e<0||this.subtitles[e].end<h){break}if(this.subtitles[e].start<h){f=e;break}e--}else{if(e>=this.subtitles.length||this.subtitles[e].start>h){break}if(this.subtitles[e].end>h){f=e;break}e++}}if(f!==false){this.currentSubtitle=this.subtitles[f];this.lastSubtitleIndex=f;this.updateSubtitleDisplays(this.currentSubtitle.text)}else{if(this.currentSubtitle){this.currentSubtitle=false;this.updateSubtitleDisplays("")}}}}},updateSubtitleDisplays:function(e){this.each(this.subtitleDisplays,function(f){f.innerHTML=e})}});c.extend({addClass:function(f,e){if((" "+f.className+" ").indexOf(" "+e+" ")==-1){f.className=f.className===""?e:f.className+" "+e}},removeClass:function(g,f){if(g.className.indexOf(f)==-1){return}var e=g.className.split(/\s+/);e.splice(e.lastIndexOf(f),1);g.className=e.join(" ")},createElement:function(f,e){return this.merge(a.createElement(f),e)},blockTextSelection:function(){a.body.focus();a.onselectstart=function(){return false}},unblockTextSelection:function(){a.onselectstart=function(){return true}},formatTime:function(g){var f=Math.round(g);var e=Math.floor(f/60);e=(e>=10)?e:"0"+e;f=Math.floor(f%60);f=(f>=10)?f:"0"+f;return e+":"+f},getRelativePosition:function(f,e){return Math.max(0,Math.min(1,(f-this.findPosX(e))/e.offsetWidth))},findPosX:function(f){var e=f.offsetLeft;while(f=f.offsetParent){e+=f.offsetLeft}return e},getComputedStyleValue:function(e,f){return d.getComputedStyle(e,null).getPropertyValue(f)},round:function(f,e){if(!e){e=0}return Math.round(f*Math.pow(10,e))/Math.pow(10,e)},addListener:function(e,g,f){if(e.addEventListener){e.addEventListener(g,f,false)}else{if(e.attachEvent){e.attachEvent("on"+g,f)}}},removeListener:function(e,g,f){if(e.removeEventListener){e.removeEventListener(g,f,false)}else{if(e.attachEvent){e.detachEvent("on"+g,f)}}},get:function(g,e){if(typeof XMLHttpRequest=="undefined"){XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(h){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(i){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(j){}throw new Error("This browser does not support XMLHttpRequest.")}}var f=new XMLHttpRequest();f.open("GET",g);f.onreadystatechange=function(){if(f.readyState==4&&f.status==200){e(f.responseText)}}.context(this);f.send()},trim:function(e){return e.toString().replace(/^\s+/,"").replace(/\s+$/,"")},bindDOMReady:function(){if(a.readyState==="complete"){return c.onDOMReady()}if(a.addEventListener){a.addEventListener("DOMContentLoaded",c.DOMContentLoaded,false);d.addEventListener("load",c.onDOMReady,false)}else{if(a.attachEvent){a.attachEvent("onreadystatechange",c.DOMContentLoaded);d.attachEvent("onload",c.onDOMReady)}}},DOMContentLoaded:function(){if(a.addEventListener){a.removeEventListener("DOMContentLoaded",c.DOMContentLoaded,false);c.onDOMReady()}else{if(a.attachEvent){if(a.readyState==="complete"){a.detachEvent("onreadystatechange",c.DOMContentLoaded);c.onDOMReady()}}}},DOMReadyList:[],addToDOMReady:function(e){if(c.DOMIsReady){e.call(a)}else{c.DOMReadyList.push(e)}},DOMIsReady:false,onDOMReady:function(){if(c.DOMIsReady){return}if(!a.body){return setTimeout(c.onDOMReady,13)}c.DOMIsReady=true;if(c.DOMReadyList){for(var e=0;e<c.DOMReadyList.length;e++){c.DOMReadyList[e].call(a)}c.DOMReadyList=null}}});c.bindDOMReady();Function.prototype.context=function(f){var e=this,g=function(){return e.apply(f,arguments)};return g};Function.prototype.evtContext=function(f){var e=this,g=function(){var h=this;return e.call(f,arguments[0],h)};return g};Function.prototype.rEvtContext=function(g,f){if(this.hasContext===true){return this}if(!f){f=g}for(var e in f){if(f[e]==this){f[e]=this.evtContext(g);f[e].hasContext=true;return f[e]}}return this.evtContext(g)};if(d.jQuery){(function(e){e.fn.VideoJS=function(f){this.each(function(){c.setup(this,f)});return this};e.fn.player=function(){return this[0].player}})(jQuery)}d.VideoJS=d._V_=c})(window);(function(a){a.browserTest=function(b,h){var f="unknown",g="X",e=function(k,c){for(var j=0;j<c.length;j=j+1){k=k.replace(c[j][0],c[j][1])}return k},d=function(m,j,k,l){var n={name:e((j.exec(m)||[f,f])[1],k)};n[n.name]=true;n.version=(l.exec(m)||[g,g,g,g])[3];if(n.name.match(/safari/)&&n.version>400){n.version="2.0"}if(n.name==="presto"){n.version=(a.browser.version>9.27)?"futhark":"linear_b"}n.versionNumber=parseFloat(n.version,10)||0;n.versionX=(n.version!==g)?(n.version+"").substr(0,1):g;n.className=n.name+n.versionX;return n};b=(b.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?e(b,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,""],["Chrome Safari","Chrome"],["KHTML","Konqueror"],["Minefield","Firefox"],["Navigator","Netscape"]]):b).toLowerCase();a.browser=a.extend((!h)?a.browser:{},d(b,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));a.layout=d(b,/(gecko|konqueror|msie|opera|webkit)/,[["konqueror","khtml"],["msie","trident"],["opera","presto"]],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);a.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[f])[0].replace("sunos","solaris")};if(!h){a("html").addClass([a.os.name,a.browser.name,a.browser.className,a.layout.name,a.layout.className].join(" "))}};a.browserTest(navigator.userAgent)})(jQuery);if((navigator.userAgent.match(/MSIE 9/i))){var isMsie9=true}else{isMsie9=false}if((navigator.userAgent.match(/MSIE 8/i))){var isMsie8=true}else{isMsie8=false}if((navigator.userAgent.match(/MSIE 7/i))){var isMsie7=true}else{isMsie7=false}function columnHeight(){if($("#mod_banner").is(":visible")){var a=$("#mod_banner").height()}else{var a=0}var d=$("#sidebar").height();var b=$("#content").height();var c=b-a;if(d<b){$("#sidebar").height(b)}else{$("#content").height(d)}$("#mod_copy").height(c);$(".temp_sl.sec_patients.sub_urgentcare.pg_ #mod_copy").css({"min-height":b,height:""});$(".temp_ml.sec_newsroom #content").css("height","auto");$(".temp_ml.sec_newsroom #mod_copy").css({"min-height":d,height:""});$(".temp_cp.pg_locations #mod_minibar").css("height",b);$(".pg_locations #mod_copy").css("height","auto");$(".pg_locations #mod_minibar").css("height","auto");$(".pg_search #content").css("height","auto");$(".pg_search #mod_copy").css("height","auto");$(".pg_search #sidebar").css("height","auto");$(".pg_clients #mod_copy").css("height","auto");$(".pg_clients #sidebar").css("height","auto");$(".sec_aboutus.pg_search #content").css("min-height","300px");$(".sec_aboutus.pg_search #sidebar").css("min-height","300px")}$(document).ready(function(){var h=navigator.userAgent.toLowerCase();var c=h.indexOf("android")>-1;var d=navigator.userAgent.match(/iPad/i)!=null;if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))){$("body").addClass("iphone")}if(c){$("body").addClass("android")}if(d){$("body").addClass("ipad")}jQuery.jQueryRandom=0;jQuery.extend(jQuery.expr[":"],{random:function(j,k,l,n){if(k==0){jQuery.jQueryRandom=Math.floor(Math.random()*n.length)}return k==jQuery.jQueryRandom}});$("#btn_go").click(function(){document.location="/about-us/search.aspx?searchTerm="+$("#txt_search").val()});$("#txt_search").keypress(function(i){if(i.which==13){document.location="/about-us/search.aspx?searchTerm="+$("#txt_search").val()}});$("#nav_main > li").hover(function(){$(this).children().show()},function(){$(".nav_submenu").hide()});$("a[rel*=external]").click(function(){window.open(this.href);return false});$(".replace").blur(function(){if(this.value==""){this.value=$(this).attr("defaultValue")}});$(".replace").focus(function(){if(this.value==$(this).attr("defaultValue")){this.value=""}});$("#slideshow").cycle({fx:"scrollLeft",speed:1000,timeout:12500,pager:"#nav_carousel",pagerAnchorBuilder:function(i,j){return"#nav_carousel li:eq("+(i)+") a"}});$("#slideshow > div").click(function(){$("#slideshow").cycle("pause")});$("#nav_carousel a").click(function(){$("#slideshow").cycle("pause")});$().ready(function(){$("#mod_employers a").hide();$("#mod_employers a:random").show()});$(".trigger[rel]").overlay({effect:"apple",expose:"#789",onLoad:function(i){$("body.ipad,body.android,body.iphone").animate({scrollTop:0},"slow");if(!isMsie8){if(!isMsie7){if(!d){this.getOverlay().find("video")[0].player.play()}}}if(isMsie8){this.getOverlay().find("a.player").flowplayer("/swf/flowplayer-3.2.7.swf");this.getOverlay().find("a.player").flowplayer(0).load()}if(isMsie7){this.getOverlay().find("a.player").flowplayer("/swf/flowplayer-3.2.7.swf");this.getOverlay().find("a.player").flowplayer(0).load()}},onClose:function(i){if(isMsie8||isMsie7){$f().unload()}if(!isMsie8){if(!isMsie7){$("video").each(function(){this.player.pause();this.player.currentTime(0)})}}else{$f().unload()}}});var e=5;var a=new Array();var f=$(".mod_paginatetarget li").length;$(".mod_paginatetarget li").each(function(j){var i=$(this).html();a.push("<li>"+i+"</li>")});function g(n,k){var l=Math.min((n+1)*e,f);var m="";for(var j=n*e;j<l;j++){m+=a[j]}$("#mod_paginate").html(m);return false}function b(){$("#mod_pagination").pagination(f,{current_page:0,items_per_page:e,num_display_entries:3,prev_text:"Prev",prev_show_always:true,next_text:"Next",next_show_always:true,num_edge_entries:1,ellipse_text:"&hellip;",callback:g})}b()});var lastDiv="";function showDiv(a){if(lastDiv){document.getElementById(lastDiv).className="hiddenDiv"}if(a&&document.getElementById(a)){document.getElementById(a).className="visibleDiv";lastDiv=a}}var addthis_config={ui_cobrand:"Concentra",ui_header_color:"#ffffff",ui_header_background:"#7491A6"};addthis_share={email_template:"News"};(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();
