;window.Modernizr=function(a,b,c){function H(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=a[b]in l;return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)l.setAttribute("type",f=a[d]),e=l.type!=="text",e&&(l.value=m,l.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&l.style.WebkitAppearance!==c?(g.appendChild(l),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(l,null).WebkitAppearance!=="textfield"&&l.offsetHeight!==0,g.removeChild(l)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=l.checkValidity&&l.checkValidity()===!1:/^color$/.test(f)?(g.appendChild(l),g.offsetWidth,e=l.value!=m,g.removeChild(l)):e=l.value!=m)),s[a[d]]=!!e;return s}("search tel url email datetime date month week time datetime-local number range color".split(" "))}function F(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+p.join(c+" ")+c).split(" ");return E(d,b)}function E(a,b){for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function D(a,b){return!!~(""+a).indexOf(b)}function C(a,b){return typeof a===b}function B(a,b){return A(o.join(a+";")+(b||""))}function A(a){k.cssText=a}var d="2.0.6",e={},f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l=b.createElement("input"),m=":)",n=Object.prototype.toString,o=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),p="Webkit Moz O ms Khtml".split(" "),q={svg:"http://www.w3.org/2000/svg"},r={},s={},t={},u=[],v=function(a,c,d,e){var f,h,j,k=b.createElement("div");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:i+(d+1),k.appendChild(j);f=["&shy;","<style>",a,"</style>"].join(""),k.id=i,k.innerHTML+=f,g.appendChild(k),h=c(k,a),k.parentNode.removeChild(k);return!!h},w=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=C(e[d],"function"),C(e[d],c)||(e[d]=c),e.removeAttribute(d))),e=null;return f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),x,y={}.hasOwnProperty,z;!C(y,c)&&!C(y.call,c)?z=function(a,b){return y.call(a,b)}:z=function(a,b){return b in a&&C(a.constructor.prototype[b],c)};var G=function(c,d){var f=c.join(""),g=d.length;v(f,function(c,d){var f=b.styleSheets[b.styleSheets.length-1],h=f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"",i=c.childNodes,j={};while(g--)j[i[g].id]=i[g];e.touch="ontouchstart"in a||j.touch.offsetTop===9,e.csstransforms3d=j.csstransforms3d.offsetLeft===9,e.generatedcontent=j.generatedcontent.offsetHeight>=1,e.fontface=/src/i.test(h)&&h.indexOf(d.split(" ")[0])===0},g,d)}(['@font-face {font-family:"font";src:url("https://")}',["@media (",o.join("touch-enabled),("),i,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",o.join("transform-3d),("),i,")","{#csstransforms3d{left:9px;position:absolute}}"].join(""),['#generatedcontent:after{content:"',m,'";visibility:hidden}'].join("")],["fontface","touch","csstransforms3d","generatedcontent"]);r.flexbox=function(){function c(a,b,c,d){a.style.cssText=o.join(b+":"+c+";")+(d||"")}function a(a,b,c,d){b+=":",a.style.cssText=(b+o.join(c+";"+b)).slice(0,-b.length)+(d||"")}var d=b.createElement("div"),e=b.createElement("div");a(d,"display","box","width:42px;padding:0;"),c(e,"box-flex","1","width:10px;"),d.appendChild(e),g.appendChild(d);var f=e.offsetWidth===42;d.removeChild(e),g.removeChild(d);return f},r.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},r.canvastext=function(){return!!e.canvas&&!!C(b.createElement("canvas").getContext("2d").fillText,"function")},r.webgl=function(){return!!a.WebGLRenderingContext},r.touch=function(){return e.touch},r.geolocation=function(){return!!navigator.geolocation},r.postmessage=function(){return!!a.postMessage},r.websqldatabase=function(){var b=!!a.openDatabase;return b},r.indexedDB=function(){for(var b=-1,c=p.length;++b<c;)if(a[p[b].toLowerCase()+"IndexedDB"])return!0;return!!a.indexedDB},r.hashchange=function(){return w("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},r.history=function(){return!!a.history&&!!history.pushState},r.draganddrop=function(){return w("dragstart")&&w("drop")},r.websockets=function(){for(var b=-1,c=p.length;++b<c;)if(a[p[b]+"WebSocket"])return!0;return"WebSocket"in a},r.rgba=function(){A("background-color:rgba(150,255,150,.5)");return D(k.backgroundColor,"rgba")},r.hsla=function(){A("background-color:hsla(120,40%,100%,.5)");return D(k.backgroundColor,"rgba")||D(k.backgroundColor,"hsla")},r.multiplebgs=function(){A("background:url(https://),url(https://),red url(https://)");return/(url\s*\(.*?){3}/.test(k.background)},r.backgroundsize=function(){return F("backgroundSize")},r.borderimage=function(){return F("borderImage")},r.borderradius=function(){return F("borderRadius")},r.boxshadow=function(){return F("boxShadow")},r.textshadow=function(){return b.createElement("div").style.textShadow===""},r.opacity=function(){B("opacity:.55");return/^0.55$/.test(k.opacity)},r.cssanimations=function(){return F("animationName")},r.csscolumns=function(){return F("columnCount")},r.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";A((a+o.join(b+a)+o.join(c+a)).slice(0,-a.length));return D(k.backgroundImage,"gradient")},r.cssreflections=function(){return F("boxReflect")},r.csstransforms=function(){return!!E(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])},r.csstransforms3d=function(){var a=!!E(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);a&&"webkitPerspective"in g.style&&(a=e.csstransforms3d);return a},r.csstransitions=function(){return F("transitionProperty")},r.fontface=function(){return e.fontface},r.generatedcontent=function(){return e.generatedcontent},r.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType){c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"');var d='video/mp4; codecs="avc1.42E01E';c.h264=a.canPlayType(d+'"')||a.canPlayType(d+', mp4a.40.2"'),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}}catch(e){}return c},r.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"'),c.mp3=a.canPlayType("audio/mpeg;"),c.wav=a.canPlayType('audio/wav; codecs="1"'),c.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}catch(d){}return c},r.localstorage=function(){try{return!!localStorage.getItem}catch(a){return!1}},r.sessionstorage=function(){try{return!!sessionStorage.getItem}catch(a){return!1}},r.webworkers=function(){return!!a.Worker},r.applicationcache=function(){return!!a.applicationCache},r.svg=function(){return!!b.createElementNS&&!!b.createElementNS(q.svg,"svg").createSVGRect},r.inlinesvg=function(){var a=b.createElement("div");a.innerHTML="<svg/>";return(a.firstChild&&a.firstChild.namespaceURI)==q.svg},r.smil=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"animate")))},r.svgclippaths=function(){return!!b.createElementNS&&/SVG/.test(n.call(b.createElementNS(q.svg,"clipPath")))};for(var I in r)z(r,I)&&(x=I.toLowerCase(),e[x]=r[I](),u.push((e[x]?"":"no-")+x));e.input||H(),A(""),j=l=null,a.attachEvent&&function(){var a=b.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1}()&&function(a,b){function s(a){var b=-1;while(++b<g)a.createElement(f[b])}a.iepp=a.iepp||{};var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=e.split("|"),g=f.length,h=new RegExp("(^|\\s)("+e+")","gi"),i=new RegExp("<(/*)("+e+")","gi"),j=/^\s*[\{\}]\s*$/,k=new RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),l=b.createDocumentFragment(),m=b.documentElement,n=m.firstChild,o=b.createElement("body"),p=b.createElement("style"),q=/print|all/,r;d.getCSS=function(a,b){if(a+""===c)return"";var e=-1,f=a.length,g,h=[];while(++e<f){g=a[e];if(g.disabled)continue;b=g.media||b,q.test(b)&&h.push(d.getCSS(g.imports,b),g.cssText),b="all"}return h.join("")},d.parseCSS=function(a){var b=[],c;while((c=k.exec(a))!=null)b.push(((j.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(h,"$1.iepp_$2")+c[4]);return b.join("\n")},d.writeHTML=function(){var a=-1;r=r||b.body;while(++a<g){var c=b.getElementsByTagName(f[a]),d=c.length,e=-1;while(++e<d)c[e].className.indexOf("iepp_")<0&&(c[e].className+=" iepp_"+f[a])}l.appendChild(r),m.appendChild(o),o.className=r.className,o.id=r.id,o.innerHTML=r.innerHTML.replace(i,"<$1font")},d._beforePrint=function(){p.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all")),d.writeHTML()},d.restoreHTML=function(){o.innerHTML="",m.removeChild(o),m.appendChild(r)},d._afterPrint=function(){d.restoreHTML(),p.styleSheet.cssText=""},s(b),s(l);d.disablePP||(n.insertBefore(p,n.firstChild),p.media="print",p.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}(a,b),e._version=d,e._prefixes=o,e._domPrefixes=p,e.hasEvent=w,e.testProp=function(a){return E([a])},e.testAllProps=F,e.testStyles=v,g.className=g.className.replace(/\bno-js\b/,"")+(f?" js "+u.join(" "):"");return e}(this,this.document),function(a,b,c){function k(a){return!a||a=="loaded"||a=="complete"}function j(){var a=1,b=-1;while(p.length-++b)if(p[b].s&&!(a=p[b].r))break;a&&g()}function i(a){var c=b.createElement("script"),d;c.src=a.s,c.onreadystatechange=c.onload=function(){!d&&k(c.readyState)&&(d=1,j(),c.onload=c.onreadystatechange=null)},m(function(){d||(d=1,j())},H.errorTimeout),a.e?c.onload():n.parentNode.insertBefore(c,n)}function h(a){var c=b.createElement("link"),d;c.href=a.s,c.rel="stylesheet",c.type="text/css";if(!a.e&&(w||r)){var e=function(a){m(function(){if(!d)try{a.sheet.cssRules.length?(d=1,j()):e(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,m(function(){j()},0)):e(a)}},0)};e(c)}else c.onload=function(){d||(d=1,m(function(){j()},0))},a.e&&c.onload();m(function(){d||(d=1,j())},H.errorTimeout),!a.e&&n.parentNode.insertBefore(c,n)}function g(){var a=p.shift();q=1,a?a.t?m(function(){a.t=="c"?h(a):i(a)},0):(a(),j()):q=0}function f(a,c,d,e,f,h){function i(){!o&&k(l.readyState)&&(r.r=o=1,!q&&j(),l.onload=l.onreadystatechange=null,m(function(){u.removeChild(l)},0))}var l=b.createElement(a),o=0,r={t:d,s:c,e:h};l.src=l.data=c,!s&&(l.style.display="none"),l.width=l.height="0",a!="object"&&(l.type=d),l.onload=l.onreadystatechange=i,a=="img"?l.onerror=i:a=="script"&&(l.onerror=function(){r.e=r.r=1,g()}),p.splice(e,0,r),u.insertBefore(l,s?null:n),m(function(){o||(u.removeChild(l),r.r=r.e=o=1,j())},H.errorTimeout)}function e(a,b,c){var d=b=="c"?z:y;q=0,b=b||"j",C(a)?f(d,a,b,this.i++,l,c):(p.splice(this.i++,0,a),p.length==1&&g());return this}function d(){var a=H;a.loader={load:e,i:0};return a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=r&&!s,u=s?l:n.parentNode,v=a.opera&&o.call(a.opera)=="[object Opera]",w="webkitAppearance"in l.style,x=w&&"async"in b.createElement("script"),y=r?"object":v||x?"img":"script",z=w?"img":y,A=Array.isArray||function(a){return o.call(a)=="[object Array]"},B=function(a){return Object(a)===a},C=function(a){return typeof a=="string"},D=function(a){return o.call(a)=="[object Function]"},E=[],F={},G,H;H=function(a){function f(a){var b=a.split("!"),c=E.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=F[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=E[h](f);return f}function e(a,b,e,g,h){var i=f(a),j=i.autoCallback;if(!i.bypass){b&&(b=D(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]);if(i.instead)return i.instead(a,b,e,g,h);e.load(i.url,i.forceCSS||!i.forceJS&&/css$/.test(i.url)?"c":c,i.noexec),(D(b)||D(j))&&e.load(function(){d(),b&&b(i.origUrl,h,g),j&&j(i.origUrl,h,g)})}}function b(a,b){function c(a){if(C(a))e(a,h,b,0,d);else if(B(a))for(i in a)a.hasOwnProperty(i)&&e(a[i],h,b,i,d)}var d=!!a.test,f=d?a.yep:a.nope,g=a.load||a.both,h=a.callback,i;c(f),c(g),a.complete&&b.load(a.complete)}var g,h,i=this.yepnope.loader;if(C(a))e(a,0,i,0);else if(A(a))for(g=0;g<a.length;g++)h=a[g],C(h)?e(h,0,i,0):A(h)?H(h):B(h)&&b(h,i);else B(a)&&b(a,i)},H.addPrefix=function(a,b){F[a]=b},H.addFilter=function(a){E.push(a)},H.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",G=function(){b.removeEventListener("DOMContentLoaded",G,0),b.readyState="complete"},0)),a.yepnope=d()}(this,this.document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bC.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bR,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bX(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bX(a,c,d,e,"*",g));return l}function bW(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bN),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bA(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bv:bw;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bg(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function W(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(x,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(H)return H.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g](h)}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/\:|^on/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},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(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,N(a.origType,a.selector),f.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?E:D):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E,this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},G=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?G:F,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?G:F)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&f(b).closest("form").length&&K("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&K("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var H,I=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var L={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||D,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=x.exec(h),k="",j&&(k=j[0],h=h.replace(x,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,L[h]?(a.push(L[h]+k),h=h+k):h=(L[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+N(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+N(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\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(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var O=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#\[\.,]*$/,S=Array.prototype.slice,T=f.expr.match.POS,U={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(W(this,a,!1),"not",a)},filter:function(a){return this.pushStack(W(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=T.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/<tbody/i,ba=/<|&#?\w+;/,bb=/<(?:script|object|embed|option|style)/i,bc=/checked\s*(?:[^=]|=\s*.checked.)/i,bd=/\/(java|ecma)script/i,be=/^\s*<!(?:\[CDATA\[|\-\-)/,bf={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,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bc.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bg(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bm)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!bb.test(a[0])&&(f.support.checkClone||!bc.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1></$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof(r=k.length)=="number")for(i=0;i<r;i++)bl(k[i]);else bl(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bd.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bn=/alpha\([^)]*\)/i,bo=/opacity=([^)]*)/,bp=/([A-Z]|^ms)/g,bq=/^-?\d+(?:px)?$/i,br=/^-?\d/,bs=/^[+\-]=/,bt=/[^+\-\.\de]+/g,bu={position:"absolute",visibility:"hidden",display:"block"},bv=["Left","Right"],bw=["Top","Bottom"],bx,by,bz;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bx(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d;if(h==="number"&&isNaN(d)||d==null)return;h==="string"&&bs.test(d)&&(d=+d.replace(bt,"")+parseFloat(f.css(a,c)),h="number"),h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bx)return bx(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bA(a,b,d);f.swap(a,bu,function(){e=bA(a,b,d)});return e}},set:function(a,b){if(!bq.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cs(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cr("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cr("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cs(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cr("show",1),slideUp:cr("hide",1),slideToggle:cr("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cn||cp(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!cl&&(co?(cl=!0,g=function(){cl&&(co(g),e.tick())},co(g)):cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||cp(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var ct=/^t(?:able|d|h)$/i,cu=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cv(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!ct.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);(function($){$.fn.tabs=function(options){var defaults={initTab:1};options=$.extend(defaults,options);function getCurrentViewClass(item){if($(item).hasClass('npr-tab-h-item-inactive')){return'npr-tab-h-item-inactive';}
if($(item).hasClass('npr-tab-h-item-active')){return'npr-tab-h-item-active';}}
function updateTabsCss(item){$(item).addClass('npr-tab-h-item-active').removeClass('npr-tab-h-item-inactive').attr('viewCls','npr-tab-h-item-active').siblings().addClass('npr-tab-h-item-inactive').removeClass('npr-tab-h-item-active').attr('viewCls','npr-tab-h-item-inactive');}
function switchPanel(sid,item){var hid=$(item).attr('headId');updateTabsCss(item);$(sid).find('.npr-tabs-d > li[dataId='+hid+']').show().siblings().hide();}
return this.each(function(){var id=$(this).attr('id');var sid='#'+id;function init(){var count=0;$(sid).find('.npr-tabs-h > li').each(function(){var incr=count++;$(this).addClass('npr-tab-h-items').addClass('npr-tab-h-item-'+incr).attr('headId',id+incr).css('cursor','pointer');}).hover(function(){var viewCls=getCurrentViewClass(this);$(this).attr('viewCls',viewCls).removeClass(viewCls).addClass('npr-tab-h-item-hover');},function(){var viewCls=$(this).attr('viewCls');$(this).removeClass('npr-tab-h-item-hover').addClass(viewCls);}).click(function(){switchPanel(sid,this);});count=0;$(sid).find('.npr-tabs-d > li').each(function(){$(this).addClass('npr-tab-d-items');$(this).attr('dataId',id+count++);});var query='.npr-tabs-h > li:eq('+options.initTab+')';var initItem=$(sid).find(query).get();switchPanel(sid,initItem);$(sid).removeClass('init-hidden');}
init();});};})(jQuery);(function($){$.checkNickname=function(clickable,nicknameInput){$(clickable).click(function(){var inputEl=$(nicknameInput).get(0);var value=inputEl.value;var params={public_user_nick_name:value};var render=function(result)
{var msg='<div id="nicknameresult" class="activeerror">';msg+='Unable to check nickname.</div>';switch(result){case true:msg='<div id="nicknameresult" class="activemsg">';msg+='This nickname is available</div>';break;case false:msg='<div id="nicknameresult" class="activeerror">';msg+='This nickname is not available</div>';break;}
var parent=$(inputEl).parent('p');var offset=$(parent).offset();var height=$(parent).height();$(document.body).append(msg);$('#nicknameresult').css('left',offset.left).css('top',offset.top+height).css('position','absolute');setTimeout(function(){var oncomplete=function(){$('#nicknameresult').remove();};$('#nicknameresult').fadeOut("slow",oncomplete);},4000);};$.ajax({url:'/templates/reg/remoteValidateUsername.php',type:'GET',data:params,dataType:'json',timeout:1500,success:render});return false;});};})(jQuery);(function($){$.fn.delay=function(options){var timer;function count(scope){if(timer!==null){clearTimeout(timer);}
var newFn=function(){options.fn.apply(scope);};timer=setTimeout(newFn,options.delay);}
return this.each(function(){var obj=$(this);obj.bind(options.event,function(event){var ignoreKey=null;if(event.keyCode){ignoreKey=event.keyCode;}else if(event.which){ignoreKey=event.which;}
if(ignoreKey&&ignoreKey==13||ignoreKey==27||ignoreKey==38||ignoreKey==40||ignoreKey>60000){event.preventDefault();}else{count(this);}});});};})(jQuery);(function($){if(!$.validator){return;}
$.validator.addMethod("rfc2822email",function(value,element){if(value===""){return true;}
var atSym=value.lastIndexOf("@");if(atSym<1){return false;}
if(atSym==value.length-1){return false;}
if(atSym>64){return false;}
if(value.length-atSym>255){return false;}
var lastDot=value.lastIndexOf(".");if(lastDot>atSym+1&&lastDot<value.length-1){return true;}
if(value.charAt(atSym+1)=='['&&value.charAt(value.length-1)==']'){return true;}
return false;},"Please enter a valid email.");$.validator.addMethod("personname",function(value,element){var regex=/^[a-z\.' -]+$/i;if(value===""){return true;}
var passes=regex.test(value);return passes;},"Please enter a valid name.");$.validator.addMethod("nickname",function(value,element){var regex=/^[a-z0-9_]+$/i;if(value===""){return true;}
var passes=regex.test(value);return passes;},"Please enter a valid nickname. Only letters, numbers, and the underscore character may be used.");$.validator.addMethod("alpha",function(value,element){var regex=/^[a-z]+$/i;if(value===""){return true;}
var passes=regex.test(value);return passes;},"Please enter a valid alpha string.");})(jQuery);(function($){$.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!==''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=$.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};$.newsletterscookie=function(){var cookie=$.cookie('nl');if(cookie===null){return null;}
return cookie.split(",");};$.stationscookie=function(){var cookie=$.cookie('st');if(cookie===null){return null;}
return cookie.split(",");};$.authcookie=function(){var obj={};var cookie=$.cookie('at');if(cookie===null){return obj;}
var items=cookie.split('&');for(var i=0;i<items.length;i++){var kv=items[i].split('=');var key=kv[0];var val=kv[1];switch(key){case'u':obj.userid=val;break;case'a':obj.username=val;break;case'e':obj.email=val;break;case'f':obj.fname=val;break;case'l':obj.lname=val;break;case'g':obj.gender=val;break;default:obj[key]=val;}}
if(obj.fname!=='undefined'){obj.fullname=obj.fname;}
if(obj.lname!=='undefined'){if(obj.fullname){obj.fullname+=' '+obj.lname;}else{obj.fullname=obj.lname;}}
return obj;};})(jQuery);(function($){$.grabStationIds=function(){var stations=$('input[name="public_user_stations[]"]').get();var sids=[];for(var i=0;i<stations.length;i++){sids.push(stations[i].value);}
var csv=sids.join(',');return csv;};})(jQuery);(function($){$.arrayContains=function(element,arr){for(var i=0;i<arr.length;i++){if(arr[i]==element){return true;}}
return false;};})(jQuery);(function($){$.fn.login=function(callback){var fn=null;if(callback){fn=function(){$(this).bind('login',callback);};}else{fn=function(){$(this).trigger('login');};}
return this.each(fn);};$.fn.logout=function(callback){var fn=null;if(callback){fn=function(){$(this).bind('logout',callback);};}else{fn=function(){$(this).trigger('logout');};}
return this.each(fn);};})(jQuery);function AddNamespace(namespacePath)
{var rootObject=window;var namespaceParts=namespacePath.split('.');for(var i=0;i<namespaceParts.length;i++)
{var currentPart=namespaceParts[i];if(!rootObject[currentPart])
{rootObject[currentPart]=new Object();}
rootObject=rootObject[currentPart];}}
AddNamespace('NPR.messaging');NPR.messaging.constants=NPR.messaging.constants||{};NPR.messaging.constants.UNKNOWN_JS_ISSUE=1002;NPR.messaging.constants.TEST_ISSUE=1003;NPR.messaging.constants.JAVASCRIPT_GENERAL_ISSUE=1004;NPR.messaging.constants.PLUCK_STORY_PAGE_COMMENTING_ERROR=2002;NPR.messaging.constants.PREVIEW_JS_ISSUE=1039;NPR.messaging.constants.SPONSORSHIP_ERROR=1038;NPR.messaging.constants.METRICS_ERROR=1043;NPR.messaging.constants.COMMUNITY_JS_ERROR=1044;NPR.messaging.constants.PLAYER_JS_ERROR=1045;NPR.messaging.constants.RSS_PODCAST_JS_ERROR=1046;NPR.messaging.constants.IPAD_ERROR=1052;NPR.messaging.constants.IPAD_GESTURES=1053;NPR.messaging.constants.IPAD_PERSISTANT_PLAYER=1054;NPR.messaging.constants.PERSONALIZE_JS_ERROR=1055;NPR.messaging.constants.REG_JS_ERROR=5002;NPR.messaging.constants.EVENT_JS_ERROR=6001;NPR.messaging.warning=function(_debugData,_function,_id){NPR.messaging.logMessage(_debugData,_function,_id,'unknown');return{};};NPR.messaging.exception=function(_e,_debugData,_function,_id){if(_e.message.match('RequestBatch is undefined')===null){_debugData+=" {Exception: ";var counter=0;for(var key in _e){try{var value=_e[key];if(!$.isFunction(value)){if(counter++!=0){_debugData+=",";}
if(value.length>255){value=value.substring(0,255)+"...";}
_debugData+="{"+key+":'"+value+"'}";}}
catch(propEx){}}
_debugData+="}";var lineNumber='unknown';if(_e.lineNumber!=null){lineNumber=_e.lineNumber;}
NPR.messaging.logMessage(_debugData,_function,_id,lineNumber);}
return{};};window.onerror=function(message,url,lineNumber){var fullMsg="Window.OnError: "+message+" ("+url+":"+lineNumber+")";NPR.messaging.logMessage(fullMsg,"Window.OnError: "+message,NPR.messaging.constants.JAVASCRIPT_GENERAL_ISSUE,lineNumber);window.onerror=function(){return true;};return true;};NPR.messaging.logMessage=function(_msg,_function,_id,_line){try{var language='';if($.browser.msie){language=navigator.browserLanguage;}else{language=window.navigator.language;}
if(language.substring(0,2).toLowerCase()!='en')
{return;}
var message={};message.msg=_msg;message.func=_function;message.id=_id;message.line=_line;message.agent=navigator.userAgent
message.url=window.location.href;var debugData='';debugData=message.msg+' | f: '+message.func+' | '+message.agent+" | in URL: "+message.url;if(document.URL.indexOf("_DEBUG=1")>0){$("#error").append('<div class="javascript">WWWERR '+debugData+'</div>');}
message=JSON.stringify(message);$.post("/templates/common/jslog.php",{type:'Warning',message:message});}catch(e){}};AddNamespace("NPR.community");NPR.community.urlencode=function(str){var clean="";if(str.length>0){clean=str.replace(/</g,"&lt;");clean=clean.replace(/>/g,"&gt;");clean=clean.replace(/&lt;a(.*?)&gt;/g,"<a$1>");clean=clean.replace(/&lt;\/a&gt;/g,"</a>");clean=clean.replace(/\u2019/g,"&#8217;");clean=clean.replace(/\u201C/g,"&#8220;");clean=clean.replace(/\u201D/g,'"');clean=clean.replace(/([^"']|^)(https?:\/\/[\S]+)(\b|$)/gi,'$1<a href="$2">$2</a>');clean=clean.replace(/\r\n/g,"<br />");clean=clean.replace(/\n/g,"<br />");}
return clean;};NPR.community.urldecode=function(str){return str;};AddNamespace("NPR.community");AddNamespace("NPR.onready.community");NPR.onready.community.story=function(){NPR.community.setCommentSortOrderFromCookie();NPR.community.loadStoryInformation();$('textarea[maxlength]').keyup(function(){if($(this).val().length>1249){alert('Your comment has exceeded the maximum number of characters. Please keep your comment to fewer than 1250 characters.');}
if($(this).val().length>$(this).attr('maxlength')){$(this).val($(this).val().substr(0,$(this).attr('maxlength')));}
if($(this).val().length>$(this).attr('maxlength')-100){$(this).parent().find('.charsRemaining').html('You have '+($(this).attr('maxlength')-$(this).val().length)+' characters remaining.');}
else
{$(this).parent().find('.charsRemaining').html('');}});var fbcAttemptsLeft=100;var fbcLoadable=function(){if(navigator.userAgent.indexOf('MSIE')===-1){return true;}
try{if(document.namespaces){return true;}else{return false;}}catch(e){return false;}};NPR.community.attemptLoadOfFBC=function(){try{if(fbcLoadable()){if(window.slFB){slFB.init(function(){$("#facebook_connect_wrapper").show();});}}else{--fbcAttemptsLeft;if(fbcAttemptsLeft){setTimeout("NPR.community.attemptLoadOfFBC()",50);}}}catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'NPR.community.attemptLoadOfFBC',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.attemptLoadOfFBC();NPR.community.overlayIframeId='overlayIframe';};NPR.community.BLOG_SHUTDOWN_TIMEFRAME=14;NPR.community.MAX_COMMENTS_PER_PLUCK_REQUEST=10;NPR.community.MAX_FEATURED_COMMENTS_ON_PAGE=3;NPR.community.MAX_ABUSE_REPORTS_BEFORE_BLOCKING=100000;NPR.community.sortOrder='TimeStampDescending';NPR.community.viewerIsStaffOrEditor=false;NPR.community.setCommentVariables=function(){try{if(NPR.community.pluckPageNum!==undefined&&NPR.community.pluckCommentKey!==undefined){return;}
var pageMultiplier=NPR.community.numCommentToDisplay/NPR.community.MAX_COMMENTS_PER_PLUCK_REQUEST;NPR.community.pluckPageNum=(NPR.community.commentPageNum*pageMultiplier)-1;NPR.community.pluckCommentKey='';var urlArray=document.URL.split('?');if(urlArray.length>1){var formArray=urlArray[1].split('&');for(var i=0;i<formArray.length;i++){var paramArray=formArray[i].split('=');if(paramArray.length>1&&paramArray[0]==='pPageNum'){NPR.community.pluckPageNum=parseInt(paramArray[1]);}else if(paramArray.length>1&&paramArray[0]==='pCommentKey'){NPR.community.pluckCommentKey=paramArray[1];}}}}catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'NPR.community.setCommentVariables',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
NPR.community.loadStoryInformation=function(requestBatch){try{if(requestBatch===null||requestBatch===undefined){requestBatch=new RequestBatch();}
if(NPR.community.storyId!==undefined){var articleKey=new ArticleKey(String(NPR.community.storyId));requestBatch.AddToRequest(articleKey);NPR.community.setCommentVariables();NPR.community.currentPageInPluck=NPR.community.pluckPageNum;var commentPage=new CommentPage(articleKey,NPR.community.MAX_COMMENTS_PER_PLUCK_REQUEST,NPR.community.pluckPageNum,NPR.community.sortOrder);requestBatch.AddToRequest(commentPage);NPR.community.totalCommentsDisplayed=0;NPR.community.totalCommentsProcessed=0;NPR.community.useThisPluckPage=false;NPR.community.displayComments=true;if(NPR.community.pluckCommentKey!=''){NPR.community.displayComments=false;}
var viewerUserKey=new UserKey();requestBatch.AddToRequest(viewerUserKey);requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderStoryComments);}
else
{NPR.messaging.warning('NPR.community.storyId not set, not loading story information','loadStoryInformation',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}catch(e){NPR.community.displayCommentError();NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'NPR.community.loadStoryInformation',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderRecommendationLinksStory=function(articleRecommendedByUser,numRecommendations,id){try{var recommendationCntHref=document.getElementById(id);if(recommendationCntHref!==null&&recommendationCntHref!==undefined){if(articleRecommendedByUser===true||articleRecommendedByUser==="True"){recommendationCntHref.innerHTML='<a class="recommended"><span class="txt">Recommended</span> ('+numRecommendations+')</a>';}
else{recommendationCntHref.innerHTML='<a href="javascript: NPR.community.recommendStoryStoryPage();" class="recommend" title="Recommend this story"><span class="txt">Recommend</span> (<span id="recommendationCnt">'+numRecommendations+'</span>)</a>';}}}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'renderRecommendationLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.displayCommentError=function(){try{var commentBlock=document.getElementById('comments');commentBlock.innerHTML="<h3>Community features and content, including commenting and recommending stories, are unavailable at this time. We apologize for the inconvenience. Please try this page later. <a href=\"http://help.npr.org/npr/consumer/kbdetail.asp?kbid=343\">Using Internet Explorer? Read our special advisory</a>.</h3>";}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'displayCommentError',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.handleUserInfo=function(user){try{NPR.community.viewerId=user.UserKey.Key;NPR.community.viewerIsStaffOrEditor=(user.UserTier==='Staff'||user.UserTier==='Editor');NPR.community.modifyDisplayBasedOnUserStatus(user);}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'handleUserInfo',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderStoryComments=function(responseBatch){try{if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined){NPR.messaging.warning('No response batch','renderStoryComments',NPR.messaging.constants.COMMUNITY_JS_ERROR);NPR.community.displayCommentError();return;}else if(responseBatch.Messages[0].Message==="Down"){NPR.community.displayCommentError();return;}
var article=responseBatch.Responses[0].Article;if(article!==null&&article!==undefined){NPR.community.handleUserInfo(responseBatch.Responses[2].User);NPR.community.pageArticle=article;var commentPage=responseBatch.Responses[1].CommentPage;NPR.community.pageArticle.commentPageNumberOfComments=commentPage.NumberOfComments;document.getElementById('comments').innerHTML='';NPR.community.renderCommentBatch(responseBatch,1);}else{NPR.community.renderRecommendationLinksStory(false,0,'recommendationCntHref');NPR.community.renderRecommendationLinksStory(false,0,'recommendationCntHref2');var user=responseBatch.Responses[1].User;NPR.community.modifyDisplayBasedOnUserStatus(user);$(".sortcomments").hide();$(".commentsarchive").hide();}
if(NPR.community.pluckMTDate!==undefined){var currentDate=new Date();var blogPostDate=((NPR.community.pluckMTDate-100)+NPR.community.BLOG_SHUTDOWN_TIMEFRAME).toString();var storyCloseDate=new Date(blogPostDate.slice(0,4),blogPostDate.slice(4,6),blogPostDate.slice(6,8));if(storyCloseDate<currentDate){$(".commentbox").html('<p class="closeddisc"><strong>Discussions for this story are now closed.</strong> Please see the <a href="/communityfaq">Community FAQ</a> for more information.</p>');}}}
catch(e){NPR.messaging.exception(e,'responseBatch.Responses.length = '+responseBatch.Responses.length+' and first message from pluck = '+responseBatch.Messages[0].Message,'renderStoryComments',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderStoryBasedOnArticle=function(){try{var article=NPR.community.pageArticle;var commentCntTop=document.getElementById('commentCnt');if(commentCntTop!==null&&commentCntTop!==undefined){commentCntTop.innerHTML="("+article.commentPageNumberOfComments+")";}
var commentCntBottom=document.getElementById('commentCnt2');if(commentCntBottom!==null&&commentCntBottom!==undefined){commentCntBottom.innerHTML="("+article.commentPageNumberOfComments+")";}
var commentCntArchiveLink=document.getElementById('commentCntArchive');if(commentCntArchiveLink!==null&&commentCntArchiveLink!==undefined){commentCntArchiveLink.innerHTML="("+article.commentPageNumberOfComments+")";}
if(article.commentPageNumberOfComments<=NPR.community.numCommentToDisplay){$(".commentsarchive").hide();}
else{$(".commentsarchive").show();}
var articleRecommendedByUser=article.Recommendations.CurrentUserHasRecommended;var numRecommendations=article.Recommendations.NumberOfRecommendations;NPR.community.renderRecommendationLinksStory(articleRecommendedByUser,numRecommendations,'recommendationCntHref');NPR.community.renderRecommendationLinksStory(articleRecommendedByUser,numRecommendations,'recommendationCntHref2');NPR.community.renderPageNavigation(article.commentPageNumberOfComments);}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'renderStoryBasedOnArticle',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.requestFeaturedComments=function(incStoryId){try{var storyId;if(incStoryId)
{storyId=incStoryId;}
else
{storyId=NPR.community.storyId;}
var requestBatch2=new RequestBatch();var numPerPage=NPR.community.MAX_FEATURED_COMMENTS_ON_PAGE;var onPage=1;requestBatch2.AddToRequest(new CustomCollectionPage(new CustomCollectionKey('Featured'+String(storyId)),numPerPage,onPage,"PositionAscending"));requestBatch2.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderFeatureCommentsLinks);}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'requestFeaturedComments',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderCommentBatch=function(responseBatch,responseIndex){try{if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined){NPR.messaging.warning('No response batch','renderCommentBatch',NPR.messaging.constants.COMMUNITY_JS_ERROR);return;}
if(!responseIndex){responseIndex=0;}
if(responseBatch.Responses.length>0&&responseBatch.Responses[responseIndex]!==undefined){var commentBlock=document.getElementById('comments');var commentBlockHtml="";var commentPage=responseBatch.Responses[responseIndex].CommentPage;for(var i=0;i<commentPage.Comments.length;i++){if(NPR.community.displayComments==true){if(NPR.community.totalCommentsDisplayed<NPR.community.numCommentToDisplay){commentBlockHtml+=NPR.community.getCommentHtml(commentPage.Comments[i]);NPR.community.totalCommentsProcessed++;}else if(!NPR.community.useThisPluckPage){NPR.community.useThisPluckPage=true;}}else if(NPR.community.pluckCommentKey==commentPage.Comments[i].CommentKey.Key){NPR.community.displayComments=true;}}
commentBlock.innerHTML+=commentBlockHtml;if(commentPage.Comments.length>0&&NPR.community.totalCommentsProcessed<commentPage.NumberOfComments&&NPR.community.totalCommentsDisplayed<NPR.community.numCommentToDisplay){var requestBatch=new RequestBatch();var numCommentsToRequest=String(NPR.community.MAX_COMMENTS_PER_PLUCK_REQUEST);var articleKey=new ArticleKey(String(NPR.community.storyId));var commentPage=new CommentPage(articleKey,String(NPR.community.numCommentToDisplay),++NPR.community.currentPageInPluck,NPR.community.sortOrder);requestBatch.AddToRequest(commentPage);requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderCommentBatch);}else{NPR.community.renderStoryBasedOnArticle();if(NPR.community.commentPageNum===1){NPR.community.requestFeaturedComments();}
if(NPR.community.totalCommentsDisplayed<2){$(".sortcomments").hide();}
else{$(".sortcomments").show();}}}}
catch(e){NPR.messaging.exception(e,'responseBatch.Responses.length = '+responseBatch.Responses.length+' and first message from pluck = '+responseBatch.Messages[0].Message,'renderRestOfTheComments',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderFeatureCommentsLinks=function(responseBatch){try{if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined){NPR.messaging.warning('No response batch','renderFeatureCommentsLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);return;}
var anyFeaturedComments=false;var insetSpan=$('#featuredCommentsMain'+NPR.community.storyId);insetSpan.empty();insetSpan.removeClass("container");if(responseBatch.Responses.length>0){var featuredCollection=responseBatch.Responses[0].CustomCollectionPage;if(featuredCollection!==null&&featuredCollection!==undefined&&featuredCollection.Items.length>0){insetSpan.show();insetSpan.addClass("container");insetSpan.append('<h3 class="conheader">Comments from the NPR Community</h3>');if(insetSpan!==null&&insetSpan!==undefined){for(var f=0;f<featuredCollection.Items.length;f++){var customItem=featuredCollection.Items[f];if(customItem.CustomItem===undefined){continue;}
var comment=YAHOO.lang.JSON.parse(customItem.CustomItem.Content);NPR.community.renderSingleFeaturedCommentsLink(comment.CommentKey.Key);NPR.community.addFeaturedCommentToInset(comment,insetSpan);anyFeaturedComments=true;}
insetSpan.append('<p class="join"><a href="#commentBlock">Join the Discussion &raquo;</a></p>');insetSpan.append('<div class="spacer">&nbsp;</div>');}}}
else{var requestBatch=new RequestBatch();var createCollection=new AddCustomCollectionAction(new CustomCollectionKey('Featured'+String(NPR.community.storyId)),'Featured Comments for '+String(NPR.community.storyId));requestBatch.AddToRequest(createCollection);requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.addFeatureCollectionComplete);}}
catch(e){NPR.messaging.exception(e,'responseBatch.Responses.length = '+responseBatch.Responses.length+' and first message from pluck = '+responseBatch.Messages[0].Message,'renderFeatureCommentsLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.modifyDisplayBasedOnUserStatus=function(user){try{if(user===null||user.UserTier==='Anonymous'){$("#commentBoxNotLoggedIn").show();$("#commentBoxNeedMoreInfo").hide();$("#commentTextBox").attr("disabled","true");$("#commentTextBox").text(' ');$("#commentTextBox ~ input").attr("disabled","true");$("#commentTextBox").attr("title","Log in to leave a comment.");$("#facebook_connect_checkbox").attr("disabled","true");}
else{if(user.ExtendedProfile.validForCommunity==='true'){$("#commentBoxNotLoggedIn").hide();$("#commentBoxNeedMoreInfo").hide();$("#commentTextBox").removeAttr("disabled");$("#commentTextBox").text('');$("#commentTextBox ~ input").removeAttr("disabled");$("#commentTextBox").removeAttr("title");$("#facebook_connect_checkbox").removeAttr("disabled");}
else{$("#commentBoxNotLoggedIn").hide();$("#commentBoxNeedMoreInfo").show();$("#commentTextBox").attr("disabled","true");$("#commentTextBox").text(' ');$("#commentTextBox ~ input").attr("disabled","true");$("#facebook_connect_checkbox").attr("disabled","true");}}}
catch(e){NPR.messaging.exception(e,'no extra info','modifyDisplayBasedOnUserStatus',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.addFeaturedCommentToInset=function(comment,inset){try{var newCommentHtml='<div class="bucketwrap featuredcomment" id="featuredComments'+comment.CommentedOnKey+'">';newCommentHtml+='<div class="buckettop">&nbsp;</div>';newCommentHtml+='<div class="bucket">';newCommentHtml+='<p>'+NPR.community.urldecode(comment.CommentBody)+'</p>';newCommentHtml+='</div>';newCommentHtml+='<div class="bucketbottom">&nbsp;</div>';newCommentHtml+='<p class="byline">';newCommentHtml+='<a href="/templates/community/persona.php?uid='+comment.Author.UserKey.Key+'">';newCommentHtml+='&ndash;'+comment.Author.DisplayName+'</a></p>';if(NPR.community.viewerIsStaffOrEditor===true){newCommentHtml+='<div class="featinset">Staff: <a href="javascript: NPR.community.unfeatureCommentPartOne(\''+comment.CommentKey.Key+'\');">Unfeature</a>';newCommentHtml+='</div>';}
newCommentHtml+='</div>';inset.append(newCommentHtml);}
catch(e){NPR.messaging.exception(e,'failed on '+comment.CommentKey.Key,'addFeaturedCommentToInset',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.addFeatureCollectionComplete=function(responseBatch){try{var message=responseBatch.Messages[0];if(message.Message!=='ok'){NPR.messaging.warning('Failed to create feature collection for story ID: '+NPR.community.storyId+' with message '+message.Message,'NPR.community.addFeatureCollectionComplete',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
catch(e){NPR.messaging.exception(e,'Failed to create feature collection for story ID: '+NPR.community.storyId,'NPR.community.addFeatureCollectionComplete',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.getCommentHtml=function(comment){var html='<-- Error occurred getting Comment HTML -->';try{if(comment.Author.IsBlocked==='True'&&comment.Author.UserKey.Key!==NPR.community.viewerId){return'';}
var mainDivClass='commentblock';var displayAbuseLink=true;var displayStaffTitle=false;if(NPR.community.totalCommentsDisplayed===0){mainDivClass=mainDivClass+' topcomment';}
NPR.community.totalCommentsDisplayed++;NPR.community.lastDisplayedCommentKey=comment.CommentKey.Key;if(comment.Author.UserTier==='Staff'|comment.Author.UserTier==='Editor'){mainDivClass=mainDivClass+' staff';displayAbuseLink=false;displayStaffTitle=true;}
html='<div class="'+mainDivClass+'">';html+='<a href="/templates/community/persona.php?uid='+comment.Author.UserKey.Key+'">';html+='<img  width="60" height="60" class="thumb60" alt="'+comment.Author.DisplayName+'" src="'+comment.Author.AvatarPhotoUrl+'"/></a>';html+='<div class="commentinfo">';if(displayStaffTitle===true){var userExtendedProfile=comment.Author.ExtendedProfile;var title=userExtendedProfile.StaffTitle;if(title===undefined){title='';}
html+='<p class="stafftitle"><span class="staffhdr">NPR STAFF:</span> '+title+'</p> ';}
html+='<p class="commentbyline">';html+='<a href="/templates/community/persona.php?uid='+comment.Author.UserKey.Key+'">';html+=' '+comment.Author.DisplayName+'</a> wrote: </p>';if(NPR.community.MAX_ABUSE_REPORTS_BEFORE_BLOCKING<=comment.AbuseReportCount){html+='<p class="commentbody">This comment has been reported as inappropriate by the NPR community.</p>';}
else{html+='<p class="commentbody">'+NPR.community.urldecode(comment.CommentBody)+'</p>';}
var datePosted=new Date(comment.PostedAtTime);html+='<p class="commentdate">'+datePosted.toLocaleString()+'</p>';html+='<div class="commentlinks">'+"";if(comment.CurrentUserHasRecommended!=="True"){html+='<p><span id="recommendStart'+comment.CommentKey.Key+'"><a href="javascript: NPR.community.recommendComment(\''+comment.CommentKey.Key+'\');" class="rec">Recommend (<span id="recommend'+comment.CommentKey.Key+'">'+comment.NumberOfRecommendations+'</span>)</a></span></p>';}
else{html+='<p><a class="reced">Recommended ('+comment.NumberOfRecommendations+')</a></p>';}
if(NPR.community.viewerIsStaffOrEditor===true){html+='<div class="feat">Staff: <a id="featureSubmit'+comment.CommentKey.Key+'" href="javascript: NPR.community.renderFeatureCommentIframe(\''+comment.CommentKey.Key+'\', \''+comment.CommentBody.replace(/'/g,"\\'").replace(/"/g,'&quot;')+'\');">Feature this comment</a>';html+='<span id="featuredCommentGoesHere'+comment.CommentKey.Key+'"></span>';html+='</div>';}
html+='</div><!-- CommentLinks -->';if(displayAbuseLink===true){html+='<div class="report">';if(comment.CurrentUserHasReportedAbuse!=="True"){html+='<p><a id="abuseLink'+comment.CommentKey.Key+'" href="javascript: NPR.community.renderAbuseIframe(\''+comment.CommentKey.Key+'\')">Report abuse</a></p>';html+='<span id="abuseGoesHere'+comment.CommentKey.Key+'"></span>';}
else{html+='<p>Abuse Reported</p>';}
html+='</div><!-- report -->';}
html+='</div><!-- commentinfo -->';html+="<div class='spacer'>&nbsp;</div>";html+='</div>';}
catch(e){NPR.messaging.exception(e,'Failed on comment '+NPR.community.totalCommentsDisplayed-1+' for NPR.community.storyId = '+NPR.community.storyId,'NPR.community.getCommentHtml',NPR.messaging.constants.COMMUNITY_JS_ERROR);}
return html;};NPR.community.setCommentSortOrderFromCookie=function(){var sortOrderCookieValue=get_cookie('sco');if(sortOrderCookieValue!==null)
{NPR.community.sortOrder=sortOrderCookieValue;}
$('#sortCommentsSelector').val(NPR.community.sortOrder);}
NPR.community.sortComments=function(selectObject){try{if(NPR.community.sortOrder!==selectObject.value){NPR.community.sortOrder=selectObject.value;setCookie('sco',1,NPR.community.sortOrder)
NPR.community.loadStoryInformation();}}
catch(e){NPR.messaging.exception(e,'Failed to resort comments on NPR.community.storyId = '+NPR.community.storyId,'NPR.community.sortComments',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.recommendStoryStoryPage=function(){try{var requestBatch=new RequestBatch();var articleKey=new ArticleKey(String(NPR.community.storyId));var recommendArticleAction=new RecommendAction(articleKey);requestBatch.AddToRequest(recommendArticleAction);var cntOfRecommendations=1;var recommendationsOnArticle=document.getElementById('recommendationCnt');if(recommendationsOnArticle!==null&&recommendationsOnArticle!==undefined){var currentRecommendations=parseInt(recommendationsOnArticle.innerHTML);if(!isNaN(currentRecommendations)){cntOfRecommendations+=currentRecommendations;}}
NPR.community.renderRecommendationLinksStory(true,cntOfRecommendations,'recommendationCntHref');NPR.community.renderRecommendationLinksStory(true,cntOfRecommendations,'recommendationCntHref2');requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.recommendationOfStoryCompleteStoryPage);}
catch(e){NPR.messaging.exception(e,'Failed recommending NPR.community.storyId = '+NPR.community.storyId,'NPR.community.recommendStoryStoryPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.recommendationOfStoryCompleteStoryPage=function(responseBatch){try{var message=responseBatch.Messages[0];if(message.Message!=='ok'){NPR.messaging.warning('Failed to recommend story page ID: '+NPR.community.storyId+' with message '+message.Message,'NPR.community.recommendationOfStoryCompleteStoryPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
catch(e){NPR.messaging.exception(e,'Failed to recommend story page ID: '+NPR.community.storyId,'NPR.community.recommendationOfStoryCompleteStoryPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.recommendComment=function(commentKeyAsString){try{var requestBatch=new RequestBatch();var commentKey=new CommentKey(commentKeyAsString);var recommentCommentAction=new RecommendAction(commentKey);requestBatch.AddToRequest(recommentCommentAction);var cntOfRecommendations=1;var recommendationOnComment=document.getElementById('recommend'+commentKeyAsString);if(recommendationOnComment!==null&&recommendationOnComment!==undefined){cntOfRecommendations+=parseInt(recommendationOnComment.innerHTML);}
var recommendStart=document.getElementById('recommendStart'+commentKeyAsString);if(recommendStart!==null&&recommendStart!==undefined){recommendStart.innerHTML='<a class="reced">Recommended ('+cntOfRecommendations+')</a>';}
var recommendationEndHyperlinkOnComment=document.getElementById('recommendEndHyperlink'+commentKeyAsString);if(recommendationEndHyperlinkOnComment!==null&&recommendationEndHyperlinkOnComment!==undefined){recommendationEndHyperlinkOnComment.innerHTML="";}
requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.recommendationOfCommentComplete);}
catch(e){NPR.messaging.exception(e,'Failed on comment '+commentKeyAsString+' for NPR.community.storyId = '+NPR.community.storyId,'NPR.community.recommendComment',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.recommendationOfCommentComplete=function(responseBatch){try{var message=responseBatch.Messages[0];if(message.Message!=='ok'){NPR.messaging.warning('Failed to recommend comment on story page ID: '+NPR.community.storyId+' with message '+message.Message,'NPR.community.recommendationOfCommentComplete',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
catch(e){NPR.messaging.exception(e,'Failed to recommend comment on story page ID: '+NPR.community.storyId,'NPR.community.recommendationOfCommentComplete',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.unfeatureCommentPartOne=function(commentKeyAsString){try{var requestBatch=new RequestBatch();var removeFromStoryFeatured=new RemoveFromCollectionAction(new CustomCollectionKey('Featured'+String(NPR.community.storyId)),new CustomItemKey(commentKeyAsString));requestBatch.AddToRequest(removeFromStoryFeatured);var removeFromAllFeatured=new RemoveFromCollectionAction(new CustomCollectionKey('Featured'),new CustomItemKey(commentKeyAsString));requestBatch.AddToRequest(removeFromAllFeatured);NPR.community.loadStoryInformation(requestBatch);}
catch(e){NPR.messaging.exception(e,'Failed to UNfeature comment '+commentKeyAsString+' on story page ID: '+NPR.community.storyId,'NPR.community.unfeatureCommentPartOne',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.enterComment=function(storyId,storyTitle,commentTextBox){try{var articleKey=new ArticleKey(String(storyId));var pageUrl=document.location.href;var encodedCommentBody=NPR.community.urlencode(commentTextBox.value);commentTextBox.value='';var encodedStoryTitle=NPR.community.urlencode(storyTitle);var requestBatch=new RequestBatch();var commentAction=new CommentAction(articleKey,pageUrl,encodedStoryTitle,encodedCommentBody);requestBatch.AddToRequest(commentAction);NPR.metrics.pageEvent('comment_added');var pageWithTracking;if(pageUrl.indexOf('sc=')<0&&pageUrl.indexOf('?')<0){pageWithTracking=pageUrl+'?sc=fbc';}else if(pageUrl.indexOf('sc=')<0){pageWithTracking=pageUrl+'&sc=fbc';}else{pageWithTracking=pageUrl.replace(/sc=/,"oldsc=")+'&sc=fbc';}
NPR.community.fbInfo={title:storyTitle,url:pageWithTracking,excerpt:'',previewImages:[],commentBody:encodedCommentBody};requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.commentEnteredRefreshPage);}catch(e){NPR.messaging.exception(e,' storyId = '+storyId+' pageUrl = '+pageUrl+' commentBody = '+encodedCommentBody,'NPR.community.enterComment',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.commentEnteredRefreshPage=function(responseBatch){try{var message=responseBatch.Messages[0].Message;if(message!=='ok'){if(message.indexOf('CommentBody cannot be blank')>0){$(".commentingerrors").html('<h4>Comment is blank</h4><p>The comment you submitted seems to be blank. Please enter a comment, then click submit.</p>').show();}
else if(message.indexOf('rapid posting of multiple comments')>0){$(".commentingerrors").html('<h4>Too many submissions</h4><p>Our system cannot accept several comments submitted at short intervals.  Please wait a minute or two and try to resubmit.</p>').show();}
else if(message.indexOf('included words not permitted')>0){$(".commentingerrors").html('<h4>Inappropriate language</h4><p>Your comment may contain inappropriate language. The comment has not been accepted. Please edit your comment and re-submit.</p>').show();}
else{NPR.messaging.warning('Failed entering a comment for story ID: '+NPR.community.storyId+' with message '+message,'NPR.community.commentEnteredRefreshPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);$(".commentingerrors").html('<h4>SystemProblem</h4><p>Our system was unable to record your comment.  We apologize for the inconvenience.  Please try again later.</p>').show();}}
else{$("#commentSubmissionFeedback").html('<p class="highlight">Thank you for your comment. Please note we review some user comments to ensure they meet the <a href="/discussionrules">NPR.org Community rules</a>. For more information about this process, <a href="/moderation">please read our explanation on how moderation works</a>.</p>').fadeIn(1000);if(NPR.community.commentPageNum>1){location.href=NPR.community.getBaseUrl()+'?storyId='+NPR.community.storyId+'&pageNum=1';}
else{NPR.community.sortOrder='TimeStampDescending';$('#sortCommentsSelector').val(NPR.community.sortOrder);NPR.community.loadStoryInformation();}
if(window.slFB&&document.getElementById('facebook_connect_checkbox').checked&&slFB.connectEnabled()){var fbInfo=NPR.community.fbInfo;slFB.submitArticleComment(fbInfo.title,fbInfo.url,fbInfo.excerpt,fbInfo.commentBody,fbInfo.previewImages,function(){if(navigator.userAgent.indexOf('MSIE 6')!==-1){window.location.reload();}
return false;});}}}
catch(e){NPR.messaging.exception(e,'Failed to enter comment on story page ID: '+NPR.community.storyId,'NPR.community.commentEnteredRefreshPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);$(".commentingerrors").html('<h4>SystemProblem</h4><p>Our system was unable to record your comment.  We apologize for the inconvenience.  Please try again later.</p>').show();}};NPR.community.getBaseUrl=function(){try{var strHref=window.location.href;if(strHref.indexOf("?")>-1){return strHref.slice(0,strHref.indexOf("?"));}
return strHref;}catch(e){NPR.messaging.exception(e,'no debug data','NPR.community.getBaseUrl',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderPageNavigation=function(totalNumberOfComments){try{var totalPages=NPR.community.commentPageNum;if(Math.ceil(totalNumberOfComments/NPR.community.MAX_COMMENTS_PER_PLUCK_REQUEST)>NPR.community.currentPageInPluck){totalPages++;}else if(NPR.community.useThisPluckPage===true){totalPages++;}
if(totalPages===1){return;}
var firstPageInNav=(Math.floor((NPR.community.commentPageNum-1)/10)*10)+1;var lastPageInNav=Math.min((totalPages+1),(firstPageInNav+10));var html="";if(NPR.community.commentPageNum>1){var previousPage=NPR.community.commentPageNum-1;if(previousPage==1){var previousPluckPage=1;}else{var pluckPagesPerNPRPage=NPR.community.numCommentToDisplay/NPR.community.MAX_COMMENTS_PER_PLUCK_REQUEST;var previousPluckPage=NPR.community.pluckPageNum-pluckPagesPerNPRPage;if(NPR.community.useThisPluckPage===true){previousPluckPage--;}}
html+='<li><a href="'+NPR.community.getBaseUrl()+'?storyId='+NPR.community.storyId+'&pageNum='+previousPage+'&pPageNum='+previousPluckPage+'">Previous</a></li>';}
for(var p=firstPageInNav;p<lastPageInNav;p++){if(p===NPR.community.commentPageNum){html+='<li><strong>'+p+'</strong></li>';}
else{html+='<li><a href="'+NPR.community.getBaseUrl()+'?storyId='+NPR.community.storyId+'&pageNum='+p+'">'+p+'</a></li>';}}
if(NPR.community.commentPageNum<totalPages){var nextPage=NPR.community.commentPageNum+1;var nextPluckPage=NPR.community.currentPageInPluck;var commentKey='';if(NPR.community.useThisPluckPage){commentKey='&pCommentKey='+NPR.community.lastDisplayedCommentKey;}else{nextPluckPage++;}
var queryString='?storyId='+NPR.community.storyId+'&pageNum='+nextPage+'&pPageNum='+nextPluckPage+commentKey;var commentArchive=$('.commentsarchive a');if(commentArchive.length){var commentArchiveUrl=$('.commentsarchive a').attr('href');if(commentArchiveUrl.indexOf('javascript:')==0){var insertionPoint=commentArchiveUrl.lastIndexOf("')");commentArchiveUrl=commentArchiveUrl.slice(0,insertionPoint)+queryString+commentArchiveUrl.slice(insertionPoint);$('.commentsarchive a').attr('href',commentArchiveUrl);}else{$('.commentsarchive a').attr('href',commentArchiveUrl.split('?')[0]+queryString);}}
html+='<li><a href="'+NPR.community.getBaseUrl()+queryString+'">Next</a></li>';}
$("ul[name='pagenav']").html(html);return;}catch(e){NPR.messaging.exception(e,' storyId = '+NPR.community.storyId+' totalNumberOfComments = '+totalNumberOfComments,'NPR.community.renderPageNavigation',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderOverlay=function(src,width,height){try{if(!((navigator.userAgent).indexOf("MSIE")>0)){$("#zoom_overlay").show();}
var iframe=document.getElementById(NPR.community.overlayIframeId);if(!(iframe===null||iframe===undefined)){iframe.parentNode.removeChild(iframe);}
var guid=new Date().getTime();NPR.community.overlayIframeId='overlayIframe'+guid;src=src+'guid='+guid+'&original_story_page='+encodeURIComponent(location.href);var style="width:"+((width===undefined)?'750px':width+'px; ')+((height===undefined)?'':'height:'+height+'px; ')
$("#overlaysGoHere").html('<iframe id="'+NPR.community.overlayIframeId+'" src="'+src+'" style="'+style+'" marginheight="0" marginwidth="0" class="iframe jrOverlay" name="regOverlayIframe" frameborder="0" scrolling="no"></iframe>');}catch(e){NPR.messaging.exception(e,' storyId = '+NPR.community.storyId,'NPR.community.renderOverlay',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderAbuseIframe=function(commentKey){try{var iframe=document.getElementById(NPR.community.overlayIframeId);if(!(iframe===null||iframe===undefined)){iframe.parentNode.removeChild(iframe);}
var thespan=document.getElementById('abuseGoesHere'+commentKey);var guid=new Date().getTime();NPR.community.overlayIframeId='overlayIframe'+guid;thespan.innerHTML='<iframe id="'+NPR.community.overlayIframeId+'" src="/templates/community/reportabuse.php?cmt='+commentKey+'"  scrolling="no" frameborder="0" marginheight="0" marginwidth="0" class="ireportabuse"></iframe>';}catch(e){NPR.messaging.exception(e,' storyId = '+NPR.community.storyId+' abuseIframe for Comment = '+commentKey.Key,'NPR.community.renderAbuseIframe',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderFeatureCommentIframe=function(commentKey,commentText){try{var iframe=document.getElementById(NPR.community.overlayIframeId);if(!(iframe===null||iframe===undefined)){iframe.parentNode.removeChild(iframe);}
var thespan=document.getElementById('featuredCommentGoesHere'+commentKey);if(!(thespan===null||thespan===undefined)){var guid=new Date().getTime();NPR.community.overlayIframeId='overlayIframe'+guid;thespan.innerHTML='<iframe id="'+NPR.community.overlayIframeId+'" src="/templates/community/featureComment.php?cmt='+commentKey+'&cmtText='+escape(commentText)+'&storyid='+NPR.community.storyId+'&storytitle='+NPR.community.storyTitle+'"  scrolling="no" frameborder="0" marginheight="0" marginwidth="0" class="ireportfeatured"></iframe>';}}catch(e){NPR.messaging.exception(e,' storyId = '+NPR.community.storyId+' featureIframe for Comment = '+commentKey.Key,'NPR.community.renderFeatureCommentIframe',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.redrawAccountBanner=function(){try{var pElm=document.getElementById('loginPElm');NPR.community.drawAccountBanner(pElm);}catch(e){NPR.messaging.exception(e,' in story.js','NPR.community.redrawAccountBanner',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};$(document).ready(NPR.onready.community.story);NPR.community.renderSingleFeaturedCommentsLink=function(commentKey){try{var idForLink='featureSubmit'+commentKey;var a_href_link=document.getElementById(idForLink);if(a_href_link!==null&&a_href_link!==undefined){a_href_link.innerHTML="Unfeature this comment";$(a_href_link).attr('href','javascript: NPR.community.unfeatureCommentPartOne(\''+commentKey+'\');');}}
catch(e){NPR.messaging.exception(e,'failed on '+commentKey,'renderSingleFeaturedCommentsLink',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};AddNamespace("NPR.community");NPR.community.LOGIN='/templates/reg/commentingLoginBucket.php?';NPR.community.LOGIN_TO_LINK_TO_JAN_RAIN='/templates/reg/commentingLoginToLinkToJanRainBucket.php?';NPR.community.ADDITIONAL_INFO='/templates/reg/commentingAdditionalInfoBucket.php?';NPR.community.NOT_VERIFIED='/templates/reg/commentingNotVerifiedBucket.php?';NPR.community.REGISTER='/templates/reg/commentingRegisterBucket.php?';NPR.community.REGISTER_LINK_TO_JAN_RAIN='/templates/reg/commentingRegisterJanRainBucket.php?';NPR.community.VERIFY_ONE='/templates/reg/commentingVerifyOneBucket.php?';NPR.community.VERIFY_TWO='/templates/reg/commentingVerifyTwoBucket.php?';NPR.community.VERIFY_TWO='/templates/community/commentingVerifyTwoBucket.php?';NPR.community.ERROR='/templates/reg/commentingErrorBucket.php?';NPR.community.VERIFY_TWO='/templates/reg/commentingVerifyTwoBucket.php?';NPR.community.FEATURE_COMMENTS='/templates/community/featureComment.php?';NPR.community.ABUSE='/templates/community/reportabuse.php?';NPR.community.CLOSE='/templates/reg/commentingCloseBucket.php?';NPR.community.getClassForOverlay=function(overlayName){if(overlayName.indexOf(NPR.community.LOGIN)>-1){return'login';}
if(overlayName.indexOf(NPR.community.LOGIN_TO_LINK_TO_JAN_RAIN)>-1){return'login';}
if(overlayName.indexOf(NPR.community.ADDITIONAL_INFO)>-1){return'addinfo';}
if(overlayName.indexOf(NPR.community.NOT_VERIFIED)>-1){return'notverified';}
if(overlayName.indexOf(NPR.community.REGISTER)>-1){return'register';}
if(overlayName.indexOf(NPR.community.REGISTER_LINK_TO_JAN_RAIN)>-1){return'register';}
if(overlayName.indexOf(NPR.community.VERIFY_ONE)>-1){return'verify1';}
if(overlayName.indexOf(NPR.community.VERIFY_TWO)>-1){return'verify2';}
return'login';};NPR.community.getHeightForOverlay=function(overlayName){if(overlayName.indexOf(NPR.community.LOGIN)>-1){return'380px';}
if(overlayName.indexOf(NPR.community.LOGIN_TO_LINK_TO_JAN_RAIN)>-1){return'380px';}
if(overlayName.indexOf(NPR.community.ADDITIONAL_INFO)>-1){return'340px';}
if(overlayName.indexOf(NPR.community.NOT_VERIFIED)>-1){return'200px';}
if(overlayName.indexOf(NPR.community.REGISTER)>-1){return'250px';}
if(overlayName.indexOf(NPR.community.REGISTER_LINK_TO_JAN_RAIN)>-1){return'350px';}
if(overlayName.indexOf(NPR.community.VERIFY_ONE)>-1){return'170px';}
if(overlayName.indexOf(NPR.community.VERIFY_TWO)>-1){return'170px';}
if(overlayName.indexOf(NPR.community.FEATURE_COMMENTS)>-1){return'190px';}
if(overlayName.indexOf(NPR.community.ABUSE)>-1){return'190px';}
return'190px';};NPR.community.getWidthForOverlay=function(overlayName){if(overlayName.indexOf(NPR.community.REGISTER)>-1){return'360px';}
if(overlayName.indexOf(NPR.community.VERIFY_ONE)>-1){return'400px';}
if(overlayName.indexOf(NPR.community.VERIFY_TWO)>-1){return'400px';}
if(overlayName.indexOf(NPR.community.ABUSE)>-1){return'200px';}
if(overlayName.indexOf(NPR.community.FEATURE_COMMENTS)>-1){return'300px';}
return'750px';};AddNamespace("NPR.community");NPR.community.userCookie='at';NPR.community.drawAccountBanner=function(pElm){try{var userCookie=get_cookie('at');if(pElm==null)
{return;}
var standardLinks='<a href="/stations/donate/?ps=sttn" class="donate hdrdonate">Donate</a><span class="hdrdonate"> | </span><a href="http://shop.npr.org/?utm_source=topnav&amp;utm_medium=topnav&amp;utm_campaign=topnav" class="shop">NPR Shop</a> | <a href="/templates/community/" class="comm">NPR Social Media</a> | ';pElm.innerHTML=standardLinks+'<a href="/templates/reg/login.php">Login</a> | <a href="/templates/reg">Register</a>';if(userCookie!==null){var uid=null;var displayName=null;var cookieParts=userCookie.split("&");for(var index=0;index<cookieParts.length;index++)
{var argParts=cookieParts[index].split("=");if(argParts.length===2){var key=argParts[0];var value=argParts[1];if(key==="u"){uid=value;}
if(key==="a"){displayName=value.replace(/\+/g,' ');}
if(key==="tier"){displayName='<a href="/templates/community/persona.php?uid='+uid+'">'+displayName+'</a>';}}}
if(uid!==null&&displayName!==null){pElm.innerHTML=standardLinks+'<span class="user"><span id="hdrgreeting">Welcome, </span>'+displayName+'</span> | <a href="/templates/reg/manage-account.php?tab=your_account&uid='+uid+'" id="hdraccount">Your Account</a> | <a href="/templates/reg/logout.php?returnUrl='+document.location+'">Logout</a>';}}}catch(e){NPR.messaging.exception(e,'no extra debug','NPR.community.drawAccountBanner',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};AddNamespace("NPR.onready.community");NPR.onready.community.accountbanner=function(){try{var pElm=document.getElementById('loginPElm');if(pElm!==undefined){NPR.community.drawAccountBanner(pElm);}}catch(e){NPR.messaging.exception(e,' in accountbanner.js ','document.ready',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};$(document).ready(NPR.onready.community.accountbanner);var sUserAgent=navigator.userAgent.toLowerCase();var isOp=(sUserAgent.indexOf('opera')!=-1)?true:false;if(typeof NPR==='undefined'){document.write("<script type='text/javascript' src='/templates/javascript/player/player.js'></script>\n");}
function popUp(oAnchor,sProps,sWindow){var sUrl='';if(typeof(oAnchor)=='string')sUrl=oAnchor;else{if(oAnchor.getAttribute)sUrl=oAnchor.getAttribute('href');if(sUrl=='')sUrl=oAnchor.href;}
if(sUrl=='')return true;var sWindowName=sWindow?sWindow:'nprPopup';if(!sProps)sProps=null;if(sUrl)var oPopup=window.open(sUrl,sWindowName,sProps);if(oPopup&&!isOp)oPopup.focus();return(oPopup)?false:true;}
function setUserVars()
{if(navigator.appName.indexOf('Internet Explorer')!=-1)
{window.isIE=true;}
window.userPlatform=navigator.platform;if((window.userPlatform.indexOf("mac")!=-1)||(window.userPlatform.indexOf("MAC")!=-1)||(window.userPlatform.indexOf("Mac")!=-1))
{window.userPlatform="mac";}}
setUserVars();function adCompatible(mediaPreference)
{if(navigator.userAgent.indexOf("Windows\ NT\ 5.1")!=-1)
{return true;}
else
{return true;}
return true;}
function doAd(newURL,mediaPreference)
{if(adCompatible(mediaPreference))
{location.href=newURL+"&getUnderwriting=1";}
else
{location.href=newURL;}}
function toNumericMonth(month)
{var monthArray=new Object();monthArray["jan"]=0;monthArray["feb"]=1;monthArray["mar"]=2;monthArray["apr"]=3;monthArray["may"]=4;monthArray["jun"]=5;monthArray["jul"]=6;monthArray["aug"]=7;monthArray["sep"]=8;monthArray["oct"]=9;monthArray["nov"]=10;monthArray["dec"]=11;return monthArray[month.toLowerCase()];}
function toFullMonth(num)
{var monthArray=new Object();monthArray[0]="January";monthArray[1]="February";monthArray[2]="March";monthArray[3]="April";monthArray[4]="May";monthArray[5]="June";monthArray[6]="July";monthArray[7]="August";monthArray[8]="September";monthArray[9]="October";monthArray[10]="November";monthArray[11]="December";return monthArray[num];}
function parseZero(valToUse)
{if(valToUse.length>1&&valToUse.charCodeAt(0)==0)
{valToUse=valToUse.substr(1,valToUse.length);}
return valToUse;}
function setDate(dateToUse)
{dateArray=dateToUse.split("-");dateToReturn=new Date();dateToReturn.setDate(parseZero(dateArray[0]));dateToReturn.setMonth(toNumericMonth(dateArray[1].toLowerCase()));dateToReturn.setYear(dateArray[2]);dateToReturn=Date.parse(dateToReturn);return dateToReturn;}
function compareDates(date1,date2)
{date1=setDate(date1);date2=setDate(date2);returnVal="after";if(date2<date1)
{returnVal="before";}
return returnVal;}
function checkMediaPrefs(mediaPrefVals,valToTest)
{match=false;for(i=0;i<mediaPrefVals.length;i++)
{if(mediaPrefVals[i]==valToTest)
{match=true;}}
return match;}
function trimString(sInString)
{sInString=sInString.replace(/^\s+/g,"");return sInString.replace(/\s+$/g,"");}
function makePrefArray(mediaPreference)
{numRetArray=0;retArray=new Array();temp=new Array();temp=mediaPreference.split(",");for(i=0;i<temp.length;i++)
{if(trimString(temp[i])!="")
{retArray[numRetArray]=temp[i].toUpperCase();numRetArray++;}}
return retArray;}
function goNewURL(newURL,saURL,winTarget)
{if(saURL=="")
{saURL=newURL;}
if(window.sa_onclick)
{sa_onclick(saURL);}
if(winTarget=="new")
{window.open(newURL,'',"width=540,height=360,toolbar=none,location=none,menubar=none,status=none,resizable=yes");}
else
{location.href=newURL;}}
function getMedia(prgCode,showDate,segNum,mediaAvailable)
{nprcookie=get_cookie('sauid');mediaAvailArray=makePrefArray(mediaAvailable);if((segNum=="all")||(segNum=="ALL"))
{segNum="";}
if(checkMediaPrefs(mediaAvailArray,"RAM")&&(!checkMediaPrefs(mediaAvailArray,"RM"))&&(!checkMediaPrefs(mediaAvailArray,"WM")))
{goNewURL("http://www.npr.org/templates/dmg/dmg.php?prgCode="+prgCode+"&showDate="+showDate+"&segNum="+segNum+"&mediaPref=RAM","","");}
else if(checkMediaPrefs(mediaAvailArray,"RM")&&!checkMediaPrefs(mediaAvailArray,"WM"))
{goNewURL("http://www.npr.org/templates/dmg/dmg.php?prgCode="+prgCode+"&showDate="+showDate+"&segNum="+segNum+"&mediaPref=RM","","");}
else if(checkMediaPrefs(mediaAvailArray,"WM")&&!checkMediaPrefs(mediaAvailArray,"RM"))
{if(nprcookie!=null&&nprcookie!="undefined")
{goNewURL("http://www.npr.org/templates/dmg/dmg_wmref.php?prgCode="+prgCode+"&showDate="+showDate+"&segNum="+segNum+"&mediaPref=WM&sauid="+nprcookie,"","");}
else
{goNewURL("http://www.npr.org/templates/dmg/dmg_wmref.php?prgCode="+prgCode+"&showDate="+showDate+"&segNum="+segNum+"&mediaPref=WM","","");}}
else if((checkMediaPrefs(mediaAvailArray,"WM")&&!checkMediaPrefs(mediaAvailArray,"RM"))||((checkMediaPrefs(mediaAvailArray,"RAM")||checkMediaPrefs(mediaAvailArray,"RM"))&&checkMediaPrefs(mediaAvailArray,"WM")))
{if(nprcookie!=null&&nprcookie!="undefined")
{goNewURL("http://www.npr.org/templates/dmg/dmg_wmref.php?prgCode="+prgCode+"&showDate="+showDate+"&segNum="+segNum+"&mediaPref=WM&sauid="+nprcookie,"","");}
else
{goNewURL("http://www.npr.org/templates/dmg/dmg_wmref.php?prgCode="+prgCode+"&showDate="+showDate+"&segNum="+segNum+"&mediaPref=WM","","");}}}
function getStaticMedia(URL,mediaPreference)
{sauid=checkCookie("sauid");referrer=document.referrer;mediaPrefVals=makePrefArray(mediaPreference);if(URL.indexOf("http://")!=-1)
{goNewURL(URL,'','');}
else if(URL.toUpperCase()=="NEWSCAST")
{getNewsCast();}
else if(URL.toUpperCase()=="PROGRAMSTREAM")
{getProgramStream();}
else if((checkMediaPrefs(mediaPrefVals,"WM"))&&(checkMediaPrefs(mediaPrefVals,"RM")))
{mediaPreference=checkCookie("NPRMediaPref");if((mediaPreference==false)||(mediaPreference=="RM"))
{goNewURL("http://www.npr.org/templates/dmg/dmg.php?mediaURL="+URL+"&mediaType=RM",URL,"");}
else if(mediaPreference=="WM")
{goNewURL("http://www.npr.org/templates/dmg/dmg.php?mediaURL="+URL+"&mediaType=WM",URL,"");}}
else if((checkMediaPrefs(mediaPrefVals,"RM"))&&(!checkMediaPrefs(mediaPrefVals,"WM")))
{goNewURL("http://www.npr.org/templates/dmg/dmg.php?mediaURL="+URL+"&mediaType=RM",URL,"");}
else if((checkMediaPrefs(mediaPrefVals,"WM"))&&(!checkMediaPrefs(mediaPrefVals,"RM")))
{goNewURL("http://www.npr.org/templates/dmg/dmg.php?mediaURL="+URL+"&mediaType=WM",URL,"");}}
function getTopicMedia(topicId,topicName,mediaPreference)
{topicName=escape(topicName);nprcookie=get_cookie('sauid');mediaPrefVals=makePrefArray(mediaPreference);if(checkCookie("NPRMediaPref"))
{mediaPreference=checkCookie("NPRMediaPref");newURL="http://www.npr.org/templates/dmg/dmg.php?topicId="+topicId+"&topicName="+topicName+"&mediaPref="+mediaPreference;if(mediaPreference=="WM")
{if(nprcookie!=null&&nprcookie!="undefined")
{newURL="http://www.npr.org/templates/dmg/dmg_wmref.php?topicId="+topicId+"&topicName="+topicName+"&mediaPref="+mediaPreference+"&sauid="+nprcookie;}
else
{newURL="http://www.npr.org/templates/dmg/dmg_wmref.php?topicId="+topicId+"&topicName="+topicName+"&mediaPref="+mediaPreference;}}
if(window.sa_onclick)
{sa_onclick(newURL);}
doAd(newURL,mediaPreference);}
else
{goNewURL("http://www.npr.org/templates/dmg/audioplayer.php?topicId="+topicId+"&topicName="+topicName,"","new");}}
function getLatestShow(prgCode)
{if(checkCookie("NPRMediaPref"))
{mediaPreference=checkCookie("NPRMediaPref");goNewURL("http://www.npr.org/templates/dmg/dmg.php?getLatestShow=true&prgCode="+prgCode+"&NPRMediaPref="+mediaPreference,"","new");}
else
{goNewURL("http://www.npr.org/templates/dmg/audioplayer.php?getLatestShow=true&prgCode="+prgCode,"","new");}}
function getFeaturedAudio(newURL)
{nprcookie=get_cookie('sauid');if(checkCookie("NPRMediaPref"))
{mediaPreference=checkCookie("NPRMediaPref");if(mediaPreference=="WM")
{newURL+="&NPRMediaPref=WM";newURL=replaceString(newURL,'dmg.php','dmg_wmref.php');if(nprcookie!=null&&nprcookie!="undefined")
{newURL+="&sauid="+nprcookie;}}
else
{newURL+="&NPRMediaPref=RM";}
if(window.sa_onclick)
{sa_onclick(newURL);}
doAd(newURL,mediaPreference);}
else
{goNewURL("http://www.npr.org/templates/dmg/audioplayer.php?newURL="+newURL,'','new');}}
function getProgramStream()
{NPR.Player.openPlayer(0,0,null,NPR.Player.Action.LIVE_STREAM,NPR.Player.Type.PROGRAM_STREAM,NPR.Player.Mode.FROM_FILE);}
function getNewsCast()
{NPR.Player.openPlayer(0,0,null,NPR.Player.Action.PLAY_NOW,NPR.Player.Type.NEWSCAST,NPR.Player.Mode.FROM_FILE);}
function getMusicButton(songId,musicAudioFileName,prgCode)
{if(checkCookie("NPRMediaPref"))
{mediaPreference=checkCookie("NPRMediaPref");goNewURL("http://www.npr.org/templates/dmg/dmg.php?getMusicButton=true&songId="+songId+"&musicAudioFileName="+musicAudioFileName+"&prgCode="+prgCode+"&NPRMediaPref="+mediaPreference,"","");}
else
{goNewURL("http://www.npr.org/templates/dmg/audioplayer.php?getMusicButton=true&songId="+songId+"&musicAudioFileName="+musicAudioFileName+"&prgCode="+prgCode,'',"new");}}
function setCookie(cookieToSet,daysToExpiration,cookieValue)
{var exp=new Date();exp.setTime(exp.getTime()+(1000*60*60*24*daysToExpiration));document.cookie=cookieToSet+"="+cookieValue+"; path=/; domain=npr.org; expires="+exp.toGMTString();}
function checkCookie(cookieToCheck)
{var allcookies=document.cookie;var pos=allcookies.indexOf(cookieToCheck+"=");if(pos!=-1)
{var start=pos+cookieToCheck.length+1;var end=allcookies.indexOf(";",start);if(end==-1)
{end=allcookies.length;}
return allcookies.substring(start,end);}
else
{return false;}}
function killCookie(cookieToKill)
{setCookie(cookieToKill,-1,'');if(cookieToKill=='station'){$('.ddstn').slideUp(250,function(){$('#header .headercontent').removeClass("dd_active");});$('#globalstationlocation').html("\n");$('#station_info').html("\n");}}
function replaceString(repStr,stringToFind,stringToRep)
{sFind=0;newStr=repStr;while(sFind!=-1)
{sFind=newStr.indexOf(stringToFind);if(sFind!=-1)
{startString=newStr.substring(0,sFind);endString=newStr.substring(sFind+stringToFind.length,newStr.length);newStr=startString+stringToRep+endString;}}
return newStr;}
function set_cookie(name,value,expires,path,domain,secure)
{var today=new Date();today.setTime(today.getTime());if(expires)
{expires=expires*1000*60*60*24;}
var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires_date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function get_cookie(name)
{var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length)))
{return null;}
if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end));}
function get_source_code()
{var url=document.URL;var sc=url.match(/(&|\?)sc=(\w+)/);var sourceCode=url.match(/(&|\?)sourceCode=(\w+)/);var ft=url.match(/(&|\?)ft=(\w+)/);if(ft!=null&&ft[2]!=null)
{return'/sc='+ft[2];}
else if(sc!=null&&sc[2]!=null)
{return'/sc='+sc[2];}
else if(sourceCode!=null&&sourceCode[2]!=null)
{return'/sc='+sourceCode[2];}
else
{return'';}}
function get_target()
{if(window.target!=null)
{return window.target;}
else
{return'';}}
function getFinalPrefs(mediaPrefVals,valToTest)
{retPref="";for(i=0;i<mediaPrefVals.length;i++)
{if(valToTest=="WM"&&(mediaPrefVals[i]=="WM"||mediaPrefVals[i]=="WAX"||mediaPrefVals[i]=="ASX"))
{retPref=mediaPrefVals[i];}
else if(valToTest=="RM"&&(mediaPrefVals[i]=="RM"||mediaPrefVals[i]=="RAM"))
{retPref=mediaPrefVals[i];}}
return retPref;}
function choosePlayer(mediaAvailableVals,playerAvailableVals)
{countAvaPlayer=0;avaMatchPlayer="";for(i=0;i<mediaAvailableVals.length;i++)
{for(j=0;j<playerAvailableVals.length;j++)
{if(mediaAvailableVals[i]==playerAvailableVals[j])
{if(countAvaPlayer==0)
{avaMatchPlayer=mediaAvailableVals[i];countAvaPlayer++;}
else
{avaMatchPlayer+=","+mediaAvailableVals[i];}}}}
return avaMatchPlayer;}
function forceChoosePlayer(mediaAvailableVals)
{finalChoose="";for(i=0;i<mediaAvailableVals.length;i++)
{if(mediaAvailableVals[i]=="WM"||mediaAvailableVals[i]=="ASX"||mediaAvailableVals[i]=="WAX")
{finalChoose=mediaAvailableVals[i];break;}}
if(finalChoose=="")
{for(i=0;i<mediaAvailableVals.length;i++)
{if(mediaAvailableVals[i]=="RM"||mediaAvailableVals[i]=="RAM")
{finalChoose=mediaAvailableVals[i];break;}}}
if(window.userPlatform=="mac"&&finalChoose!="RM"&&finalChoose!="RAM")
{for(i=0;i<mediaAvailableVals.length;i++)
{if(mediaAvailableVals[i]=="RM"||mediaAvailableVals[i]=="RAM")
{finalChoose=mediaAvailableVals[i];break;}}}
return finalChoose;}
function getRandom(num)
{myRandomNum='';for(myRandomNum='';myRandomNum.length<num;myRandomNum+=Math.round(Math.random()*7));return myRandomNum;}
function getGUID()
{myGuid=get_cookie('GUID');if(myGuid==null||myGuid=="undefined")
{for(myGuid='';myGuid.length<32;myGuid+=Math.round(Math.random()*7));}
return myGuid;}
function popNewWindow(newURL)
{if(newURL)
{popUp(newURL,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=340,height=492','player');}}
function addExtraMediaType(availableMediaTypeArray)
{returnArray=new Array();mCounter=0;for(i=0;i<availableMediaTypeArray.length;i++)
{returnArray[mCounter]=availableMediaTypeArray[i];mCounter++;if(availableMediaTypeArray[i]=="RM")
{returnArray[mCounter]="RAM";mCounter++;returnArray[mCounter]="RA";mCounter++;returnArray[mCounter]="RMM";mCounter++;}
else if(availableMediaTypeArray[i]=="WM")
{returnArray[mCounter]="ASX";mCounter++;returnArray[mCounter]="WAX";mCounter++;}}
return returnArray;}
function checkFileMediaType(mediaAvailArray)
{for(i=0;i<mediaAvailArray.length;i++)
{if(mediaAvailArray[i]=='WM'||mediaAvailArray[i]=='ASX'||mediaAvailArray[i]=='WMA'||mediaAvailArray[i]=='RM'||mediaAvailArray[i]=='RAM'||mediaAvailArray[i]=='RA'||mediaAvailArray[i]=='RMM')
{return true;}}
return false;}
function launchPlayer(baseId,baseType,baseDate,accParameters,mediaAvailable)
{errorCode=0;pageId=getRandom(8);random10=getRandom(10);myGuid=getGUID();wAudioMediaType='WM,RM';mediaAvailArray=makePrefArray(mediaAvailable);if(!checkFileMediaType(mediaAvailArray))
{errorCode=1;}
audioMediaTypeArray=makePrefArray(wAudioMediaType);audioMediaTypeArray=addExtraMediaType(audioMediaTypeArray);if(audioMediaTypeArray.length==0)
{errorCode=2;}
avaMatchPlayer=choosePlayer(mediaAvailArray,audioMediaTypeArray);avaMatchPlayerArray=makePrefArray(avaMatchPlayer);userMediaPreference=checkCookie("NPRMediaPref");newURL="http://www.npr.org/templates/dmg/popup.php?id="+baseId+"&type="+baseType+"&date="+baseDate+"&au=1&pid="+pageId+"&random="+random10+"&guid="+myGuid+"&uaType="+wAudioMediaType+"&aaType="+mediaAvailable+"&upf="+window.userPlatform+accParameters;if(baseType==10)
{newURL="http://www.npr.org/templates/dmg/popup.php?id=100&type=10&staticUrl="+baseDate+"&au=1&pid="+pageId+"&random="+random10+"&guid="+myGuid+"&uaType="+wAudioMediaType+"&aaType="+mediaAvailable+"&upf="+window.userPlatform+accParameters;}
if(userMediaPreference)
{finalSelMediaType=getFinalPrefs(avaMatchPlayerArray,userMediaPreference);if(finalSelMediaType!="")
{newURL+="&mtype="+finalSelMediaType;popNewWindow(newURL);}
else
{if(avaMatchPlayerArray.length>0)
{forceChooseMedia=forceChoosePlayer(avaMatchPlayerArray);if(forceChooseMedia!="")
{newURL+="&mtype="+forceChooseMedia;popNewWindow(newURL);return;}}
if(avaMatchPlayerArray.length==0&&errorCode==0)
{errorCode=3;}
newURL+="&errorCode="+errorCode;popNewWindow(newURL);}}
else
{forceChooseMedia=forceChoosePlayer(avaMatchPlayerArray);if(forceChooseMedia!="")
{newURL+="&mtype="+forceChooseMedia;popNewWindow(newURL);}
else
{newURL+="&errorCode="+errorCode;popNewWindow(newURL);}}}
function launchPlayerError(baseId,baseType,baseDate,accParameters,mediaAvailable,error_id)
{pageId=getRandom(8);random10=getRandom(10);myGuid=getGUID();errorCode=0;mediaAvailable="";switch(error_id)
{case 1:mediaAvailable="DC";break;case 2:window.audioMediaType="";mediaAvailable="RM,WM";break;case 3:window.audioMediaType="WM";mediaAvailable="RM";break;case 4:window.audioMediaType="RM";mediaAvailable="WM";break;case 5:window.audioMediaType="RM,WM";mediaAvailable="WM";break;case 6:window.audioMediaType="RM,WM";mediaAvailable="RM";break;case 7:window.audioMediaType="WM";mediaAvailable="WM,RM";break;case 8:window.audioMediaType="RM";mediaAvailable="WM,RM";break;}
wAudioMediaType=window.audioMediaType;mediaAvailArray=makePrefArray(mediaAvailable);if(!checkFileMediaType(mediaAvailArray))
{errorCode=1;}
audioMediaTypeArray=makePrefArray(wAudioMediaType);audioMediaTypeArray=addExtraMediaType(audioMediaTypeArray);if(audioMediaTypeArray.length==0)
{errorCode=2;}
avaMatchPlayer=choosePlayer(mediaAvailArray,audioMediaTypeArray);avaMatchPlayerArray=makePrefArray(avaMatchPlayer);userMediaPreference=checkCookie("NPRMediaPref");newURL="http://www.npr.org/templates/dmg/popup.php?id="+baseId+"&type="+baseType+"&date="+baseDate+"&au=1&pid="+pageId+"&random="+random10+"&guid="+myGuid+"&uaType="+wAudioMediaType+"&aaType="+mediaAvailable+accParameters;if(userMediaPreference)
{finalSelMediaType=getFinalPrefs(avaMatchPlayerArray,userMediaPreference);if(finalSelMediaType!="")
{newURL+="&mtype="+finalSelMediaType;popNewWindow(newURL);}
else
{if(avaMatchPlayerArray.length>0)
{forceChooseMedia=forceChoosePlayer(avaMatchPlayerArray);if(forceChooseMedia!="")
{newURL+="&mtype="+forceChooseMedia;popNewWindow(newURL);return;}}
if(avaMatchPlayerArray.length==0&&errorCode==0)
{errorCode=3;}
newURL+="&errorCode="+errorCode;popNewWindow(newURL);}}
else
{forceChooseMedia=forceChoosePlayer(avaMatchPlayerArray);if(forceChooseMedia!="")
{newURL+="&mtype="+forceChooseMedia;popNewWindow(newURL);}
else
{newURL+="&errorCode="+errorCode;popNewWindow(newURL);}}}
function getURLParamArray()
{var aQueryString=new Array();var strHref=window.location.href;if(strHref.indexOf("?")>-1)
{var strQueryString=strHref.substr(strHref.indexOf("?"));var aQueryString=strQueryString.split("&");}
return aQueryString;}
function getURLParam(strParamName)
{var strReturn="";var strHref=window.location.href;if(strHref.indexOf("?")>-1)
{var strQueryString=strHref.substr(strHref.indexOf("?"));var aQueryString=strQueryString.split("&");for(var iParam=0;iParam<aQueryString.length;iParam++)
{if(aQueryString[iParam].indexOf(strParamName+"=")>-1)
{var aParam=aQueryString[iParam].split("=");strReturn=aParam[1];break;}}}
return strReturn;}
try
{document.execCommand("BackgroundImageCache",false,true);}
catch(err){}
function collectionToArray(col){a=new Array();for(i=0;i<col.length;i++)
a[a.length]=col[i];return a;}
function concatCollections(col1,col2)
{if(col1==null)
{return collectionToArray(col2);}
else if(col2==null)
{return collectionToArray(col1);}
else
{return collectionToArray(col1).concat(collectionToArray(col2));}}
function toggleDetails(num)
{if(document.getElementById)
{objRef=document.getElementById("descriptionTxt"+num);expanderRef=document.getElementById("expander"+num);if(objRef.className=="closeDiv")
{objRef.className="openDiv";expanderRef.setAttribute("src","http://media.npr.org/images/quiz_hide.gif");expanderRef.setAttribute("alt","Hide Answer");}
else if(objRef.className=="openDiv")
{objRef.className="closeDiv";expanderRef.setAttribute("src","http://media.npr.org/images/quiz_show.gif");expanderRef.setAttribute("alt","Show Answer");}}}
AddNamespace("NPR.onready.books");AddNamespace("NPR.onready.music");var currentOpenDiv=null;function toggleEcommerceDiv(uniqueId,index,title,type)
{var ecommerceDiv=document.getElementById("ecommerceDiv"+uniqueId+'_'+index);if(ecommerceDiv!=null)
{if(currentOpenDiv!=null&&currentOpenDiv!=ecommerceDiv)
{currentOpenDiv.className=currentOpenDiv.className.replace("openDiv","closeDiv");}
if(ecommerceDiv.className.indexOf("closeDiv")!=-1)
{ecommerceDiv.className=ecommerceDiv.className.replace("closeDiv","openDiv");currentOpenDiv=ecommerceDiv;}
else
{ecommerceDiv.className=ecommerceDiv.className.replace("openDiv","closeDiv");currentOpenDiv=null;}}}
NPR.onready.books.ecommerce=function(){$("#content .bookedition a.purchase, #main_sidebar #storycontent02 .bookedition a.purchase").click(function(){$(".ecommercepop").hide();var $parent=$(this).parent();var $popup=$parent.siblings('div.ecommercepop');$popup.show();NPR.metrics.event({category:'Purchase',action:'Opened Purchase Popup'});return false;});$(".ecommercepop a.close").click(function(){$(".ecommercepop").hide();return false;});$("a.buylink1").click(function(){NPR.metrics.event({category:'Purchase',action:'Amazon'});return false;});$("a.buyLink3").click(function(){NPR.metrics.event({category:'Purchase',action:'IndieBound'});return false;});};$(document).ready(NPR.onready.books.ecommerce);NPR.onready.music.ecommerce=function(){$(".playlistitem a.purchase").click(function(){$(".ecommercepop").hide();$(this).parents(".bucketblock").children(".ecommercepop").show();});$(".ecommerce a.purchase, .ecommerce a.purchasepl").click(function(){$(".ecommercepop").hide();$(this).parents(".ecommerce").children(".ecommercepop").show();});$(".primary a.purchase, .secondary a.purchase").click(function(){$(".ecommercepop").hide();$(this).parents(".bucketwrap").children(".ecommercepop").show();});$(".ecommercepop a.close").click(function(){$(".ecommercepop").hide();});};$(document).ready(NPR.onready.music.ecommerce);RegisterNamespace('NPR.Player');RegisterNamespace('NPR.Player.Action');RegisterNamespace('NPR.Player.Type');RegisterNamespace('NPR.Player.Mode');NPR.Player.MediaPlayerWindow=null;NPR.Player.Action.PLAY_NOW=1;NPR.Player.Action.ADD_TO_PLAYLIST=2;NPR.Player.Action.LIVE_STREAM=3;NPR.Player.Type.STORY=1;NPR.Player.Type.TOPIC=2;NPR.Player.Type.PROGRAM=3;NPR.Player.Type.NEWSCAST=4;NPR.Player.Type.PROGRAM_STREAM='live1';NPR.Player.Type.BUTTON=6;NPR.Player.Type.MOST_EMAILED=100;NPR.Player.Type.MOST_EMAILED_MUSIC=102;NPR.Player.Type.LIVE_STREAM_2='live2';NPR.Player.Type.LIVE_STREAM_3='live3';NPR.Player.Type.LIVE_STREAM_4='live4';NPR.Player.Type.LIVE_STREAM_5='live5';NPR.Player.Type.LIVE_STREAM_6='live6';NPR.Player.Type.LIVE_STREAM_7='live7';NPR.Player.Type.LIVE_STREAM_8='live8';NPR.Player.Type.LIVE_STREAM_9='live9';NPR.Player.Type.STATIC_FILE_1='static1';NPR.Player.Type.STATIC_FILE_2='static2';NPR.Player.Type.STATIC_FILE_3='static3';NPR.Player.Type.STATIC_FILE_4='static4';NPR.Player.Mode.MODEL_FROM_FILE=0;NPR.Player.Mode.MODEL_FROM_DATABASE=1;NPR.Player.openPlayer=function(id,mediaId,dateString,action,type,mode){try{mode=parseInt(mode);var islist=false;if(id>0&&(type==NPR.Player.Type.TOPIC||type==NPR.Player.Type.PROGRAM||type==NPR.Player.Type.MOST_EMAILED||type==NPR.Player.Type.MOST_EMAILED_MUSIC)){islist=true;}
var cookieString="?action="+action+"&t="+type+"&islist="+islist
if(id>0){cookieString+="&id="+id;}
if(mediaId>0){cookieString+="&m="+mediaId;}
if(dateString!=null){cookieString+="&d="+dateString;}
if(mode===NPR.Player.Mode.MODEL_FROM_DATABASE){cookieString+="&live="+NPR.Player.Mode.MODEL_FROM_DATABASE;}
if(action===NPR.Player.Action.ADD_TO_PLAYLIST){RegisterNamespace("NPR.personalize.audio");NPR.metrics.pageEvent(NPR.metrics.constants.ADD_TO_PLAYLIST);}
diff=9999999;date1=new Date();date2=null;if(NPR.Player.readCookie('playerWindowOpen')!==null){date2=new Date(NPR.Player.readCookie('playerWindowOpen'));diff=date1-date2;}
if(NPR.Player.MediaPlayerWindow!==null&&!NPR.Player.MediaPlayerWindow.closed){try{NPR.Player.MediaPlayerWindow.addPlaylistItem(cookieString);NPR.Player.MediaPlayerWindow.focus();}
catch(ex){NPR.messaging.exception(ex,'player.js','NPR.Player.openPlayer',NPR.messaging.constants.PLAYER_JS_ERROR);NPR.Player.createCookie('playListItem',cookieString,1);}}
else if(NPR.Player.readCookie('playerWindowOpen')===null||diff>5000){NPR.Player.MediaPlayerWindow=window.open('http://www.npr.org/player/v2/mediaPlayer.html'+cookieString,'_player','height=590,width=770,status=yes,toolbar=no,menubar=no,location=no');if(NPR.Player&&NPR.Player.MediaPlayerWindow){NPR.Player.MediaPlayerWindow.focus();}}
else{NPR.Player.createCookie('playListItem',cookieString,1);}}
catch(e){NPR.messaging.exception(e,'player.js','NPR.Player.openPlayer',NPR.messaging.constants.PLAYER_JS_ERROR);}
return;};function RegisterNamespace(namespacePath){var rootObject=window;var namespaceParts=namespacePath.split('.');for(var i=0;i<namespaceParts.length;i++){var currentPart=namespaceParts[i];if(!rootObject[currentPart]){rootObject[currentPart]=new Object();}
rootObject=rootObject[currentPart];}};NPR.Player.createCookie=function(thename,thevalue,days){try{if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else var expires="";document.cookie=thename+"="+thevalue+expires+"; path=/";}
catch(e){NPR.messaging.exception(e,'player.js','NPR.Player.createCookie',NPR.messaging.constants.PLAYER_JS_ERROR);}};NPR.Player.readCookie=function(thename){var nameEQ=thename+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0)return c.substring(nameEQ.length,c.length);}
return null;};AddNamespace("NPR.metrics");NPR.metrics.constants={};NPR.metrics.constants.SEARCH_CONDUCTED='event1';NPR.metrics.constants.PAGEVIEW='event2';NPR.metrics.constants.REGISTRATION='event3';NPR.metrics.constants.PROMOTION='event4';NPR.metrics.constants.LOGIN='event5';NPR.metrics.constants.EMAIL_STORY='event9';NPR.metrics.constants.NEWSLETTER_SUBSCRIBE='event10';NPR.metrics.constants.NEWSLETTER_UNSUBSCRIBE='event11';NPR.metrics.constants.COMMENT_ADDED='event13';NPR.metrics.constants.CONTACT_US='event14';NPR.metrics.constants.STATION_DRAWER_OPEN='event15';NPR.metrics.constants.LISTEN_DRAWER_OPEN='event16';NPR.metrics.constants.CLICK_RSS_LINK='event8';NPR.metrics.constants.CLICK_PODCAST_LINK='event18';NPR.metrics.constants.AUTO_REFRESH='event19';NPR.metrics.constants.IMAGE_ENLARGEMENT='event22';NPR.metrics.constants.ADD_TO_PLAYLIST='event23';NPR.metrics.constants.SPONSOR_DRAWER_OPEN='event24';NPR.metrics.constants.STATION_SEARCH='event27';NPR.metrics.constants.STATION_SEARCH_DONATE='event28';NPR.metrics.constants.STATION_LINK_CLICKED='event29';NPR.metrics.constants.STATION_HEADLINE_CLICKED='event45';NPR.metrics.constants.EXCERPT_VIEWED='event47';NPR.metrics.constants.PURCHASE_INFO_VIEWED='event48';NPR.metrics.constants.ERROR_PAGE_TYPE='errorPage';NPR.metrics.constants.EVENT_TYPE_DEFAULT='defaultEvent';NPR.metrics.constants.EVENT_TYPE_SOCIAL='socialEvent';NPR.metrics.constants.NAVIGATION='navigation';if(typeof get_cookie==='undefined'){get_cookie=function(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!==document.cookie.substring(0,name.length))){return null;}
if(start===-1)return null;var end=document.cookie.indexOf(";",len);if(end===-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end));}}
NPR.metrics.variables={};if(NPR.metrics.vscount!=null){NPR.metrics.vscount=NPR.metrics.vscount+1;NPR.metrics.variables["logCount"]=NPR.metrics.vscount;}
else{NPR.metrics.vscount=1;}
NPR.metrics.host="http://www.npr.org";if(document.location.href.indexOf("shop.npr.org")>-1){NPR.metrics.host="//v2.npr.org";}
else if(document.location.href.indexOf("https:")>-1){NPR.metrics.host="https://v.npr.org";}
NPR.metrics.variables["sw"]=screen.width;NPR.metrics.variables["sh"]=screen.height;NPR.metrics.variables["cd"]=screen.colorDepth;NPR.metrics.variables["dr"]=document.referrer;NPR.metrics.variables["cb"]=new Date().getTime();NPR.metrics.clearVars=function(){if(typeof s!=='undefined'){for(var key in s){if(key.indexOf('eVar')===0||key.indexOf('prop')===0){delete s[key];}}}}
NPR.metrics.fixEncoding=function(oldString){var newString=oldString.replace(/\+/g,' ');return decodeURIComponent(newString);};NPR.metrics.pageImpression=function(){if(typeof NPR.ga==='object'){NPR.ga.pageImpression();}
if(typeof NPR.chartbeat==='object'){NPR.chartbeat.go();}
s.pageName="";s.server="";s.channel="";s.pageType="";if(NPR.metrics.vstag.omniturePageType){s.pageType=NPR.metrics.vstag.omniturePageType;}
var pageTitle=document.title;pageTitle=pageTitle.replace(/NPR\:/,'');pageTitle=pageTitle.replace(/NPR\s\:/,'');pageTitle=pageTitle.replace(/NPR\-/,'');pageTitle=pageTitle.replace(/NPR\s\-/,'');if(NPR.metrics.vstag.title){pageTitle=NPR.metrics.fixEncoding(NPR.metrics.vstag["title"]);}
s.pageName=pageTitle;s.prop3=pageTitle;if(NPR.metrics.vstag.storyId){s.prop4=NPR.metrics.vstag["storyId"];if(s.prop4==='1002')
{s.setupDynamicObjectIDs();}}
else{s.prop4=0;}
if(NPR.metrics.vstag.omnitureNamePrefix){s.pageName=NPR.metrics.fixEncoding(NPR.metrics.vstag.omnitureNamePrefix)+s.pageName;s.prop3=s.pageName;}
if(NPR.metrics.vstag.omnitureNameSuffix){s.pageName=s.pageName+NPR.metrics.fixEncoding(NPR.metrics.vstag.omnitureNameSuffix);s.prop3=s.pageName;}
if(NPR.metrics.vstag.text){s.prop1=NPR.metrics.fixEncoding(NPR.metrics.vstag["text"].toLowerCase());s.prop2="zero";if(NPR.metrics.vstag.searchResults&&NPR.metrics.vstag.searchResults>0){s.prop2=NPR.metrics.vstag["searchResults"];}}
s.prop5=NPR.metrics.vstag["pageTypeId"];if(NPR.metrics.vstag.omnitureContentType){s.prop5=NPR.metrics.vstag["omnitureContentType"];}
if(!(NPR.metrics.vstag["primaryTopic"]||NPR.metrics.vstag["assignedTopics"])){switch(NPR.metrics.vstag["programId"]){case'4':case'19':case'20':case'24':case'31':case'34':case'36':case'37':case'39':case'43':NPR.metrics.vstag["primaryTopic"]='1039';NPR.metrics.vstag["assignedTopics"]='1039';break;}}
s.prop6=document.location.hostname;s.prop7=NPR.metrics.vstag["primaryTopic"];s.prop8=NPR.metrics.vstag["tier"];s.prop12=NPR.metrics.vstag["howLongAgo"];s.prop13=NPR.metrics.vstag["userHash"];s.prop14=NPR.metrics.vstag["pageDepth"];s.prop15=NPR.metrics.vstag["segNum"];s.prop16=NPR.metrics.vstag["preferredStation"];s.channel=NPR.metrics.vstag["channel"];if(NPR.metrics.vstag.hierarchy){s.hier1=NPR.metrics.fixEncoding(NPR.metrics.vstag["hierarchy"]);}
var idString=document.location.search.replace(/.*([?&]\w*id=\d+).*/i,"$1");idString=idString.replace(/^&/,'?');var idString4Prop17=idString;idString4Prop17=idString4Prop17.replace(/([?&]ps=[^?&#]+)/gi,"");idString4Prop17=idString4Prop17.replace(/([?&]text=[^?&#]+)/gi,"");idString4Prop17=idString4Prop17.replace(/([?&]pageDepth=[^?&#]+)/gi,"");idString4Prop17=idString4Prop17.replace(/([?&]value[^?&#]+)/gi,"");idString4Prop17=idString4Prop17.replace(/([?&]ft=[^?&#]+)/gi,"");idString4Prop17=idString4Prop17.replace(/([?&]f=[^?&#]+)/gi,"");s.prop17=document.location.pathname+idString4Prop17;s.prop18=NPR.metrics.vstag["assignedTopics"];s.prop19=NPR.metrics.vstag["date"];s.prop20=NPR.metrics.vstag["orgId"];s.prop21=NPR.metrics.vstag["programId"];s.prop22=NPR.metrics.vstag["searchProgramId"];s.prop23=NPR.metrics.vstag["searchTopicId"];s.prop24=NPR.metrics.vstag["storyLength"];if(NPR.metrics.vstag.byline){s.prop30=NPR.metrics.fixEncoding(NPR.metrics.vstag["byline"]);}
s.prop31=NPR.metrics.vstag["aggIds"];s.prop32=NPR.metrics.vstag["artists"];s.events="";if(NPR.metrics.vstag.omnitureEvent){s.events=NPR.metrics.vstag.omnitureEvent;}
var psarray=document.URL.split('ps=');if(psarray.length>1)
{var psvalue=psarray[1].split('&')[0];s.prop37=psvalue;s.eVar37=psvalue;s.events+=(s.events?',':'')+NPR.metrics.constants.PROMOTION;}
var regExps=[new RegExp('/programs/[^/]+/'),new RegExp('/news/specials/[^/]+/'),new RegExp('/blogs/[^/]+/'),new RegExp('/.*/')];var uriexcerpt=false;var matchArray=false;var pathOnly=document.URL.split('npr.org',2)[1];for(var ri=0;ri<regExps.length;ri++){matchArray=regExps[ri].exec(pathOnly);if(matchArray&&matchArray.length){uriexcerpt=matchArray[0];break;}}
if(uriexcerpt!==false){s.prop33=uriexcerpt;}
s.prop45=NPR.metrics.vstag["profileTier"];var products=[];if(NPR.metrics.vstag.aggIds&&NPR.metrics.vstag.aggIds.length>0){products.push(NPR.metrics.vstag["aggIds"]);}
if(NPR.metrics.vstag.assignedTopics&&NPR.metrics.vstag.assignedTopics.length>0){products.push(NPR.metrics.vstag["assignedTopics"]);}
if(NPR.metrics.vstag.byline&&NPR.metrics.vstag.byline.length>0){products.push(NPR.metrics.fixEncoding(NPR.metrics.vstag["byline"]));}
if(NPR.metrics.vstag.artists&&NPR.metrics.vstag.artists.length>0){products.push(NPR.metrics.vstag["artists"]);}
if(products.length>0){var uniqueProducts="";for(var pi=0;pi<products.length;pi++){if(uniqueProducts.indexOf(products[pi])===-1){uniqueProducts+=products[pi]+',';}}
uniqueProducts=uniqueProducts.substring(0,uniqueProducts.length-1);s.products=";"+uniqueProducts.replace(/,/g,",;");}
if(NPR.metrics.vstag.omniturePageName){s.pageName=NPR.metrics.fixEncoding(NPR.metrics.vstag.omniturePageName);s.prop3=s.pageName;}
if(s.events.match(NPR.metrics.constants.EMAIL_STORY)!==null)
{s.prop41=NPR.metrics.vstag["programId"];s.prop42=NPR.metrics.vstag["primaryTopic"];s.prop34=NPR.metrics.vstag["emailedURL"];s.prop40=NPR.metrics.vstag["ctRecipients"];}
if(document.URL.indexOf("refresh=true")>-1)
{s.events=NPR.metrics.constants.AUTO_REFRESH;s.linkTrackVars='events,prop17,eVar17';s.linkTrackEvents=NPR.metrics.constants.AUTO_REFRESH;s_code=s.tl(true,'o',s.events);}
else
{s_code=s.t();}};NPR.metrics.event=function(paramsObj){NPR.ga.event(paramsObj);}
NPR.metrics.pageEvent=function(vsEventName,thisObj,stationLetters,headline){if(vsEventName==='comment_added'){s.linkTrackVars='events,prop17,eVar17';s.linkTrackEvents=NPR.metrics.constants.COMMENT_ADDED;s.events=NPR.metrics.constants.COMMENT_ADDED;s.tl(true,'o',NPR.metrics.constants.COMMENT_ADDED);NPR.metrics.event({type:NPR.metrics.constants.EVENT_TYPE_SOCIAL,network:'internal',action:'Comment'});}
else if(vsEventName==='station_favorite')
{NPR.metrics.event({category:'Favorite',action:'Station',label:stationLetters});}
else if(vsEventName==='station_headline_clicked'){s.linkTrackVars='eVar16,events';s.linkTrackEvents=NPR.metrics.constants.STATION_HEADLINE_CLICKED;s.events=NPR.metrics.constants.STATION_HEADLINE_CLICKED;s.eVar16=stationLetters;s.tl(this,'o',stationLetters+':'+headline);}
else if(vsEventName==='station_search'){s.linkTrackVars='events,prop17,eVar17,prop43,eVar43';s.linkTrackEvents=NPR.metrics.constants.STATION_SEARCH;s.events=NPR.metrics.constants.STATION_SEARCH;s.tl(thisObj,'o',NPR.metrics.constants.STATION_SEARCH_PERFORMED);}
else if(vsEventName==='station_search_donate'){s.linkTrackVars='events,prop17,eVar17,prop43,eVar43';s.linkTrackEvents=NPR.metrics.constants.STATION_SEARCH_DONATE;s.events=NPR.metrics.constants.STATION_SEARCH_DONATE;s.tl(thisObj,'o',NPR.metrics.constants.STATION_SEARCH_PERFORMED);}
else if(vsEventName==='station_link_clicked'){s.linkTrackVars='events,prop17,eVar17,eVar35';s.linkTrackEvents=NPR.metrics.constants.STATION_LINK_CLICKED;s.events=NPR.metrics.constants.STATION_LINK_CLICKED;s.tl(thisObj,'o',NPR.metrics.constants.STATION_LINK_CLICKED);}
else if(vsEventName===NPR.metrics.constants.CLICK_RSS_LINK||vsEventName===NPR.metrics.constants.CLICK_PODCAST_LINK||vsEventName===NPR.metrics.constants.IMAGE_ENLARGEMENT||vsEventName===NPR.metrics.constants.ADD_TO_PLAYLIST||vsEventName===NPR.metrics.constants.STATION_DRAWER_OPEN||vsEventName===NPR.metrics.constants.LISTEN_DRAWER_OPEN||vsEventName===NPR.metrics.constants.SPONSOR_DRAWER_OPEN||vsEventName===NPR.metrics.constants.EXCERPT_VIEWED||vsEventName===NPR.metrics.constants.PURCHASE_INFO_VIEWED){s.linkTrackVars='events,prop17,eVar17';s.linkTrackEvents=vsEventName;s.events=vsEventName;s.tl(true,'o',vsEventName);}};AddNamespace("NPR.ga");var _gaq=_gaq||[];NPR.ga.Account='UA-5828686-4';NPR.ga.customVarMaxLength=64;NPR.ga.pageImpression=function(){NPR.ga.initialize();NPR.ga.setCustomVars();NPR.ga.trackPageview();NPR.ga.fetchgaq();};NPR.ga.initialize=function(){try{_gaq.push(['_setAccount',NPR.ga.Account]);_gaq.push(['_trackPageLoadTime']);}catch(e){NPR.messaging.exception(e,'NPR.ga.initialize',NPR.messaging.constants.METRICS_ERROR);}}
NPR.ga.setCustomVars=function(){var pageScope;AddNamespace("NPR.pageInfo");pageScope=NPR.pageInfo.pageScope||3;if(typeof NPR.pageInfo.breadcrumbs!=='undefined'){var name='BC';var breadcrumbs=NPR.pageInfo.breadcrumbs.join(' > ');NPR.ga.pushCustomVar(1,name,breadcrumbs,pageScope);}
if((typeof NPR.pageInfo.topics!=='undefined')&&(typeof NPR.pageInfo.primaryTopic!=='undefined')){var topics='';var topicsArray=NPR.pageInfo.topics.slice(0);var primaryTopicIndex=$.inArray(NPR.pageInfo.primaryTopic,topicsArray);if(primaryTopicIndex>=0){topics+='P'+NPR.pageInfo.primaryTopic+',';topicsArray.splice(primaryTopicIndex,1);}
topics+=topicsArray.join(',');NPR.ga.pushCustomVar(2,'Topics',topics,pageScope);}
if((typeof NPR.pageInfo.programId!=='undefined')&&(NPR.pageInfo.programId!==null)){NPR.ga.pushCustomVar(3,'Program ID',String(NPR.pageInfo.programId),pageScope);}
if((typeof NPR.pageInfo.internalCampaign!=='undefined')&&(NPR.pageInfo.internalCampaign!==null)){NPR.ga.pushCustomVar(4,'Internal Campaign',NPR.pageInfo.internalCampaign,pageScope);}
if((typeof NPR.pageInfo.pageTypeId!=='undefined')&&(NPR.pageInfo.pageTypeId!==null)){NPR.ga.pushCustomVar(5,'Page Types',String(NPR.pageInfo.pageTypeId),pageScope);}
if(typeof NPR.pageInfo.aggregations!=='undefined'){var aggs=NPR.pageInfo.aggregations.slice(0);if(typeof NPR.pageInfo.aggExtras!=='undefined'){aggs=aggs.concat(NPR.pageInfo.aggExtras);}
NPR.ga.event({category:'IDs',action:'IDs',label:aggs.join(',')});}
if((typeof NPR.pageInfo.campaignSource!=='undefined')&&(NPR.pageInfo.campaignSource!==null))
{_gaq.push(['_setCampSourceKey',NPR.pageInfo.campaignSource]);}
if((typeof NPR.pageInfo.campaignName!=='undefined')&&(NPR.pageInfo.campaignName!==null))
{_gaq.push(['_setCampNameKey',NPR.pageInfo.campaignName]);}}
NPR.ga.customVarLengthLimitClipper=function(name,value){var encoded,lengths,byteDifference;name=name||'';value=value||'';encoded={};encoded.name=encodeURIComponent(name);encoded.value=encodeURIComponent(value);lengths={};lengths.raw=name.length+value.length;lengths.encoded=encoded.name.length+encoded.value.length;byteDifference=lengths.encoded-lengths.raw;return value.substr(0,(NPR.ga.customVarMaxLength-encoded.name.length-byteDifference));}
NPR.ga.pushCustomVar=function(slot,name,value,scope){try{if(typeof name==='string'&&typeof value==='string'){value=NPR.ga.customVarLengthLimitClipper(name,value);}
_gaq.push(['_setCustomVar',slot,name,value,scope]);}catch(e){NPR.messaging.exception(e,'NPR.ga.pushCustomVar '+slot,NPR.messaging.constants.METRICS_ERROR);}}
NPR.ga.trackPageview=function(){try{var pathname=$(location).attr('pathname');if(document.location.href.indexOf('refresh=true')>0){NPR.ga.event({category:pathname,action:'refresh'});}else{_gaq.push(['_trackPageview',pathname]);}}catch(e){NPR.messaging.exception(e,'NPR.ga.trackPageview',NPR.messaging.constants.METRICS_ERROR);}}
NPR.ga.fetchgaq=function(){(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();}
NPR.ga.event=function(paramsObj){var type=paramsObj.type||NPR.metrics.constants.EVENT_TYPE_DEFAULT;if(type===NPR.metrics.constants.EVENT_TYPE_SOCIAL){if((typeof paramsObj.socialNetwork!=='undefined')&&(typeof paramsObj.socialAction!=='undefined')){NPR.ga.trackSocial(paramsObj.network,paramsObj.action,paramsObj.target,paramsObj.pagePath);}}
else if(type===NPR.metrics.constants.EVENT_TYPE_DEFAULT){if((typeof paramsObj.category!=='undefined')&&(typeof paramsObj.action!=='undefined')){NPR.ga.trackEvent(paramsObj.category,paramsObj.action,paramsObj.label,paramsObj.value);}}}
NPR.ga.trackEvent=function(category,action,opt_label,opt_value){try{_gaq.push(['_trackEvent',category,action,opt_label,opt_value]);}catch(e){NPR.messaging.exception(e,'NPR.ga.trackEvent',NPR.messaging.constants.METRICS_ERROR);}}
NPR.ga.trackSocial=function(network,socialAction,opt_target,opt_pagePath){try{_gaq.push(['_trackSocial',network,socialAction,opt_target,opt_pagePath]);}catch(e){NPR.messaging.exception(e,'NPR.ga.trackSocial',NPR.messaging.constants.METRICS_ERROR);}}
AddNamespace('NPR.chartbeat');var _sf_async_config={};NPR.chartbeat.go=function(){try{if(typeof NPR.pageInfo.chartbeatAccount!=='undefined'){_sf_async_config.uid=NPR.pageInfo.chartbeatAccount;_sf_async_config.domain=NPR.pageInfo.webhost;_sf_async_config.useCanonical=true;if((typeof NPR.pageInfo.aggregations!=='undefined')&&(NPR.pageInfo.aggregations!==null)){_sf_async_config.sections=NPR.pageInfo.aggregations.join(',');}
if((typeof NPR.pageInfo.byline!=='undefined')&&(NPR.pageInfo.byline!==null)){_sf_async_config.authors=NPR.pageInfo.byline.join(',');}
(function(){function loadChartbeat(){window._sf_endpt=(new Date()).getTime();var e=document.createElement("script");e.setAttribute("language","javascript");e.setAttribute("type","text/javascript");e.setAttribute("src",(("https:"==document.location.protocol)?"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/":"http://static.chartbeat.com/")+"js/chartbeat.js");document.body.appendChild(e);}
var oldonload=window.onload;window.onload=(typeof window.onload!="function")?loadChartbeat:function(){oldonload();loadChartbeat();};})();}}catch(e){NPR.messaging.exception(e,'NPR.ga.initialize',NPR.messaging.constants.METRICS_ERROR);}}
function clearField()
{if(document.go_local&&document.go_local.txtSearchValue.value.toUpperCase().indexOf("LETTERS")>-1)
{document.go_local.txtSearchValue.value="";}}
function fillField()
{if(document.go_local.txtSearchValue.value=="")
{document.go_local.txtSearchValue.value="Call Letters";}}
function zipUcase()
{if(document.go_local.txtSearchValue.value!="Call Letters")
{document.go_local.txtSearchValue.value=document.go_local.txtSearchValue.value.toUpperCase();}}
function href()
{url=escape(window.location.href);andFind=url.indexOf("&");startPos=0;while(andFind>-1)
{url=url.substring(startPos,andFind)+"%26"+url.substring(andFind+1);andFind=url.indexOf("&");}
var re=new RegExp(' ','gi');window.location.href="http://www.npr.org/stations/?refUrl="+url;}
function removeHref(cookieValue)
{url=escape(window.location.href);andFind=url.indexOf("&");startPos=0;while(andFind>-1)
{url=url.substring(startPos,andFind)+"%26"+url.substring(andFind+1);andFind=url.indexOf("&");}
var re=new RegExp(' ','gi');window.location.href="http://www.npr.org/stations/cookies/stations_kill_cookie.php?cookieValue="+cookieValue+"&url="+url;}
var isDHTML=0;var isLayers=0;var isAll=0;var isID=0;if(document.getElementById){isID=1;isDHTML=1;}
else{if(document.all){isAll=1;isDHTML=1;}
else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){isLayers=1;isDHTML=1;}}}
function findDOM(objectID,withStyle){if(withStyle==1){if(isID){return(document.getElementById(objectID).style);}
else{if(isAll){return(document.all[objectID].style);}
else{if(isLayers){return(document.layers[objectID]);}};}}
else{if(isID){return(document.getElementById(objectID));}
else{if(isAll){return(document.all[objectID]);}
else{if(isLayers){return(document.layers[objectID]);}};}}}
function setClass(objectID,newClass){var dom=findDOM(objectID,0);dom.className=newClass;viewType=newClass;};var s_account="nprorg";var s=s_gi(s_account);s.currencyCode="USD";s.trackDownloadLinks=true;s.trackExternalLinks=true;s.trackInlineStats=true;s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx";s.linkInternalFilters="javascript,npr.org";s.linkLeaveQueryString=false;s.linkTrackVars="None";s.linkTrackEvents="None";s.usePlugins=true;function s_doPlugins(s){if(!s.campaign){s.campaign=s.getQueryParam('cmpid');if(!s.campaign&&(s.getQueryParam('sc')||s.getQueryParam('cc'))){var tempSCCC=s.getQueryParam('sc');var tempCC=s.campaign=s.getQueryParam('cc');if(tempCC!=null&&tempCC!='undefined')
var tempCCarr=tempCC.split('-');if(tempCCarr.length>0)
{tempCC=tempCCarr[0];s.prop26=tempCCarr[1];s.eVar26=tempCCarr[1];}
tempSCCC=tempSCCC+"__"+tempCC;s.campaign=tempSCCC;}
if(!s.campaign&&(s.getQueryParam('ft')||s.getQueryParam('f'))){var tempFTF=s.getQueryParam('ft');var tempF=s.campaign=s.getQueryParam('f');tempFTF=tempFTF+"__"+tempF;s.campaign=tempFTF;}
s.eVar33=s.getValOnce(s.campaign,'s_var_33',0);}
s.events=s.apl(s.events,'event2',',',2);var thisYearPerBrowser=(new Date).getFullYear();s.prop9=s.getTimeParting('h','-5',thisYearPerBrowser);s.prop10=s.getTimeParting('d','-5',thisYearPerBrowser);s.prop11=s.getTimeParting('w','-5',thisYearPerBrowser);if(s.prop1&&!s.eVar1)s.eVar1=s.prop1;if(s.prop2&&!s.eVar2)s.eVar2=s.prop2;if(s.prop3&&!s.eVar3)s.eVar3=s.prop3;if(s.prop4&&!s.eVar4)s.eVar4=s.prop4;if(s.prop5&&!s.eVar5)s.eVar5=s.prop5;if(s.prop6&&!s.eVar6)s.eVar6=s.prop6;if(s.prop7&&!s.eVar7)s.eVar7=s.prop7;if(s.prop8&&!s.eVar8)s.eVar8=s.prop8;if(s.prop9&&!s.eVar9)s.eVar9=s.prop9;if(s.prop10&&!s.eVar10)s.eVar10=s.prop10;if(s.prop11&&!s.eVar11)s.eVar11=s.prop11;if(s.prop12&&!s.eVar12)s.eVar12=s.prop12;if(s.prop13&&!s.eVar13)s.eVar13=s.prop13;if(s.prop15&&!s.eVar15)s.eVar15=s.prop15;if(s.prop16&&!s.eVar16)s.eVar16=s.prop16;if(s.prop17&&!s.eVar17)s.eVar17=s.prop17;if(s.prop19&&!s.eVar19)s.eVar19=s.prop19;if(s.prop20&&!s.eVar20)s.eVar20=s.prop20;if(s.prop21&&!s.eVar21)s.eVar21=s.prop21;if(s.prop22&&!s.eVar22)s.eVar22=s.prop22;if(s.prop23&&!s.eVar23)s.eVar23=s.prop23;if(s.prop24&&!s.eVar24)s.eVar24=s.prop24;if(s.prop25&&!s.eVar25)s.eVar25=s.prop25;if(s.prop26&&!s.eVar26)s.eVar26=s.prop26;if(s.prop27&&!s.eVar27)s.eVar27=s.prop27;if(s.prop4&&!s.eVar28)s.eVar28=s.prop4;if(s.prop29&&!s.eVar29)s.eVar29=s.prop29;if(s.prop34&&!s.eVar34)s.eVar34=s.prop34;if(s.prop40&&!s.eVar40)s.eVar40=s.prop40;if(s.prop41&&!s.eVar41)s.eVar41=s.prop41;if(s.prop42&&!s.eVar42)s.eVar42=s.prop42;}
s.doPlugins=s_doPlugins;s.apl=new Function("L","v","d","u",""
+"var s=this,m=0;if(!L)L='';if(u){var i,n,a=s.split(L,d);for(i=0;i<a."
+"length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas"
+"e()));}}if(!m)L=L?L+d+v:v;return L");s.split=new Function("l","d",""
+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"
+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");s.getValOnce=new Function("v","c","e",""
+"var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime("
+")+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");s.getQueryParam=new Function("p","d","u",""
+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"
+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"
+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-"
+"1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i="
+"=p.length?i:i+1)}return v");s.p_gpv=new Function("k","u",""
+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"
+"=s.pt(q,'&','p_gvf',k)}return v");s.p_gvf=new Function("t","k",""
+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"
+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."
+"epa(v)}return ''");s.getTimeParting=new Function("t","z","y",""
+"dc=new Date('1/1/2000');f=15;ne=8;if(dc.getDay()!=6||"
+"dc.getMonth()!=0){return'Data Not Available'}else{;z=parseInt(z);"
+"if(y=='2009'){f=8;ne=1};gmar=new Date('3/1/'+y);dsts=f-gmar.getDay("
+");gnov=new Date('11/1/'+y);dste=ne-gnov.getDay();spr=new Date('3/'"
+"+dsts+'/'+y);fl=new Date('11/'+dste+'/'+y);cd=new Date();"
+"if(cd>spr&&cd<fl){z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneO"
+"ffset()*60000);tz=new Date(utc + (3600000*z));thisy=tz.getFullYear("
+");var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Fr"
+"iday','Saturday'];if(thisy!=y){return'Data Not Available'}else{;thi"
+"sh=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();var dow="
+"days[thisd];var ap='AM';var dt='Weekday';var mint='00';if(thismin>3"
+"0){mint='30'}if(thish>=12){ap='PM';thish=thish-12};if (thish==0){th"
+"ish=12};if(thisd==6||thisd==0){dt='Weekend'};var timestring=thish+'"
+":'+mint+ap;var daystring=dow;var endstring=dt;if(t=='h'){return tim"
+"estring}if(t=='d'){return daystring};if(t=='w'){return en"
+"dstring}}};");s.setupDynamicObjectIDs=new Function(""
+"var s=this;if(!s.doi){s.doi=1;if(s.apv>3&&(!s.isie||!s.ismac||s.apv"
+">=5)){if(s.wd.attachEvent)s.wd.attachEvent('onload',s.setOIDs);else"
+" if(s.wd.addEventListener)s.wd.addEventListener('load',s.setOIDs,fa"
+"lse);else{s.doiol=s.wd.onload;s.wd.onload=s.setOIDs}}s.wd.s_semapho"
+"re=1}");s.setOIDs=new Function("e",""
+"var s=s_c_il["+s._in+"],b=s.eh(s.wd,'onload'),o='onclick',x,l,u,c,i"
+",a=new Array;if(s.doiol){if(b)s[b]=s.wd[b];s.doiol(e)}if(s.d.links)"
+"{for(i=0;i<s.d.links.length;i++){l=s.d.links[i];c=l[o]?''+l[o]:'';b"
+"=s.eh(l,o);z=l[b]?''+l[b]:'';u=s.getObjectID(l);if(u&&c.indexOf('s_"
+"objectID')<0&&z.indexOf('s_objectID')<0){u=s.repl(u,'\"','');u=s.re"
+"pl(u,'\\n','').substring(0,97);l.s_oc=l[o];a[u]=a[u]?a[u]+1:1;x='';"
+"if(c.indexOf('.t(')>=0||c.indexOf('.tl(')>=0||c.indexOf('s_gs(')>=0"
+")x='var x=\".tl(\";';x+='s_objectID=\"'+u+'_'+a[u]+'\";return this."
+"s_oc?this.s_oc(e):true';if(s.isns&&s.apv>=5)l.setAttribute(o,x);l[o"
+"]=new Function('e',x)}}}s.wd.s_semaphore=0;return true");s.repl=new Function("x","o","n",""
+"var i=x.indexOf(o),l=n.length;while(x&&i>=0){x=x.substring(0,i)+n+x."
+"substring(i+o.length);i=x.indexOf(o,i+l)}return x");s.loadModule("Media");s.Media.autoTrack=false;s.Media.trackVars="None";s.Media.trackEvents="None";function s_getObjectID(o){var ID=o.href;return ID;}
s.getObjectID=s_getObjectID
s.trackingServer="metrics.npr.org";s.trackingServerSecure="smetrics.npr.org";s.dc=122;s.m_Media_c="='s_media_'+m._in+'_~=new Function(~m.ae(mn,l,\"'+p+'\",~;`H~o.'+f~o.Get~=function(~){var m=this~}^9 p');p=tcf(o)~setTimeout(~x,x!=2?p:-1,o)}~=parseInt(~m.s.d.getElementsByTagName~ersion"
+"Info~'`z_c_il['+m._in+'],~'o','var e,p=~QuickTime~if(~}catch(e){p=~s.wd.addEventListener~m.s.rep(~=new Object~layState~||^D~m.s.wd[f1]~Media~.name~Player '+~s.wd.attachEvent~'a','b',c~;o[f1]~tm.get"
+"Time()/1~m.s.isie~.current~,tm=new Date,~p<p2||p-p2>5)~m.e(n,1,o^F~m.close~i.lx~=v+',n,~){this.e(n,~MovieName()~);o[f~i.lo~m.ol~o.controls~load',m.as~==3)~script';x.~,t;try{t=~Version()~else~o.id~)"
+"{mn=~1;o[f7]=~Position~);m.~(x==~)};m.~&&m.l~l[n])~var m=s~!p){tcf~xc=m.s.~Title()~();~7+'~)}};m.a~\"'+v+';~3,p,o);~5000~return~i.lt~';c2='~Change~n==~',f~);i.~==1)~{p='~4+'=n;~()/t;p~.'+n)}~~`z.m_"
+"i('`P'`uopen`6n,l,p,b`7,i`L`Ya='',x;l`Bl)`3!l)l=1`3n&&p){`H!m.l)m.l`L;n=`Km.s.rep(`Kn,\"\\n\",''),\"\\r\",''),'--**--','')`3m.`y`b(n)`3b&&b.id)a=b.id;for (x in m.l)`Hm.l[x]`x[x].a==a)`b(m.l[x].n^Fn"
+"=n;i.l=l;i.p=p;i.a=a;i.t=0;i.s`B`V000);`c=0;^A=0;`h=0;i.e='';m.l[n]=i}};`b`6n`e0,-1`wplay`6n,o`7,i;i=`am`1`Ei`3m.l){i=m.l[\"'+`Ki.n,'\"','\\\\\"')+'\"]`3i){`H`c^Gm.e(i.n,3,-1^Fmt=`9i.m,^8)}}'^Fm(`w"
+"stop`6n,o`e2,o`we`6n,x,o`7,i=n`x&&m.l[n]?m.l[n]:0`Yts`B`V000),d='--**--'`3i){if `v3||(x!=`c&&(x!=2||`c^G)) {`Hx){`Ho<0&&^A>0){o=(ts-^A)+`h;o=o<i.l?o:i.l-1}o`Bo)`3`v2||x`l&&`h<o)i.t+=o-`h`3x!=3){i.e"
+"+=`v1?'S':'E')+o;`c=x;}`p `H`c!=1)`alt=ts;`h=o;m.s.pe='media';m.s.pev3=i.n+d+i.l+d+i.p+d+i.t+d+i.s+d+i.e+`v3?'E'+o:''`us.t(0,'`P^K`p{m.e(n,2,-1`ul[n]=0;m.s.fbr('`P^K}}^9 i};m.ae`6n,l,p,x,o,b){`Hn&&"
+"p`7`3!m.l||!m.`ym.open(n,l,p,b`ue(n,x,o^5`6o,t`7,i=`q?`q:o`Q,n=o`Q,p=0,v,c,c1,c2,^1h,x,e,f1,f2`0oc^E3`0t^E4`0s^E5`0l^E6`0m^E7`0c',tcf,w`3!i){`H!m.c)m.c=0;i`0'+m.c;m.c++}`H!`q)`q=i`3!o`Q)o`Q=n=i`3!`"
+"i)`i`L`3`i[i])^9;`i[i]=o`3!xc)^1b;tcf`1`F0;try{`Ho.v`D&&o`X`P&&`j)p=1`I0`8`3^0`1`F0`n`5`G`o`3t)p=2`I0`8`3^0`1`F0`n`5V`D()`3t)p=3`I0`8}}v=\"`z_c_il[\"+m._in+\"],o=`i['\"+i+\"']\"`3p^G^HWindows `P `R"
+"o.v`D;c1`dp,l,x=-1,cm,c,mn`3o){cm=o`X`P;c=`j`3cm&&c`rcm`Q?cm`Q:c.URL;l=cm.duration;p=c`X`t;n=o.p`M`3n){`H^D8)x=0`3n`lx=1`3^D1`N2`N4`N5`N6)x=2;}^B`Hx>=0)`2`A}';c=c1+c2`3`W&&xc){x=m.s.d.createElement"
+"('script');x.language='j`mtype='text/java`mhtmlFor=i;x.event='P`M^C(NewState)';x.defer=true;x.text=c;xc.appendChild(x`g6]`1c1+'`Hn`l{x=3;'+c2+'}`9`46+',^8)'`g6]()}}`Hp==2)^H`G `R(`5Is`GRegistered()"
+"?'Pro ':'')+`5`G`o;f1=f2;c`dx,t,l,p,p2,mn`3o`r`5`f?`5`f:`5URL^3n=`5Rate^3t=`5TimeScale^3l=`5Duration^J=`5Time^J2=`45+'`3n!=`44+'||`Z{x=2`3n!=0)x=1;`p `Hp>=l)x=0`3`Z`22,p2,o);`2`A`Hn>0&&`4^4>=10){`2"
+"^7`4^4=0}`4^4++;`4^I`45+'=p;`9^6`42+'(0,0)\",500)}'`U`1`T`g4]=-`s0`U(0,0)}`Hp`l^HReal`R`5V`D^3f1=n+'_OnP`M^C';c1`dx=-1,l,p,mn`3o`r`5^2?`5^2:`5Source^3n=`5P`M^3l=`5Length()/1000;p=`5`t()/1000`3n!=`4"
+"4+'){`Hn`lx=1`3^D0`N2`N4`N5)x=2`3^D0&&(p>=l||p==0))x=0`3x>=0)`2`A`H^D3&&(`4^4>=10||!`43+')){`2^7`4^4=0}`4^4++;`4^I^B`H`42+')`42+'(o,n)}'`3`O)o[f2]=`O;`O`1`T1+c2)`U`1`T1+'`9^6`41+'(0,0)\",`43+'?500:"
+"^8);'+c2`g4]=-1`3`W)o[f3]=`s0`U(0,0^5s`1'e',`El,n`3m.autoTrack&&`C){l=`C(`W?\"OBJECT\":\"EMBED\")`3l)for(n=0;n<l.length;n++)m.a(`y;}')`3`S)`S('on`k);`p `H`J)`J('`k,false)";s.m_i("Media");var s_code='',s_objectID;function s_gi(un,pg,ss){var c="=fun@6(~){`Ks=^S~$h ~.substring(~.indexOf(~;@t~';`Bt`t~=new Fun@6(~.toLowerCase()~s_c_il['+s^sn+']~};s.~`m@t~.length~.toUpperCase~=new Object~s"
+".wd~','~){@t~')q='~.location~var ~s.pt(~dynamicAccount~link~s.apv~='+@y(~)@tx^m!Object$eObject.prototype$eObject.prototype[x])~);s.~Element~.getTime()~=new Array~ookieDomainPeriods~s.m_~referrer~.p"
+"rotocol~=new Date~BufferedRequests~}c$s(e){~visitor~;@X^js[k],255)}~=''~javaEnabled~conne@6^M~@0c_i~Name~:'')~onclick~}@t~else ~ternalFilters~javascript~s.dl~@Os.b.addBehavior(\"# default# ~=parseF"
+"loat(~'+tm.get~=='~cookie~s.rep(~s.^T~track~o@0oid~browser~.parent~window~colorDepth~String~while(~.host~.lastIndexOf('~s.sq~s.maxDelay~s.vl_g~r=s.m(f)?s[f](~for(~s.un~s.eo~&&s.~parseInt(~t=s.ot(o)"
+"~j='1.~#4URL~lugins~dynamicVariablePrefix~document~Type~Sampling~s.rc[un]~Download~Event~');~this~tfs~resolution~s.c_r(~s.c_w(~s.eh~s.isie~s.vl_l~s.vl_t~Height~t,h){t=t?t~tcf~isopera~ismac~escape(~"
+".href~screen.~s.fl(~Version~harCode~&&(~_'+~variableProvider~s.pe~)?'Y':'N'~:'';h=h?h~._i~e&&l$HSESSION'~f',~onload~name~home#4~objectID~}else{~.s_~s.rl[u~Width~s.ssl~o.type~Timeout(~ction~Lifetime"
+"~.mrq(\"'+un+'\")~sEnabled~;i++)~'){q='~&&l$HNONE'){~ExternalLinks~charSet~onerror~lnk~currencyCode~.src~s=s_gi(~etYear(~&&!~Opera~'s_~;try{~Math.~s.fsg~s.ns6~s.oun~InlineStats~Track~'0123456789~&&"
+"t~s[k]=~s.epa(~m._d~n=s.oid(o)~,'sqs',q);~LeaveQuery~')>=~'=')~)+'/~){n=~\",''),~vo)~s.sampled~=s.oh(o);~+(y<1900?~s.disable~ingServer~n]=~true~sess~campaign~lif~if(~'http~,100)~s.co(~x in ~s.ape~f"
+"fset~s.c_d~s.br~'&pe~s.gg(~s.gv(~s[mn]~s.qav~,'vo~s.pl~=(apn~Listener~\"s_gs(\")~vo._t~b.attach~d.create~=s.n.app~(''+~!='~'||t~'+n~s()+'~){p=~():''~a):f(~+1))~a['!'+t]~){v=s.n.~channel~un)~.target"
+"~o.value~g+\"_c\"]~\".tl(\")~etscape~(ns?ns:~s_')t=t~k',s.bc~omePage~s.d.get~')<~||!~[b](e);~m[t+1](~return~mobile~height~events~random~code~'MSIE ~rs,~un,~,pev~floor(~atch~s.num(~[\"s_\"+~s.c_gd~s"
+".dc~s.pg~,'lt~.inner~transa~;s.gl(~\"m_\"+n~idt='+~page~Group,~.fromC~sByTag~?'&~+';'~t&&~1);~){s.~[t]=~>=5)~[t](~=l[n];~!a[t])~~s._c=@Nc';`F=^1`5!`F`hn){`F`hl`U;`F`hn=0;}s^sl=`F`hl;s^sn=`F`hn;s^sl"
+"[s^s@os;`F`hn++;s.m`0m){`2$Gm)`4'{$d0`Afl`0x,l){`2x?$Gx)`30,l):x`Aco`0o`H!o)`2o;`Kn`E,x;^B@xo)@tx`4'select$d0&&x`4'filter$d0)n[x]=o[x];`2n`Anum`0x){x`e+x;^B`Kp=0;p<x`C;p++)@t(@V')`4x`3p,p$O<0)`20;`"
+"21`Arep=s_r;@y`0x`1,h=@VABCDEF',i,c=s.@E,n,l,e,y`e;c=c?c`D$M`5x){x`e+x`5c`tAUTO'^m'').c^lAt){^Bi=0;i<x`C@A{c=x`3i,i+#Bn=x.c^lAt(i)`5n>127){l=0;e`e;^4n||l<4){e=h`3n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+"
+"='%u'+e}`Bc`t+')y+='%2B';`my+=^gc)}x=y^zx=x?`v^g''+x),'+`G%2B'):x`5x&&c^Eem==1&&x`4'%u$d0&&x`4'%U$d0){i=x`4'%^R^4i>=0){i++`5h`38)`4x`3i,i+1)`D())>=0)`2x`30,i)+'u00'+x`3i);i=x`4'%',i)}}}}`2x`Aepa`0x"
+"`1;`2x?un^g`v''+x,'+`G ')):x`Apt`0x,d,f,a`1,t=x,z=0,y,r;^4t){y=t`4d);y=y<0?t`C:y;t=t`30,y);^At,$Nt,a)`5r)`2r;z+=y+d`C;t=x`3z,x`C);t=z<x`C?t:''}`2''`Aisf`0t,a){`Kc=a`4':')`5c>=0)a=a`30,c)`5t`30,2)`t"
+"$Z`32);`2(t!`e@W==a)`Afsf`0t,a`1`5`La,`G,'is^ut))@Q+=(@Q!`e?`G`j+t;`20`Afs`0x,f`1;@Q`e;`Lx,`G,'fs^uf);`2@Q`Ac_d`e;$vf`0t,a`1`5!$tt))`21;`20`Ac_gd`0`1,d=`F`J^5^w,n=s.fpC`V,p`5!n)n=s.c`V`5d@L$0@gn?^F"
+"n):2;n=n>2?n:2;p=d^6.')`5p>=0){^4p>=0&&n>1$Ld^6.',p-#Bn--}$0=p>0&&`Ld,'.`Gc_gd^u0)?d`3p):d}}`2$0`Ac_r`0k`1;k=@y(k);`Kc=' '+s.d.`u,i=c`4' '+k+@e,e=i<0?i:c`4';',i),v=i<0?'':@Yc`3i+2+k`C,e<0?c`C:e));`"
+"2v$H[[B]]'?v:''`Ac_w`0k,v,e`1,d=$v(),l=s.`u@7,t;v`e+v;l=l?$Gl)`D$M`5^t@Ct=(v!`e?^Fl?l:0):-60)`5t){e`Z;e.setTime(e`T+(t*1000))}`lk@Cs.d.`u=k+'`Pv!`e?v:'[[B]]')+'; path=/;'+(^t?' expires='+e.toGMT^3("
+")#9`j+(d?' domain='+d#9`j;`2^Vk)==v}`20`Aeh`0o,e,r,f`1,b='s^ne+'^ns^sn,n=-1,l,i,x`5!^Xl)^Xl`U;l=^Xl;^Bi=0;i<l`C&&n<0;i++`Hl[i].o==o&&l[i].e==e)n=i`ln<0@gi;l[n]`E}x#Gx.o=o;x.e=e;f=r?x.b:f`5r||f){x.b"
+"=r?0:o[e];x.o[e]=f`lx.b){x.o[b]=x.b;`2b}`20`Acet`0f,a,t,o,b`1,r,^d`5`O>=5^m!s.^e||`O>=7)){^d`7's`Gf`Ga`Gt`G`Ke,r@O^A$Na)`br=s.m(t)?s#Fe):t(e)}`2r^Rr=^d(s,f,a,t)^z@ts.^f^Eu`4$n4@d0)r=s.m(b)?s[b](a):"
+"b(a);else{^X(`F,'@F',0,o);^A$Na`Reh(`F,'@F',1)}}`2r`Ag^Tet`0e`1;`2`w`Ag^Toe`7'e`G`Ks=`9,c;^X(^1,\"@F\",1`Re^T=1;c=s.t()`5c)s.d.write(c`Re^T=0;`2@p'`Rg^Tfb`0a){`2^1`Ag^Tf`0w`1,p=w^0,l=w`J;`w=w`5p&&p"
+"`J!=l&&p`J^5==l^5){`w=p;`2s.g^Tf(`w)}`2`w`Ag^T`0`1`5!`w){`w=`F`5!s.e^T)`w=s.cet('g^T^u`w,'g^Tet',s.g^Toe,'g^Tfb')}`2`w`Amrq`0u`1,l=@1],n,r;@1]=0`5l)^Bn=0;n<l`C;n++){r#Gs.mr(0,0,r.r,0,r.t,r.u)}`Abr`"
+"0id,rs`1`5@m`a$e^W@Nbr',rs))$1l=rs`Aflush`a`0`1;s.fbr(0)`Afbr`0id`1,br=^V@Nbr')`5!br)br=$1l`5br`H!@m`a)^W@Nbr`G'`Rmr(0,0,br)}$1l=0`Amr`0@q,q,$oid,ta,u`1,dc=$w,t1=s.`x@n,t2=s.`x@nSecure,ns=s.`c`ispa"
+"ce,un=u?u:$Ys.f$S,unc=`v$p'_`G-'),r`E,l,imn=@Ni^n($S,im,b,e`5!rs){rs=@u'+(@3?'s'`j+'://'+(t1?(@3@W2?t2:t1):($Y(@3?'102':unc))+'.'+($w?$w:112)+'.2o7.net')@fb/ss/'+^C+'/'+(s.$i?'5.1':'1'@fH.17/'+@q+'"
+"?AQB=1&ndh=1'+(q?q`j+'&AQE=1'`5^Y@Ls.^f`H`O>5.5)rs=^j$o4095);`mrs=^j$o2047)`lid){$1(id,rs);$h}`ls.d.images&&`O>=3^m!s.^e||`O>=7)^m@R<0||`O>=6.1)`H!s.rc)s.rc`E`5!^O){^O=1`5!s.rl)s.rl`E;@1n]`U;set@5'"
+"@t^1`hl)^1.`9@8',750)^zl=@1n]`5l){r.t=ta;r.u=un;r.r=rs;l[l`C]=r;`2''}imn+='^n^O;^O++}im=`F[imn]`5!im)im=`F[im@onew Image;im@0l=0;im.^v`7'e`G^S@0l=1`5^1`hl)^1.`9@8^Rim@I=rs`5rs`4$2=@d0^m!ta||ta`t_se"
+"lf$Ia`t_top'||(`F.^w@Wa==`F.^w))){b=e`Z;^4!im@0l&&e`T-b`T<500)e`Z}`2''}`2'<im'+'g sr'+'c=\"'+rs+'\" width=1 $j=1 border=0 alt=\"\">'`Agg`0v`1`5!`F['s^nv])`F['s^nv]`e;`2`F['s^nv]`Aglf`0t,a`Ht`30,2)`"
+"t$Z`32);`Ks=^S,v=$3t)`5v)s#Dv`Agl`0v`1`5$x)`Lv,`G,'gl^u0)`Agv`0v`1;`2s['vpm^nv]?s['vpv^nv]:(s[v]?s[v]`j`Ahavf`0t,a`1,b=t`30,4),x=t`34),n=^Fx),k='g^nt,m='vpm^nt,q=t,v=s.`N@UVa$oe=s.`N@U^Qs,mn;@X$4t)"
+"`5s.@G||^D||^p`H^p^Epe`30,4)$H@G_'){mn=^p`30,1)`D()+^p`31)`5$5){v=$5.`xVars;e=$5.`x^Qs}}v=v?v+`G+^Z+`G+^Z2:''`5v@L`Lv,`G,'is^ut))s[k]`e`5t`t$k'&&e)@Xs.fs(s[k],e)}s[m]=0`5t`t^K`ID`6`cID`Ivid`6^I@Bg'"
+"`d`Bt`t`X@Br'`d`Bt`tvmk`Ivmt`6@E@Bce'`5s[k]&&s[k]`D()`tAUTO')@X'ISO8859-1';`Bs[k]^Eem==2)@X'UTF-8'}`Bt`t`c`ispace`Ins`6c`V`Icdp`6`u@7`Icl`6^o`Ivvp`6@H`Icc`6$R`Ich`6#0@6ID`Ixact`6@r`Iv0`6^U`Is`6^2`I"
+"c`6`o^k`Ij`6`f`Iv`6`u@9`Ik`6`z@2`Ibw`6`z^b`Ibh`6`g`Ict`6^x`Ihp`6p^J`Ip';`B$tx)`Hb`tprop`Ic$J;`Bb`teVar`Iv$J;`Bb`thier@Bh$J`d`ls[k]@W$H`N`i'@W$H`N^M')$6+='&'+q+'`Ps[k]);`2''`Ahav`0`1;$6`e;`L^a,`G,'h"
+"av^u0);`2$6`Alnf`0^c`8^r`8:'';`Kte=t`4@e`5t@We>0&&h`4t`3te$O>=0)`2t`30,te);`2''`Aln`0h`1,n=s.`N`is`5n)`2`Ln,`G,'ln^uh);`2''`Altdf`0^c`8^r`8:'';`Kqi=h`4'?^Rh=qi>=0?h`30,qi):h`5#Ah`3h`C-(t`C$O`t.'+t)"
+"`21;`20`Altef`0^c`8^r`8:''`5#Ah`4t)>=0)`21;`20`Alt`0h`1,lft=s.`N^PFile^Ms,lef=s.`NEx`n,@s=s.`NIn`n;@s=@s?@s:`F`J^5^w;h=h`8`5s.`x^PLinks&&lf#A`Llft,`G$yd^uh))`2'd'`5s.`x@D&&h`30,1)$H# '^mlef||@s)^m!"
+"lef||`Llef,`G$ye^uh))^m!@s$e`L@s,`G$ye^uh)))`2'e';`2''`Alc`7'e`G`Ks=`9,b=^X(^S,\"`k\"`R@G=@w^S`Rt(`R@G=0`5b)`2^S$f`2@p'`Rbc`7'e`G`Ks=`9,f,^d`5s.d^Ed.all^Ed.all.cppXYctnr)$h;^D=e@I`S?e@I`S:e$T;^d`7"
+"\"s\",\"`Ke@O@t^D^m^D.tag`i||^D^0`S||^D^0Node))s.t()`b}\");^d(s`Reo=0'`Roh`0o`1,l=`F`J,h=o^h?o^h:'',i,j,k,p;i=h`4':^Rj=h`4'?^Rk=h`4'/')`5h^mi<0||(j>=0&&i>j)||(k>=0&&i>k))$Lo`Y&&o`Y`C>1?o`Y:(l`Y?l`Y"
+"`j;i=l.path^w^6/^Rh=(p?p+'//'`j+(o^5?o^5:(l^5?l^5`j)+(h`30,1)$H/'?l.path^w`30,i<0?0:i@f'`j+h}`2h`Aot`0o){`Kt=o.tag`i;t=t@W`D?t`D$M`5t`tSHAPE')t`e`5t`Ht`tINPUT'&&@4&&@4`D)t=@4`D();`B!#Ao^h)t='A';}`2"
+"t`Aoid`0o`1,^G,p,c,n`e,x=0`5t@L`y$Lo`Y;c=o.`k`5o^h^mt`tA$I`tAREA')^m!c$ep||p`8`4'`o$d0))n@k`Bc@g`vs.rep(`vs.rep$Gc,\"\\r@h\"\\n@h\"\\t@h' `G^Rx=2}`B$U^mt`tINPUT$I`tSUBMIT')@g$U;x=3}`Bo@I@W`tIMAGE')"
+"n=o@I`5n){`y=^jn@v;`yt=x}}`2`y`Arqf`0t,un`1,e=t`4@e,u=e>=0?`G+t`30,e)+`G:'';`2u&&u`4`G+un+`G)>=0?@Yt`3e$O:''`Arq`0un`1,c=un`4`G),v=^V@Nsq'),q`e`5c<0)`2`Lv,'&`Grq^u$S;`2`L$p`G,'rq',0)`Asqp`0t,a`1,e="
+"t`4@e,q=e<0?'':@Yt`3e+1)`Rsqq[q]`e`5e>=0)`Lt`30,e),`G@b`20`Asqs`0$pq`1;^7u[u@oq;`20`Asq`0q`1,k=@Nsq',v=^Vk),x,c=0;^7q`E;^7u`E;^7q[q]`e;`Lv,'&`Gsqp',0);`L^C,`G@bv`e;^B@x^7u`Q)^7q[^7u[x]]+=(^7q[^7u[x"
+"]]?`G`j+x;^B@x^7q`Q&&^7q[x]^mx==q||c<2)){v+=(v#8'`j+^7q[x]+'`Px);c++}`2^Wk,v,0)`Awdl`7'e`G`Ks=`9,r=@p,b=^X(`F,\"^v\"),i,o,oc`5b)r=^S$f^Bi=0;i<s.d.`Ns`C@A{o=s.d.`Ns[i];oc=o.`k?\"\"+o.`k:\"\"`5(oc`4$"
+"B<0||oc`4\"@0oc(\")>=0)&&oc`4$W<0)^X(o,\"`k\",0,s.lc);}`2r^R`Fs`0`1`5`O>3^m!^Y$es.^f||`O#E`Hs.b^E$D^Q)s.$D^Q('`k',s.bc);`Bs.b^Eb.add^Q$A)s.b.add^Q$A('clic$a,false);`m^X(`F,'^v',0,`Fl)}`Avs`0x`1,v=s"
+".`c^N,g=s.`c^N#5k=@Nvsn^n^C+(g?'^ng`j,n=^Vk),e`Z,y=e.g@K);e.s@Ky+10@l1900:0))`5v){v*=100`5!n`H!^Wk,x,e))`20;n=x`ln%10000>v)`20}`21`Adyasmf`0t,m`H#Am&&m`4t)>=0)`21;`20`Adyasf`0t,m`1,i=t?t`4@e:-1,n,x"
+"`5i>=0&&m){`Kn=t`30,i),x=t`3i+1)`5`Lx,`G,'dyasm^um))`2n}`20`Auns`0`1,x=s.`MSele@6,l=s.`MList,m=s.`MM$s,n,i;^C=^C`8`5x&&l`H!m)m=`F`J^5`5!m.toLowerCase)m`e+m;l=l`8;m=m`8;n=`Ll,';`Gdyas^um)`5n)^C=n}i="
+"^C`4`G`Rfun=i<0?^C:^C`30,i)`Asa`0un`1;^C=un`5!@S)@S=un;`B(`G+@S+`G)`4$S<0)@S+=`G+un;^Cs()`Am_i`0n,a`1,m,f=n`30,1),r,l,i`5!`Wl)`Wl`E`5!`Wnl)`Wnl`U;m=`Wl[n]`5!a&&m&&m._e@Lm^s)`Wa(n)`5!m){m`E,m._c=@Nm"
+"';m^sn=`F`hn;m^sl=s^sl;m^sl[m^s@om;`F`hn++;m.s=s;m._n=n;m._l`U('_c`G_in`G_il`G_i`G_e`G_d`G_dl`Gs`Gn`G_r`G_g`G_g1`G_t`G_t1`G_x`G_x1`G_l'`Rm_l[@om;`Wnl[`Wnl`C]=n}`Bm._r@Lm._m){r=m._r;r._m=m;l=m._l;^B"
+"i=0;i<l`C@A@tm[l[i]])r[l[i]]=m[l[i]];r^sl[r^s@or;m=`Wl[@or`lf==f`D())s[@om;`2m`Am_a`7'n`Gg`G@t!g)g=#2;`Ks=`9,c=s[$V,m,x,f=0`5!c)c=`F$u$V`5c&&s_d)s[g]`7\"s\",s_ft(s_d(c)));x=s[g]`5!x)x=`F$ug];m=`Wi("
+"n,1)`5x){m^s=f=1`5(\"\"+x)`4\"fun@6\")>=0)x(s);`m`Wm(\"x\",n,x)}m=`Wi(n,1)`5@Zl)@Zl=@Z=0;`pt();`2f'`Rm_m`0t,n,d){t='^nt;`Ks=^S,i,x,m,f='^nt`5`Wl&&`Wnl)^Bi=0;i<`Wnl`C@A{x=`Wnl[i]`5!n||x==n){m=`Wi(x)"
+"`5m[t]`Ht`t_d')`21`5d)m#Fd);`mm#F)`lm[t+1]@Lm[f]`Hd)$gd);`m$g)}m[f]=1}}`20`AloadModule`0n,u,d,l`1,m,i=n`4':'),g=i<0?#2:n`3i+1),o=0,f,c=s.h?s.h:s.b,^d`5i>=0)n=n`30,i);m=`Wi(n)`5(l$e`Wa(n,g))&&u^Ed&&"
+"c^E$E`S`Hd){@Z=1;@Zl=1`l@3)u=`vu,@u:`Ghttps:^Rf`7'e`G`9.m_a(\"$J+'\",\"'+g+'\")^R^d`7's`Gf`Gu`Gc`G`Ke,o=0@Oo=s.$E`S(\"script\")`5o){@4=\"text/`o\"`5f)o.^v=f;o@I=u;c.appendChild(o)}`bo=0}`2o^Ro=^d(s"
+",f,u,c)}`mm=`Wi(n);m._e=1;`2m`Avo1`0t,a`Ha[t]||$P)^S#Da[t]`Avo2`0t,a`H#H{a#D^S[t]`5#H$P=1}`Adlt`7'`Ks=`9,d`Z,i,vo,f=0`5`pl)^Bi=0;i<`pl`C@A{vo=`pl[i]`5vo`H!`Wm(\"d\")||d`T-$C>=^8){`pl[i]=0;s.t(@i}`m"
+"f=1}`l`pi)clear@5`pi`Rdli=0`5f`H!`pi)`pi=set@5`pt,^8)}`m`pl=0'`Rdl`0vo`1,d`Z`5!@ivo`E;`L^9,`G$72',@i;$C=d`T`5!`pl)`pl`U;`pl[`pl`C]=vo`5!^8)^8=250;`pt()`At`0vo,id`1,trk=1,tm`Z,sed=Math&&@P$l?@P$r@P$"
+"l()*10000000000000):tm`T,@q='s'+@P$rtm`T/10800000)%10+sed,y=tm.g@K),vt=tm.getDate(@f`sMonth(@f'@ly+1900:y)+' `sHour$K:`sMinute$K:`sSecond$K `sDay()+' `sTimezoneO@z(),^d,^T=s.g^T(),ta`e,q`e,qs`e,$m`"
+"e,vb`E#1^9`Runs()`5!s.td){`Ktl=^T`J,a,o,i,x`e,c`e,v`e,p`e,bw`e,bh`e,^H0',k=^W@Ncc`G@p',0^q,hp`e,ct`e,pn=0,ps`5^3&&^3.prototype){^H1'`5j.m$s){^H2'`5tm.setUTCDate){^H3'`5^Y^E^f&&`O#E^H4'`5pn.toPrecis"
+"ion){^H5';a`U`5a.forEach){^H6';i=0;o`E;^d`7'o`G`Ke,i=0@Oi=new Iterator(o)`b}`2i^Ri=^d(o)`5i&&i.next)^H7'}}}}`l`O>=4)x=^iwidth+'x'+^i$j`5s.isns||s.^e`H`O>=3$Q`f(^q`5`O>=4){c=^ipixelDepth;bw=`F$z@2;b"
+"h=`F$z^b}}$8=s.n.p^J}`B^Y`H`O>=4$Q`f(^q;c=^i^2`5`O#E{bw=s.d.^L`S.o@z@2;bh=s.d.^L`S.o@z^b`5!s.^f^Eb){^d`7's`Gtl`G`Ke,hp=0`qh$b\");hp=s.b.isH$b(tl)?\"Y\":\"N\"`b}`2hp^Rhp=^d(s,tl);^d`7's`G`Ke,ct=0`qc"
+"lientCaps\");ct=s.b.`g`b}`2ct^Rct=^d(s)}}}`mr`e`l$8)^4pn<$8`C&&pn<30){ps=^j$8[pn].^w@v#9`5p`4ps)<0)p+=ps;pn++}s.^U=x;s.^2=c;s.`o^k=j;s.`f=v;s.`u@9=k;s.`z@2=bw;s.`z^b=bh;s.`g=ct;s.^x=hp;s.p^J=p;s.td"
+"=1`l@i{`L^9,`G$72',vb);`L^9,`G$71',@i`ls.useP^J)s.doP^J(s);`Kl=`F`J,r=^T.^L.`X`5!s.^I)s.^I=l^h?l^h:l`5!s.`X@Ls._1_`X#C`X=r;s._1_`X=1}`Wm('g')`5(vo&&$C)$e`Wm('d')`Hs.@G||^D){`Ko=^D?^D:s.@G`5!o)`2'';"
+"`Kp=$4'#4`i'),w=1,^G,@a,x=`yt,h,l,i,oc`5^D&&o==^D){^4o@Ln@W$HBODY'){o=o^0`S?o^0`S:o^0Node`5!o)`2'';^G;@a;x=`yt}oc=o.`k?''+o.`k:''`5(oc`4$B>=0&&oc`4\"@0oc(\")<0)||oc`4$W>=0)`2''}ta=n?o$T:1;h@ki=h`4'"
+"?^Rh=s.`N@c^3||i<0?h:h`30,i);l=s.`N`i?s.`N`i:s.ln(h);t=s.`N^M?s.`N^M`8:s.lt(h)`5t^mh||l))q+=$2=@G^n(t`td$I`te'?@y(t):'o')+(h?$2v1`Ph)`j+(l?$2v2`Pl)`j;`mtrk=0`5s.`x@T`H!p$L$4'^I^Rw=0}^G;i=o.sourceIn"
+"dex`5$3'^y')@g$3'^y^Rx=1;i=1`lp&&n@W)qs='&pid`P^jp,255))+(w#8p#3w`j+'&oid`P^jn@v)+(x#8o#3x`j+'&ot`Pt)+(i#8oi='+i`j}`l!trk@Lqs)`2'';@j=s.vs(sed)`5trk`H@j)$m=s.mr(@q,(vt#8t`Pvt)`j+s.hav()+q+(qs?qs:s."
+"rq(^C)),0,id,ta);qs`e;`Wm('t')`5s.p_r)s.p_r(`R`X`e}^7(qs);^z`p(@i;`l@i`L^9,`G$71',vb`R@G=^D=s.`N`i=s.`N^M=`F@0^y=s.ppu=^p=^pv1=^pv2=^pv3`e`5$x)`F@0@G=`F@0eo=`F@0`N`i=`F@0`N^M`e`5!id@Ls.tc#Ctc=1;s.f"
+"lush`a()}`2$m`Atl`0o,t,n,vo`1;s.@G=@wo`R`N^M=t;s.`N`i=n;s.t(@i}`5pg){`F@0co`0o){`K@J\"_\",1,#B`2@wo)`Awd@0gs`0$S{`K@J$p1,#B`2s.t()`Awd@0dc`0$S{`K@J$p#B`2s.t()}}@3=(`F`J`Y`8`4@us@d0`Rd=^L;s.b=s.d.bo"
+"dy`5$c`S#7`i#Ch=$c`S#7`i('HEAD')`5s.h)s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgent;@R=s.u`4'N$X6/^R`Kapn$F`i,v$F^k,ie=v`4$n'),o=s.u`4'@M '),i`5v`4'@M@d0||o>0)apn='@M';^Y$9`tMicrosoft Internet Explore"
+"r'`Risns$9`tN$X'`R^e$9`t@M'`R^f=(s.u`4'Mac@d0)`5o>0)`O`rs.u`3o+6));`Bie>0){`O=^Fi=v`3ie+5))`5`O>3)`O`ri)}`B@R>0)`O`rs.u`3@R+10));`m`O`rv`Rem=0`5^3#6^l){i=^g^3#6^l(256))`D(`Rem=(i`t%C4%80'?2:(i`t%U0"
+"100'?1:0))}s.sa(un`Rvl_l='^K,`cID,vmk,ppu,@E,`c`ispace,c`V,`u@7,#4`i,^I,`X,@H';^a=^Z+',^o,$R,server,#4^M,#0@6ID,purchaseID,@r,state,zip,$k,products,`N`i,`N^M';^B`Kn=1;n<51;n++)^a+=',prop$J+',eVar$J"
+"+',hier$J;^Z2=',^U,^2,`o^k,`f,`u@9,`z@2,`z^b,`g,^x,pe$q1$q2$q3,p^J';^a+=^Z2;^9=^a+',$i,`c^N,`c^N#5`MSele@6,`MList,`MM$s,`x^PLinks,`x@D,`x@T,`N@c^3,`N^PFile^Ms,`NEx`n,`NIn`n,`N@UVa$o`N@U^Qs,`N`is,@G"
+",eo';$x=pg#1^9)`5!ss)`Fs()",w=window,l=w.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=v.indexOf('MSIE '),m=u.indexOf('Netscape6/'),a,i,s;if(un){un=un.toLowerCase();if(l)for(i=0;i<l.length;i++){s=l[i];if(s._c=='s_c'){if(s.oun==un)return s;else if(s.fs&&s.sa&&s.fs(s.oun,un)){s.sa(un);return s}}}}
w.s_r=new Function("x","o","n","var i=x.indexOf(o);if(i>=0&&x.split)x=(x.split(o)).join(n);else while(i>=0){x=x.substring(0,i)+n+x.substring(i+o.length);i=x.indexOf(o)}return x");w.s_d=new Function("x","var t='`^@$#',l='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',d,n=0,b,k,w,i=x.lastIndexOf('~~');if(i>0){d=x.substring(0,i);x=x.substring(i+2);while(d){w=d;i"
+"=d.indexOf('~');if(i>0){w=d.substring(0,i);d=d.substring(i+1)}else d='';b=(n-n%62)/62;k=n-b*62;k=t.substring(b,b+1)+l.substring(k,k+1);x=s_r(x,k,w);n++}for(i=0;i<5;i++){w=t.substring(i,i+1);x=s_r(x"
+",w+' ',w)}}return x");w.s_fe=new Function("c","return s_r(s_r(s_r(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");w.s_fa=new Function("f","var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"
+"a");w.s_ft=new Function("c","c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"
+"f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"
+"'+c.substring(e+1);s=c.indexOf('=function(')}return c;");c=s_d(c);if(e>0){a=parseInt(i=v.substring(e+5));if(a>3)a=parseFloat(i)}else if(m>0)a=parseFloat(u.substring(m+10));else a=parseFloat(v);if(a>=5&&v.indexOf('Opera')<0&&u.indexOf('Opera')<0){w.s_c=new Function("un","pg","ss","var s=this;"+c);return new s_c(un,pg,ss)}else s=new Function("un","pg","ss","var s=new Object;"+s_ft(c)+";return s");return s(un,pg,ss)}
AddNamespace("NPR.onready");NPR.onready.rsspodcast=function(){$('.podicon').click(function(){try{$('.podbox').hide();$('.feed ul li').css("z-index","0");$(this).parent('li').css("z-index","90");$(this).siblings('.podbox').show();NPR.metrics.pageEvent(NPR.metrics.constants.CLICK_PODCAST_LINK);return false;}
catch(e){NPR.messaging.exception(e,'podicon onclick','rsspodcast.js',NPR.messaging.constants.RSS_PODCAST_JS_ERROR);}});$('.closethis').click(function(){try{$('.podbox').hide();return false;}
catch(e){NPR.messaging.exception(e,'closethis onclick','rsspodcast.js',NPR.messaging.constants.RSS_PODCAST_JS_ERROR);}});$('.subitunes,.subzune').click(function(){try{$('.podbox').hide();}
catch(e){NPR.messaging.exception(e,'subitunes or subzune onclick','rsspodcast.js',NPR.messaging.constants.RSS_PODCAST_JS_ERROR);}});$('.podurl').focus(function(){try{if(this.value==this.defaultValue){this.select();}}
catch(e){NPR.messaging.exception(e,'podurl focus','rsspodcast.js',NPR.messaging.constants.RSS_PODCAST_JS_ERROR);}});$('.rssicon').click(function(){try{NPR.metrics.pageEvent(NPR.metrics.constants.CLICK_RSS_LINK);}
catch(e){NPR.messaging.exception(e,'rssicon onclick','rsspodcast.js',NPR.messaging.constants.RSS_PODCAST_JS_ERROR);}});};$(document).ready(NPR.onready.rsspodcast);jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});(function(b,a,c){b.fn.jScrollPane=function(e){function d(D,O){var az,Q=this,Y,ak,v,am,T,Z,y,q,aA,aF,av,i,I,h,j,aa,U,aq,X,t,A,ar,af,an,G,l,au,ay,x,aw,aI,f,L,aj=true,P=true,aH=false,k=false,ap=D.clone(false,false).empty(),ac=b.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";aI=D.css("paddingTop")+" "+D.css("paddingRight")+" "+D.css("paddingBottom")+" "+D.css("paddingLeft");f=(parseInt(D.css("paddingLeft"),10)||0)+(parseInt(D.css("paddingRight"),10)||0);function at(aR){var aM,aO,aN,aK,aJ,aQ,aP=false,aL=false;az=aR;if(Y===c){aJ=D.scrollTop();aQ=D.scrollLeft();D.css({overflow:"hidden",padding:0});ak=D.innerWidth()+f;v=D.innerHeight();D.width(ak);Y=b('<div class="jspPane" />').css("padding",aI).append(D.children());am=b('<div class="jspContainer" />').css({width:ak+"px",height:v+"px"}).append(Y).appendTo(D)}else{D.css("width","");aP=az.stickToBottom&&K();aL=az.stickToRight&&B();aK=D.innerWidth()+f!=ak||D.outerHeight()!=v;if(aK){ak=D.innerWidth()+f;v=D.innerHeight();am.css({width:ak+"px",height:v+"px"})}if(!aK&&L==T&&Y.outerHeight()==Z){D.width(ak);return}L=T;Y.css("width","");D.width(ak);am.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}Y.css("overflow","auto");if(aR.contentWidth){T=aR.contentWidth}else{T=Y[0].scrollWidth}Z=Y[0].scrollHeight;Y.css("overflow","");y=T/ak;q=Z/v;aA=q>1;aF=y>1;if(!(aF||aA)){D.removeClass("jspScrollable");Y.css({top:0,width:am.width()-f});n();E();R();w();ai()}else{D.addClass("jspScrollable");aM=az.maintainPosition&&(I||aa);if(aM){aO=aD();aN=aB()}aG();z();F();if(aM){N(aL?(T-ak):aO,false);M(aP?(Z-v):aN,false)}J();ag();ao();if(az.enableKeyboardNavigation){S()}if(az.clickOnTrack){p()}C();if(az.hijackInternalLinks){m()}}if(az.autoReinitialise&&!aw){aw=setInterval(function(){at(az)},az.autoReinitialiseDelay)}else{if(!az.autoReinitialise&&aw){clearInterval(aw)}}aJ&&D.scrollTop(0)&&M(aJ,false);aQ&&D.scrollLeft(0)&&N(aQ,false);D.trigger("jsp-initialised",[aF||aA])}function aG(){if(aA){am.append(b('<div class="jspVerticalBar" />').append(b('<div class="jspCap jspCapTop" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragTop" />'),b('<div class="jspDragBottom" />'))),b('<div class="jspCap jspCapBottom" />')));U=am.find(">.jspVerticalBar");aq=U.find(">.jspTrack");av=aq.find(">.jspDrag");if(az.showArrows){ar=b('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",aE(0,-1)).bind("click.jsp",aC);af=b('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",aE(0,1)).bind("click.jsp",aC);if(az.arrowScrollOnHover){ar.bind("mouseover.jsp",aE(0,-1,ar));af.bind("mouseover.jsp",aE(0,1,af))}al(aq,az.verticalArrowPositions,ar,af)}t=v;am.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){t-=b(this).outerHeight()});av.hover(function(){av.addClass("jspHover")},function(){av.removeClass("jspHover")}).bind("mousedown.jsp",function(aJ){b("html").bind("dragstart.jsp selectstart.jsp",aC);av.addClass("jspActive");var s=aJ.pageY-av.position().top;b("html").bind("mousemove.jsp",function(aK){V(aK.pageY-s,false)}).bind("mouseup.jsp mouseleave.jsp",ax);return false});o()}}function o(){aq.height(t+"px");I=0;X=az.verticalGutter+aq.outerWidth();Y.width(ak-X-f);try{if(U.position().left===0){Y.css("margin-left",X+"px")}}catch(s){}}function z(){if(aF){am.append(b('<div class="jspHorizontalBar" />').append(b('<div class="jspCap jspCapLeft" />'),b('<div class="jspTrack" />').append(b('<div class="jspDrag" />').append(b('<div class="jspDragLeft" />'),b('<div class="jspDragRight" />'))),b('<div class="jspCap jspCapRight" />')));an=am.find(">.jspHorizontalBar");G=an.find(">.jspTrack");h=G.find(">.jspDrag");if(az.showArrows){ay=b('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",aE(-1,0)).bind("click.jsp",aC);x=b('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",aE(1,0)).bind("click.jsp",aC);if(az.arrowScrollOnHover){ay.bind("mouseover.jsp",aE(-1,0,ay));x.bind("mouseover.jsp",aE(1,0,x))}al(G,az.horizontalArrowPositions,ay,x)}h.hover(function(){h.addClass("jspHover")},function(){h.removeClass("jspHover")}).bind("mousedown.jsp",function(aJ){b("html").bind("dragstart.jsp selectstart.jsp",aC);h.addClass("jspActive");var s=aJ.pageX-h.position().left;b("html").bind("mousemove.jsp",function(aK){W(aK.pageX-s,false)}).bind("mouseup.jsp mouseleave.jsp",ax);return false});l=am.innerWidth();ah()}}function ah(){am.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){l-=b(this).outerWidth()});G.width(l+"px");aa=0}function F(){if(aF&&aA){var aJ=G.outerHeight(),s=aq.outerWidth();t-=aJ;b(an).find(">.jspCap:visible,>.jspArrow").each(function(){l+=b(this).outerWidth()});l-=s;v-=s;ak-=aJ;G.parent().append(b('<div class="jspCorner" />').css("width",aJ+"px"));o();ah()}if(aF){Y.width((am.outerWidth()-f)+"px")}Z=Y.outerHeight();q=Z/v;if(aF){au=Math.ceil(1/y*l);if(au>az.horizontalDragMaxWidth){au=az.horizontalDragMaxWidth}else{if(au<az.horizontalDragMinWidth){au=az.horizontalDragMinWidth}}h.width(au+"px");j=l-au;ae(aa)}if(aA){A=Math.ceil(1/q*t);if(A>az.verticalDragMaxHeight){A=az.verticalDragMaxHeight}else{if(A<az.verticalDragMinHeight){A=az.verticalDragMinHeight}}av.height(A+"px");i=t-A;ad(I)}}function al(aK,aM,aJ,s){var aO="before",aL="after",aN;if(aM=="os"){aM=/Mac/.test(navigator.platform)?"after":"split"}if(aM==aO){aL=aM}else{if(aM==aL){aO=aM;aN=aJ;aJ=s;s=aN}}aK[aO](aJ)[aL](s)}function aE(aJ,s,aK){return function(){H(aJ,s,this,aK);this.blur();return false}}function H(aM,aL,aP,aO){aP=b(aP).addClass("jspActive");var aN,aK,aJ=true,s=function(){if(aM!==0){Q.scrollByX(aM*az.arrowButtonSpeed)}if(aL!==0){Q.scrollByY(aL*az.arrowButtonSpeed)}aK=setTimeout(s,aJ?az.initialDelay:az.arrowRepeatFreq);aJ=false};s();aN=aO?"mouseout.jsp":"mouseup.jsp";aO=aO||b("html");aO.bind(aN,function(){aP.removeClass("jspActive");aK&&clearTimeout(aK);aK=null;aO.unbind(aN)})}function p(){w();if(aA){aq.bind("mousedown.jsp",function(aO){if(aO.originalTarget===c||aO.originalTarget==aO.currentTarget){var aM=b(this),aP=aM.offset(),aN=aO.pageY-aP.top-I,aK,aJ=true,s=function(){var aS=aM.offset(),aT=aO.pageY-aS.top-A/2,aQ=v*az.scrollPagePercent,aR=i*aQ/(Z-v);if(aN<0){if(I-aR>aT){Q.scrollByY(-aQ)}else{V(aT)}}else{if(aN>0){if(I+aR<aT){Q.scrollByY(aQ)}else{V(aT)}}else{aL();return}}aK=setTimeout(s,aJ?az.initialDelay:az.trackClickRepeatFreq);aJ=false},aL=function(){aK&&clearTimeout(aK);aK=null;b(document).unbind("mouseup.jsp",aL)};s();b(document).bind("mouseup.jsp",aL);return false}})}if(aF){G.bind("mousedown.jsp",function(aO){if(aO.originalTarget===c||aO.originalTarget==aO.currentTarget){var aM=b(this),aP=aM.offset(),aN=aO.pageX-aP.left-aa,aK,aJ=true,s=function(){var aS=aM.offset(),aT=aO.pageX-aS.left-au/2,aQ=ak*az.scrollPagePercent,aR=j*aQ/(T-ak);if(aN<0){if(aa-aR>aT){Q.scrollByX(-aQ)}else{W(aT)}}else{if(aN>0){if(aa+aR<aT){Q.scrollByX(aQ)}else{W(aT)}}else{aL();return}}aK=setTimeout(s,aJ?az.initialDelay:az.trackClickRepeatFreq);aJ=false},aL=function(){aK&&clearTimeout(aK);aK=null;b(document).unbind("mouseup.jsp",aL)};s();b(document).bind("mouseup.jsp",aL);return false}})}}function w(){if(G){G.unbind("mousedown.jsp")}if(aq){aq.unbind("mousedown.jsp")}}function ax(){b("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(av){av.removeClass("jspActive")}if(h){h.removeClass("jspActive")}}function V(s,aJ){if(!aA){return}if(s<0){s=0}else{if(s>i){s=i}}if(aJ===c){aJ=az.animateScroll}if(aJ){Q.animate(av,"top",s,ad)}else{av.css("top",s);ad(s)}}function ad(aJ){if(aJ===c){aJ=av.position().top}am.scrollTop(0);I=aJ;var aM=I===0,aK=I==i,aL=aJ/i,s=-aL*(Z-v);if(aj!=aM||aH!=aK){aj=aM;aH=aK;D.trigger("jsp-arrow-change",[aj,aH,P,k])}u(aM,aK);Y.css("top",s);D.trigger("jsp-scroll-y",[-s,aM,aK]).trigger("scroll")}function W(aJ,s){if(!aF){return}if(aJ<0){aJ=0}else{if(aJ>j){aJ=j}}if(s===c){s=az.animateScroll}if(s){Q.animate(h,"left",aJ,ae)}else{h.css("left",aJ);ae(aJ)}}function ae(aJ){if(aJ===c){aJ=h.position().left}am.scrollTop(0);aa=aJ;var aM=aa===0,aL=aa==j,aK=aJ/j,s=-aK*(T-ak);if(P!=aM||k!=aL){P=aM;k=aL;D.trigger("jsp-arrow-change",[aj,aH,P,k])}r(aM,aL);Y.css("left",s);D.trigger("jsp-scroll-x",[-s,aM,aL]).trigger("scroll")}function u(aJ,s){if(az.showArrows){ar[aJ?"addClass":"removeClass"]("jspDisabled");af[s?"addClass":"removeClass"]("jspDisabled")}}function r(aJ,s){if(az.showArrows){ay[aJ?"addClass":"removeClass"]("jspDisabled");x[s?"addClass":"removeClass"]("jspDisabled")}}function M(s,aJ){var aK=s/(Z-v);V(aK*i,aJ)}function N(aJ,s){var aK=aJ/(T-ak);W(aK*j,s)}function ab(aW,aR,aK){var aO,aL,aM,s=0,aV=0,aJ,aQ,aP,aT,aS,aU;try{aO=b(aW)}catch(aN){return}aL=aO.outerHeight();aM=aO.outerWidth();am.scrollTop(0);am.scrollLeft(0);while(!aO.is(".jspPane")){s+=aO.position().top;aV+=aO.position().left;aO=aO.offsetParent();if(/^body|html$/i.test(aO[0].nodeName)){return}}aJ=aB();aP=aJ+v;if(s<aJ||aR){aS=s-az.verticalGutter}else{if(s+aL>aP){aS=s-v+aL+az.verticalGutter}}if(aS){M(aS,aK)}aQ=aD();aT=aQ+ak;if(aV<aQ||aR){aU=aV-az.horizontalGutter}else{if(aV+aM>aT){aU=aV-ak+aM+az.horizontalGutter}}if(aU){N(aU,aK)}}function aD(){return-Y.position().left}function aB(){return-Y.position().top}function K(){var s=Z-v;return(s>20)&&(s-aB()<10)}function B(){var s=T-ak;return(s>20)&&(s-aD()<10)}function ag(){am.unbind(ac).bind(ac,function(aM,aN,aL,aJ){var aK=aa,s=I;Q.scrollBy(aL*az.mouseWheelSpeed,-aJ*az.mouseWheelSpeed,false);return aK==aa&&s==I})}function n(){am.unbind(ac)}function aC(){return false}function J(){Y.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(s){ab(s.target,false)})}function E(){Y.find(":input,a").unbind("focus.jsp")}function S(){var s,aJ,aL=[];aF&&aL.push(an[0]);aA&&aL.push(U[0]);Y.focus(function(){D.focus()});D.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(aO){if(aO.target!==this&&!(aL.length&&b(aO.target).closest(aL).length)){return}var aN=aa,aM=I;switch(aO.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:s=aO.keyCode;aK();break;case 35:M(Z-v);s=null;break;case 36:M(0);s=null;break}aJ=aO.keyCode==s&&aN!=aa||aM!=I;return!aJ}).bind("keypress.jsp",function(aM){if(aM.keyCode==s){aK()}return!aJ});if(az.hideFocus){D.css("outline","none");if("hideFocus"in am[0]){D.attr("hideFocus",true)}}else{D.css("outline","");if("hideFocus"in am[0]){D.attr("hideFocus",false)}}function aK(){var aN=aa,aM=I;switch(s){case 40:Q.scrollByY(az.keyboardSpeed,false);break;case 38:Q.scrollByY(-az.keyboardSpeed,false);break;case 34:case 32:Q.scrollByY(v*az.scrollPagePercent,false);break;case 33:Q.scrollByY(-v*az.scrollPagePercent,false);break;case 39:Q.scrollByX(az.keyboardSpeed,false);break;case 37:Q.scrollByX(-az.keyboardSpeed,false);break}aJ=aN!=aa||aM!=I;return aJ}}function R(){D.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function C(){if(location.hash&&location.hash.length>1){var aL,aJ,aK=escape(location.hash);try{aL=b(aK)}catch(s){return}if(aL.length&&Y.find(aK)){if(am.scrollTop()===0){aJ=setInterval(function(){if(am.scrollTop()>0){ab(aK,true);b(document).scrollTop(am.position().top);clearInterval(aJ)}},50)}else{ab(aK,true);b(document).scrollTop(am.position().top)}}}}function ai(){b("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function m(){ai();b("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var s=this.href.split("#"),aJ;if(s.length>1){aJ=s[1];if(aJ.length>0&&Y.find("#"+aJ).length>0){ab("#"+aJ,true);return false}}})}function ao(){var aK,aJ,aM,aL,aN,s=false;am.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(aO){var aP=aO.originalEvent.touches[0];aK=aD();aJ=aB();aM=aP.pageX;aL=aP.pageY;aN=false;s=true}).bind("touchmove.jsp",function(aR){if(!s){return}var aQ=aR.originalEvent.touches[0],aP=aa,aO=I;Q.scrollTo(aK+aM-aQ.pageX,aJ+aL-aQ.pageY);aN=aN||Math.abs(aM-aQ.pageX)>5||Math.abs(aL-aQ.pageY)>5;return aP==aa&&aO==I}).bind("touchend.jsp",function(aO){s=false}).bind("click.jsp-touchclick",function(aO){if(aN){aN=false;return false}})}function g(){var s=aB(),aJ=aD();D.removeClass("jspScrollable").unbind(".jsp");D.replaceWith(ap.append(Y.children()));ap.scrollTop(s);ap.scrollLeft(aJ)}b.extend(Q,{reinitialise:function(aJ){aJ=b.extend({},az,aJ);at(aJ)},scrollToElement:function(aK,aJ,s){ab(aK,aJ,s)},scrollTo:function(aK,s,aJ){N(aK,aJ);M(s,aJ)},scrollToX:function(aJ,s){N(aJ,s)},scrollToY:function(s,aJ){M(s,aJ)},scrollToPercentX:function(aJ,s){N(aJ*(T-ak),s)},scrollToPercentY:function(aJ,s){M(aJ*(Z-v),s)},scrollBy:function(aJ,s,aK){Q.scrollByX(aJ,aK);Q.scrollByY(s,aK)},scrollByX:function(s,aK){var aJ=aD()+Math[s<0?"floor":"ceil"](s),aL=aJ/(T-ak);W(aL*j,aK)},scrollByY:function(s,aK){var aJ=aB()+Math[s<0?"floor":"ceil"](s),aL=aJ/(Z-v);V(aL*i,aK)},positionDragX:function(s,aJ){W(s,aJ)},positionDragY:function(aJ,s){V(aJ,s)},animate:function(aJ,aM,s,aL){var aK={};aK[aM]=s;aJ.animate(aK,{duration:az.animateDuration,easing:az.animateEase,queue:false,step:aL})},getContentPositionX:function(){return aD()},getContentPositionY:function(){return aB()},getContentWidth:function(){return T},getContentHeight:function(){return Z},getPercentScrolledX:function(){return aD()/(T-ak)},getPercentScrolledY:function(){return aB()/(Z-v)},getIsScrollableH:function(){return aF},getIsScrollableV:function(){return aA},getContentPane:function(){return Y},scrollToBottom:function(s){V(i,s)},hijackInternalLinks:function(){m()},destroy:function(){g()}});at(O)}e=b.extend({},b.fn.jScrollPane.defaults,e);b.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){e[this]=e[this]||e.speed});return this.each(function(){var f=b(this),g=f.data("jsp");if(g){g.reinitialise(e)}else{g=new d(f,e);f.data("jsp",g)}})};b.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);AddNamespace("NPR.onready");NPR.onready.globalnav=function(){jQuery.easing.def='easeOutQuad';var speed=250;reinitialiseScrollPane=function(){$('.stationdata').jScrollPane({showArrows:true,scrollbarWidth:13});};updatePane=function(){var lnkClasses=$(this).attr("class");var lnkClass=lnkClasses.substr(0,lnkClasses.length-7);var lnkSelected=$('.stationnav .selected')[0];if(!(lnkSelected===this)){$('.stationnav .selected').addClass("flyout").removeClass("selected");$(this).removeClass("flyout").addClass("selected");$('.stationdata .selected').removeClass("selected");var lnkArr=$('.stationnav a');var numLinks=lnkArr.length;var i=0;for(i=0;i<numLinks;i++){if(this===lnkArr[i]){break;}}
numPix=(i*20)+13;$('.stationdata_arrow').animate({"top":numPix+"px"},speed,function(){reinitialiseScrollPane();});switch(lnkClass)
{case"lnkaudio":$('.sd_audio').addClass("selected");break;case"lnkpodcast":$('.sd_podcast').addClass("selected");break;case"lnknewsfeed":$('.sd_newsfeed').addClass("selected");break;case"lnkcommunity":$('.sd_community').addClass("selected");break;}}};$('.headercontent .support .tab a').toggle(function(){$('.ddstn').slideDown(speed);reinitialiseScrollPane();$('.headercontent').addClass("dd_active");NPR.metrics.pageEvent(NPR.metrics.constants.STATION_DRAWER_OPEN);},function(){$('.ddstn').slideUp(speed,function(){$('.headercontent').removeClass("dd_active");});});$('.ddstn .closemenu').click(function(){$('.headercontent .support .tab a').click();});$('#nav li.navprograms a').click(function(){if($('#menuprograms').css("display")==="none"){$('#menulisten').slideUp(speed,function(){$('li.navlisten').css('background-color','#333');$('li.navlisten a').removeClass("selected");$('li.navprograms').css('background-color','#ccc');$('li.navprograms a').addClass("selected");$('#menuprograms').slideDown(speed,"easeInQuad");});}else{$('#menuprograms').slideUp(speed,function(){$('li.navprograms').css('background-color','#000');$('li.navprograms a').removeClass("selected");});}});$('#menuprograms .closemenu').click(function(){$('li.navprograms a').click();});$('#nav li.navlisten a').click(function(){if($('#menulisten').css("display")==="none"){$('#menuprograms').slideUp(speed,function(){$('li.navprograms').css('background-color','#000');$('li.navprograms a').removeClass("selected");$('li.navlisten').css('background-color','#80bdc4');$('li.navlisten a').addClass("selected");$('#menulisten').slideDown(speed,"easeInQuad");NPR.metrics.pageEvent(NPR.metrics.constants.LISTEN_DRAWER_OPEN);});}else{$('#menulisten').slideUp(speed,function(){$('li.navlisten').css('background-color','#333');$('li.navlisten a').removeClass("selected");});}});$('#menulisten .closemenu').click(function(){$('li.navlisten a').click();});$("#music_nav .topics ul.main a.listen, #tab_listen, #dd_listen").hover(function(){var shimWidth=$("#dd_listen").width()-16;var shimHeight=$("#dd_listen").height()-16;$(".dd_shim").css({'width':shimWidth,'height':shimHeight,'left':'68px'});$("#tab_listen, #dd_listen").css({'left':'60px'});},function(){$(".dd_shim, #tab_listen, #dd_listen").css({'left':'-5000px'});});$("#music_nav .topics ul.main a.concerts, #tab_concerts, #dd_concerts").hover(function(){var shimWidth=$("#dd_concerts").width()-16;var shimHeight=$("#dd_concerts").height()-16;$(".dd_shim").css({'width':shimWidth,'height':shimHeight,'left':'162px'});$("#tab_concerts, #dd_concerts").css({'left':'154px'});},function(){$(".dd_shim, #tab_concerts, #dd_concerts").css({'left':'-5000px'});});$("#music_nav .topics ul.main a.programs, #tab_programs, #dd_programs").hover(function(){var shimWidth=$("#dd_programs").width()-16;var shimHeight=$("#dd_programs").height()-16;$(".dd_shim").css({'width':shimWidth,'height':shimHeight,'left':'469px'});$("#tab_programs, #dd_programs").css({'left':'462px'});},function(){$(".dd_shim, #tab_programs, #dd_programs").css({'left':'-5000px'});});};$(document).ready(NPR.onready.globalnav);AddNamespace("NPR.onready");NPR.onready.fontsize=function(){var savedTextSize=checkCookie("NPRTextSize");switch(savedTextSize){case"1":$('#storytext, .childstory, .transcript').css('font-size','1em');break;case"2":$('#storytext, .childstory, .transcript').css('font-size','1.1em');break;case"3":$('#storytext, .childstory, .transcript').css('font-size','1.2em');break;default:break;}
$(".textsize .normal").click(function(){$('#storytext, .childstory, .transcript').css('font-size','1em');setCookie("NPRTextSize",100,"1");});$(".textsize .big").click(function(){$('#storytext, .childstory, .transcript').css('font-size','1.1em');setCookie("NPRTextSize",100,"2");});$(".textsize .bigger").click(function(){$('#storytext, .childstory, .transcript').css('font-size','1.2em');setCookie("NPRTextSize",100,"3");});};$(document).ready(NPR.onready.fontsize);AddNamespace("NPR.onready");NPR.onready.sharepop=function(){$("a.share").click(function(){var sharePop=$(this).siblings(".sharepop");var shareSelected=$(this).siblings(".shareselected");$(sharePop).add(shareSelected).show();$(sharePop).add(shareSelected).hover(function(){$(sharePop).add(shareSelected).show();},function(){$(sharePop).add(shareSelected).hide();});});$(".shareselected a").click(function(){var sharePop=$(this).parents(".shareStoryTool").children(".sharepop");var shareSelected=$(this).parents(".shareStoryTool").children(".shareselected");$(sharePop).add(shareSelected).hide();});};$(document).ready(NPR.onready.sharepop);AddNamespace('NPR.onready');NPR.onready.enlarge=function(){var zoomStatus=0;var zoomHtml='<div id="zoom_overlay"></div> \
    <div id="zoom" style="position:absolute; left:-5000px;"> \
                 <div id="zoom_content"></div> \
                   <a href="javascript:;" title="Close" id="zoom_close"></a> \
       <a href="javascript:;" title="Close" class="closezoom">close</a> \
                </div>';$('body').append(zoomHtml);doImageEnlargement=function(e){var yCoord=e.pageY-150;var content_div=$(this).parents('.bucketwrap').children('.enlarge_html');var measure_div=$(this).parents('.bucketwrap').children('.enlarge_measure');var imgWidth=$(measure_div).width();var imgHeight=$(measure_div).height();if(imgWidth>imgHeight){if(imgWidth>650){imgWidth=650}}else{if(imgHeight>650){imgHeight=650}
$(measure_div).children('img:first').css("height",imgHeight+"px");imgWidth=$(measure_div).width();}
$('#zoom_content').html($(measure_div).html()+$(content_div).html()).css("width",imgWidth+"px");$('#zoom_content').children('img:first').css("width",imgWidth+"px");loadZoomBg();centerZoom(yCoord);NPR.metrics.pageEvent(NPR.metrics.constants.IMAGE_ENLARGEMENT);};$('a.enlargeicon, img.enlarge').click(doImageEnlargement);$('#zoom_overlay, #zoom').click(function(){disableZoom();});function loadZoomBg(){if(zoomStatus==0){$("#zoom_overlay").show();zoomStatus=1;}}
function disableZoom(){if(zoomStatus==1){$("#zoom_overlay").hide();$("#zoom").css({"left":-5000});zoomStatus=0;}}
function centerZoom(yCoord){var windowWidth=document.documentElement.clientWidth;var windowHeight=document.documentElement.clientHeight;var zoomHeight=$("#zoom").height();var zoomWidth=$("#zoom").width();var width=window.innerWidth||(window.document.documentElement.clientWidth||window.document.body.clientWidth);var height=window.innerHeight||(window.document.documentElement.clientHeight||window.document.body.clientHeight);var x=window.pageXOffset||(window.document.documentElement.scrollLeft||window.document.body.scrollLeft);var y=window.pageYOffset||(window.document.documentElement.scrollTop||window.document.body.scrollTop);var window_size={'width':width,'height':height,'x':x,'y':y}
var width=zoomWidth+0;var height=zoomHeight+0;var d=window_size;var newTop=Math.max((d.height/2)-(height/2)+y,0);var newLeft=(d.width/2)-(width/2);var fromTop=y+((d.height/2)-(height/2));$("#zoom").css({"position":"absolute","top":fromTop,"left":newLeft});$("#zoom_overlay").css({"position":"absolute","top":"0px","height":$(document).height(),"left":"0px"});}};$(document).ready(NPR.onready.enlarge);if(!this.JSON){JSON=function(){function f(n){return n<10?'0'+n:n;}
Date.prototype.toJSON=function(key){return this.getUTCFullYear()+'-'+
f(this.getUTCMonth()+1)+'-'+
f(this.getUTCDate())+'T'+
f(this.getUTCHours())+':'+
f(this.getUTCMinutes())+':'+
f(this.getUTCSeconds())+'Z';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapeable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapeable.lastIndex=0;return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==='string'){return c;}
return'\\u'+('0000'+
(+(a.charCodeAt(0))).toString(16)).slice(-4);})+'"':'"'+string+'"';}
function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
if(typeof rep==='function'){value=rep.call(holder,key,value);}
switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
gap+=indent;partial=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
v=partial.length===0?'[]':gap?'[\n'+gap+
partial.join(',\n'+gap)+'\n'+
mind+']':'['+partial.join(',')+']';gap=mind;return v;}
if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==='string'){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+
mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
return{stringify:function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
return str('',{'':value});},parse:function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
return reviver.call(holder,key,value);}
cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+('0000'+
(+(a.charCodeAt(0))).toString(16)).slice(-4);});}
if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
throw new SyntaxError('JSON.parse');}};}();}
NPR.community.featureCommentPartOne=function(commentKeyAsString){try{var requestBatch=new RequestBatch();var commentKey=new CommentKey(commentKeyAsString);requestBatch.AddToRequest(commentKey);requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.featureCommentPartTwo);}
catch(e){NPR.messaging.exception(e,'Failed to feature comment '+commentKeyAsString+' on story page ID: '+NPR.community.storyId,'NPR.community.featureCommentPartOne',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.featureCommentPartTwo=function(responseBatch){try{if(responseBatch.Responses.length>0){var requestBatch=new RequestBatch();var comment=responseBatch.Responses[0].Comment;if(comment===null||comment===undefined){NPR.messaging.warning('Failed to get a comment when trying to feature comment on story page ID: '+NPR.community.storyId+' msg: '+responseBatch.Messages[0].Message,'NPR.community.featureCommentPartTwo',NPR.messaging.constants.COMMUNITY_JS_ERROR);return;}
comment.CommentBody=$('#comm').val();var jsonComment=YAHOO.lang.JSON.stringify(comment);var allFeaturedListItem=new UpdateCustomItemAction(new CustomItemKey(comment.CommentKey.Key),String(NPR.community.storyId),'text/json',NPR.community.storyTitle,jsonComment,false);requestBatch.AddToRequest(allFeaturedListItem);var featuredList=new CustomCollectionKey('Featured'+String(NPR.community.storyId));var addToFeaturedList=new InsertIntoCollectionAction(featuredList,new CustomItemKey(comment.CommentKey.Key),0);requestBatch.AddToRequest(addToFeaturedList);NPR.community.renderSingleFeaturedCommentsLink(comment.CommentKey.Key);var allFeaturedList=new InsertIntoCollectionAction(new CustomCollectionKey('Featured'),new CustomItemKey(comment.CommentKey.Key),0);requestBatch.AddToRequest(allFeaturedList);requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.featureCommentFinished);}
else{NPR.messaging.warning('Failed to get even one response when trying to feature comment on story page ID: '+NPR.community.storyId+' msg: '+responseBatch.Messages[0].Message,'NPR.community.featureCommentPartTwo',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
catch(e){NPR.messaging.exception(e,'Failed to feature comment on story page ID: '+NPR.community.storyId,'NPR.community.featureCommentPartTwo',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.featureCommentFinished=function(responseBatch){try{var message=responseBatch.Messages[0];if(message.Message!=='ok'){NPR.messaging.warning('Failed to create feature collection for story ID: '+NPR.community.storyId+' with message '+message.Message,'NPR.community.featureCommentFinished',NPR.messaging.constants.COMMUNITY_JS_ERROR);}
else{window.parent.NPR.community.loadStoryInformation();}
NPR.community.closeTheOverlayIframe();}
catch(e){NPR.messaging.exception(e,'Failed to create feature collection for story ID: '+NPR.community.storyId,'NPR.community.featureCommentFinished',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.requestPromoFeaturedComments=function(incStoryId){try{var storyId=incStoryId;var requestBatch2=new RequestBatch();var numPerPage=1;var onPage=1;requestBatch2.AddToRequest(new CustomCollectionPage(new CustomCollectionKey('Featured'+String(storyId)),numPerPage,onPage,"PositionDescending"));requestBatch2.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderPromoFeatureCommentsLinks);}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'requestPromoFeaturedComments',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderPromoFeatureCommentsLinks=function(responseBatch){try{if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined){NPR.messaging.warning('No response batch','renderPromoFeatureCommentsLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);return;}
var anyFeaturedComments=false;if(responseBatch.Responses.length>0){var featuredCollection=responseBatch.Responses[0].CustomCollectionPage;if(featuredCollection!==null&&featuredCollection!==undefined&&featuredCollection.Items.length>0){var storyId=responseBatch.Responses[0].CustomCollectionPage.CustomCollectionKey.Key;storyId=storyId.split("Featured")[1];var containerDiv=$('#featuredCommentsPromo'+storyId);if(containerDiv!==null&&containerDiv!==undefined){for(var f=0;f<featuredCollection.Items.length;f++){var customItem=featuredCollection.Items[f];if(customItem.CustomItem===undefined){continue;}
var comment=JSON.parse(customItem.CustomItem.Content);var newCommentHtml='<div class="buckettop">&nbsp;</div>';newCommentHtml+='<div class="bucket">';newCommentHtml+='<p>'+NPR.community.urldecode(comment.CommentBody)+'</p>';newCommentHtml+='</div>';newCommentHtml+='<div class="bucketbottom">&nbsp;</div>';newCommentHtml+='<p class="byline">Comment from ';newCommentHtml+='<a href="/templates/community/persona.php?uid='+comment.Author.UserKey.Key+'">';newCommentHtml+=comment.Author.DisplayName+'</a> on</p>';containerDiv.append(newCommentHtml);anyFeaturedComments=true;}}}}
else{NPR.messaging.warning('No featured comments in promoted story','renderPromoFeatureCommentsLinks',NPR.messaging.constants.PLUCK_STORY_PAGE_COMMENTING_ERROR);}}
catch(e){NPR.messaging.exception(e,'responseBatch.Responses.length = '+responseBatch.Responses.length+' and first message from pluck = '+responseBatch.Messages[0].Message,'renderPromoFeatureCommentsLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.populatePromoStoryCommentCount=function(storyId){var requestBatch=new RequestBatch();var articleKey=new ArticleKey(String(storyId));requestBatch.AddToRequest(articleKey);requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderPromoStoryCommentCount);}
NPR.community.renderPromoStoryCommentCount=function(responseBatch){try{if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined){NPR.messaging.warning('No response batch','renderPromoStoryCommentCount',NPR.messaging.constants.COMMUNITY_JS_ERROR);return;}
if(responseBatch.Responses.length>0){var article=responseBatch.Responses[0].Article;var numComments=article.Comments.NumberOfComments;var storyId=article.ArticleKey.Key;var commentCntHref=document.getElementById('promoCom'+storyId);if(commentCntHref!==null&&commentCntHref!==undefined){commentCntHref.innerHTML=numComments+' Comments';}}}catch(e){NPR.messaging.exception(e,'renderPromoStoryCommentCount Data: responseBatch length = '+responseBatch.Responses.length,'NPR.community.renderPromoStoryCommentCount',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
AddNamespace("NPR.community");NPR.community.MaxPluckRequestBatch=20;AddNamespace("NPR.onready.community");NPR.onready.community.aggregation=function(){try{NPR.community.loadCommentsAndRecommendations();}
catch(e){NPR.messaging.exception(e,'loadCommentsAndRecommendations Data: NPR.community.storyInfoArray = '+NPR.community.storyInfoArray,'NPR.community.loadCommentsAndRecommendations',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.renderRecommendationLinks=function(articleRecommendedByUser,numRecommendations,elemid,id){try{var recommendationCntHref=document.getElementById(elemid+'r');var recommendBlockText='';if(recommendationCntHref!==null&&recommendationCntHref!==undefined){if(articleRecommendedByUser===true||articleRecommendedByUser==='True'){recommendBlockText+='<a class="recommended"><span class="txt">Recommended</span> ('+numRecommendations+')</a>';}
else{recommendBlockText+='<a href="javascript: NPR.community.recommendStoryAggregationPage(\''+elemid+'r'+'\',\''+id+'\');" class="recommend" title="Recommend this story"><span class="txt">Recommend</span> (<span id="recommendationCnt'+id+'">'+numRecommendations+'</span>)</a>';}
recommendationCntHref.innerHTML=recommendBlockText;}}
catch(e){NPR.messaging.exception(e,'NPR.community.storyId = '+NPR.community.storyId,'renderRecommendationLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.recommendStoryAggregationPage=function(elemid,storyid){try{var requestBatch=new RequestBatch();var isMainAggButton=false;if((elemid===undefined||elemid===null)&&(storyid===undefined||storyid===null)){isMainAggButton=true;}
if(elemid===undefined||elemid===null){elemid="recommendationCnt";}
if(storyid===undefined||storyid===null){storyid=NPR.community.storyId;}
var articleKey=new ArticleKey(String(storyid));var recommendArticleAction=new RecommendAction(articleKey);requestBatch.AddToRequest(recommendArticleAction);var cntOfRecommendations=1;var recommendationsOnArticle=document.getElementById(elemid);if(recommendationsOnArticle!==null&&recommendationsOnArticle!==undefined){if(isMainAggButton==true){var currentRecommendations=parseInt(recommendationsOnArticle.innerHTML);if(!isNaN(currentRecommendations)){cntOfRecommendations+=currentRecommendations;recommendationsOnArticle.innerHTML=cntOfRecommendations;if(recommendationsOnArticle.parentNode.className=='recommend'){recommendationsOnArticle.parentNode.className='recommended';recommendationsOnArticle.parentNode.removeAttribute('href');}}}
else{var orgNumRecommend=document.getElementById('recommendationCnt'+storyid);if(orgNumRecommend!==null&&orgNumRecommend!==undefined){var currentRecommendations=parseInt(orgNumRecommend.innerHTML);if(!isNaN(currentRecommendations)){cntOfRecommendations+=currentRecommendations;}}
if($('.blogEntryRecommendation'+storyid).length>0){$(".blogEntryRecommendation"+storyid).each(function(i){$(this).html('<a class="recommended"><span class="txt">Recommended</span> ('+cntOfRecommendations+')</a>');});}
else{recommendationsOnArticle.innerHTML='<a class="recommended"><span class="txt">Recommended</span> ('+cntOfRecommendations+')</a>';}}}
requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.recommendationOfStoryCompleteAggregationPage);}
catch(e){NPR.messaging.exception(e,'Failed recommending storyid = '+storyid,'NPR.community.recommendStoryAggregationPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
NPR.community.renderCommentLinks=function(numComments,elemid,id){try{var commentCntHref=document.getElementById(elemid+'c');var commentBlockText='';if(typeof NPR.community.pluckMTComcnt!=='undefined'){numComments=parseInt(numComments)+parseInt(NPR.community.pluckMTComcnt[id]);}
if(commentCntHref!==null&&commentCntHref!==undefined){commentCntHref.innerHTML=numComments;}}
catch(e){NPR.messaging.exception(e,'storyId = '+id,'renderCommentLinks',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.community.loadCommentsAndRecommendations=function(){var idArray=NPR.community.storyInfoArray;var requestBatch=new RequestBatch();var requestBatchCount=0;for(var i=0;i<idArray.length;i++){var storyId=idArray[i];var elementPrefixes=NPR.community.storyElemArray[storyId];var arrayOfPrefixes=elementPrefixes.split(',');for(var p=0;p<arrayOfPrefixes.length;p++){NPR.community.renderCommentLinks(0,arrayOfPrefixes[p],storyId);NPR.community.renderRecommendationLinks(false,0,arrayOfPrefixes[p],storyId);}
var articleKey=new ArticleKey(String(storyId));requestBatch.AddToRequest(articleKey);if(++requestBatchCount>=NPR.community.MaxPluckRequestBatch){requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderAggArticle);requestBatch=new RequestBatch();requestBatchCount=0;}}
requestBatch.BeginRequest(NPR.community.sitelifeServerURL,NPR.community.renderAggArticle);}
NPR.community.renderAggArticle=function(responseBatch){try{if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined){NPR.messaging.warning('No response batch','renderAggArticle',NPR.messaging.constants.COMMUNITY_JS_ERROR);return;}
if(responseBatch===undefined||responseBatch===null||responseBatch.Responses===undefined||responseBatch.Messages[0].Message==="Down"){$(".viewcomm").hide();$(".reccomm").hide();return;}
for(var i=0;i<responseBatch.Responses.length;i++){var article=responseBatch.Responses[i].Article;var numComments=article.Comments.NumberOfComments;var articleRecommendedByUser=article.Recommendations.CurrentUserHasRecommended;var numRecommendations=article.Recommendations.NumberOfRecommendations;var storyId=article.ArticleKey.Key;var elementPrefixes=NPR.community.storyElemArray[storyId];var arrayOfPrefixes=elementPrefixes.split(',');for(var p=0;p<arrayOfPrefixes.length;p++){NPR.community.renderCommentLinks(numComments,arrayOfPrefixes[p],storyId);NPR.community.renderRecommendationLinks(articleRecommendedByUser,numRecommendations,arrayOfPrefixes[p],storyId);}}}catch(e){NPR.messaging.exception(e,'renderAggArticle Data: responseBatch length = '+responseBatch.Responses.length,'NPR.community.renderAggArticle',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
NPR.community.recommendationOfStoryCompleteAggregationPage=function(responseBatch){try{var message=responseBatch.Messages[0];if(message.Message!=='ok'){NPR.messaging.warning('Failed to recommend story on aggregation page'+' with message '+message.Message,'NPR.community.recommendationOfStoryCompleteAggregationPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
catch(e){NPR.messaging.exception(e,'Failed to recommend story on aggregation page','NPR.community.recommendationOfStoryCompleteAggregationPage',NPR.messaging.constants.COMMUNITY_JS_ERROR);}}
$(document).ready(NPR.onready.community.aggregation);AddNamespace("NPR.onready");NPR.onready.programHeader=function(){try{var subHeader="";if($('#headerLocation,#storyspantheme01')){var progHeaders=$('#headerLocation .progheader, #storyspantheme01 .progheader');if(progHeaders.length>0){var progHeader=progHeaders[0];var headerLinks=progHeader.getElementsByTagName('li');if(headerLinks.length>0){var currentUrl=document.location.href;var pound=currentUrl.indexOf('#');if(pound>-1)
{currentUrl=currentUrl.substr(0,pound);}
var testUrl=currentUrl;for(var i=0;i<headerLinks.length;i++){var links=headerLinks[i].getElementsByTagName('a');if(links[0]){var tempUrl=links[0].href;if(testUrl.indexOf(tempUrl)>-1){headerLinks[i].className='selected';if(links[0].childNodes.length>0){if(links[0].childNodes[0].nodeValue&&links[0].childNodes[0].nodeValue!=""){subHeader=links[0].childNodes[0].nodeValue;}}
break;}}}}}}
if(subHeader!=""){if($('#headerLocation,#storyspantheme01')){$('#headerLocation .progheader h1:first, #storyspantheme01 .progheader h1:first').append(' <span class="sub">'+subHeader+'</span>');}}}catch(e){NPR.messaging.exception(e,'programHeader.js','NPR.onready.programHeader',NPR.messaging.constants.JAVASCRIPT_GENERAL_ISSUE);}};$(document).ready(NPR.onready.programHeader);AddNamespace("NPR.twitter");NPR.twitter.updateList=function(twitters){var statusHTML=[];try{if(twitters.length>0){var divName="twitter_list_"+twitters[0].user.screen_name;for(var i=0;i<twitters.length;i++){var username=twitters[i].user.screen_name;var status=twitters[i].text.replace(/((https?|s?ftp|ssh)\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!])/g,function(url){return'<a href="'+url+'">'+url+'</a>';}).replace(/\B@([_a-z0-9]+)/ig,function(reply){return reply.charAt(0)+'<a href="http://twitter.com/'+reply.substring(1)+'">'+reply.substring(1)+'</a>';});statusHTML.push('<li><span class="tweet">'+status+'</span> <a class="timestamp" href="http://twitter.com/'+username+'/statuses/'+twitters[i].id+'">'+NPR.twitter.relative_time(twitters[i].created_at)+'</a></li>');}
document.getElementById(divName).innerHTML=statusHTML.join('');}}catch(e){NPR.messaging.exception(e,'updating: '+divName,'NPR.twitter.updateList',NPR.messaging.constants.JAVASCRIPT_GENERAL_ISSUE);}}
NPR.twitter.relative_time=function(time_value){try{var values=time_value.split(" ");time_value=values[1]+" "+values[2]+", "+values[5]+" "+values[3];var parsed_date=Date.parse(time_value);var relative_to=(arguments.length>1)?arguments[1]:new Date();var delta=parseInt((relative_to.getTime()-parsed_date)/1000);delta=delta+(relative_to.getTimezoneOffset()*60);if(delta<60){return'less than a minute ago';}else if(delta<120){return'about a minute ago';}else if(delta<(60*60)){return(parseInt(delta/60)).toString()+' minutes ago';}else if(delta<(120*60)){return'about an hour ago';}else if(delta<(24*60*60)){return'about '+(parseInt(delta/3600)).toString()+' hours ago';}else if(delta<(48*60*60)){return'1 day ago';}else{return(parseInt(delta/86400)).toString()+' days ago';}}catch(e){NPR.messaging.exception(e,'time_value: '+time_value,'NPR.twitter.relative_time',NPR.messaging.constants.JAVASCRIPT_GENERAL_ISSUE);}}
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;AddNamespace('NPR.socialMedia');AddNamespace('NPR.onready');NPR.socialMedia.openTwitterLoginWindow=function(url){try{var newwindow=window.open(url,'twitterAuthentication','height=400,width=800,location=yes');if(!newwindow){alert('We have detected that you are using popup blocking software. Please add www.npr.org to your safe list to be able to authenticate with Twitter and tweet this story. Thank you.');}
if(window.focus){newwindow.focus()}
return false;}catch(e){NPR.messaging.exception(e,'shareOnSocialMedia.js (NPR.socialMedia.openTwitterLoginWindow)','NPR.socialMedia',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.socialMedia.shareOnTwitter=function(storyId){try{var station='',pageUrl,url,twitterSource='';if(NPR.Event){station=NPR.Event.getQuerystring('station');}
pageUrl=(station)?station:$('#modelShortUrl'+storyId).attr('value');if(NPR.socialMedia.twitterSource===undefined||NPR.socialMedia.twitterSource===''){twitterSource='@npr'+$('body').attr('id');}
else{twitterSource=NPR.socialMedia.twitterSource;}
url='http://twitter.com/share?url='+pageUrl+'&text='+'Via '+twitterSource+': '
+encodeURIComponent($('#title'+storyId).attr('value'));NPR.socialMedia.openTwitterLoginWindow(url);NPR.socialMedia.updateShareCount('twitter',storyId);}catch(e){NPR.messaging.exception(e,'shareOnSocialMedia.js (NPR.socialMedia.shareOnTwitter)','NPR.socialMedia',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.socialMedia.openFacebookLoginWindow=function(url){try{var newwindow=window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');if(!newwindow){alert('We have detected that you are using popup blocking software. Please add www.npr.org to your safe list to be able to authenticate with Facebook and share this story. Thank you.');}
if(window.focus){newwindow.focus()}
return false;}catch(e){NPR.messaging.exception(e,'shareOnSocialMedia.js (NPR.socialMedia.openFacebookLoginWindow)','NPR.socialMedia',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.socialMedia.shareOnFacebook=function(storyId){try{var station='',pageUrl,url;if(NPR.Event){station=NPR.Event.getQuerystring('station');}
pageUrl=(station)?station:$('#modelFullUrl'+storyId).attr('value');url='http://www.facebook.com/sharer.php?u='
+encodeURIComponent(pageUrl)+'&t='+encodeURIComponent(document.title);NPR.socialMedia.openFacebookLoginWindow(url);NPR.socialMedia.updateShareCount('facebook',storyId);}catch(e){NPR.messaging.exception(e,'shareOnSocialMedia.js (NPR.socialMedia.shareOnFacebook)','NPR.socialMedia',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.socialMedia.updateShareCount=function(mediaName,storyId){try{var urlParams='media='+mediaName+'&id='+storyId;var postToFeedURL='/templates/socialmedia/count/updateSocialMediaShareCount.php';$.ajax({data:urlParams,url:postToFeedURL,success:function(data){var count=parseInt(data,10);if(!isNaN(count)){$('.'+mediaName+'Count').html(' ('+data+')');}}});}catch(e){NPR.messaging.exception(e,'shareOnSocialMedia.js (NPR.socialMedia.updateShareCount)','NPR.socialMedia',NPR.messaging.constants.COMMUNITY_JS_ERROR);}};NPR.onready.googlePlusInit=function(){(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='http://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();}
$(document).ready(NPR.onready.googlePlusInit);AddNamespace("NPR.personalize.audio");AddNamespace("NPR.onready.personalize.audio");NPR.personalize.audio.playlistLabel='In Playlist';NPR.personalize.audio.mouseX=0;NPR.personalize.audio.mouseY=0;NPR.onready.personalize.audio=function(){try{}
catch(e){NPR.messaging.exception(e,'Problem personalizing audio resource(s) in audio.js ','NPR.onready.personalize.audio',NPR.messaging.constants.PERSONALIZE_JS_ISSUE);}};NPR.personalize.audio.isLoggedIn=function(){try{var isFound=false;if(get_cookie(NPR.community.userCookie)!==null){isFound=true;}
return isFound;}
catch(e){NPR.messaging.exception(e,'Problem verifying logged in user in audio.js ','NPR.personalize.audio.readCookie',NPR.messaging.constants.PERSONALIZE_JS_ISSUE);return false;}};NPR.personalize.audio.setUserPlaylistItems=function(){try{return true;}
catch(e){NPR.messaging.exception(e,'Problem setting playlist items in audio.js ','NPR.personalize.audio.setUserPlaylistItems',NPR.messaging.constants.PERSONALIZE_JS_ISSUE);return false;}};NPR.personalize.audio.addAllToPlaylist=function(storyId,mediaId){try{return true;}
catch(e){NPR.messaging.exception(e,'Visual Playlist Indicators (Add All to Playlist) could not be set properly in audio.js ','NPR.personalize.audio.addAllToPlaylist',NPR.messaging.constants.PERSONALIZE_JS_ISSUE);return false;}};NPR.personalize.audio.showOnPlaylist=function(storyId,mediaId){try{return true;}
catch(e){NPR.messaging.exception(e,'Visual Playlist Indicator (Add to Playlist) could not be set properly in audio.js ','NPR.personalize.audio.showOnPlaylist',NPR.messaging.constants.PERSONALIZE_JS_ISSUE);return false;}};$(document).ready(NPR.onready.personalize.audio);if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b)}};var $jw=jwplayer;jwplayer.version="5.8.2011 (Licensed version)";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(c){c.utils=function(){};c.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array"}}else{b="null"}}return b};c.utils.extend=function(){var f=c.utils.extend["arguments"];if(f.length>1){for(var a=1;a<f.length;a++){for(var b in f[a]){f[0][b]=f[a][b]}}return f[0]}return null};c.utils.clone=function(a){var h;var g=c.utils.clone["arguments"];if(g.length==1){switch(c.utils.typeOf(g[0])){case"object":h={};for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;case"array":h=[];for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;default:return g[0];break}}return h};c.utils.extension=function(a){if(!a){return""}a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()}return};c.utils.html=function(b,a){b.innerHTML=a};c.utils.wrap=function(b,a){if(b.parentNode){b.parentNode.replaceChild(a,b)}a.appendChild(b)};c.utils.ajax=function(a,b,k){var h;if(window.XMLHttpRequest){h=new XMLHttpRequest()}else{h=new ActiveXObject("Microsoft.XMLHTTP")}h.onreadystatechange=function(){if(h.readyState===4){if(h.status===200){if(b){if(!c.utils.exists(h.responseXML)){try{if(window.DOMParser){var f=(new DOMParser()).parseFromString(h.responseText,"text/xml");if(f){h=c.utils.extend({},h,{responseXML:f})}}else{f=new ActiveXObject("Microsoft.XMLDOM");f.async="false";f.loadXML(h.responseText);h=c.utils.extend({},h,{responseXML:f})}}catch(e){if(k){k(a)}}}b(h)}}else{if(k){k(a)}}}};try{h.open("GET",a,true);h.send(null)}catch(j){if(k){k(a)}}return h};c.utils.load=function(b,a,f){b.onreadystatechange=function(){if(b.readyState===4){if(b.status===200){if(a){a()}}else{if(f){f()}}}}};c.utils.find=function(a,b){return a.getElementsByTagName(b)};c.utils.append=function(b,a){b.appendChild(a)};c.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};c.utils.userAgentMatch=function(a){var b=navigator.userAgent.toLowerCase();return(b.match(a)!==null)};c.utils.isIOS=function(){return c.utils.userAgentMatch(/iP(hone|ad|od)/i)};c.utils.isIPad=function(){return c.utils.userAgentMatch(/iPad/i)};c.utils.isIPod=function(){return c.utils.userAgentMatch(/iP(hone|od)/i)};c.utils.isAndroid=function(){return c.utils.userAgentMatch(/android/i)};c.utils.isLegacyAndroid=function(){return c.utils.userAgentMatch(/android 2.[012]/i)};c.utils.isBlackberry=function(){return c.utils.userAgentMatch(/blackberry/i)};c.utils.isMobile=function(){return c.utils.isIOS()};c.utils.getFirstPlaylistItemFromConfig=function(f){var b={};var a;if(f.playlist&&f.playlist.length){a=f.playlist[0]}else{a=f}b.file=a.file;b.levels=a.levels;b.streamer=a.streamer;b.playlistfile=a.playlistfile;b.provider=a.provider;if(!b.provider){if(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)){b.provider="youtube"}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp"}if(a.type){b.provider=a.type.toLowerCase()}}if(b.provider=="audio"){b.provider="sound"}return b};c.utils.getOuterHTML=function(b){if(b.outerHTML){return b.outerHTML}else{try{return new XMLSerializer().serializeToString(b)}catch(a){return""}}};c.utils.setOuterHTML=function(b,h){if(b.outerHTML){b.outerHTML=h}else{var a=document.createElement("div");a.innerHTML=h;var k=document.createRange();k.selectNodeContents(a);var j=k.extractContents();b.parentNode.insertBefore(j,b);b.parentNode.removeChild(b)}};c.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(a){}}return false};c.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0){a=a.substring(a.lastIndexOf("/")+1,a.length)}if(a.lastIndexOf("-")>=0){a=a.substring(0,a.lastIndexOf("-"))}if(a.lastIndexOf(".swf")>=0){a=a.substring(0,a.lastIndexOf(".swf"))}if(a.lastIndexOf(".js")>=0){a=a.substring(0,a.lastIndexOf(".js"))}return a};c.utils.getPluginVersion=function(a){if(a.lastIndexOf("-")>=0){if(a.lastIndexOf(".js")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js"))}else{if(a.lastIndexOf(".swf")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf"))}else{return a.substring(a.lastIndexOf("-")+1)}}}return""};c.utils.getAbsolutePath=function(b,l){if(!c.utils.exists(l)){l=document.location.href}if(!c.utils.exists(b)){return undefined}if(d(b)){return b}var a=l.substring(0,l.indexOf("://")+3);var m=l.substring(a.length,l.indexOf("/",a.length+1));var p;if(b.indexOf("/")===0){p=b.split("/")}else{var o=l.split("?")[0];o=o.substring(a.length+m.length+1,o.lastIndexOf("/"));p=o.split("/").concat(b.split("/"))}var q=[];for(var n=0;n<p.length;n++){if(!p[n]||!c.utils.exists(p[n])||p[n]=="."){continue}else{if(p[n]==".."){q.pop()}else{q.push(p[n])}}}return a+m+"/"+q.join("/")};function d(b){if(!c.utils.exists(b)){return}var a=b.indexOf("://");var f=b.indexOf("?");return(a>0&&(f<0||(f>a)))}c.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};c.utils.getPluginPathType=function(g){if(typeof g!="string"){return}g=g.split("?")[0];var b=g.indexOf("://");if(b>0){return c.utils.pluginPathType.ABSOLUTE}var h=g.indexOf("/");var a=c.utils.extension(g);if(b<0&&h<0&&(!a||!isNaN(a))){return c.utils.pluginPathType.CDN}return c.utils.pluginPathType.RELATIVE};c.utils.mapEmpty=function(b){for(var a in b){return false}return true};c.utils.mapLength=function(b){var f=0;for(var a in b){f++}return f};c.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b)}else{console.log(a)}}};c.utils.css=function(j,a,k){if(c.utils.exists(j)){for(var h in a){try{if(typeof a[h]==="undefined"){continue}else{if(typeof a[h]=="number"&&!(h=="zIndex"||h=="opacity")){if(isNaN(a[h])){continue}if(h.match(/color/i)){a[h]="#"+c.utils.strings.pad(a[h].toString(16),6)}else{a[h]=Math.ceil(a[h])+"px"}}}j.style[h]=a[h]}catch(b){}}}};c.utils.isYouTube=function(a){return(a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1)};c.utils.transform=function(k,l,m,b,a){if(!c.utils.exists(l)){l=1}if(!c.utils.exists(m)){m=1}if(!c.utils.exists(b)){b=0}if(!c.utils.exists(a)){a=0}if(l==1&&m==1&&b==0&&a==0){k.style.webkitTransform="";k.style.MozTransform="";k.style.OTransform=""}else{var j="scale("+l+","+m+") translate("+b+"px,"+a+"px)";k.style.webkitTransform=j;k.style.MozTransform=j;k.style.OTransform=j}};c.utils.stretch=function(u,a,b,x,r,w){if(typeof b=="undefined"||typeof x=="undefined"||typeof r=="undefined"||typeof w=="undefined"){return}var z=b/r;var y=x/w;var s=0;var t=0;var A={};if(a.parentElement){a.parentElement.style.overflow="hidden"}c.utils.transform(a);switch(u.toUpperCase()){case c.utils.stretching.NONE:A.width=r;A.height=w;A.top=(x-A.height)/2;A.left=(b-A.width)/2;break;case c.utils.stretching.UNIFORM:if(z>y){A.width=r*y;A.height=w*y}else{A.width=r*z;A.height=w*z}A.top=(x-A.height)/2;A.left=(b-A.width)/2;break;case c.utils.stretching.FILL:if(z>y){A.width=r*z;A.height=w*z}else{A.width=r*y;A.height=w*y}A.top=(x-A.height)/2;A.left=(b-A.width)/2;break;case c.utils.stretching.EXACTFIT:A.width=r;A.height=w;var q=Math.round((r/2)*(1-1/z));var v=Math.round((w/2)*(1-1/y));c.utils.transform(a,z,y,q,v);A.top=A.left=0;break;default:break}c.utils.css(a,A)};c.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};c.utils.deepReplaceKeyName=function(a,k,m){switch(c.utils.typeOf(a)){case"array":for(var b=0;b<a.length;b++){a[b]=c.utils.deepReplaceKeyName(a[b],k,m)}break;case"object":for(var j in a){var l=j.replace(new RegExp(k,"g"),m);a[l]=c.utils.deepReplaceKeyName(a[j],k,m);if(j!=l){delete a[j]}}break}return a};c.utils.isInArray=function(a,b){if(!(a)||!(a instanceof Array)){return false}for(var f=0;f<a.length;f++){if(b===a[f]){return true}}return false};c.utils.exists=function(a){switch(typeof(a)){case"string":return(a.length>0);break;case"object":return(a!==null);case"undefined":return false}return true};c.utils.empty=function(a){if(typeof a.hasChildNodes=="function"){while(a.hasChildNodes()){a.removeChild(a.firstChild)}}};c.utils.parseDimension=function(a){if(typeof a=="string"){if(a===""){return 0}else{if(a.lastIndexOf("%")>-1){return a}else{return parseInt(a.replace("px",""),10)}}}return a};c.utils.getDimensions=function(a){if(a&&a.style){return{x:c.utils.parseDimension(a.style.left),y:c.utils.parseDimension(a.style.top),width:c.utils.parseDimension(a.style.width),height:c.utils.parseDimension(a.style.height)}}else{return{}}};c.utils.getElementWidth=function(a){if(!a){return null}else{if(a==document.body){return c.utils.parentNode(a).clientWidth}else{if(a.clientWidth>0){return a.clientWidth}else{if(a.style){return c.utils.parseDimension(a.style.width)}else{return null}}}}};c.utils.getElementHeight=function(a){if(!a){return null}else{if(a==document.body){return c.utils.parentNode(a).clientHeight}else{if(a.clientHeight>0){return a.clientHeight}else{if(a.style){return c.utils.parseDimension(a.style.height)}else{return null}}}}};c.utils.timeFormat=function(a){str="00:00";if(a>0){str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":";str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)}return str};c.utils.useNativeFullscreen=function(){return(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)};c.utils.parentNode=function(a){if(!a){return docuemnt.body}else{if(a.parentNode){return a.parentNode}else{if(a.parentElement){return a.parentElement}else{return a}}}};c.utils.getBoundingClientRect=function(a){if(typeof a.getBoundingClientRect=="function"){return a.getBoundingClientRect()}else{return{left:a.offsetLeft+document.body.scrollLeft,top:a.offsetTop+document.body.scrollTop,width:a.offsetWidth,height:a.offsetHeight}}}})(jwplayer);(function(b){b.events=function(){};b.events.COMPLETE="COMPLETE";b.events.ERROR="ERROR"})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(!jwplayer.utils.exists(_listeners[type])){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){if(!_listeners[type]){return}try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][listenerIndex].listener.toString()==listener.toString()){_listeners[type].splice(listenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){if(!_globallisteners[type]){return}try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].listener.toString()==listener.toString()){_globallisteners.splice(globalListenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(!jwplayer.utils.exists(data)){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}}})(jwplayer);(function(d){var c={};d.utils.animations=function(){};d.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;b.style.msTransform=a};d.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a;b.style.msTransformOrigin=a};d.utils.animations.rotate=function(b,a){d.utils.animations.transform(b,["rotate(",a,"deg)"].join(""))};d.utils.cancelAnimation=function(a){delete c[a.id]};d.utils.fadeTo=function(a,r,s,o,p,t){if(c[a.id]!=t&&d.utils.exists(t)){return}if(a.style.opacity==r){return}var u=new Date().getTime();if(t>u){setTimeout(function(){d.utils.fadeTo(a,r,s,o,0,t)},t-u)}if(a.style.display=="none"){a.style.display="block"}if(!d.utils.exists(o)){o=a.style.opacity===""?1:a.style.opacity}if(a.style.opacity==r&&a.style.opacity!==""&&d.utils.exists(t)){if(r===0){a.style.display="none"}return}if(!d.utils.exists(t)){t=u;c[a.id]=t}if(!d.utils.exists(p)){p=0}var n=(s>0)?((u-t)/(s*1000)):0;n=n>1?1:n;var b=r-o;var q=o+(n*b);if(q>1){q=1}else{if(q<0){q=0}}a.style.opacity=q;if(p>0){c[a.id]=t+p*1000;d.utils.fadeTo(a,r,s,o,0,c[a.id]);return}setTimeout(function(){d.utils.fadeTo(a,r,s,o,0,t)},10)}})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(f,e){for(var a=0;a<f.length;a++){if(f[a]==e){return a}}return-1};b.utils.arrays.remove=function(f,e){var a=b.utils.arrays.indexOf(f,e);if(a>-1){f.splice(a,1)}}})(jwplayer);(function(b){b.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(o){o.utils.mediaparser=function(){};var m={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var n={};o.utils.mediaparser.parseMedia=function(a){return p(a)};function q(a,b){if(!o.utils.exists(b)){b=m[a]}else{o.utils.extend(b,m[a])}return b}function p(f,d){if(n[f.tagName.toLowerCase()]&&!o.utils.exists(d)){return n[f.tagName.toLowerCase()](f)}else{d=q("element",d);var e={};for(var c in d){if(c!="length"){var a=f.getAttribute(c);if(o.utils.exists(a)){e[d[c]]=a}}}var b=f.style["#background-color"];if(b&&!(b=="transparent"||b=="rgba(0, 0, 0, 0)")){e.screencolor=b}return e}}function l(f,c){c=q("media",c);var b=[];var d=o.utils.selectors("source",f);for(var a in d){if(!isNaN(a)){b.push(k(d[a]))}}var e=p(f,c);if(o.utils.exists(e.file)){b[0]={file:e.file}}e.levels=b;return e}function k(a,b){b=q("source",b);var c=p(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function j(a,b){b=q("video",b);var c=l(a,b);return c}n.media=l;n.audio=l;n.source=k;n.video=j})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var e=b.utils.loaderstatus.NEW;var a=new b.events.eventdispatcher();b.utils.extend(this,a);this.load=function(){if(e==b.utils.loaderstatus.NEW){e=b.utils.loaderstatus.LOADING;var c=document.createElement("script");c.onload=function(d){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)};c.onerror=function(d){e=b.utils.loaderstatus.ERROR;a.sendEvent(b.events.ERROR)};c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(c);c.src=f}};this.getStatus=function(){return e}}})(jwplayer);(function(b){b.utils.selectors=function(a,f){if(!b.utils.exists(f)){f=document}a=b.utils.strings.trim(a);var h=a.charAt(0);if(h=="#"){return f.getElementById(a.substr(1))}else{if(h=="."){if(f.getElementsByClassName){return f.getElementsByClassName(a.substr(1))}else{return b.utils.selectors.getElementsByTagAndClass("*",a.substr(1))}}else{if(a.indexOf(".")>0){var g=a.split(".");return b.utils.selectors.getElementsByTagAndClass(g[0],g[1])}else{return f.getElementsByTagName(a)}}}return null};b.utils.selectors.getElementsByTagAndClass=function(o,l,m){var k=[];if(!b.utils.exists(m)){m=document}var n=m.getElementsByTagName(o);for(var p=0;p<n.length;p++){if(b.utils.exists(n[p].className)){var q=n[p].className.split(" ");for(var a=0;a<q.length;a++){if(q[a]==l){k.push(n[p])}}}}return k}})(jwplayer);(function(b){b.utils.strings=function(){};b.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};b.utils.strings.pad=function(f,e,a){if(!a){a="0"}while(f.length<e){f=a+f}return f};b.utils.strings.serialize=function(a){if(a==null){return null}else{if(a=="true"){return true}else{if(a=="false"){return false}else{if(isNaN(Number(a))||a.length>5||a.length==0){return a}else{return Number(a)}}}}};b.utils.strings.seconds=function(e){e=e.replace(",",".");var a=e.split(":");var f=0;if(e.substr(-1)=="s"){f=Number(e.substr(0,e.length-1))}else{if(e.substr(-1)=="m"){f=Number(e.substr(0,e.length-1))*60}else{if(e.substr(-1)=="h"){f=Number(e.substr(0,e.length-1))*3600}else{if(a.length>1){f=Number(a[a.length-1]);f+=Number(a[a.length-2])*60;if(a.length==3){f+=Number(a[a.length-3])*3600}}else{f=Number(e)}}}}return f};b.utils.strings.xmlAttribute=function(a,f){for(var e=0;e<a.attributes.length;e++){if(a.attributes[e].name&&a.attributes[e].name.toLowerCase()==f.toLowerCase()){return a.attributes[e].value.toString()}}return""};b.utils.strings.jsonToString=function(l){var j=j||{};if(j&&j.stringify){return j.stringify(l)}var o=typeof(l);if(o!="object"||l===null){if(o=="string"){l='"'+l.replace(/"/g,'\\"')+'"'}else{return String(l)}}else{var k=[],a=(l&&l.constructor==Array);for(var n in l){var m=l[n];switch(typeof(m)){case"string":m='"'+m.replace(/"/g,'\\"')+'"';break;case"object":if(b.utils.exists(m)){m=b.utils.strings.jsonToString(m)}break}if(a){if(typeof(m)!="function"){k.push(String(m))}}else{if(typeof(m)!="function"){k.push('"'+n+'":'+String(m))}}}if(a){return"["+String(k)+"]"}else{return"{"+String(k)+"}"}}}})(jwplayer);(function(k){var j=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);k.utils.typechecker=function(a,b){b=!k.utils.exists(b)?f(a):b;return h(a,b)};function f(b){var a=["true","false","t","f"];if(a.toString().indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(j.test(b)){return"color"}else{if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length){return"integer"}else{if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length){return"float"}}}}return"string"}function h(a,b){if(!k.utils.exists(b)){return a}switch(b){case"color":if(a.length>0){return g(a)}return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true"){return true}else{if(a=="1"){return true}}return false}return a}function g(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3){a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)}return parseInt(a,16)}return parseInt("000000",16)}})(jwplayer);(function(b){b.utils.parsers=function(){};b.utils.parsers.localName=function(a){if(!a){return""}else{if(a.localName){return a.localName}else{if(a.baseName){return a.baseName}else{return""}}}};b.utils.parsers.textContent=function(a){if(!a){return""}else{if(a.textContent){return a.textContent}else{if(a.text){return a.text}else{return""}}}}})(jwplayer);(function(b){b.utils.parsers.jwparser=function(){};b.utils.parsers.jwparser.PREFIX="jwplayer";b.utils.parsers.jwparser.parseEntry=function(f,e){for(var a=0;a<f.childNodes.length;a++){if(f.childNodes[a].prefix==b.utils.parsers.jwparser.PREFIX){e[b.utils.parsers.localName(f.childNodes[a])]=b.utils.strings.serialize(b.utils.parsers.textContent(f.childNodes[a]))}if(!e.file&&String(e.link).toLowerCase().indexOf("youtube")>-1){e.file=e.link}}return e};b.utils.parsers.jwparser.getProvider=function(d){if(d.type){return d.type}else{if(d.file.indexOf("youtube.com/w")>-1||d.file.indexOf("youtube.com/v")>-1||d.file.indexOf("youtu.be/")>-1){return"youtube"}else{if(d.streamer&&d.streamer.indexOf("rtmp")==0){return"rtmp"}else{if(d.streamer&&d.streamer.indexOf("http")==0){return"http"}else{var a=b.utils.strings.extension(d.file);if(extensions.hasOwnProperty(a)){return extensions[a]}}}}}return""}})(jwplayer);(function(b){b.utils.parsers.mediaparser=function(){};b.utils.parsers.mediaparser.PREFIX="media";b.utils.parsers.mediaparser.parseGroup=function(j,g){var h=false;for(var k=0;k<j.childNodes.length;k++){if(j.childNodes[k].prefix==b.utils.parsers.mediaparser.PREFIX){if(!b.utils.parsers.localName(j.childNodes[k])){continue}switch(b.utils.parsers.localName(j.childNodes[k]).toLowerCase()){case"content":if(!h){g.file=b.utils.strings.xmlAttribute(j.childNodes[k],"url")}if(b.utils.strings.xmlAttribute(j.childNodes[k],"duration")){g.duration=b.utils.strings.seconds(b.utils.strings.xmlAttribute(j.childNodes[k],"duration"))}if(b.utils.strings.xmlAttribute(j.childNodes[k],"start")){g.start=b.utils.strings.seconds(b.utils.strings.xmlAttribute(j.childNodes[k],"start"))}if(j.childNodes[k].childNodes&&j.childNodes[k].childNodes.length>0){g=b.utils.parsers.mediaparser.parseGroup(j.childNodes[k],g)}if(b.utils.strings.xmlAttribute(j.childNodes[k],"width")||b.utils.strings.xmlAttribute(j.childNodes[k],"bitrate")||b.utils.strings.xmlAttribute(j.childNodes[k],"url")){if(!g.levels){g.levels=[]}g.levels.push({width:b.utils.strings.xmlAttribute(j.childNodes[k],"width"),bitrate:b.utils.strings.xmlAttribute(j.childNodes[k],"bitrate"),file:b.utils.strings.xmlAttribute(j.childNodes[k],"url")})}break;case"title":g.title=b.utils.parsers.textContent(j.childNodes[k]);break;case"description":g.description=b.utils.parsers.textContent(j.childNodes[k]);break;case"keywords":g.tags=b.utils.parsers.textContent(j.childNodes[k]);break;case"thumbnail":g.image=b.utils.strings.xmlAttribute(j.childNodes[k],"url");break;case"credit":g.author=b.utils.parsers.textContent(j.childNodes[k]);break;case"player":var a=j.childNodes[k].url;if(a.indexOf("youtube.com")>=0||a.indexOf("youtu.be")>=0){h=true;g.file=b.utils.strings.xmlAttribute(j.childNodes[k],"url")}break;case"group":b.utils.parsers.mediaparser.parseGroup(j.childNodes[k],g);break}}}return g}})(jwplayer);(function(c){c.utils.parsers.rssparser=function(){};c.utils.parsers.rssparser.parse=function(a){var h=[];for(var b=0;b<a.childNodes.length;b++){if(c.utils.parsers.localName(a.childNodes[b]).toLowerCase()=="channel"){for(var g=0;g<a.childNodes[b].childNodes.length;g++){if(c.utils.parsers.localName(a.childNodes[b].childNodes[g]).toLowerCase()=="item"){h.push(d(a.childNodes[b].childNodes[g]))}}}}return h};function d(b){var a={};for(var f=0;f<b.childNodes.length;f++){if(!c.utils.parsers.localName(b.childNodes[f])){continue}switch(c.utils.parsers.localName(b.childNodes[f]).toLowerCase()){case"enclosure":a.file=c.utils.strings.xmlAttribute(b.childNodes[f],"url");break;case"title":a.title=c.utils.parsers.textContent(b.childNodes[f]);break;case"pubdate":a.date=c.utils.parsers.textContent(b.childNodes[f]);break;case"description":a.description=c.utils.parsers.textContent(b.childNodes[f]);break;case"link":a.link=c.utils.parsers.textContent(b.childNodes[f]);break;case"category":if(a.tags){a.tags+=c.utils.parsers.textContent(b.childNodes[f])}else{a.tags=c.utils.parsers.textContent(b.childNodes[f])}break}}a=c.utils.parsers.mediaparser.parseGroup(b,a);a=c.utils.parsers.jwparser.parseEntry(b,a);return new c.html5.playlistitem(a)}})(jwplayer);(function(e){var f={};var d={};e.plugins=function(){};e.plugins.loadPlugins=function(a,b){d[a]=new e.plugins.pluginloader(new e.plugins.model(f),b);return d[a]};e.plugins.registerPlugin=function(a,c,j){var k=e.utils.getPluginName(a);if(f[k]){f[k].registerPlugin(a,c,j)}else{e.utils.log("A plugin ("+a+") was registered with the player that was not loaded. Please check your configuration.");for(var b in d){d[b].pluginFailed()}}}})(jwplayer);(function(b){b.plugins.model=function(a){this.addPlugin=function(f){var e=b.utils.getPluginName(f);if(!a[e]){a[e]=new b.plugins.plugin(f)}return a[e]}}})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(u){var s="http://lp.longtailvideo.com";var n=b.utils.loaderstatus.NEW;var m;var o;var a;var t=new b.events.eventdispatcher();b.utils.extend(this,t);function r(){switch(b.utils.getPluginPathType(u)){case b.utils.pluginPathType.ABSOLUTE:return u;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(u,window.location.href);case b.utils.pluginPathType.CDN:var d=b.utils.getPluginName(u);var e=b.utils.getPluginVersion(u);var c=(window.location.href.indexOf("https://")==0)?s.replace("http://","https://secure"):s;return c+"/"+b.version.split(".")[0]+"/"+d+"/"+d+(e!==""?("-"+e):"")+".js"}}function p(c){a=setTimeout(function(){n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE)},1000)}function q(c){n=b.utils.loaderstatus.ERROR;t.sendEvent(b.events.ERROR)}this.load=function(){if(n==b.utils.loaderstatus.NEW){if(u.lastIndexOf(".swf")>0){m=u;n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE);return}n=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(r());c.addEventListener(b.events.COMPLETE,p);c.addEventListener(b.events.ERROR,q);c.load()}};this.registerPlugin=function(d,e,c){if(a){clearTimeout(a);a=undefined}if(e&&c){m=c;o=e}else{if(typeof e=="string"){m=e}else{if(typeof e=="function"){o=e}else{if(!e&&!c){m=d}}}}n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE)};this.getStatus=function(){return n};this.getPluginName=function(){return b.utils.getPluginName(u)};this.getFlashPath=function(){if(m){switch(b.utils.getPluginPathType(m)){case b.utils.pluginPathType.ABSOLUTE:return m;case b.utils.pluginPathType.RELATIVE:if(u.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(m,window.location.href)}return b.utils.getAbsolutePath(m,r());case b.utils.pluginPathType.CDN:if(m.indexOf("-")>-1){return m+"h"}return m+"-h"}}return null};this.getJS=function(){return o};this.getPluginmode=function(){if(typeof m!="undefined"&&typeof o!="undefined"){return b.plugins.pluginmodes.HYBRID}else{if(typeof m!="undefined"){return b.plugins.pluginmodes.FLASH}else{if(typeof o!="undefined"){return b.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(e,c,d){return new o(e,c,d)};this.getURL=function(){return u}}})(jwplayer);(function(b){b.plugins.pluginloader=function(m,p){var n={};var a=b.utils.loaderstatus.NEW;var q=false;var s=false;var r=new b.events.eventdispatcher();b.utils.extend(this,r);function o(){if(!s){s=true;a=b.utils.loaderstatus.COMPLETE;r.sendEvent(b.events.COMPLETE)}}function l(){if(!s){var c=0;for(plugin in n){var d=n[plugin].getStatus();if(d==b.utils.loaderstatus.LOADING||d==b.utils.loaderstatus.NEW){c++}}if(c==0){o()}}}this.setupPlugins=function(k,d,e){var c={length:0,plugins:{}};var h={length:0,plugins:{}};for(var j in n){var g=n[j].getPluginName();if(n[j].getFlashPath()){c.plugins[n[j].getFlashPath()]=d.plugins[j];c.plugins[n[j].getFlashPath()].pluginmode=n[j].getPluginmode();c.length++}if(n[j].getJS()){var f=document.createElement("div");f.id=k.id+"_"+g;f.style.position="absolute";f.style.zIndex=h.length+10;h.plugins[g]=n[j].getNewInstance(k,d.plugins[j],f);h.length++;if(typeof h.plugins[g].resize!="undefined"){k.onReady(e(h.plugins[g],f,true));k.onResize(e(h.plugins[g],f))}}}k.plugins=h.plugins;return c};this.load=function(){a=b.utils.loaderstatus.LOADING;q=true;for(var c in p){if(b.utils.exists(c)){n[c]=m.addPlugin(c);n[c].addEventListener(b.events.COMPLETE,l);n[c].addEventListener(b.events.ERROR,l)}}for(c in n){n[c].load()}q=false;l()};this.pluginFailed=function(){o()};this.getStatus=function(){return a}}})(jwplayer);(function(c){var d=[];c.api=function(E){this.container=E;this.id=E.id;var v={};var G={};var b={};var F=[];var A=undefined;var x=false;var z=[];var t=c.utils.getOuterHTML(E);var a={};var y={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function D(e,f){return function(k,j,h,g){if(e.renderingMode=="flash"||e.renderingMode=="html5"){var l;if(j){y[k]=j;l="jwplayer('"+e.id+"').callback('"+k+"')"}else{if(!j&&y[k]){delete y[k]}}A.jwDockSetButton(k,l,h,g)}return f}}this.getPlugin=function(g){var e=this;var f={};if(g=="dock"){return c.utils.extend(f,{setButton:D(e,f),show:function(){e.callInternal("jwDockShow");return f},hide:function(){e.callInternal("jwDockHide");return f},onShow:function(h){e.componentListener("dock",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("dock",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{if(g=="controlbar"){return c.utils.extend(f,{show:function(){e.callInternal("jwControlbarShow");return f},hide:function(){e.callInternal("jwControlbarHide");return f},onShow:function(h){e.componentListener("controlbar",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("controlbar",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{if(g=="display"){return c.utils.extend(f,{show:function(){e.callInternal("jwDisplayShow");return f},hide:function(){e.callInternal("jwDisplayHide");return f},onShow:function(h){e.componentListener("display",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("display",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{return this.plugins[g]}}}};this.callback=function(e){if(y[e]){return y[e]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var e=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){c.utils.deepReplaceKeyName(e,"__dot__",".")}for(var f=0;f<e.length;f++){if(!c.utils.exists(e[f].index)){e[f].index=f}}return e};this.getPlaylistItem=function(e){if(!c.utils.exists(e)){e=this.getCurrentItem()}return this.getPlaylist()[e]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(e){if(!c.utils.exists(e)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",e)}return this};this.setMute=function(e){if(!c.utils.exists(e)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",e)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(e){this.callInternal("jwLoad",e);return this};this.playlistItem=function(e){this.callInternal("jwPlaylistItem",e);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(f,g){if(this.renderingMode=="html5"){A.jwResize(f,g)}else{this.container.width=f;this.container.height=g;var e=document.getElementById(this.id+"_wrapper");if(e){e.style.width=f+"px";e.style.height=g+"px"}}return this};this.play=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",e)}return this};this.pause=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",e)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(e){this.callInternal("jwSeek",e);return this};this.setVolume=function(e){this.callInternal("jwSetVolume",e);return this};this.onBufferChange=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER,e)};this.onBufferFull=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,e)};this.onError=function(e){return this.eventListener(c.api.events.JWPLAYER_ERROR,e)};this.onFullscreen=function(e){return this.eventListener(c.api.events.JWPLAYER_FULLSCREEN,e)};this.onMeta=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_META,e)};this.onMute=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_MUTE,e)};this.onPlaylist=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,e)};this.onPlaylistItem=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,e)};this.onReady=function(e){return this.eventListener(c.api.events.API_READY,e)};this.onResize=function(e){return this.eventListener(c.api.events.JWPLAYER_RESIZE,e)};this.onComplete=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,e)};this.onSeek=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_SEEK,e)};this.onTime=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_TIME,e)};this.onVolume=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_VOLUME,e)};this.onBuffer=function(e){return this.stateListener(c.api.events.state.BUFFERING,e)};this.onPause=function(e){return this.stateListener(c.api.events.state.PAUSED,e)};this.onPlay=function(e){return this.stateListener(c.api.events.state.PLAYING,e)};this.onIdle=function(e){return this.stateListener(c.api.events.state.IDLE,e)};this.remove=function(){v={};z=[];if(c.utils.getOuterHTML(this.container)!=t){c.api.destroyPlayer(this.id,t)}};this.setup=function(f){if(c.embed){var g=this.id;this.remove();var e=c(g);e.config=f;return new c.embed(e)}return this};this.registerPlugin=function(e,f,g){c.plugins.registerPlugin(e,f,g)};this.setPlayer=function(f,e){A=f;this.renderingMode=e};this.stateListener=function(f,e){if(!G[f]){G[f]=[];this.eventListener(c.api.events.JWPLAYER_PLAYER_STATE,B(f))}G[f].push(e);return this};this.detachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwDetachMedia")}};this.attachMedia=function(){if(this.renderingMode=="html5"){return this.callInternal("jwAttachMedia")}};function B(e){return function(h){var j=h.newstate,f=h.oldstate;if(j==e){var g=G[j];if(g){for(var k=0;k<g.length;k++){if(typeof g[k]=="function"){g[k].call(this,{oldstate:f,newstate:j})}}}}}}this.componentListener=function(g,f,e){if(!b[g]){b[g]={}}if(!b[g][f]){b[g][f]=[];this.eventListener(f,w(g,f))}b[g][f].push(e);return this};function w(f,e){return function(h){if(f==h.component){var j=b[f][e];if(j){for(var g=0;g<j.length;g++){if(typeof j[g]=="function"){j[g].call(this,h)}}}}}}this.addInternalListener=function(f,e){f.jwAddEventListener(e,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+e+'", dat); }')};this.eventListener=function(f,e){if(!v[f]){v[f]=[];if(A&&x){this.addInternalListener(A,f)}}v[f].push(e);return this};this.dispatchEvent=function(e){if(v[e]){var f=C(e,arguments[1]);for(var g=0;g<v[e].length;g++){if(typeof v[e][g]=="function"){v[e][g].call(this,f)}}}};function C(g,j){var e=c.utils.extend({},j);if(g==c.api.events.JWPLAYER_FULLSCREEN&&!e.fullscreen){e.fullscreen=e.message=="true"?true:false;delete e.message}else{if(typeof e.data=="object"){e=c.utils.extend(e,e.data);delete e.data}}var h=["position","duration","offset"];for(var f in h){if(e[h[f]]){e[h[f]]=Math.round(e[h[f]]*1000)/1000}}return e}this.callInternal=function(e,f){if(x){if(typeof A!="undefined"&&typeof A[e]=="function"){if(c.utils.exists(f)){return(A[e])(f)}else{return(A[e])()}}return null}else{z.push({method:e,parameters:f})}};this.playerReady=function(e){x=true;if(!A){this.setPlayer(document.getElementById(e.id))}this.container=document.getElementById(this.id);for(var g in v){this.addInternalListener(A,g)}this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,function(h){a={}});this.eventListener(c.api.events.JWPLAYER_MEDIA_META,function(h){c.utils.extend(a,h.metadata)});this.dispatchEvent(c.api.events.API_READY);while(z.length>0){var f=z.shift();this.callInternal(f.method,f.parameters)}};this.getItemMeta=function(){return a};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function u(g,e,f){var j=[];if(!e){e=0}if(!f){f=g.length-1}for(var h=e;h<=f;h++){j.push(g[h])}return j}return this};c.api.selectPlayer=function(b){var f;if(!c.utils.exists(b)){b=0}if(b.nodeType){f=b}else{if(typeof b=="string"){f=document.getElementById(b)}}if(f){var a=c.api.playerById(f.id);if(a){return a}else{return c.api.addPlayer(new c.api(f))}}else{if(typeof b=="number"){return c.getPlayers()[b]}}return null};c.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};c.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};c.api.playerById=function(a){for(var b=0;b<d.length;b++){if(d[b].id==a){return d[b]}}return null};c.api.addPlayer=function(b){for(var a=0;a<d.length;a++){if(d[a]==b){return b}}d.push(b);return b};c.api.destroyPlayer=function(k,n){var l=-1;for(var a=0;a<d.length;a++){if(d[a].id==k){l=a;continue}}if(l>=0){var o=document.getElementById(d[l].id);if(document.getElementById(d[l].id+"_wrapper")){o=document.getElementById(d[l].id+"_wrapper")}if(o){if(n){c.utils.setOuterHTML(o,n)}else{var b=document.createElement("div");var m=o.id;if(o.id.indexOf("_wrapper")==o.id.length-8){newID=o.id.substring(0,o.id.length-8)}b.setAttribute("id",m);o.parentNode.replaceChild(b,o)}}d.splice(l,1)}return null};c.getPlayers=function(){return d.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(c){var d=jwplayer.api.playerById(c.id);if(d){d.playerReady(c)}else{jwplayer.api.selectPlayer(c.id).playerReady(c)}if(_userPlayerReady){_userPlayerReady.call(this,c)}};(function(e){var f=e.utils;e.embed=function(c){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var l=f.mediaparser.parseMedia(c.container);var m=new e.embed.config(f.extend(a,l,c.config),this);var b=e.plugins.loadPlugins(c.id,m.plugins);function o(j,g){for(var h in g){if(typeof j[h]=="function"){(j[h]).call(j,g[h])}}}function n(){if(b.getStatus()==f.loaderstatus.COMPLETE){for(var u=0;u<m.modes.length;u++){if(m.modes[u].type&&e.embed[m.modes[u].type]){var j=m.modes[u].config;var x=m;if(j){x=f.extend(f.clone(m),j);var y=["file","levels","playlist"];for(var v=0;v<y.length;v++){var h=y[v];if(f.exists(j[h])){for(var w=0;w<y.length;w++){if(w!=v){var k=y[w];if(f.exists(x[k])&&!f.exists(j[k])){delete x[k]}}}}}}var g=new e.embed[m.modes[u].type](document.getElementById(c.id),m.modes[u],x,b,c);if(g.supportsConfig()){g.embed();o(c,m.events);return c}}}f.log("No suitable players found");new e.embed.logo(f.extend({hide:true},m.components.logo),"none",c.id)}}b.addEventListener(e.events.COMPLETE,n);b.addEventListener(e.events.ERROR,n);b.load();return c};function d(){if(!document.body){return setTimeout(d,15)}var c=f.selectors.getElementsByTagAndClass("video","jwplayer");for(var b=0;b<c.length;b++){var a=c[b];if(a.id==""){a.id="jwplayer_"+Math.round(Math.random()*100000)}e(a.id).setup({})}}d()})(jwplayer);(function(o){function l(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var s={players:"modes",autoplay:"autostart"};function r(d){var a=d.toLowerCase();var b=["left","right","top","bottom"];for(var c=0;c<b.length;c++){if(a==b[c]){return true}}return false}function q(a){var b=false;b=(a instanceof Array)||(typeof a=="object"&&!a.position&&!a.size);return b}function k(a){if(typeof a=="string"){if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1){return parseInt(a)}}return a}var m=["playlist","dock","controlbar","logo","display"];function n(c){var e={};switch(o.utils.typeOf(c.plugins)){case"object":for(var a in c.plugins){e[o.utils.getPluginName(a)]=a}break;case"string":var d=c.plugins.split(",");for(var b=0;b<d.length;b++){e[o.utils.getPluginName(d[b])]=d[b]}break}return e}function p(e,f,a,c){if(o.utils.typeOf(e[f])!="object"){e[f]={}}var b=e[f][a];if(o.utils.typeOf(b)!="object"){e[f][a]=b={}}if(c){if(f=="plugins"){var d=o.utils.getPluginName(a);b[c]=e[d+"."+c];delete e[d+"."+c]}else{b[c]=e[a+"."+c];delete e[a+"."+c]}}}o.embed.deserialize=function(b){var a=n(b);for(var c in a){p(b,"plugins",a[c])}for(var d in b){if(d.indexOf(".")>-1){var e=d.split(".");var f=e[0];var d=e[1];if(o.utils.isInArray(m,f)){p(b,"components",f,d)}else{if(a[f]){p(b,"plugins",a[f],d)}}}}return b};o.embed.config=function(h,j){var v=o.utils.extend({},h);var a;if(q(v.playlist)){a=v.playlist;delete v.playlist}v=o.embed.deserialize(v);v.height=k(v.height);v.width=k(v.width);if(typeof v.plugins=="string"){var g=v.plugins.split(",");if(typeof v.plugins!="object"){v.plugins={}}for(var c=0;c<g.length;c++){var b=o.utils.getPluginName(g[c]);if(typeof v[b]=="object"){v.plugins[g[c]]=v[b];delete v[b]}else{v.plugins[g[c]]={}}}}for(var w=0;w<m.length;w++){var d=m[w];if(o.utils.exists(v[d])){if(typeof v[d]!="object"){if(!v.components[d]){v.components[d]={}}if(d=="logo"){v.components[d].file=v[d]}else{v.components[d].position=v[d]}delete v[d]}else{if(!v.components[d]){v.components[d]={}}o.utils.extend(v.components[d],v[d]);delete v[d]}}if(typeof v[d+"size"]!="undefined"){if(!v.components[d]){v.components[d]={}}v.components[d].size=v[d+"size"];delete v[d+"size"]}}if(typeof v.icons!="undefined"){if(!v.components.display){v.components.display={}}v.components.display.icons=v.icons;delete v.icons}for(var e in s){if(v[e]){if(!v[s[e]]){v[s[e]]=v[e]}delete v[e]}}var f;if(v.flashplayer&&!v.modes){f=l();f[0].src=v.flashplayer;delete v.flashplayer}else{if(v.modes){if(typeof v.modes=="string"){f=l();f[0].src=v.modes}else{if(v.modes instanceof Array){f=v.modes}else{if(typeof v.modes=="object"&&v.modes.type){f=[v.modes]}}}delete v.modes}else{f=l()}}v.modes=f;if(a){v.playlist=a}return v}})(jwplayer);(function(b){b.embed.download=function(m,h,a,l,j){this.embed=function(){var x=b.utils.extend({},a);var d={};var y=a.width?a.width:480;if(typeof y!="number"){y=parseInt(y,10)}var v=a.height?a.height:320;if(typeof v!="number"){v=parseInt(v,10)}var A,f,g;var C={};if(a.playlist&&a.playlist.length){C.file=a.playlist[0].file;f=a.playlist[0].image;C.levels=a.playlist[0].levels}else{C.file=a.file;f=a.image;C.levels=a.levels}if(C.file){A=C.file}else{if(C.levels&&C.levels.length){A=C.levels[0].file}}g=A?"pointer":"auto";var w={display:{style:{cursor:g,width:y,height:v,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:g,position:"absolute",display:A?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:g,position:"absolute",display:A?"block":"none",top:((v-50)/2),left:((y-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:y,height:v,display:f?"block":"none",position:"absolute",cursor:g,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var z=function(p,n,q){var o=document.createElement(p);if(q){o.id=q}else{o.id=m.id+"_jwplayer_"+n}b.utils.css(o,w[n].style);return o};d.display=z("a","display",m.id);if(A){d.display.setAttribute("href",b.utils.getAbsolutePath(A))}d.display_image=z("img","display_image");d.display_image.setAttribute("alt","Click to download...");if(f){d.display_image.setAttribute("src",b.utils.getAbsolutePath(f))}if(true){d.display_icon=z("div","display_icon");d.display_iconBackground=z("div","display_iconBackground");d.display.appendChild(d.display_image);d.display_iconBackground.appendChild(d.display_icon);d.display.appendChild(d.display_iconBackground)}_css=b.utils.css;_hide=function(n){_css(n,{display:"none"})};function c(n){_imageWidth=d.display_image.naturalWidth;_imageHeight=d.display_image.naturalHeight;B()}function B(){b.utils.stretch(b.utils.stretching.UNIFORM,d.display_image,y,v,_imageWidth,_imageHeight)}d.display_image.onerror=function(n){_hide(d.display_image)};d.display_image.onload=c;m.parentNode.replaceChild(d.display,m);var e=(a.plugins&&a.plugins.logo)?a.plugins.logo:{};d.display.appendChild(new b.embed.logo(a.components.logo,"download",m.id));j.container=document.getElementById(j.id);j.setPlayer(d.display,"download")};this.supportsConfig=function(){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return k(c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&k(c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}};function k(f,d,g){if(g){return false}var e=["image","sound","youtube","http"];if(d&&(e.toString().indexOf(d)>-1)){return true}if(!d||(d&&d=="video")){var c=b.utils.extension(f);if(c&&b.utils.extensionmap[c]){return true}}return false}}})(jwplayer);(function(b){b.embed.flash=function(s,r,n,t,p){function a(e,f,d){var c=document.createElement("param");c.setAttribute("name",f);c.setAttribute("value",d);e.appendChild(c)}function o(d,c,e){return function(h){if(e){document.getElementById(p.id+"_wrapper").appendChild(c)}var f=document.getElementById(p.id).getPluginConfig("display");d.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(c,g)}}function u(e){if(!e){return{}}var c={};for(var f in e){var g=e[f];for(var d in g){c[f+"."+d]=g[d]}}return c}function q(e,f){if(e[f]){var c=e[f];for(var g in c){var h=c[g];if(typeof h=="string"){if(!e[g]){e[g]=h}}else{for(var d in h){if(!e[g+"."+d]){e[g+"."+d]=h[d]}}}}delete e[f]}}function w(f){if(!f){return{}}var c={},d=[];for(var j in f){var g=b.utils.getPluginName(j);var h=f[j];d.push(j);for(var e in h){c[g+"."+e]=h[e]}}c.plugins=d.join(",");return c}function v(c){var e=c.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var d in c){if(typeof(c[d])=="object"){e+=d+"="+encodeURIComponent("[[JSON]]"+b.utils.strings.jsonToString(c[d]))+"&"}else{e+=d+"="+encodeURIComponent(c[d])+"&"}}return e.substring(0,e.length-1)}this.embed=function(){n.id=p.id;var h;var d=b.utils.extend({},n);var g=d.width;var k=d.height;if(s.id+"_wrapper"==s.parentNode.id){h=document.getElementById(s.id+"_wrapper")}else{h=document.createElement("div");h.id=s.id+"_wrapper";b.utils.wrap(s,h);b.utils.css(h,{position:"relative",width:g,height:k})}var f=t.setupPlugins(p,d,o);if(f.length>0){b.utils.extend(d,w(f.plugins))}else{delete d.plugins}var c=["height","width","modes","events"];for(var m=0;m<c.length;m++){delete d[c[m]]}var e="opaque";if(d.wmode){e=d.wmode}q(d,"components");q(d,"providers");if(typeof d["dock.position"]!="undefined"){if(d["dock.position"].toString().toLowerCase()=="false"){d.dock=d["dock.position"];delete d["dock.position"]}}var j="#000000";var z;if(b.utils.isIE()){var l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+j+'" width="100%" height="100%" id="'+s.id+'" name="'+s.id+'" tabindex=0"">';l+='<param name="movie" value="'+r.src+'">';l+='<param name="allowfullscreen" value="true">';l+='<param name="allowscriptaccess" value="always">';l+='<param name="seamlesstabbing" value="true">';l+='<param name="wmode" value="'+e+'">';l+='<param name="flashvars" value="'+v(d)+'">';l+="</object>";b.utils.setOuterHTML(s,l);z=document.getElementById(s.id)}else{var A=document.createElement("object");A.setAttribute("type","application/x-shockwave-flash");A.setAttribute("data",r.src);A.setAttribute("width","100%");A.setAttribute("height","100%");A.setAttribute("bgcolor","#000000");A.setAttribute("id",s.id);A.setAttribute("name",s.id);A.setAttribute("tabindex",0);a(A,"allowfullscreen","true");a(A,"allowscriptaccess","always");a(A,"seamlesstabbing","true");a(A,"wmode",e);a(A,"flashvars",v(d));s.parentNode.replaceChild(A,s);z=A}p.container=z;p.setPlayer(z,"flash")};this.supportsConfig=function(){if(b.utils.hasFlash()){if(n){var c=b.utils.getFirstPlaylistItemFromConfig(n);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return flashCanPlay(c.file,c.provider)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&flashCanPlay(c.levels[d].file,c.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(f,d){var e=["video","http","sound","image"];if(d&&(e.toString().indexOf(d<0))){return true}var c=b.utils.extension(f);if(!c){return true}if(b.utils.exists(b.utils.extensionmap[c])&&!b.utils.exists(b.utils.extensionmap[c].flash)){return false}return true}}})(jwplayer);(function(b){b.embed.html5=function(m,h,a,l,j){function k(d,c,e){return function(g){var f=document.getElementById(m.id+"_displayarea");if(e){f.appendChild(c)}d.resize(f.clientWidth,f.clientHeight);c.left=f.style.left;c.top=f.style.top}}this.embed=function(){if(b.html5){l.setupPlugins(j,a,k);m.innerHTML="";var e=b.utils.extend({screencolor:"0x000000"},a);var f=["plugins","modes","events"];for(var d=0;d<f.length;d++){delete e[f[d]]}if(e.levels&&!e.sources){e.sources=a.levels}if(e.skin&&e.skin.toLowerCase().indexOf(".zip")>0){e.skin=e.skin.replace(/\.zip/i,".xml")}var c=new(b.html5(m)).setup(e);j.container=document.getElementById(j.id);j.setPlayer(c,"html5")}else{return null}};this.supportsConfig=function(){if(!!b.vid.canPlayType){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return html5CanPlay(b.vid,c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&html5CanPlay(b.vid,c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(e,f,d,g){if(g){return false}if(d&&d=="youtube"){return true}if(d&&d!="video"&&d!="http"&&d!="sound"){return false}var c=b.utils.extension(f);if(!b.utils.exists(c)||!b.utils.exists(b.utils.extensionmap[c])){return true}if(!b.utils.exists(b.utils.extensionmap[c].html5)){return false}if(b.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)){return true}return browserCanPlay(e,b.utils.extensionmap[c].html5)};browserCanPlay=function(c,d){if(!d){return true}if(c.canPlayType(d)){return true}else{if(d=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return c.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(b){b.embed.logo=function(s,t,A){var v={prefix:"http://l.longtailvideo.com/"+t+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=b.utils.css;var C;var w;u();function u(){q();B();y()}function q(){if(v.prefix){var c=b.version.split(/\W/).splice(0,2).join("/");if(v.prefix.indexOf(c)<0){v.prefix+=c+"/"}}w=b.utils.extend({},v,s)}function a(){var c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=w.hide?"none":"block";var d=w.position.toLowerCase().split("-");for(var e in d){c[d[e]]=w.margin}return c}function B(){C=document.createElement("img");C.id=A+"_jwplayer_logo";C.style.display="none";C.onload=function(c){_css(C,a());z()};if(!w.file){return}if(w.file.indexOf("http://")===0){C.src=w.file}else{C.src=w.prefix+w.file}}if(!w.file){return}function y(){if(w.link){C.onmouseover=x;C.onmouseout=z;C.onclick=r}else{this.mouseEnabled=false}}function r(c){if(typeof c!="undefined"){c.preventDefault();c.stopPropagation()}if(w.link){window.open(w.link,"_blank")}return}function z(c){if(w.link){C.style.opacity=w.out}return}function x(c){if(w.hide){C.style.opacity=w.over}return}return C}})(jwplayer);(function(b){b.html5=function(a){var d=a;this.setup=function(c){b.utils.extend(this,new b.html5.api(d,c));return this};return this}})(jwplayer);(function(e){var f=e.utils;var d=f.css;e.html5.view=function(R,T,ah){var J=R;var aa=T;var b=ah;var c;var ag;var L;var P;var I;var X;var O;var V=false;var U,Y;function W(){c=document.createElement("div");c.id=aa.id;c.className=aa.className;_videowrapper=document.createElement("div");_videowrapper.id=c.id+"_video_wrapper";aa.id=c.id+"_video";d(c,{position:"relative",height:b.height,width:b.width,padding:0,backgroundColor:g(),zIndex:0});function g(){if(J.skin.getComponentSettings("display")&&J.skin.getComponentSettings("display").backgroundcolor){return J.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}d(aa,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"});d(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});f.wrap(aa,c);f.wrap(aa,_videowrapper);P=document.createElement("div");P.id=c.id+"_displayarea";c.appendChild(P)}function ad(){for(var h=0;h<b.plugins.order.length;h++){var g=b.plugins.order[h];if(f.exists(b.plugins.object[g].getDisplayElement)){b.plugins.object[g].height=f.parseDimension(b.plugins.object[g].getDisplayElement().style.height);b.plugins.object[g].width=f.parseDimension(b.plugins.object[g].getDisplayElement().style.width);b.plugins.config[g].currentPosition=b.plugins.config[g].position}}K()}function ab(g){d(P,{display:(b.getMedia()&&b.getMedia().hasChrome()&&g.newstate!=e.api.events.state.IDLE)?"none":"block"})}function K(j){var g=b.getMedia()?b.getMedia().getDisplayElement():null;if(f.exists(g)){if(O!=g){if(O&&O.parentNode){O.parentNode.replaceChild(g,O)}O=g}for(var k=0;k<b.plugins.order.length;k++){var h=b.plugins.order[k];if(f.exists(b.plugins.object[h].getDisplayElement)){b.plugins.config[h].currentPosition=b.plugins.config[h].position}}}ae(b.width,b.height)}this.setup=function(){if(b&&b.getMedia()){aa=b.getMedia().getDisplayElement()}W();ad();J.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,ab);J.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_LOADED,K);J.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_META,function(){a()});var g;if(f.exists(window.onresize)){g=window.onresize}window.onresize=function(k){if(f.exists(g)){try{g(k)}catch(h){}}if(J.jwGetFullscreen()){if(!S()){var j=f.getBoundingClientRect(document.body);b.width=Math.abs(j.left)+Math.abs(j.right);b.height=window.innerHeight;ae(b.width,b.height)}}else{ae(b.width,b.height)}}};function af(g){switch(g.keyCode){case 27:if(J.jwGetFullscreen()){J.jwSetFullscreen(false)}break;case 32:if(J.jwGetState()!=e.api.events.state.IDLE&&J.jwGetState()!=e.api.events.state.PAUSED){J.jwPause()}else{J.jwPlay()}break}}function ae(g,k){if(c.style.display=="none"){return}var h=[].concat(b.plugins.order);h.reverse();I=h.length+2;if(S()){try{if(b.fullscreen&&!b.getMedia().getDisplayElement().webkitDisplayingFullscreen){b.fullscreen=false}}catch(m){}}if(!b.fullscreen){ag=g;L=k;if(typeof g=="string"&&g.indexOf("%")>0){ag=f.getElementWidth(f.parentNode(c))*parseInt(g.replace("%"),"")/100}else{ag=g}if(typeof k=="string"&&k.indexOf("%")>0){L=f.getElementHeight(f.parentNode(c))*parseInt(k.replace("%"),"")/100}else{L=k}d(P,{top:0,bottom:0,left:0,right:0,width:ag,height:L,position:"absolute"});d(c,{height:L,width:ag});var j=Z(N,h);if(j.length>0){I+=j.length;var l=j.indexOf("playlist"),n=j.indexOf("controlbar");if(l>=0&&n>=0){j[l]=j.splice(n,1,j[l])[0]}Z(ac,j,true)}U=f.getElementWidth(P);Y=f.getElementHeight(P)}else{if(!S()){Z(M,h,true)}}a()}function Z(h,m,l){var k=[];for(var n=0;n<m.length;n++){var j=m[n];if(f.exists(b.plugins.object[j].getDisplayElement)){if(b.plugins.config[j].currentPosition!=e.html5.view.positions.NONE){var p=h(j,I--);if(!p){k.push(j)}else{var o=p.width;var g=p.height;if(l){delete p.width;delete p.height}d(b.plugins.object[j].getDisplayElement(),p);b.plugins.object[j].resize(o,g)}}else{d(b.plugins.object[j].getDisplayElement(),{display:"none"})}}}return k}function N(h,g){if(f.exists(b.plugins.object[h].getDisplayElement)){if(b.plugins.config[h].position&&Q(b.plugins.config[h].position)){if(!f.exists(b.plugins.object[h].getDisplayElement().parentNode)){c.appendChild(b.plugins.object[h].getDisplayElement())}var j=ai(h);j.zIndex=g;return j}}return false}function ac(h,g){if(!f.exists(b.plugins.object[h].getDisplayElement().parentNode)){P.appendChild(b.plugins.object[h].getDisplayElement())}return{position:"absolute",width:(f.getElementWidth(P)-f.parseDimension(P.style.left)-f.parseDimension(P.style.right)),height:(f.getElementHeight(P)-f.parseDimension(P.style.top)-f.parseDimension(P.style.bottom)),zIndex:g}}function M(h,g){return{position:"fixed",width:b.width,height:b.height,zIndex:g}}function a(){if(!f.exists(b.getMedia())){return}P.style.position="absolute";var g=b.getMedia().getDisplayElement();if(g&&g.tagName.toLowerCase()=="video"){g.style.position="absolute";if(g.parentNode){g.parentNode.style.left=P.style.left;g.parentNode.style.top=P.style.top}if(b.fullscreen&&J.jwGetStretching()==e.utils.stretching.EXACTFIT&&!f.isMobile()){var j=document.createElement("div");f.stretch(e.utils.stretching.UNIFORM,j,f.getElementWidth(P),f.getElementHeight(P),U,Y);f.stretch(e.utils.stretching.EXACTFIT,g,f.parseDimension(j.style.width),f.parseDimension(j.style.height),g.videoWidth?g.videoWidth:400,g.videoHeight?g.videoHeight:300);d(g,{left:j.style.left,top:j.style.top})}else{f.stretch(J.jwGetStretching(),g,f.getElementWidth(P),f.getElementHeight(P),g.videoWidth?g.videoWidth:400,g.videoHeight?g.videoHeight:300)}}else{var h=b.plugins.object.display.getDisplayElement();if(h){b.getMedia().resize(f.parseDimension(h.style.width),f.parseDimension(h.style.height))}else{b.getMedia().resize(f.parseDimension(P.style.width),f.parseDimension(P.style.height))}}}function ai(h){var g={position:"absolute",margin:0,padding:0,top:null};var j=b.plugins.config[h].currentPosition.toLowerCase();switch(j.toUpperCase()){case e.html5.view.positions.TOP:g.top=f.parseDimension(P.style.top);g.left=f.parseDimension(P.style.left);g.width=f.getElementWidth(P)-f.parseDimension(P.style.left)-f.parseDimension(P.style.right);g.height=b.plugins.object[h].height;P.style[j]=f.parseDimension(P.style[j])+b.plugins.object[h].height+"px";P.style.height=f.getElementHeight(P)-g.height+"px";break;case e.html5.view.positions.RIGHT:g.top=f.parseDimension(P.style.top);g.right=f.parseDimension(P.style.right);g.width=b.plugins.object[h].width;g.height=f.getElementHeight(P)-f.parseDimension(P.style.top)-f.parseDimension(P.style.bottom);P.style.width=f.getElementWidth(P)-g.width+"px";break;case e.html5.view.positions.BOTTOM:g.bottom=f.parseDimension(P.style.bottom);g.left=f.parseDimension(P.style.left);g.width=f.getElementWidth(P)-f.parseDimension(P.style.left)-f.parseDimension(P.style.right);g.height=b.plugins.object[h].height;P.style.height=f.getElementHeight(P)-g.height+"px";break;case e.html5.view.positions.LEFT:g.top=f.parseDimension(P.style.top);g.left=f.parseDimension(P.style.left);g.width=b.plugins.object[h].width;g.height=f.getElementHeight(P)-f.parseDimension(P.style.top)-f.parseDimension(P.style.bottom);P.style[j]=f.parseDimension(P.style[j])+b.plugins.object[h].width+"px";P.style.width=f.getElementWidth(P)-g.width+"px";break;default:break}return g}this.resize=ae;this.fullscreen=function(g){var l;try{l=b.getMedia().getDisplayElement()}catch(m){}if(S()&&l&&l.webkitSupportsFullscreen){if(g&&!l.webkitDisplayingFullscreen){try{f.transform(l);l.webkitEnterFullscreen()}catch(h){}}else{if(!g){a();if(l.webkitDisplayingFullscreen){try{l.webkitExitFullscreen()}catch(h){}}}}V=false}else{if(g){document.onkeydown=af;clearInterval(X);var j=f.getBoundingClientRect(document.body);b.width=Math.abs(j.left)+Math.abs(j.right);b.height=window.innerHeight;var k={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};d(c,k);k.zIndex=1;if(b.getMedia()&&b.getMedia().getDisplayElement()){d(b.getMedia().getDisplayElement(),k)}k.zIndex=2;d(P,k);V=true}else{document.onkeydown="";b.width=ag;b.height=L;d(c,{position:"relative",height:b.height,width:b.width,zIndex:0});V=false}ae(b.width,b.height)}};function Q(g){return([e.html5.view.positions.TOP,e.html5.view.positions.RIGHT,e.html5.view.positions.BOTTOM,e.html5.view.positions.LEFT].toString().indexOf(g.toUpperCase())>-1)}function S(){if(J.jwGetState()!=e.api.events.state.IDLE&&!V&&(b.getMedia()&&b.getMedia().getDisplayElement()&&b.getMedia().getDisplayElement().webkitSupportsFullscreen)&&f.useNativeFullscreen()){return true}return false}};e.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(d){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:d.html5.view.positions.BOTTOM,idlehide:false,hideplaylistcontrols:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=d.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};d.html5.controlbar=function(ba,am){window.controlbar=this;var bb=ba;var aP=_utils.extend({},c,bb.skin.getComponentSettings("controlbar"),am);if(aP.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[aP.position]=="undefined"){return}if(_utils.mapLength(bb.skin.getComponentLayout("controlbar"))>0){aP.layout=bb.skin.getComponentLayout("controlbar")}var aM;var au;var aO;var aN;var a0="none";var be;var bc;var aL;var bf;var bg;var aX;var at={};var a6=false;var bj={};var aU;var bd=false;var a7;var bi;var ap=false;var aJ=false;var aH;var a=new d.html5.eventdispatcher();_utils.extend(this,a);function aB(){if(!aU){aU=bb.skin.getSkinElement("controlbar","background");if(!aU){aU={width:0,height:0,src:null}}}return aU}function aw(){aO=0;aN=0;au=0;if(!a6){var e={height:aB().height,backgroundColor:aP.backgroundcolor};aM=document.createElement("div");aM.id=bb.id+"_jwplayer_controlbar";_css(aM,e)}var f=(bb.skin.getSkinElement("controlbar","capLeft"));var g=(bb.skin.getSkinElement("controlbar","capRight"));if(f){aY("capLeft","left",false,aM)}aT("background",aM,{position:"absolute",height:aB().height,left:(f?f.width:0),zIndex:0},"img");if(aB().src){at.background.src=aB().src}aT("elements",aM,{position:"relative",height:aB().height,zIndex:1});if(g){aY("capRight","right",false,aM)}}this.getDisplayElement=function(){return aM};this.resize=function(e,g){ar();_utils.cancelAnimation(aM);bg=e;aX=g;if(aJ!=bb.jwGetFullscreen()){aJ=bb.jwGetFullscreen();bi=undefined}var f=aZ();aC({id:bb.id,duration:aL,position:bc});a1({id:bb.id,bufferPercent:bf});return f};this.show=function(){if(bd){bd=false;_show(aM);ao()}};this.hide=function(){if(!bd){bd=true;_hide(aM);aR()}};function a5(){var f=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var e in f){var g=f[e];if(typeof at[g]!="undefined"){bj[g]=_utils.getBoundingClientRect(at[g])}}}var bh;function b(e){if(bd){return}clearTimeout(a7);if(aP.position==d.html5.view.positions.OVER||bb.jwGetFullscreen()){switch(bb.jwGetState()){case d.api.events.state.PAUSED:case d.api.events.state.IDLE:if(aM&&aM.style.opacity<1&&(!aP.idlehide||_utils.exists(e))){bh=false;setTimeout(function(){if(!bh){an()}},100)}if(aP.idlehide){a7=setTimeout(function(){aV()},2000)}break;default:bh=true;if(e){an()}a7=setTimeout(function(){aV()},2000);break}}else{an()}}function aV(){if(!bd){aR();if(aM.style.opacity==1){_utils.cancelAnimation(aM);_utils.fadeTo(aM,0,0.1,1,0)}}}function an(){if(!bd){ao();if(aM.style.opacity==0){_utils.cancelAnimation(aM);_utils.fadeTo(aM,1,0.1,0,0)}}}function aF(e){return function(){if(ap&&bi!=e){bi=e;a.sendEvent(e,{component:"controlbar",boundingRect:av()})}}}var ao=aF(d.api.events.JWPLAYER_COMPONENT_SHOW);var aR=aF(d.api.events.JWPLAYER_COMPONENT_HIDE);function av(){if(aP.position==d.html5.view.positions.OVER||bb.jwGetFullscreen()){return _utils.getDimensions(aM)}else{return{x:0,y:0,width:0,height:0}}}function aT(e,f,g,j){var h;if(!a6){if(!j){j="div"}h=document.createElement(j);at[e]=h;h.id=aM.id+"_"+e;f.appendChild(h)}else{h=document.getElementById(aM.id+"_"+e)}if(_utils.exists(g)){_css(h,g)}return h}function ax(){if(bb.jwGetHeight()<=40){aP.layout=_utils.clone(aP.layout);for(var e=0;e<aP.layout.left.elements.length;e++){if(aP.layout.left.elements[e].name=="fullscreen"){aP.layout.left.elements.splice(e,1)}}for(e=0;e<aP.layout.right.elements.length;e++){if(aP.layout.right.elements[e].name=="fullscreen"){aP.layout.right.elements.splice(e,1)}}a8()}aA(aP.layout.left);aA(aP.layout.center);aA(aP.layout.right)}function aA(f,j){var e=f.position=="right"?"right":"left";var g=_utils.extend([],f.elements);if(_utils.exists(j)){g.reverse()}var f=aT(f.position+"Group",at.elements,{"float":"left",styleFloat:"left",cssFloat:"left",height:"100%"});for(var h=0;h<g.length;h++){aQ(g[h],e,f)}}function az(){return au++}function aQ(k,h,f){var l,n,m,o,e;if(!f){f=at.elements}if(k.type=="divider"){aY("divider"+az(),h,true,f,undefined,k.width,k.element);return}switch(k.name){case"play":aY("playButton",h,false,f);aY("pauseButton",h,true,f);aq("playButton","jwPlay");aq("pauseButton","jwPause");break;case"prev":aY("prevButton",h,true,f);aq("prevButton","jwPlaylistPrev");break;case"stop":aY("stopButton",h,true,f);aq("stopButton","jwStop");break;case"next":aY("nextButton",h,true,f);aq("nextButton","jwPlaylistNext");break;case"elapsed":aY("elapsedText",h,true,f);break;case"time":n=!_utils.exists(bb.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:bb.skin.getSkinElement("controlbar","timeSliderCapLeft").width;m=!_utils.exists(bb.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:bb.skin.getSkinElement("controlbar","timeSliderCapRight").width;l=h=="left"?n:m;e={height:aB().height,position:"relative","float":"left",styleFloat:"left",cssFloat:"left"};var j=aT("timeSlider",f,e);aY("timeSliderCapLeft",h,true,j,"relative");aY("timeSliderRail",h,false,j,"relative");aY("timeSliderBuffer",h,false,j,"absolute");aY("timeSliderProgress",h,false,j,"absolute");aY("timeSliderThumb",h,false,j,"absolute");aY("timeSliderCapRight",h,true,j,"relative");aW("time");break;case"fullscreen":aY("fullscreenButton",h,false,f);aY("normalscreenButton",h,true,f);aq("fullscreenButton","jwSetFullscreen",true);aq("normalscreenButton","jwSetFullscreen",false);break;case"volume":n=!_utils.exists(bb.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:bb.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;m=!_utils.exists(bb.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:bb.skin.getSkinElement("controlbar","volumeSliderCapRight").width;l=h=="left"?n:m;o=bb.skin.getSkinElement("controlbar","volumeSliderRail").width+n+m;e={height:aB().height,position:"relative",width:o,"float":"left",styleFloat:"left",cssFloat:"left"};var g=aT("volumeSlider",f,e);aY("volumeSliderCapLeft",h,false,g,"relative");aY("volumeSliderRail",h,false,g,"relative");aY("volumeSliderProgress",h,false,g,"absolute");aY("volumeSliderThumb",h,false,g,"absolute");aY("volumeSliderCapRight",h,false,g,"relative");aW("volume");break;case"mute":aY("muteButton",h,false,f);aY("unmuteButton",h,true,f);aq("muteButton","jwSetMute",true);aq("unmuteButton","jwSetMute",false);break;case"duration":aY("durationText",h,true,f);break}}function aY(m,j,o,f,l,p,n){if(_utils.exists(bb.skin.getSkinElement("controlbar",m))||m.indexOf("Text")>0||m.indexOf("divider")===0){var k={height:"100%",position:l?l:"relative",display:"block","float":"left",styleFloat:"left",cssFloat:"left"};if((m.indexOf("next")===0||m.indexOf("prev")===0)&&(bb.jwGetPlaylist().length<2||aP.hideplaylistcontrols)){o=false;k.display="none"}var e;if(m.indexOf("Text")>0){m.innerhtml="00:00";k.font=aP.fontsize+"px/"+(aB().height+1)+"px "+aP.font;k.color=aP.fontcolor;k.textAlign="center";k.fontWeight=aP.fontweight;k.fontStyle=aP.fontstyle;k.cursor="default";e=14+3*aP.fontsize}else{if(m.indexOf("divider")===0){if(p){if(!isNaN(parseInt(p))){e=parseInt(p)}}else{if(n){var h=bb.skin.getSkinElement("controlbar",n);if(h){k.background="url("+h.src+") repeat-x center left";e=h.width}}else{k.background="url("+bb.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";e=bb.skin.getSkinElement("controlbar","divider").width}}}else{k.background="url("+bb.skin.getSkinElement("controlbar",m).src+") repeat-x center left";e=bb.skin.getSkinElement("controlbar",m).width}}if(j=="left"){if(o){aO+=e}}else{if(j=="right"){if(o){aN+=e}}}if(_utils.typeOf(f)=="undefined"){f=at.elements}k.width=e;if(a6){_css(at[m],k)}else{var g=aT(m,f,k);if(_utils.exists(bb.skin.getSkinElement("controlbar",m+"Over"))){g.onmouseover=function(q){g.style.backgroundImage=["url(",bb.skin.getSkinElement("controlbar",m+"Over").src,")"].join("")};g.onmouseout=function(q){g.style.backgroundImage=["url(",bb.skin.getSkinElement("controlbar",m).src,")"].join("")}}if(m.indexOf("divider")==0){g.setAttribute("class","divider")}}}}function aK(){bb.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,aS);bb.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_ITEM,a3);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,a1);bb.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,a4);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,aC);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,aD);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,a9);bb.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,ay)}function aS(){if(!aP.hideplaylistcontrols){if(bb.jwGetPlaylist().length>1){_show(at.nextButton);_show(at.prevButton)}else{_hide(at.nextButton);_hide(at.prevButton)}aZ();aI()}}function a3(e){aL=bb.jwGetPlaylist()[e.index].duration;aC({id:bb.id,duration:aL,position:0});a1({id:bb.id,bufferProgress:0})}function aI(){aC({id:bb.id,duration:bb.jwGetDuration(),position:0});a1({id:bb.id,bufferProgress:0});aD({id:bb.id,mute:bb.jwGetMute()});a4({id:bb.id,newstate:d.api.events.state.IDLE});a9({id:bb.id,volume:bb.jwGetVolume()})}function aq(f,e,g){if(a6){return}if(_utils.exists(bb.skin.getSkinElement("controlbar",f))){var h=at[f];if(_utils.exists(h)){_css(h,{cursor:"pointer"});if(e=="fullscreen"){h.onmouseup=function(j){j.stopPropagation();bb.jwSetFullscreen(!bb.jwGetFullscreen())}}else{h.onmouseup=function(j){j.stopPropagation();if(_utils.exists(g)){bb[e](g)}else{bb[e]()}}}}}}function aW(f){if(a6){return}var e=at[f+"Slider"];_css(at.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(g){a0=f};e.onmouseup=function(g){g.stopPropagation();aE(g.pageX)};e.onmousemove=function(h){if(a0=="time"){be=true;var g=h.pageX-bj[f+"Slider"].left-window.pageXOffset;_css(at[a0+"SliderThumb"],{left:g})}}}function aE(g){be=false;var h;if(a0=="time"){h=g-bj.timeSliderRail.left+window.pageXOffset;var e=h/bj.timeSliderRail.width*aL;if(e<0){e=0}else{if(e>aL){e=aL-3}}if(bb.jwGetState()==d.api.events.state.PAUSED||bb.jwGetState()==d.api.events.state.IDLE){bb.jwPlay()}bb.jwSeek(e)}else{if(a0=="volume"){h=g-bj.volumeSliderRail.left-window.pageXOffset;var f=Math.round(h/bj.volumeSliderRail.width*100);if(f<0){f=0}else{if(f>100){f=100}}if(bb.jwGetMute()){bb.jwSetMute(false)}bb.jwSetVolume(f)}}a0="none"}function a1(g){if(_utils.exists(g.bufferPercent)){bf=g.bufferPercent}if(bj.timeSliderRail){var e=bb.skin.getSkinElement("controlbar","timeSliderCapLeft");var f=bj.timeSliderRail.width;var h=isNaN(Math.round(f*bf/100))?0:Math.round(f*bf/100);_css(at.timeSliderBuffer,{width:h,left:e?e.width:0})}}function aD(e){if(e.mute){_hide(at.muteButton);_show(at.unmuteButton);_hide(at.volumeSliderProgress)}else{_show(at.muteButton);_hide(at.unmuteButton);_show(at.volumeSliderProgress)}}function a4(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(at.pauseButton);_hide(at.playButton)}else{_hide(at.pauseButton);_show(at.playButton)}b();if(e.newstate==d.api.events.state.IDLE){_hide(at.timeSliderBuffer);_hide(at.timeSliderProgress);_hide(at.timeSliderThumb);aC({id:bb.id,duration:bb.jwGetDuration(),position:0})}else{_show(at.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(at.timeSliderProgress);_show(at.timeSliderThumb)}}}function ay(e){a1({bufferPercent:0});aC(_utils.extend(e,{position:0,duration:aL}))}function aC(g){if(_utils.exists(g.position)){bc=g.position}if(_utils.exists(g.duration)){aL=g.duration}var j=(bc===aL===0)?0:bc/aL;var e=bj.timeSliderRail;if(e){var k=isNaN(Math.round(e.width*j))?0:Math.round(e.width*j);var f=bb.skin.getSkinElement("controlbar","timeSliderCapLeft");var h=k+(f?f.width:0);if(at.timeSliderProgress){_css(at.timeSliderProgress,{width:k,left:f?f.width:0});if(!be){if(at.timeSliderThumb){at.timeSliderThumb.style.left=h+"px"}}}}if(at.durationText){at.durationText.innerHTML=_utils.timeFormat(aL)}if(at.elapsedText){at.elapsedText.innerHTML=_utils.timeFormat(bc)}}function a8(){var k=at.elements.childNodes;var e,g;for(var h=0;h<k.length;h++){var f=k[h].childNodes;for(var j in f){if(isNaN(parseInt(j,10))){continue}if(f[j].id.indexOf(aM.id+"_divider")===0&&g&&g.id.indexOf(aM.id+"_divider")===0&&f[j].style.backgroundImage==g.style.backgroundImage){f[j].style.display="none"}else{if(f[j].id.indexOf(aM.id+"_divider")===0&&e&&e.style.display!="none"){f[j].style.display="block"}}if(f[j].style.display!="none"){g=f[j]}e=f[j]}}}function aG(){if(bb.jwGetFullscreen()){_show(at.normalscreenButton);_hide(at.fullscreenButton)}else{_hide(at.normalscreenButton);_show(at.fullscreenButton)}if(bb.jwGetState()==d.api.events.state.BUFFERING||bb.jwGetState()==d.api.events.state.PLAYING){_show(at.pauseButton);_hide(at.playButton)}else{_hide(at.pauseButton);_show(at.playButton)}if(bb.jwGetMute()==true){_hide(at.muteButton);_show(at.unmuteButton)}else{_show(at.muteButton);_hide(at.unmuteButton)}}function aZ(){a8();aG();var m={width:bg};var e={"float":"left",styleFloat:"left",cssFloat:"left"};if(aP.position==d.html5.view.positions.OVER||bb.jwGetFullscreen()){m.left=aP.margin;m.width-=2*aP.margin;m.top=aX-aB().height-aP.margin;m.height=aB().height}var k=bb.skin.getSkinElement("controlbar","capLeft");var g=bb.skin.getSkinElement("controlbar","capRight");e.width=m.width-(k?k.width:0)-(g?g.width:0);var l=_utils.getBoundingClientRect(at.leftGroup).width;var h=_utils.getBoundingClientRect(at.rightGroup).width;var j=e.width-l-h;var n=j;var o=bb.skin.getSkinElement("controlbar","timeSliderCapLeft");var f=bb.skin.getSkinElement("controlbar","timeSliderCapRight");if(_utils.exists(o)){n-=o.width}if(_utils.exists(f)){n-=f.width}at.timeSlider.style.width=j+"px";at.timeSliderRail.style.width=n+"px";_css(aM,m);_css(at.elements,e);_css(at.background,e);a5();return m}function a9(f){if(_utils.exists(at.volumeSliderRail)){var j=isNaN(f.volume/100)?1:f.volume/100;var h=_utils.parseDimension(at.volumeSliderRail.style.width);var l=isNaN(Math.round(h*j))?0:Math.round(h*j);var e=_utils.parseDimension(at.volumeSliderRail.style.right);var k=(!_utils.exists(bb.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:bb.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(at.volumeSliderProgress,{width:l,left:k});if(at.volumeSliderThumb){var g=(l-Math.round(_utils.parseDimension(at.volumeSliderThumb.style.width)/2));g=Math.min(Math.max(g,0),h-_utils.parseDimension(at.volumeSliderThumb.style.width));_css(at.volumeSliderThumb,{left:g})}if(_utils.exists(at.volumeSliderCapLeft)){_css(at.volumeSliderCapLeft,{left:0})}}}function ar(){aH=document.getElementById(bb.id);aH.addEventListener("mousemove",b)}function a2(){aw();ax();a5();a6=true;aK();aP.idlehide=(aP.idlehide.toString().toLowerCase()=="true");if(aP.position==d.html5.view.positions.OVER&&aP.idlehide){aM.style.opacity=0;ap=true}else{aM.style.opacity=1;setTimeout((function(){ap=true;ao()}),1)}ar();aI()}a2();return this}})(jwplayer);(function(d){var e=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var f=d.utils;d.html5.controller=function(ap,U,ay,aw){var aq=ap;var at=ay;var av=aw;var af=U;var S=true;var Y=-1;var ad=f.exists(at.config.debug)&&(at.config.debug.toString().toLowerCase()=="console");var R=new d.html5.eventdispatcher(af.id,ad);f.extend(this,R);var ab=[];var an=false;function T(g){if(an){R.sendEvent(g.type,g)}else{ab.push(g)}}function al(j){if(!an){an=true;R.sendEvent(d.api.events.JWPLAYER_READY,j);if(d.utils.exists(window.playerReady)){playerReady(j)}if(d.utils.exists(window[ay.config.playerReady])){window[ay.config.playerReady](j)}while(ab.length>0){var g=ab.shift();R.sendEvent(g.type,g)}if(ay.config.autostart&&!d.utils.isIOS()){Q()}while(ag.length>0){var h=ag.shift();ac(h.method,h.arguments)}}}at.addGlobalListener(T);at.addEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){at.getMedia().play()});at.addEventListener(d.api.events.JWPLAYER_MEDIA_TIME,function(g){if(g.position>=at.playlist[at.item].start&&Y>=0){at.playlist[at.item].start=Y;Y=-1}});at.addEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,function(g){setTimeout(aa,25)});at.addEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,Q);at.addEventListener(d.api.events.JWPLAYER_FULLSCREEN,ao);function Z(){try{ai(at.item);if(at.playlist[at.item].levels[0].file.length>0){if(S||at.state==d.api.events.state.IDLE){at.getMedia().load(at.playlist[at.item]);S=false}else{if(at.state==d.api.events.state.PAUSED){at.getMedia().play()}}}return true}catch(g){R.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function az(){try{if(at.playlist[at.item].levels[0].file.length>0){switch(at.state){case d.api.events.state.PLAYING:case d.api.events.state.BUFFERING:if(at.getMedia()){at.getMedia().pause()}break}}return true}catch(g){R.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ae(h){try{if(at.playlist[at.item].levels[0].file.length>0){if(typeof h!="number"){h=parseFloat(h)}switch(at.state){case d.api.events.state.IDLE:if(Y<0){Y=at.playlist[at.item].start;at.playlist[at.item].start=h}Z();break;case d.api.events.state.PLAYING:case d.api.events.state.PAUSED:case d.api.events.state.BUFFERING:at.seek(h);break}}return true}catch(g){R.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ah(h){if(!f.exists(h)){h=true}try{if(at.getMedia()){at.getMedia().stop(h)}return true}catch(g){R.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function au(){try{if(at.playlist[at.item].levels[0].file.length>0){if(at.config.shuffle){ai(a())}else{if(at.item+1==at.playlist.length){ai(0)}else{ai(at.item+1)}}}if(at.state!=d.api.events.state.IDLE){var g=at.state;at.state=d.api.events.state.IDLE;R.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}Z();return true}catch(h){R.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function W(){try{if(at.playlist[at.item].levels[0].file.length>0){if(at.config.shuffle){ai(a())}else{if(at.item===0){ai(at.playlist.length-1)}else{ai(at.item-1)}}}if(at.state!=d.api.events.state.IDLE){var g=at.state;at.state=d.api.events.state.IDLE;R.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}Z();return true}catch(h){R.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function a(){var g=null;if(at.playlist.length>1){while(!f.exists(g)){g=Math.floor(Math.random()*at.playlist.length);if(g==at.item){g=null}}}else{g=0}return g}function X(h){if(!at.playlist||!at.playlist[h]){return false}try{if(at.playlist[h].levels[0].file.length>0){var g=at.state;if(g!==d.api.events.state.IDLE){if(at.playlist[at.item].provider==at.playlist[h].provider){ah(false)}else{ah()}}ai(h);Z()}return true}catch(j){R.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function ai(g){if(!at.playlist[g]){return}at.setActiveMediaProvider(at.playlist[g]);if(at.item!=g){at.item=g;S=true;R.sendEvent(d.api.events.JWPLAYER_PLAYLIST_ITEM,{index:g})}}function ax(h){try{ai(at.item);var g=at.getMedia();switch(typeof(h)){case"number":g.volume(h);break;case"string":g.volume(parseInt(h,10));break}return true}catch(j){R.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function am(h){try{ai(at.item);var g=at.getMedia();if(typeof h=="undefined"){g.mute(!at.mute)}else{if(h.toString().toLowerCase()=="true"){g.mute(true)}else{g.mute(false)}}return true}catch(j){R.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function V(h,j){try{at.width=h;at.height=j;av.resize(h,j);R.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:at.width,height:at.height});return true}catch(g){R.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function aj(g){try{if(typeof g=="undefined"){g=!at.fullscreen}if(g!=at.fullscreen){if(g.toString().toLowerCase()=="true"){at.fullscreen=true;av.fullscreen(true);R.sendEvent(d.api.events.JWPLAYER_FULLSCREEN,{fullscreen:true})}else{at.fullscreen=false;av.fullscreen(false);R.sendEvent(d.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}R.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:at.width,height:at.height})}return true}catch(h){R.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function b(h){try{ah();at.loadPlaylist(h);if(at.playlist[at.item].provider){ai(at.item);if(at.config.autostart.toString().toLowerCase()=="true"){Z()}return true}else{return false}}catch(g){R.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function Q(g){ai(at.playlist[at.item]);if(at.config.autostart.toString().toLowerCase()=="true"){Z()}}function ao(g){aj(g.fullscreen)}function ak(){try{return at.getMedia().detachMedia()}catch(g){return null}}function ar(){try{return at.getMedia().attachMedia()}catch(g){return null}}d.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function aa(){switch(at.config.repeat.toUpperCase()){case d.html5.controller.repeatoptions.SINGLE:Z();break;case d.html5.controller.repeatoptions.ALWAYS:if(at.item==at.playlist.length-1&&!at.config.shuffle){X(0)}else{au()}break;case d.html5.controller.repeatoptions.LIST:if(at.item==at.playlist.length-1&&!at.config.shuffle){ah();ai(0)}else{au()}break;default:ah();break}}var ag=[];function c(g){return function(){if(an){ac(g,arguments)}else{ag.push({method:g,arguments:arguments})}}}function ac(g,h){var j=[];for(i=0;i<h.length;i++){j.push(h[i])}g.apply(this,j)}this.play=c(Z);this.pause=c(az);this.seek=c(ae);this.stop=c(ah);this.next=c(au);this.prev=c(W);this.item=c(X);this.setVolume=c(ax);this.setMute=c(am);this.resize=c(V);this.setFullscreen=c(aj);this.load=c(b);this.playerReady=al;this.detachMedia=ak;this.attachMedia=ar}})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/></settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/></group><group position="center"><slider name="time"/></group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/></group></layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/></elements></component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/></settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/></settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(b){_utils=b.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};b.html5.display=function(aB,ad){var aC={icons:true,showmute:false};var a=_utils.extend({},aC,ad);var aD=aB;var T={};var aG;var aq;var an;var V;var at;var ab;var aj;var aa=!_utils.exists(aD.skin.getComponentSettings("display").bufferrotation)?15:parseInt(aD.skin.getComponentSettings("display").bufferrotation,10);var av=!_utils.exists(aD.skin.getComponentSettings("display").bufferinterval)?100:parseInt(aD.skin.getComponentSettings("display").bufferinterval,10);var ak=-1;var ar="";var Z=true;var aH;var aE=false;var ay=false;var ao,X;var ac=new b.html5.eventdispatcher();_utils.extend(this,ac);var ag={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:az},display_icon:{style:{cursor:"pointer",position:"absolute",top:((aD.skin.getSkinElement("display","background").height-aD.skin.getSkinElement("display","playIcon").height)/2),left:((aD.skin.getSkinElement("display","background").width-aD.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((aq-aD.skin.getSkinElement("display","background").height)/2),left:((aG-aD.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",aD.skin.getSkinElement("display","background").src,")"]).join(""),width:aD.skin.getSkinElement("display","background").width,height:aD.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:aG,height:aq,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};aD.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,ax);aD.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,ax);aD.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,ax);aD.jwAddEventListener(b.api.events.JWPLAYER_ERROR,aw);Y();function Y(){T.display=ah("div","display");T.display_text=ah("div","display_text");T.display.appendChild(T.display_text);T.display_image=ah("img","display_image");T.display_image.onerror=function(c){_hide(T.display_image)};T.display_image.onload=al;T.display_icon=ah("div","display_icon");T.display_iconBackground=ah("div","display_iconBackground");T.display.appendChild(T.display_image);T.display_iconBackground.appendChild(T.display_icon);T.display.appendChild(T.display_iconBackground);aF();setTimeout((function(){ay=true;if(a.icons.toString()=="true"){ae()}}),1)}this.getDisplayElement=function(){return T.display};this.resize=function(c,d){_css(T.display,{width:c,height:d});_css(T.display_text,{width:(c-10),top:((d-_utils.getBoundingClientRect(T.display_text).height)/2)});_css(T.display_iconBackground,{top:((d-aD.skin.getSkinElement("display","background").height)/2),left:((c-aD.skin.getSkinElement("display","background").width)/2)});if(aG!=c||aq!=d){aG=c;aq=d;aH=undefined;ae()}if(!aD.jwGetFullscreen()){ao=c;X=d}aI();ax({})};this.show=function(){if(aE){aE=false;au(aD.jwGetState())}};this.hide=function(){if(!aE){ai();aE=true}};function al(c){an=T.display_image.naturalWidth;V=T.display_image.naturalHeight;aI()}function aI(){if(aD.jwGetFullscreen()&&aD.jwGetStretching()==b.utils.stretching.EXACTFIT){var c=document.createElement("div");_utils.stretch(b.utils.stretching.UNIFORM,c,aG,aq,ao,X);_utils.stretch(b.utils.stretching.EXACTFIT,T.display_image,_utils.parseDimension(c.style.width),_utils.parseDimension(c.style.height),an,V);_css(T.display_image,{left:c.style.left,top:c.style.top})}else{_utils.stretch(aD.jwGetStretching(),T.display_image,aG,aq,an,V)}}function ah(e,c){var d=document.createElement(e);d.id=aD.id+"_jwplayer_"+c;_css(d,ag[c].style);return d}function aF(){for(var c in T){if(_utils.exists(ag[c].click)){T[c].onclick=ag[c].click}}}function az(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(aD.jwGetState()!=b.api.events.state.PLAYING){aD.jwPlay()}else{aD.jwPause()}}function U(c){if(aj){ai();return}T.display_icon.style.backgroundImage=(["url(",aD.skin.getSkinElement("display",c).src,")"]).join("");_css(T.display_icon,{width:aD.skin.getSkinElement("display",c).width,height:aD.skin.getSkinElement("display",c).height,top:(aD.skin.getSkinElement("display","background").height-aD.skin.getSkinElement("display",c).height)/2,left:(aD.skin.getSkinElement("display","background").width-aD.skin.getSkinElement("display",c).width)/2});aJ();if(_utils.exists(aD.skin.getSkinElement("display",c+"Over"))){T.display_icon.onmouseover=function(d){T.display_icon.style.backgroundImage=["url(",aD.skin.getSkinElement("display",c+"Over").src,")"].join("")};T.display_icon.onmouseout=function(d){T.display_icon.style.backgroundImage=["url(",aD.skin.getSkinElement("display",c).src,")"].join("")}}else{T.display_icon.onmouseover=null;T.display_icon.onmouseout=null}}function ai(){if(a.icons.toString()=="true"){_hide(T.display_icon);_hide(T.display_iconBackground);W()}}function aJ(){if(!aE&&a.icons.toString()=="true"){_show(T.display_icon);_show(T.display_iconBackground);ae()}}function aw(c){aj=true;ai();T.display_text.innerHTML=c.message;_show(T.display_text);T.display_text.style.top=((aq-_utils.getBoundingClientRect(T.display_text).height)/2)+"px"}function af(){T.display_image.style.display="none"}function ax(d){if((d.type==b.api.events.JWPLAYER_PLAYER_STATE||d.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&aj){aj=false;_hide(T.display_text)}var c=aD.jwGetState();if(c==ar){return}ar=c;if(ak>=0){clearTimeout(ak)}if(Z||aD.jwGetState()==b.api.events.state.PLAYING||aD.jwGetState()==b.api.events.state.PAUSED){au(aD.jwGetState())}else{ak=setTimeout(aA(aD.jwGetState()),500)}}function aA(c){return(function(){au(c)})}function au(c){if(_utils.exists(ab)){clearInterval(ab);ab=null;_utils.animations.rotate(T.display_icon,0)}switch(c){case b.api.events.state.BUFFERING:if(_utils.isMobile()){af();ai()}else{if(aD.jwGetPlaylist()[aD.jwGetItem()].provider=="sound"){ap()}at=0;ab=setInterval(function(){at+=aa;_utils.animations.rotate(T.display_icon,at%360)},av);U("bufferIcon");Z=true}break;case b.api.events.state.PAUSED:if(!_utils.isMobile()){if(aD.jwGetPlaylist()[aD.jwGetItem()].provider!="sound"){_css(T.display_image,{background:"transparent no-repeat center center"})}U("playIcon");Z=true}break;case b.api.events.state.IDLE:if(aD.jwGetPlaylist()[aD.jwGetItem()]&&aD.jwGetPlaylist()[aD.jwGetItem()].image){ap()}else{af()}U("playIcon");Z=true;break;default:if(aD.jwGetPlaylist()[aD.jwGetItem()]&&aD.jwGetPlaylist()[aD.jwGetItem()].provider=="sound"){if(_utils.isMobile()){af();Z=false}else{ap()}}else{af();Z=false}if(aD.jwGetMute()&&a.showmute){U("muteIcon")}else{ai()}break}ak=-1}function ap(){if(aD.jwGetPlaylist()[aD.jwGetItem()]&&aD.jwGetPlaylist()[aD.jwGetItem()].image){_css(T.display_image,{display:"block"});T.display_image.src=_utils.getAbsolutePath(aD.jwGetPlaylist()[aD.jwGetItem()].image)}}function am(c){return function(){if(!ay){return}if(!aE&&aH!=c){aH=c;ac.sendEvent(c,{component:"display",boundingRect:_utils.getDimensions(T.display_iconBackground)})}}}var ae=am(b.api.events.JWPLAYER_COMPONENT_SHOW);var W=am(b.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(e){var f=e.utils;var d=f.css;e.html5.dock=function(H,P){function G(){return{align:e.html5.view.positions.RIGHT}}var W=f.extend({},G(),P);if(W.align=="FALSE"){return}var aa={};var a=[];var Z;var L;var ac=false;var Q=false;var ab={x:0,y:0,width:0,height:0};var b;var V;var c;var X=new e.html5.eventdispatcher();f.extend(this,X);var R=document.createElement("div");R.id=H.id+"_jwplayer_dock";R.style.opacity=1;U();H.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,T);this.getDisplayElement=function(){return R};this.setButton=function(g,k,j,h){if(!k&&aa[g]){f.arrays.remove(a,g);R.removeChild(aa[g].div);delete aa[g]}else{if(k){if(!aa[g]){aa[g]={}}aa[g].handler=k;aa[g].outGraphic=j;aa[g].overGraphic=h;if(!aa[g].div){a.push(g);aa[g].div=document.createElement("div");aa[g].div.style.position="relative";R.appendChild(aa[g].div);aa[g].div.appendChild(document.createElement("img"));aa[g].div.childNodes[0].style.position="absolute";aa[g].div.childNodes[0].style.left=0;aa[g].div.childNodes[0].style.top=0;aa[g].div.childNodes[0].style.zIndex=10;aa[g].div.childNodes[0].style.cursor="pointer";aa[g].div.appendChild(document.createElement("img"));aa[g].div.childNodes[1].style.position="absolute";aa[g].div.childNodes[1].style.left=0;aa[g].div.childNodes[1].style.top=0;if(H.skin.getSkinElement("dock","button")){aa[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}aa[g].div.childNodes[1].style.zIndex=9;aa[g].div.childNodes[1].style.cursor="pointer";aa[g].div.onmouseover=function(){if(aa[g].overGraphic){aa[g].div.childNodes[0].src=aa[g].overGraphic}if(H.skin.getSkinElement("dock","buttonOver")){aa[g].div.childNodes[1].src=H.skin.getSkinElement("dock","buttonOver").src}};aa[g].div.onmouseout=function(){if(aa[g].outGraphic){aa[g].div.childNodes[0].src=aa[g].outGraphic}if(H.skin.getSkinElement("dock","button")){aa[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}};if(H.skin.getSkinElement("dock","button")){aa[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}}if(aa[g].outGraphic){aa[g].div.childNodes[0].src=aa[g].outGraphic}else{if(aa[g].overGraphic){aa[g].div.childNodes[0].src=aa[g].overGraphic}}if(k){aa[g].div.onclick=function(l){l.preventDefault();e(H.id).callback(g);if(aa[g].overGraphic){aa[g].div.childNodes[0].src=aa[g].overGraphic}if(H.skin.getSkinElement("dock","button")){aa[g].div.childNodes[1].src=H.skin.getSkinElement("dock","button").src}}}}}Y(Z,L)};function N(g){}function Y(u,h){U();if(a.length>0){var t=10;var j=t;var m=-1;var l=H.skin.getSkinElement("dock","button").height;var n=H.skin.getSkinElement("dock","button").width;var p=u-n-t;var k,q;if(W.align==e.html5.view.positions.LEFT){m=1;p=t}for(var s=0;s<a.length;s++){var g=Math.floor(j/h);if((j+l+t)>((g+1)*h)){j=((g+1)*h)+t;g=Math.floor(j/h)}var r=aa[a[s]].div;r.style.top=(j%h)+"px";r.style.left=(p+(H.skin.getSkinElement("dock","button").width+t)*g*m)+"px";var o={x:f.parseDimension(r.style.left),y:f.parseDimension(r.style.top),width:n,height:l};if(!k||(o.x<=k.x&&o.y<=k.y)){k=o}if(!q||(o.x>=q.x&&o.y>=q.y)){q=o}j+=H.skin.getSkinElement("dock","button").height+t}ab={x:k.x,y:k.y,width:q.x-k.x+q.width,height:k.y-q.y+q.height}}if(Q!=H.jwGetFullscreen()||Z!=u||L!=h){Z=u;L=h;Q=H.jwGetFullscreen();b=undefined;setTimeout(O,1)}}function ae(g){return function(){if(!ac&&b!=g&&a.length>0){b=g;X.sendEvent(g,{component:"dock",boundingRect:ab})}}}function T(g){if(f.isMobile()){if(g.newstate==e.api.events.state.IDLE){I()}else{ad()}}else{S()}}function S(g){if(ac){return}clearTimeout(c);if(P.position==e.html5.view.positions.OVER||H.jwGetFullscreen()){switch(H.jwGetState()){case e.api.events.state.PAUSED:case e.api.events.state.IDLE:if(R&&R.style.opacity<1&&(!P.idlehide||f.exists(g))){M()}if(P.idlehide){c=setTimeout(function(){K()},2000)}break;default:if(f.exists(g)){M()}c=setTimeout(function(){K()},2000);break}}else{M()}}var O=ae(e.api.events.JWPLAYER_COMPONENT_SHOW);var J=ae(e.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=Y;var I=function(){d(R,{display:"block"});if(ac){ac=false;O()}};var ad=function(){d(R,{display:"none"});if(!ac){J();ac=true}};function K(){if(!ac){J();if(R.style.opacity==1){f.cancelAnimation(R);f.fadeTo(R,0,0.1,1,0)}}}function M(){if(!ac){O();if(R.style.opacity==0){f.cancelAnimation(R);f.fadeTo(R,1,0.1,0,0)}}}function U(){V=document.getElementById(H.id);V.addEventListener("mousemove",S)}this.hide=ad;this.show=I;return this}})(jwplayer);(function(b){b.html5.eventdispatcher=function(e,a){var f=new b.events.eventdispatcher(a);b.utils.extend(this,f);this.sendEvent=function(d,c){if(!b.utils.exists(c)){c={}}b.utils.extend(c,{id:e,version:b.version,type:d});f.sendEvent(d,c)}}})(jwplayer);(function(d){var c={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=d.utils.css;d.html5.logo=function(A,w){var x=A;var a;var J;var b;var F=false;G();function G(){z();x.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,E);K();C()}function z(){if(c.prefix){var f=A.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(f)<0){c.prefix+=f+"/"}}if(w.position==d.html5.view.positions.OVER){w.position=c.position}try{if(window.location.href.indexOf("https")==0){c.prefix=c.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com")}}catch(e){}J=d.utils.extend({},c,w)}function K(){b=document.createElement("img");b.id=x.id+"_jwplayer_logo";b.style.display="none";b.onload=function(e){_css(b,D());y()};if(!J.file){return}if(J.file.indexOf("/")>=0){b.src=J.file}else{b.src=J.prefix+J.file}}if(!J.file){return}this.resize=function(e,f){};this.getDisplayElement=function(){return b};function C(){if(J.link){b.onmouseover=H;b.onmouseout=y;b.onclick=v}else{this.mouseEnabled=false}}function v(e){if(typeof e!="undefined"){e.stopPropagation()}if(!F){return}x.jwPause();x.jwSetFullscreen(false);if(J.link){window.open(J.link,"_top")}return}function y(e){if(J.link&&F){b.style.opacity=J.out}return}function H(e){if(F){b.style.opacity=J.over}return}function D(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=(J.hide.toString()=="true"&&!F)?"none":"block";var f=J.position.toLowerCase().split("-");for(var g in f){e[f[g]]=J.margin}return e}function B(){if(J.hide.toString()=="true"){b.style.display="block";b.style.opacity=0;d.utils.fadeTo(b,J.out,0.1,parseFloat(b.style.opacity));a=setTimeout(function(){I()},J.timeout*1000)}F=true}function I(){F=false;if(J.hide.toString()=="true"){d.utils.fadeTo(b,0,0.1,parseFloat(b.style.opacity))}}function E(e){if(e.newstate==d.api.events.state.BUFFERING){clearTimeout(a);B()}}return this}})(jwplayer);(function(f){var j={ended:f.api.events.state.IDLE,playing:f.api.events.state.PLAYING,pause:f.api.events.state.PAUSED,buffering:f.api.events.state.BUFFERING};var h=f.utils;var k=h.css;var g=h.isMobile();f.html5.mediavideo=function(al,T){var V={abort:ae,canplay:ai,canplaythrough:ai,durationchange:b,emptied:ae,ended:ai,error:O,loadeddata:b,loadedmetadata:b,loadstart:ai,pause:ai,play:ae,playing:ai,progress:e,ratechange:ae,seeked:ai,seeking:ai,stalled:ai,suspend:ai,timeupdate:P,volumechange:W,waiting:ai,canshowcurrentframe:ae,dataunavailable:ae,empty:ae,load:Y,loadedfirstframe:ae,webkitfullscreenchange:ak};var aj=new f.html5.eventdispatcher();h.extend(this,aj);var ad=al,ah=T,ag,S,U,af,an,a=false,aa=false,R,ab,Z;ac();this.load=function(n,m){if(typeof m=="undefined"){m=true}if(!aa){return}af=n;h.empty(ag);Z=0;if(n.levels&&n.levels.length>0){if(n.levels.length==1){ag.src=n.levels[0].file}else{ao(n.levels);if(ag.src){ag.removeAttribute("src")}for(var o=0;o<n.levels.length;o++){var l=ag.ownerDocument.createElement("source");l.src=n.levels[o].file;ag.appendChild(l);Z++}}}else{ag.src=n.file}if(g){if(n.image){ag.poster=n.image}ag.style.display="block";setTimeout(function(){ag.setAttribute("controls","controls")},100)}R=ab=U=false;ad.buffer=0;if(!h.exists(n.start)){n.start=0}ad.duration=n.duration;aj.sendEvent(f.api.events.JWPLAYER_MEDIA_LOADED);if((!g&&n.levels.length==1)||!a){ag.load()}a=false;if(m){N(f.api.events.state.BUFFERING);aj.sendEvent(f.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(!aa){return}if(S!=f.api.events.state.PLAYING){Q();if(ab){N(f.api.events.state.PLAYING)}else{N(f.api.events.state.BUFFERING)}ag.play()}};this.pause=function(){if(!aa){return}ag.pause();N(f.api.events.state.PAUSED)};this.seek=function(l){if(!aa){return}if(!(ad.duration<=0||isNaN(ad.duration))&&!(ad.position<=0||isNaN(ad.position))){ag.currentTime=l;ag.play()}};_stop=this.stop=function(n){if(!aa){return}if(!h.exists(n)){n=true}am();if(n){ag.style.display="none";ab=false;var m=navigator.userAgent;if(m.match(/chrome/i)){ag.src=undefined}else{if(m.match(/safari/i)||m.match(/firefox/i)){ag.removeAttribute("src")}else{ag.src=""}}ag.removeAttribute("controls");ag.removeAttribute("poster");h.empty(ag);ag.load();a=true;if(ag.webkitSupportsFullscreen){try{ag.webkitExitFullscreen()}catch(l){}}}N(f.api.events.state.IDLE)};this.fullscreen=function(l){if(l===true){this.resize("100%","100%")}else{this.resize(ad.config.width,ad.config.height)}};this.resize=function(l,m){};this.volume=function(l){if(!g){ag.volume=l/100}};this.mute=function(l){if(!g){ag.muted=l}};this.getDisplayElement=function(){return ag};this.hasChrome=function(){return g};this.detachMedia=function(){aa=false;return this.getDisplayElement()};this.attachMedia=function(){aa=true};function X(l,m){return function(n){if(aa&&h.exists(n.target.parentNode)){m(n)}}}function ac(){ag=document.createElement("video");S=f.api.events.state.IDLE;for(var l in V){ag.addEventListener(l,X(l,V[l]),true)}aa=true;ag.setAttribute("x-webkit-airplay","allow");if(ah.parentNode){ah.parentNode.replaceChild(ag,ah)}if(!ag.id){ag.id=ah.id}ag.volume=ad.volume/100}function N(m){if(m==f.api.events.state.PAUSED&&S==f.api.events.state.IDLE){return}if(S!=m){var l=S;ad.state=S=m;aj.sendEvent(f.api.events.JWPLAYER_PLAYER_STATE,{oldstate:l,newstate:m})}}function ae(l){}function W(m){var l=Math.round(ag.volume*100);if(l!=ad.volume){ad.volume=l;aj.sendEvent(f.api.events.JWPLAYER_MEDIA_VOLUME,{volume:ad.volume})}if(ag.muted!=ad.mute){ad.mute=ag.muted;aj.sendEvent(f.api.events.JWPLAYER_MEDIA_MUTE,{mute:ad.mute})}}function e(l){var m;if(h.exists(l)&&l.lengthComputable&&l.total){m=l.loaded/l.total*100}else{if(h.exists(ag.buffered)&&(ag.buffered.length>0)){var n=ag.buffered.length-1;if(n>=0){m=ag.buffered.end(n)/ag.duration*100}}}if(ab===false&&S==f.api.events.state.BUFFERING){aj.sendEvent(f.api.events.JWPLAYER_MEDIA_BUFFER_FULL);ab=true}if(!R){if(m==100){R=true}if(h.exists(m)&&(m>ad.buffer)){ad.buffer=Math.round(m);aj.sendEvent(f.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(m)})}}}function P(l){if(h.exists(l)&&h.exists(l.target)){if(!isNaN(l.target.duration)&&(isNaN(ad.duration)||ad.duration<1)){if(l.target.duration==Infinity){ad.duration=0}else{ad.duration=Math.round(l.target.duration*10)/10}}if(!U&&ag.readyState>0){ag.style.display="block";N(f.api.events.state.PLAYING)}if(S==f.api.events.state.PLAYING){if(!U&&ag.readyState>0){U=true;try{if(ag.currentTime<af.start){ag.currentTime=af.start}}catch(m){}ag.volume=ad.volume/100;ag.muted=ad.mute}ad.position=ad.duration>0?(Math.round(l.target.currentTime*10)/10):0;aj.sendEvent(f.api.events.JWPLAYER_MEDIA_TIME,{position:ad.position,duration:ad.duration});if(ad.position>=ad.duration&&(ad.position>0||ad.duration>0)){c()}}}e(l)}function Y(l){}function ai(l){if(j[l.type]){if(l.type=="ended"){c()}else{N(j[l.type])}}}function b(m){var n=Math.round(m.target.duration*10)/10;var l={height:m.target.videoHeight,width:m.target.videoWidth,duration:n};if((ad.duration<n||isNaN(ad.duration))&&m.target.duration!=Infinity){ad.duration=n}aj.sendEvent(f.api.events.JWPLAYER_MEDIA_META,{metadata:l})}function O(l){if(S==f.api.events.state.IDLE){return}var m="There was an error: ";if((l.target.error&&l.target.tagName.toLowerCase()=="video")||l.target.parentNode.error&&l.target.parentNode.tagName.toLowerCase()=="video"){var n=!h.exists(l.target.error)?l.target.parentNode.error:l.target.error;switch(n.code){case n.MEDIA_ERR_ABORTED:m="You aborted the video playback: ";break;case n.MEDIA_ERR_NETWORK:m="A network error caused the video download to fail part-way: ";break;case n.MEDIA_ERR_DECODE:m="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case n.MEDIA_ERR_SRC_NOT_SUPPORTED:m="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:m="An unknown error occurred: ";break}}else{if(l.target.tagName.toLowerCase()=="source"){Z--;if(Z>0){return}m="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{h.log("An unknown error occurred.  Continuing...");return}}_stop(false);m+=d();_error=true;aj.sendEvent(f.api.events.JWPLAYER_ERROR,{message:m});return}function d(){var m="";for(var n in af.levels){var o=af.levels[n];var l=ah.ownerDocument.createElement("source");m+=f.utils.getAbsolutePath(o.file);if(n<(af.levels.length-1)){m+=", "}}return m}function Q(){if(!h.exists(an)){an=setInterval(function(){e()},100)}}function am(){clearInterval(an);an=null}function c(){if(S!=f.api.events.state.IDLE){_stop(false);aj.sendEvent(f.api.events.JWPLAYER_MEDIA_COMPLETE)}}function ak(l){if(h.exists(ag.webkitDisplayingFullscreen)){if(ad.fullscreen&&!ag.webkitDisplayingFullscreen){aj.sendEvent(f.api.events.JWPLAYER_FULLSCREEN,{fullscreen:false})}}}function ao(m){if(m.length>0&&h.isIOS()){if(h.extension(m[0].file)!="mp4"){var o=-1;for(var n=1;n<m.length;n++){if(h.extension(m[n].file)=="mp4"){o=n;break}}if(o>-1){var l=m.splice(o,1)[0];m.unshift(l)}}}}}})(jwplayer);(function(e){var f={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var d=e.utils.css;e.html5.mediayoutube=function(r,v){var u=new e.html5.eventdispatcher();e.utils.extend(this,u);var p=r;var s=document.getElementById(v.id);var t=e.api.events.state.IDLE;var b,c;function q(h){if(t!=h){var g=t;p.state=h;t=h;u.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:h})}}this.getDisplayElement=this.detachMedia=function(){return s};this.attachMedia=function(){};this.play=function(){if(t==e.api.events.state.IDLE){u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);q(e.api.events.state.PLAYING)}else{if(t==e.api.events.state.PAUSED){q(e.api.events.state.PLAYING)}}};this.pause=function(){q(e.api.events.state.PAUSED)};this.seek=function(g){};this.stop=function(g){if(!_utils.exists(g)){g=true}p.position=0;q(e.api.events.state.IDLE);if(g){d(s,{display:"none"})}};this.volume=function(g){p.volume=g;u.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)})};this.mute=function(g){s.muted=g;p.mute=g;u.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:g})};this.resize=function(g,h){if(g*h>0&&b){b.width=c.width=g;b.height=c.height=h}};this.fullscreen=function(g){if(g===true){this.resize("100%","100%")}else{this.resize(p.config.width,p.config.height)}};this.load=function(g){a(g);d(b,{display:"block"});q(e.api.events.state.BUFFERING);u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});u.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(t!=e.api.events.state.IDLE)};function a(g){var k=g.levels[0].file;k=["http://www.youtube.com/v/",w(k),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");b=document.createElement("object");b.id=s.id;b.style.position="absolute";var h={movie:k,allowfullscreen:"true",allowscriptaccess:"always"};for(var n in h){var j=document.createElement("param");j.name=n;j.value=h[n];b.appendChild(j)}c=document.createElement("embed");b.appendChild(c);var m={src:k,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:b.width,height:b.height};for(var l in m){c.setAttribute(l,m[l])}b.appendChild(c);b.style.zIndex=2147483000;if(s!=b&&s.parentNode){s.parentNode.replaceChild(b,s)}s=b}function w(j){var k=j.split(/\?|\#\!/);var g="";for(var h=0;h<k.length;h++){if(k[h].substr(0,2)=="v="){g=k[h].substr(2)}}if(g==""){if(j.indexOf("/v/")>=0){g=j.substr(j.indexOf("/v/")+3)}else{if(j.indexOf("youtu.be")>=0){g=j.substr(j.indexOf("youtu.be/")+9)}else{g=j}}}if(g.indexOf("?")>-1){g=g.substr(0,g.indexOf("?"))}if(g.indexOf("&")>-1){g=g.substr(0,g.indexOf("&"))}return g}this.embed=c;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","playlist","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option]}else{if(!jwplayer.utils.exists(config[path[edge]])){config[path[edge]]={}}config=config[path[edge]]}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(jwplayer.utils.exists(_model.plugins)){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}}}}if(jwplayer.utils.isMobile()){pluginorder=["display","logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}else{if(_model.config.chromeless){pluginorder=["logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}var playlistVisible=false;for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=!jwplayer.utils.exists(_model.plugins.config[pluginName])?{}:_model.plugins.config[pluginName];_model.plugins.config[pluginName]=!jwplayer.utils.exists(_model.plugins.config[pluginName])?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(!jwplayer.utils.exists(_model.plugins.config[pluginName].position)){if(pluginName=="playlist"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE}else{_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}else{if(pluginName=="playlist"){playlistVisible=true}_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(_model.plugins.config.controlbar&&playlistVisible){_model.plugins.config.controlbar.hideplaylistcontrols=true}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}if(typeof _model.plugins.config.dock.idlehide=="undefined"){try{_model.plugins.config.dock.idlehide=_model.plugins.config.controlbar.idlehide}catch(e){}}}function _loadExternal(playlistfile){var loader=new jwplayer.html5.playlistloader();loader.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(evt){_model.playlist=new jwplayer.html5.playlist(evt);_loadComplete(true)});loader.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(evt){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});loader.load(playlistfile)}function _loadComplete(){if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}_model.position=0;_model.duration=_model.playlist.length>0?_model.playlist[_model.item].duration:0;_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string"){if(arg.indexOf("[")==0||arg.indexOf("{")=="0"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);_model.item=_model.config.item>=0?_model.config.item:0;if(!_model.playlist[_model.item].provider){_loadExternal(_model.playlist[_model.item].file)}else{_loadComplete()}};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(!jwplayer.utils.exists(result)){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(evt.type,evt)}var _mediaProviders={};_model.setActiveMediaProvider=function(playlistItem){if(playlistItem.provider=="audio"){playlistItem.provider="sound"}var provider=playlistItem.provider;var current=_media?_media.getDisplayElement():null;if(provider=="sound"||provider=="http"||provider==""){provider="video"}if(!jwplayer.utils.exists(_mediaProviders[provider])){switch(provider){case"video":_media=new jwplayer.html5.mediavideo(_model,current?current:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,current?current:_container);break}if(!jwplayer.utils.exists(_media)){return false}_media.addGlobalListener(forward);_mediaProviders[provider]=_media}else{if(_media!=_mediaProviders[provider]){if(_media){_media.stop()}_media=_mediaProviders[provider]}}return true};_model.getMedia=function(){return _media};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos)};_model.setupPlugins=function(){if(!jwplayer.utils.exists(_model.plugins)||!jwplayer.utils.exists(_model.plugins.order)||_model.plugins.order.length==0){jwplayer.utils.log("No plugins to set up");return _model}for(var i=0;i<_model.plugins.order.length;i++){try{var pluginName=_model.plugins.order[i];if(jwplayer.utils.exists(jwplayer.html5[pluginName])){if(pluginName=="playlist"){_model.plugins.object[pluginName]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[pluginName])}else{_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}}else{_model.plugins.order.splice(plugin,plugin+1)}if(typeof _model.plugins.object[pluginName].addGlobalListener=="function"){_model.plugins.object[pluginName].addGlobalListener(forward)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist instanceof Array&&a.playlist.length>0){for(var f in a.playlist){if(!isNaN(parseInt(f))){e.push(new b.html5.playlistitem(a.playlist[f]))}}}else{e.push(new b.html5.playlistitem(a))}return e}})(jwplayer);(function(e){var f={size:180,position:e.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""};var d={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=e.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};e.html5.playlistcomponent=function(J,K){var D=J;var X=e.utils.extend({},f,D.skin.getComponentSettings("playlist"),K);if(X.position==e.html5.view.positions.NONE||typeof e.html5.view.positions[X.position]=="undefined"){return}var c;var R;var I;var Y;var V;var W;var S=-1;var U={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return c};this.resize=function(g,j){R=g;I=j;if(D.jwGetFullscreen()){_hide(c)}else{var h={display:"block",width:R,height:I};_css(c,h)}};this.show=function(){_show(c)};this.hide=function(){_hide(c)};function T(){c=document.createElement("div");c.id=D.id+"_jwplayer_playlistcomponent";c.style.overflow="hidden";switch(X.position){case e.html5.view.positions.RIGHT:case e.html5.view.positions.LEFT:c.style.width=X.size+"px";break;case e.html5.view.positions.TOP:case e.html5.view.positions.BOTTOM:c.style.height=X.size+"px";break}M();if(U.item){X.itemheight=U.item.height}c.style.backgroundColor="#C6C6C6";D.jwAddEventListener(e.api.events.JWPLAYER_PLAYLIST_LOADED,H);D.jwAddEventListener(e.api.events.JWPLAYER_PLAYLIST_ITEM,F);D.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,Q)}function N(){var g=document.createElement("ul");_css(g,{width:c.style.width,minWidth:c.style.width,height:c.style.height,backgroundColor:X.backgroundcolor,backgroundImage:U.background?"url("+U.background.src+")":"",color:X.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:d[X.font]?d[X.font]:d._sans,fontSize:(X.fontsize?X.fontsize:11)+"px",fontStyle:X.fontstyle,fontWeight:X.fontweight,overflowY:"auto"});return g}function b(g){return function(){var k=W.getElementsByClassName("item")[g];var j=X.fontcolor;var h=U.item?"url("+U.item.src+")":"";if(g==D.jwGetPlaylistIndex()){if(X.activecolor!==""){j=X.activecolor}if(U.itemActive){h="url("+U.itemActive.src+")"}}_css(k,{color:X.overcolor!==""?X.overcolor:j,backgroundImage:U.itemOver?"url("+U.itemOver.src+")":h})}}function O(g){return function(){var k=W.getElementsByClassName("item")[g];var j=X.fontcolor;var h=U.item?"url("+U.item.src+")":"";if(g==D.jwGetPlaylistIndex()){if(X.activecolor!==""){j=X.activecolor}if(U.itemActive){h="url("+U.itemActive.src+")"}}_css(k,{color:j,backgroundImage:h})}}function L(p){var h=Y[p];var j=document.createElement("li");j.className="item";_css(j,{height:X.itemheight,display:"block",cursor:"pointer",backgroundImage:U.item?"url("+U.item.src+")":"",backgroundSize:"100% "+X.itemheight+"px"});j.onmouseover=b(p);j.onmouseout=O(p);var o=document.createElement("div");var s=new Image();var n=0;var m=0;var l=0;if(E()&&(h.image||h["playlist.image"]||U.itemImage)){s.className="image";if(U.itemImage){n=(X.itemheight-U.itemImage.height)/2;m=U.itemImage.width;l=U.itemImage.height}else{m=X.itemheight*4/3;l=X.itemheight}_css(o,{height:l,width:m,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:n+"px",position:"relative"});_css(s,{position:"relative"});o.appendChild(s);s.onload=function(){e.utils.stretch(e.utils.stretching.FILL,s,m,l,this.naturalWidth,this.naturalHeight)};if(h["playlist.image"]){s.src=h["playlist.image"]}else{if(h.image){s.src=h.image}else{if(U.itemImage){s.src=U.itemImage.src}}}j.appendChild(o)}var t=R-m-n*2;if(I<X.itemheight*Y.length){t-=15}var g=document.createElement("div");_css(g,{position:"relative",height:"100%",overflow:"hidden"});var r=document.createElement("span");if(h.duration>0){r.className="duration";_css(r,{fontSize:(X.fontsize?X.fontsize:11)+"px",fontWeight:(X.fontweight?X.fontweight:"bold"),width:"40px",height:X.fontsize?X.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});r.innerHTML=_utils.timeFormat(h.duration);g.appendChild(r)}var k=document.createElement("span");k.className="title";_css(k,{padding:"5px 5px 0 "+(n?0:"5px"),height:X.fontsize?X.fontsize+10:20,lineHeight:X.fontsize?X.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:((h.duration>0)?t-50:t)-10+"px",fontSize:(X.fontsize?X.fontsize:13)+"px",fontWeight:(X.fontweight?X.fontweight:"bold")});k.innerHTML=h?h.title:"";g.appendChild(k);if(h.description){var q=document.createElement("span");q.className="description";_css(q,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:k.style.paddingLeft,paddingRight:k.style.paddingRight,lineHeight:(X.fontsize?X.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});q.innerHTML=h.description;g.appendChild(q)}j.appendChild(g);return j}function H(j){c.innerHTML="";Y=D.jwGetPlaylist();if(!Y){return}items=[];W=N();for(var h=0;h<Y.length;h++){var k=L(h);k.onclick=a(h);W.appendChild(k);items.push(k)}S=D.jwGetPlaylistIndex();O(S)();c.appendChild(W);if(_utils.isIOS()&&window.iScroll){W.style.height=X.itemheight*Y.length+"px";var g=new iScroll(c.id)}}function a(g){return function(){D.jwPlaylistItem(g);D.jwPlay(true)}}function P(){W.scrollTop=D.jwGetPlaylistIndex()*X.itemheight}function E(){return X.thumbs.toString().toLowerCase()=="true"}function F(g){if(S>=0){O(S)();S=g.index}O(g.index)();P()}function Q(){if(X.position==e.html5.view.positions.OVER){switch(D.jwGetState()){case e.api.events.state.IDLE:_show(c);break;default:_hide(c);break}}}function M(){for(var g in U){U[g]=G(g)}}function G(g){return D.skin.getSkinElement("playlist",g)}T();return this}})(jwplayer);(function(c){c.html5.playlistitem=function(b){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var f=c.utils.extend({},a,b);if(f.type){f.provider=f.type;delete f.type}if(f.levels.length===0){f.levels[0]=new c.html5.playlistitemlevel(f)}if(!f.provider){f.provider=d(f.levels[0])}else{f.provider=f.provider.toLowerCase()}return f};function d(b){if(c.utils.isYouTube(b.file)){return"youtube"}else{var a=c.utils.extension(b.file);var h;if(a&&c.utils.extensionmap[a]){if(a=="m3u8"){return"video"}h=c.utils.extensionmap[a].html5}else{if(b.type){h=b.type}}if(h){var g=h.split("/")[0];if(g=="audio"){return"sound"}else{if(g=="video"){return g}}}}return""}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(b.utils.exists(a[f])){e[f]=a[f]}}return e}})(jwplayer);(function(b){b.html5.playlistloader=function(){var f=new b.html5.eventdispatcher();b.utils.extend(this,f);this.load=function(c){b.utils.ajax(c,e,a)};function e(d){var j=[];try{var j=b.utils.parsers.rssparser.parse(d.responseXML.firstChild);f.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new b.html5.playlist({playlist:j})})}catch(c){a("Could not parse the playlist")}}function a(c){f.sendEvent(b.api.events.JWPLAYER_ERROR,{message:c?c:"Could not load playlist an unknown reason."})}}})(jwplayer);(function(b){b.html5.skin=function(){var a={};var d=false;this.load=function(f,c){new b.html5.skinloader(f,function(e){d=true;a=e;c()},function(){new b.html5.skinloader("",function(e){d=true;a=e;c()})})};this.getSkinElement=function(h,g){if(d){try{return a[h].elements[g]}catch(c){b.utils.log("No such skin component / element: ",[h,g])}}return null};this.getComponentSettings=function(c){if(d){return a[c].settings}return null};this.getComponentLayout=function(c){if(d){return a[c].layout}return null}}})(jwplayer);(function(b){b.html5.skinloader=function(D,u,z){var v={};var G=u;var y=z;var E=true;var A;var w=D;var I=false;function x(){if(typeof w!="string"||w===""){F(b.html5.defaultSkin().xml)}else{b.utils.ajax(b.utils.getAbsolutePath(w),function(d){try{if(b.utils.exists(d.responseXML)){F(d.responseXML);return}}catch(c){B()}F(b.html5.defaultSkin().xml)},function(c){F(b.html5.defaultSkin().xml)})}}function F(m){var U=m.getElementsByTagName("component");if(U.length===0){return}for(var p=0;p<U.length;p++){var W=U[p].getAttribute("name");var X={settings:{},elements:{},layout:{}};v[W]=X;var s=U[p].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var S=0;S<s.length;S++){H(s[S],W)}var k=U[p].getElementsByTagName("settings")[0];if(k&&k.childNodes.length>0){var j=k.getElementsByTagName("setting");for(var d=0;d<j.length;d++){var c=j[d].getAttribute("name");var n=j[d].getAttribute("value");var o=/color$/.test(c)?"color":null;v[W].settings[c]=b.utils.typechecker(n,o)}}var h=U[p].getElementsByTagName("layout")[0];if(h&&h.childNodes.length>0){var g=h.getElementsByTagName("group");for(var q=0;q<g.length;q++){var Y=g[q];v[W].layout[Y.getAttribute("position")]={elements:[]};for(var e=0;e<Y.attributes.length;e++){var V=Y.attributes[e];v[W].layout[Y.getAttribute("position")][V.name]=V.value}var f=Y.getElementsByTagName("*");for(var r=0;r<f.length;r++){var T=f[r];v[W].layout[Y.getAttribute("position")].elements.push({type:T.tagName});for(var R=0;R<T.attributes.length;R++){var l=T.attributes[R];v[W].layout[Y.getAttribute("position")].elements[r][l.name]=l.value}if(!b.utils.exists(v[W].layout[Y.getAttribute("position")].elements[r].name)){v[W].layout[Y.getAttribute("position")].elements[r].name=T.tagName}}}}E=false;a()}}function a(){clearInterval(A);if(!I){A=setInterval(function(){t()},100)}}function H(k,d){var e=new Image();var h=k.getAttribute("name");var f=k.getAttribute("src");var c;if(f.indexOf("data:image/png;base64,")===0){c=f}else{var g=b.utils.getAbsolutePath(w);var j=g.substr(0,g.lastIndexOf("/"));c=[j,d,f].join("/")}v[d].elements[h]={height:0,width:0,src:"",ready:false,image:e};e.onload=function(l){C(e,h,d)};e.onerror=function(l){I=true;a();y()};e.src=c}function B(){for(var f in v){var d=v[f];for(var g in d.elements){var c=d.elements[g];var e=c.image;e.onload=null;e.onerror=null;delete c.image;delete d.elements[g]}delete v[f]}}function t(){for(var d in v){if(d!="properties"){for(var c in v[d].elements){if(!v[d].elements[c].ready){return}}}}if(E===false){clearInterval(A);G(v)}}function C(e,c,d){if(v[d]&&v[d].elements[c]){v[d].elements[c].height=e.height;v[d].elements[c].width=e.width;v[d].elements[c].src=e.src;v[d].elements[c].ready=true;a()}else{b.utils.log("Loaded an image for a missing element: "+d+"."+c)}}x()}})(jwplayer);(function(b){b.html5.api=function(x,a){var o={};var u=document.createElement("div");x.parentNode.replaceChild(u,x);u.id=x.id;o.version=b.version;o.id=u.id;var p=new b.html5.model(o,u,a);var r=new b.html5.view(o,u,p);var q=new b.html5.controller(o,u,p,r);o.skin=new b.html5.skin();o.jwPlay=function(c){if(typeof c=="undefined"){v()}else{if(c.toString().toLowerCase()=="true"){q.play()}else{q.pause()}}};o.jwPause=function(c){if(typeof c=="undefined"){v()}else{if(c.toString().toLowerCase()=="true"){q.pause()}else{q.play()}}};function v(){if(p.state==b.api.events.state.PLAYING||p.state==b.api.events.state.BUFFERING){q.pause()}else{q.play()}}o.jwStop=q.stop;o.jwSeek=q.seek;o.jwPlaylistItem=q.item;o.jwPlaylistNext=q.next;o.jwPlaylistPrev=q.prev;o.jwResize=q.resize;o.jwLoad=q.load;o.jwDetachMedia=q.detachMedia;o.jwAttachMedia=q.attachMedia;function s(c){return function(){return p[c]}}function w(e,c,d){return function(){var f=p.plugins.object[e];if(f&&f[c]&&typeof f[c]=="function"){f[c].apply(f,d)}}}o.jwGetItem=s("item");o.jwGetPosition=s("position");o.jwGetDuration=s("duration");o.jwGetBuffer=s("buffer");o.jwGetWidth=s("width");o.jwGetHeight=s("height");o.jwGetFullscreen=s("fullscreen");o.jwSetFullscreen=q.setFullscreen;o.jwGetVolume=s("volume");o.jwSetVolume=q.setVolume;o.jwGetMute=s("mute");o.jwSetMute=q.setMute;o.jwGetStretching=function(){return p.stretching.toUpperCase()};o.jwGetState=s("state");o.jwGetVersion=function(){return o.version};o.jwGetPlaylist=function(){return p.playlist};o.jwGetPlaylistIndex=o.jwGetItem;o.jwAddEventListener=q.addEventListener;o.jwRemoveEventListener=q.removeEventListener;o.jwSendEvent=q.sendEvent;o.jwDockSetButton=function(c,f,e,d){if(p.plugins.object.dock&&p.plugins.object.dock.setButton){p.plugins.object.dock.setButton(c,f,e,d)}};o.jwControlbarShow=w("controlbar","show");o.jwControlbarHide=w("controlbar","hide");o.jwDockShow=w("dock","show");o.jwDockHide=w("dock","hide");o.jwDisplayShow=w("display","show");o.jwDisplayHide=w("display","hide");o.jwGetLevel=function(){};o.jwGetBandwidth=function(){};o.jwGetLockState=function(){};o.jwLock=function(){};o.jwUnlock=function(){};function y(){if(p.config.playlistfile){p.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t);p.loadPlaylist(p.config.playlistfile)}else{if(typeof p.config.playlist=="string"){p.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t);p.loadPlaylist(p.config.playlist)}else{p.loadPlaylist(p.config);setTimeout(t,25)}}}function t(c){p.removeEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t);p.setupPlugins();r.setup();var c={id:o.id,version:o.version};q.playerReady(c)}if(p.config.chromeless&&!b.utils.isIOS()){y()}else{o.skin.load(p.config.skin,y)}return o}})(jwplayer)};
