/*!
 * Modernizr v2.0.6
 * http://www.modernizr.com
 *
 * Copyright (c) 2009-2011 Faruk Ates, Paul Irish, Alex Sexton
 * Dual-licensed under the BSD or MIT licenses: www.modernizr.com/license/
 */
window.Modernizr=(function(y,c,g){var G="2.0.6",u={},w=true,J=c.documentElement,q=c.head||c.getElementsByTagName("head")[0],a="modernizr",F=c.createElement(a),C=F.style,I=c.createElement("input"),z=":)",b=Object.prototype.toString,i=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),H="Webkit Moz O ms Khtml".split(" "),E={svg:"http://www.w3.org/2000/svg"},j={},n={},f={},d=[],p,k=function(P,R,K,M){var N,L,O,Q=c.createElement("div");if(parseInt(K,10)){while(K--){O=c.createElement("div");O.id=M?M[K]:a+(K+1);Q.appendChild(O)}}N=["&shy;","<style>",P,"</style>"].join("");Q.id=a;Q.innerHTML+=N;J.appendChild(Q);L=R(Q,P);Q.parentNode.removeChild(Q);return !!L},D=function(L){if(y.matchMedia){return matchMedia(L).matches}var K;k("@media "+L+" { #"+a+" { position: absolute; } }",function(M){K=(y.getComputedStyle?getComputedStyle(M,null):M.currentStyle)["position"]=="absolute"});return K},m=(function(){var L={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function K(M,O){O=O||c.createElement(L[M]||"div");M="on"+M;var N=M in O;if(!N){if(!O.setAttribute){O=c.createElement("div")}if(O.setAttribute&&O.removeAttribute){O.setAttribute(M,"");N=o(O[M],"function");if(!o(O[M],g)){O[M]=g}O.removeAttribute(M)}}O=null;return N}return K})();var h=({}).hasOwnProperty,e;if(!o(h,g)&&!o(h.call,g)){e=function(K,L){return h.call(K,L)}}else{e=function(K,L){return((L in K)&&o(K.constructor.prototype[L],g))}}function B(K){C.cssText=K}function s(L,K){return B(i.join(L+";")+(K||""))}function o(L,K){return typeof L===K}function r(L,K){return !!~(""+L).indexOf(K)}function x(M,K){for(var L in M){if(C[M[L]]!==g){return K=="pfx"?M[L]:true}}return false}function l(N,K){var L=N.charAt(0).toUpperCase()+N.substr(1),M=(N+" "+H.join(L+" ")+L).split(" ");return x(M,K)}var v=(function(N,M){var L=N.join(""),K=M.length;k(L,function(R,T){var Q=c.styleSheets[c.styleSheets.length-1],P=Q.cssRules&&Q.cssRules[0]?Q.cssRules[0].cssText:Q.cssText||"",O=R.childNodes,S={};while(K--){S[O[K].id]=O[K]}u.touch=("ontouchstart" in y)||S.touch.offsetTop===9;u.csstransforms3d=S.csstransforms3d.offsetLeft===9;u.generatedcontent=S.generatedcontent.offsetHeight>=1;u.fontface=/src/i.test(P)&&P.indexOf(T.split(" ")[0])===0},K,M)})(['@font-face {font-family:"font";src:url("https://")}',["@media (",i.join("touch-enabled),("),a,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",i.join("transform-3d),("),a,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',z,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);j.flexbox=function(){function M(Q,S,R,P){S+=":";Q.style.cssText=(S+i.join(R+";"+S)).slice(0,-S.length)+(P||"")}function K(Q,S,R,P){Q.style.cssText=i.join(S+":"+R+";")+(P||"")}var O=c.createElement("div"),N=c.createElement("div");M(O,"display","box","width:42px;padding:0;");K(N,"box-flex","1","width:10px;");O.appendChild(N);J.appendChild(O);var L=N.offsetWidth===42;O.removeChild(N);J.removeChild(O);return L};j.canvas=function(){var K=c.createElement("canvas");return !!(K.getContext&&K.getContext("2d"))};j.canvastext=function(){return !!(u.canvas&&o(c.createElement("canvas").getContext("2d").fillText,"function"))};j.webgl=function(){return !!y.WebGLRenderingContext};j.touch=function(){return u.touch};j.geolocation=function(){return !!navigator.geolocation};j.postmessage=function(){return !!y.postMessage};j.websqldatabase=function(){var K=!!y.openDatabase;return K};j.indexedDB=function(){for(var L=-1,K=H.length;++L<K;){if(y[H[L].toLowerCase()+"IndexedDB"]){return true}}return !!y.indexedDB};j.hashchange=function(){return m("hashchange",y)&&(c.documentMode===g||c.documentMode>7)};j.history=function(){return !!(y.history&&history.pushState)};j.draganddrop=function(){return m("dragstart")&&m("drop")};j.websockets=function(){for(var L=-1,K=H.length;++L<K;){if(y[H[L]+"WebSocket"]){return true}}return"WebSocket" in y};j.rgba=function(){B("background-color:rgba(150,255,150,.5)");return r(C.backgroundColor,"rgba")};j.hsla=function(){B("background-color:hsla(120,40%,100%,.5)");return r(C.backgroundColor,"rgba")||r(C.backgroundColor,"hsla")};j.multiplebgs=function(){B("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(C.background)};j.backgroundsize=function(){return l("backgroundSize")};j.borderimage=function(){return l("borderImage")};j.borderradius=function(){return l("borderRadius")};j.boxshadow=function(){return l("boxShadow")};j.textshadow=function(){return c.createElement("div").style.textShadow===""};j.opacity=function(){s("opacity:.55");return/^0.55$/.test(C.opacity)};j.cssanimations=function(){return l("animationName")};j.csscolumns=function(){return l("columnCount")};j.cssgradients=function(){var M="background-image:",L="gradient(linear,left top,right bottom,from(#9f9),to(white));",K="linear-gradient(left top,#9f9, white);";B((M+i.join(L+M)+i.join(K+M)).slice(0,-M.length));return r(C.backgroundImage,"gradient")};j.cssreflections=function(){return l("boxReflect")};j.csstransforms=function(){return !!x(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};j.csstransforms3d=function(){var K=!!x(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(K&&"webkitPerspective" in J.style){K=u.csstransforms3d}return K};j.csstransitions=function(){return l("transitionProperty")};j.fontface=function(){return u.fontface};j.generatedcontent=function(){return u.generatedcontent};j.video=function(){var M=c.createElement("video"),K=false;try{if(K=!!M.canPlayType){K=new Boolean(K);K.ogg=M.canPlayType('video/ogg; codecs="theora"');var L='video/mp4; codecs="avc1.42E01E';K.h264=M.canPlayType(L+'"')||M.canPlayType(L+', mp4a.40.2"');K.webm=M.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(N){}return K};j.audio=function(){var L=c.createElement("audio"),K=false;try{if(K=!!L.canPlayType){K=new Boolean(K);K.ogg=L.canPlayType('audio/ogg; codecs="vorbis"');K.mp3=L.canPlayType("audio/mpeg;");K.wav=L.canPlayType('audio/wav; codecs="1"');K.m4a=L.canPlayType("audio/x-m4a;")||L.canPlayType("audio/aac;")}}catch(M){}return K};j.localstorage=function(){try{return !!localStorage.getItem}catch(K){return false}};j.sessionstorage=function(){try{return !!sessionStorage.getItem}catch(K){return false}};j.webworkers=function(){return !!y.Worker};j.applicationcache=function(){return !!y.applicationCache};j.svg=function(){return !!c.createElementNS&&!!c.createElementNS(E.svg,"svg").createSVGRect};j.inlinesvg=function(){var K=c.createElement("div");K.innerHTML="<svg/>";return(K.firstChild&&K.firstChild.namespaceURI)==E.svg};j.smil=function(){return !!c.createElementNS&&/SVG/.test(b.call(c.createElementNS(E.svg,"animate")))};j.svgclippaths=function(){return !!c.createElementNS&&/SVG/.test(b.call(c.createElementNS(E.svg,"clipPath")))};function A(){u.input=(function(M){for(var L=0,K=M.length;L<K;L++){f[M[L]]=!!(M[L] in I)}return f})("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));u.inputtypes=(function(N){for(var M=0,L,P,O,K=N.length;M<K;M++){I.setAttribute("type",P=N[M]);L=I.type!=="text";if(L){I.value=z;I.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(P)&&I.style.WebkitAppearance!==g){J.appendChild(I);O=c.defaultView;L=O.getComputedStyle&&O.getComputedStyle(I,null).WebkitAppearance!=="textfield"&&(I.offsetHeight!==0);J.removeChild(I)}else{if(/^(search|tel)$/.test(P)){}else{if(/^(url|email)$/.test(P)){L=I.checkValidity&&I.checkValidity()===false}else{if(/^color$/.test(P)){J.appendChild(I);J.offsetWidth;L=I.value!=z;J.removeChild(I)}else{L=I.value!=z}}}}}n[N[M]]=!!L}return n})("search tel url email datetime date month week time datetime-local number range color".split(" "))}for(var t in j){if(e(j,t)){p=t.toLowerCase();u[p]=j[t]();d.push((u[p]?"":"no-")+p)}}u.input||A();u.addTest=function(L,M){if(typeof L=="object"){for(var K in L){if(e(L,K)){u.addTest(K,L[K])}}}else{L=L.toLowerCase();if(u[L]!==g){return}M=typeof M=="boolean"?M:!!M();J.className+=" "+(M?"":"no-")+L;u[L]=M}return u};B("");F=I=null;if(y.attachEvent&&(function(){var K=c.createElement("div");K.innerHTML="<elem></elem>";return K.childNodes.length!==1})()){(function(Q,ab){Q.iepp=Q.iepp||{};var R=Q.iepp,aa=R.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",L=aa.split("|"),Z=L.length,Y=new RegExp("(^|\\s)("+aa+")","gi"),X=new RegExp("<(/*)("+aa+")","gi"),P=/^\s*[\{\}]\s*$/,K=new RegExp("(^|[^\\n]*?\\s)("+aa+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),N=ab.createDocumentFragment(),V=ab.documentElement,S=V.firstChild,T=ab.createElement("body"),O=ab.createElement("style"),W=/print|all/,U;function M(ad){var ac=-1;while(++ac<Z){ad.createElement(L[ac])}}R.getCSS=function(ag,ae){if(ag+""===g){return""}var ad=-1,ac=ag.length,ah,af=[];while(++ad<ac){ah=ag[ad];if(ah.disabled){continue}ae=ah.media||ae;if(W.test(ae)){af.push(R.getCSS(ah.imports,ae),ah.cssText)}ae="all"}return af.join("")};R.parseCSS=function(ad){var ac=[],ae;while((ae=K.exec(ad))!=null){ac.push(((P.exec(ae[1])?"\n":ae[1])+ae[2]+ae[3]).replace(Y,"$1.iepp_$2")+ae[4])}return ac.join("\n")};R.writeHTML=function(){var ad=-1;U=U||ab.body;while(++ad<Z){var ae=ab.getElementsByTagName(L[ad]),af=ae.length,ac=-1;while(++ac<af){if(ae[ac].className.indexOf("iepp_")<0){ae[ac].className+=" iepp_"+L[ad]}}}N.appendChild(U);V.appendChild(T);T.className=U.className;T.id=U.id;T.innerHTML=U.innerHTML.replace(X,"<$1font")};R._beforePrint=function(){O.styleSheet.cssText=R.parseCSS(R.getCSS(ab.styleSheets,"all"));R.writeHTML()};R.restoreHTML=function(){T.innerHTML="";V.removeChild(T);V.appendChild(U)};R._afterPrint=function(){R.restoreHTML();O.styleSheet.cssText=""};M(ab);M(N);if(R.disablePP){return}S.insertBefore(O,S.firstChild);O.media="print";O.className="iepp-printshim";Q.attachEvent("onbeforeprint",R._beforePrint);Q.attachEvent("onafterprint",R._afterPrint)})(y,c)}u._version=G;u._prefixes=i;u._domPrefixes=H;u.mq=D;u.hasEvent=m;u.testProp=function(K){return x([K])};u.testAllProps=l;u.testStyles=k;u.prefixed=function(K){return l(K,"pfx")};J.className=J.className.replace(/\bno-js\b/,"")+(w?" js "+d.join(" "):"");return u})(this,this.document);
/*!
 * jQuery JavaScript Library v1.7.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Nov 21 21:11:03 2011 -0500
 */
(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bN=/^[\],:{}\s]*$/,bW=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bP=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bJ=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bR=/(opera)(?:.*version)?[ \/]([\w.]+)/,bQ=/(msie) ([\w.]+)/,bS=/(mozilla)(?:.*? rv:([\w.]+))?/,bB=/-([a-z]|[0-9])/ig,bZ=/^-ms-/,bT=function(b0,b1){return(b1+"").toUpperCase()},bX=bu.userAgent,bV,bC,e,bL=Object.prototype.toString,bG=Object.prototype.hasOwnProperty,bz=Array.prototype.push,bK=Array.prototype.slice,bO=String.prototype.trim,bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&av.body){this.context=av;this[0]=av.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bY.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bF?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:av);b1=bA.exec(b0);if(b1){if(bF.isPlainObject(b4)){b0=[av.createElement(b1[1])];bF.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bF.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bF.clone(b1.fragment):b1.fragment).childNodes}return bF.merge(this,b0)}else{b5=av.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=av;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bF.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==L){this.selector=b0.selector;this.context=b0.context}return bF.makeArray(b0,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bK.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bF.isArray(b1)){bz.apply(b2,b1)}else{bF.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bF.each(this,b1,b0)},ready:function(b0){bF.bindReady();bC.add(b0);return this},eq:function(b0){b0=+b0;return b0===-1?this.slice(b0):this.slice(b0,b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bK.apply(this,arguments),"slice",bK.call(arguments).join(","))},map:function(b0){return this.pushStack(bF.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bz,sort:[].sort,splice:[].splice};bF.fn.init.prototype=bF.fn;bF.extend=bF.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bF.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b4<b3;b4++){if((b9=arguments[b4])!=null){for(b2 in b9){b0=b5[b2];b1=b9[b2];if(b5===b1){continue}if(b8&&b1&&(bF.isPlainObject(b1)||(b6=bF.isArray(b1)))){if(b6){b6=false;b7=b0&&bF.isArray(b0)?b0:[]}else{b7=b0&&bF.isPlainObject(b0)?b0:{}}b5[b2]=bF.extend(b8,b7,b1)}else{if(b1!==L){b5[b2]=b1}}}}}return b5};bF.extend({noConflict:function(b0){if(bb.$===bF){bb.$=bH}if(b0&&bb.jQuery===bF){bb.jQuery=bU}return bF},isReady:false,readyWait:1,holdReady:function(b0){if(b0){bF.readyWait++}else{bF.ready(true)}},ready:function(b0){if((b0===true&&!--bF.readyWait)||(b0!==true&&!bF.isReady)){if(!av.body){return setTimeout(bF.ready,1)}bF.isReady=true;if(b0!==true&&--bF.readyWait>0){return}bC.fireWith(av,[bF]);if(bF.fn.trigger){bF(av).trigger("ready").off("ready")}}},bindReady:function(){if(bC){return}bC=bF.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bF.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bb.addEventListener("load",bF.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bb.attachEvent("onload",bF.ready);var b0=false;try{b0=bb.frameElement==null}catch(b1){}if(av.documentElement.doScroll&&b0){bw()}}}},isFunction:function(b0){return bF.type(b0)==="function"},isArray:Array.isArray||function(b0){return bF.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNumeric:function(b0){return !isNaN(parseFloat(b0))&&isFinite(b0)},type:function(b0){return b0==null?String(b0):bx[bL.call(b0)]||"object"},isPlainObject:function(b2){if(!b2||bF.type(b2)!=="object"||b2.nodeType||bF.isWindow(b2)){return false}try{if(b2.constructor&&!bG.call(b2,"constructor")&&!bG.call(b2.constructor.prototype,"isPrototypeOf")){return false}}catch(b1){return false}var b0;for(b0 in b2){}return b0===L||bG.call(b2,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw new Error(b0)},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bF.trim(b0);if(bb.JSON&&bb.JSON.parse){return bb.JSON.parse(b0)}if(bN.test(b0.replace(bW,"@").replace(bP,"]").replace(bJ,""))){return(new Function("return "+b0))()}bF.error("Invalid JSON: "+b0)},parseXML:function(b2){var b0,b1;try{if(bb.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}}catch(b3){b0=L}if(!b0||!b0.documentElement||b0.getElementsByTagName("parsererror").length){bF.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bM.test(b0)){(bb.execScript||function(b1){bb["eval"].call(bb,b1)})(b0)}},camelCase:function(b0){return b0.replace(bZ,"ms-").replace(bB,bT)},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===L||bF.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b4<b5;){if(b6.apply(b3[b4++],b2)===false){break}}}}else{if(b0){for(b1 in b3){if(b6.call(b3[b1],b1,b3[b1])===false){break}}}else{for(;b4<b5;){if(b6.call(b3[b4],b4,b3[b4++])===false){break}}}}return b3},trim:bO?function(b0){return b0==null?"":bO.call(b0)}:function(b0){return b0==null?"":b0.toString().replace(bI,"").replace(bE,"")},makeArray:function(b3,b1){var b0=b1||[];if(b3!=null){var b2=bF.type(b3);if(b3.length==null||b2==="string"||b2==="function"||b2==="regexp"||bF.isWindow(b3)){bz.call(b0,b3)}else{bF.merge(b0,b3)}}return b0},inArray:function(b2,b3,b1){var b0;if(b3){if(bv){return bv.call(b3,b2,b1)}b0=b3.length;b1=b1?b1<0?Math.max(0,b0+b1):b1:0;for(;b1<b0;b1++){if(b1 in b3&&b3[b1]===b2){return b1}}}return -1},merge:function(b4,b2){var b3=b4.length,b1=0;if(typeof b2.length==="number"){for(var b0=b2.length;b1<b0;b1++){b4[b3++]=b2[b1]}}else{while(b2[b1]!==L){b4[b3++]=b2[b1++]}}b4.length=b3;return b4},grep:function(b1,b6,b0){var b2=[],b5;b0=!!b0;for(var b3=0,b4=b1.length;b3<b4;b3++){b5=!!b6(b1[b3],b3);if(b0!==b5){b2.push(b1[b3])}}return b2},map:function(b0,b7,b8){var b5,b6,b4=[],b2=0,b1=b0.length,b3=b0 instanceof bF||b1!==L&&typeof b1==="number"&&((b1>0&&b0[0]&&b0[b1-1])||b1===0||bF.isArray(b0));if(b3){for(;b2<b1;b2++){b5=b7(b0[b2],b2,b8);if(b5!=null){b4[b4.length]=b5}}}else{for(b6 in b0){b5=b7(b0[b6],b6,b8);if(b5!=null){b4[b4.length]=b5}}}return b4.concat.apply([],b4)},guid:1,proxy:function(b4,b3){if(typeof b3==="string"){var b2=b4[b3];b3=b4;b4=b2}if(!bF.isFunction(b4)){return L}var b0=bK.call(arguments,2),b1=function(){return b4.apply(b3,b0.concat(bK.call(arguments)))};b1.guid=b4.guid=b4.guid||b1.guid||bF.guid++;return b1},access:function(b0,b8,b6,b2,b5,b7){var b1=b0.length;if(typeof b8==="object"){for(var b3 in b8){bF.access(b0,b3,b8[b3],b2,b5,b6)}return b0}if(b6!==L){b2=!b7&&b2&&bF.isFunction(b6);for(var b4=0;b4<b1;b4++){b5(b0[b4],b8,b2?b6.call(b0[b4],b4,b5(b0[b4],b8)):b6,b7)}return b0}return b1?b5(b0[0],b8):L},now:function(){return(new Date()).getTime()},uaMatch:function(b1){b1=b1.toLowerCase();var b0=by.exec(b1)||bR.exec(b1)||bQ.exec(b1)||b1.indexOf("compatible")<0&&bS.exec(b1)||[];return{browser:b0[1]||"",version:b0[2]||"0"}},sub:function(){function b0(b3,b4){return new b0.fn.init(b3,b4)}bF.extend(true,b0,this);b0.superclass=this;b0.fn=b0.prototype=this();b0.fn.constructor=b0;b0.sub=this.sub;b0.fn.init=function b2(b3,b4){if(b4&&b4 instanceof bF&&!(b4 instanceof b0)){b4=b0(b4)}return bF.fn.init.call(this,b3,b4,b1)};b0.fn.init.prototype=b0.fn;var b1=b0(av);return b0},browser:{}});bF.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b1,b0){bx["[object "+b0+"]"]=b0.toLowerCase()});bV=bF.uaMatch(bX);if(bV.browser){bF.browser[bV.browser]=true;bF.browser.version=bV.version}if(bF.browser.webkit){bF.browser.safari=true}if(bM.test("\xA0")){bI=/^[\s\xA0]+/;bE=/[\s\xA0]+$/}bD=bF(av);if(av.addEventListener){e=function(){av.removeEventListener("DOMContentLoaded",e,false);bF.ready()}}else{if(av.attachEvent){e=function(){if(av.readyState==="complete"){av.detachEvent("onreadystatechange",e);bF.ready()}}}}function bw(){if(bF.isReady){return}try{av.documentElement.doScroll("left")}catch(b0){setTimeout(bw,1);return}bF.ready()}return bF})();var a2={};function X(e){var bv=a2[e]={},bw,bx;e=e.split(/\s+/);for(bw=0,bx=e.length;bw<bx;bw++){bv[e[bw]]=true}return bv}b.Callbacks=function(bw){bw=bw?(a2[bw]||X(bw)):{};var bB=[],bC=[],bx,by,bv,bz,bA,bE=function(bF){var bG,bJ,bI,bH,bK;for(bG=0,bJ=bF.length;bG<bJ;bG++){bI=bF[bG];bH=b.type(bI);if(bH==="array"){bE(bI)}else{if(bH==="function"){if(!bw.unique||!bD.has(bI)){bB.push(bI)}}}}},e=function(bG,bF){bF=bF||[];bx=!bw.memory||[bG,bF];by=true;bA=bv||0;bv=0;bz=bB.length;for(;bB&&bA<bz;bA++){if(bB[bA].apply(bG,bF)===false&&bw.stopOnFalse){bx=true;break}}by=false;if(bB){if(!bw.once){if(bC&&bC.length){bx=bC.shift();bD.fireWith(bx[0],bx[1])}}else{if(bx===true){bD.disable()}else{bB=[]}}}},bD={add:function(){if(bB){var bF=bB.length;bE(arguments);if(by){bz=bB.length}else{if(bx&&bx!==true){bv=bF;e(bx[0],bx[1])}}}return this},remove:function(){if(bB){var bF=arguments,bH=0,bI=bF.length;for(;bH<bI;bH++){for(var bG=0;bG<bB.length;bG++){if(bF[bH]===bB[bG]){if(by){if(bG<=bz){bz--;if(bG<=bA){bA--}}}bB.splice(bG--,1);if(bw.unique){break}}}}}return this},has:function(bG){if(bB){var bF=0,bH=bB.length;for(;bF<bH;bF++){if(bG===bB[bF]){return true}}}return false},empty:function(){bB=[];return this},disable:function(){bB=bC=bx=L;return this},disabled:function(){return !bB},lock:function(){bC=L;if(!bx||bx===true){bD.disable()}return this},locked:function(){return !bC},fireWith:function(bG,bF){if(bC){if(by){if(!bw.once){bC.push([bG,bF])}}else{if(!(bw.once&&bx)){e(bG,bF)}}}return this},fire:function(){bD.fireWith(this,arguments);return this},fired:function(){return !!bx}};return bD};var aJ=[].slice;b.extend({Deferred:function(by){var bx=b.Callbacks("once memory"),bw=b.Callbacks("once memory"),bv=b.Callbacks("memory"),e="pending",bA={resolve:bx,reject:bw,notify:bv},bC={done:bx.add,fail:bw.add,progress:bv.add,state:function(){return e},isResolved:bx.fired,isRejected:bw.fired,then:function(bE,bD,bF){bB.done(bE).fail(bD).progress(bF);return this},always:function(){bB.done.apply(bB,arguments).fail.apply(bB,arguments);return this},pipe:function(bF,bE,bD){return b.Deferred(function(bG){b.each({done:[bF,"resolve"],fail:[bE,"reject"],progress:[bD,"notify"]},function(bI,bL){var bH=bL[0],bK=bL[1],bJ;if(b.isFunction(bH)){bB[bI](function(){bJ=bH.apply(this,arguments);if(bJ&&b.isFunction(bJ.promise)){bJ.promise().then(bG.resolve,bG.reject,bG.notify)}else{bG[bK+"With"](this===bB?bG:this,[bJ])}})}else{bB[bI](bG[bK])}})}).promise()},promise:function(bE){if(bE==null){bE=bC}else{for(var bD in bC){bE[bD]=bC[bD]}}return bE}},bB=bC.promise({}),bz;for(bz in bA){bB[bz]=bA[bz].fire;bB[bz+"With"]=bA[bz].fireWith}bB.done(function(){e="resolved"},bw.disable,bv.lock).fail(function(){e="rejected"},bx.disable,bv.lock);if(by){by.call(bB,bB)}return bB},when:function(bA){var bx=aJ.call(arguments,0),bv=0,e=bx.length,bB=new Array(e),bw=e,by=e,bC=e<=1&&bA&&b.isFunction(bA.promise)?bA:b.Deferred(),bE=bC.promise();function bD(bF){return function(bG){bx[bF]=arguments.length>1?aJ.call(arguments,0):bG;if(!(--bw)){bC.resolveWith(bC,bx)}}}function bz(bF){return function(bG){bB[bF]=arguments.length>1?aJ.call(arguments,0):bG;bC.notifyWith(bE,bB)}}if(e>1){for(;bv<e;bv++){if(bx[bv]&&bx[bv].promise&&b.isFunction(bx[bv].promise)){bx[bv].promise().then(bD(bv),bC.reject,bz(bv))}else{--bw}}if(!bw){bC.resolveWith(bC,bx)}}else{if(bC!==bA){bC.resolveWith(bC,e?[bA]:[])}}return bE}});b.support=(function(){var bJ,bI,bF,bG,bx,bE,bA,bD,bz,bK,bB,by,bw,bv=av.createElement("div"),bH=av.documentElement;bv.setAttribute("className","t");bv.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bI=bv.getElementsByTagName("*");bF=bv.getElementsByTagName("a")[0];if(!bI||!bI.length||!bF){return{}}bG=av.createElement("select");bx=bG.appendChild(av.createElement("option"));bE=bv.getElementsByTagName("input")[0];bJ={leadingWhitespace:(bv.firstChild.nodeType===3),tbody:!bv.getElementsByTagName("tbody").length,htmlSerialize:!!bv.getElementsByTagName("link").length,style:/top/.test(bF.getAttribute("style")),hrefNormalized:(bF.getAttribute("href")==="/a"),opacity:/^0.55/.test(bF.style.opacity),cssFloat:!!bF.style.cssFloat,checkOn:(bE.value==="on"),optSelected:bx.selected,getSetAttribute:bv.className!=="t",enctype:!!av.createElement("form").enctype,html5Clone:av.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bE.checked=true;bJ.noCloneChecked=bE.cloneNode(true).checked;bG.disabled=true;bJ.optDisabled=!bx.disabled;try{delete bv.test}catch(bC){bJ.deleteExpando=false}if(!bv.addEventListener&&bv.attachEvent&&bv.fireEvent){bv.attachEvent("onclick",function(){bJ.noCloneEvent=false});bv.cloneNode(true).fireEvent("onclick")}bE=av.createElement("input");bE.value="t";bE.setAttribute("type","radio");bJ.radioValue=bE.value==="t";bE.setAttribute("checked","checked");bv.appendChild(bE);bD=av.createDocumentFragment();bD.appendChild(bv.lastChild);bJ.checkClone=bD.cloneNode(true).cloneNode(true).lastChild.checked;bJ.appendChecked=bE.checked;bD.removeChild(bE);bD.appendChild(bv);bv.innerHTML="";if(bb.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bv.style.width="2px";bv.appendChild(bA);bJ.reliableMarginRight=(parseInt((bb.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}if(bv.attachEvent){for(by in {submit:1,change:1,focusin:1}){bB="on"+by;bw=(bB in bv);if(!bw){bv.setAttribute(bB,"return;");bw=(typeof bv[bB]==="function")}bJ[by+"Bubbles"]=bw}}bD.removeChild(bv);bD=bG=bx=bA=bv=bE=null;b(function(){var bM,bU,bV,bT,bN,bO,bL,bS,bR,e,bP,bQ=av.getElementsByTagName("body")[0];if(!bQ){return}bL=1;bS="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bR="visibility:hidden;border:0;";e="style='"+bS+"border:5px solid #000;padding:0;'";bP="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bM=av.createElement("div");bM.style.cssText=bR+"width:0;height:0;position:static;top:0;margin-top:"+bL+"px";bQ.insertBefore(bM,bQ.firstChild);bv=av.createElement("div");bM.appendChild(bv);bv.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bz=bv.getElementsByTagName("td");bw=(bz[0].offsetHeight===0);bz[0].style.display="";bz[1].style.display="none";bJ.reliableHiddenOffsets=bw&&(bz[0].offsetHeight===0);bv.innerHTML="";bv.style.width=bv.style.paddingLeft="1px";b.boxModel=bJ.boxModel=bv.offsetWidth===2;if(typeof bv.style.zoom!=="undefined"){bv.style.display="inline";bv.style.zoom=1;bJ.inlineBlockNeedsLayout=(bv.offsetWidth===2);bv.style.display="";bv.innerHTML="<div style='width:4px;'></div>";bJ.shrinkWrapBlocks=(bv.offsetWidth!==2)}bv.style.cssText=bS+bR;bv.innerHTML=bP;bU=bv.firstChild;bV=bU.firstChild;bN=bU.nextSibling.firstChild.firstChild;bO={doesNotAddBorder:(bV.offsetTop!==5),doesAddBorderForTableAndCells:(bN.offsetTop===5)};bV.style.position="fixed";bV.style.top="20px";bO.fixedPosition=(bV.offsetTop===20||bV.offsetTop===15);bV.style.position=bV.style.top="";bU.style.overflow="hidden";bU.style.position="relative";bO.subtractsBorderForOverflowNotVisible=(bV.offsetTop===-5);bO.doesNotIncludeMarginInBodyOffset=(bQ.offsetTop!==bL);bQ.removeChild(bM);bv=bM=null;b.extend(bJ,bO)});return bJ})();var aS=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!S(e)},data:function(bx,bv,bz,by){if(!b.acceptData(bx)){return}var bG,bA,bD,bE=b.expando,bC=typeof bv==="string",bF=bx.nodeType,e=bF?b.cache:bx,bw=bF?bx[bE]:bx[bE]&&bE,bB=bv==="events";if((!bw||!e[bw]||(!bB&&!by&&!e[bw].data))&&bC&&bz===L){return}if(!bw){if(bF){bx[bE]=bw=++b.uuid}else{bw=bE}}if(!e[bw]){e[bw]={};if(!bF){e[bw].toJSON=b.noop}}if(typeof bv==="object"||typeof bv==="function"){if(by){e[bw]=b.extend(e[bw],bv)}else{e[bw].data=b.extend(e[bw].data,bv)}}bG=bA=e[bw];if(!by){if(!bA.data){bA.data={}}bA=bA.data}if(bz!==L){bA[b.camelCase(bv)]=bz}if(bB&&!bA[bv]){return bG.events}if(bC){bD=bA[bv];if(bD==null){bD=bA[b.camelCase(bv)]}}else{bD=bA}return bD},removeData:function(bx,bv,by){if(!b.acceptData(bx)){return}var bB,bA,bz,bC=b.expando,bD=bx.nodeType,e=bD?b.cache:bx,bw=bD?bx[bC]:bC;if(!e[bw]){return}if(bv){bB=by?e[bw]:e[bw].data;if(bB){if(!b.isArray(bv)){if(bv in bB){bv=[bv]}else{bv=b.camelCase(bv);if(bv in bB){bv=[bv]}else{bv=bv.split(" ")}}}for(bA=0,bz=bv.length;bA<bz;bA++){delete bB[bv[bA]]}if(!(by?S:b.isEmptyObject)(bB)){return}}}if(!by){delete e[bw].data;if(!S(e[bw])){return}}if(b.support.deleteExpando||!e.setInterval){delete e[bw]}else{e[bw]=null}if(bD){if(b.support.deleteExpando){delete bx[bC]}else{if(bx.removeAttribute){bx.removeAttribute(bC)}else{bx[bC]=null}}}},_data:function(bv,e,bw){return b.data(bv,e,bw,true)},acceptData:function(bv){if(bv.nodeName){var e=b.noData[bv.nodeName.toLowerCase()];if(e){return !(e===true||bv.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(by,bA){var bB,e,bw,bz=null;if(typeof by==="undefined"){if(this.length){bz=b.data(this[0]);if(this[0].nodeType===1&&!b._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bx=0,bv=e.length;bx<bv;bx++){bw=e[bx].name;if(bw.indexOf("data-")===0){bw=b.camelCase(bw.substring(5));a5(this[0],bw,bz[bw])}}b._data(this[0],"parsedAttrs",true)}}return bz}else{if(typeof by==="object"){return this.each(function(){b.data(this,by)})}}bB=by.split(".");bB[1]=bB[1]?"."+bB[1]:"";if(bA===L){bz=this.triggerHandler("getData"+bB[1]+"!",[bB[0]]);if(bz===L&&this.length){bz=b.data(this[0],by);bz=a5(this[0],by,bz)}return bz===L&&bB[1]?this.data(bB[0]):bz}else{return this.each(function(){var bC=b(this),bD=[bB[0],bA];bC.triggerHandler("setData"+bB[1]+"!",bD);b.data(this,by,bA);bC.triggerHandler("changeData"+bB[1]+"!",bD)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a5(bx,bw,by){if(by===L&&bx.nodeType===1){var bv="data-"+bw.replace(aA,"-$1").toLowerCase();by=bx.getAttribute(bv);if(typeof by==="string"){try{by=by==="true"?true:by==="false"?false:by==="null"?null:b.isNumeric(by)?parseFloat(by):aS.test(by)?b.parseJSON(by):by}catch(bz){}b.data(bx,bw,by)}else{by=L}}return by}function S(bv){for(var e in bv){if(e==="data"&&b.isEmptyObject(bv[e])){continue}if(e!=="toJSON"){return false}}return true}function bi(by,bx,bA){var bw=bx+"defer",bv=bx+"queue",e=bx+"mark",bz=b._data(by,bw);if(bz&&(bA==="queue"||!b._data(by,bv))&&(bA==="mark"||!b._data(by,e))){setTimeout(function(){if(!b._data(by,bv)&&!b._data(by,e)){b.removeData(by,bw,true);bz.fire()}},0)}}b.extend({_mark:function(bv,e){if(bv){e=(e||"fx")+"mark";b._data(bv,e,(b._data(bv,e)||0)+1)}},_unmark:function(by,bx,bv){if(by!==true){bv=bx;bx=by;by=false}if(bx){bv=bv||"fx";var e=bv+"mark",bw=by?0:((b._data(bx,e)||1)-1);if(bw){b._data(bx,e,bw)}else{b.removeData(bx,e,true);bi(bx,bv,"mark")}}},queue:function(bv,e,bx){var bw;if(bv){e=(e||"fx")+"queue";bw=b._data(bv,e);if(bx){if(!bw||b.isArray(bx)){bw=b._data(bv,e,b.makeArray(bx))}else{bw.push(bx)}}return bw||[]}},dequeue:function(by,bx){bx=bx||"fx";var bv=b.queue(by,bx),bw=bv.shift(),e={};if(bw==="inprogress"){bw=bv.shift()}if(bw){if(bx==="fx"){bv.unshift("inprogress")}b._data(by,bx+".run",e);bw.call(by,function(){b.dequeue(by,bx)},e)}if(!bv.length){b.removeData(by,bx+"queue "+bx+".run",true);bi(by,bx,"queue")}}});b.fn.extend({queue:function(e,bv){if(typeof e!=="string"){bv=e;e="fx"}if(bv===L){return b.queue(this[0],e)}return this.each(function(){var bw=b.queue(this,e,bv);if(e==="fx"&&bw[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bv,e){bv=b.fx?b.fx.speeds[bv]||bv:bv;e=e||"fx";return this.queue(e,function(bx,bw){var by=setTimeout(bx,bv);bw.stop=function(){clearTimeout(by)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bD,bw){if(typeof bD!=="string"){bw=bD;bD=L}bD=bD||"fx";var e=b.Deferred(),bv=this,by=bv.length,bB=1,bz=bD+"defer",bA=bD+"queue",bC=bD+"mark",bx;function bE(){if(!(--bB)){e.resolveWith(bv,[bv])}}while(by--){if((bx=b.data(bv[by],bz,L,true)||(b.data(bv[by],bA,L,true)||b.data(bv[by],bC,L,true))&&b.data(bv[by],bz,b.Callbacks("once memory"),true))){bB++;bx.add(bE)}}bE();return e.promise()}});var aP=/[\n\t\r]/g,af=/\s+/,aU=/\r/g,g=/^(?:button|input)$/i,D=/^(?:button|input|object|select|textarea)$/i,l=/^a(?:rea)?$/i,ao=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,F=b.support.getSetAttribute,be,aY,aF;b.fn.extend({attr:function(e,bv){return b.access(this,e,bv,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bv){return b.access(this,e,bv,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=L;delete this[e]}catch(bv){}})},addClass:function(by){var bA,bw,bv,bx,bz,bB,e;if(b.isFunction(by)){return this.each(function(bC){b(this).addClass(by.call(this,bC,this.className))})}if(by&&typeof by==="string"){bA=by.split(af);for(bw=0,bv=this.length;bw<bv;bw++){bx=this[bw];if(bx.nodeType===1){if(!bx.className&&bA.length===1){bx.className=by}else{bz=" "+bx.className+" ";for(bB=0,e=bA.length;bB<e;bB++){if(!~bz.indexOf(" "+bA[bB]+" ")){bz+=bA[bB]+" "}}bx.className=b.trim(bz)}}}}return this},removeClass:function(bz){var bA,bw,bv,by,bx,bB,e;if(b.isFunction(bz)){return this.each(function(bC){b(this).removeClass(bz.call(this,bC,this.className))})}if((bz&&typeof bz==="string")||bz===L){bA=(bz||"").split(af);for(bw=0,bv=this.length;bw<bv;bw++){by=this[bw];if(by.nodeType===1&&by.className){if(bz){bx=(" "+by.className+" ").replace(aP," ");for(bB=0,e=bA.length;bB<e;bB++){bx=bx.replace(" "+bA[bB]+" "," ")}by.className=b.trim(bx)}else{by.className=""}}}}return this},toggleClass:function(bx,bv){var bw=typeof bx,e=typeof bv==="boolean";if(b.isFunction(bx)){return this.each(function(by){b(this).toggleClass(bx.call(this,by,this.className,bv),bv)})}return this.each(function(){if(bw==="string"){var bA,bz=0,by=b(this),bB=bv,bC=bx.split(af);while((bA=bC[bz++])){bB=e?bB:!by.hasClass(bA);by[bB?"addClass":"removeClass"](bA)}}else{if(bw==="undefined"||bw==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bx===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bx=" "+e+" ",bw=0,bv=this.length;for(;bw<bv;bw++){if(this[bw].nodeType===1&&(" "+this[bw].className+" ").replace(aP," ").indexOf(bx)>-1){return true}}return false},val:function(bx){var e,bv,by,bw=this[0];if(!arguments.length){if(bw){e=b.valHooks[bw.nodeName.toLowerCase()]||b.valHooks[bw.type];if(e&&"get" in e&&(bv=e.get(bw,"value"))!==L){return bv}bv=bw.value;return typeof bv==="string"?bv.replace(aU,""):bv==null?"":bv}return}by=b.isFunction(bx);return this.each(function(bA){var bz=b(this),bB;if(this.nodeType!==1){return}if(by){bB=bx.call(this,bA,bz.val())}else{bB=bx}if(bB==null){bB=""}else{if(typeof bB==="number"){bB+=""}else{if(b.isArray(bB)){bB=b.map(bB,function(bC){return bC==null?"":bC+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bB,"value")===L){this.value=bB}})}});b.extend({valHooks:{option:{get:function(e){var bv=e.attributes.value;return !bv||bv.specified?e.value:e.text}},select:{get:function(e){var bA,bv,bz,bx,by=e.selectedIndex,bB=[],bC=e.options,bw=e.type==="select-one";if(by<0){return null}bv=bw?by:0;bz=bw?by+1:bC.length;for(;bv<bz;bv++){bx=bC[bv];if(bx.selected&&(b.support.optDisabled?!bx.disabled:bx.getAttribute("disabled")===null)&&(!bx.parentNode.disabled||!b.nodeName(bx.parentNode,"optgroup"))){bA=b(bx).val();if(bw){return bA}bB.push(bA)}}if(bw&&!bB.length&&bC.length){return b(bC[by]).val()}return bB},set:function(bv,bw){var e=b.makeArray(bw);b(bv).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bv.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bA,bx,bB,bz){var bw,e,by,bv=bA.nodeType;if(!bA||bv===3||bv===8||bv===2){return}if(bz&&bx in b.attrFn){return b(bA)[bx](bB)}if(typeof bA.getAttribute==="undefined"){return b.prop(bA,bx,bB)}by=bv!==1||!b.isXMLDoc(bA);if(by){bx=bx.toLowerCase();e=b.attrHooks[bx]||(ao.test(bx)?aY:be)}if(bB!==L){if(bB===null){b.removeAttr(bA,bx);return}else{if(e&&"set" in e&&by&&(bw=e.set(bA,bB,bx))!==L){return bw}else{bA.setAttribute(bx,""+bB);return bB}}}else{if(e&&"get" in e&&by&&(bw=e.get(bA,bx))!==null){return bw}else{bw=bA.getAttribute(bx);return bw===null?L:bw}}},removeAttr:function(bx,bz){var by,bA,bv,e,bw=0;if(bz&&bx.nodeType===1){bA=bz.toLowerCase().split(af);e=bA.length;for(;bw<e;bw++){bv=bA[bw];if(bv){by=b.propFix[bv]||bv;b.attr(bx,bv,"");bx.removeAttribute(F?bv:by);if(ao.test(bv)&&by in bx){bx[by]=false}}}}},attrHooks:{type:{set:function(e,bv){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bv==="radio"&&b.nodeName(e,"input")){var bw=e.value;e.setAttribute("type",bv);if(bw){e.value=bw}return bv}}}},value:{get:function(bv,e){if(be&&b.nodeName(bv,"button")){return be.get(bv,e)}return e in bv?bv.value:null},set:function(bv,bw,e){if(be&&b.nodeName(bv,"button")){return be.set(bv,bw,e)}bv.value=bw}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bz,bx,bA){var bw,e,by,bv=bz.nodeType;if(!bz||bv===3||bv===8||bv===2){return}by=bv!==1||!b.isXMLDoc(bz);if(by){bx=b.propFix[bx]||bx;e=b.propHooks[bx]}if(bA!==L){if(e&&"set" in e&&(bw=e.set(bz,bA,bx))!==L){return bw}else{return(bz[bx]=bA)}}else{if(e&&"get" in e&&(bw=e.get(bz,bx))!==null){return bw}else{return bz[bx]}}},propHooks:{tabIndex:{get:function(bv){var e=bv.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):D.test(bv.nodeName)||l.test(bv.nodeName)&&bv.href?0:L}}}});b.attrHooks.tabindex=b.propHooks.tabIndex;aY={get:function(bv,e){var bx,bw=b.prop(bv,e);return bw===true||typeof bw!=="boolean"&&(bx=bv.getAttributeNode(e))&&bx.nodeValue!==false?e.toLowerCase():L},set:function(bv,bx,e){var bw;if(bx===false){b.removeAttr(bv,e)}else{bw=b.propFix[e]||e;if(bw in bv){bv[bw]=true}bv.setAttribute(e,e.toLowerCase())}return e}};if(!F){aF={name:true,id:true};be=b.valHooks.button={get:function(bw,bv){var e;e=bw.getAttributeNode(bv);return e&&(aF[bv]?e.nodeValue!=="":e.specified)?e.nodeValue:L},set:function(bw,bx,bv){var e=bw.getAttributeNode(bv);if(!e){e=av.createAttribute(bv);bw.setAttributeNode(e)}return(e.nodeValue=bx+"")}};b.attrHooks.tabindex.set=be.set;b.each(["width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bw,bx){if(bx===""){bw.setAttribute(e,"auto");return bx}}})});b.attrHooks.contenteditable={get:be.get,set:function(bv,bw,e){if(bw===""){bw="false"}be.set(bv,bw,e)}}}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bv,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bx){var bw=bx.getAttribute(e,2);return bw===null?L:bw}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||L},set:function(e,bv){return(e.style.cssText=""+bv)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bv){var e=bv.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!b.support.enctype){b.propFix.enctype="encoding"}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bv){if(b.isArray(bv)){return(e.checked=b.inArray(b(e).val(),bv)>=0)}}})});var bd=/^(?:textarea|input|select)$/i,n=/^([^\.]*)?(?:\.(.+))?$/,J=/\bhover(\.\S+)?\b/,aO=/^key/,bf=/^(?:mouse|contextmenu)|click/,T=/^(?:focusinfocus|focusoutblur)$/,U=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Y=function(e){var bv=U.exec(e);if(bv){bv[1]=(bv[1]||"").toLowerCase();bv[3]=bv[3]&&new RegExp("(?:^|\\s)"+bv[3]+"(?:\\s|$)")}return bv},j=function(bw,e){var bv=bw.attributes||{};return((!e[1]||bw.nodeName.toLowerCase()===e[1])&&(!e[2]||(bv.id||{}).value===e[2])&&(!e[3]||e[3].test((bv["class"]||{}).value)))},bt=function(e){return b.event.special.hover?e:e.replace(J,"mouseenter$1 mouseleave$1")};b.event={add:function(bx,bC,bJ,bA,by){var bD,bB,bK,bI,bH,bF,e,bG,bv,bz,bw,bE;if(bx.nodeType===3||bx.nodeType===8||!bC||!bJ||!(bD=b._data(bx))){return}if(bJ.handler){bv=bJ;bJ=bv.handler}if(!bJ.guid){bJ.guid=b.guid++}bK=bD.events;if(!bK){bD.events=bK={}}bB=bD.handle;if(!bB){bD.handle=bB=function(bL){return typeof b!=="undefined"&&(!bL||b.event.triggered!==bL.type)?b.event.dispatch.apply(bB.elem,arguments):L};bB.elem=bx}bC=b.trim(bt(bC)).split(" ");for(bI=0;bI<bC.length;bI++){bH=n.exec(bC[bI])||[];bF=bH[1];e=(bH[2]||"").split(".").sort();bE=b.event.special[bF]||{};bF=(by?bE.delegateType:bE.bindType)||bF;bE=b.event.special[bF]||{};bG=b.extend({type:bF,origType:bH[1],data:bA,handler:bJ,guid:bJ.guid,selector:by,quick:Y(by),namespace:e.join(".")},bv);bw=bK[bF];if(!bw){bw=bK[bF]=[];bw.delegateCount=0;if(!bE.setup||bE.setup.call(bx,bA,e,bB)===false){if(bx.addEventListener){bx.addEventListener(bF,bB,false)}else{if(bx.attachEvent){bx.attachEvent("on"+bF,bB)}}}}if(bE.add){bE.add.call(bx,bG);if(!bG.handler.guid){bG.handler.guid=bJ.guid}}if(by){bw.splice(bw.delegateCount++,0,bG)}else{bw.push(bG)}b.event.global[bF]=true}bx=null},global:{},remove:function(bJ,bE,bv,bH,bB){var bI=b.hasData(bJ)&&b._data(bJ),bF,bx,bz,bL,bC,bA,bG,bw,by,bK,bD,e;if(!bI||!(bw=bI.events)){return}bE=b.trim(bt(bE||"")).split(" ");for(bF=0;bF<bE.length;bF++){bx=n.exec(bE[bF])||[];bz=bL=bx[1];bC=bx[2];if(!bz){for(bz in bw){b.event.remove(bJ,bz+bE[bF],bv,bH,true)}continue}by=b.event.special[bz]||{};bz=(bH?by.delegateType:by.bindType)||bz;bD=bw[bz]||[];bA=bD.length;bC=bC?new RegExp("(^|\\.)"+bC.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(bG=0;bG<bD.length;bG++){e=bD[bG];if((bB||bL===e.origType)&&(!bv||bv.guid===e.guid)&&(!bC||bC.test(e.namespace))&&(!bH||bH===e.selector||bH==="**"&&e.selector)){bD.splice(bG--,1);if(e.selector){bD.delegateCount--}if(by.remove){by.remove.call(bJ,e)}}}if(bD.length===0&&bA!==bD.length){if(!by.teardown||by.teardown.call(bJ,bC)===false){b.removeEvent(bJ,bz,bI.handle)}delete bw[bz]}}if(b.isEmptyObject(bw)){bK=bI.handle;if(bK){bK.elem=null}b.removeData(bJ,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bv,bD,bA,bJ){if(bA&&(bA.nodeType===3||bA.nodeType===8)){return}var bG=bv.type||bv,bx=[],e,bw,bC,bH,bz,by,bF,bE,bB,bI;if(T.test(bG+b.event.triggered)){return}if(bG.indexOf("!")>=0){bG=bG.slice(0,-1);bw=true}if(bG.indexOf(".")>=0){bx=bG.split(".");bG=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bG])&&!b.event.global[bG]){return}bv=typeof bv==="object"?bv[b.expando]?bv:new b.Event(bG,bv):new b.Event(bG);bv.type=bG;bv.isTrigger=true;bv.exclusive=bw;bv.namespace=bx.join(".");bv.namespace_re=bv.namespace?new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;by=bG.indexOf(":")<0?"on"+bG:"";if(!bA){e=b.cache;for(bC in e){if(e[bC].events&&e[bC].events[bG]){b.event.trigger(bv,bD,e[bC].handle.elem,true)}}return}bv.result=L;if(!bv.target){bv.target=bA}bD=bD!=null?b.makeArray(bD):[];bD.unshift(bv);bF=b.event.special[bG]||{};if(bF.trigger&&bF.trigger.apply(bA,bD)===false){return}bB=[[bA,bF.bindType||bG]];if(!bJ&&!bF.noBubble&&!b.isWindow(bA)){bI=bF.delegateType||bG;bH=T.test(bI+bG)?bA:bA.parentNode;bz=null;for(;bH;bH=bH.parentNode){bB.push([bH,bI]);bz=bH}if(bz&&bz===bA.ownerDocument){bB.push([bz.defaultView||bz.parentWindow||bb,bI])}}for(bC=0;bC<bB.length&&!bv.isPropagationStopped();bC++){bH=bB[bC][0];bv.type=bB[bC][1];bE=(b._data(bH,"events")||{})[bv.type]&&b._data(bH,"handle");if(bE){bE.apply(bH,bD)}bE=by&&bH[by];if(bE&&b.acceptData(bH)&&bE.apply(bH,bD)===false){bv.preventDefault()}}bv.type=bG;if(!bJ&&!bv.isDefaultPrevented()){if((!bF._default||bF._default.apply(bA.ownerDocument,bD)===false)&&!(bG==="click"&&b.nodeName(bA,"a"))&&b.acceptData(bA)){if(by&&bA[bG]&&((bG!=="focus"&&bG!=="blur")||bv.target.offsetWidth!==0)&&!b.isWindow(bA)){bz=bA[by];if(bz){bA[by]=null}b.event.triggered=bG;bA[bG]();b.event.triggered=L;if(bz){bA[by]=bz}}}}return bv.result},dispatch:function(e){e=b.event.fix(e||bb.event);var bz=((b._data(this,"events")||{})[e.type]||[]),bA=bz.delegateCount,bG=[].slice.call(arguments,0),by=!e.exclusive&&!e.namespace,bH=[],bC,bB,bK,bx,bF,bE,bv,bD,bI,bw,bJ;bG[0]=e;e.delegateTarget=this;if(bA&&!e.target.disabled&&!(e.button&&e.type==="click")){bx=b(this);bx.context=this.ownerDocument||this;for(bK=e.target;bK!=this;bK=bK.parentNode||this){bE={};bD=[];bx[0]=bK;for(bC=0;bC<bA;bC++){bI=bz[bC];bw=bI.selector;if(bE[bw]===L){bE[bw]=(bI.quick?j(bK,bI.quick):bx.is(bw))}if(bE[bw]){bD.push(bI)}}if(bD.length){bH.push({elem:bK,matches:bD})}}}if(bz.length>bA){bH.push({elem:this,matches:bz.slice(bA)})}for(bC=0;bC<bH.length&&!e.isPropagationStopped();bC++){bv=bH[bC];e.currentTarget=bv.elem;for(bB=0;bB<bv.matches.length&&!e.isImmediatePropagationStopped();bB++){bI=bv.matches[bB];if(by||(!e.namespace&&!bI.namespace)||e.namespace_re&&e.namespace_re.test(bI.namespace)){e.data=bI.data;e.handleObj=bI;bF=((b.event.special[bI.origType]||{}).handle||bI.handler).apply(bv.elem,bG);if(bF!==L){e.result=bF;if(bF===false){e.preventDefault();e.stopPropagation()}}}}}return e.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(bv,e){if(bv.which==null){bv.which=e.charCode!=null?e.charCode:e.keyCode}return bv}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(bx,bw){var by,bz,e,bv=bw.button,bA=bw.fromElement;if(bx.pageX==null&&bw.clientX!=null){by=bx.target.ownerDocument||av;bz=by.documentElement;e=by.body;bx.pageX=bw.clientX+(bz&&bz.scrollLeft||e&&e.scrollLeft||0)-(bz&&bz.clientLeft||e&&e.clientLeft||0);bx.pageY=bw.clientY+(bz&&bz.scrollTop||e&&e.scrollTop||0)-(bz&&bz.clientTop||e&&e.clientTop||0)}if(!bx.relatedTarget&&bA){bx.relatedTarget=bA===bx.target?bw.toElement:bA}if(!bx.which&&bv!==L){bx.which=(bv&1?1:(bv&2?3:(bv&4?2:0)))}return bx}},fix:function(bw){if(bw[b.expando]){return bw}var bv,bz,e=bw,bx=b.event.fixHooks[bw.type]||{},by=bx.props?this.props.concat(bx.props):this.props;bw=b.Event(e);for(bv=by.length;bv;){bz=by[--bv];bw[bz]=e[bz]}if(!bw.target){bw.target=e.srcElement||av}if(bw.target.nodeType===3){bw.target=bw.target.parentNode}if(bw.metaKey===L){bw.metaKey=bw.ctrlKey}return bx.filter?bx.filter(bw,e):bw},special:{ready:{setup:b.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(bw,bv,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bv,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(bw,by,bx,bv){var bz=b.extend(new b.Event(),bx,{type:bw,isSimulated:true,originalEvent:{}});if(bv){b.event.trigger(bz,null,by)}else{b.event.dispatch.call(by,bz)}if(bz.isDefaultPrevented()){bx.preventDefault()}}};b.event.handle=b.event.dispatch;b.removeEvent=av.removeEventListener?function(bv,e,bw){if(bv.removeEventListener){bv.removeEventListener(e,bw,false)}}:function(bv,e,bw){if(bv.detachEvent){bv.detachEvent("on"+e,bw)}};b.Event=function(bv,e){if(!(this instanceof b.Event)){return new b.Event(bv,e)}if(bv&&bv.type){this.originalEvent=bv;this.type=bv.type;this.isDefaultPrevented=(bv.defaultPrevented||bv.returnValue===false||bv.getPreventDefault&&bv.getPreventDefault())?i:bk}else{this.type=bv}if(e){b.extend(this,e)}this.timeStamp=bv&&bv.timeStamp||b.now();this[b.expando]=true};function bk(){return false}function i(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=i;var bv=this.originalEvent;if(!bv){return}if(bv.preventDefault){bv.preventDefault()}else{bv.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=i;var bv=this.originalEvent;if(!bv){return}if(bv.stopPropagation){bv.stopPropagation()}bv.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagation()},isDefaultPrevented:bk,isPropagationStopped:bk,isImmediatePropagationStopped:bk};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bv,e){b.event.special[bv]={delegateType:e,bindType:e,handle:function(bz){var bB=this,bA=bz.relatedTarget,by=bz.handleObj,bw=by.selector,bx;if(!bA||(bA!==bB&&!b.contains(bB,bA))){bz.type=by.origType;bx=by.handler.apply(this,arguments);bz.type=e}return bx}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(){if(b.nodeName(this,"form")){return false}b.event.add(this,"click._submit keypress._submit",function(bx){var bw=bx.target,bv=b.nodeName(bw,"input")||b.nodeName(bw,"button")?bw.form:L;if(bv&&!bv._submit_attached){b.event.add(bv,"submit._submit",function(e){if(this.parentNode&&!e.isTrigger){b.event.simulate("submit",this.parentNode,e,true)}});bv._submit_attached=true}})},teardown:function(){if(b.nodeName(this,"form")){return false}b.event.remove(this,"._submit")}}}if(!b.support.changeBubbles){b.event.special.change={setup:function(){if(bd.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){b.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});b.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false;b.event.simulate("change",this,e,true)}})}return false}b.event.add(this,"beforeactivate._change",function(bw){var bv=bw.target;if(bd.test(bv.nodeName)&&!bv._change_attached){b.event.add(bv,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){b.event.simulate("change",this.parentNode,e,true)}});bv._change_attached=true}})},handle:function(bv){var e=bv.target;if(this!==e||bv.isSimulated||bv.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bv.handleObj.handler.apply(this,arguments)}},teardown:function(){b.event.remove(this,"._change");return bd.test(this.nodeName)}}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bx,e){var bv=0,bw=function(by){b.event.simulate(e,by.target,b.event.fix(by),true)};b.event.special[e]={setup:function(){if(bv++===0){av.addEventListener(bx,bw,true)}},teardown:function(){if(--bv===0){av.removeEventListener(bx,bw,true)}}}})}b.fn.extend({on:function(bw,e,bz,by,bv){var bA,bx;if(typeof bw==="object"){if(typeof e!=="string"){bz=e;e=L}for(bx in bw){this.on(bx,e,bz,bw[bx],bv)}return this}if(bz==null&&by==null){by=e;bz=e=L}else{if(by==null){if(typeof e==="string"){by=bz;bz=L}else{by=bz;bz=e;e=L}}}if(by===false){by=bk}else{if(!by){return this}}if(bv===1){bA=by;by=function(bB){b().off(bB);return bA.apply(this,arguments)};by.guid=bA.guid||(bA.guid=b.guid++)}return this.each(function(){b.event.add(this,bw,by,bz,e)})},one:function(bv,e,bx,bw){return this.on.call(this,bv,e,bx,bw,1)},off:function(bw,e,by){if(bw&&bw.preventDefault&&bw.handleObj){var bv=bw.handleObj;b(bw.delegateTarget).off(bv.namespace?bv.type+"."+bv.namespace:bv.type,bv.selector,bv.handler);return this}if(typeof bw==="object"){for(var bx in bw){this.off(bx,e,bw[bx])}return this}if(e===false||typeof e==="function"){by=e;e=L}if(by===false){by=bk}return this.each(function(){b.event.remove(this,bw,by,e)})},bind:function(e,bw,bv){return this.on(e,null,bw,bv)},unbind:function(e,bv){return this.off(e,null,bv)},live:function(e,bw,bv){b(this.context).on(e,this.selector,bw,bv);return this},die:function(e,bv){b(this.context).off(e,this.selector||"**",bv);return this},delegate:function(e,bv,bx,bw){return this.on(bv,e,bx,bw)},undelegate:function(e,bv,bw){return arguments.length==1?this.off(e,"**"):this.off(bv,e,bw)},trigger:function(e,bv){return this.each(function(){b.event.trigger(e,bv,this)})},triggerHandler:function(e,bv){if(this[0]){return b.event.trigger(e,bv,this[0],true)}},toggle:function(bx){var bv=arguments,e=bx.guid||b.guid++,bw=0,by=function(bz){var bA=(b._data(this,"lastToggle"+bx.guid)||0)%bw;b._data(this,"lastToggle"+bx.guid,bA+1);bz.preventDefault();return bv[bA].apply(this,arguments)||false};by.guid=e;while(bw<bv.length){bv[bw++].guid=e}return this.click(by)},hover:function(e,bv){return this.mouseenter(e).mouseleave(bv||e)}});b.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 contextmenu").split(" "),function(bv,e){b.fn[e]=function(bx,bw){if(bw==null){bw=bx;bx=null}return arguments.length>0?this.on(e,null,bx,bw):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aO.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bf.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bC="sizcache"+(Math.random()+"").replace(".",""),bI=0,bL=Object.prototype.toString,bB=false,bA=true,bK=/\\/g,bO=/\r\n/g,bQ=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bV,e,bY,bZ){bY=bY||[];e=e||av;var b1=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bV||typeof bV!=="string"){return bY}var bS,b3,b6,bR,b2,b5,b4,bX,bU=true,bT=by.isXML(e),bW=[],b0=bV;do{bH.exec("");bS=bH.exec(b0);if(bS){b0=bS[3];bW.push(bS[1]);if(bS[2]){bR=bS[3];break}}}while(bS);if(bW.length>1&&bD.exec(bV)){if(bW.length===2&&bE.relative[bW[0]]){b3=bM(bW[0]+bW[1],e,bZ)}else{b3=bE.relative[bW[0]]?[e]:by(bW.shift(),e);while(bW.length){bV=bW.shift();if(bE.relative[bV]){bV+=bW.shift()}b3=bM(bV,b3,bZ)}}}else{if(!bZ&&bW.length>1&&e.nodeType===9&&!bT&&bE.match.ID.test(bW[0])&&!bE.match.ID.test(bW[bW.length-1])){b2=by.find(bW.shift(),e,bT);e=b2.expr?by.filter(b2.expr,b2.set)[0]:b2.set[0]}if(e){b2=bZ?{expr:bW.pop(),set:bF(bZ)}:by.find(bW.pop(),bW.length===1&&(bW[0]==="~"||bW[0]==="+")&&e.parentNode?e.parentNode:e,bT);b3=b2.expr?by.filter(b2.expr,b2.set):b2.set;if(bW.length>0){b6=bF(b3)}else{bU=false}while(bW.length){b5=bW.pop();b4=b5;if(!bE.relative[b5]){b5=""}else{b4=bW.pop()}if(b4==null){b4=e}bE.relative[b5](b6,b4,bT)}}else{b6=bW=[]}}if(!b6){b6=b3}if(!b6){by.error(b5||bV)}if(bL.call(b6)==="[object Array]"){if(!bU){bY.push.apply(bY,b6)}else{if(e&&e.nodeType===1){for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&(b6[bX]===true||b6[bX].nodeType===1&&by.contains(e,b6[bX]))){bY.push(b3[bX])}}}else{for(bX=0;b6[bX]!=null;bX++){if(b6[bX]&&b6[bX].nodeType===1){bY.push(b3[bX])}}}}}else{bF(b6,bY)}if(bR){by(bR,b1,bY,bZ);by.uniqueSort(bY)}return bY};by.uniqueSort=function(bR){if(bJ){bB=bA;bR.sort(bJ);if(bB){for(var e=1;e<bR.length;e++){if(bR[e]===bR[e-1]){bR.splice(e--,1)}}}}return bR};by.matches=function(e,bR){return by(e,null,null,bR)};by.matchesSelector=function(e,bR){return by(bR,null,null,[e]).length>0};by.find=function(bX,e,bY){var bW,bS,bU,bT,bV,bR;if(!bX){return[]}for(bS=0,bU=bE.order.length;bS<bU;bS++){bV=bE.order[bS];if((bT=bE.leftMatch[bV].exec(bX))){bR=bT[1];bT.splice(1,1);if(bR.substr(bR.length-1)!=="\\"){bT[1]=(bT[1]||"").replace(bK,"");bW=bE.find[bV](bT,e,bY);if(bW!=null){bX=bX.replace(bE.match[bV],"");break}}}}if(!bW){bW=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bW,expr:bX}};by.filter=function(b1,b0,b4,bU){var bW,e,bZ,b6,b3,bR,bT,bV,b2,bS=b1,b5=[],bY=b0,bX=b0&&b0[0]&&by.isXML(b0[0]);while(b1&&b0.length){for(bZ in bE.filter){if((bW=bE.leftMatch[bZ].exec(b1))!=null&&bW[2]){bR=bE.filter[bZ];bT=bW[1];e=false;bW.splice(1,1);if(bT.substr(bT.length-1)==="\\"){continue}if(bY===b5){b5=[]}if(bE.preFilter[bZ]){bW=bE.preFilter[bZ](bW,bY,b4,b5,bU,bX);if(!bW){e=b6=true}else{if(bW===true){continue}}}if(bW){for(bV=0;(b3=bY[bV])!=null;bV++){if(b3){b6=bR(b3,bW,bV,bY);b2=bU^b6;if(b4&&b6!=null){if(b2){e=true}else{bY[bV]=false}}else{if(b2){b5.push(b3);e=true}}}}}if(b6!==L){if(!b4){bY=b5}b1=b1.replace(bE.match[bZ],"");if(!e){return[]}break}}}if(b1===bS){if(e==null){by.error(b1)}else{break}}bS=b1}return bY};by.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var bw=by.getText=function(bU){var bS,bT,e=bU.nodeType,bR="";if(e){if(e===1||e===9){if(typeof bU.textContent==="string"){return bU.textContent}else{if(typeof bU.innerText==="string"){return bU.innerText.replace(bO,"")}else{for(bU=bU.firstChild;bU;bU=bU.nextSibling){bR+=bw(bU)}}}}else{if(e===3||e===4){return bU.nodeValue}}}else{for(bS=0;(bT=bU[bS]);bS++){if(bT.nodeType!==8){bR+=bw(bT)}}}return bR};var bE=by.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(bW,bR){var bT=typeof bR==="string",bV=bT&&!bQ.test(bR),bX=bT&&!bV;if(bV){bR=bR.toLowerCase()}for(var bS=0,e=bW.length,bU;bS<e;bS++){if((bU=bW[bS])){while((bU=bU.previousSibling)&&bU.nodeType!==1){}bW[bS]=bX||bU&&bU.nodeName.toLowerCase()===bR?bU||false:bU===bR}}if(bX){by.filter(bR,bW,true)}},">":function(bW,bR){var bV,bU=typeof bR==="string",bS=0,e=bW.length;if(bU&&!bQ.test(bR)){bR=bR.toLowerCase();for(;bS<e;bS++){bV=bW[bS];if(bV){var bT=bV.parentNode;bW[bS]=bT.nodeName.toLowerCase()===bR?bT:false}}}else{for(;bS<e;bS++){bV=bW[bS];if(bV){bW[bS]=bU?bV.parentNode:bV.parentNode===bR}}if(bU){by.filter(bR,bW,true)}}},"":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("parentNode",bR,bS,bT,bU,bV)},"~":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="string"&&!bQ.test(bR)){bR=bR.toLowerCase();bU=bR;e=bv}e("previousSibling",bR,bS,bT,bU,bV)}},find:{ID:function(bR,bS,bT){if(typeof bS.getElementById!=="undefined"&&!bT){var e=bS.getElementById(bR[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bS,bV){if(typeof bV.getElementsByName!=="undefined"){var bR=[],bU=bV.getElementsByName(bS[1]);for(var bT=0,e=bU.length;bT<e;bT++){if(bU[bT].getAttribute("name")===bS[1]){bR.push(bU[bT])}}return bR.length===0?null:bR}},TAG:function(e,bR){if(typeof bR.getElementsByTagName!=="undefined"){return bR.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bT,bR,bS,e,bW,bX){bT=" "+bT[1].replace(bK,"")+" ";if(bX){return bT}for(var bU=0,bV;(bV=bR[bU])!=null;bU++){if(bV){if(bW^(bV.className&&(" "+bV.className+" ").replace(/[\t\n\r]/g," ").indexOf(bT)>=0)){if(!bS){e.push(bV)}}else{if(bS){bR[bU]=false}}}}return false},ID:function(e){return e[1].replace(bK,"")},TAG:function(bR,e){return bR[1].replace(bK,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bR=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bR[1]+(bR[2]||1))-0;e[3]=bR[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bI++;return e},ATTR:function(bU,bR,bS,e,bV,bW){var bT=bU[1]=bU[1].replace(bK,"");if(!bW&&bE.attrMap[bT]){bU[1]=bE.attrMap[bT]}bU[4]=(bU[4]||bU[5]||"").replace(bK,"");if(bU[2]==="~="){bU[4]=" "+bU[4]+" "}return bU},PSEUDO:function(bU,bR,bS,e,bV){if(bU[1]==="not"){if((bH.exec(bU[3])||"").length>1||/^\w/.test(bU[3])){bU[3]=by(bU[3],null,null,bR)}else{var bT=by.filter(bU[3],bR,bS,true^bV);if(!bS){e.push.apply(e,bT)}return false}}else{if(bE.match.POS.test(bU[0])||bE.match.CHILD.test(bU[0])){return true}}return bU},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bS,bR,e){return !!by(e[3],bS).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bS){var e=bS.getAttribute("type"),bR=bS.type;return bS.nodeName.toLowerCase()==="input"&&"text"===bR&&(e===bR||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bR.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bR){var e=bR.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bR.type},button:function(bR){var e=bR.nodeName.toLowerCase();return e==="input"&&"button"===bR.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bR,e){return e===0},last:function(bS,bR,e,bT){return bR===bT.length-1},even:function(bR,e){return e%2===0},odd:function(bR,e){return e%2===1},lt:function(bS,bR,e){return bR<e[3]-0},gt:function(bS,bR,e){return bR>e[3]-0},nth:function(bS,bR,e){return e[3]-0===bR},eq:function(bS,bR,e){return e[3]-0===bR}},filter:{PSEUDO:function(bS,bX,bW,bY){var e=bX[1],bR=bE.filters[e];if(bR){return bR(bS,bW,bX,bY)}else{if(e==="contains"){return(bS.textContent||bS.innerText||bw([bS])||"").indexOf(bX[3])>=0}else{if(e==="not"){var bT=bX[3];for(var bV=0,bU=bT.length;bV<bU;bV++){if(bT[bV]===bS){return false}}return true}else{by.error(e)}}}},CHILD:function(bS,bU){var bT,b0,bW,bZ,e,bV,bY,bX=bU[1],bR=bS;switch(bX){case"only":case"first":while((bR=bR.previousSibling)){if(bR.nodeType===1){return false}}if(bX==="first"){return true}bR=bS;case"last":while((bR=bR.nextSibling)){if(bR.nodeType===1){return false}}return true;case"nth":bT=bU[2];b0=bU[3];if(bT===1&&b0===0){return true}bW=bU[0];bZ=bS.parentNode;if(bZ&&(bZ[bC]!==bW||!bS.nodeIndex)){bV=0;for(bR=bZ.firstChild;bR;bR=bR.nextSibling){if(bR.nodeType===1){bR.nodeIndex=++bV}}bZ[bC]=bW}bY=bS.nodeIndex-b0;if(bT===0){return bY===0}else{return(bY%bT===0&&bY/bT>=0)}}},ID:function(bR,e){return bR.nodeType===1&&bR.getAttribute("id")===e},TAG:function(bR,e){return(e==="*"&&bR.nodeType===1)||!!bR.nodeName&&bR.nodeName.toLowerCase()===e},CLASS:function(bR,e){return(" "+(bR.className||bR.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bV,bT){var bS=bT[1],e=by.attr?by.attr(bV,bS):bE.attrHandle[bS]?bE.attrHandle[bS](bV):bV[bS]!=null?bV[bS]:bV.getAttribute(bS),bW=e+"",bU=bT[2],bR=bT[4];return e==null?bU==="!=":!bU&&by.attr?e!=null:bU==="="?bW===bR:bU==="*="?bW.indexOf(bR)>=0:bU==="~="?(" "+bW+" ").indexOf(bR)>=0:!bR?bW&&e!==false:bU==="!="?bW!==bR:bU==="^="?bW.indexOf(bR)===0:bU==="$="?bW.substr(bW.length-bR.length)===bR:bU==="|="?bW===bR||bW.substr(0,bR.length+1)===bR+"-":false},POS:function(bU,bR,bS,bV){var e=bR[2],bT=bE.setFilters[e];if(bT){return bT(bU,bS,bR,bV)}}}};var bD=bE.match.POS,bx=function(bR,e){return"\\"+(e-0+1)};for(var bz in bE.match){bE.match[bz]=new RegExp(bE.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bz].source.replace(/\\(\d+)/g,bx))}var bF=function(bR,e){bR=Array.prototype.slice.call(bR,0);if(e){e.push.apply(e,bR);return e}return bR};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bP){bF=function(bU,bT){var bS=0,bR=bT||[];if(bL.call(bU)==="[object Array]"){Array.prototype.push.apply(bR,bU)}else{if(typeof bU.length==="number"){for(var e=bU.length;bS<e;bS++){bR.push(bU[bS])}}else{for(;bU[bS];bS++){bR.push(bU[bS])}}}return bR}}var bJ,bG;if(av.documentElement.compareDocumentPosition){bJ=function(bR,e){if(bR===e){bB=true;return 0}if(!bR.compareDocumentPosition||!e.compareDocumentPosition){return bR.compareDocumentPosition?-1:1}return bR.compareDocumentPosition(e)&4?-1:1}}else{bJ=function(bY,bX){if(bY===bX){bB=true;return 0}else{if(bY.sourceIndex&&bX.sourceIndex){return bY.sourceIndex-bX.sourceIndex}}var bV,bR,bS=[],e=[],bU=bY.parentNode,bW=bX.parentNode,bZ=bU;if(bU===bW){return bG(bY,bX)}else{if(!bU){return -1}else{if(!bW){return 1}}}while(bZ){bS.unshift(bZ);bZ=bZ.parentNode}bZ=bW;while(bZ){e.unshift(bZ);bZ=bZ.parentNode}bV=bS.length;bR=e.length;for(var bT=0;bT<bV&&bT<bR;bT++){if(bS[bT]!==e[bT]){return bG(bS[bT],e[bT])}}return bT===bV?bG(bY,e[bT],-1):bG(bS[bT],bX,1)};bG=function(bR,e,bS){if(bR===e){return bS}var bT=bR.nextSibling;while(bT){if(bT===e){return -1}bT=bT.nextSibling}return 1}}(function(){var bR=av.createElement("div"),bS="script"+(new Date()).getTime(),e=av.documentElement;bR.innerHTML="<a name='"+bS+"'/>";e.insertBefore(bR,e.firstChild);if(av.getElementById(bS)){bE.find.ID=function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var bT=bV.getElementById(bU[1]);return bT?bT.id===bU[1]||typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id").nodeValue===bU[1]?[bT]:L:[]}};bE.filter.ID=function(bV,bT){var bU=typeof bV.getAttributeNode!=="undefined"&&bV.getAttributeNode("id");return bV.nodeType===1&&bU&&bU.nodeValue===bT}}e.removeChild(bR);e=bR=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bR,bV){var bU=bV.getElementsByTagName(bR[1]);if(bR[1]==="*"){var bT=[];for(var bS=0;bU[bS];bS++){if(bU[bS].nodeType===1){bT.push(bU[bS])}}bU=bT}return bU}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bR){return bR.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bT=av.createElement("div"),bS="__sizzle__";bT.innerHTML="<p class='TEST'></p>";if(bT.querySelectorAll&&bT.querySelectorAll(".TEST").length===0){return}by=function(b4,bV,bZ,b3){bV=bV||av;if(!b3&&!by.isXML(bV)){var b2=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b4);if(b2&&(bV.nodeType===1||bV.nodeType===9)){if(b2[1]){return bF(bV.getElementsByTagName(b4),bZ)}else{if(b2[2]&&bE.find.CLASS&&bV.getElementsByClassName){return bF(bV.getElementsByClassName(b2[2]),bZ)}}}if(bV.nodeType===9){if(b4==="body"&&bV.body){return bF([bV.body],bZ)}else{if(b2&&b2[3]){var bY=bV.getElementById(b2[3]);if(bY&&bY.parentNode){if(bY.id===b2[3]){return bF([bY],bZ)}}else{return bF([],bZ)}}}try{return bF(bV.querySelectorAll(b4),bZ)}catch(b0){}}else{if(bV.nodeType===1&&bV.nodeName.toLowerCase()!=="object"){var bW=bV,bX=bV.getAttribute("id"),bU=bX||bS,b6=bV.parentNode,b5=/^\s*[+~]/.test(b4);if(!bX){bV.setAttribute("id",bU)}else{bU=bU.replace(/'/g,"\\$&")}if(b5&&b6){bV=bV.parentNode}try{if(!b5||b6){return bF(bV.querySelectorAll("[id='"+bU+"'] "+b4),bZ)}}catch(b1){}finally{if(!bX){bW.removeAttribute("id")}}}}}return e(b4,bV,bZ,b3)};for(var bR in e){by[bR]=e[bR]}bT=null})()}(function(){var e=av.documentElement,bS=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bS){var bU=!bS.call(av.createElement("div"),"div"),bR=false;try{bS.call(av.documentElement,"[test!='']:sizzle")}catch(bT){bR=true}by.matchesSelector=function(bW,bY){bY=bY.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bW)){try{if(bR||!bE.match.PSEUDO.test(bY)&&!/!=/.test(bY)){var bV=bS.call(bW,bY);if(bV||!bU||bW.document&&bW.document.nodeType!==11){return bV}}}catch(bX){}}return by(bY,null,null,[bW]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bR,bS,bT){if(typeof bS.getElementsByClassName!=="undefined"&&!bT){return bS.getElementsByClassName(bR[1])}};e=null})();function bv(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1&&!bY){e[bC]=bV;e.sizset=bT}if(e.nodeName.toLowerCase()===bW){bU=e;break}e=e[bR]}bZ[bT]=bU}}}function bN(bR,bW,bV,bZ,bX,bY){for(var bT=0,bS=bZ.length;bT<bS;bT++){var e=bZ[bT];if(e){var bU=false;e=e[bR];while(e){if(e[bC]===bV){bU=bZ[e.sizset];break}if(e.nodeType===1){if(!bY){e[bC]=bV;e.sizset=bT}if(typeof bW!=="string"){if(e===bW){bU=true;break}}else{if(by.filter(bW,[e]).length>0){bU=e;break}}}e=e[bR]}bZ[bT]=bU}}}if(av.documentElement.contains){by.contains=function(bR,e){return bR!==e&&(bR.contains?bR.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bR,e){return !!(bR.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bR=(e?e.ownerDocument||e:0).documentElement;return bR?bR.nodeName!=="HTML":false};var bM=function(bS,e,bW){var bV,bX=[],bU="",bY=e.nodeType?[e]:e;while((bV=bE.match.PSEUDO.exec(bS))){bU+=bV[0];bS=bS.replace(bE.match.PSEUDO,"")}bS=bE.relative[bS]?bS+"*":bS;for(var bT=0,bR=bY.length;bT<bR;bT++){by(bS,bY[bT],bX,bW)}return by.filter(bU,bX)};by.attr=b.attr;by.selectors.attrMap={};b.find=by;b.expr=by.selectors;b.expr[":"]=b.expr.filters;b.unique=by.uniqueSort;b.text=by.getText;b.isXMLDoc=by.isXML;b.contains=by.contains})();var ab=/Until$/,aq=/^(?:parents|prevUntil|prevAll)/,a9=/,/,bp=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,H=b.expr.match.POS,ay={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bw=this,by,bv;if(typeof e!=="string"){return b(e).filter(function(){for(by=0,bv=bw.length;by<bv;by++){if(b.contains(bw[by],this)){return true}}})}var bx=this.pushStack("","find",e),bA,bB,bz;for(by=0,bv=this.length;by<bv;by++){bA=bx.length;b.find(e,this[by],bx);if(by>0){for(bB=bA;bB<bx.length;bB++){for(bz=0;bz<bA;bz++){if(bx[bz]===bx[bB]){bx.splice(bB--,1);break}}}}}return bx},has:function(bv){var e=b(bv);return this.filter(function(){for(var bx=0,bw=e.length;bx<bw;bx++){if(b.contains(this,e[bx])){return true}}})},not:function(e){return this.pushStack(aG(this,e,false),"not",e)},filter:function(e){return this.pushStack(aG(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?H.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(by,bx){var bv=[],bw,e,bz=this[0];if(b.isArray(by)){var bB=1;while(bz&&bz.ownerDocument&&bz!==bx){for(bw=0;bw<by.length;bw++){if(b(bz).is(by[bw])){bv.push({selector:by[bw],elem:bz,level:bB})}}bz=bz.parentNode;bB++}return bv}var bA=H.test(by)||typeof by!=="string"?b(by,bx||this.context):0;for(bw=0,e=this.length;bw<e;bw++){bz=this[bw];while(bz){if(bA?bA.index(bz)>-1:b.find.matchesSelector(bz,by)){bv.push(bz);break}else{bz=bz.parentNode;if(!bz||!bz.ownerDocument||bz===bx||bz.nodeType===11){break}}}}bv=bv.length>1?b.unique(bv):bv;return this.pushStack(bv,"closest",by)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bv){var bx=typeof e==="string"?b(e,bv):b.makeArray(e&&e.nodeType?[e]:e),bw=b.merge(this.get(),bx);return this.pushStack(C(bx[0])||C(bw[0])?bw:b.unique(bw))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bv){var e=bv.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bv,e,bw){return b.dir(bv,"parentNode",bw)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(bv,e,bw){return b.dir(bv,"nextSibling",bw)},prevUntil:function(bv,e,bw){return b.dir(bv,"previousSibling",bw)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,bv){b.fn[e]=function(by,bw){var bx=b.map(this,bv,by);if(!ab.test(e)){bw=by}if(bw&&typeof bw==="string"){bx=b.filter(bw,bx)}bx=this.length>1&&!ay[e]?b.unique(bx):bx;if((this.length>1||a9.test(bw))&&aq.test(e)){bx=bx.reverse()}return this.pushStack(bx,e,P.call(arguments).join(","))}});b.extend({filter:function(bw,e,bv){if(bv){bw=":not("+bw+")"}return e.length===1?b.find.matchesSelector(e[0],bw)?[e[0]]:[]:b.find.matches(bw,e)},dir:function(bw,bv,by){var e=[],bx=bw[bv];while(bx&&bx.nodeType!==9&&(by===L||bx.nodeType!==1||!b(bx).is(by))){if(bx.nodeType===1){e.push(bx)}bx=bx[bv]}return e},nth:function(by,e,bw,bx){e=e||1;var bv=0;for(;by;by=by[bw]){if(by.nodeType===1&&++bv===e){break}}return by},sibling:function(bw,bv){var e=[];for(;bw;bw=bw.nextSibling){if(bw.nodeType===1&&bw!==bv){e.push(bw)}}return e}});function aG(bx,bw,e){bw=bw||0;if(b.isFunction(bw)){return b.grep(bx,function(bz,by){var bA=!!bw.call(bz,by,bz);return bA===e})}else{if(bw.nodeType){return b.grep(bx,function(bz,by){return(bz===bw)===e})}else{if(typeof bw==="string"){var bv=b.grep(bx,function(by){return by.nodeType===1});if(bp.test(bw)){return b.filter(bw,bv,!e)}else{bw=b.filter(bw,bv)}}}}return b.grep(bx,function(bz,by){return(b.inArray(bz,bw)>=0)===e})}function a(e){var bw=aR.split("|"),bv=e.createDocumentFragment();if(bv.createElement){while(bw.length){bv.createElement(bw.pop())}}return bv}var aR="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ag=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/<tbody/i,W=/<|&#?\w+;/,ae=/<(?:script|style)/i,O=/<(?:script|object|embed|option|style)/i,ah=new RegExp("<(?:"+aR+")","i"),o=/checked\s*(?:[^=]|=\s*.checked.)/i,bm=/\/(java|ecma)script/i,aN=/^\s*<!(?:\[CDATA\[|\-\-)/,ax={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,"",""]},ac=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bw){var bv=b(this);bv.text(e.call(this,bw,bv.text()))})}if(typeof e!=="object"&&e!==L){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapAll(e.call(this,bw))})}if(this[0]){var bv=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bv.insertBefore(this[0])}bv.map(function(){var bw=this;while(bw.firstChild&&bw.firstChild.nodeType===1){bw=bw.firstChild}return bw}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bv){b(this).wrapInner(e.call(this,bv))})}return this.each(function(){var bv=b(this),bw=bv.contents();if(bw.length){bw.wrapAll(e)}else{bv.append(e)}})},wrap:function(e){var bv=b.isFunction(e);return this.each(function(bw){b(this).wrapAll(bv?e.call(this,bw):e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this)})}else{if(arguments.length){var e=b.clean(arguments);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bv){this.parentNode.insertBefore(bv,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e}}},remove:function(e,bx){for(var bv=0,bw;(bw=this[bv])!=null;bv++){if(!e||b.filter(e,[bw]).length){if(!bx&&bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"));b.cleanData([bw])}if(bw.parentNode){bw.parentNode.removeChild(bw)}}}return this},empty:function(){for(var e=0,bv;(bv=this[e])!=null;e++){if(bv.nodeType===1){b.cleanData(bv.getElementsByTagName("*"))}while(bv.firstChild){bv.removeChild(bv.firstChild)}}return this},clone:function(bv,e){bv=bv==null?false:bv;e=e==null?bv:e;return this.map(function(){return b.clone(this,bv,e)})},html:function(bx){if(bx===L){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bx==="string"&&!ae.test(bx)&&(b.support.leadingWhitespace||!ar.test(bx))&&!ax[(d.exec(bx)||["",""])[1].toLowerCase()]){bx=bx.replace(R,"<$1></$2>");try{for(var bw=0,bv=this.length;bw<bv;bw++){if(this[bw].nodeType===1){b.cleanData(this[bw].getElementsByTagName("*"));this[bw].innerHTML=bx}}}catch(by){this.empty().append(bx)}}else{if(b.isFunction(bx)){this.each(function(bz){var e=b(this);e.html(bx.call(this,bz,e.html()))})}else{this.empty().append(bx)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bx){var bw=b(this),bv=bw.html();bw.replaceWith(e.call(this,bx,bv))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bw=this.nextSibling,bv=this.parentNode;b(this).remove();if(bw){b(bw).before(e)}else{b(bv).append(e)}})}else{return this.length?this.pushStack(b(b.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bB,bF,bE){var bx,by,bA,bD,bC=bB[0],bv=[];if(!b.support.checkClone&&arguments.length===3&&typeof bC==="string"&&o.test(bC)){return this.each(function(){b(this).domManip(bB,bF,bE,true)})}if(b.isFunction(bC)){return this.each(function(bH){var bG=b(this);bB[0]=bC.call(this,bH,bF?bG.html():L);bG.domManip(bB,bF,bE)})}if(this[0]){bD=bC&&bC.parentNode;if(b.support.parentNode&&bD&&bD.nodeType===11&&bD.childNodes.length===this.length){bx={fragment:bD}}else{bx=b.buildFragment(bB,this,bv)}bA=bx.fragment;if(bA.childNodes.length===1){by=bA=bA.firstChild}else{by=bA.firstChild}if(by){bF=bF&&b.nodeName(by,"tr");for(var bw=0,e=this.length,bz=e-1;bw<e;bw++){bE.call(bF?ba(this[bw],by):this[bw],bx.cacheable||(e>1&&bw<bz)?b.clone(bA,true,true):bA)}}if(bv.length){b.each(bv,bo)}}return this}});function ba(e,bv){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function t(bB,bv){if(bv.nodeType!==1||!b.hasData(bB)){return}var by,bx,e,bA=b._data(bB),bz=b._data(bv,bA),bw=bA.events;if(bw){delete bz.handle;bz.events={};for(by in bw){for(bx=0,e=bw[by].length;bx<e;bx++){b.event.add(bv,by+(bw[by][bx].namespace?".":"")+bw[by][bx].namespace,bw[by][bx],bw[by][bx].data)}}}if(bz.data){bz.data=b.extend({},bz.data)}}function ai(bv,e){var bw;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bv)}bw=e.nodeName.toLowerCase();if(bw==="object"){e.outerHTML=bv.outerHTML}else{if(bw==="input"&&(bv.type==="checkbox"||bv.type==="radio")){if(bv.checked){e.defaultChecked=e.checked=bv.checked}if(e.value!==bv.value){e.value=bv.value}}else{if(bw==="option"){e.selected=bv.defaultSelected}else{if(bw==="input"||bw==="textarea"){e.defaultValue=bv.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bz,bx,bv){var by,e,bw,bA,bB=bz[0];if(bx&&bx[0]){bA=bx[0].ownerDocument||bx[0]}if(!bA.createDocumentFragment){bA=av}if(bz.length===1&&typeof bB==="string"&&bB.length<512&&bA===av&&bB.charAt(0)==="<"&&!O.test(bB)&&(b.support.checkClone||!o.test(bB))&&(b.support.html5Clone||!ah.test(bB))){e=true;bw=b.fragments[bB];if(bw&&bw!==1){by=bw}}if(!by){by=bA.createDocumentFragment();b.clean(bz,bA,by,bv)}if(e){b.fragments[bB]=bw?by:1}return{fragment:by,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bv){b.fn[e]=function(bw){var bz=[],bC=b(bw),bB=this.length===1&&this[0].parentNode;if(bB&&bB.nodeType===11&&bB.childNodes.length===1&&bC.length===1){bC[bv](this[0]);return this}else{for(var bA=0,bx=bC.length;bA<bx;bA++){var by=(bA>0?this.clone(true):this).get();b(bC[bA])[bv](by);bz=bz.concat(by)}return this.pushStack(bz,e,bC.selector)}}});function bg(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var bv=(e.nodeName||"").toLowerCase();if(bv==="input"){az(e)}else{if(bv!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}function al(e){var bv=av.createElement("div");ac.appendChild(bv);bv.innerHTML=e.outerHTML;return bv.firstChild}b.extend({clone:function(by,bA,bw){var e,bv,bx,bz=b.support.html5Clone||!ah.test("<"+by.nodeName)?by.cloneNode(true):al(by);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(by.nodeType===1||by.nodeType===11)&&!b.isXMLDoc(by)){ai(by,bz);e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){if(bv[bx]){ai(e[bx],bv[bx])}}}if(bA){t(by,bz);if(bw){e=bg(by);bv=bg(bz);for(bx=0;e[bx];++bx){t(e[bx],bv[bx])}}}e=bv=null;return bz},clean:function(bw,by,bH,bA){var bF;by=by||av;if(typeof by.createElement==="undefined"){by=by.ownerDocument||by[0]&&by[0].ownerDocument||av}var bI=[],bB;for(var bE=0,bz;(bz=bw[bE])!=null;bE++){if(typeof bz==="number"){bz+=""}if(!bz){continue}if(typeof bz==="string"){if(!W.test(bz)){bz=by.createTextNode(bz)}else{bz=bz.replace(R,"<$1></$2>");var bK=(d.exec(bz)||["",""])[1].toLowerCase(),bx=ax[bK]||ax._default,bD=bx[0],bv=by.createElement("div");if(by===av){ac.appendChild(bv)}else{a(by).appendChild(bv)}bv.innerHTML=bx[1]+bz+bx[2];while(bD--){bv=bv.lastChild}if(!b.support.tbody){var e=w.test(bz),bC=bK==="table"&&!e?bv.firstChild&&bv.firstChild.childNodes:bx[1]==="<table>"&&!e?bv.childNodes:[];for(bB=bC.length-1;bB>=0;--bB){if(b.nodeName(bC[bB],"tbody")&&!bC[bB].childNodes.length){bC[bB].parentNode.removeChild(bC[bB])}}}if(!b.support.leadingWhitespace&&ar.test(bz)){bv.insertBefore(by.createTextNode(ar.exec(bz)[0]),bv.firstChild)}bz=bv.childNodes}}var bG;if(!b.support.appendChecked){if(bz[0]&&typeof(bG=bz.length)==="number"){for(bB=0;bB<bG;bB++){E(bz[bB])}}else{E(bz)}}if(bz.nodeType){bI.push(bz)}else{bI=b.merge(bI,bz)}}if(bH){bF=function(bL){return !bL.type||bm.test(bL.type)};for(bE=0;bI[bE];bE++){if(bA&&b.nodeName(bI[bE],"script")&&(!bI[bE].type||bI[bE].type.toLowerCase()==="text/javascript")){bA.push(bI[bE].parentNode?bI[bE].parentNode.removeChild(bI[bE]):bI[bE])}else{if(bI[bE].nodeType===1){var bJ=b.grep(bI[bE].getElementsByTagName("script"),bF);bI.splice.apply(bI,[bE+1,0].concat(bJ))}bH.appendChild(bI[bE])}}}return bI},cleanData:function(bv){var by,bw,e=b.cache,bB=b.event.special,bA=b.support.deleteExpando;for(var bz=0,bx;(bx=bv[bz])!=null;bz++){if(bx.nodeName&&b.noData[bx.nodeName.toLowerCase()]){continue}bw=bx[b.expando];if(bw){by=e[bw];if(by&&by.events){for(var bC in by.events){if(bB[bC]){b.event.remove(bx,bC)}else{b.removeEvent(bx,bC,by.handle)}}if(by.handle){by.handle.elem=null}}if(bA){delete bx[b.expando]}else{if(bx.removeAttribute){bx.removeAttribute(b.expando)}}delete e[bw]}}}});function bo(e,bv){if(bv.src){b.ajax({url:bv.src,async:false,dataType:"script"})}else{b.globalEval((bv.text||bv.textContent||bv.innerHTML||"").replace(aN,"/*$0*/"))}if(bv.parentNode){bv.parentNode.removeChild(bv)}}var ak=/alpha\([^)]*\)/i,au=/opacity=([^)]*)/,z=/([A-Z]|^ms)/g,bc=/^-?\d+(?:px)?$/i,bn=/^-?\d/,I=/^([\-+])=([\-+.\de]+)/,a7={position:"absolute",visibility:"hidden",display:"block"},an=["Left","Right"],a1=["Top","Bottom"],Z,aI,aX;b.fn.css=function(e,bv){if(arguments.length===2&&bv===L){return this}return b.access(this,e,bv,true,function(bx,bw,by){return by!==L?b.style(bx,bw,by):b.css(bx,bw)})};b.extend({cssHooks:{opacity:{get:function(bw,bv){if(bv){var e=Z(bw,"opacity","opacity");return e===""?"1":e}else{return bw.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bx,bw,bD,by){if(!bx||bx.nodeType===3||bx.nodeType===8||!bx.style){return}var bB,bC,bz=b.camelCase(bw),bv=bx.style,bE=b.cssHooks[bz];bw=b.cssProps[bz]||bz;if(bD!==L){bC=typeof bD;if(bC==="string"&&(bB=I.exec(bD))){bD=(+(bB[1]+1)*+bB[2])+parseFloat(b.css(bx,bw));bC="number"}if(bD==null||bC==="number"&&isNaN(bD)){return}if(bC==="number"&&!b.cssNumber[bz]){bD+="px"}if(!bE||!("set" in bE)||(bD=bE.set(bx,bD))!==L){try{bv[bw]=bD}catch(bA){}}}else{if(bE&&"get" in bE&&(bB=bE.get(bx,false,by))!==L){return bB}return bv[bw]}},css:function(by,bx,bv){var bw,e;bx=b.camelCase(bx);e=b.cssHooks[bx];bx=b.cssProps[bx]||bx;if(bx==="cssFloat"){bx="float"}if(e&&"get" in e&&(bw=e.get(by,true,bv))!==L){return bw}else{if(Z){return Z(by,bx)}}},swap:function(bx,bw,by){var e={};for(var bv in bw){e[bv]=bx.style[bv];bx.style[bv]=bw[bv]}by.call(bx);for(bv in bw){bx.style[bv]=e[bv]}}});b.curCSS=b.css;b.each(["height","width"],function(bv,e){b.cssHooks[e]={get:function(by,bx,bw){var bz;if(bx){if(by.offsetWidth!==0){return p(by,e,bw)}else{b.swap(by,a7,function(){bz=p(by,e,bw)})}return bz}},set:function(bw,bx){if(bc.test(bx)){bx=parseFloat(bx);if(bx>=0){return bx+"px"}}else{return bx}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bv,e){return au.test((e&&bv.currentStyle?bv.currentStyle.filter:bv.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(by,bz){var bx=by.style,bv=by.currentStyle,e=b.isNumeric(bz)?"alpha(opacity="+bz*100+")":"",bw=bv&&bv.filter||bx.filter||"";bx.zoom=1;if(bz>=1&&b.trim(bw.replace(ak,""))===""){bx.removeAttribute("filter");if(bv&&!bv.filter){return}}bx.filter=ak.test(bw)?bw.replace(ak,e):bw+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bw,bv){var e;b.swap(bw,{display:"inline-block"},function(){if(bv){e=Z(bw,"margin-right","marginRight")}else{e=bw.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(by,bw){var bv,bx,e;bw=bw.replace(z,"-$1").toLowerCase();if((bx=by.ownerDocument.defaultView)&&(e=bx.getComputedStyle(by,null))){bv=e.getPropertyValue(bw);if(bv===""&&!b.contains(by.ownerDocument.documentElement,by)){bv=b.style(by,bw)}}return bv}}if(av.documentElement.currentStyle){aX=function(bz,bw){var bA,e,by,bv=bz.currentStyle&&bz.currentStyle[bw],bx=bz.style;if(bv===null&&bx&&(by=bx[bw])){bv=by}if(!bc.test(bv)&&bn.test(bv)){bA=bx.left;e=bz.runtimeStyle&&bz.runtimeStyle.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}bx.left=bw==="fontSize"?"1em":(bv||0);bv=bx.pixelLeft+"px";bx.left=bA;if(e){bz.runtimeStyle.left=e}}return bv===""?"auto":bv}}Z=aI||aX;function p(by,bw,bv){var bA=bw==="width"?by.offsetWidth:by.offsetHeight,bz=bw==="width"?an:a1,bx=0,e=bz.length;if(bA>0){if(bv!=="border"){for(;bx<e;bx++){if(!bv){bA-=parseFloat(b.css(by,"padding"+bz[bx]))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+bz[bx]))||0}else{bA-=parseFloat(b.css(by,"border"+bz[bx]+"Width"))||0}}}return bA+"px"}bA=Z(by,bw,bw);if(bA<0||bA==null){bA=by.style[bw]||0}bA=parseFloat(bA)||0;if(bv){for(;bx<e;bx++){bA+=parseFloat(b.css(by,"padding"+bz[bx]))||0;if(bv!=="padding"){bA+=parseFloat(b.css(by,"border"+bz[bx]+"Width"))||0}if(bv==="margin"){bA+=parseFloat(b.css(by,bv+bz[bx]))||0}}}return bA+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bw){var bv=bw.offsetWidth,e=bw.offsetHeight;return(bv===0&&e===0)||(!b.support.reliableHiddenOffsets&&((bw.style&&bw.style.display)||b.css(bw,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var k=/%20/g,ap=/\[\]$/,bs=/\r?\n/g,bq=/#.*$/,aD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aZ=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aM=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aQ=/^(?:GET|HEAD)$/,c=/^\/\//,M=/\?/,a6=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,br=/([?&])_=[^&]*/,K=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,aa={},r={},aE,s,aV=["*/"]+["*"];try{aE=bl.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=K.exec(aE.toLowerCase())||[];function f(e){return function(by,bA){if(typeof by!=="string"){bA=by;by="*"}if(b.isFunction(bA)){var bx=by.toLowerCase().split(h),bw=0,bz=bx.length,bv,bB,bC;for(;bw<bz;bw++){bv=bx[bw];bC=/^\+/.test(bv);if(bC){bv=bv.substr(1)||"*"}bB=e[bv]=e[bv]||[];bB[bC?"unshift":"push"](bA)}}}}function aW(bv,bE,bz,bD,bB,bx){bB=bB||bE.dataTypes[0];bx=bx||{};bx[bB]=true;var bA=bv[bB],bw=0,e=bA?bA.length:0,by=(bv===aa),bC;for(;bw<e&&(by||!bC);bw++){bC=bA[bw](bE,bz,bD);if(typeof bC==="string"){if(!by||bx[bC]){bC=L}else{bE.dataTypes.unshift(bC);bC=aW(bv,bE,bz,bD,bC,bx)}}}if((by||!bC)&&!bx["*"]){bC=aW(bv,bE,bz,bD,"*",bx)}return bC}function am(bw,bx){var bv,e,by=b.ajaxSettings.flatOptions||{};for(bv in bx){if(bx[bv]!==L){(by[bv]?bw:(e||(e={})))[bv]=bx[bv]}}if(e){b.extend(true,bw,e)}}b.fn.extend({load:function(bw,bz,bA){if(typeof bw!=="string"&&A){return A.apply(this,arguments)}else{if(!this.length){return this}}var by=bw.indexOf(" ");if(by>=0){var e=bw.slice(by,bw.length);bw=bw.slice(0,by)}var bx="GET";if(bz){if(b.isFunction(bz)){bA=bz;bz=L}else{if(typeof bz==="object"){bz=b.param(bz,b.ajaxSettings.traditional);bx="POST"}}}var bv=this;b.ajax({url:bw,type:bx,dataType:"html",data:bz,complete:function(bC,bB,bD){bD=bC.responseText;if(bC.isResolved()){bC.done(function(bE){bD=bE});bv.html(e?b("<div>").append(bD.replace(a6,"")).find(e):bD)}if(bA){bv.each(bA,[bD,bB,bC])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bv){var bw=b(this).val();return bw==null?null:b.isArray(bw)?b.map(bw,function(by,bx){return{name:bv.name,value:by.replace(bs,"\r\n")}}):{name:bv.name,value:bw.replace(bs,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bv){b.fn[bv]=function(bw){return this.on(bv,bw)}});b.each(["get","post"],function(e,bv){b[bv]=function(bw,by,bz,bx){if(b.isFunction(by)){bx=bx||bz;bz=by;by=L}return b.ajax({type:bv,url:bw,data:by,success:bz,dataType:bx})}});b.extend({getScript:function(e,bv){return b.get(e,L,bv,"script")},getJSON:function(e,bv,bw){return b.get(e,bv,bw,"json")},ajaxSetup:function(bv,e){if(e){am(bv,b.ajaxSettings)}else{e=bv;bv=b.ajaxSettings}am(bv,e);return bv},ajaxSettings:{url:aE,isLocal:aM.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aV},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bb.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(aa),ajaxTransport:f(r),ajax:function(bz,bx){if(typeof bz==="object"){bx=bz;bz=L}bx=bx||{};var bD=b.ajaxSetup({},bx),bS=bD.context||bD,bG=bS!==bD&&(bS.nodeType||bS instanceof b)?b(bS):b.event,bR=b.Deferred(),bN=b.Callbacks("once memory"),bB=bD.statusCode||{},bC,bH={},bO={},bQ,by,bL,bE,bI,bA=0,bw,bK,bJ={readyState:0,setRequestHeader:function(bT,bU){if(!bA){var e=bT.toLowerCase();bT=bO[e]=bO[e]||bT;bH[bT]=bU}return this},getAllResponseHeaders:function(){return bA===2?bQ:null},getResponseHeader:function(bT){var e;if(bA===2){if(!by){by={};while((e=aD.exec(bQ))){by[e[1].toLowerCase()]=e[2]}}e=by[bT.toLowerCase()]}return e===L?null:e},overrideMimeType:function(e){if(!bA){bD.mimeType=e}return this},abort:function(e){e=e||"abort";if(bL){bL.abort(e)}bF(0,e);return this}};function bF(bZ,bU,b0,bW){if(bA===2){return}bA=2;if(bE){clearTimeout(bE)}bL=L;bQ=bW||"";bJ.readyState=bZ>0?4:0;var bT,b4,b3,bX=bU,bY=b0?bj(bD,bJ,b0):L,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bD.ifModified){if((bV=bJ.getResponseHeader("Last-Modified"))){b.lastModified[bC]=bV}if((b2=bJ.getResponseHeader("Etag"))){b.etag[bC]=b2}}if(bZ===304){bX="notmodified";bT=true}else{try{b4=G(bD,bY);bX="success";bT=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bJ.status=bZ;bJ.statusText=""+(bU||bX);if(bT){bR.resolveWith(bS,[b4,bX,bJ])}else{bR.rejectWith(bS,[bJ,bX,b3])}bJ.statusCode(bB);bB=L;if(bw){bG.trigger("ajax"+(bT?"Success":"Error"),[bJ,bD,bT?b4:b3])}bN.fireWith(bS,[bJ,bX]);if(bw){bG.trigger("ajaxComplete",[bJ,bD]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bR.promise(bJ);bJ.success=bJ.done;bJ.error=bJ.fail;bJ.complete=bN.add;bJ.statusCode=function(bT){if(bT){var e;if(bA<2){for(e in bT){bB[e]=[bB[e],bT[e]]}}else{e=bT[bJ.status];bJ.then(e,e)}}return this};bD.url=((bz||bD.url)+"").replace(bq,"").replace(c,s[1]+"//");bD.dataTypes=b.trim(bD.dataType||"*").toLowerCase().split(h);if(bD.crossDomain==null){bI=K.exec(bD.url.toLowerCase());bD.crossDomain=!!(bI&&(bI[1]!=s[1]||bI[2]!=s[2]||(bI[3]||(bI[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bD.data&&bD.processData&&typeof bD.data!=="string"){bD.data=b.param(bD.data,bD.traditional)}aW(aa,bD,bx,bJ);if(bA===2){return false}bw=bD.global;bD.type=bD.type.toUpperCase();bD.hasContent=!aQ.test(bD.type);if(bw&&b.active++===0){b.event.trigger("ajaxStart")}if(!bD.hasContent){if(bD.data){bD.url+=(M.test(bD.url)?"&":"?")+bD.data;delete bD.data}bC=bD.url;if(bD.cache===false){var bv=b.now(),bP=bD.url.replace(br,"$1_="+bv);bD.url=bP+((bP===bD.url)?(M.test(bD.url)?"&":"?")+"_="+bv:"")}}if(bD.data&&bD.hasContent&&bD.contentType!==false||bx.contentType){bJ.setRequestHeader("Content-Type",bD.contentType)}if(bD.ifModified){bC=bC||bD.url;if(b.lastModified[bC]){bJ.setRequestHeader("If-Modified-Since",b.lastModified[bC])}if(b.etag[bC]){bJ.setRequestHeader("If-None-Match",b.etag[bC])}}bJ.setRequestHeader("Accept",bD.dataTypes[0]&&bD.accepts[bD.dataTypes[0]]?bD.accepts[bD.dataTypes[0]]+(bD.dataTypes[0]!=="*"?", "+aV+"; q=0.01":""):bD.accepts["*"]);for(bK in bD.headers){bJ.setRequestHeader(bK,bD.headers[bK])}if(bD.beforeSend&&(bD.beforeSend.call(bS,bJ,bD)===false||bA===2)){bJ.abort();return false}for(bK in {success:1,error:1,complete:1}){bJ[bK](bD[bK])}bL=aW(r,bD,bx,bJ);if(!bL){bF(-1,"No Transport")}else{bJ.readyState=1;if(bw){bG.trigger("ajaxSend",[bJ,bD])}if(bD.async&&bD.timeout>0){bE=setTimeout(function(){bJ.abort("timeout")},bD.timeout)}try{bA=1;bL.send(bH,bF)}catch(bM){if(bA<2){bF(-1,bM)}else{throw bM}}}return bJ},param:function(e,bw){var bv=[],by=function(bz,bA){bA=b.isFunction(bA)?bA():bA;bv[bv.length]=encodeURIComponent(bz)+"="+encodeURIComponent(bA)};if(bw===L){bw=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){by(this.name,this.value)})}else{for(var bx in e){v(bx,e[bx],bw,by)}}return bv.join("&").replace(k,"+")}});function v(bw,by,bv,bx){if(b.isArray(by)){b.each(by,function(bA,bz){if(bv||ap.test(bw)){bx(bw,bz)}else{v(bw+"["+(typeof bz==="object"||b.isArray(bz)?bA:"")+"]",bz,bv,bx)}})}else{if(!bv&&by!=null&&typeof by==="object"){for(var e in by){v(bw+"["+e+"]",by[e],bv,bx)}}else{bx(bw,by)}}}b.extend({active:0,lastModified:{},etag:{}});function bj(bD,bC,bz){var bv=bD.contents,bB=bD.dataTypes,bw=bD.responseFields,by,bA,bx,e;for(bA in bw){if(bA in bz){bC[bw[bA]]=bz[bA]}}while(bB[0]==="*"){bB.shift();if(by===L){by=bD.mimeType||bC.getResponseHeader("content-type")}}if(by){for(bA in bv){if(bv[bA]&&bv[bA].test(by)){bB.unshift(bA);break}}}if(bB[0] in bz){bx=bB[0]}else{for(bA in bz){if(!bB[0]||bD.converters[bA+" "+bB[0]]){bx=bA;break}if(!e){e=bA}}bx=bx||e}if(bx){if(bx!==bB[0]){bB.unshift(bx)}return bz[bx]}}function G(bH,bz){if(bH.dataFilter){bz=bH.dataFilter(bz,bH.dataType)}var bD=bH.dataTypes,bG={},bA,bE,bw=bD.length,bB,bC=bD[0],bx,by,bF,bv,e;for(bA=1;bA<bw;bA++){if(bA===1){for(bE in bH.converters){if(typeof bE==="string"){bG[bE.toLowerCase()]=bH.converters[bE]}}}bx=bC;bC=bD[bA];if(bC==="*"){bC=bx}else{if(bx!=="*"&&bx!==bC){by=bx+" "+bC;bF=bG[by]||bG["* "+bC];if(!bF){e=L;for(bv in bG){bB=bv.split(" ");if(bB[0]===bx||bB[0]==="*"){e=bG[bB[1]+" "+bC];if(e){bv=bG[bv];if(bv===true){bF=e}else{if(e===true){bF=bv}}break}}}}if(!(bF||e)){b.error("No conversion from "+by.replace(" "," to "))}if(bF!==true){bz=bF?bF(bz):e(bv(bz))}}}}return bz}var aC=b.now(),u=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aC++)}});b.ajaxPrefilter("json jsonp",function(bD,bA,bC){var bx=bD.contentType==="application/x-www-form-urlencoded"&&(typeof bD.data==="string");if(bD.dataTypes[0]==="jsonp"||bD.jsonp!==false&&(u.test(bD.url)||bx&&u.test(bD.data))){var bB,bw=bD.jsonpCallback=b.isFunction(bD.jsonpCallback)?bD.jsonpCallback():bD.jsonpCallback,bz=bb[bw],e=bD.url,by=bD.data,bv="$1"+bw+"$2";if(bD.jsonp!==false){e=e.replace(u,bv);if(bD.url===e){if(bx){by=by.replace(u,bv)}if(bD.data===by){e+=(/\?/.test(e)?"&":"?")+bD.jsonp+"="+bw}}}bD.url=e;bD.data=by;bb[bw]=function(bE){bB=[bE]};bC.always(function(){bb[bw]=bz;if(bB&&b.isFunction(bz)){bb[bw](bB[0])}});bD.converters["script json"]=function(){if(!bB){b.error(bw+" was not called")}return bB[0]};bD.dataTypes[0]="json";return"script"}});b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){b.globalEval(e);return e}}});b.ajaxPrefilter("script",function(e){if(e.cache===L){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(bw){if(bw.crossDomain){var e,bv=av.head||av.getElementsByTagName("head")[0]||av.documentElement;return{send:function(bx,by){e=av.createElement("script");e.async="async";if(bw.scriptCharset){e.charset=bw.scriptCharset}e.src=bw.url;e.onload=e.onreadystatechange=function(bA,bz){if(bz||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bv&&e.parentNode){bv.removeChild(e)}e=L;if(!bz){by(200,"success")}}};bv.insertBefore(e,bv.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var B=bb.ActiveXObject?function(){for(var e in N){N[e](0,1)}}:false,y=0,N;function aL(){try{return new bb.XMLHttpRequest()}catch(bv){}}function aj(){try{return new bb.ActiveXObject("Microsoft.XMLHTTP")}catch(bv){}}b.ajaxSettings.xhr=bb.ActiveXObject?function(){return !this.isLocal&&aL()||aj()}:aL;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSettings.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var bv;return{send:function(bB,bw){var bA=e.xhr(),bz,by;if(e.username){bA.open(e.type,e.url,e.async,e.username,e.password)}else{bA.open(e.type,e.url,e.async)}if(e.xhrFields){for(by in e.xhrFields){bA[by]=e.xhrFields[by]}}if(e.mimeType&&bA.overrideMimeType){bA.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bB["X-Requested-With"]){bB["X-Requested-With"]="XMLHttpRequest"}try{for(by in bB){bA.setRequestHeader(by,bB[by])}}catch(bx){}bA.send((e.hasContent&&e.data)||null);bv=function(bK,bE){var bF,bD,bC,bI,bH;try{if(bv&&(bE||bA.readyState===4)){bv=L;if(bz){bA.onreadystatechange=b.noop;if(B){delete N[bz]}}if(bE){if(bA.readyState!==4){bA.abort()}}else{bF=bA.status;bC=bA.getAllResponseHeaders();bI={};bH=bA.responseXML;if(bH&&bH.documentElement){bI.xml=bH}bI.text=bA.responseText;try{bD=bA.statusText}catch(bJ){bD=""}if(!bF&&e.isLocal&&!e.crossDomain){bF=bI.text?200:404}else{if(bF===1223){bF=204}}}}}catch(bG){if(!bE){bw(-1,bG)}}if(bI){bw(bF,bD,bI,bC)}};if(!e.async||bA.readyState===4){bv()}else{bz=++y;if(B){if(!N){N={};b(bb).unload(B)}N[bz]=bv}bA.onreadystatechange=bv}},abort:function(){if(bv){bv(0,1)}}}}})}var Q={},a8,m,aB=/^(?:toggle|show|hide)$/,aT=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a3,aH=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a4;b.fn.extend({show:function(bx,bA,bz){var bw,by;if(bx||bx===0){return this.animate(a0("show",3),bx,bA,bz)}else{for(var bv=0,e=this.length;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(!b._data(bw,"olddisplay")&&by==="none"){by=bw.style.display=""}if(by===""&&b.css(bw,"display")==="none"){b._data(bw,"olddisplay",x(bw.nodeName))}}}for(bv=0;bv<e;bv++){bw=this[bv];if(bw.style){by=bw.style.display;if(by===""||by==="none"){bw.style.display=b._data(bw,"olddisplay")||""}}}return this}},hide:function(bx,bA,bz){if(bx||bx===0){return this.animate(a0("hide",3),bx,bA,bz)}else{var bw,by,bv=0,e=this.length;for(;bv<e;bv++){bw=this[bv];if(bw.style){by=b.css(bw,"display");if(by!=="none"&&!b._data(bw,"olddisplay")){b._data(bw,"olddisplay",by)}}}for(bv=0;bv<e;bv++){if(this[bv].style){this[bv].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bw,bv,bx){var e=typeof bw==="boolean";if(b.isFunction(bw)&&b.isFunction(bv)){this._toggle.apply(this,arguments)}else{if(bw==null||e){this.each(function(){var by=e?bw:b(this).is(":hidden");b(this)[by?"show":"hide"]()})}else{this.animate(a0("toggle",3),bw,bv,bx)}}return this},fadeTo:function(e,bx,bw,bv){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bx},e,bw,bv)},animate:function(bz,bw,by,bx){var e=b.speed(bw,by,bx);if(b.isEmptyObject(bz)){return this.each(e.complete,[false])}bz=b.extend({},bz);function bv(){if(e.queue===false){b._mark(this)}var bE=b.extend({},e),bK=this.nodeType===1,bI=bK&&b(this).is(":hidden"),bB,bF,bD,bJ,bH,bC,bG,bL,bA;bE.animatedProperties={};for(bD in bz){bB=b.camelCase(bD);if(bD!==bB){bz[bB]=bz[bD];delete bz[bD]}bF=bz[bB];if(b.isArray(bF)){bE.animatedProperties[bB]=bF[1];bF=bz[bB]=bF[0]}else{bE.animatedProperties[bB]=bE.specialEasing&&bE.specialEasing[bB]||bE.easing||"swing"}if(bF==="hide"&&bI||bF==="show"&&!bI){return bE.complete.call(this)}if(bK&&(bB==="height"||bB==="width")){bE.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout||x(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(bE.overflow!=null){this.style.overflow="hidden"}for(bD in bz){bJ=new b.fx(this,bE,bD);bF=bz[bD];if(aB.test(bF)){bA=b._data(this,"toggle"+bD)||(bF==="toggle"?bI?"show":"hide":0);if(bA){b._data(this,"toggle"+bD,bA==="show"?"hide":"show");bJ[bA]()}else{bJ[bF]()}}else{bH=aT.exec(bF);bC=bJ.cur();if(bH){bG=parseFloat(bH[2]);bL=bH[3]||(b.cssNumber[bD]?"":"px");if(bL!=="px"){b.style(this,bD,(bG||1)+bL);bC=((bG||1)/bJ.cur())*bC;b.style(this,bD,bC+bL)}if(bH[1]){bG=((bH[1]==="-="?-1:1)*bG)+bC}bJ.custom(bC,bG,bL)}else{bJ.custom(bC,bF,"")}}}return true}return e.queue===false?this.each(bv):this.queue(e.queue,bv)},stop:function(bw,bv,e){if(typeof bw!=="string"){e=bv;bv=bw;bw=L}if(bv&&bw!==false){this.queue(bw||"fx",[])}return this.each(function(){var bx,by=false,bA=b.timers,bz=b._data(this);if(!e){b._unmark(true,this)}function bB(bE,bF,bD){var bC=bF[bD];b.removeData(bE,bD,true);bC.stop(e)}if(bw==null){for(bx in bz){if(bz[bx]&&bz[bx].stop&&bx.indexOf(".run")===bx.length-4){bB(this,bz,bx)}}}else{if(bz[bx=bw+".run"]&&bz[bx].stop){bB(this,bz,bx)}}for(bx=bA.length;bx--;){if(bA[bx].elem===this&&(bw==null||bA[bx].queue===bw)){if(e){bA[bx](true)}else{bA[bx].saveState()}by=true;bA.splice(bx,1)}}if(!(e&&by)){b.dequeue(this,bw)}})}});function bh(){setTimeout(at,0);return(a4=b.now())}function at(){a4=L}function a0(bv,e){var bw={};b.each(aH.concat.apply([],aH.slice(0,e)),function(){bw[this]=bv});return bw}b.each({slideDown:a0("show",1),slideUp:a0("hide",1),slideToggle:a0("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bv){b.fn[e]=function(bw,by,bx){return this.animate(bv,bw,by,bx)}});b.extend({speed:function(bw,bx,bv){var e=bw&&typeof bw==="object"?b.extend({},bw):{complete:bv||!bv&&bx||b.isFunction(bw)&&bw,duration:bw,easing:bv&&bx||bx&&!b.isFunction(bx)&&bx};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(by){if(b.isFunction(e.old)){e.old.call(this)}if(e.queue){b.dequeue(this,e.queue)}else{if(by!==false){b._unmark(this)}}};return e},easing:{linear:function(bw,bx,e,bv){return e+bv*bw},swing:function(bw,bx,e,bv){return((-Math.cos(bw*Math.PI)/2)+0.5)*bv+e}},timers:[],fx:function(bv,e,bw){this.options=e;this.elem=bv;this.prop=bw;e.orig=e.orig||{}}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,bv=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bv))?!bv||bv==="auto"?0:bv:e},custom:function(bz,by,bx){var e=this,bw=b.fx;this.startTime=a4||bh();this.end=by;this.now=this.start=bz;this.pos=this.state=0;this.unit=bx||this.unit||(b.cssNumber[this.prop]?"":"px");function bv(bA){return e.step(bA)}bv.queue=this.options.queue;bv.elem=this.elem;bv.saveState=function(){if(e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===L){b._data(e.elem,"fxshow"+e.prop,e.start)}};if(bv()&&b.timers.push(bv)&&!a3){a3=setInterval(bw.tick,bw.interval)}},show:function(){var e=b._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||b.style(this.elem,this.prop);this.options.show=true;if(e!==L){this.custom(this.cur(),e)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b._data(this.elem,"fxshow"+this.prop)||b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(by){var bA,bB,bv,bx=a4||bh(),e=true,bz=this.elem,bw=this.options;if(by||bx>=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bA in bw.animatedProperties){if(bw.animatedProperties[bA]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bC,bD){bz.style["overflow"+bD]=bw.overflow[bC]})}if(bw.hide){b(bz).hide()}if(bw.hide||bw.show){for(bA in bw.animatedProperties){b.style(bz,bA,bw.orig[bA]);b.removeData(bz,"fxshow"+bA,true);b.removeData(bz,"toggle"+bA,true)}}bv=bw.complete;if(bv){bw.complete=false;bv.call(bz)}}return false}else{if(bw.duration==Infinity){this.now=bx}else{bB=bx-this.startTime;this.state=bB/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bB,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bw,bv=b.timers,e=0;for(;e<bv.length;e++){bw=bv[e];if(!bw()&&bv[e]===bw){bv.splice(e--,1)}}if(!bv.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a3);a3=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});b.each(["width","height"],function(e,bv){b.fx.step[bv]=function(bw){b.style(bw.elem,bv,Math.max(0,bw.now)+bw.unit)}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bv){return e===bv.elem}).length}}function x(bx){if(!Q[bx]){var e=av.body,bv=b("<"+bx+">").appendTo(e),bw=bv.css("display");bv.remove();if(bw==="none"||bw===""){if(!a8){a8=av.createElement("iframe");a8.frameBorder=a8.width=a8.height=0}e.appendChild(a8);if(!m||!a8.createElement){m=(a8.contentWindow||a8.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");m.close()}bv=m.createElement(bx);m.body.appendChild(bv);bw=b.css(bv,"display");e.removeChild(a8)}Q[bx]=bw}return Q[bx]}var V=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bI){var by=this[0],bB;if(bI){return this.each(function(e){b.offset.setOffset(this,bI,e)})}if(!by||!by.ownerDocument){return null}if(by===by.ownerDocument.body){return b.offset.bodyOffset(by)}try{bB=by.getBoundingClientRect()}catch(bF){}var bH=by.ownerDocument,bw=bH.documentElement;if(!bB||!b.contains(bw,by)){return bB?{top:bB.top,left:bB.left}:{top:0,left:0}}var bC=bH.body,bD=aK(bH),bA=bw.clientTop||bC.clientTop||0,bE=bw.clientLeft||bC.clientLeft||0,bv=bD.pageYOffset||b.support.boxModel&&bw.scrollTop||bC.scrollTop,bz=bD.pageXOffset||b.support.boxModel&&bw.scrollLeft||bC.scrollLeft,bG=bB.top+bv-bA,bx=bB.left+bz-bE;return{top:bG,left:bx}}}else{b.fn.offset=function(bF){var bz=this[0];if(bF){return this.each(function(bG){b.offset.setOffset(this,bF,bG)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}var bC,bw=bz.offsetParent,bv=bz,bE=bz.ownerDocument,bx=bE.documentElement,bA=bE.body,bB=bE.defaultView,e=bB?bB.getComputedStyle(bz,null):bz.currentStyle,bD=bz.offsetTop,by=bz.offsetLeft;while((bz=bz.parentNode)&&bz!==bA&&bz!==bx){if(b.support.fixedPosition&&e.position==="fixed"){break}bC=bB?bB.getComputedStyle(bz,null):bz.currentStyle;bD-=bz.scrollTop;by-=bz.scrollLeft;if(bz===bw){bD+=bz.offsetTop;by+=bz.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&V.test(bz.nodeName))){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}bv=bw;bw=bz.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bC.overflow!=="visible"){bD+=parseFloat(bC.borderTopWidth)||0;by+=parseFloat(bC.borderLeftWidth)||0}e=bC}if(e.position==="relative"||e.position==="static"){bD+=bA.offsetTop;by+=bA.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bD+=Math.max(bx.scrollTop,bA.scrollTop);by+=Math.max(bx.scrollLeft,bA.scrollLeft)}return{top:bD,left:by}}}b.offset={bodyOffset:function(e){var bw=e.offsetTop,bv=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bw+=parseFloat(b.css(e,"marginTop"))||0;bv+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bw,left:bv}},setOffset:function(bx,bG,bA){var bB=b.css(bx,"position");if(bB==="static"){bx.style.position="relative"}var bz=b(bx),bv=bz.offset(),e=b.css(bx,"top"),bE=b.css(bx,"left"),bF=(bB==="absolute"||bB==="fixed")&&b.inArray("auto",[e,bE])>-1,bD={},bC={},bw,by;if(bF){bC=bz.position();bw=bC.top;by=bC.left}else{bw=parseFloat(e)||0;by=parseFloat(bE)||0}if(b.isFunction(bG)){bG=bG.call(bx,bA,bv)}if(bG.top!=null){bD.top=(bG.top-bv.top)+bw}if(bG.left!=null){bD.left=(bG.left-bv.left)+by}if("using" in bG){bG.using.call(bx,bD)}else{bz.css(bD)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bw=this[0],bv=this.offsetParent(),bx=this.offset(),e=ad.test(bv[0].nodeName)?{top:0,left:0}:bv.offset();bx.top-=parseFloat(b.css(bw,"marginTop"))||0;bx.left-=parseFloat(b.css(bw,"marginLeft"))||0;e.top+=parseFloat(b.css(bv[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bv[0],"borderLeftWidth"))||0;return{top:bx.top-e.top,left:bx.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bv,e){var bw="scroll"+e;b.fn[bw]=function(bz){var bx,by;if(bz===L){bx=this[0];if(!bx){return null}by=aK(bx);return by?("pageXOffset" in by)?by[bv?"pageYOffset":"pageXOffset"]:b.support.boxModel&&by.document.documentElement[bw]||by.document.body[bw]:bx[bw]}return this.each(function(){by=aK(this);if(by){by.scrollTo(!bv?bz:b(by).scrollLeft(),bv?bz:b(by).scrollTop())}else{this[bw]=bz}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bv,e){var bw=e.toLowerCase();b.fn["inner"+e]=function(){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,"padding")):this[bw]():null};b.fn["outer"+e]=function(by){var bx=this[0];return bx?bx.style?parseFloat(b.css(bx,bw,by?"margin":"border")):this[bw]():null};b.fn[bw]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bw](bz.call(this,bE,bD[bw]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e],bx=bA.document.body;return bA.document.compatMode==="CSS1Compat"&&bB||bx&&bx["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===L){var bC=b.css(bA,bw),by=parseFloat(bC);return b.isNumeric(by)?by:bC}else{return this.css(bw,typeof bz==="string"?bz:bz+"px")}}}}});bb.jQuery=bb.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);
/*!
 * jQuery UI 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(a,d){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.15",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{e=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!e.length?a(document):e},zIndex:function(h){if(h!==d){return this.css("zIndex",h)}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==document){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function j(m,l,i,n){a.each(f,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(i){l-=parseFloat(a.curCSS(m,"border"+this+"Width",true))||0}if(n){l-=parseFloat(a.curCSS(m,"margin"+this,true))||0}});return l}a.fn["inner"+e]=function(i){if(i===d){return k["inner"+e].call(this)}return this.each(function(){a(this).css(h,j(this,i)+"px")})};a.fn["outer"+e]=function(i,l){if(typeof i!=="number"){return k["outer"+e].call(this,i)}return this.each(function(){a(this).css(h,j(this,i,true,l)+"px")})}});function c(g,e){var j=g.nodeName.toLowerCase();if("area"===j){var i=g.parentNode,h=i.name,f;if(!g.href||!h||i.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+h+"]")[0];return !!f&&b(f)}return(/input|select|textarea|button|object/.test(j)?!g.disabled:"a"==j?g.href||e:e)&&b(g)}function b(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(g,f,e){return !!a.data(g,e[3])},focusable:function(e){return c(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(g){var e=a.attr(g,"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f)}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(e,g,f){var j=e.plugins[g];if(!j||!e.element[0].parentNode){return}for(var h=0;h<j.length;h++){if(e.options[j[h][0]]){j[h][1].apply(e.element,f)}}}},contains:function(f,e){return document.compareDocumentPosition?f.compareDocumentPosition(e)&16:f!==e&&f.contains(e)},hasScroll:function(h,f){if(a(h).css("overflow")==="hidden"){return false}var e=(f&&f==="left")?"scrollLeft":"scrollTop",g=false;if(h[e]>0){return true}h[e]=1;g=(h[e]>0);h[e]=0;return g},isOverAxis:function(f,e,g){return(f>e)&&(f<(e+g))},isOver:function(j,f,i,h,e,g){return a.ui.isOverAxis(j,i,e)&&a.ui.isOverAxis(f,h,g)}})})(jQuery);
/*!
 * jQuery UI Widget 1.8.15
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var f=0,g;(g=e[f])!=null;f++){b(g).triggerHandler("remove")}c(e)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);(function($,undefined){$.extend($.ui,{datepicker:{version:"1.8.15"}});var PROP_NAME="datepicker";var dpuuid=new Date().getTime();var instActive;function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){if(this.debug){console.log.apply("",arguments)}},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){this.uuid+=1;target.id="dp"+this.uuid}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}this._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});this._autoSize(inst);$.data(target,PROP_NAME,inst);if(inst.settings.disabled){this._disableDatepicker(target)}},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(inst.append){inst.append.remove()}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}input.unbind("focus",this._showDatepicker);if(inst.trigger){inst.trigger.remove()}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(input[0])}return false})}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);var dateFormat=this._get(inst,"dateFormat");if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;var maxI=0;for(var i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i}}return maxI};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())}inst.input.attr("size",this._formatDate(inst,date).length)}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);if(inst.settings.disabled){this._disableDatepicker(target)}inst.dpDiv.css("display","block")},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){this.uuid+=1;var id="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});date=(date&&date.constructor==Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=document.documentElement.clientWidth;var browserHeight=document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker()}var date=this._getDateDatepicker(target,true);var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate)}if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate)}this._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:var sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}var onSelect=$.datepicker._get(inst,"onSelect");if(onSelect){var dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{$.datepicker._hideDatepicker()}return false;break;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}}catch(event){$.datepicker.log(event)}}return true},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!=inst){if($.datepicker._datepickerShowing){$.datepicker._triggerOnClose($.datepicker._curInst)}$.datepicker._curInst.dpDiv.stop(true,true)}var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");var duration=$.datepicker._get(inst,"duration");var postProcess=function(){var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){var borders=$.datepicker._getBorders(inst.dpDiv);cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}};inst.dpDiv.zIndex($(input).zIndex()+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess)}if(!showAnim||!duration){postProcess()}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var self=this;self.maxRows=4;var borders=$.datepicker._getBorders(inst.dpDiv);instActive=inst;inst.dpDiv.empty().append(this._generateHTML(inst));var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}inst.dpDiv.find("."+this._dayOverClass+" a").mouseover();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&inst.input[0]!=document.activeElement){inst.input.focus()}if(inst.yearshtml){var origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&inst.yearshtml){inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml)}origyearshtml=inst.yearshtml=null},0)}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value};return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))]},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=document.documentElement.clientWidth+$(document).scrollLeft();var viewHeight=document.documentElement.clientHeight+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset},_findPos:function(obj){var inst=this._getInst(obj);var isRTL=this._get(inst,"isRTL");while(obj&&(obj.type=="hidden"||obj.nodeType!=1||$.expr.filters.hidden(obj))){obj=obj[isRTL?"previousSibling":"nextSibling"]}var position=$(obj).offset();return[position.left,position.top]},_triggerOnClose:function(inst){var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}},_hideDatepicker:function(input){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");var duration=this._get(inst,"duration");var postProcess=function(){$.datepicker._tidyDialog(inst);this._curInst=null};if($.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess)}if(!showAnim){postProcess()}$.datepicker._triggerOnClose(inst);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker()}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{this._hideDatepicker();this._lastInput=inst.input[0];inst.input.focus();this._lastInput=null}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));var time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){var isDoubled=lookAhead(match);var size=(match=="@"?14:(match=="!"?20:(match=="y"&&isDoubled?4:(match=="o"?3:2))));var digits=new RegExp("^\\d{1,"+size+"}");var num=value.substring(iValue).match(digits);if(!num){throw"Missing number at position "+iValue}iValue+=num[0].length;return parseInt(num[0],10)};var getName=function(match,shortNames,longNames){var names=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]]}).sort(function(a,b){return -(a[1].length-b[1].length)});var index=-1;$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()==name.toLowerCase()){index=pair[0];iValue+=name.length;return false}});if(index!=-1){return index+1}else{throw"Unknown name at position "+iValue}};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(iValue<value.length){throw"Extra/unparsed characters found in date: "+value.substring(iValue)}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":output+=formatNumber("o",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000),3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"!":output+=date.getTime()*10000+this._ticksTo1970;break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return}var dateFormat=this._get(inst,"dateFormat");var dates=inst.lastVal=inst.input?inst.input.val():null;var date,defaultDate;date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);dates=(noDefault?"":dates)}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};var newDate=(date==null||date===""?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()=="Invalid Date"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0)}return this._daylightSavingAdjust(newDate)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,noChange){var clear=!date;var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;var newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}var onSelect=this._get(inst,"onSelect");if(onSelect){var dateStr=this._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._gotoToday('#"+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var showWeek=this._get(inst,"showWeek");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var selectOtherMonths=this._get(inst,"selectOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";this.maxRows=4;for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group';if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+=" ui-datepicker-group-last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+=" ui-datepicker-group-middle";cornerClass="";break}}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var curRows=Math.ceil((leadDays+daysInMonth)/7);var numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' onclick="DP_jQuery_'+dpuuid+".datepicker._selectDay('#"+inst.id+"',"+printDate.getMonth()+","+printDate.getFullYear()+', this);return false;"')+">"+(otherMonth&&!showOtherMonths?"&#xa0;":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'M');\" >";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")}if(!inst.yearshtml){inst.yearshtml="";if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var thisYear=new Date().getFullYear();var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};var year=determineYear(years[0]);var endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'Y');\" >";for(;year<=endYear;year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}inst.yearshtml+="</select>";html+=inst.yearshtml;inst.yearshtml=null}}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var newDate=(minDate&&date<minDate?minDate:date);newDate=(maxDate&&newDate>maxDate?maxDate:newDate);return newDate},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return dpDiv.bind("mouseout",function(event){var elem=$(event.target).closest(selector);if(!elem.length){return}elem.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(event){var elem=$(event.target).closest(selector);if($.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])||!elem.length){return}elem.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");elem.addClass("ui-state-hover");if(elem.hasClass("ui-datepicker-prev")){elem.addClass("ui-datepicker-prev-hover")}if(elem.hasClass("ui-datepicker-next")){elem.addClass("ui-datepicker-next-hover")}})}function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!this.length){return this}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.8.15";window["DP_jQuery_"+dpuuid]=$})(jQuery);(function(e,f){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",b={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},d={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},a=e.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};e.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(h){var g=e(this).css(h).offset().top;if(g<0){e(this).css("top",h.top-g)}}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;var o=this,p=o.options,m=p.title||"&#160;",h=e.ui.dialog.getTitleId(o.element),n=(o.uiDialog=e("<div></div>")).appendTo(document.body).hide().addClass(c+p.dialogClass).css({zIndex:p.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(q){if(p.closeOnEscape&&q.keyCode&&q.keyCode===e.ui.keyCode.ESCAPE){o.close(q);q.preventDefault()}}).attr({role:"dialog","aria-labelledby":h}).mousedown(function(q){o.moveToTop(false,q)}),j=o.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n),i=(o.uiDialogTitlebar=e("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),l=e('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).click(function(q){o.close(q);return false}).appendTo(i),k=(o.uiDialogTitlebarCloseText=e("<span></span>")).addClass("ui-icon ui-icon-closethick").text(p.closeText).appendTo(l),g=e("<span></span>").addClass("ui-dialog-title").attr("id",h).html(m).prependTo(i);if(e.isFunction(p.beforeclose)&&!e.isFunction(p.beforeClose)){p.beforeClose=p.beforeclose}i.find("*").add(i).disableSelection();if(p.draggable&&e.fn.draggable){o._makeDraggable()}if(p.resizable&&e.fn.resizable){o._makeResizable()}o._createButtons(p.buttons);o._isOpen=false;if(e.fn.bgiframe){n.bgiframe()}},_init:function(){if(this.options.autoOpen){this.open()}},destroy:function(){var g=this;if(g.overlay){g.overlay.destroy()}g.uiDialog.hide();g.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");g.uiDialog.remove();if(g.originalTitle){g.element.attr("title",g.originalTitle)}return g},widget:function(){return this.uiDialog},close:function(j){var g=this,i,h;if(false===g._trigger("beforeClose",j)){return}if(g.overlay){g.overlay.destroy()}g.uiDialog.unbind("keypress.ui-dialog");g._isOpen=false;if(g.options.hide){g.uiDialog.hide(g.options.hide,function(){g._trigger("close",j)})}else{g.uiDialog.hide();g._trigger("close",j)}e.ui.dialog.overlay.resize();if(g.options.modal){i=0;e(".ui-dialog").each(function(){if(this!==g.uiDialog[0]){h=e(this).css("z-index");if(!isNaN(h)){i=Math.max(i,h)}}});e.ui.dialog.maxZ=i}return g},isOpen:function(){return this._isOpen},moveToTop:function(k,j){var g=this,i=g.options,h;if((i.modal&&!k)||(!i.stack&&!i.modal)){return g._trigger("focus",j)}if(i.zIndex>e.ui.dialog.maxZ){e.ui.dialog.maxZ=i.zIndex}if(g.overlay){e.ui.dialog.maxZ+=1;g.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ)}h={scrollTop:g.element.scrollTop(),scrollLeft:g.element.scrollLeft()};e.ui.dialog.maxZ+=1;g.uiDialog.css("z-index",e.ui.dialog.maxZ);g.element.attr(h);g._trigger("focus",j);return g},open:function(){if(this._isOpen){return}var h=this,i=h.options,g=h.uiDialog;h.overlay=i.modal?new e.ui.dialog.overlay(h):null;h._size();h._position(i.position);g.show(i.show);h.moveToTop(true);if(i.modal){g.bind("keypress.ui-dialog",function(l){if(l.keyCode!==e.ui.keyCode.TAB){return}var k=e(":tabbable",this),m=k.filter(":first"),j=k.filter(":last");if(l.target===j[0]&&!l.shiftKey){m.focus(1);return false}else{if(l.target===m[0]&&l.shiftKey){j.focus(1);return false}}})}e(h.element.find(":tabbable").get().concat(g.find(".ui-dialog-buttonpane :tabbable").get().concat(g.get()))).eq(0).focus();h._isOpen=true;h._trigger("open");return h},_createButtons:function(j){var i=this,g=false,h=e("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),k=e("<div></div>").addClass("ui-dialog-buttonset").appendTo(h);i.uiDialog.find(".ui-dialog-buttonpane").remove();if(typeof j==="object"&&j!==null){e.each(j,function(){return !(g=true)})}if(g){e.each(j,function(l,n){n=e.isFunction(n)?{click:n,text:l}:n;var m=e('<button type="button"></button>').click(function(){n.click.apply(i.element[0],arguments)}).appendTo(k);e.each(n,function(o,p){if(o==="click"){return}if(o in a){m[o](p)}else{m.attr(o,p)}});if(e.fn.button){m.button()}});h.appendTo(i.uiDialog)}},_makeDraggable:function(){var g=this,j=g.options,k=e(document),i;function h(l){return{position:l.position,offset:l.offset}}g.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(l,m){i=j.height==="auto"?"auto":e(this).height();e(this).height(e(this).height()).addClass("ui-dialog-dragging");g._trigger("dragStart",l,h(m))},drag:function(l,m){g._trigger("drag",l,h(m))},stop:function(l,m){j.position=[m.position.left-k.scrollLeft(),m.position.top-k.scrollTop()];e(this).removeClass("ui-dialog-dragging").height(i);g._trigger("dragStop",l,h(m));e.ui.dialog.overlay.resize()}})},_makeResizable:function(l){l=(l===f?this.options.resizable:l);var h=this,k=h.options,g=h.uiDialog.css("position"),j=(typeof l==="string"?l:"n,e,s,w,se,sw,ne,nw");function i(m){return{originalPosition:m.originalPosition,originalSize:m.originalSize,position:m.position,size:m.size}}h.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:h.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:h._minHeight(),handles:j,start:function(m,n){e(this).addClass("ui-dialog-resizing");h._trigger("resizeStart",m,i(n))},resize:function(m,n){h._trigger("resize",m,i(n))},stop:function(m,n){e(this).removeClass("ui-dialog-resizing");k.height=e(this).height();k.width=e(this).width();h._trigger("resizeStop",m,i(n));e.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var g=this.options;if(g.height==="auto"){return g.minHeight}else{return Math.min(g.minHeight,g.height)}},_position:function(h){var i=[],j=[0,0],g;if(h){if(typeof h==="string"||(typeof h==="object"&&"0" in h)){i=h.split?h.split(" "):[h[0],h[1]];if(i.length===1){i[1]=i[0]}e.each(["left","top"],function(l,k){if(+i[l]===i[l]){j[l]=i[l];i[l]=k}});h={my:i.join(" "),at:i.join(" "),offset:j.join(" ")}}h=e.extend({},e.ui.dialog.prototype.options.position,h)}else{h=e.ui.dialog.prototype.options.position}g=this.uiDialog.is(":visible");if(!g){this.uiDialog.show()}this.uiDialog.css({top:0,left:0}).position(e.extend({of:window},h));if(!g){this.uiDialog.hide()}},_setOptions:function(j){var h=this,g={},i=false;e.each(j,function(k,l){h._setOption(k,l);if(k in b){i=true}if(k in d){g[k]=l}});if(i){this._size()}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",g)}},_setOption:function(j,k){var h=this,g=h.uiDialog;switch(j){case"beforeclose":j="beforeClose";break;case"buttons":h._createButtons(k);break;case"closeText":h.uiDialogTitlebarCloseText.text(""+k);break;case"dialogClass":g.removeClass(h.options.dialogClass).addClass(c+k);break;case"disabled":if(k){g.addClass("ui-dialog-disabled")}else{g.removeClass("ui-dialog-disabled")}break;case"draggable":var i=g.is(":data(draggable)");if(i&&!k){g.draggable("destroy")}if(!i&&k){h._makeDraggable()}break;case"position":h._position(k);break;case"resizable":var l=g.is(":data(resizable)");if(l&&!k){g.resizable("destroy")}if(l&&typeof k==="string"){g.resizable("option","handles",k)}if(!l&&k!==false){h._makeResizable(k)}break;case"title":e(".ui-dialog-title",h.uiDialogTitlebar).html(""+(k||"&#160;"));break}e.Widget.prototype._setOption.apply(h,arguments)},_size:function(){var k=this.options,h,j,g=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(k.minWidth>k.width){k.width=k.minWidth}h=this.uiDialog.css({height:"auto",width:k.width}).height();j=Math.max(0,k.minHeight-h);if(k.height==="auto"){if(e.support.minHeight){this.element.css({minHeight:j,height:"auto"})}else{this.uiDialog.show();var i=this.element.css("height","auto").height();if(!g){this.uiDialog.hide()}this.element.height(Math.max(i,j))}}else{this.element.height(Math.max(k.height-h,0))}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}}});e.extend(e.ui.dialog,{version:"1.8.15",uuid:0,maxZ:0,getTitleId:function(g){var h=g.attr("id");if(!h){this.uuid+=1;h=this.uuid}return"ui-dialog-title-"+h},overlay:function(g){this.$el=e.ui.dialog.overlay.create(g)}});e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(g){return g+".dialog-overlay"}).join(" "),create:function(h){if(this.instances.length===0){setTimeout(function(){if(e.ui.dialog.overlay.instances.length){e(document).bind(e.ui.dialog.overlay.events,function(i){if(e(i.target).zIndex()<e.ui.dialog.overlay.maxZ){return false}})}},1);e(document).bind("keydown.dialog-overlay",function(i){if(h.options.closeOnEscape&&i.keyCode&&i.keyCode===e.ui.keyCode.ESCAPE){h.close(i);i.preventDefault()}});e(window).bind("resize.dialog-overlay",e.ui.dialog.overlay.resize)}var g=(this.oldInstances.pop()||e("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});if(e.fn.bgiframe){g.bgiframe()}this.instances.push(g);return g},destroy:function(g){var h=e.inArray(g,this.instances);if(h!=-1){this.oldInstances.push(this.instances.splice(h,1)[0])}if(this.instances.length===0){e([document,window]).unbind(".dialog-overlay")}g.remove();var i=0;e.each(this.instances,function(){i=Math.max(i,this.css("z-index"))});this.maxZ=i},height:function(){var h,g;if(e.browser.msie&&e.browser.version<7){h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);g=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(h<g){return e(window).height()+"px"}else{return h+"px"}}else{return e(document).height()+"px"}},width:function(){var g,h;if(e.browser.msie){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);h=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(g<h){return e(window).width()+"px"}else{return g+"px"}}else{return e(document).width()+"px"}},resize:function(){var g=e([]);e.each(e.ui.dialog.overlay.instances,function(){g=g.add(this)});g.css({width:0,height:0}).css({width:e.ui.dialog.overlay.width(),height:e.ui.dialog.overlay.height()})}});e.extend(e.ui.dialog.overlay.prototype,{destroy:function(){e.ui.dialog.overlay.destroy(this.$el)}})}(jQuery));(function(f,g){f.ui=f.ui||{};var d=/left|center|right/,e=/top|center|bottom/,a="center",b=f.fn.position,c=f.fn.offset;f.fn.position=function(i){if(!i||!i.of){return b.apply(this,arguments)}i=f.extend({},i);var m=f(i.of),l=m[0],o=(i.collision||"flip").split(" "),n=i.offset?i.offset.split(" "):[0,0],k,h,j;if(l.nodeType===9){k=m.width();h=m.height();j={top:0,left:0}}else{if(l.setTimeout){k=m.width();h=m.height();j={top:m.scrollTop(),left:m.scrollLeft()}}else{if(l.preventDefault){i.at="left top";k=h=0;j={top:i.of.pageY,left:i.of.pageX}}else{k=m.outerWidth();h=m.outerHeight();j=m.offset()}}}f.each(["my","at"],function(){var p=(i[this]||"").split(" ");if(p.length===1){p=d.test(p[0])?p.concat([a]):e.test(p[0])?[a].concat(p):[a,a]}p[0]=d.test(p[0])?p[0]:a;p[1]=e.test(p[1])?p[1]:a;i[this]=p});if(o.length===1){o[1]=o[0]}n[0]=parseInt(n[0],10)||0;if(n.length===1){n[1]=n[0]}n[1]=parseInt(n[1],10)||0;if(i.at[0]==="right"){j.left+=k}else{if(i.at[0]===a){j.left+=k/2}}if(i.at[1]==="bottom"){j.top+=h}else{if(i.at[1]===a){j.top+=h/2}}j.left+=n[0];j.top+=n[1];return this.each(function(){var s=f(this),u=s.outerWidth(),r=s.outerHeight(),t=parseInt(f.curCSS(this,"marginLeft",true))||0,q=parseInt(f.curCSS(this,"marginTop",true))||0,w=u+t+(parseInt(f.curCSS(this,"marginRight",true))||0),x=r+q+(parseInt(f.curCSS(this,"marginBottom",true))||0),v=f.extend({},j),p;if(i.my[0]==="right"){v.left-=u}else{if(i.my[0]===a){v.left-=u/2}}if(i.my[1]==="bottom"){v.top-=r}else{if(i.my[1]===a){v.top-=r/2}}v.left=Math.round(v.left);v.top=Math.round(v.top);p={left:v.left-t,top:v.top-q};f.each(["left","top"],function(z,y){if(f.ui.position[o[z]]){f.ui.position[o[z]][y](v,{targetWidth:k,targetHeight:h,elemWidth:u,elemHeight:r,collisionPosition:p,collisionWidth:w,collisionHeight:x,offset:n,my:i.my,at:i.at})}});if(f.fn.bgiframe){s.bgiframe()}s.offset(f.extend(v,{using:i.using}))})};f.ui.position={fit:{left:function(h,i){var k=f(window),j=i.collisionPosition.left+i.collisionWidth-k.width()-k.scrollLeft();h.left=j>0?h.left-j:Math.max(h.left-i.collisionPosition.left,h.left)},top:function(h,i){var k=f(window),j=i.collisionPosition.top+i.collisionHeight-k.height()-k.scrollTop();h.top=j>0?h.top-j:Math.max(h.top-i.collisionPosition.top,h.top)}},flip:{left:function(i,k){if(k.at[0]===a){return}var m=f(window),l=k.collisionPosition.left+k.collisionWidth-m.width()-m.scrollLeft(),h=k.my[0]==="left"?-k.elemWidth:k.my[0]==="right"?k.elemWidth:0,j=k.at[0]==="left"?k.targetWidth:-k.targetWidth,n=-2*k.offset[0];i.left+=k.collisionPosition.left<0?h+j+n:l>0?h+j+n:0},top:function(i,k){if(k.at[1]===a){return}var m=f(window),l=k.collisionPosition.top+k.collisionHeight-m.height()-m.scrollTop(),h=k.my[1]==="top"?-k.elemHeight:k.my[1]==="bottom"?k.elemHeight:0,j=k.at[1]==="top"?k.targetHeight:-k.targetHeight,n=-2*k.offset[1];i.top+=k.collisionPosition.top<0?h+j+n:l>0?h+j+n:0}}};if(!f.offset.setOffset){f.offset.setOffset=function(l,i){if(/static/.test(f.curCSS(l,"position"))){l.style.position="relative"}var k=f(l),n=k.offset(),h=parseInt(f.curCSS(l,"top",true),10)||0,m=parseInt(f.curCSS(l,"left",true),10)||0,j={top:(i.top-n.top)+h,left:(i.left-n.left)+m};if("using" in i){i.using.call(l,j)}else{k.css(j)}};f.fn.offset=function(h){var i=this[0];if(!i||!i.ownerDocument){return null}if(h){return this.each(function(){f.offset.setOffset(this,h)})}return c.call(this)}}}(jQuery));jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
/*!
 * jQuery Form Plugin
 * version: 2.94 (13-DEC-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *	http://www.opensource.org/licenses/mit-license.php
 *	http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(d){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}var c,t,f,h=this;if(typeof d=="function"){d={success:d}}c=this.attr("method");t=this.attr("action");f=(typeof t==="string")?b.trim(t):"";f=f||window.location.href||"";if(f){f=(f.match(/^([^#]+)/)||[])[1]}d=b.extend(true,{url:f,success:b.ajaxSettings.success,type:c||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},d);var m={};this.trigger("form-pre-serialize",[this,d,m]);if(m.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(d.beforeSerialize&&d.beforeSerialize(this,d)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var g=d.traditional;if(g===undefined){g=b.ajaxSettings.traditional}var x,s,j,y=this.formToArray(d.semantic);if(d.data){d.extraData=d.data;x=b.param(d.data,g)}if(d.beforeSubmit&&d.beforeSubmit(y,this,d)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[y,this,d,m]);if(m.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var r=b.param(y,g);if(x){r=(r?(r+"&"+x):x)}if(d.type.toUpperCase()=="GET"){d.url+=(d.url.indexOf("?")>=0?"&":"?")+r;d.data=null}else{d.data=r}var A=[];if(d.resetForm){A.push(function(){h.resetForm()})}if(d.clearForm){A.push(function(){h.clearForm(d.includeHidden)})}if(!d.dataType&&d.target){var e=d.success||function(){};A.push(function(q){var n=d.replaceTarget?"replaceWith":"html";b(d.target)[n](q).each(e,arguments)})}else{if(d.success){A.push(d.success)}}d.success=function(C,q,D){var B=d.context||d;for(var v=0,n=A.length;v<n;v++){A[v].apply(B,[C,q,D||h,h])}};var w=b("input:file:enabled[value]",this);var i=w.length>0;var u="multipart/form-data";var p=(h.attr("enctype")==u||h.attr("encoding")==u);var o=!!(i&&w.get(0).files&&window.FormData);a("fileAPI :"+o);var k=(i||p)&&!o;if(d.iframe!==false&&(d.iframe||k)){if(d.closeKeepAlive){b.get(d.closeKeepAlive,function(){z(y)})}else{z(y)}}else{if((i||p)&&o){d.progress=d.progress||b.noop;l(y)}else{b.ajax(d)}}this.trigger("form-submit-notify",[this,d]);return this;function l(q){var n=new FormData();for(var B=0;B<q.length;B++){if(q[B].type=="file"){continue}n.append(q[B].name,q[B].value)}h.find("input:file:enabled").each(function(){var E=b(this).attr("name"),G=this.files;if(E){for(var F=0;F<G.length;F++){n.append(E,G[F])}}});if(d.extraData){for(var v in d.extraData){n.append(v,d.extraData[v])}}d.data=null;var D=b.extend(true,{},b.ajaxSettings,d,{contentType:false,processData:false,cache:false,type:"POST"});D.context=D.context||D;D.data=null;var C=D.beforeSend;D.beforeSend=function(F,E){E.data=n;if(F.upload){F.upload.onprogress=function(G){E.progress(G.position,G.total)}}if(C){C.call(E,F,d)}};b.ajax(D)}function z(Z){var E=h[0],D,V,P,X,S,G,K,I,J,T,W,N;var H=!!b.fn.prop;if(Z){if(H){for(V=0;V<Z.length;V++){D=b(E[Z[V].name]);D.prop("disabled",false)}}else{for(V=0;V<Z.length;V++){D=b(E[Z[V].name]);D.removeAttr("disabled")}}}if(b(":input[name=submit],:input[id=submit]",E).length){alert('Error: Form elements must not have name or id of "submit".');return}P=b.extend(true,{},b.ajaxSettings,d);P.context=P.context||P;S="jqFormIO"+(new Date().getTime());if(P.iframeTarget){G=b(P.iframeTarget);T=G.attr("name");if(T==null){G.attr("name",S)}else{S=T}}else{G=b('<iframe name="'+S+'" src="'+P.iframeSrc+'" />');G.css({position:"absolute",top:"-1000px",left:"-1000px"})}K=G[0];I={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(n){var ac=(n==="timeout"?"timeout":"aborted");a("aborting upload... "+ac);this.aborted=1;G.attr("src",P.iframeSrc);I.error=ac;P.error&&P.error.call(P.context,I,ac,n);X&&b.event.trigger("ajaxError",[I,P,ac]);P.complete&&P.complete.call(P.context,I,ac)}};X=P.global;if(X&&!b.active++){b.event.trigger("ajaxStart")}if(X){b.event.trigger("ajaxSend",[I,P])}if(P.beforeSend&&P.beforeSend.call(P.context,I,P)===false){if(P.global){b.active--}return}if(I.aborted){return}J=E.clk;if(J){T=J.name;if(T&&!J.disabled){P.extraData=P.extraData||{};P.extraData[T]=J.value;if(J.type=="image"){P.extraData[T+".x"]=E.clk_x;P.extraData[T+".y"]=E.clk_y}}}var O=1;var L=2;function M(ac){var n=ac.contentWindow?ac.contentWindow.document:ac.contentDocument?ac.contentDocument:ac.document;return n}var C=b("meta[name=csrf-token]").attr("content");var B=b("meta[name=csrf-param]").attr("content");if(B&&C){P.extraData=P.extraData||{};P.extraData[B]=C}function U(){var ae=h.attr("target"),ac=h.attr("action");E.setAttribute("target",S);if(!c){E.setAttribute("method","POST")}if(ac!=P.url){E.setAttribute("action",P.url)}if(!P.skipEncodingOverride&&(!c||/post/i.test(c))){h.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(P.timeout){N=setTimeout(function(){W=true;R(O)},P.timeout)}function af(){try{var n=M(K).readyState;a("state = "+n);if(n.toLowerCase()=="uninitialized"){setTimeout(af,50)}}catch(ah){a("Server abort: ",ah," (",ah.name,")");R(L);N&&clearTimeout(N);N=undefined}}var ad=[];try{if(P.extraData){for(var ag in P.extraData){ad.push(b('<input type="hidden" name="'+ag+'">').attr("value",P.extraData[ag]).appendTo(E)[0])}}if(!P.iframeTarget){G.appendTo("body");K.attachEvent?K.attachEvent("onload",R):K.addEventListener("load",R,false)}setTimeout(af,15);E.submit()}finally{E.setAttribute("action",ac);if(ae){E.setAttribute("target",ae)}else{h.removeAttr("target")}b(ad).remove()}}if(P.forceSync){U()}else{setTimeout(U,10)}var aa,ab,Y=50,F;function R(ag){if(I.aborted||F){return}try{ab=M(K)}catch(aj){a("cannot access response document: ",aj);ag=L}if(ag===O&&I){I.abort("timeout");return}else{if(ag==L&&I){I.abort("server abort");return}}if(!ab||ab.location.href==P.iframeSrc){if(!W){return}}K.detachEvent?K.detachEvent("onload",R):K.removeEventListener("load",R,false);var ae="success",ai;try{if(W){throw"timeout"}var ad=P.dataType=="xml"||ab.XMLDocument||b.isXMLDoc(ab);a("isXml="+ad);if(!ad&&window.opera&&(ab.body==null||ab.body.innerHTML=="")){if(--Y){a("requeing onLoad callback, DOM not available");setTimeout(R,250);return}}var ak=ab.body?ab.body:ab.documentElement;I.responseText=ak?ak.innerHTML:null;I.responseXML=ab.XMLDocument?ab.XMLDocument:ab;if(ad){P.dataType="xml"}I.getResponseHeader=function(an){var am={"content-type":P.dataType};return am[an]};if(ak){I.status=Number(ak.getAttribute("status"))||I.status;I.statusText=ak.getAttribute("statusText")||I.statusText}var n=(P.dataType||"").toLowerCase();var ah=/(json|script|text)/.test(n);if(ah||P.textarea){var af=ab.getElementsByTagName("textarea")[0];if(af){I.responseText=af.value;I.status=Number(af.getAttribute("status"))||I.status;I.statusText=af.getAttribute("statusText")||I.statusText}else{if(ah){var ac=ab.getElementsByTagName("pre")[0];var al=ab.getElementsByTagName("body")[0];if(ac){I.responseText=ac.textContent?ac.textContent:ac.innerText}else{if(al){I.responseText=al.textContent?al.textContent:al.innerText}}}}}else{if(n=="xml"&&!I.responseXML&&I.responseText!=null){I.responseXML=Q(I.responseText)}}try{aa=q(I,n,P)}catch(ag){ae="parsererror";I.error=ai=(ag||ae)}}catch(ag){a("error caught: ",ag);ae="error";I.error=ai=(ag||ae)}if(I.aborted){a("upload aborted");ae=null}if(I.status){ae=(I.status>=200&&I.status<300||I.status===304)?"success":"error"}if(ae==="success"){P.success&&P.success.call(P.context,aa,"success",I);X&&b.event.trigger("ajaxSuccess",[I,P])}else{if(ae){if(ai==undefined){ai=I.statusText}P.error&&P.error.call(P.context,I,ae,ai);X&&b.event.trigger("ajaxError",[I,P,ai])}}X&&b.event.trigger("ajaxComplete",[I,P]);if(X&&!--b.active){b.event.trigger("ajaxStop")}P.complete&&P.complete.call(P.context,I,ae);F=true;if(P.timeout){clearTimeout(N)}setTimeout(function(){if(!P.iframeTarget){G.remove()}I.responseXML=null},100)}var Q=b.parseXML||function(n,ac){if(window.ActiveXObject){ac=new ActiveXObject("Microsoft.XMLDOM");ac.async="false";ac.loadXML(n)}else{ac=(new DOMParser()).parseFromString(n,"text/xml")}return(ac&&ac.documentElement&&ac.documentElement.nodeName!="parsererror")?ac:null};var v=b.parseJSON||function(n){return window["eval"]("("+n+")")};var q=function(ag,ae,ad){var ac=ag.getResponseHeader("content-type")||"",n=ae==="xml"||!ae&&ac.indexOf("xml")>=0,af=n?ag.responseXML:ag.responseText;if(n&&af.documentElement.nodeName==="parsererror"){b.error&&b.error("parsererror")}if(ad&&ad.dataFilter){af=ad.dataFilter(af,ae)}if(typeof af==="string"){if(ae==="json"||!ae&&ac.indexOf("json")>=0){af=v(af)}else{if(ae==="script"||!ae&&ac.indexOf("javascript")>=0){b.globalEval(af)}}}return af}}};b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");b(function(){b(d.s,d.c).ajaxForm(c)});return this}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();b(this).ajaxSubmit(c)}}).bind("click.form-plugin",function(j){var i=j.target;var g=b(i);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return}i=f[0]}var h=this;h.clk=i;if(i.type=="image"){if(j.offsetX!=undefined){h.clk_x=j.offsetX;h.clk_y=j.offsetY}else{if(typeof b.fn.offset=="function"){var k=g.offset();h.clk_x=j.pageX-k.left;h.clk_y=j.pageY-k.top}else{h.clk_x=j.pageX-i.offsetLeft;h.clk_y=j.pageY-i.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(q){var p=[];if(this.length===0){return p}var d=this[0];var g=q?d.getElementsByTagName("*"):d.elements;if(!g){return p}var k,h,f,r,e,m,c;for(k=0,m=g.length;k<m;k++){e=g[k];f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val(),type:e.type});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(h=0,c=r.length;h<c;h++){p.push({name:f,value:r[h]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r,type:e.type})}}}if(!q&&d.clk){var l=b(d.clk),o=l[0];f=o.name;if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(j===undefined){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return b(c).val()};b.fn.clearForm=function(c){return this.each(function(){b("input,select,textarea",this).clearFields(c)})};b.fn.clearFields=b.fn.clearInputs=function(c){var d=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var f=this.type,e=this.tagName.toLowerCase();if(d.test(f)||e=="textarea"||(c&&/hidden/.test(f))){this.value=""}else{if(f=="checkbox"||f=="radio"){this.checked=false}else{if(e=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c===undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c===undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};b.fn.ajaxSubmit.debug=false;function a(){if(!b.fn.ajaxSubmit.debug){return}var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c)}else{if(window.opera&&window.opera.postError){window.opera.postError(c)}}}})(jQuery);
/*! Copyright 2011, Ben Lin (http://dreamerslab.com/)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 1.0.5
*
* Requires: jQuery 1.2.3+
*/
(function(a){a.fn.extend({actual:function(b,k){var c,d,h,g,f,j,e,i;if(!this[b]){throw'$.actual => The jQuery method "'+b+'" you called does not exist'}h=a.extend({absolute:false,clone:false,includeMargin:undefined},k);d=this;if(h.clone===true){e=function(){d=d.filter(":first").clone().css({position:"absolute",top:-1000}).appendTo("body")};i=function(){d.remove()}}else{e=function(){c=d.parents().andSelf().filter(":hidden");g=h.absolute===true?{position:"absolute",visibility:"hidden",display:"block"}:{visibility:"hidden",display:"block"};f=[];c.each(function(){var m={},l;for(l in g){m[l]=this.style[l];this.style[l]=g[l]}f.push(m)})};i=function(){c.each(function(m){var n=f[m],l;for(l in g){this.style[l]=n[l]}})}}e();j=d[b](h.includeMargin);i();return j}})})(jQuery);(function(a){a.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]};a.expr[":"].uncached=function(b){return a(b).is('img[src!=""]')&&!b.complete};a.fn.waitForImages=function(d,b,c){if(a.isPlainObject(arguments[0])){b=d.each;c=d.waitForAll;d=d.finished}d=d||a.noop;b=b||a.noop;c=!!c;if(!a.isFunction(d)||!a.isFunction(b)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var i=a(this),j=[];if(c){var e=a.waitForImages.hasImageProperties||[],h=/url\((['"]?)(.*?)\1\)/g;i.find("*").each(function(){var k=a(this);if(k.is("img:uncached")){j.push({src:k.attr("src"),element:k[0]})}a.each(e,function(n,o){var l=k.css(o);if(!l){return true}var m;while(m=h.exec(l)){j.push({src:m[2],element:k[0]})}})})}else{i.find("img:uncached").each(function(){j.push({src:this.src,element:this})})}var g=j.length,f=0;if(g==0){d.call(i[0])}a.each(j,function(l,k){var m=new Image;a(m).bind("load error",function(n){f++;b.call(k.element,f,g,n.type=="load");if(f==g){d.call(i[0]);return false}});m.src=k.src})})}})(jQuery);jQuery.fn.xml=function(b){var a="";if(this.length){(((typeof b!="undefined")&&b)?this:jQuery(this[0]).contents()).each(function(){a+=window.ActiveXObject?this.xml:(new XMLSerializer()).serializeToString(this)})}return a};(function(e){e.extend(e.support,{rgba:c()});e.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){e.fx.step[f]=function(i){var h=[];if(!i.colorInit){i.start=d(i.elem,f);i.end=b(i.end);i.alphavalue={start:4===i.start.length,end:4===i.end.length};if(!i.alphavalue.start){i.start.push(1)}if(!i.alphavalue.end){i.end.push(1)}if(e.support.rgba&&(!i.alphavalue.start&&i.alphavalue.end)||(i.alphavalue.start&&i.alphavalue.end)||(i.alphavalue.start&&!i.alphavalue.end)){i.colorModel="rgba"}else{i.colorModel="rgb"}i.colorInit=true}h.push(Math.max(Math.min(parseInt((i.pos*(i.end[0]-i.start[0]))+i.start[0]),255),0));h.push(Math.max(Math.min(parseInt((i.pos*(i.end[1]-i.start[1]))+i.start[1]),255),0));h.push(Math.max(Math.min(parseInt((i.pos*(i.end[2]-i.start[2]))+i.start[2]),255),0));if(i.colorModel=="rgba"){h.push(Math.max(Math.min(parseFloat((i.pos*(i.end[3]-i.start[3]))+i.start[3]),1),0).toFixed(2))}i.elem.style[f]=i.colorModel+"("+h.join(",")+")"}});function b(g){var f,i,j="(?:,\\s*((?:1|0)(?:\\.0+)?|(?:0?\\.[0-9]+))\\s*)?\\)",h=new RegExp("rgb(a)?\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*"+j),k=new RegExp("rgb(a)?\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*"+j);if(g&&g.constructor==Array&&g.length>=3&&g.length<=4){return g}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=h.exec(g)){i=[parseInt(f[2]),parseInt(f[3]),parseInt(f[4])];if(f[1]&&f[5]){i.push(parseFloat(f[5]))}return i}if(f=k.exec(g)){i=[parseFloat(f[2])*2.55,parseFloat(f[3])*2.55,parseFloat(f[4])*2.55];if(f[1]&&f[5]){i.push(parseFloat(f[5]))}return i}return a[e.trim(g).toLowerCase()]}function d(h,f){var g;do{g=e.curCSS(h,f);if(g!=""&&g!="transparent"||e.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}function c(){var h=e("script:first"),g=h.css("color"),f=false;if(/^rgba/.test(g)){f=true}else{try{f=(g!=h.css("color","rgba(0, 0, 0, 0.5)").css("color"));h.css("color",g)}catch(i){}}return f}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:(e.support.rgba)?[0,0,0,0]:[255,255,255]}})(jQuery);(function(a){a.preLoadImages=function(g,f){var c=[],d,e,b=0;if(typeof g!="undefined"){if(a.isArray(g)){e=g.length;for(d=0;d<e;d++){c[d]=new Image();c[d].onload=function(){b++;if(b==e){if(a.isFunction(f)){f()}}};c[d].src=g[d]}}else{c[0]=new Image();c[0].onload=function(){if(a.isFunction(f)){f()}};c[0].src=g}}c=undefined};a.preLoadCSSImages=function(h){var o=[],s,q=[],r=0,t,f=new RegExp("url((.*))","i"),l;var j=document.styleSheets,p,d,n,k,m,u,b,e;for(b=0;b<j.length;b++){var g=j[b];if(typeof g.href=="string"&&g.href.length>0){l=g.href.split("/");l.pop();p=l.join("/")+"/"}else{p="./"}d=g.cssRules?g.cssRules:g.rules;for(e=0;e<d.length;e++){n=d[e];m=n.cssText?n.cssText:n.style.cssText;k=f.exec(m);if(k!=null){u=k[1].substring(1,k[1].indexOf(")",1));if(u.substring(0,4)=="http"){q[q.length]=u}else{if(k[1].substring(1,2)=="/"){var c=p.split("/");c.pop();c.pop();p2x=c.join("/");q[q.length]=p2x+u}else{q[q.length]=p+u}}}}}t=q.length;for(s=0;s<t;s++){o[s]=new Image();o[s].onload=function(){r++;if(r==t){if(a.isFunction(h)){h()}}};o[s].src=q[s]}};a.preLoadAllImages=function(c,b){if(typeof c!="undefined"){if(a.isFunction(c)){b=c}else{if(!a.isArray(c)){c=[c]}}}a.preLoadCSSImages(function(){if(c.length>0){a.preLoadImages(c,function(){b()})}else{b()}})}})(jQuery);if(window.jQuery){(function(a){a.extend({xml2json:function(g,b){if(!g){return{}}function e(k,j){if(!k){return null}var n="",m=null,q=null;var p=k.nodeType,r=h(k.localName||k.nodeName);var o=k.text||k.nodeValue||"";if(k.childNodes){if(k.childNodes.length>0){a.each(k.childNodes,function(w,v){var t=v.nodeType,u=h(v.localName||v.nodeName);var s=v.text||v.nodeValue||"";if(t==8){return}else{if(t==3||t==4||!u){if(s.match(/^\s+$/)){return}n+=s.replace(/^\s+/,"").replace(/\s+$/,"")}else{m=m||{};if(m[u]){if(!m[u].length){m[u]=d(m[u])}m[u]=d(m[u]);m[u][m[u].length]=e(v,true);m[u].length=m[u].length}else{m[u]=e(v)}}}})}}if(k.attributes){if(k.attributes.length>0){q={};m=m||{};a.each(k.attributes,function(u,t){var v=h(t.name),s=t.value;q[v]=s;if(m[v]){m[cnn]=d(m[cnn]);m[v][m[v].length]=s;m[v].length=m[v].length}else{m[v]=s}})}}if(m){m=a.extend((n!=""?new String(n):{}),m||{});n=(m.text)?(typeof(m.text)=="object"?m.text:[m.text||""]).concat([n]):n;if(n){m.text=n}n=""}var l=m||n;if(b){if(n){l={}}n=l.text||n||"";if(n){l.text=n}if(!j){l=d(l)}}return l}var h=function(j){return String(j||"").replace(/-/g,"_")};function i(j){var k=/^((-)?([0-9]+)(([\.\,]{0,1})([0-9]+))?$)/;return(typeof j=="number")||k.test(String((j&&typeof j=="string")?jQuery.trim(j):""))}var d=function(j){if(!a.isArray(j)){j=[j]}j.length=j.length;return j};if(typeof g=="string"){g=a.text2xml(g)}if(!g.nodeType){return}if(g.nodeType==3||g.nodeType==4){return g.nodeValue}var c=(g.nodeType==9)?g.documentElement:g;var f=e(c,true);g=null;c=null;return f},text2xml:function(f){var c;try{var b=(a.browser.msie)?new ActiveXObject("Microsoft.XMLDOM"):new DOMParser();b.async=false}catch(d){throw new Error("XML Parser could not be instantiated")}try{if(a.browser.msie){c=(b.loadXML(f))?b:false}else{c=b.parseFromString(f,"text/xml")}}catch(d){throw new Error("Error parsing XML string")}return c}})})(jQuery)}(function(g){if(!g||!(g.toJSON||Object.toJSON||window.JSON)){throw new Error("jQuery, MooTools or Prototype needs to be loaded before jStorage!")}var h={},e={jStorage:"{}"},i=null,k=0,n=g.toJSON||Object.toJSON||(window.JSON&&(JSON.encode||JSON.stringify)),f=g.evalJSON||(window.JSON&&(JSON.decode||JSON.parse))||function(p){return String(p).evalJSON()},j=false,m,d={isXML:function(q){var p=(q?q.ownerDocument||q:0).documentElement;return p?p.nodeName!=="HTML":false},encode:function(q){if(!this.isXML(q)){return false}try{return new XMLSerializer().serializeToString(q)}catch(p){try{return q.xml}catch(r){}}return false},decode:function(q){var p=("DOMParser" in window&&(new DOMParser()).parseFromString)||(window.ActiveXObject&&function(s){var t=new ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(s);return t}),r;if(!p){return false}r=p.call("DOMParser" in window&&(new DOMParser())||window,q,"text/xml");return this.isXML(r)?r:false}};function l(){var p=false;if("localStorage" in window){try{window.localStorage.setItem("_tmptest","tmpval");p=true;window.localStorage.removeItem("_tmptest")}catch(q){}}if(p){try{if(window.localStorage){e=window.localStorage;j="localStorage"}}catch(u){}}else{if("globalStorage" in window){try{if(window.globalStorage){e=window.globalStorage[window.location.hostname];j="globalStorage"}}catch(t){}}else{i=document.createElement("link");if(i.addBehavior){i.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(i);i.load("jStorage");var s="{}";try{s=i.getAttribute("jStorage")}catch(r){}e.jStorage=s;j="userDataBehavior"}else{i=null;return}}}b();o()}function b(){if(e.jStorage){try{h=f(String(e.jStorage))}catch(p){e.jStorage="{}"}}else{e.jStorage="{}"}k=e.jStorage?String(e.jStorage).length:0}function c(){try{e.jStorage=n(h);if(i){i.setAttribute("jStorage",e.jStorage);i.save("jStorage")}k=e.jStorage?String(e.jStorage).length:0}catch(p){}}function a(p){if(!p||(typeof p!="string"&&typeof p!="number")){throw new TypeError("Key name must be string or numeric")}if(p=="__jstorage_meta"){throw new TypeError("Reserved key name")}return true}function o(){var t,p,r,q=Infinity,s=false;clearTimeout(m);if(!h.__jstorage_meta||typeof h.__jstorage_meta.TTL!="object"){return}t=+new Date();r=h.__jstorage_meta.TTL;for(p in r){if(r.hasOwnProperty(p)){if(r[p]<=t){delete r[p];delete h[p];s=true}else{if(r[p]<q){q=r[p]}}}}if(q!=Infinity){m=setTimeout(o,q-t)}if(s){c()}}g.jStorage={version:"0.1.6.1",set:function(p,q){a(p);if(d.isXML(q)){q={_is_xml:true,xml:d.encode(q)}}else{if(typeof q=="function"){q=null}else{if(q&&typeof q=="object"){q=f(n(q))}}}h[p]=q;c();return q},get:function(p,q){a(p);if(p in h){if(h[p]&&typeof h[p]=="object"&&h[p]._is_xml&&h[p]._is_xml){return d.decode(h[p].xml)}else{return h[p]}}return typeof(q)=="undefined"?null:q},deleteKey:function(p){a(p);if(p in h){delete h[p];if(h.__jstorage_meta&&typeof h.__jstorage_meta.TTL=="object"&&p in h.__jstorage_meta.TTL){delete h.__jstorage_meta.TTL[p]}c();return true}return false},setTTL:function(q,p){var r=+new Date();a(q);p=Number(p)||0;if(q in h){if(!h.__jstorage_meta){h.__jstorage_meta={}}if(!h.__jstorage_meta.TTL){h.__jstorage_meta.TTL={}}if(p>0){h.__jstorage_meta.TTL[q]=r+p}else{delete h.__jstorage_meta.TTL[q]}c();o();return true}return false},flush:function(){h={};c();return true},storageObj:function(){function p(){}p.prototype=h;return new p()},index:function(){var p=[],q;for(q in h){if(h.hasOwnProperty(q)&&q!="__jstorage_meta"){p.push(q)}}return p},storageSize:function(){return k},currentBackend:function(){return j},storageAvailable:function(){return !!j},reInit:function(){var p,r;if(i&&i.addBehavior){p=document.createElement("link");i.parentNode.replaceChild(p,i);i=p;i.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(i);i.load("jStorage");r="{}";try{r=i.getAttribute("jStorage")}catch(q){}e.jStorage=r;j="userDataBehavior"}b()}};l()})(window.jQuery||window.$);(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e}var f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var l=this,j=c(l),k=f,i,g={},m=j.is("html,body");switch(typeof k){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(k)){k=b(k);break}k=c(k,this);case"object":if(k.is||k.style){i=(k=c(k)).offset()}}c.each(d.axis.split(""),function(q,r){var s=r=="x"?"Left":"Top",u=s.toLowerCase(),p="scroll"+s,o=l[p],n=a.max(l,r);if(i){g[p]=i[u]+(m?0:o-j.offset()[u]);if(d.margin){g[p]-=parseInt(k.css("margin"+s))||0;g[p]-=parseInt(k.css("border"+s+"Width"))||0}g[p]+=d.offset[u]||0;if(d.over[u]){g[p]+=k[r=="x"?"width":"height"]()*d.over[u]}}else{var t=k[u];g[p]=t.slice&&t.slice(-1)=="%"?parseFloat(t)/100*n:t}if(/^\d+$/.test(g[p])){g[p]=g[p]<=0?0:Math.min(g[p],n)}if(!q&&d.queue){if(o!=g[p]){h(d.onAfterFirst)}delete g[p]}});h(d.onAfter);function h(n){j.animate(g,e,d.easing,n&&function(){n.call(this,f,d)})}}).end()};a.max=function(j,i){var h=i=="x"?"Width":"Height",e="scroll"+h;if(!c(j).is("html,body")){return j[e]-c(j)[h.toLowerCase()]()}var g="client"+h,f=j.ownerDocument.documentElement,d=j.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g],d[g])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(b){var a=0;b.getUID=function(){a++;return"player-"+a};b.fn.getUID=function(){if(!this.length){return 0}var c=this.first(),d=c.attr("id");d=b.getUID();return d}})(jQuery);function onTemplateLoad(a){jQuery("#"+a).parents(".omniplayer").parent().omniplayer("onTemplateLoaded",a)}(function(c){var d={brightcove:{width:"100%",height:"100%",autoStart:"false",bgcolor:"#1C1C1C",dynamicStreaming:"true",isUI:"true",isVid:"true",labels:"/site/sn/xml/brightcove/labels.xml",language:"en",linkBaseURL:"http://www.smithsonianchannel.com/site/sn/video/player/",localizedErrorXML:"/site/sn/xml/brightcove/errors.xml",majorVersion:"10",minorRevision:"0",playerId:"833826242001",playerKey:"AQ~~,AAAAABZ1xXA~,BhTgkJ7K1maN4hcGcdePu5Xi8Icjdcgn",secureConnections:"false",skipContentCall:"false",showNoContentMessage:"true",videoId:"79608804001",videoSmoothing:"true",wmode:"transparent",includeAPI:"true",templateLoadHandler:"onTemplateLoad"},hoveringOverControls:false,relatedVideoPosition:0,controls:true,infobox:{headline:true,description:true,learnMore:false},sharing:{facebook:true,google:false,twitter:false},horizControls:{play:true,scrubber:true,mute:false},vertControls:{close:false}};var b={};var a={init:function(){return this.each(function(){var i=c(this);i.data("omniplayer",{settings:b});var h=i.data("omniplayer");h.settings.brightcove.id=i.getUID();h.settings.relatedVideoPosition=0;if(i.data("bcid")){h.settings.brightcove.videoId=i.data("bcid")}if(i.find(".video-list").size()>0){i.find(".video-list ul li:first-child .tile-border").css({opacity:1});i.find(".video-list").wrap('<div class="omniplayer-player"></div>');i.find(".omniplayer-player").wrap('<div class="omniplayer"></div>')}else{i.prepend('<div class="omniplayer"><div class="omniplayer-player"></div></div>')}i.find(".omniplayer-player").prepend('<div class="omniplayer-video"></div>');if(h.settings.controls===true){i.find(".omniplayer-video").append('<div class="omniplayer-controls"><div class="horiz-controls"><div class="button-wrapper"></div></div><div class="vert-controls"><div class="button-wrapper"></div></div></div>');if(h.settings.horizControls.play===true){i.find(".horiz-controls .button-wrapper").append('<a class="play-pause paused"></a>')}if(h.settings.horizControls.scrubber===true){i.find(".horiz-controls .button-wrapper").append('<div class="scrubber-wrap"><span class="time-code">0:00</span><a class="scrubber"><span class="scrubber-watched"></span><span class="scrubber-buffer"></span></a><span class="end-time">0:00</span></div>')}if(h.settings.horizControls.mute===true){i.find(".horiz-controls .button-wrapper").append('<a class="mute unmuted"></a>')}if(h.settings.vertControls.close===true){i.find(".vert-controls .button-wrapper").append('<a class="close-video active"></a>')}if(i.find(".vert-controls .button-wrapper > *").size()===0){i.find(".vert-controls").remove()}if(i.find(".horiz-controls .button-wrapper > *").size()===0){i.find(".horiz-controls").remove()}i.find(".horiz-controls .button-wrapper :last-child, .vert-controls .button-wrapper :last-child").addClass("last");var e=Math.floor(i.find(".horiz-controls .button-wrapper").actual("width"));var g=0;i.find(".horiz-controls .button-wrapper > *").each(function(){g+=Math.floor(c(this).actual("outerWidth",{includeMargin:true}))});i.find(".scrubber").css({width:e-g+"px"})}if(h.settings.infobox.headline===true||h.settings.infobox.description===true||h.settings.infobox.learnMore===true||h.settings.sharing.facebook===true||h.settings.sharing.google===true||h.settings.sharing.twitter===true){i.find(".omniplayer").append('<div class="omniplayer-infobox"></div>');if(h.settings.infobox.headline===true){i.find(".omniplayer-infobox").append("<h3></h3>")}if(h.settings.infobox.description===true){i.find(".omniplayer-infobox").append("<p></p>")}if(h.settings.infobox.learnMore===true){i.find(".omniplayer-infobox").append('<a class="learn-more">Learn More</a>')}if(h.settings.sharing.facebook===true||h.settings.sharing.google===true||h.settings.sharing.twitter===true){i.find(".omniplayer-infobox").append('<div class="omniplayer-sharing"></div>');i.find(".omniplayer-infobox h3, .omniplayer-infobox p").css({width:i.find(".omniplayer-infobox h3").actual("width")-270+"px"});if(h.settings.sharing.facebook===true){i.find(".omniplayer-sharing").append('<div class="omniplayer-sharing-facebook"></div>')}if(h.settings.sharing.google===true){i.find(".omniplayer-sharing").append('<div class="omniplayer-sharing-google"></div>')}if(h.settings.sharing.twitter===true){i.find(".omniplayer-sharing").append('<div class="omniplayer-sharing-twitter"></div>')}}}if(i.data("playlist")!==undefined){var f=i.data("playlist");c.ajax({type:"GET",url:"http://api.brightcove.com/services/library?command=find_playlist_by_id&playlist_id="+f+"&token=A2SCEkxoHBvQ7mTvCTOJwYLCEEU0XE2IHUPyVhhD4AE.&callback=?",dataType:"json",success:function(j){if(j.videos.length>1){i.find(".omniplayer-player").append('<div class="video-list"><div class="previous-video disabled"></div><ul></ul><div class="next-video disabled"></div></div>')}c(j.videos).each(function(k){i.find(".video-list ul").append('<li style="background-image:url('+this.thumbnailURL+');" data-title="'+this.name+'" data-description="'+this.shortDescription+'" data-thumbnail="'+this.thumbnailURL+'" data-bcid="'+this.id+'" data-url="http://www.smithsonianchannel.com/site/sn/video/player/'+this.name.replace(/[^a-zA-Z 0-9\-]+/g,"").toLowerCase().replace(/\s/g,"-")+"/"+this.id+'/" data-hash="#'+this.name.replace(/[^a-zA-Z 0-9\-]+/g,"").toLowerCase().replace(/\s/g,"-")+'" data-more="'+this.linkURL+'"><div class="tile-border"></div></li>')})},complete:function(){if(window.location.hash!==""){i.find(".video-list ul li").each(function(){if(window.location.hash===c(this).data("hash")){c(this).prependTo(".video-list ul");i.omniplayer("setScroll");if(c("#show-subnav").size()>0){changeTab("#video-link",true)}}})}i.find(".video-list ul li").first().addClass("selected").find(".tile-border").css({opacity:1});i.omniplayer("updateText",i.find(".video-list ul li").first());h.settings.brightcove.videoId=i.find(".video-list ul li").first().data("bcid");i.omniplayer("insertVideo");i.omniplayer("setScroll")}})}else{i.find(".omniplayer").parent().omniplayer("insertVideo");if(i.data("title")||i.data("description")||i.data("more")||i.data("url")){i.omniplayer("updateText",i)}else{if(i.find(".video-list ul li").size()>0){i.omniplayer("updateText",i.find(".video-list ul li").first());i.omniplayer("setScroll")}}}})},insertVideo:function(){return this.each(function(){var h=c(this),g=h.data("omniplayer");var f=brightcove.createElement("object");f.id=g.settings.brightcove.id;f.className+="BrightcoveExperience";for(var e in g.settings.brightcove){if(g.settings.brightcove.hasOwnProperty(e)){var j=brightcove.createElement("param");j.name=e;j.value=g.settings.brightcove[e];f.appendChild(j)}}brightcove.createExperience(f,h.find(".omniplayer-video")[0],true)})},updateText:function(e){return this.each(function(){var h=c(this),g=h.data("omniplayer");if(g.settings.infobox.headline===true){h.find(".omniplayer-infobox h3").html(e.data("title"))}if(g.settings.infobox.description===true){h.find(".omniplayer-infobox p").html(e.data("description"))}if(g.settings.infobox.learnMore===true){h.find(".omniplayer-infobox a.learn-more").attr("href",e.data("more"))}if(g.settings.sharing.facebook===true){var f='<div id="omniplayer-sharing-facebook-'+g.settings.brightcove.id+'" href="'+e.data("url")+'" class="fb-like" data-send="true" data-layout="button_count" data-show-faces="true" data-action="recommend" data-colorscheme="light" data-font="lucida grande"></div>';h.find(".omniplayer-sharing-facebook").html(f);if(typeof FB!=="undefined"){FB.XFBML.parse()}}if(g.settings.sharing.google===true){h.find(".omniplayer-sharing-google").html("")}if(g.settings.sharing.twitter===true){h.find(".omniplayer-sharing-twitter").html("")}})},setScroll:function(){return this.each(function(){var g=c(this),f=g.data("omniplayer");if(g.find(".video-list ul li").size()>0){var h=g.find(".omniplayer-video").height();var e=g.find(".video-list ul li").outerHeight(true);f.settings.relatedVideosLimit=g.find(".video-list ul li").size()-Math.floor(h/e);if(g.find(".video-list ul li").size()>f.settings.relatedVideosLimit&&f.settings.relatedVideosLimit!==0){g.find(".video-list .next-video").removeClass("disabled")}f.settings.brightcove.videoId=g.find(".video-list ul li").first().data("bcid")}})},onTemplateLoaded:function(e){return this.each(function(){var g=c(this),f=g.data("omniplayer");f.BrightcoveAPI=brightcove.api.getExperience(f.settings.brightcove.id);f.VideoPlayerAPI=f.BrightcoveAPI.getModule(brightcove.api.modules.APIModules.VIDEO_PLAYER);f.ExperienceAPI=f.BrightcoveAPI.getModule(brightcove.api.modules.APIModules.EXPERIENCE);f.ContentAPI=f.BrightcoveAPI.getModule(brightcove.api.modules.APIModules.CONTENT);g.omniplayer("onTemplateReady")})},onTemplateReady:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");e.VideoPlayerAPI.addEventListener(brightcove.api.events.MediaEvent.CHANGE,function(){f.omniplayer("onVideoChange")});e.VideoPlayerAPI.addEventListener(brightcove.api.events.MediaEvent.BEGIN,function(){f.omniplayer("onVideoBegin")});e.VideoPlayerAPI.addEventListener(brightcove.api.events.MediaEvent.PLAY,function(){f.omniplayer("onVideoPlay")});e.VideoPlayerAPI.addEventListener(brightcove.api.events.MediaEvent.PROGRESS,function(){f.omniplayer("onVideoProgress")});e.VideoPlayerAPI.addEventListener(brightcove.api.events.MediaEvent.STOP,function(){f.omniplayer("onVideoStop")});e.VideoPlayerAPI.addEventListener(brightcove.api.events.MediaEvent.COMPLETE,function(){f.omniplayer("onVideoComplete")});if(e.settings.brightcove.autoStart==="false"){f.omniplayer("fadeInControls")}})},onVideoChange:function(){return this.each(function(){var j=c(this),h=j.data("omniplayer"),i,f,e,g,k;h.VideoPlayerAPI.getCurrentVideo(function(l){f=l.displayName;i=new Date(l.length);e=""+i.getUTCHours();g=""+i.getUTCMinutes();k=""+i.getUTCSeconds();if(e.substr(0,1)==="0"){e=e.substr(1)}if(g<10&&e!==""){g="0"+g}if(k<10){k="0"+k}j.find(".end-time").text(e+g+":"+k)})})},onVideoBegin:function(e){return this.each(function(){var g=c(this),f=g.data("omniplayer");if(f.settings.hoveringOverControls===false){var h='$("#'+f.settings.brightcove.id+'").parents(".omniplayer").parent().omniplayer("fadeOutControls")';f.controlsTimer=setTimeout(h,3000)}})},onVideoPlay:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");if(f.find(".play-pause.paused").size()>0){f.find(".play-pause").toggleClass("paused playing")}if(e.settings.hoveringOverControls===false){c("#"+e.settings.brightcove.id).parents(".omniplayer").parent().omniplayer("fadeOutControls")}})},onVideoProgress:function(e){return this.each(function(){var m=c(this),j=m.data("omniplayer"),n,g,h,i,k,l,f;j.VideoPlayerAPI.getVideoPosition(function(o){n=o;j.VideoPlayerAPI.getVideoDuration(function(p){g=p;k=(Math.round((n/g)*1000)/10);if(k>99.5){k=100}m.find("span.scrubber-watched").css({width:k+"%"})})});j.VideoPlayerAPI.getVideoPosition(true,function(o){f=o;if(f.substr(0,1)==="0"){f=f.substr(1)}m.find(".time-code").text(f)})})},onVideoStop:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");if(f.find(".play-pause.playing").size()>0){f.find(".play-pause").toggleClass("paused playing")}var g='$("#'+e.settings.brightcove.id+'").parents(".omniplayer").parent().omniplayer("fadeInControls")';c("#"+e.settings.brightcove.id).parents(".omniplayer").parent().omniplayer("fadeInControls")})},onBufferBegin:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer")})},onBufferComplete:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");f.children(".omniplayer").addClass("active")})},onVideoComplete:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");if(f.find(".close-video").size()>0){f.find(".close-video").click()}})},onMuteChange:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer")})},fadeInControls:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer"),g;f.find(".omniplayer-controls").css({visibility:"visible"});if(e.controlsTimer){clearTimeout(e.controlsTimer)}f.find(".omniplayer-controls").stop(true).animate({opacity:1},{easing:"easeOutCubic",duration:1000,complete:function(){e.VideoPlayerAPI.getIsPlaying(function(h){if(h===true&&e.settings.hoveringOverControls===false){g='$("#'+e.settings.brightcove.id+'").parents(".omniplayer").parent().omniplayer("fadeOutControls")';e.controlsTimer=setTimeout(g,3000)}})}})})},fadeOutControls:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");f.find(".omniplayer-controls").stop(true).animate({opacity:0},{duration:1000,easing:"easeOutCubic",complete:function(){c(this).css({visibility:"hidden"})}})})},remove:function(){return this.each(function(){var f=c(this),e=f.data("omniplayer");f.find(".omniplayer-video").animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){brightcove.removeExperience(e.settings.brightcove.id);f.children(".omniplayer").remove()}})})}};c.fn.omniplayer=function(f,e){b=c.extend(true,{},d,e);if(a[f]){return a[f].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof f==="object"||!f){return a.init.apply(this,arguments)}else{c.error("Method "+f+" does not exist on jQuery.omniplayer")}}};c(document).ready(function(){c(".video-list ul li").live("click",function(){var f=c(this);if(f.is(".selected")||f.is(".transitioning")){return}else{var g=c(".video-list ul li.selected .tile-border").css("borderTopColor");var e=c(".video-list ul li").not(".selected").children(".tile-border").css("borderTopColor");f.siblings(".selected").removeClass("selected").addClass("transitioning").find(".tile-border").css({borderTopColor:g,borderRightColor:g,borderBottomColor:g,borderLeftColor:g}).animate({borderTopColor:e,borderRightColor:e,borderBottomColor:e,borderLeftColor:e,opacity:0},{easing:"easeOutCubic",duration:1000,complete:function(){c(this).css({borderTopColor:e,borderRightColor:e,borderBottomColor:e,borderLeftColor:e});c(this).removeClass("transitioning")}});f.addClass("selected").addClass("transitioning").find(".tile-border").animate({borderTopColor:g,borderRightColor:g,borderBottomColor:g,borderLeftColor:g},{easing:"easeOutCubic",duration:1000,complete:function(){f.siblings().removeClass("transitioning")}});f.parents(".omniplayer").parent().data("omniplayer").ContentAPI.getMediaByID(c(this).data("bcid"),function(h){});f.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.loadVideoByID(c(this).data("bcid"));c(this).parents(".omniplayer").find(".omniplayer-infobox").animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){c(this).parents(".omniplayer").parent().omniplayer("updateText",f);c(this).animate({borderTopColor:e,borderRightColor:e,borderBottomColor:e,borderLeftColor:e,opacity:1},{easing:"easeOutCubic",duration:500})}});c("#tooltip").remove();window.location.hash=c(this).data("hash");return false}});c(".video-list ul li").live("mouseenter mouseleave",function(e){if(c(this).is(".selected")){return}var f=c(this);if(e.type==="mouseenter"){c(this).find(".tile-border").stop().animate({opacity:1},{easing:"easeOutCubic",duration:500});c("body").append('<div id="tooltip"><span class="tip"></span><p class="title">'+c(this).data("title")+"</p><p>"+c(this).data("description")+"</p></div>");c("#tooltip .tip").css({top:(c("#tooltip").height()/2)+7+"px"});c("#tooltip").position({of:f,my:"right center",at:"left center",offset:"-25px center"});c("#tooltip").fadeIn()}else{if(e.type==="mouseleave"){c("#tooltip").remove();c(this).find(".tile-border").stop().animate({opacity:0},{easing:"easeOutCubic",duration:500})}}});c(".next-video").live("click",function(){if(c(this).is(".disabled")||c(this).is(".transitioning")){return false}else{c(this).addClass("transitioning");var e=c(".video-list ul li");e.animate({top:"-="+c(".video-list ul li").outerHeight(true)+"px"},{easing:"easeOutCubic",duration:500});c.when(e).done(function(){c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideoPosition++;if(c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideosLimit===c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideoPosition){c(this).parent().siblings(".next-video").addClass("disabled")}if(c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideoPosition>0){c(".previous-video").removeClass("disabled")}c(this).parents(".video-list").find(".next-video").removeClass("transitioning")})}});c(".previous-video").live("click",function(){if(c(this).is(".disabled")||c(this).is(".transitioning")){return}else{c(this).addClass("transitioning");var e=c(".video-list ul li");e.animate({top:"+="+c(".video-list ul li").outerHeight(true)+"px"},{easing:"easeOutCubic",duration:500});c.when(e).done(function(){c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideoPosition--;if(c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideoPosition===0){c(this).parent().siblings(".previous-video").addClass("disabled")}if(c(this).parents(".omniplayer").parent().data("omniplayer").settings.relatedVideoPosition>0){c(".next-video").removeClass("disabled")}c(this).parents(".video-list").find(".previous-video").removeClass("transitioning")})}});c(".play-pause, .omniplayer-video object").live("click",function(){var e=c(this);c(this).parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.getIsPlaying(function(f){if(f===false){e.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.play()}else{if(f===true){e.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.pause()}}})});c(".horz-controls, .vert-controls").live("click",function(){return false});c(".mute").live("click",function(){if(c(this).is(".unmuted")){c(this).toggleClass("muted unmuted");c(this).parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.mute(true)}else{c(this).toggleClass("muted unmuted");c(this).parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.mute(false)}});c(".scrubber").live("click",function(l){var m=c(this);var g,i,h;var k=c(this).offset().left;var f=l.pageX;var j=c(this).width();var n=Math.ceil(f-k)/j;m.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.getVideoDuration(function(e){i=Math.round(e*n);h=Math.round(n*1000)/10;m.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.getIsPlaying(function(o){if(o===false){m.parents(".omniplayer").find(".scrubber-watched").css({width:h+"%"})}m.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.seek(i)})})});c(".vert-controls, .horiz-controls").live("mouseenter mouseleave",function(e){if(e.type==="mouseenter"){c(this).parents(".omniplayer").parent().data("omniplayer").settings.hoveringOverControls=true}else{if(e.type==="mouseleave"){c(this).parents(".omniplayer").parent().data("omniplayer").settings.hoveringOverControls=false}}});c(".omniplayer .omniplayer-video").live("mouseenter mousemove mouseleave mousedown",function(e){var f=c(this);if(e.type==="mouseenter"){f.parents(".omniplayer").parent().omniplayer("fadeInControls")}else{if(e.type==="mousemove"){f.parents(".omniplayer").parent().omniplayer("fadeInControls")}else{if(e.type==="mouseleave"){f.parents(".omniplayer").parent().data("omniplayer").VideoPlayerAPI.getIsPlaying(function(g){if(g===true){f.parents(".omniplayer").parent().omniplayer("fadeOutControls")}})}else{if(e.type==="mousedown"){f.parents(".omniplayer").parent().omniplayer("fadeInControls")}}}}})})})(jQuery);(function(c){var d={bcid:"79608804001"};var b={};var a={init:function(){return this.each(function(){var f=c(this),e=f.data("expandoplayer");if(!e){f.data("expandoplayer",{originalWidth:f.width(),originalHeight:f.height(),spinnerSize:Math.round(f.height()*0.3),originalContent:f.contents().clone()})}})},addLoader:function(){return this.each(function(){var f=c(this),e=f.data("expandoplayer");var g='<div class="expandoplayer-spinner" style="width:'+e.spinnerSize+"px;height:"+e.spinnerSize+"px;left:"+Math.round((f.width()-e.spinnerSize)/2)+"px;top:"+Math.round((f.height()-e.spinnerSize)/2)+'px;"></div>';f.children(".expandoplayer").append(g)})},removeLoader:function(){return this.each(function(){var f=c(this),e=f.data("expandoplayer");f.find(".expandoplayer-spinner").animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){f.find(".expandoplayer-spinner").remove()}})})},expand:function(){return this.each(function(){var f=c(this),e=f.data("expandoplayer");e.originalScrollPosition=c(window).scrollTop();if(f.find(".omniplayer").size()>0){f.children(".expandoplayer").data("omniplayer").ContentAPI.getMediaAsynch(b.bcid);f.children(".expandoplayer").data("omniplayer").VideoPlayerAPI.loadVideo(b.bcid);return false}f.append('<div class="expandoplayer"></div>');f.contents().not(".expandoplayer").remove();f.find(".expandoplayer").css({height:e.originalHeight+"px",width:e.originalWidth+"px"});f.css({width:"auto",height:"auto"});f.find(".expandoplayer").css({"float":"none"});f.find(".expandoplayer").animate({opacity:1},{easing:"easeOutCubic",duration:500,complete:function(){f.expandoplayer("addLoader",{bcid:b.bcid});c.scrollTo(f.offset().top-20,{axis:"y",easing:"easeOutCubic",duration:1000});f.find(".expandoplayer-spinner").animate({opacity:1},{easing:"easeOutCubic",duration:500,complete:function(){e.newHeight=Math.round(e.originalWidth/(16/9));f.find(".expandoplayer").animate({height:e.newHeight+"px"},{easing:"easeOutCubic",duration:500,complete:function(){f.expandoplayer("removeLoader",{bcid:b.bcid});f.find(".expandoplayer").omniplayer("init",{brightcove:{videoId:b.bcid,width:e.originalWidth,height:e.newHeight,autoStart:"true"},vertControls:{close:true},infobox:{headline:false,description:false,learnMore:false},sharing:{facebook:false,google:false,twitter:false}})},step:function(){f.find(".expandoplayer-spinner").css({top:(f.height()-e.spinnerSize)/2+"px"})}})}})}})})},contract:function(){return this.each(function(){var f=c(this),e=f.data("expandoplayer");f.expandoplayer("addLoader");f.find(".expandoplayer-spinner").animate({opacity:1},{easing:"easeOutCubic",duration:500,complete:function(){f.children(".expandoplayer").animate({opacity:1},{easing:"easeOutCubic",duration:500,complete:function(){f.children(".expandoplayer").animate({height:e.originalHeight+"px"},{easing:"easeOutCubic",duration:500,step:function(){f.find(".expandoplayer-spinner").css({top:(f.height()-e.spinnerSize)/2+"px"})},complete:function(){c.scrollTo(e.originalScrollPosition,{axis:"y",easing:"easeOutCubic",duration:1000});f.children(".expandoplayer").css({"float":"left"});f.css({height:e.originalHeight+"px",width:e.originalWidth+"px"}).children(".expandoplayer").animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){f.children(".expandoplayer").remove();f.append(e.originalContent)}})}})}})}})})}};c.fn.expandoplayer=function(f,e){b=c.extend({},d,e);if(a[f]){return a[f].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof f==="object"||!f){return a.init.apply(this,arguments)}else{c.error("Method "+f+" does not exist on $.expandoplayer")}}};c(document).ready(function(){c(".expandoplayer a.close-video.active").live("click",function(){c(this).removeClass("active");c(this).parents(".expandoplayer").omniplayer("remove");c(this).parents(".expandoplayer").parent().expandoplayer("contract")})})})(jQuery);(function(c){var d={slideshowPosition:0,visibleSlides:3,totalSlides:10,selectedColor:"#59b4de",highlightColor:"#FFFFFF",xmlPath:undefined};var b={};var e={};var a={init:function(){return this.each(function(){var g=c(this),f=g.data("omnislideshow");if(!f){g.data("omnislideshow",{settings:b});f=g.data("omnislideshow");if(f.settings.xmlPath===undefined&&g.data("xml")!==undefined){f.settings.xmlPath=g.data("xml")}}if(g.find(".omnislideshow").size()===0){g.prepend('<div class="omnislideshow"><div class="omnislideshow-image"><div class="omnislideshow-fader"></div><p class="omnislideshow-caption"></p></div><div class="omnislideshow-controls"><a class="omnislideshow-previous"></a><div class="omnislideshow-thumbs"><ul></ul></div><a class="omnislideshow-next"></a></div></div>')}g.omnislideshow("build")})},build:function(){return this.each(function(){var g=c(this),f=g.data("omnislideshow");g.find(".omnislideshow-thumbs ul").empty();c.ajax({type:"GET",url:f.settings.xmlPath,dataType:"xml",success:function(h){c(h).find("img").each(function(k){g.find(".omnislideshow-thumbs ul").append('<li><div class="tile-border"></div></li>');g.find(".omnislideshow-thumbs ul li:last-child").css({backgroundImage:"url("+c(this).find("src").text()+")"});g.find(".omnislideshow-thumbs ul li:last-child").data("slide",{rawImage:c(this).find("src").text().replace("thumb","full"),imageUrl:"url("+c(this).find("src").text().replace("thumb","full")+")",caption:c(this).find("caption").text()});if(k===0){g.find(".omnislideshow-thumbs ul li:last-child").addClass("selected").children(".tile-border").css({opacity:1});g.find(".omnislideshow-image").css({backgroundImage:"url("+c(this).find("src").text().replace("thumb","full")+")"});g.find(".omnislideshow-caption").text(c(this).find("caption").text())}});f.settings.totalSlides=g.find(".omnislideshow-thumbs ul li").size();f.settings.slideshowPosition=0;g.find(".omnislideshow-previous").addClass("disabled");if(f.settings.totalSlides-f.settings.visibleSlides<=0){g.find(".omnislideshow-next").addClass("disabled")}else{g.find(".omnislideshow-next").removeClass("disabled")}if(f.settings.totalSlides===1){g.find(".omnislideshow-controls").hide()}else{g.find(".omnislideshow-controls").show()}var i=g.find(".omnislideshow-thumbs ul li").first().outerWidth(true);var j=g.find(".omnislideshow-thumbs ul li").size();g.find(".omnislideshow-thumbs ul").css({width:i*j+"px"})}})})},replace:function(){return this.each(function(){var g=c(this),f=g.data("omnislideshow");if(f){c.extend(f.settings,e);f.settings.slideshowPosition=0}g.find(".omnislideshow").animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){g.omnislideshow("build");g.find(".omnislideshow").animate({opacity:1},{easing:"easeOutCubic",duraction:500})}})})},next:function(){return this.each(function(){var h=c(this),g=h.data("omnislideshow");var f=h.find(".omnislideshow-thumbs ul li");h.children(".omnislideshow-previous").removeClass("disabled");g.settings.slideshowPosition++;if(g.settings.slideshowPosition===g.settings.totalSlides-g.settings.visibleSlides){h.find(".omnislideshow-next").addClass("disabled")}if(g.settings.slideshowPosition>0){h.find(".omnislideshow-previous").removeClass("disabled")}f.animate({left:"-=240px"},{easing:"easeOutCubic",duration:1000})})},previous:function(){return this.each(function(){var h=c(this),g=h.data("omnislideshow");var f=h.find(".omnislideshow-thumbs ul li");h.find(".omnislideshow-next").removeClass("disabled");g.settings.slideshowPosition--;if(g.settings.slideshowPosition===0){h.find(".omnislideshow-previous").addClass("disabled")}f.animate({left:"+=240px"},{easing:"easeOutCubic",duration:1000})})},change:function(f){return this.each(function(){var i=c(this),g=i.data("omnislideshow");f.addClass("transitioning");i.find(".omnislideshow-thumbs ul li.selected").removeClass("selected").addClass("transitioning");i.find(".omnislideshow-fader").css({backgroundImage:i.find(".omnislideshow-image").css("backgroundImage"),opacity:1});var h=new Image();h.onload=function(){i.find(".omnislideshow-image").css({backgroundImage:f.data("slide").imageUrl});var j=i.find(".omnislideshow-fader, .omnislideshow-caption");j.animate({opacity:0},{easing:"easeOutCubic",duration:500});c.when(j).done(function(){i.find(".omnislideshow-caption").text(f.data("slide").caption);i.find(".omnislideshow-caption").stop(true,true).animate({opacity:1},{easing:"easeOutCubic",duration:500,complete:function(){f.removeClass("transitioning");f.addClass("selected");f.siblings().removeClass("transitioning");i.find(".omnislideshow-thumbs").removeClass("animating")}})})};h.src=f.data("slide").rawImage;f.siblings().find(".tile-border").stop(true,true).animate({opacity:0,borderTopColor:g.settings.highlightColor,borderLeftColor:g.settings.highlightColor,borderRightColor:g.settings.highlightColor,borderBottomColor:g.settings.highlightColor},{easing:"easeOutCubic",duration:1000});f.find(".tile-border").stop(true,true).animate({opacity:1,borderTopColor:g.settings.selectedColor,borderLeftColor:g.settings.selectedColor,borderRightColor:g.settings.selectedColor,borderBottomColor:g.settings.selectedColor},{easing:"easeOutCubic",duration:1000})})},destroy:function(){return this.each(function(){var g=c(this),f=g.data("omnislideshow");g.find(".omnislideshow").animate({opacity:0},{easing:"easeOutCubic",duration:1000,complete:function(){g.removeData("omnislideshow");g.find(".omnislideshow").remove()}})})}};c.fn.omnislideshow=function(g,f){b=c.extend({},d,f);e=f;if(a[g]){return a[g].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof g==="object"||!g){return a.init.apply(this,arguments)}else{c.error("Method "+g+" does not exist on jQuery.omnislideshow")}}};c(document).ready(function(){c("#images-link").one("click",function(){var f=c(".omnislideshow-thumbs ul li").first().outerWidth(true);var g=c(".omnislideshow-thumbs ul li").size();c(".omnislideshow-thumbs ul").css({width:f*g+"px"})});c(".omnislideshow-thumbs ul li").live("mouseenter mouseleave mousemove click",function(g){var j=c(this).parents(".omnislideshow").parent();var i=j.data("omnislideshow").settings;var h=c(this);var f=j.find(".omnislideshow-thumbs ul li");if(g.type==="mouseenter"||g.type==="mousemove"){if(h.is(".selected")||h.is(".transitioning")){return}else{h.children(".tile-border").stop(true).animate({opacity:1},{easing:"easeOutCubic",duration:500})}}else{if(g.type==="mouseleave"){if(h.is(".selected")||h.is(".transitioning")){return}else{h.children(".tile-border").stop(true).animate({opacity:0},{easing:"easeOutCubic",duration:500})}}else{if(g.type==="click"){if(h.is(".selected")||h.is(".transitioning")){return}else{h.parents(".omnislideshow").parent().omnislideshow("change",h)}}}}});c(".omnislideshow-next").live("click",function(){c(this).parents(".omnislideshow").parent().omnislideshow("next")});c(".omnislideshow-previous").live("click",function(){c(this).parents(".omnislideshow").parent().omnislideshow("previous")})})})(jQuery);(function(c){var d={feed:"/site/sn/marketing/carousels/home.xml",autoplay:true,visibleSlides:4,sharing:{facebook:false,google:false,twitter:false}};var b={};var a={init:function(){return this.each(function(){var f=c(this);f.data("omnicarousel",{settings:b});var e=f.data("omnicarousel");if(f.data("feed")!==undefined){e.settings.feed=f.data("feed")}f.append('<div class="omnicarousel"><div class="omnicarousel-content"><div class="omnicarousel-image"><div class="omnicarousel-fader"></div><div class="omnicarousel-shader"></div></div><div class="omnicarousel-text"><div class="omnicarousel-message"><h2></h2><p></p><span></span></div><div class="omnicarousel-tunein"><p></p><p></p></div></div></div><div class="omnicarousel-controls"><div class="omnicarousel-previous"></div><div class="omnicarousel-thumbnails"><ul></ul></div><div class="omnicarousel-next"></div></div></div>');if(c("body#full-episodes").size()>0){f.find(".omnicarousel-text").detach().css({position:"static"}).insertAfter(".omnicarousel-content");f.find(".omnicarousel-text h2, .omnicarousel-text span, .omnicarousel-tunein").remove();if(e.settings.sharing.facebook===true||e.settings.sharing.google===true||e.settings.sharing.twitter===true){f.find(".omnicarousel-text").append('<div class="omnicarousel-sharing"></div>');f.find(".omnicarousel-message").css({width:"-=270px"});if(e.settings.sharing.facebook===true){f.find(".omnicarousel-sharing").append('<div class="omnicarousel-sharing-facebook"></div>')}if(e.settings.sharing.google===true){f.find(".omnicarousel-sharing").append('<div class="omnicarousel-sharing-google"></div>')}if(e.settings.sharing.twitter===true){f.find(".omnicarousel-sharing").append('<div class="omnicarousel-sharing-twitter"></div>')}}}c.ajax({type:"GET",url:e.settings.feed,dataType:"xml",success:function(i){c.preLoadImages(c(i).find("image").first().text());c(i).find("item").each(function(m){var l='<li><div class="omnicarousel-tile"><div class="omnicarousel-border"></div><img class="omnicarousel-tile-image" width="220" height="65" src="'+c(this).find("thumbnail").text()+'" alt="thmbnail" /></div><p class="omnicarousel-title">'+c(this).find("minititle").text()+"</p></li>";f.find(".omnicarousel-thumbnails ul").append(l);if(c(this).find("type").text()==="cta"){var k="";c(this).find("link").each(function(){if(c(this).find("action").text()==="link"){k+='<a href="'+c(this).find("href").text()+'">'+c(this).find("text").text()+"</a>"}else{if(c(this).find("action").text()==="external"){k+='<a class="new-window" href="'+c(this).find("href").text()+'">'+c(this).find("text").text()+"</a>"}else{if(c(this).find("action").text()==="expandoplayer"){k+='<a class="omnicarousel-expandoplayer-link" data-bcid="'+c(this).find("bcid").text()+'">'+c(this).find("text").text()+"</a>"}else{k+='<a class="'+c(this).find("action").text()+'" href="'+c(this).find("href").text()+'">'+c(this).find("text").text()+"</a>"}}}});f.find(".omnicarousel-thumbnails ul li:last").data("slide",{type:"cta",url:"url("+c(this).find("image").text()+")",title:c(this).find("title").text(),minititle:c(this).find("minititle").text(),description:c(this).find("description").text(),links:k,expires:c(this).find("expires").text(),image:c(this).find("image").text(),thumbnail:c(this).find("thumbnail").text(),imagelink:c(this).find("href").first().text(),imagelinkclass:c(this).find("class").first().text(),tuneInMessageSlug:c(this).find("messageSlug").text(),tuneInMessage:c(this).find("message").text(),tuneInMessageTimestamp:c(this).find("messageTimestamp").text()})}else{if(c(this).find("type").text()==="video"){f.find(".omnicarousel-thumbnails ul li:last").data("slide",{type:"video",bcid:c(this).find("bcid").text(),locked:c(this).find("locked").text(),image:c(this).find("image").text(),thumbnail:c(this).find("thumbnail").text(),description:c(this).find("description").text(),url:c(this).find("url").text(),minititle:c(this).find("minititle").text()});if(f.find(".omnicarousel-thumbnails ul li:last").data("slide").locked==="true"){f.find(".omnicarousel-thumbnails ul li:last .omnicarousel-tile-image").bind("load",function(){})}}}var n="#"+f.find(".omnicarousel-thumbnails ul li:last").data("slide").minititle.replace(/[^a-zA-Z 0-9\-]+/g,"").toLowerCase().replace(/\s/g,"-");if(window.location.hash===n){f.find(".omnicarousel-thumbnails ul li:last").detach().prependTo(f.find(".omnicarousel-thumbnails ul"));e.settings.autoplay=false}});var g=f.find(".omnicarousel-thumbnails ul li").size();var j=f.find(".omnicarousel-thumbnails ul li").first().outerWidth(true);var h=f.find(".omnicarousel-thumbnails ul li").first().actual("outerHeight");f.find(".omnicarousel-thumbnails ul li").each(function(k){c(this).css({left:k*j+"px"})});f.find(".omnicarousel-previous, .omnicarousel-next").css({height:h+"px"});f.find(".omnicarousel-thumbnails").css({width:j*e.settings.visibleSlides+"px"});f.find(".omnicarousel-thumbnails ul").css({width:j*g+"px",height:f.find(".omnicarousel-thumbnails ul li").first().outerHeight(true)+"px"});if(f.find(".omnicarousel-thumbnails ul li").size()===e.settings.visibleSlides){f.find(".omnicarousel-previous, .omnicarousel-next").addClass("disabled")}f.find(".omnicarousel-thumbnails ul li:first").addClass("selected");f.find(".omnicarousel-thumbnails ul li:first .tile-border").css({opacity:1});f.omnicarousel("slideChange",f.find(".omnicarousel-thumbnails ul li").first())},complete:function(){f.find(".omnicarousel-fader").animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){f.find(".omnicarousel-thumbnails ul li:first").addClass("selected");if(e.settings.autoplay===true){f.data("omnicarousel").timeoutId=setTimeout(function(){f.omnicarousel("autoplay")},5000)}}})}})})},autoplay:function(){return this.each(function(){var h=c(this),f=h.data("omnicarousel");var e=h.find(".omnicarousel-thumbnails ul li");var g=h.find(".omnicarousel-thumbnails ul li.selected").next();if(g.size()>0){h.omnicarousel("slideChange",g);if(e.size()>f.settings.visibleSlides){h.omnicarousel("next")}}else{var i=h.find(".omnicarousel-thumbnails ul li").first();h.omnicarousel("slideChange",i)}h.data("omnicarousel").timeoutId=setTimeout(function(){h.omnicarousel("autoplay")},5000)})},next:function(){return this.each(function(){var g=c(this),f=g.data("omnicarousel");var e=g.find(".omnicarousel-thumbnails ul li");var h=e.first().outerWidth(true);g.find(".omnicarousel-thumbnails").addClass("animating");e.stop(true,true).animate({left:"-="+h+"px"},{easing:"easeOutCubic",duration:1000});c.when(e).done(function(){var i=g.find(".omnicarousel-thumbnails ul li").first().detach();i.css({left:h*(e.size()-1)+"px"}).appendTo(g.find(".omnicarousel-thumbnails ul"));g.find(".omnicarousel-thumbnails").removeClass("animating")})})},previous:function(){return this.each(function(){var h=c(this),g=h.data("omnicarousel");var f=h.find(".omnicarousel-thumbnails ul li").size();var i=h.find(".omnicarousel-thumbnails ul li").first().outerWidth(true);var e=h.find(".omnicarousel-thumbnails ul li").last().detach();h.find(".omnicarousel-thumbnails").addClass("animating");e.css({left:-i+"px"}).prependTo(h.find(".omnicarousel-thumbnails ul"));h.find(".omnicarousel-thumbnails ul li").stop(true,true).animate({left:"+="+i+"px"},{easing:"easeOutCubic",duration:1000,complete:function(){h.find(".omnicarousel-thumbnails").removeClass("animating")}})})},slideChange:function(e){return this.each(function(){var i=c(this),h=i.data("omnicarousel"),f;var g=i.find(".omnicarousel-image").css("backgroundImage");i.find(".omnicarousel-thumbnails ul li.selected").removeClass("selected");e.addClass("selected");if(e.next().size()>0){f=e.next().data("slide").image}else{f=undefined}if(f){c.preLoadImages(f)}i.find(".omnicarousel-fader").css({backgroundImage:g,opacity:1});i.find(".omnicarousel-image").css({backgroundImage:"url("+e.data("slide").image+")"});e.siblings().find(".omnicarousel-border").stop(true,true).animate({opacity:0,borderTopColor:"#FFFFFF",borderLeftColor:"#FFFFFF",borderRightColor:"#FFFFFF",borderBottomColor:"#FFFFFF"},{easing:"easeOutCubic",duration:1000});e.find(".omnicarousel-border").stop(true,true).animate({opacity:1,borderTopColor:"#59b4de",borderLeftColor:"#59b4de",borderRightColor:"#59b4de",borderBottomColor:"#59b4de"},{easing:"easeOutCubic",duration:1000});i.find(".omnicarousel-text").stop(true,true).animate({opacity:0},{easing:"easeOutCubic",duration:500,complete:function(){if(e.data("slide").type==="video"&&i.find(".omnicarousel-big-lock").size()===0){i.find(".omnicarousel-image").append('<a class="omnicarousel-big-lock" data-url="'+e.data("slide").url+'" data-bcid="'+e.data("slide").bcid+'"></a>')}else{i.find(".omnicarousel-big-lock").attr("data-url",e.data("slide").url);i.find(".omnicarousel-big-lock").attr("data-bcid",e.data("slide").bcid)}if(e.data("slide").locked==="true"){i.find(".omnicarousel-big-lock").addClass("locked");if(i.find(".omnicarousel-facebook-lock").size()===0){i.find(".omnicarousel-image").append('<div class="omnicarousel-facebook-lock"><img class="omnicarousel-facebook-lock-arrow" src="/assets/images/sn/desktop/framework/icons/fb_lock_arrow.png" width="60" height="220" alt="arrow" /><h4>Like Us on Facebook to Unlock the Video</h4><p>Gain instant access to exclusive full-length shows. Just click the Like button, sit back and enjoy streaming content.</p><div class="fb-login-button" data-show-faces="false" data-width="200" data-max-rows="0", data-scope="user_likes"></div></div>');i.find(".omnicarousel-facebook-lock").position({my:"center center",at:"center center",of:i.find(".omnicarousel-big-lock"),offset:"250 0"})}if(typeof FB!=="undefined"){FB.XFBML.parse()}}else{if(e.data("slide").locked==="false"){i.find(".omnicarousel-big-lock").removeClass("locked");i.find(".omnicarousel-facebook-lock").fadeOut().remove()}}i.find(".omnicarousel-tunein p:first").text(e.data("slide").tuneInMessageSlug);i.find(".omnicarousel-tunein p:last").text(e.data("slide").tuneInMessage);var k=new Date();var l=k.getTime();if(e.data("slide").expires*1000<l||e.data("slide").tuneInMessage===undefined){i.find(".omnicarousel-tunein").css({display:"none"})}else{i.find(".omnicarousel-tunein").css({display:"block"})}i.find(".omnicarousel-message h2").text(e.data("slide").title);i.find(".omnicarousel-message p:first").text(e.data("slide").description);i.find(".omnicarousel-message span").html(e.data("slide").links);if(e.data("slide").tuneInMessageTimestamp==="true"){i.find(".omnicarousel-tunein p:last").append('<span class="et">ET</span><span class="pt">PT</span>')}if(e.data("slide").type==="cta"){i.find(".omnicarousel-shader").click(function(){window.location=e.data("slide").imagelink})}else{i.find(".omnicarousel-shader").unbind()}if(h.settings.sharing.facebook===true){var j='<div href="'+e.data("slide").url+'" class="fb-like" data-send="true" data-layout="button_count" data-show-faces="true" data-action="recommend" data-colorscheme="light" data-font="lucida grande"></div>';i.find(".omnicarousel-sharing-facebook").html(j);if(typeof FB!=="undefined"){FB.XFBML.parse()}}i.find(".omnicarousel-text").animate({opacity:1},{easing:"easeOutCubic",duration:500})}});i.find(".omnicarousel-fader").stop(true).animate({opacity:0},{easing:"easeOutCubic",duration:1000,complete:function(){c(this).css({backgroundImage:"none",opacity:0})}})})}};c.fn.omnicarousel=function(f,e){b=c.extend(true,{},d,e);if(a[f]){return a[f].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof f==="object"||!f){return a.init.apply(this,arguments)}else{c.error("Method "+f+" does not exist on jQuery.omnicarousel")}}};c(document).ready(function(){c(".omnicarousel-thumbnails ul li").live("click mouseenter mouseleave",function(e){var h=c(this);if(c(this).is(".selected")){return}else{if(e.type==="click"){var g=h.data("slide").minititle.replace(/[^a-zA-Z 0-9\-]+/g,"").toLowerCase().replace(/\s/g,"-");window.location.hash=g;if(h.parents(".omnicarousel").find(".expandoplayer").size()>0){var f=h.parents(".omnicarousel").find(".expandoplayer").parent().data("expandoplayer").originalContent;h.parents(".omnicarousel").find(".expandoplayer").remove();h.parents(".omnicarousel").find(".omnicarousel-content").html(f)}h.parents(".omnicarousel").parent().omnicarousel("slideChange",h)}else{if(e.type==="mouseenter"){c(this).find(".omnicarousel-border").stop().animate({opacity:1},{easing:"easeOutCubic",duration:500})}else{if(e.type==="mouseleave"){c(this).find(".omnicarousel-border").stop().animate({opacity:0},{easing:"easeOutCubic",duration:500})}}}}});c(".omnicarousel-text span a").live("mouseenter mouseleave",function(e){if(e.type==="mouseenter"){c(this).stop().clearQueue().animate({color:"#FFFFFF"},{easing:"easeOutCubic",duration:500})}else{if(e.type==="mouseleave"){c(this).stop().clearQueue().animate({color:"#59b4de"},{easing:"easeOutCubic",duration:500})}}});c(".omnicarousel").live("mousedown",function(){if(c(this).parent().data("omnicarousel").timeoutId!==undefined){clearTimeout(c(this).parent().data("omnicarousel").timeoutId)}});c(".omnicarousel-next").live("click",function(){if(c(this).siblings(".omnicarousel-thumbnails").is(".animating")){return}else{c(this).parents(".omnicarousel").parent().omnicarousel("next")}});c(".omnicarousel-previous").live("click",function(){if(c(this).siblings(".omnicarousel-thumbnails").is(".animating")){return}else{c(this).parents(".omnicarousel").parent().omnicarousel("previous")}});if(c("body#home, body#air-and-space, body#shows-page, body#science-and-nature, body#culture, body#kids, body#history").size()>0){c("#omnicarousel").omnicarousel("init")}c(".omnicarousel-expandoplayer-link").live("click",function(){c(this).stop(true,true).css({color:"#59b4de"});c(this).parents(".omnicarousel").find(".omnicarousel-content").expandoplayer("init").expandoplayer("expand",{bcid:c(this).data("bcid")});return false})})})(jQuery);(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasOwnProperty(f)){m[f]=l[f]}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var m,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=m&&m.GetVariable("$version")}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=m&&m.GetVariable("$version")}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"@VERSION"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,c=function(f,e){f=String(f);e=e||2;while(f.length<e){f="0"+f}return f};return function(i,v,q){var g=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(i)=="[object String]"&&!/\d/.test(i)){v=i;i=undefined}i=i?new Date(i):new Date;if(isNaN(i)){throw SyntaxError("invalid date")}v=String(g.masks[v]||v||g.masks["default"]);if(v.slice(0,4)=="UTC:"){v=v.slice(4);q=true}var t=q?"getUTC":"get",l=i[t+"Date"](),e=i[t+"Day"](),j=i[t+"Month"](),p=i[t+"FullYear"](),r=i[t+"Hours"](),k=i[t+"Minutes"](),u=i[t+"Seconds"](),n=i[t+"Milliseconds"](),f=q?0:i.getTimezoneOffset(),h={d:l,dd:c(l),ddd:g.i18n.dayNames[e],dddd:g.i18n.dayNames[e+7],m:j+1,mm:c(j+1),mmm:g.i18n.monthNames[j],mmmm:g.i18n.monthNames[j+12],yy:String(p).slice(2),yyyy:p,h:r%12||12,hh:c(r%12||12),H:r,HH:c(r),M:k,MM:c(k),s:u,ss:c(u),l:c(n,3),L:c(n>99?Math.round(n/10):n),t:r<12?"a":"p",tt:r<12?"am":"pm",T:r<12?"A":"P",TT:r<12?"AM":"PM",Z:q?"UTC":(String(i).match(b)||[""]).pop().replace(d,""),o:(f>0?"-":"+")+c(Math.floor(Math.abs(f)/60)*100+Math.abs(f)%60,4),S:["th","st","nd","rd"][l%10>3?0:(l%100-l%10!=10)*l%10]};return v.replace(a,function(m){return m in h?h[m]:m.slice(1,m.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)};(function(a){a.fn.example=function(e,c){var d=a.isFunction(e);var b=a.extend({},c,{example:e});return this.each(function(){var f=a(this);if(a.metadata){var g=a.extend({},a.fn.example.defaults,f.metadata(),b)}else{var g=a.extend({},a.fn.example.defaults,b)}if(!a.fn.example.boundClassNames[g.className]){a(window).unload(function(){a("."+g.className).val("")});a("form").submit(function(){a(this).find("."+g.className).val("")});a.fn.example.boundClassNames[g.className]=true}if(a.browser.msie&&!f.attr("defaultValue")&&(d||f.val()==g.example)){f.val("")}if(f.val()==""&&this!=document.activeElement){f.addClass(g.className);f.val(d?g.example.call(this):g.example)}f.focus(function(){if(a(this).is("."+g.className)){a(this).val("");a(this).removeClass(g.className)}});f.change(function(){if(a(this).is("."+g.className)){a(this).removeClass(g.className)}});f.blur(function(){if(a(this).val()==""){a(this).addClass(g.className);a(this).val(d?g.example.call(this):g.example)}})})};a.fn.example.defaults={className:"example"};a.fn.example.boundClassNames=[]})(jQuery);var cf_agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion,10);var is_ie=((cf_agt.indexOf("msie")!=-1)&&(cf_agt.indexOf("opera")==-1));var is_ie6=(is_ie&&(is_major==4)&&(cf_agt.indexOf("msie 6.")!=-1));function setFlashSize_right(a){if(a=="unavailable"){jQuery("#channel-finder-app").css({height:"300px"});if(!is_ie6){jQuery("#channel-finder-app").css({width:"235px"})}}else{jQuery("#channel-finder-app").css({height:"300px",width:"235px"})}}function setFlashSize_right_close(){jQuery("#channel-finder-app").css({height:"37px",width:"127px"})}function showOpenState(){alert("showOpenState");this.f=document.getElementById("cf_open");this.f.style.display="inline"}function hideOpenState(){this.f=document.getElementById("cf_open");this.f.style.display="none"}$(document).ready(function(){if($.jStorage.get("channel",false)){$("#channel-finder a span#channel-number").text($.jStorage.get("channel",false))}if($.jStorage.get("blurb",false)){a($.jStorage.get("blurb",false))}$(".channel-finder").bind("mouseenter mouseleave",function(d){var f,e;if(!d.fromElement){if(d.type==="mouseenter"){if(d.relatedTarget===null){e=d.target?d.target:d.toElement}else{e=d.relatedTarget?d.relatedTarget:d.fromElement}f=d.target?d.target:d.toElement}else{if(d.type==="mouseleave"){if(d.relatedTarget===null){e=d.target?d.target:d.toElement}else{e=d.relatedTarget?d.relatedTarget:d.fromElement}f=d.target?d.target:d.toElement}}}else{f=d.toElement;e=d.fromElement}if(e.className==="channel-finder"&&f.className==="channel-finder"){return}else{if(d.type==="mouseenter"){$("#channel-finder").stop(true).animate({backgroundColor:"#292828",borderRightColor:"#494949",borderLeftColor:"#494949"},{easing:"easeOutCubic",duration:250});$("#channel-finder-box").show().position({my:"left top",at:"left bottom",of:"#channel-finder",offset:"0 -1px"}).stop(true).animate({opacity:1,backgroundColor:"#292828",},{easing:"easeOutCubic",duration:250})}else{if(d.type==="mouseleave"){$("#channel-finder").stop(true).animate({backgroundColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"},{easing:"easeOutCubic",duration:250});$("#channel-finder-box").stop(true).animate({opacity:0,backgroundColor:"transparent",borderColor:"transparent"},{easing:"easeOutCubic",duration:250,complete:function(){$(this).hide()}})}}}});function c(){$("#channel-finder-question select").attr("disabled","disabled");$("#channel-finder-question select").html("").append('<option disabled="disabled">Choose your provider</option>')}function b(){$("#channel-finder a span#channel-name").text("Channel");$("#channel-finder a span#channel-number").text("Finder");$.jStorage.deleteKey("channel");$.jStorage.deleteKey("blurb")}function a(d){$("#channel-finder-response").html("<p>"+d+'</p><a id="channel-finder-reset" class="button orange medium">Reset</a>').show();$("#channel-finder-question").hide()}$("#zipcode").keyup(function(){if($("#zipcode").val().length===5){$.ajax({type:"GET",url:"http://feeds.channelfinder.net/xml/template/Smithsonian_zip.xml?zip="+$("#zipcode").val()+"&kpiid=100032904",dataType:"xml",success:function(d){$.each($.xml2json(d).provider,function(){$("#channel-finder-question select").append('<option value="'+this.clientid+'">'+this.name+"</option>")});$("#channel-finder-question select").removeAttr("disabled")}});$("#channel-finder-question select").bind("change",function(){$.ajax({type:"GET",url:"http://feeds.channelfinder.net/xml/template/Smithsonian_ProviderMessage.xml?clientid="+$("#channel-finder-box select option:selected").val()+"&kpiid=100032904",dataType:"xml",success:function(g){var e=$.xml2json(g);var f=e.clientinfo.sd_channel;var d=e.clientinfo.sd_message.replace(" Click here to request it now.","");if(e.clientinfo.sd_channel!=="F"){$.jStorage.set("channel",f);$.jStorage.set("blurb",d);$("#channel-finder a span#channel-number").text(f)}a(d)}})})}else{c()}});$("#channel-finder-reset").live("click",function(){$("#channel-finder-question").show();$("#channel-finder-response").hide();$("#zipcode").val("");c();b()})});var BCJS=function(){this.init=function(){this.DOM=new BCJS.DOM();this.DOM.init();this.EXP=new BCJS.EXP();this.EXP.init();this.UI=new BCJS.UI();this.UI.init();this.$=this.DOM.select;this.$$=this.DOM.hasMatch;this.browser=this.browser();this.isSafari=false;this.isFirefox=false;this.isIE=false;this.isIE6=false;this.isIE7=false;if(this.browser[1]=="firefox"){this.isFirefox=true}else{if(this.browser[1]=="safari"){this.isSafari=true}else{if(this.browser[1]=="explorer"){this.isIE=true;if(this.browser[2]<7){this.isIE6=true}else{if(this.browser[2]<8){this.isIE7=true}}}}}};this.ajax=function(f,a,b,c){if(window.XMLHttpRequest){httpRequest=new XMLHttpRequest();if(httpRequest.overrideMimeType){httpRequest.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}}}}if(!httpRequest){return false}httpRequest.onreadystatechange=function(){if(httpRequest.readyState==4){if(httpRequest.status==200){if(!a){return httpRequest.responseText}else{a(httpRequest.responseText)}}}};if(!b){if(!a){httpRequest.open("GET",f,false)}else{httpRequest.open("GET",f,true)}httpRequest.send("")}else{httpRequest.open("POST",f,true);httpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");httpRequest.setRequestHeader("Content-length",c.length);httpRequest.send(c)}};this.browser=function(){var d;var i;var a;var b=new Array({string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"});var f=new Array({string:navigator.platform,subString:"Win",identity:"windows"},{string:navigator.platform,subString:"Mac",identity:"mac"},{string:navigator.platform,subString:"Linux",identity:"linux"});var e=function(k){for(var g=0;g<k.length;g++){var h=k[g].string;var j=k[g].prop;d=k[g].versionSearch||k[g].identity;if(h){if(h.indexOf(k[g].subString)!=-1){return k[g].identity}}else{if(j){return k[g].identity}}}};var c=function(j,h){var g=j.indexOf(h);if(g==-1){return}return parseFloat(j.substring(g+h.length+1))};b=e(b)||"unknown";a=c(navigator.userAgent,d)||c(navigator.appVersion,d)||"unknown";b=b.toLowerCase();i=e(f)||"unknown";return new Array(i,b,a)};this.dimensions=function(){var b;var d;var c;var a;if(typeof window.innerWidth!="undefined"){b=window.innerWidth;d=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{b=document.getElementsByTagName("body")[0].clientWidth;d=document.getElementsByTagName("body")[0].clientHeight}}if(typeof(window.pageYOffset)=="number"){c=window.pageXOffset;a=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){c=document.body.scrollLeft;a=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){c=document.documentElement.scrollLeft;a=document.documentElement.scrollTop}}}if(typeof(b)=="undefined"){b=0}if(typeof(d)=="undefined"){d=0}if(typeof(c)=="undefined"){c=0}if(typeof(a)=="undefined"){a=0}return new Array(b,d,c,a)};this.getNum=function(c){var b="";var a=false;if(c.indexOf("px")>-1){a=true;b=parseInt(c.substring(0,c.indexOf("px")))}else{b=parseInt(c)}return new Array(b,a)};this.time=function(b){b=new Number(b/1000);var d=Math.floor(b/3600);var a=Math.floor(b%3600/60);var c=Math.floor(b%3600%60);return((d>0?d+":":"")+(a>0?(d>0&&a<10?"0":"")+a+":":"0:")+(c<10?"0":"")+c)};this.getCookie=function(c){var d=document.cookie.indexOf(c+"=");var a=d+c.length+1;if((!d)&&(c!=document.cookie.substring(0,c.length))){return null}if(d==-1){return null}var b=document.cookie.indexOf(";",a);if(b==-1){b=document.cookie.length}return unescape(document.cookie.substring(a,b))};this.setCookie=function(b,c,a,d){if(d===undefined){d={}}if(a){var e=new Date();e.setDate(e.getDate()+a)}document.cookie=b+"="+escape(c)+((a)?";expires="+e.toGMTString():"")+((d.path)?";path="+d.path:"")+((d.domain)?";domain="+d.domain:"")+((d.secure)?";secure":"")};this.deleteCookie=function(a,c,b){if(BCJS.getCookie(a)){document.cookie=a+"="+((c)?";path="+c:"")+((b)?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};this.base64=function(f,h){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var j=new RegExp("[^"+r+"=]","g");if(f=="encode"){var k=0;var e="";var l=h.length;var g=3-(l%3);while(k<l){var s=h.charCodeAt(k++);var q=h.charCodeAt(k++)||0;var o=h.charCodeAt(k++)||0;var d=s>>2;var c=(s&3)<<4|q>>4;var b=(q&15)<<2|o>>6;var a=o&63;e+=r.charAt(d)+r.charAt(c)+r.charAt(b)+r.charAt(a)}if(g){e=e.slice(0,e.length-g)+(g==1?"=":"==")}return e}else{h=h.replace(j,"");var k=0;var e="";var l=h.length;var g=l-h.indexOf("=");while(k<l){var s=r.indexOf(h.substr(k++,1));var q=r.indexOf(h.substr(k++,1));var o=r.indexOf(h.substr(k++,1));var m=r.indexOf(h.substr(k++,1));var t=s<<2|q>>4;var p=((q&15)<<4)|(o>>2);var n=((o&3)<<6)|m&63;e+=String.fromCharCode(t)+String.fromCharCode(p)+String.fromCharCode(n)}if(g){e=e.substr(0,e.length-g)}return e}};this.param=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\\?&]"+a+"=([^&#]*)";var d=new RegExp(b);var c=d.exec(window.location.href);if(c==null){return""}else{return c[1]}};this.UI=function(){this.init=function(){this.isFading=false};this.tween=function(g,b,d,h,a){if(typeof(g)=="string"){g=BCJS.DOM.select(g)[0]}if(b=="opacity"){if(BCJS.isIE){b="filter"}}if(h==0||typeof(h)!="number"){h=1}var f=BCJS.getNum(g.style[b])[0];var i=d-f;var e=new Date().getTime();var c=e+h;BCJS.UI.tweenExecute(g,b,f,i,h,c,a)};this.tweenExecute=function(i,b,h,k,j,c,a){var f=new Date().getTime();var d=Math.max(0,c-f);var e;if(b=="top"||b=="right"||b=="bottom"||b=="left"){e=Math.round((k-(Math.pow(d,3)/Math.pow(j,3))*k)*10)/10}else{e=Math.round((k-(d/j)*k)*10)/10}if(d<=0||k>10){e=parseInt(e)}if(b!="filter"){var g=BCJS.getNum(i.style[b])[1]}if(g){i.style[b]=(h+e)+"px"}else{if(b=="filter"){i.style[b]="alpha(opacity="+((h+e)*100)+")"}else{i.style[b]=(h+e)}}if(d>0){setTimeout(function(){BCJS.UI.tweenExecute(i,b,h,k,j,c,a)},10)}else{if(typeof(a)=="function"){a()}}};this.hide=function(a){if(typeof(a)=="string"){a=BCJS.DOM.select(a)[0]}if(a.style.display!="none"&&a.style.display!="hidden"){a.style.display="none"}};this.show=function(a){if(typeof(a)=="string"){a=BCJS.DOM.select(a)[0]}if(a.style.display=="none"||a.style.display=="hidden"){a.style.display="block"}};this.toggle=function(a){if(typeof(a)=="string"){a=BCJS.DOM.select(a)[0]}if(a.style.display=="none"||a.style.display=="hidden"){a.style.display="block"}else{a.style.display="none"}};this.center=function(f){if(typeof(f)=="string"){f=BCJS.DOM.select(f)[0]}var b;var a;if(f.offsetWidth){b=f.offsetWidth}else{b=BCJS.getNum(f.style.width)[0]}if(f.offsetHeight){a=f.offsetHeight}else{a=BCJS.getNum(f.style.height)[0]}var d=BCJS.dimensions();var e=((d[0]/2)-(b/2)+d[2]);var c=((d[1]/2)-(a/2)+d[3]);f.style.left=e+"px";f.style.top=c+"px"}};this.DOM=function(){this.init=function(){};this.match=function(b,a){return NW.Dom.match(b,a)};this.select=function(a){return NW.Dom.select(a)};this.hasMatch=function(b,a){if(typeof(b)=="string"){b=this.select(b)[0]}if(this.match(b,a)){return true}else{return false}};this.addClass=function(b,a){if(typeof(b)=="string"){b=this.select(b)[0]}if(!this.match(b,"."+a)){b.className=b.className+" "+a}};this.removeClass=function(c,a){if(typeof(c)=="string"){c=this.select(c)[0]}if(this.match(c,"."+a)){var b=new RegExp("(\\s|^)"+a+"(\\s|$)");c.className=c.className.replace(b," ")}};this.toggleClass=function(b,a){if(typeof(b)=="string"){b=this.select(b)[0]}if(!this.match(b,"."+a)){this.addClass(b,a)}else{this.removeClass(b,a)}}};this.EXP=function(){this.init=function(){this.player=null;this.experience=null;this.ad=null;this.video=null;this.social=null};this.onTemplateLoaded=function(a){BCJS.EXP.player=brightcove.getExperience(a);BCJS.EXP.experience=BCJS.EXP.player.getModule(APIModules.EXPERIENCE);BCJS.EXP.ad=BCJS.EXP.player.getModule(APIModules.ADVERTISING);BCJS.EXP.video=BCJS.EXP.player.getModule(APIModules.VIDEO_PLAYER);BCJS.EXP.social=BCJS.EXP.player.getModule(APIModules.SOCIAL);BCJS.EXP.experience.addEventListener(BCExperienceEvent.TEMPLATE_READY,BCJS.EXP.onTemplateReady);BCJS.EXP.experience.addEventListener(BCExperienceEvent.CONTENT_LOAD,BCJS.EXP.onContentLoaded);if(typeof BCJS.EXP.templateLoaded=="function"){this.templateLoaded()}};this.onContentLoaded=function(){if(typeof BCJS.EXP.contentLoaded=="function"){BCJS.EXP.contentLoaded()}};this.onTemplateReady=function(){BCJS.EXP.video.addEventListener(BCMediaEvent.COMPLETE,BCJS.EXP.onMediaComplete);if(typeof BCJS.EXP.templateReady=="function"){BCJS.EXP.templateReady()}};this.onExternalAd=function(a){if(typeof BCJS.EXP.externalAd=="function"){BCJS.EXP.externalAd()}};this.onMediaComplete=function(){if(typeof BCJS.EXP.mediaComplete=="function"){BCJS.EXP.mediaComplete()}}}};function onTemplateLoaded(a){BCJS.EXP.onTemplateLoaded(a)}BCJS=new BCJS();BCJS.init();(function(t){var B="nwmatcher-1.2.2",E=t.document,aI=E.documentElement,ax="",aA="",p="",e=false,a=false,ag=E,ak=E,aR="((?:[-\\w]|[^\\x00-\\xa0]|\\\\.)+)",h="(?:\\[.*\\]|\\(.*\\))",ab=/^\s*(\*|[.:#](?:[a-zA-Z]|[^\x00-\xa0])+|[>+~a-zA-Z]|[^\x00-\xa0]|\[.*\]|\{.*\})/,aw=/^[\x20\t\n\r\f]+|[\x20\t\n\r\f]+$/g,au=/([^,\\()[\]]+|\([^()]+\)|\(.*\)|\[(?:\[[^[\]]*\]|["'][^'"]*["']|[^'"[\]]+)+\]|\[.*\]|\\.)+/g,aQ=/([^ >+~,\\()[\]]+|\([^()]+\)|\(.*\)|\[[^[\]]+\]|\[.*\]|\\.)+/g,x=/([-\w]+)/,I=/\#([-\w]+)$/,ac=/[\x20\t\n\r\f]+/g,b=/^\s*[>+~]+/,K=/[>+~]+\s*$/,z=Array.prototype.slice,aD=function(aS){return aS.replace(/<\/?("[^\"]*"|'[^\']*'|[^>])+>/gi,"")},O=(function(){var aS=(t.open+"").replace(/open/g,"");return function(aU,aW){var aT=aU?aU[aW]:false,aV=new RegExp(aW,"g");return !!(aT&&typeof aT!="string"&&aS===(aT+"").replace(aV,""))}})(),D=function(aS){return typeof aS.compatMode=="string"?aS.compatMode.indexOf("CSS")<0:(function(){var aU=aS.createElement("div"),aT=aU.style&&(aU.style.width=1)&&aU.style.width!="1px";aU=null;return !aT})()},X="xmlVersion" in E?function(aS){return !!aS.xmlVersion||(/xml$/).test(aS.contentType)||!(/html/i).test(aS.documentElement.nodeName)}:function(aS){return aS.firstChild.nodeType==7&&(/xml/i).test(aS.firstChild.nodeName)||!(/html/i).test(aS.documentElement.nodeName)},aa=D(E),V=X(E),l=O(E,"hasFocus"),j=O(E,"querySelector"),av=O(E,"getElementById"),aN=O(aI,"getElementsByTagName"),an=O(aI,"getElementsByClassName"),i=O(aI,"hasAttribute"),ae=(function(){var aU=false,aT=aI.id;aI.id="length";try{aU=!!z.call(E.childNodes,0)[0]}catch(aS){}aI.id=aT;return aU})(),m="nextElementSibling" in aI&&"previousElementSibling" in aI,Y=av?(function(){var aU=true,aS="x"+String(+new Date),aT=E.createElementNS?"a":'<a name="'+aS+'">';(aT=E.createElement(aT)).name=aS;aI.insertBefore(aT,aI.firstChild);aU=!!E.getElementById(aS);aI.removeChild(aT);aT=null;return aU})():true,ao=aN?(function(){var aT,aS=E.createElement("div");aS.appendChild(E.createComment(""));aT=aS.getElementsByTagName("*")[0];aS.removeChild(aS.firstChild);aS=null;return !!aT})():true,Q=an?(function(){var aU,aT=E.createElement("div"),aS="\u53f0\u5317";aT.appendChild(E.createElement("span")).setAttribute("class",aS+"abc "+aS);aT.appendChild(E.createElement("span")).setAttribute("class","x");aU=!aT.getElementsByClassName(aS)[0];aT.lastChild.className=aS;if(!aU){aU=aT.getElementsByClassName(aS).length!==2}aT.removeChild(aT.firstChild);aT.removeChild(aT.firstChild);aT=null;return aU})():true,aC=i?(function(){var aT,aS=E.createElement("option");aS.setAttribute("selected","selected");aT=!aS.hasAttribute("selected");return aT})():true,aM=(function(){var aT,aS=E.createElement("select");aS.appendChild(E.createElement("option"));aT=!aS.firstChild.selected;return aT})(),ai=j?(function(){var aT=[],aV=E.createElement("div"),aS;aV.appendChild(E.createElement("p")).setAttribute("class","xXx");aV.appendChild(E.createElement("p")).setAttribute("class","xxx");if(D(E)&&(aV.querySelectorAll("[class~=xxx]").length!=2||aV.querySelectorAll(".xXx").length!=2)){aT.push("(?:\\[[\\x20\\t\\n\\r\\f]*class\\b|\\."+aR+")")}aV.removeChild(aV.firstChild);aV.removeChild(aV.firstChild);(aS=E.createElement("input")).setAttribute("type","hidden");aV.appendChild(aS);try{aV.querySelectorAll(":enabled").length===1&&aT.push(":enabled",":disabled")}catch(aU){}aV.removeChild(aV.firstChild);(aS=E.createElement("input")).setAttribute("type","hidden");aV.appendChild(aS);aS.setAttribute("checked","checked");try{aV.querySelectorAll(":checked").length!==1&&aT.push(":checked")}catch(aU){}aV.removeChild(aV.firstChild);aV.appendChild(E.createElement("a")).setAttribute("href","x");aV.querySelectorAll(":link").length!==1&&aT.push(":link");aV.removeChild(aV.firstChild);aT.push(":target",":selected",":contains");if(aC){aT.push("\\[\\s*.*\\^\\=","\\[\\s*.*\\$\\=","\\[\\s*value","\\[\\s*ismap","\\[\\s*checked","\\[\\s*disabled","\\[\\s*multiple","\\[\\s*readonly","\\[\\s*selected")}aV=null;return aT.length?new RegExp(aT.join("|")):{test:function(){return false}}})():true,W=new RegExp("^(?:\\*|[.#]?"+aR+")$"),P=new RegExp(!(ao&&Q)?"^(?:\\*|[.#]?"+aR+")$":"^#?"+aR+"$"),aB={a:1,A:1,area:1,AREA:1,link:1,LINK:1},aL={"9":1,"11":1},J={checked:1,disabled:1,ismap:1,multiple:1,readonly:1,selected:1},U={action:2,cite:2,codebase:2,data:2,href:2,longdesc:2,lowsrc:2,src:2,usemap:2},ay={"class":0,accept:1,"accept-charset":1,align:1,alink:1,axis:1,bgcolor:1,charset:1,checked:1,clear:1,codetype:1,color:1,compact:1,declare:1,defer:1,dir:1,direction:1,disabled:1,enctype:1,face:1,frame:1,hreflang:1,"http-equiv":1,lang:1,language:1,link:1,media:1,method:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,rel:1,rev:1,rules:1,scope:1,scrolling:1,selected:1,shape:1,target:1,text:1,type:1,valign:1,valuetype:1,vlink:1},L={accept:1,"accept-charset":1,alink:1,axis:1,bgcolor:1,charset:1,codetype:1,color:1,enctype:1,face:1,hreflang:1,"http-equiv":1,lang:1,language:1,link:1,media:1,rel:1,rev:1,target:1,text:1,type:1,vlink:1},A={},v={"=":"n=='%m'","^=":"n.indexOf('%m')==0","*=":"n.indexOf('%m')>-1","|=":"(n+'-').indexOf('%m-')==0","~=":"(' '+n+' ').indexOf(' %m ')>-1","$=":"n.substr(n.length-'%m'.length)=='%m'"},o="(?:^|[>+~\\x20\\t\\n\\r\\f])",M={ID:new RegExp("#"+aR+"|"+h),TAG:new RegExp(o+aR+"|"+h),CLASS:new RegExp("\\."+aR+"|"+h),NAME:/\[\s*name\s*=\s*((["']*)([^'"()]*?)\2)?\s*\]/},aH={attribute:/^\[[\x20\t\n\r\f]*([-\w\\]*:?(?:[-\w\\])+)[\x20\t\n\r\f]*(?:([~*^$|!]?=)[\x20\t\n\r\f]*(["']*)([^'"()]*?)\3)?[\x20\t\n\r\f]*\](.*)/,spseudos:/^\:(root|empty|nth)?-?(first|last|only)?-?(child)?-?(of-type)?(?:\(([^\x29]*)\))?(.*)/,dpseudos:/^\:([\w]+|[^\x00-\xa0]+)(?:\((["']*)(.*?(\(.*\))?[^'"()]*?)\2\))?(.*)/,children:/^[\x20\t\n\r\f]*\>[\x20\t\n\r\f]*(.*)/,adjacent:/^[\x20\t\n\r\f]*\+[\x20\t\n\r\f]*(.*)/,relative:/^[\x20\t\n\r\f]*\~[\x20\t\n\r\f]*(.*)/,ancestor:/^[\x20\t\n\r\f]+(.*)/,universal:/^\*(.*)/,id:new RegExp("^#"+aR+"(.*)"),tagName:new RegExp("^"+aR+"(.*)"),className:new RegExp("^\\."+aR+"(.*)")},g={Structural:{root:3,empty:3,"first-child":3,"last-child":3,"only-child":3,"first-of-type":3,"last-of-type":3,"only-of-type":3,"first-child-of-type":3,"last-child-of-type":3,"only-child-of-type":3,"nth-child":3,"nth-last-child":3,"nth-of-type":3,"nth-last-of-type":3},Others:{checked:3,disabled:3,enabled:3,selected:2,indeterminate:"?",active:3,focus:3,hover:3,link:3,visited:3,target:3,lang:3,not:3,contains:"?"}},al=function(aV,aU){var aT=-1,aS;if(aV.length===0&&Array.slice){return Array.slice(aU)}while((aS=aU[++aT])){aV[aV.length]=aS}return aV},aJ=function(aV,aU,aW){var aT=-1,aS;while((aS=aU[++aT])){aW(aV[aV.length]=aS)}return aV},y=function(aV,aU){var aT=-1,aS=null;while((aS=aU[++aT])){if(aS.getAttribute("id")==aV){break}}return aS},G=!Y?function(aT,aS){aS||(aS=E);aT=aT.replace(/\\/g,"");if(V||aS.nodeType!=9){return y(aT,aS.getElementsByTagName("*"))}return aS.getElementById(aT)}:function(aU,aT){var aS=null;aT||(aT=E);aU=aU.replace(/\\/g,"");if(V||aT.nodeType!=9){return y(aU,aT.getElementsByTagName("*"))}if((aS=aT.getElementById(aU))&&aS.name==aU&&aT.getElementsByName){return y(aU,aT.getElementsByName(aU))}return aS},ar=!ao&&ae?function(aS,aT){return z.call((aT||E).getElementsByTagName(aS),0)}:function(aS,aY){var aV=-1,aX=[],aU,aW=(aY||E).getElementsByTagName(aS);if(aS=="*"){var aT=-1;while((aU=aW[++aV])){if(aU.nodeName>"@"){aX[++aT]=aU}}}else{while((aU=aW[++aV])){aX[aV]=aU}}return aX},w=function(aS,aT){return aK('[name="'+aS.replace(/\\/g,"")+'"]',aT||E)},r=!Q&&ae?function(aS,aT){return z.call((aT||E).getElementsByClassName(aS.replace(/\\/g,"")),0)}:function(a0,a1){a1||(a1=E);var aW=-1,aU=aW,aV=[],aX,a2=a1.ownerDocument||a1,aS=a1.getElementsByTagName("*"),aZ=D(a2),aY=X(a2),aT=aZ?a0.toLowerCase():a0;a0=" "+aT.replace(/\\/g,"")+" ";while((aX=aS[++aW])){aT=aY?aX.getAttribute("class"):aX.className;if(aT&&aT.length&&(" "+(aZ?aT.toLowerCase():aT).replace(ac," ")+" ").indexOf(a0)>-1){aV[++aU]=aX}}return aV},T="compareDocumentPosition" in aI?function(aS,aT){return(aS.compareDocumentPosition(aT)&16)==16}:"contains" in aI?function(aS,aT){return aS!==aT&&aS.contains(aT)}:function(aS,aT){while((aT=aT.parentNode)){if(aT===aS){return true}}return false},at=function(aU){var aT=0,aS,aV=aU[ah]||(aU[ah]=++aF);if(!k[aV]){aS={};aU=aU.firstChild;while(aU){if(aU.nodeName>"@"){aS[aU[ah]||(aU[ah]=++aF)]=++aT}aU=aU.nextSibling}aS.length=aT;k[aV]=aS}return k[aV]},aG=function(aV,aT){var aU=0,aS,aW=aV[ah]||(aV[ah]=++aF);if(!u[aW]||!u[aW][aT]){aS={};aV=aV.firstChild;while(aV){if(aV.nodeName.toUpperCase()==aT){aS[aV[ah]||(aV[ah]=++aF)]=++aU}aV=aV.nextSibling}aS.length=aU;u[aW]||(u[aW]={});u[aW][aT]=aS}return u[aW]},s=i?function(aT,aS){return aT.getAttribute(aS)||""}:function(aT,aS){aS=aS.toLowerCase();if(typeof aT.form!=="undefined"){switch(aS){case"value":if(aT.defaultValue){return aT.defaultValue||""}break;case"checked":return aT.defaultChecked&&aS;case"selected":return aT.defaultSelected&&aS;default:break}}return(U[aS]?aT.getAttribute(aS,2)||"":J[aS]?aT.getAttribute(aS)?aS:"":((aT=aT.getAttributeNode(aS))&&aT.value)||"")},H=!aC?function(aT,aS){return aT.hasAttribute(aS)}:i?function(aT,aS){return !!aT.getAttribute(aS)}:function(aT,aS){aT=aT.getAttributeNode(aS);return !!(aT&&(aT.specified||aT.nodeValue))},f=function(aS){aS=aS.firstChild;while(aS){if(aS.nodeType==3||aS.nodeName>"@"){return false}aS=aS.nextSibling}return true},aP=function(aS){return H(aS,"href")&&aB[aS.nodeName]},aj=function(aS,aT){return af(aS,"",aT||false)},am=function(aS){for(var aT in aS){if(aT=="VERBOSITY"){c=!!aS[aT]}else{if(aT=="SIMPLENOT"){N=!!aS[aT]}else{if(aT=="USE_QSAPI"){ad=!!aS[aT]&&j}}}}},Z=function(aT){if(c){var aS=t.console;if(aS&&aS.log){aS.log(aT)}else{if(/exception/i.test(aT)){t.status=aT;t.defaultStatus=aT}else{t.status+=aT}}}},N=false,c=false,ad=j,aq="f&&f(c[k]);r[r.length]=c[k];continue main;",F=typeof E.createElementNS=="function"?".toUpperCase()":"",az="textContent" in aI?"e.textContent":(function(){var aT=E.createElement("div"),aS;aT.appendChild(aS=E.createElement("p"));aS.appendChild(E.createTextNode("p"));aT.style.display="none";return aT.innerText?"e.innerText":"s.stripTags(e.innerHTML)"})(),af=function(aS,aW,aY){var aV=-1,aT={},aX,aU;if((aX=aS.match(au))){while((aU=aX[++aV])){aU=aU.replace(aw,"");if(!aT[aU]){aT[aU]=true;aW+=aV>0?(aY?"e=c[k];":"e=k;"):"";aW+=R(aU,aY?aq:"f&&f(k);return true;")}}}if(aY){return new Function("c,s,r,d,h,g,f","var N,n,x=0,k=-1,e;main:while(e=c[++k]){"+aW+"}return r;")}else{return new Function("e,s,r,d,h,g,f","var N,n,x=0,k=e;"+aW+"return false;")}},R=function(aU,aS){var aX,a2,a1,aT,aV,a3,aY,a4,aW,aZ,a0;aV=0;while(aU){if((aY=aU.match(aH.universal))){true}else{if((aY=aU.match(aH.id))){aS="if("+(V?'s.getAttribute(e,"id")':'(e.submit?s.getAttribute(e,"id"):e.id)')+'=="'+aY[1]+'"){'+aS+"}"}else{if((aY=aU.match(aH.tagName))){aS="if(e.nodeName"+(V?'=="'+aY[1]+'"':F+'=="'+aY[1].toUpperCase()+'"')+"){"+aS+"}"}else{if((aY=aU.match(aH.className))){aS="if((n="+(V?'s.getAttribute(e,"class")':"e.className")+')&&(" "+'+(aa?"n.toLowerCase()":"n")+".replace("+ac+'," ")+" ").indexOf(" '+(aa?aY[1].toLowerCase():aY[1])+' ")>-1){'+aS+"}"}else{if((aY=aU.match(aH.attribute))){a3=aY[1].split(":");a3=a3.length==2?a3[1]:a3[0]+"";if(aY[2]&&aY[4]&&(a0=v[aY[2]])){ay["class"]=aa?1:0;aY[4]=aY[4].replace(/\\([0-9a-f]{2,2})/,"\\x$1");aZ=(V?L:ay)[a3.toLowerCase()];a0=a0.replace(/\%m/g,aZ?aY[4].toLowerCase():aY[4])}else{aZ=false;a0=aY[2]=="="?'n==""':"false"}a3="n=s."+(aY[2]?"get":"has")+'Attribute(e,"'+aY[1]+'")'+(aZ?".toLowerCase();":";");aS=a3+"if("+(aY[2]?a0:"n")+"){"+aS+"}"}else{if((aY=aU.match(aH.adjacent))){aV++;aS=m?"var N"+aV+"=e;if(e&&(e=e.previousElementSibling)){"+aS+"}e=N"+aV+";":"var N"+aV+'=e;while(e&&(e=e.previousSibling)){if(e.nodeName>"@"){'+aS+"break;}}e=N"+aV+";"}else{if((aY=aU.match(aH.relative))){aV++;aS=m?("var N"+aV+"=e;e=e.parentNode.firstElementChild;while(e&&e!=N"+aV+"){"+aS+"e=e.nextElementSibling;}e=N"+aV+";"):("var N"+aV+"=e;e=e.parentNode.firstChild;while(e&&e!=N"+aV+'){if(e.nodeName>"@"){'+aS+"}e=e.nextSibling;}e=N"+aV+";")}else{if((aY=aU.match(aH.children))){aV++;aS="var N"+aV+"=e;if(e&&e!==h&&e!==g&&(e=e.parentNode)){"+aS+"}e=N"+aV+";"}else{if((aY=aU.match(aH.ancestor))){aV++;aS="var N"+aV+"=e;while(e&&e!==h&&e!==g&&(e=e.parentNode)){"+aS+"}e=N"+aV+";"}else{if((aY=aU.match(aH.spseudos))&&g.Structural[aU.match(x)[0]]){switch(aY[1]){case"root":aS="if(e===h){"+aS+"}";break;case"empty":aS="if(s.isEmpty(e)){"+aS+"}";break;default:if(aY[1]&&aY[5]){if(aY[5]=="n"){aS="if(e!==h){"+aS+"}";break}else{if(aY[5]=="even"){a2=2;a1=0}else{if(aY[5]=="odd"){a2=2;a1=1}else{a1=((aT=aY[5].match(/(-?\d{1,})$/))?parseInt(aT[1],10):0);a2=((aT=aY[5].match(/(-?\d{0,})n/))?parseInt(aT[1],10):0);if(aT&&aT[1]=="-"){a2=-1}}}}a0=aY[4]?"n[N]":"n";a3=aY[2]=="last"&&a1>=0?a0+".length-("+(a1-1)+")":a1;a0=a0+"[e."+ah+"]";aZ=a1<1&&a2>1?"("+a0+"-("+a3+"))%"+a2+"==0":a2>+1?(aY[2]=="last")?"("+a0+"-("+a3+"))%"+a2+"==0":a0+">="+a3+"&&("+a0+"-("+a3+"))%"+a2+"==0":a2<-1?(aY[2]=="last")?"("+a0+"-("+a3+"))%"+a2+"==0":a0+"<="+a3+"&&("+a0+"-("+a3+"))%"+a2+"==0":a2===0?a0+"=="+a3:a2==-1?a0+"<="+a3:a0+">="+a3;aS=(aY[4]?"N=e.nodeName"+F+";":"")+"if(e!==h){n=s.getIndexesBy"+(aY[4]?"NodeName":"NodeType")+"(e.parentNode"+(aY[4]?",N":"")+");if("+aZ+"){"+aS+"}}"}else{a2=aY[2]=="first"?"previous":"next";aT=aY[2]=="only"?"previous":"next";a1=aY[2]=="first"||aY[2]=="last";a0=aY[4]?"&&n.nodeName!=e.nodeName":'&&n.nodeName<"@"';aS="if(e!==h){"+("n=e;while((n=n."+a2+"Sibling)"+a0+");if(!n){"+(a1?aS:"n=e;while((n=n."+aT+"Sibling)"+a0+");if(!n){"+aS+"}")+"}")+"}"}break}}else{if((aY=aU.match(aH.dpseudos))&&g.Others[aU.match(x)[0]]){switch(aY[1]){case"not":a3=aY[3].replace(aw,"");if(N&&(a3.indexOf(":")>0||a3.indexOf("[")>0)){aS=""}else{if("compatMode" in E){aS="N="+af(a3,"",false)+"(e,s,r,d,h,g);if(!N){"+aS+"}"}else{aS='if(!s.match(e, "'+a3.replace(/\x22/g,'\\"')+'"),r,d,h,g){'+aS+"}"}}break;case"checked":aS='if(((typeof e.form!=="undefined"&&(/radio|checkbox/i).test(e.type))||/option/i.test(e.nodeName))&&(e.checked||e.selected)){'+aS+"}";break;case"enabled":aS='if(((typeof e.form!=="undefined"&&!(/hidden/i).test(e.type))||s.isLink(e))&&!e.disabled){'+aS+"}";break;case"disabled":aS='if(((typeof e.form!=="undefined"&&!(/hidden/i).test(e.type))||s.isLink(e))&&e.disabled){'+aS+"}";break;case"lang":aZ="";if(aY[3]){aZ=aY[3].substr(0,2)+"-"}aS='do{(n=e.lang||"").toLowerCase();if((n==""&&h.lang=="'+aY[3].toLowerCase()+'")||(n&&(n=="'+aY[3].toLowerCase()+'"||n.substr(0,3)=="'+aZ.toLowerCase()+'"))){'+aS+"break;}}while((e=e.parentNode)&&e!==g);";break;case"target":aT=E.location?E.location.hash:"";if(aT){aS='if(e.id=="'+aT.slice(1)+'"){'+aS+"}"}break;case"link":aS="if(s.isLink(e)&&!e.visited){"+aS+"}";break;case"visited":aS="if(s.isLink(e)&&e.visited){"+aS+"}";break;case"active":if(V){break}aS="if(e===d.activeElement){"+aS+"}";break;case"hover":if(V){break}aS="if(e===d.hoverElement){"+aS+"}";break;case"focus":if(V){break}aS=l?"if(e===d.activeElement&&d.hasFocus()&&(e.type||e.href)){"+aS+"}":"if(e===d.activeElement&&(e.type||e.href)){"+aS+"}";break;case"contains":aS="if("+az+'.indexOf("'+aY[3]+'")>-1){'+aS+"}";break;case"selected":a3=aM?"||(n=e.parentNode)&&n.options[n.selectedIndex]===e":"";aS='if(e.nodeName=="OPTION"&&(e.selected'+a3+")){"+aS+"}";break;default:break}}else{a3=false;aW=true;for(a3 in A){if((aY=aU.match(A[a3].Expression))){a4=A[a3].Callback(aY,aS);aS=a4.source;aW=a4.status;if(aW){break}}}if(!aW){Z('DOMException: unknown pseudo selector "'+aU+'"');return""}if(!a3){Z('DOMException: unknown token in selector "'+aU+'"');return""}}}}}}}}}}}}aU=aY&&aY[aY.length-1]}return aS},ap=function(aU,aS,aY,aX){var aW,aV,aT;if(!(aU&&aU.nodeType==1&&aU.nodeName>"@")){Z("DOMException: Passed element is not a DOM ELEMENT_NODE !");return false}if(aY&&!T(aY,aU)){return false}aY||(aY=E);if(ag!=aY){ag=aY;aI=(E=aU.ownerDocument||aU).documentElement;aa=D(E);V=X(E)}if(aT=aA!=aS){if(aS&&ab.test(aS)){aA=aS;aS=aS.replace(aw,"");e=(aV=aS.match(au)).length<2}else{Z('DOMException: "'+aS+'" is not a valid CSS selector.');return false}}if(V&&!(aW=XMLMatchers[aS])){if(e){aW=new Function("e,s,r,d,h,g,f","var N,n,x=0,k=e;"+R(aS,"f&&f(k);return true;")+"return false;")}else{aW=af(aS,"",false)}XMLMatchers[aS]=aW}else{if(!(aW=n[aS])){if(e){aW=new Function("e,s,r,d,h,g,f","var N,n,x=0,k=e;"+R(aS,"f&&f(k);return true;")+"return false;")}else{aW=af(aS,"",false)}n[aS]=aW}}k={};u={};return aW(aU,q,[],E,aI,aY||E,aX)},d=function(aS,aW,aV){var aU;switch(aS.charAt(0)){case"#":var aT;if((aT=G(aS.slice(1),aW))){aV&&aV(aT);return[aT]}return[];case".":aU=r(aS.slice(1),aW);break;default:aU=ar(aS,aW);break}return aV?aJ([],aU,aV):aU},aE=function(aS,aW,aV){if(P.test(aS)){return d(aS,aW||E,aV)}if(ad&&!ai.test(aS)&&(!aW||aL[aW.nodeType])){try{var aT=(aW||E).querySelectorAll(aS)}catch(aU){}if(aT){switch(aT.length){case 0:return[];case 1:element=aT.item(0);aV&&aV(element);return[element];default:return aV?aJ([],aT,aV):ae?z.call(aT):al([],aT)}}}return aO(aS,aW,aV)},aO=function(aW,a0,a1){if(W.test(aW)){return d(aW,a0||E,a1)}var aY,aZ,aS,aX,aV,aU,aT;if(b.test(aW)){aW=!a0?"*"+aW:a0.id?"#"+a0.id+aW:aW}if(K.test(aW)){aW=aW+"*"}a0||(a0=E);if(ak!=a0){ak=a0;aI=(E=a0.ownerDocument||a0).documentElement;aa=D(E);V=X(E)}if(aT=p!=aW){if(ab.test(aW)){p=aW;aW=aW.replace(aw,"");a=(aX=aW.match(au)).length<2}else{Z('DOMException: "'+aW+'" is not a valid CSS selector.');return[]}}if(a){if(aT){aX=aW.match(aQ);aV=aX[aX.length-1];ax=aV.split(":not")[0]}if((aX=ax.match(M.ID))&&(aV=aX[1])){if((aZ=G(aV,a0))){if(ap(aZ,aW)){a1&&a1(aZ);return[aZ]}}return[]}else{if((aX=aW.match(M.ID))&&(aV=aX[1])){if((aZ=G(aV,E))){if(/[>+~]/.test(aW)){a0=aZ.parentNode}else{aW=aW.replace("#"+aV,"*");a0=aZ}}else{return[]}}}if(an){if((aX=ax.match(M.CLASS))&&(aV=aX[1])){if((aS=r(aV,a0)).length===0){return[]}}else{if((aX=ax.match(M.TAG))&&(aV=aX[1])){if((aS=ar(aV,a0)).length===0){return[]}}}}else{if((aX=ax.match(M.TAG))&&(aV=aX[1])){if((aS=a0.getElementsByTagName(aV)).length===0){return[]}}else{if((aX=ax.match(M.CLASS))&&(aV=aX[1])){if((aS=r(aV,a0)).length===0){return[]}}}}}if(!aS){aS=ar("*",a0)}if(V&&!(aU=S[aW])){if(a){aU=new Function("c,s,r,d,h,g,f","var N,n,x=0,k=-1,e;main:while(e=c[++k]){"+R(aW,aq)+"}return r;")}else{aU=af(aW,"",true)}S[aW]=aU}else{if(!(aU=C[aW])){if(a){aU=new Function("c,s,r,d,h,g,f","var N,n,x=0,k=-1,e;main:while(e=c[++k]){"+R(aW,aq)+"}return r;")}else{aU=af(aW,"",true)}C[aW]=aU}}k={};u={};return aU(aS,q,[],E,aI,a0,a1)},aK=j?aE:aO,aF=1,ah="uniqueID" in aI?"uniqueID":"CSS_ID",k={},u={},S={},C={},n={},q={getIndexesByNodeType:at,getIndexesByNodeName:aG,getAttribute:s,hasAttribute:H,byClass:r,byName:w,byTag:ar,byId:G,stripTags:aD,isEmpty:f,isLink:aP,select:aK,match:ap};t.NW||(t.NW={});NW.Dom={byId:G,byTag:ar,byName:w,byClass:r,getAttribute:s,hasAttribute:H,match:ap,select:aK,compile:aj,configure:am,registerOperator:function(aS,aT){if(!v[aS]){v[aS]=aT}},registerSelector:function(aS,aU,aT){if(!A[aS]){A[aS]={};A[aS].Expression=aU;A[aS].Callback=aT}}}})(this);var bc_sliderCurrent="related";var bc_sliderPage=1;var bc_sliderPages=3;BCJS.EXP.templateReady=function(){this.social.setLink(document.location.href)};function bc_slide(a){if(a=="left"){if(bc_sliderPage>1){bc_sliderPage--;BCJS.UI.tween("#slider_"+bc_sliderCurrent+"_inner","left",((bc_sliderPage-1)*-630),500)}}else{if(bc_sliderPage<bc_sliderPages){bc_sliderPage++;BCJS.UI.tween("#slider_"+bc_sliderCurrent+"_inner","left",((bc_sliderPage-1)*-630),500)}}if(bc_sliderPage==1){BCJS.$(".arrow_left")[0].style.display="none"}else{BCJS.$(".arrow_left")[0].style.display="block"}if(bc_sliderPage==3){BCJS.$(".arrow_right")[0].style.display="none"}else{BCJS.$(".arrow_right")[0].style.display="block"}}function bc_toggleCategory(a){BCJS.DOM.toggleClass("#category_"+a,"open")}function bc_toggleVideos(c){var b=BCJS.$(".navigation_tab");var d=BCJS.$(".videos");for(var a=0;a<b.length;a++){if(b[a].id=="nav_tab_"+c){BCJS.DOM.addClass("#"+b[a].id,"active")}else{BCJS.DOM.removeClass("#"+b[a].id,"active")}}for(var a=0;a<d.length;a++){if(d[a].id=="videos_"+c){BCJS.UI.show("#"+d[a].id)}else{BCJS.UI.hide("#"+d[a].id)}}}function bc_searchBox(b,a){if(a==1){if(b.value=="search video"){b.value=""}}else{if(b.value==""){b.value="search video"}}}function bc_paginate(a){BCJS.ajax(a,function(b){BCJS.$("#videos_container")[0].innerHTML=b;_typeface_js.initialize.done=false;_typeface_js.initialize()})}$(document).ready(function(){jQuery("body.subnav-hidden .subnav-content").bind("mouseenter mouseleave",function(b){var c=jQuery("#show-pages-subnav, #nav-bg");if(b.type==="mouseenter"){jQuery("#show-pages-subnav").show();c.stop(true).clearQueue().animate({opacity:1},{easing:"easeOutCubic",duration:250})}else{if(b.type==="mouseleave"){c.stop(true).clearQueue().animate({opacity:0},{easing:"easeOutCubic",duration:250,complete:function(){if(jQuery(this).attr("id")==="show-pages-subnav"){jQuery("#show-pages-subnav").hide()}}})}}});var a=jQuery("body").attr("id");if(a==="home"){jQuery("#home-link, #home-link > a").addClass("selected")}else{if(a==="shows-page"){jQuery("#shows-page-link > a").addClass("selected");jQuery("#all-shows-link > a").addClass("selected")}else{if(a==="videos"){jQuery("#videos-link > a").addClass("selected")}else{if(a==="full-episodes"){jQuery("#full-episodes-link > a").addClass("selected")}else{if(a==="schedule"){jQuery("#schedule-link > a").addClass("selected")}else{if(a==="where-to-watch"){jQuery("#where-to-watch-link > a").addClass("selected")}else{if(a==="all-shows"){jQuery("#all-shows-link > a").addClass("selected")}else{if(a==="air-and-space"){jQuery("#air-and-space-link > a").addClass("selected");jQuery("#shows-page-link > a").addClass("selected")}else{if(a==="science-and-nature"){jQuery("#science-and-nature-link > a").addClass("selected");jQuery("#shows-page-link > a").addClass("selected")}else{if(a==="history"){jQuery("#history-link > a").addClass("selected");jQuery("#shows-page-link > a").addClass("selected")}else{if(a==="culture"){jQuery("#culture-link > a").addClass("selected");jQuery("#shows-page-link > a").addClass("selected")}else{if(a==="kids"){jQuery("#kids-link > a").addClass("selected");jQuery("#shows-page-link > a").addClass("selected")}else{if(a==="show-page"){jQuery("#shows-page-link > a").addClass("selected")}else{if(a==="more-smithsonian"){jQuery("#more-smithsonian-link > a").addClass("selected")}else{if(a==="about-us"){jQuery("#about-us-link > a").addClass("selected")}else{if(a==="contact-us"){jQuery("#contact-us-link > a").addClass("selected")}else{if(a==="faq"){jQuery("#faq-link a").addClass("selected")}else{if(a==="press-room"){jQuery("#press-room-link > a").addClass("selected")}else{if(a==="newsletter"){jQuery("#newsletter-link > a").addClass("selected")}else{if(a==="unsubscribe"){jQuery("#unsubscribe-link > a").addClass("selected")}else{if(a==="terms-of-use"){jQuery("#terms-of-use-link > a").addClass("selected")}else{if(a==="privacy-policy"){jQuery("#privacy-policy-link > a").addClass("selected")}else{if(a==="wild-wednesdays"){jQuery("#shows-page-link > a").addClass("selected")}}}}}}}}}}}}}}}}}}}}}}}jQuery("#cardinal-nav a, #footer ul li a").bind("mouseenter mouseleave",function(b){if(jQuery(this).is(".selected")){return}else{var d,c;if(b.type==="mouseenter"){jQuery(this).addClass("animating");d=jQuery("#cardinal-nav li a, #footer ul li a").not(".selected").not(".animating").css("color");c=jQuery("#cardinal-nav li a.selected, #footer ul li a.selected").css("color");jQuery(this).stop(true).clearQueue().animate({color:c},{easing:"easeOutCubic",duration:250,complete:function(){jQuery(this).removeClass("animating")}})}else{if(b.type==="mouseleave"){jQuery(this).addClass("animating");d=jQuery("#cardinal-nav li a, #footer ul li a").not(".selected").not(".animating").css("color");c=jQuery("#cardinal-nav li a.selected, #footer ul li a.selected").css("color");jQuery(this).stop(true).clearQueue().animate({color:d},{easing:"easeOutCubic",duration:250,complete:function(){jQuery(this).removeClass("animating")}})}}}});jQuery("input#searchfield").example("search");jQuery("#channel-finder-app").flashembed({src:"http://smithsonian.channelfinder.net/swf/cf_smithsonian_nav.swf",height:"300",width:"235",bgcolor:"transparent",quality:"high",allowscriptaccess:"always",wmode:"transparent",scale:"noscale",salign:"tl"},{lc_name:"lc_update"});jQuery("#channel-finder-app").click(function(){setFlashSize_right()})});$(document).ready(function(){function b(l,k){return new Date(k,l,0).getDate()}if($("body").is("#schedule")){var h,a,d,j,f,g,c;h=new Date();a=h.getFullYear();d=h.getMonth()+1;j=h.getDate();f=b(d,a);if(d===11){g=0;c=a+1}else{g=d+1;c=a}var i=b(g,c);var e=f+i-j;$("input#datepicker").datepicker({minDate:h,maxDate:e,showOn:"both",onClose:function(l,k){$("#the-date").html(l);$("#channel-options-form").submit()},onSelect:function(){},buttonImage:"/assets/images/sn/desktop/framework/jquery-ui/datepicker.png",buttonImageOnly:true})}});jQuery(document).ready(function(){if(jQuery("body").is("#where-to-watch")){jQuery("#watch-tv-widget").flashembed({src:"http://smithsonian.channelfinder.net/swf/cf_smithsonian_960x80.swf",height:"100%",width:"100%",onFail:function(){jQuery("#watch-tv-block").remove()},bgcolor:"#1c1c1c",quality:"high",allowscriptaccess:"always",wmode:"transparent",scale:"noscale",salign:"b"},{lc_name:"lc_update"})}});function changeTab(a,c){var d=jQuery(a);d.siblings(".selected").removeClass("selected");d.toggleClass("selected");var b="#"+jQuery(a).attr("id").replace("link","content");jQuery("#show-content").children().not(b).hide();jQuery(b).show();if(c===true){return}else{window.location.hash=d.children("a").text().toLowerCase().replace(" ","-")}}jQuery(document).ready(function(){if(jQuery("#show-subnav").size()>0){if(window.location.hash!==""){var f=false;var g=window.location.hash+"-link";var e=jQuery("#show-content > div");var b;e.each(function(h){b="#"+jQuery(this).attr("id").replace("content","link");if(g===b){changeTab(jQuery(g),true);f=true}});$(".video-list ul li").each(function(){if(window.location.hash===$(this).data("hash")){$(this).prependTo(".video-list ul");if($("#show-subnav").size()>0){changeTab("#video-link",true);f=true}}});if(f===false){changeTab("#"+jQuery("#show-subnav ul li:first").attr("id"),true)}}else{if(window.location.hash===""){changeTab("#"+jQuery("#show-subnav ul li:first").attr("id"),true)}}if(jQuery("#video-content").size()>0){var d,a;if(jQuery(".video-list ul li").size()>1){d=576;a=324;jQuery("body.show-page #video-content").addClass("show-page-multiplayer")}else{d=760;a=428}var c=jQuery("body.show-page .video-list ul li").first().data("bcid");jQuery("body.show-page #video-content").omniplayer("init",{brightcove:{videoId:c,width:d,height:a},infobox:{learnMore:false}});jQuery("body.show-page #video-content .video-list ul li").first().addClass("selected")}}jQuery("#show-subnav a").click(function(h){if(jQuery(this).parent(".selected").size()>0){h.preventDefault()}else{changeTab("#"+jQuery(this).parent().attr("id"));h.preventDefault()}});jQuery("#images-content").omnislideshow()});jQuery(document).ready(function(){if(jQuery("body#videos").size()>0){jQuery("#omniplayer").omniplayer("init",{brightcove:{bgcolor:"#000",width:768,height:432},infobox:{learnMore:true}})}});jQuery(document).ready(function(){jQuery("body#full-episodes #omnicarousel").omnicarousel("init",{sharing:{facebook:true}});jQuery(".omnicarousel-big-lock").live("click",function(){$(this).parent().parent().expandoplayer("init").expandoplayer("expand",{bcid:$(this).data("bcid")})})});jQuery(document).ready(function(){if(jQuery("body#wild-wednesdays").size()>0){jQuery("#ww-player").omniplayer("init",{facebook:true,infobox:{learnMore:true}})}});jQuery(document).ready(function(){jQuery("a.new-window").live("click",function(){window.open(this.href);return false});jQuery(".ui-widget-overlay").live("click",function(){jQuery("#modal").dialog("close")});if(jQuery("#unsubscribe").size()>0){jQuery("#email-input").attr("placeholder","e-mail address")}OmniHelp.t();$("#brand-spot").omniplayer("init",{brightcove:{autoStart:true,width:"960px",height:"540px"},facebook:false,infobox:{learnMore:false}})});jQuery(document).ready(function(){if(!Modernizr.csscolumns){jQuery("#shows-columns").addClass("hack");jQuery("#shows-columns ul").addClass("last");var b=jQuery("#shows-columns ul li:lt("+Math.ceil(jQuery("#shows-columns ul li").size()/3)+")").detach();var a=jQuery("#shows-columns ul li:lt("+Math.ceil(jQuery("#shows-columns ul li").size()/2)+")").detach();a.prependTo("#shows-columns").wrapAll('<ul class="second"></ul>');b.prependTo("#shows-columns").wrapAll('<ul class="first"></ul>')}});
