var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),k=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],l=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){l=aB.plugins[ab].description;if(l&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var j=new ActiveXObject(X);if(j){l=j.GetVariable("$version");if(l){d=true;l=l.split(" ")[1].split(",");f=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:k}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var m=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var j=aS(c);if(j){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(m){a.success=true;a.ref=av(c);m(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=j.getAttribute("width")||"0";e.height=j.getAttribute("height")||"0";if(j.getAttribute("class")){e.styleclass=j.getAttribute("class")}if(j.getAttribute("align")){e.align=j.getAttribute("align")}var f={};var d=j.getElementsByTagName("param");var l=d.length;for(var k=0;k<l;k++){if(d[k].getAttribute("name").toLowerCase()!="movie"){f[d[k].getAttribute("name")]=d[k].getAttribute("value")}}ae(e,f,c,m)}else{aF(j);if(m){m(a)}}}}}else{ay(c,true);if(m){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}m(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var j in e){if(e[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){g.movie=e[j]}else{if(j.toLowerCase()=="styleclass"){f+=' class="'+e[j]+'"'}else{if(j.toLowerCase()!="classid"){f+=" "+j+'="'+e[j]+'"'}}}}}var h="";for(var k in g){if(g[k]!=Object.prototype[k]){h+='<param name="'+k+'" value="'+g[k]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var l in e){if(e[l]!=Object.prototype[l]){if(l.toLowerCase()=="styleclass"){b.setAttribute("class",e[l])}else{if(l.toLowerCase()!="classid"){b.setAttribute(l,e[l])}}}}for(var m in g){if(g[m]!=Object.prototype[m]&&m.toLowerCase()!="movie"){aQ(b,m,g[m])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(l,e,h,f,c,a,b,j,g,k){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&l&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var s={};if(g&&typeof g===aD){for(var q in g){s[q]=g[q]}}s.data=l;s.width=h;s.height=f;var o={};if(j&&typeof j===aD){for(var r in j){o[r]=j[r]}}if(b&&typeof b===aD){for(var m in b){if(typeof o.flashvars!=aq){o.flashvars+="&"+m+"="+b[m]}else{o.flashvars=m+"="+b[m]}}}if(ao(c)){var n=aA(s,o,e);if(s.id==e){ay(e,true)}d.success=true;d.ref=n}else{if(a&&au()){s.data=a;ae(s,o,e,k);return}else{ay(e,true)}}if(k){k(d)}})}else{if(k){k(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();(function(j){var m="2.86";if(j.support==undefined){j.support={opacity:!(j.browser.msie)}}function a(t){if(j.fn.cycle.debug){f(t)}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}j.fn.cycle=function(t,s){var u={s:this.selector,c:this.context};if(this.length===0&&t!="stop"){if(!j.isReady&&u.s){f("DOM not ready, queuing slideshow");j(function(){j(u.s,u.c).cycle(t,s)});return this}f("terminating; zero elements found by selector"+(j.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var y=n(this,t,s);if(y===false){return}y.updateActivePagerLink=y.updateActivePagerLink||j.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var z=j(this);var A=y.slideExpr?j(y.slideExpr,this):z.children();var w=A.get();if(w.length<2){f("terminating; too few slides: "+w.length);return}var v=l(z,A,w,y,u);if(v===false){return}var x=v.continuous?10:h(v.currSlide,v.nextSlide,v,!v.rev);if(x){x+=(v.delay||0);if(x<10){x=10}a("first timeout: "+x);this.cycleTimeout=setTimeout(function(){e(w,v,0,!v.rev)},x)}})};function n(s,v,t){if(s.cycleStop==undefined){s.cycleStop=0}if(v===undefined||v===null){v={}}if(v.constructor==String){switch(v){case"destroy":case"stop":var x=j(s).data("cycle.opts");if(!x){return false}s.cycleStop++;if(s.cycleTimeout){clearTimeout(s.cycleTimeout)}s.cycleTimeout=0;j(s).removeData("cycle.opts");if(v=="destroy"){r(x)}return false;case"toggle":s.cyclePause=(s.cyclePause===1)?0:1;w(s.cyclePause,t,s);return false;case"pause":s.cyclePause=1;return false;case"resume":s.cyclePause=0;w(false,t,s);return false;case"prev":case"next":var x=j(s).data("cycle.opts");if(!x){f('options not found, "prev/next" ignored');return false}j.fn.cycle[v](x);return false;default:v={fx:v}}return v}else{if(v.constructor==Number){var u=v;v=j(s).data("cycle.opts");if(!v){f("options not found, can not advance slide");return false}if(u<0||u>=v.elements.length){f("invalid slide index: "+u);return false}v.nextSlide=u;if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}if(typeof t=="string"){v.oneTimeFx=t}e(v.elements,v,1,u>=v.currSlide);return false}}return v;function w(z,A,y){if(!z&&A===true){var B=j(y).data("cycle.opts");if(!B){f("options not found, can not resume");return false}if(y.cycleTimeout){clearTimeout(y.cycleTimeout);y.cycleTimeout=0}e(B.elements,B,1,1)}}}function b(s,t){if(!j.support.opacity&&t.cleartype&&s.style.filter){try{s.style.removeAttribute("filter")}catch(u){}}}function r(s){if(s.next){j(s.next).unbind(s.prevNextEvent)}if(s.prev){j(s.prev).unbind(s.prevNextEvent)}if(s.pager||s.pagerAnchorBuilder){j.each(s.pagerAnchors||[],function(){this.unbind().remove()})}s.pagerAnchors=null;if(s.destroy){s.destroy(s)}}function l(A,M,x,v,G){var E=j.extend({},j.fn.cycle.defaults,v||{},j.metadata?A.metadata():j.meta?A.data():{});if(E.autostop){E.countdown=E.autostopCount||x.length}var t=A[0];A.data("cycle.opts",E);E.$cont=A;E.stopCount=t.cycleStop;E.elements=x;E.before=E.before?[E.before]:[];E.after=E.after?[E.after]:[];E.after.unshift(function(){E.busy=0});if(!j.support.opacity&&E.cleartype){E.after.push(function(){b(this,E)})}if(E.continuous){E.after.push(function(){e(x,E,0,!E.rev)})}o(E);if(!j.support.opacity&&E.cleartype&&!E.cleartypeNoBg){g(M)}if(A.css("position")=="static"){A.css("position","relative")}if(E.width){A.width(E.width)}if(E.height&&E.height!="auto"){A.height(E.height)}if(E.startingSlide){E.startingSlide=parseInt(E.startingSlide)}if(E.random){E.randomMap=[];for(var K=0;K<x.length;K++){E.randomMap.push(K)}E.randomMap.sort(function(O,w){return Math.random()-0.5});E.randomIndex=1;E.startingSlide=E.randomMap[1]}else{if(E.startingSlide>=x.length){E.startingSlide=0}}E.currSlide=E.startingSlide||0;var z=E.startingSlide;M.css({position:"absolute",top:0,left:0}).hide().each(function(w){var O=z?w>=z?x.length-(w-z):z-w:x.length-w;j(this).css("z-index",O)});j(x[z]).css("opacity",1).show();b(x[z],E);if(E.fit&&E.width){M.width(E.width)}if(E.fit&&E.height&&E.height!="auto"){M.height(E.height)}var F=E.containerResize&&!A.innerHeight();if(F){var y=0,D=0;for(var I=0;I<x.length;I++){var s=j(x[I]),N=s[0],C=s.outerWidth(),L=s.outerHeight();if(!C){C=N.offsetWidth||N.width||s.attr("width")}if(!L){L=N.offsetHeight||N.height||s.attr("height")}y=C>y?C:y;D=L>D?L:D}if(y>0&&D>0){A.css({width:y+"px",height:D+"px"})}}if(E.pause){A.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(c(E)===false){return false}var u=false;v.requeueAttempts=v.requeueAttempts||0;M.each(function(){var Q=j(this);this.cycleH=(E.fit&&E.height)?E.height:(Q.height()||this.offsetHeight||this.height||Q.attr("height")||0);this.cycleW=(E.fit&&E.width)?E.width:(Q.width()||this.offsetWidth||this.width||Q.attr("width")||0);if(Q.is("img")){var O=(j.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var R=(j.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var P=(j.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var w=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(O||R||P||w){if(G.s&&E.requeueOnImageNotLoaded&&++v.requeueAttempts<100){f(v.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){j(G.s,G.c).cycle(v)},E.requeueTimeout);u=true;return false}else{f("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(u){return false}E.cssBefore=E.cssBefore||{};E.animIn=E.animIn||{};E.animOut=E.animOut||{};M.not(":eq("+z+")").css(E.cssBefore);if(E.cssFirst){j(M[z]).css(E.cssFirst)}if(E.timeout){E.timeout=parseInt(E.timeout);if(E.speed.constructor==String){E.speed=j.fx.speeds[E.speed]||parseInt(E.speed)}if(!E.sync){E.speed=E.speed/2}var H=E.fx=="shuffle"?500:250;while((E.timeout-E.speed)<H){E.timeout+=E.speed}}if(E.easing){E.easeIn=E.easeOut=E.easing}if(!E.speedIn){E.speedIn=E.speed}if(!E.speedOut){E.speedOut=E.speed}E.slideCount=x.length;E.currSlide=E.lastSlide=z;if(E.random){if(++E.randomIndex==x.length){E.randomIndex=0}E.nextSlide=E.randomMap[E.randomIndex]}else{E.nextSlide=E.startingSlide>=(x.length-1)?0:E.startingSlide+1}if(!E.multiFx){var J=j.fn.cycle.transitions[E.fx];if(j.isFunction(J)){J(A,M,E)}else{if(E.fx!="custom"&&!E.multiFx){f("unknown transition: "+E.fx,"; slideshow terminating");return false}}}var B=M[z];if(E.before.length){E.before[0].apply(B,[B,B,E,true])}if(E.after.length>1){E.after[1].apply(B,[B,B,E,true])}if(E.next){j(E.next).bind(E.prevNextEvent,function(){return q(E,E.rev?-1:1)})}if(E.prev){j(E.prev).bind(E.prevNextEvent,function(){return q(E,E.rev?1:-1)})}if(E.pager||E.pagerAnchorBuilder){d(x,E)}k(E,x);return E}function o(s){s.original={before:[],after:[]};s.original.cssBefore=j.extend({},s.cssBefore);s.original.cssAfter=j.extend({},s.cssAfter);s.original.animIn=j.extend({},s.animIn);s.original.animOut=j.extend({},s.animOut);j.each(s.before,function(){s.original.before.push(this)});j.each(s.after,function(){s.original.after.push(this)})}function c(y){var w,u,t=j.fn.cycle.transitions;if(y.fx.indexOf(",")>0){y.multiFx=true;y.fxs=y.fx.replace(/\s*/g,"").split(",");for(w=0;w<y.fxs.length;w++){var x=y.fxs[w];u=t[x];if(!u||!t.hasOwnProperty(x)||!j.isFunction(u)){f("discarding unknown transition: ",x);y.fxs.splice(w,1);w--}}if(!y.fxs.length){f("No valid transitions named; slideshow terminating.");return false}}else{if(y.fx=="all"){y.multiFx=true;y.fxs=[];for(p in t){u=t[p];if(t.hasOwnProperty(p)&&j.isFunction(u)){y.fxs.push(p)}}}}if(y.multiFx&&y.randomizeEffects){var v=Math.floor(Math.random()*20)+30;for(w=0;w<v;w++){var s=Math.floor(Math.random()*y.fxs.length);y.fxs.push(y.fxs.splice(s,1)[0])}a("randomized fx sequence: ",y.fxs)}return true}function k(t,s){t.addSlide=function(v,w){var u=j(v),x=u[0];if(!t.autostopCount){t.countdown++}s[w?"unshift":"push"](x);if(t.els){t.els[w?"unshift":"push"](x)}t.slideCount=s.length;u.css("position","absolute");u[w?"prependTo":"appendTo"](t.$cont);if(w){t.currSlide++;t.nextSlide++}if(!j.support.opacity&&t.cleartype&&!t.cleartypeNoBg){g(u)}if(t.fit&&t.width){u.width(t.width)}if(t.fit&&t.height&&t.height!="auto"){$slides.height(t.height)}x.cycleH=(t.fit&&t.height)?t.height:u.height();x.cycleW=(t.fit&&t.width)?t.width:u.width();u.css(t.cssBefore);if(t.pager||t.pagerAnchorBuilder){j.fn.cycle.createPagerAnchor(s.length-1,x,j(t.pager),s,t)}if(j.isFunction(t.onAddSlide)){t.onAddSlide(u)}else{u.hide()}}}j.fn.cycle.resetState=function(t,s){s=s||t.fx;t.before=[];t.after=[];t.cssBefore=j.extend({},t.original.cssBefore);t.cssAfter=j.extend({},t.original.cssAfter);t.animIn=j.extend({},t.original.animIn);t.animOut=j.extend({},t.original.animOut);t.fxFn=null;j.each(t.original.before,function(){t.before.push(this)});j.each(t.original.after,function(){t.after.push(this)});var u=j.fn.cycle.transitions[s];if(j.isFunction(u)){u(t.$cont,j(t.elements),t)}};function e(z,s,y,B){if(y&&s.busy&&s.manualTrump){a("manualTrump in go(), stopping active transition");j(z).stop(true,true);s.busy=false}if(s.busy){a("transition active, ignoring new tx request");return}var w=s.$cont[0],D=z[s.currSlide],C=z[s.nextSlide];if(w.cycleStop!=s.stopCount||w.cycleTimeout===0&&!y){return}if(!y&&!w.cyclePause&&((s.autostop&&(--s.countdown<=0))||(s.nowrap&&!s.random&&s.nextSlide<s.currSlide))){if(s.end){s.end(s)}return}var A=false;if((y||!w.cyclePause)&&(s.nextSlide!=s.currSlide)){A=true;var x=s.fx;D.cycleH=D.cycleH||j(D).height();D.cycleW=D.cycleW||j(D).width();C.cycleH=C.cycleH||j(C).height();C.cycleW=C.cycleW||j(C).width();if(s.multiFx){if(s.lastFx==undefined||++s.lastFx>=s.fxs.length){s.lastFx=0}x=s.fxs[s.lastFx];s.currFx=x}if(s.oneTimeFx){x=s.oneTimeFx;s.oneTimeFx=null}j.fn.cycle.resetState(s,x);if(s.before.length){j.each(s.before,function(E,F){if(w.cycleStop!=s.stopCount){return}F.apply(C,[D,C,s,B])})}var u=function(){j.each(s.after,function(E,F){if(w.cycleStop!=s.stopCount){return}F.apply(C,[D,C,s,B])})};a("tx firing; currSlide: "+s.currSlide+"; nextSlide: "+s.nextSlide);s.busy=1;if(s.fxFn){s.fxFn(D,C,s,u,B,y&&s.fastOnEvent)}else{if(j.isFunction(j.fn.cycle[s.fx])){j.fn.cycle[s.fx](D,C,s,u,B,y&&s.fastOnEvent)}else{j.fn.cycle.custom(D,C,s,u,B,y&&s.fastOnEvent)}}}if(A||s.nextSlide==s.currSlide){s.lastSlide=s.currSlide;if(s.random){s.currSlide=s.nextSlide;if(++s.randomIndex==z.length){s.randomIndex=0}s.nextSlide=s.randomMap[s.randomIndex];if(s.nextSlide==s.currSlide){s.nextSlide=(s.currSlide==s.slideCount-1)?0:s.currSlide+1}}else{var v=(s.nextSlide+1)==z.length;s.nextSlide=v?0:s.nextSlide+1;s.currSlide=v?z.length-1:s.nextSlide-1}}if(A&&s.pager){s.updateActivePagerLink(s.pager,s.currSlide,s.activePagerClass)}var t=0;if(s.timeout&&!s.continuous){t=h(D,C,s,B)}else{if(s.continuous&&w.cyclePause){t=10}}if(t>0){w.cycleTimeout=setTimeout(function(){e(z,s,0,!s.rev)},t)}}j.fn.cycle.updateActivePagerLink=function(s,u,t){j(s).each(function(){j(this).children().removeClass(t).eq(u).addClass(t)})};function h(x,v,w,u){if(w.timeoutFn){var s=w.timeoutFn(x,v,w,u);while((s-w.speed)<250){s+=w.speed}a("calculated timeout: "+s+"; speed: "+w.speed);if(s!==false){return s}}return w.timeout}j.fn.cycle.next=function(s){q(s,s.rev?-1:1)};j.fn.cycle.prev=function(s){q(s,s.rev?1:-1)};function q(u,x){var t=u.elements;var w=u.$cont[0],v=w.cycleTimeout;if(v){clearTimeout(v);w.cycleTimeout=0}if(u.random&&x<0){u.randomIndex--;if(--u.randomIndex==-2){u.randomIndex=t.length-2}else{if(u.randomIndex==-1){u.randomIndex=t.length-1}}u.nextSlide=u.randomMap[u.randomIndex]}else{if(u.random){u.nextSlide=u.randomMap[u.randomIndex]}else{u.nextSlide=u.currSlide+x;if(u.nextSlide<0){if(u.nowrap){return false}u.nextSlide=t.length-1}else{if(u.nextSlide>=t.length){if(u.nowrap){return false}u.nextSlide=0}}}}var s=u.onPrevNextEvent||u.prevNextClick;if(j.isFunction(s)){s(x>0,u.nextSlide,t[u.nextSlide])}e(t,u,1,x>=0);return false}function d(t,u){var s=j(u.pager);j.each(t,function(v,w){j.fn.cycle.createPagerAnchor(v,w,s,t,u)});u.updateActivePagerLink(u.pager,u.startingSlide,u.activePagerClass)}j.fn.cycle.createPagerAnchor=function(w,x,u,v,y){var t;if(j.isFunction(y.pagerAnchorBuilder)){t=y.pagerAnchorBuilder(w,x);a("pagerAnchorBuilder("+w+", el) returned: "+t)}else{t='<a href="#">'+(w+1)+"</a>"}if(!t){return}var z=j(t);if(z.parents("body").length===0){var s=[];if(u.length>1){u.each(function(){var A=z.clone(true);j(this).append(A);s.push(A[0])});z=j(s)}else{z.appendTo(u)}}y.pagerAnchors=y.pagerAnchors||[];y.pagerAnchors.push(z);z.bind(y.pagerEvent,function(D){D.preventDefault();y.nextSlide=w;var C=y.$cont[0],B=C.cycleTimeout;if(B){clearTimeout(B);C.cycleTimeout=0}var A=y.onPagerEvent||y.pagerClick;if(j.isFunction(A)){A(y.nextSlide,v[y.nextSlide])}e(v,y,1,y.currSlide<w)});if(!/^click/.test(y.pagerEvent)&&!y.allowPagerClickBubble){z.bind("click.cycle",function(){return false})}if(y.pauseOnPagerHover){z.hover(function(){y.$cont[0].cyclePause++},function(){y.$cont[0].cyclePause--})}};j.fn.cycle.hopsFromLast=function(v,u){var t,s=v.lastSlide,w=v.currSlide;if(u){t=w>s?w-s:v.slideCount-s}else{t=w<s?s-w:s+v.slideCount-w}return t};function g(u){a("applying clearType background-color hack");function t(v){v=parseInt(v).toString(16);return v.length<2?"0"+v:v}function s(y){for(;y&&y.nodeName.toLowerCase()!="html";y=y.parentNode){var w=j.css(y,"background-color");if(w.indexOf("rgb")>=0){var x=w.match(/\d+/g);return"#"+t(x[0])+t(x[1])+t(x[2])}if(w&&w!="transparent"){return w}}return"#ffffff"}u.each(function(){j(this).css("background-color",s(this))})}j.fn.cycle.commonReset=function(y,v,x,t,u,s){j(x.elements).not(y).hide();x.cssBefore.opacity=1;x.cssBefore.display="block";if(t!==false&&v.cycleW>0){x.cssBefore.width=v.cycleW}if(u!==false&&v.cycleH>0){x.cssBefore.height=v.cycleH}x.cssAfter=x.cssAfter||{};x.cssAfter.display="none";j(y).css("zIndex",x.slideCount+(s===true?1:0));j(v).css("zIndex",x.slideCount+(s===true?0:1))};j.fn.cycle.custom=function(E,y,s,v,x,t){var D=j(E),z=j(y);var u=s.speedIn,C=s.speedOut,w=s.easeIn,B=s.easeOut;z.css(s.cssBefore);if(t){if(typeof t=="number"){u=C=t}else{u=C=1}w=B=null}var A=function(){z.animate(s.animIn,u,w,v)};D.animate(s.animOut,C,B,function(){if(s.cssAfter){D.css(s.cssAfter)}if(!s.sync){A()}});if(s.sync){A()}};j.fn.cycle.transitions={fade:function(t,u,s){u.not(":eq("+s.currSlide+")").css("opacity",0);s.before.push(function(x,v,w){j.fn.cycle.commonReset(x,v,w);w.cssBefore.opacity=0});s.animIn={opacity:1};s.animOut={opacity:0};s.cssBefore={top:0,left:0}}};j.fn.cycle.ver=function(){return m};j.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!j.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null}})(jQuery);(function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxFn=function(g,e,f,h){a(e).show();a(g).hide();h()}};a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var c,b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(j,g,h){a.fn.cycle.commonReset(j,g,h,true,true,true)});if(!d.speedAdjusted){d.speed=d.speed/2;d.speedAdjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(c=0;c<f.length;c++){d.els.push(f[c])}for(c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(n,k,m,g,j){var h=j?a(n):a(k);a(k).css(m.cssBefore);var l=m.slideCount;h.animate(m.shuffle,m.speedIn,m.easeIn,function(){var q=a.fn.cycle.hopsFromLast(m,j);for(var r=0;r<q;r++){j?m.els.push(m.els.shift()):m.els.unshift(m.els.pop())}if(j){for(var s=0,o=m.els.length;s<o;s++){a(m.els[s]).css("z-index",o-s+l)}}else{var t=a(n).css("z-index");h.css("z-index",parseInt(t)+1+l)}h.animate({left:0,top:0},m.speedOut,m.easeOut,function(){a(j?this:n).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(j,g,h){a.fn.cycle.commonReset(j,g,h);h.animIn.height=g.cycleH;h.animOut.top=j.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var j=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(k,d,h){a.fn.cycle.commonReset(k,d,h);if(j=="right"){h.cssBefore.left=-b}else{if(j=="up"){h.cssBefore.top=c}else{if(j=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var j=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(k,d,h){a.fn.cycle.commonReset(k,d,h,true,true,true);if(j=="right"){h.animOut.left=b}else{if(j=="up"){h.animOut.top=-c}else{if(j=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(j,g,h){a.fn.cycle.commonReset(j,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(u,n,e){var s=u.css("overflow","hidden").width();var k=u.height();e.cssBefore=e.cssBefore||{};var g;if(e.clip){if(/l2r/.test(e.clip)){g="rect(0px 0px "+k+"px 0px)"}else{if(/r2l/.test(e.clip)){g="rect(0px "+s+"px "+k+"px "+s+"px)"}else{if(/t2b/.test(e.clip)){g="rect(0px "+s+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){g="rect("+k+"px "+s+"px "+k+"px 0px)"}else{if(/zoom/.test(e.clip)){var q=parseInt(k/2);var f=parseInt(s/2);g="rect("+q+"px "+f+"px "+q+"px "+f+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||g||"rect(0px 0px 0px 0px)";var m=e.cssBefore.clip.match(/(\d+)/g);var v=parseInt(m[0]),c=parseInt(m[1]),o=parseInt(m[2]),j=parseInt(m[3]);e.before.push(function(x,h,t){if(x==h){return}var d=a(x),b=a(h);a.fn.cycle.commonReset(x,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13))-1;(function w(){var z=v?v-parseInt(r*(v/l)):0;var A=j?j-parseInt(r*(j/l)):0;var B=o<k?o+parseInt(r*((k-o)/l||1)):k;var y=c<s?c+parseInt(r*((s-c)/l||1)):s;b.css({clip:"rect("+z+"px "+y+"px "+B+"px "+A+"px)"});(r++<=l)?setTimeout(w,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);(function(c){function b(){this._defaults={pickerClass:"",showOnFocus:true,showTrigger:null,showAnim:"show",showOptions:{},showSpeed:"normal",popupContainer:null,alignment:"bottom",fixedWeeks:false,firstDay:0,calculateWeek:this.iso8601Week,monthsToShow:1,monthsOffset:0,monthsToStep:1,monthsToJump:12,changeMonth:true,yearRange:"c-10:c+10",shortYearCutoff:"+10",showOtherMonths:false,selectOtherMonths:false,defaultDate:null,selectDefaultDate:false,minDate:null,maxDate:null,dateFormat:"mm/dd/yyyy",autoSize:false,rangeSelect:false,rangeSeparator:" - ",multiSelect:0,multiSeparator:",",onDate:null,onShow:null,onChangeMonthYear:null,onSelect:null,onClose:null,altField:null,altFormat:null,constrainInput:true,commandsAsDateFormat:false,commands:this.commands};this.regional={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yyyy",firstDay:0,renderer:this.defaultRenderer,prevText:"&lt;Prev",prevStatus:"Show the previous month",prevJumpText:"&lt;&lt;",prevJumpStatus:"Show the previous year",nextText:"Next&gt;",nextStatus:"Show the next month",nextJumpText:"&gt;&gt;",nextJumpStatus:"Show the next year",currentText:"Current",currentStatus:"Show the current month",todayText:"Today",todayStatus:"Show today's month",clearText:"Clear",clearStatus:"Clear all the dates",closeText:"Close",closeStatus:"Close the datepicker",yearStatus:"Change the year",monthStatus:"Change the month",weekText:"Wk",weekStatus:"Week of the year",dayStatus:"Select DD, M d, yyyy",defaultStatus:"Select a date",isRTL:false}};c.extend(this._defaults,this.regional[""]);this._disabled=[]}c.extend(b.prototype,{dataName:"datepick",markerClass:"hasDatepick",_popupClass:"datepick-popup",_triggerClass:"datepick-trigger",_disableClass:"datepick-disable",_coverClass:"datepick-cover",_monthYearClass:"datepick-month-year",_curMonthClass:"datepick-month-",_anyYearClass:"datepick-any-year",_curDoWClass:"datepick-dow-",commands:{prev:{text:"prevText",status:"prevStatus",keystroke:{keyCode:33},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.day(c.datepick.add(c.datepick.newDate(e.drawDate),1-e.get("monthsToStep")-e.get("monthsOffset"),"m"),1),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.day(c.datepick.add(c.datepick.newDate(d.drawDate),-d.get("monthsToStep")-d.get("monthsOffset"),"m"),1)},action:function(d){c.datepick.changeMonth(this,-d.get("monthsToStep"))}},prevJump:{text:"prevJumpText",status:"prevJumpStatus",keystroke:{keyCode:33,ctrlKey:true},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.day(c.datepick.add(c.datepick.newDate(e.drawDate),1-e.get("monthsToJump")-e.get("monthsOffset"),"m"),1),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.day(c.datepick.add(c.datepick.newDate(d.drawDate),-d.get("monthsToJump")-d.get("monthsOffset"),"m"),1)},action:function(d){c.datepick.changeMonth(this,-d.get("monthsToJump"))}},next:{text:"nextText",status:"nextStatus",keystroke:{keyCode:34},enabled:function(e){var d=e.get("maxDate");return(!d||c.datepick.day(c.datepick.add(c.datepick.newDate(e.drawDate),e.get("monthsToStep")-e.get("monthsOffset"),"m"),1).getTime()<=d.getTime())},date:function(d){return c.datepick.day(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToStep")-d.get("monthsOffset"),"m"),1)},action:function(d){c.datepick.changeMonth(this,d.get("monthsToStep"))}},nextJump:{text:"nextJumpText",status:"nextJumpStatus",keystroke:{keyCode:34,ctrlKey:true},enabled:function(e){var d=e.get("maxDate");return(!d||c.datepick.day(c.datepick.add(c.datepick.newDate(e.drawDate),e.get("monthsToJump")-e.get("monthsOffset"),"m"),1).getTime()<=d.getTime())},date:function(d){return c.datepick.day(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToJump")-d.get("monthsOffset"),"m"),1)},action:function(d){c.datepick.changeMonth(this,d.get("monthsToJump"))}},current:{text:"currentText",status:"currentStatus",keystroke:{keyCode:36,ctrlKey:true},enabled:function(f){var e=f.curMinDate();var h=f.get("maxDate");var g=f.selectedDates[0]||c.datepick.today();return(!e||g.getTime()>=e.getTime())&&(!h||g.getTime()<=h.getTime())},date:function(d){return d.selectedDates[0]||c.datepick.today()},action:function(e){var d=e.selectedDates[0]||c.datepick.today();c.datepick.showMonth(this,d.getFullYear(),d.getMonth()+1)}},today:{text:"todayText",status:"todayStatus",keystroke:{keyCode:36,ctrlKey:true},enabled:function(e){var d=e.curMinDate();var f=e.get("maxDate");return(!d||c.datepick.today().getTime()>=d.getTime())&&(!f||c.datepick.today().getTime()<=f.getTime())},date:function(d){return c.datepick.today()},action:function(d){c.datepick.showMonth(this)}},clear:{text:"clearText",status:"clearStatus",keystroke:{keyCode:35,ctrlKey:true},enabled:function(d){return true},date:function(d){return null},action:function(d){c.datepick.clear(this)}},close:{text:"closeText",status:"closeStatus",keystroke:{keyCode:27},enabled:function(d){return true},date:function(d){return null},action:function(d){c.datepick.hide(this)}},prevWeek:{text:"prevWeekText",status:"prevWeekStatus",keystroke:{keyCode:38,ctrlKey:true},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.newDate(e.drawDate),-7,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),-7,"d")},action:function(d){c.datepick.changeDay(this,-7)}},prevDay:{text:"prevDayText",status:"prevDayStatus",keystroke:{keyCode:37,ctrlKey:true},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.newDate(e.drawDate),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),-1,"d")},action:function(d){c.datepick.changeDay(this,-1)}},nextDay:{text:"nextDayText",status:"nextDayStatus",keystroke:{keyCode:39,ctrlKey:true},enabled:function(e){var d=e.get("maxDate");return(!d||c.datepick.add(c.datepick.newDate(e.drawDate),1,"d").getTime()<=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),1,"d")},action:function(d){c.datepick.changeDay(this,1)}},nextWeek:{text:"nextWeekText",status:"nextWeekStatus",keystroke:{keyCode:40,ctrlKey:true},enabled:function(e){var d=e.get("maxDate");return(!d||c.datepick.add(c.datepick.newDate(e.drawDate),7,"d").getTime()<=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),7,"d")},action:function(d){c.datepick.changeDay(this,7)}}},defaultRenderer:{picker:'<div class="datepick"><div class="datepick-nav">{link:prev}{link:today}{link:next}</div>{months}{popup:start}<div class="datepick-ctrl">{link:clear}{link:close}</div>{popup:end}<div class="datepick-clear-fix"></div></div>',monthRow:'<div class="datepick-month-row">{months}</div>',month:'<div class="datepick-month"><div class="datepick-month-header">{monthHeader}</div><table><thead>{weekHeader}</thead><tbody>{weeks}</tbody></table></div>',weekHeader:"<tr>{days}</tr>",dayHeader:"<th>{day}</th>",week:"<tr>{days}</tr>",day:"<td>{day}</td>",monthSelector:".datepick-month",daySelector:"td",rtlClass:"datepick-rtl",multiClass:"datepick-multi",defaultClass:"",selectedClass:"datepick-selected",highlightedClass:"datepick-highlight",todayClass:"datepick-today",otherMonthClass:"datepick-other-month",weekendClass:"datepick-weekend",commandClass:"datepick-cmd",commandButtonClass:"",commandLinkClass:"",disabledClass:"datepick-disabled"},setDefaults:function(d){c.extend(this._defaults,d||{});return this},_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),_msPerDay:24*60*60*1000,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(D,C,B){if(typeof D!="string"){B=C;C=D;D=""}if(!C){return""}D=D||this._defaults.dateFormat;B=B||{};var A=B.dayNamesShort||this._defaults.dayNamesShort;var z=B.dayNames||this._defaults.dayNames;var y=B.monthNamesShort||this._defaults.monthNamesShort;var x=B.monthNames||this._defaults.monthNames;var w=B.calculateWeek||this._defaults.calculateWeek;var v=function(g,f){var h=1;while(E+h<D.length&&D.charAt(E+h)==g){h++}E+=h-1;return Math.floor(h/(f||1))>1};var u=function(g,f,k,j){var h=""+f;if(v(g,j)){while(h.length<k){h="0"+h}}return h};var t=function(g,f,j,h){return(v(g)?h[f]:j[f])};var e="";var d=false;for(var E=0;E<D.length;E++){if(d){if(D.charAt(E)=="'"&&!v("'")){d=false}else{e+=D.charAt(E)}}else{switch(D.charAt(E)){case"d":e+=u("d",C.getDate(),2);break;case"D":e+=t("D",C.getDay(),A,z);break;case"o":e+=u("o",this.dayOfYear(C),3);break;case"w":e+=u("w",w(C),2);break;case"m":e+=u("m",C.getMonth()+1,2);break;case"M":e+=t("M",C.getMonth(),y,x);break;case"y":e+=(v("y",2)?C.getFullYear():(C.getFullYear()%100<10?"0":"")+C.getFullYear()%100);break;case"@":e+=Math.floor(C.getTime()/1000);break;case"!":e+=C.getTime()*10000+this._ticksTo1970;break;case"'":if(v("'")){e+="'"}else{d=true}break;default:e+=D.charAt(E)}}}return e},parseDate:function(X,W,V){if(W==null){throw"Invalid arguments"}W=(typeof W=="object"?W.toString():W+"");if(W==""){return null}X=X||this._defaults.dateFormat;V=V||{};var U=V.shortYearCutoff||this._defaults.shortYearCutoff;U=(typeof U!="string"?U:this.today().getFullYear()%100+parseInt(U,10));var T=V.dayNamesShort||this._defaults.dayNamesShort;var S=V.dayNames||this._defaults.dayNames;var R=V.monthNamesShort||this._defaults.monthNamesShort;var Q=V.monthNames||this._defaults.monthNames;var P=-1;var O=-1;var M=-1;var K=-1;var I=false;var H=false;var G=function(g,f){var h=1;while(d+h<X.length&&X.charAt(d+h)==g){h++}d+=h-1;return Math.floor(h/(f||1))>1};var F=function(g,f){G(g,f);var k=[2,3,4,11,20]["oy@!".indexOf(g)+1];var j=new RegExp("^-?\\d{1,"+k+"}");var h=W.substring(e).match(j);if(!h){throw"Missing number at position {0}".replace(/\{0\}/,e)}e+=h[0].length;return parseInt(h[0],10)};var E=function(g,f,l,k){var j=(G(g,k)?l:f);for(var h=0;h<j.length;h++){if(W.substr(e,j[h].length)==j[h]){e+=j[h].length;return h+1}}throw"Unknown name at position {0}".replace(/\{0\}/,e)};var D=function(){if(W.charAt(e)!=X.charAt(d)){throw"Unexpected literal at position {0}".replace(/\{0\}/,e)}e++};var e=0;for(var d=0;d<X.length;d++){if(H){if(X.charAt(d)=="'"&&!G("'")){H=false}else{D()}}else{switch(X.charAt(d)){case"d":M=F("d");break;case"D":E("D",T,S);break;case"o":K=F("o");break;case"w":F("w");break;case"m":O=F("m");break;case"M":O=E("M",R,Q);break;case"y":var N=d;I=!G("y",2);d=N;P=F("y",2);break;case"@":var L=this._normaliseDate(new Date(F("@")*1000));P=L.getFullYear();O=L.getMonth()+1;M=L.getDate();break;case"!":var L=this._normaliseDate(new Date((F("!")-this._ticksTo1970)/10000));P=L.getFullYear();O=L.getMonth()+1;M=L.getDate();break;case"*":e=W.length;break;case"'":if(G("'")){D()}else{H=true}break;default:D()}}}if(e<W.length){throw"Additional text found at end"}if(P==-1){P=this.today().getFullYear()}else{if(P<100&&I){P+=(U==-1?1900:this.today().getFullYear()-this.today().getFullYear()%100-(P<=U?0:100))}}if(K>-1){O=1;M=K;for(var J=this.daysInMonth(P,O);M>J;J=this.daysInMonth(P,O)){O++;M-=J}}var L=this.newDate(P,O,M);if(L.getFullYear()!=P||L.getMonth()+1!=O||L.getDate()!=M){throw"Invalid date"}return L},determineDate:function(o,n,m,l,e){if(m&&typeof m!="object"){e=l;l=m;m=null}if(typeof l!="string"){e=l;l=""}var d=function(g){try{return c.datepick.parseDate(l,g,e)}catch(h){}g=g.toLowerCase();var f=(g.match(/^c/)&&m?c.datepick.newDate(m):null)||c.datepick.today();var k=/([+-]?[0-9]+)\s*(d|w|m|y)?/g;var j=k.exec(g);while(j){f=c.datepick.add(f,parseInt(j[1],10),j[2]||"d");j=k.exec(g)}return f};n=(n?c.datepick.newDate(n):null);o=(o==null?n:(typeof o=="string"?d(o):(typeof o=="number"?(isNaN(o)||o==Infinity||o==-Infinity?n:c.datepick.add(c.datepick.today(),o,"d")):c.datepick._normaliseDate(o))));return o},daysInMonth:function(e,d){var f=(e.getFullYear?e:this.newDate(e,d,1));return 32-new Date(f.getFullYear(),f.getMonth(),32).getDate()},dayOfYear:function(g,f,k){var j=(g.getFullYear?g:this.newDate(g,f,k));var h=this.newDate(j.getFullYear(),1,1);return(j.getTime()-h.getTime())/this._msPerDay+1},iso8601Week:function(g,f,k){var j=(g.getFullYear?new Date(g.getTime()):this.newDate(g,f,k));j.setDate(j.getDate()+4-(j.getDay()||7));var h=j.getTime();j.setMonth(0);j.setDate(1);return Math.floor(Math.round((h-j)/86400000)/7)+1},today:function(){return this._normaliseDate(new Date())},newDate:function(e,d,f){return(!e?null:this._normaliseDate(e.getFullYear?new Date(e.getTime()):new Date(e,d-1,f)))},_normaliseDate:function(d){if(!d){return d}d.setHours(0);d.setMinutes(0);d.setSeconds(0);d.setMilliseconds(0);d.setHours(d.getHours()>12?d.getHours()+2:0);return d},year:function(e,d){e.setFullYear(d);return this._normaliseDate(e)},month:function(e,d){e.setMonth(d-1);return this._normaliseDate(e)},day:function(e,d){e.setDate(d);return this._normaliseDate(e)},add:function(g,f,k){if(k=="d"||k=="w"){g.setDate(g.getDate()+f*(k=="w"?7:1))}else{var j=g.getFullYear()+(k=="y"?f:0);var h=g.getMonth()+(k=="m"?f:0);g.setTime(this._normaliseDate(new Date(j,h,Math.min(g.getDate(),this.daysInMonth(j,h+1)))).getTime())}return g},_attachPicker:function(k,j){k=c(k);if(k.hasClass(this.markerClass)){return}k.addClass(this.markerClass);var h={target:k,selectedDates:[],drawDate:null,pickingRange:false,inline:(c.inArray(k[0].nodeName.toLowerCase(),["div","span"])>-1),get:function(e){var d=this.settings[e]!==undefined?this.settings[e]:c.datepick._defaults[e];if(c.inArray(e,["defaultDate","minDate","maxDate"])>-1){d=c.datepick.determineDate(d,null,this.selectedDates[0],this.get("dateFormat"),h.getConfig())}return d},curMinDate:function(){return(this.pickingRange?this.selectedDates[0]:this.get("minDate"))},getConfig:function(){return{dayNamesShort:this.get("dayNamesShort"),dayNames:this.get("dayNames"),monthNamesShort:this.get("monthNamesShort"),monthNames:this.get("monthNames"),calculateWeek:this.get("calculateWeek"),shortYearCutoff:this.get("shortYearCutoff")}}};c.data(k[0],this.dataName,h);var g=(c.fn.metadata?k.metadata():{});h.settings=c.extend({},j||{},g||{});if(h.inline){this._update(k[0])}else{this._attachments(k,h);k.bind("keydown."+this.dataName,this._keyDown).bind("keypress."+this.dataName,this._keyPress).bind("keyup."+this.dataName,this._keyUp)}},options:function(e,d){var f=c.data(e,this.dataName);return(f?(d?(d=="all"?f.settings:f.settings[d]):c.datepick._defaults):{})},option:function(h,g,m){h=c(h);if(!h.hasClass(this.markerClass)){return}g=g||{};if(typeof g=="string"){var l=g;g={};g[l]=m}var k=c.data(h[0],this.dataName);var j=k.selectedDates;a(k.settings,g);this.setDate(h[0],j,null,false,true);k.pickingRange=false;k.drawDate=c.datepick.newDate(this._checkMinMax((g.defaultDate?k.get("defaultDate"):k.drawDate)||k.get("defaultDate")||c.datepick.today(),k));if(!k.inline){this._attachments(h,k)}if(k.inline||k.div){this._update(h[0])}},_attachments:function(e,d){e.unbind("focus."+this.dataName);if(d.get("showOnFocus")){e.bind("focus."+this.dataName,this.show)}if(d.trigger){d.trigger.remove()}var f=d.get("showTrigger");d.trigger=(!f?c([]):c(f).clone().removeAttr("id").addClass(this._triggerClass)[d.get("isRTL")?"insertBefore":"insertAfter"](e).click(function(){if(!c.datepick.isDisabled(e[0])){c.datepick[c.datepick.curInst==d?"hide":"show"](e[0])}}));this._autoSize(e,d);if(d.get("selectDefaultDate")&&d.get("defaultDate")&&d.selectedDates.length==0){this.setDate(e[0],c.datepick.newDate(d.get("defaultDate")||c.datepick.today()))}},_autoSize:function(n,m){if(m.get("autoSize")&&!m.inline){var l=new Date(2009,10-1,20);var k=m.get("dateFormat");if(k.match(/[DM]/)){var j=function(e){var d=0;var g=0;for(var f=0;f<e.length;f++){if(e[f].length>d){d=e[f].length;g=f}}return g};l.setMonth(j(m.get(k.match(/MM/)?"monthNames":"monthNamesShort")));l.setDate(j(m.get(k.match(/DD/)?"dayNames":"dayNamesShort"))+20-l.getDay())}m.target.attr("size",c.datepick.formatDate(k,l,m.getConfig()).length)}},destroy:function(e){e=c(e);if(!e.hasClass(this.markerClass)){return}var d=c.data(e[0],this.dataName);if(d.trigger){d.trigger.remove()}e.removeClass(this.markerClass).empty().unbind("."+this.dataName);if(d.get("autoSize")&&!d.inline){e.removeAttr("size")}c.removeData(e[0],this.dataName)},multipleEvents:function(d){var e=arguments;return function(f){for(var g=0;g<e.length;g++){e[g].apply(this,arguments)}}},enable:function(e){var g=c(e);if(!g.hasClass(this.markerClass)){return}var f=c.data(e,this.dataName);if(f.inline){g.children("."+this._disableClass).remove().end().find("button,select").attr("disabled","").end().find("a").attr("href","javascript:void(0)")}else{e.disabled=false;f.trigger.filter("button."+this._triggerClass).attr("disabled","").end().filter("img."+this._triggerClass).css({opacity:"1.0",cursor:""})}this._disabled=c.map(this._disabled,function(d){return(d==e?null:d)})},disable:function(j){var q=c(j);if(!q.hasClass(this.markerClass)){return}var o=c.data(j,this.dataName);if(o.inline){var n=q.children(":last");var m=n.offset();var l={left:0,top:0};n.parents().each(function(){if(c(this).css("position")=="relative"){l=c(this).offset();return false}});var k=q.css("zIndex");k=(k=="auto"?0:parseInt(k,10))+1;q.prepend('<div class="'+this._disableClass+'" style="width: '+n.outerWidth()+"px; height: "+n.outerHeight()+"px; left: "+(m.left-l.left)+"px; top: "+(m.top-l.top)+"px; z-index: "+k+'"></div>').find("button,select").attr("disabled","disabled").end().find("a").removeAttr("href")}else{j.disabled=true;o.trigger.filter("button."+this._triggerClass).attr("disabled","disabled").end().filter("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"})}this._disabled=c.map(this._disabled,function(d){return(d==j?null:d)});this._disabled.push(j)},isDisabled:function(d){return(d&&c.inArray(d,this._disabled)>-1)},show:function(j){j=j.target||j;var q=c.data(j,c.datepick.dataName);if(c.datepick.curInst==q){return}if(c.datepick.curInst){c.datepick.hide(c.datepick.curInst,true)}if(q){q.lastVal=null;q.selectedDates=c.datepick._extractDates(q,c(j).val());q.pickingRange=false;q.drawDate=c.datepick._checkMinMax(c.datepick.newDate(q.selectedDates[0]||q.get("defaultDate")||c.datepick.today()),q);q.prevDate=c.datepick.newDate(q.drawDate);c.datepick.curInst=q;c.datepick._update(j,true);var o=c.datepick._checkOffset(q);var n=c(j).css("zIndex");n=(n=="auto"?0:parseInt(n,10))+1;q.div.css({left:o.left,top:o.top,zIndex:n});var m=q.get("showAnim");var l=q.get("showSpeed");l=(l=="normal"?"_default":l);var k=function(){var d=c.datepick._getBorders(q.div);q.div.find("."+c.datepick._coverClass).css({left:-d[0],top:-d[1],width:q.div.outerWidth()+d[0],height:q.div.outerHeight()+d[1]})};if(c.effects&&c.effects[m]){q.div.show(m,q.get("showOptions"),l,k)}else{q.div[m||"show"]((m?l:""),k)}if(!m){k()}}},_extractDates:function(w,v){if(v==w.lastVal){return}w.lastVal=v;var u=w.get("dateFormat");var t=w.get("multiSelect");var r=w.get("rangeSelect");v=v.split(t?w.get("multiSeparator"):(r?w.get("rangeSeparator"):"\x00"));var q=[];for(var n=0;n<v.length;n++){try{var o=c.datepick.parseDate(u,v[n],w.getConfig());if(o){var l=false;for(var m=0;m<q.length;m++){if(q[m].getTime()==o.getTime()){l=true;break}}if(!l){q.push(o)}}}catch(s){}}q.splice(t||(r?2:1),q.length);if(r&&q.length==1){q[1]=q[0]}return q},_update:function(f,e){f=c(f.target||f);var h=c.data(f[0],c.datepick.dataName);if(h){if(h.inline){f.html(this._generateContent(f[0],h))}else{if(c.datepick.curInst==h){if(!h.div){h.div=c("<div></div>").addClass(this._popupClass).css({display:(e?"none":"static"),position:"absolute",left:f.offset().left,top:f.offset().top+f.outerHeight()}).appendTo(c(h.get("popupContainer")||"body"))}h.div.html(this._generateContent(f[0],h));f.focus()}}if(h.inline||c.datepick.curInst==h){var g=h.get("onChangeMonthYear");if(g&&(!h.prevDate||h.prevDate.getFullYear()!=h.drawDate.getFullYear()||h.prevDate.getMonth()!=h.drawDate.getMonth())){g.apply(f[0],[h.drawDate.getFullYear(),h.drawDate.getMonth()+1])}}}},_updateInput:function(u,t){var s=c.data(u,this.dataName);if(s){var r="";var q="";var o=(s.get("multiSelect")?s.get("multiSeparator"):s.get("rangeSeparator"));var n=s.get("dateFormat");var m=s.get("altFormat")||n;for(var l=0;l<s.selectedDates.length;l++){r+=(t?"":(l>0?o:"")+c.datepick.formatDate(n,s.selectedDates[l],s.getConfig()));q+=(l>0?o:"")+c.datepick.formatDate(m,s.selectedDates[l],s.getConfig())}if(!s.inline&&!t){c(u).val(r)}c(s.get("altField")).val(q);var k=s.get("onSelect");if(k&&!t&&!s.inSelect){s.inSelect=true;k.apply(u,[s.selectedDates]);s.inSelect=false}}},_getBorders:function(f){var e=function(g){var d=(c.browser.msie?1:0);return{thin:1+d,medium:3+d,thick:5+d}[g]||g};return[parseFloat(e(f.css("border-left-width"))),parseFloat(e(f.css("border-top-width")))]},_checkOffset:function(F){var E=(F.target.is(":hidden")&&F.trigger?F.trigger:F.target);var D=E.offset();var C=false;c(F.target).parents().each(function(){C|=c(this).css("position")=="fixed";return !C});if(C&&c.browser.opera){D.left-=document.documentElement.scrollLeft;D.top-=document.documentElement.scrollTop}var B=(!c.browser.mozilla||document.doctype?document.documentElement.clientWidth:0)||document.body.clientWidth;var A=(!c.browser.mozilla||document.doctype?document.documentElement.clientHeight:0)||document.body.clientHeight;if(B==0){return D}var z=F.get("alignment");var y=F.get("isRTL");var x=document.documentElement.scrollLeft||document.body.scrollLeft;var w=document.documentElement.scrollTop||document.body.scrollTop;var v=D.top-F.div.outerHeight()-(C&&c.browser.opera?document.documentElement.scrollTop:0);var u=D.top+E.outerHeight();var t=D.left;var s=D.left+E.outerWidth()-F.div.outerWidth()-(C&&c.browser.opera?document.documentElement.scrollLeft:0);var r=(D.left+F.div.outerWidth()-x)>B;var q=(D.top+F.target.outerHeight()+F.div.outerHeight()-w)>A;if(z=="topLeft"){D={left:t,top:v}}else{if(z=="topRight"){D={left:s,top:v}}else{if(z=="bottomLeft"){D={left:t,top:u}}else{if(z=="bottomRight"){D={left:s,top:u}}else{if(z=="top"){D={left:(y||r?s:t),top:v}}else{D={left:(y||r?s:t),top:(q?v:u)}}}}}}D.left=Math.max((C?0:x),D.left-(C?x:0));D.top=Math.max((C?0:w),D.top-(C?w:0));return D},_checkExternalClick:function(e){if(!c.datepick.curInst){return}var d=c(e.target);if(!d.parents().andSelf().hasClass(c.datepick._popupClass)&&!d.hasClass(c.datepick.markerClass)&&!d.parents().andSelf().hasClass(c.datepick._triggerClass)){c.datepick.hide(c.datepick.curInst)}},hide:function(j,q){var o=c.data(j,this.dataName)||j;if(o&&o==c.datepick.curInst){var n=(q?"":o.get("showAnim"));var m=o.get("showSpeed");m=(m=="normal"?"_default":m);var l=function(){o.div.remove();o.div=null;c.datepick.curInst=null;var d=o.get("onClose");if(d){d.apply(j,[o.selectedDates])}};o.div.stop();if(c.effects&&c.effects[n]){o.div.hide(n,o.get("showOptions"),m,l)}else{var k=(n=="slideDown"?"slideUp":(n=="fadeIn"?"fadeOut":"hide"));o.div[k]((n?m:""),l)}if(!n){l()}}},_keyDown:function(j){var h=j.target;var o=c.data(h,c.datepick.dataName);var n=false;if(o.div){if(j.keyCode==9){c.datepick.hide(h)}else{if(j.keyCode==13){c.datepick.selectDate(h,c("a."+o.get("renderer").highlightedClass,o.div)[0]);n=true}else{var m=o.get("commands");for(var l in m){var k=m[l];if(k.keystroke.keyCode==j.keyCode&&!!k.keystroke.ctrlKey==!!(j.ctrlKey||j.metaKey)&&!!k.keystroke.altKey==j.altKey&&!!k.keystroke.shiftKey==j.shiftKey){c.datepick.performAction(h,l);n=true;break}}}}}else{var k=o.get("commands").current;if(k.keystroke.keyCode==j.keyCode&&!!k.keystroke.ctrlKey==!!(j.ctrlKey||j.metaKey)&&!!k.keystroke.altKey==j.altKey&&!!k.keystroke.shiftKey==j.shiftKey){c.datepick.show(h);n=true}}if(n){j.preventDefault();j.stopPropagation()}o.ctrlKey=((j.keyCode<48&&j.keyCode!=32)||j.ctrlKey||j.metaKey);return !n},_keyPress:function(g){var f=g.target;var k=c.data(f,c.datepick.dataName);if(k&&k.get("constrainInput")){var j=String.fromCharCode(g.keyCode||g.charCode);var h=c.datepick._allowedChars(k);return(g.metaKey||k.ctrlKey||j<" "||!h||h.indexOf(j)>-1)}return true},_allowedChars:function(h){var g=h.get("dateFormat");var n=(h.get("multiSelect")?h.get("multiSeparator"):(h.get("rangeSelect")?h.get("rangeSeparator"):""));var m=false;var l=false;for(var j=0;j<g.length;j++){var k=g.charAt(j);if(m){if(k=="'"&&g.charAt(j+1)!="'"){m=false}else{n+=k}}else{switch(k){case"d":case"m":case"o":case"w":n+=(l?"":"0123456789");l=true;break;case"y":case"@":case"!":n+=(l?"":"0123456789")+"-";l=true;break;case"J":n+=(l?"":"0123456789")+"-.";l=true;break;case"D":case"M":case"Y":return null;case"'":if(g.charAt(j+1)=="'"){n+="'"}else{m=true}break;default:n+=k}}}return n},_keyUp:function(f){var e=f.target;var h=c.data(e,c.datepick.dataName);if(h&&!h.ctrlKey&&h.lastVal!=h.target.val()){try{var g=c.datepick._extractDates(h,h.target.val());if(g.length>0){c.datepick.setDate(e,g,null,true)}}catch(f){}}return true},clear:function(e){var d=c.data(e,this.dataName);if(d){d.selectedDates=[];this.hide(e);if(d.get("selectDefaultDate")&&d.get("defaultDate")){this.setDate(e,c.datepick.newDate(d.get("defaultDate")||c.datepick.today()))}else{this._updateInput(e)}}},getDate:function(e){var d=c.data(e,this.dataName);return(d?d.selectedDates:[])},setDate:function(E,D,C,B,A){var z=c.data(E,this.dataName);if(z){if(!c.isArray(D)){D=[D];if(C){D.push(C)}}var y=z.get("dateFormat");var x=z.get("minDate");var u=z.get("maxDate");var t=z.selectedDates[0];z.selectedDates=[];for(var w=0;w<D.length;w++){var s=c.datepick.determineDate(D[w],null,t,y,z.getConfig());if(s){if((!x||s.getTime()>=x.getTime())&&(!u||s.getTime()<=u.getTime())){var r=false;for(var v=0;v<z.selectedDates.length;v++){if(z.selectedDates[v].getTime()==s.getTime()){r=true;break}}if(!r){z.selectedDates.push(s)}}}}var q=z.get("rangeSelect");z.selectedDates.splice(z.get("multiSelect")||(q?2:1),z.selectedDates.length);if(q){switch(z.selectedDates.length){case 1:z.selectedDates[1]=z.selectedDates[0];break;case 2:z.selectedDates[1]=(z.selectedDates[0].getTime()>z.selectedDates[1].getTime()?z.selectedDates[0]:z.selectedDates[1]);break}z.pickingRange=false}z.prevDate=(z.drawDate?c.datepick.newDate(z.drawDate):null);z.drawDate=this._checkMinMax(c.datepick.newDate(z.selectedDates[0]||z.get("defaultDate")||c.datepick.today()),z);if(!A){this._update(E);this._updateInput(E,B)}}},performAction:function(f,e){var h=c.data(f,this.dataName);if(h&&!this.isDisabled(f)){var g=h.get("commands");if(g[e]&&g[e].enabled.apply(f,[h])){g[e].action.apply(f,[h])}}},showMonth:function(h,g,m,l){var k=c.data(h,this.dataName);if(k&&(l!=null||(k.drawDate.getFullYear()!=g||k.drawDate.getMonth()+1!=m))){k.prevDate=c.datepick.newDate(k.drawDate);var j=this._checkMinMax((g!=null?c.datepick.newDate(g,m,1):c.datepick.today()),k);k.drawDate=c.datepick.newDate(j.getFullYear(),j.getMonth()+1,(l!=null?l:Math.min(k.drawDate.getDate(),c.datepick.daysInMonth(j.getFullYear(),j.getMonth()+1))));this._update(h)}},changeMonth:function(f,e){var h=c.data(f,this.dataName);if(h){var g=c.datepick.add(c.datepick.newDate(h.drawDate),e,"m");this.showMonth(f,g.getFullYear(),g.getMonth()+1)}},changeDay:function(f,e){var h=c.data(f,this.dataName);if(h){var g=c.datepick.add(c.datepick.newDate(h.drawDate),e,"d");this.showMonth(f,g.getFullYear(),g.getMonth()+1,g.getDate())}},_checkMinMax:function(f,e){var h=e.get("minDate");var g=e.get("maxDate");f=(h&&f.getTime()<h.getTime()?c.datepick.newDate(h):f);f=(g&&f.getTime()>g.getTime()?c.datepick.newDate(g):f);return f},retrieveDate:function(e,d){var f=c.data(e,this.dataName);return(!f?null:this._normaliseDate(new Date(parseInt(d.className.replace(/^.*dp(-?\d+).*$/,"$1"),10))))},selectDate:function(j,h){var q=c.data(j,this.dataName);if(q&&!this.isDisabled(j)){var o=this.retrieveDate(j,h);var n=q.get("multiSelect");var m=q.get("rangeSelect");if(n){var l=false;for(var k=0;k<q.selectedDates.length;k++){if(o.getTime()==q.selectedDates[k].getTime()){q.selectedDates.splice(k,1);l=true;break}}if(!l&&q.selectedDates.length<n){q.selectedDates.push(o)}}else{if(m){if(q.pickingRange){q.selectedDates[1]=o}else{q.selectedDates=[o,o]}q.pickingRange=!q.pickingRange}else{q.selectedDates=[o]}}q.prevDate=c.datepick.newDate(o);this._updateInput(j);if(q.inline||q.pickingRange||q.selectedDates.length<(n||(m?2:1))){this._update(j)}else{this.hide(j)}}},_generateContent:function(O,N){var M=N.get("renderer");var L=N.get("monthsToShow");L=(c.isArray(L)?L:[1,L]);N.drawDate=this._checkMinMax(N.drawDate||N.get("defaultDate")||c.datepick.today(),N);var K=c.datepick.add(c.datepick.newDate(N.drawDate),-N.get("monthsOffset"),"m");var J="";for(var I=0;I<L[0];I++){var H="";for(var G=0;G<L[1];G++){H+=this._generateMonth(O,N,K.getFullYear(),K.getMonth()+1,M,(I==0&&G==0));c.datepick.add(K,1,"m")}J+=this._prepare(M.monthRow,N).replace(/\{months\}/,H)}var F=this._prepare(M.picker,N).replace(/\{months\}/,J).replace(/\{weekHeader\}/g,this._generateDayHeaders(N,M))+(c.browser.msie&&parseInt(c.browser.version,10)<7&&!N.inline?'<iframe src="javascript:void(0);" class="'+this._coverClass+'"></iframe>':"");var E=N.get("commands");var D=N.get("commandsAsDateFormat");var C=function(j,h,o,n,m){if(F.indexOf("{"+j+":"+n+"}")==-1){return}var l=E[n];var k=(D?l.date.apply(O,[N]):null);F=F.replace(new RegExp("\\{"+j+":"+n+"\\}","g"),"<"+h+(l.status?' title="'+N.get(l.status)+'"':"")+' class="'+M.commandClass+" "+M.commandClass+"-"+n+" "+m+(l.enabled(N)?"":" "+M.disabledClass)+'">'+(k?c.datepick.formatDate(N.get(l.text),k,N.getConfig()):N.get(l.text))+"</"+o+">")};for(var B in E){C("button",'button type="button"',"button",B,M.commandButtonClass);C("link",'a href="javascript:void(0)"',"a",B,M.commandLinkClass)}F=c(F);if(L[1]>1){var A=0;c(M.monthSelector,F).each(function(){var h=++A%L[1];c(this).addClass(h==1?"first":(h==0?"last":""))})}var g=this;F.find(M.daySelector+" a").hover(function(){c(this).addClass(M.highlightedClass)},function(){(N.inline?c(this).parents("."+g.markerClass):N.div).find(M.daySelector+" a").removeClass(M.highlightedClass)}).click(function(){g.selectDate(O,this)}).end().find("select."+this._monthYearClass+":not(."+this._anyYearClass+")").change(function(){var h=c(this).val().split("/");g.showMonth(O,parseInt(h[1],10),parseInt(h[0],10))}).end().find("select."+this._anyYearClass).click(function(){c(this).css("visibility","hidden").next("input").css({left:this.offsetLeft,top:this.offsetTop,width:this.offsetWidth,height:this.offsetHeight}).show().focus()}).end().find("input."+g._monthYearClass).change(function(){try{var h=parseInt(c(this).val(),10);h=(isNaN(h)?N.drawDate.getFullYear():h);g.showMonth(O,h,N.drawDate.getMonth()+1,N.drawDate.getDate())}catch(j){alert(j)}}).keydown(function(h){if(h.keyCode==13){c(h.target).change()}else{if(h.keyCode==27){c(h.target).hide().prev("select").css("visibility","visible");N.target.focus()}}});F.find("."+M.commandClass).click(function(){if(!c(this).hasClass(M.disabledClass)){var h=this.className.replace(new RegExp("^.*"+M.commandClass+"-([^ ]+).*$"),"$1");c.datepick.performAction(O,h)}});if(N.get("isRTL")){F.addClass(M.rtlClass)}if(L[0]*L[1]>1){F.addClass(M.multiClass)}var f=N.get("pickerClass");if(f){F.addClass(f)}c("body").append(F);var e=0;F.find(M.monthSelector).each(function(){e+=c(this).outerWidth()});F.width(e/L[0]);var d=N.get("onShow");if(d){d.apply(O,[F,N])}return F},_generateMonth:function(ar,aq,ap,ao,an,am){var al=c.datepick.daysInMonth(ap,ao);var ak=aq.get("monthsToShow");ak=(c.isArray(ak)?ak:[1,ak]);var ai=aq.get("fixedWeeks")||(ak[0]*ak[1]>1);var ah=aq.get("firstDay");var ag=(c.datepick.newDate(ap,ao,1).getDay()-ah+7)%7;var af=(ai?6:Math.ceil((ag+al)/7));var ae=aq.get("showOtherMonths");var ad=aq.get("selectOtherMonths")&&ae;var ac=aq.get("dayStatus");var aa=(aq.pickingRange?aq.selectedDates[0]:aq.get("minDate"));var Y=aq.get("maxDate");var W=aq.get("rangeSelect");var U=aq.get("onDate");var S=an.week.indexOf("{weekOfYear}")>-1;var Q=aq.get("calculateWeek");var O=c.datepick.today();var M=c.datepick.newDate(ap,ao,1);c.datepick.add(M,-ag-(ai&&(M.getDay()==ah)?7:0),"d");var K=M.getTime();var J="";for(var ab=0;ab<af;ab++){var Z=(!S?"":'<span class="dp'+K+'">'+(Q?Q(M):0)+"</span>");var X="";for(var V=0;V<7;V++){var T=false;if(W&&aq.selectedDates.length>0){T=(M.getTime()>=aq.selectedDates[0]&&M.getTime()<=aq.selectedDates[1])}else{for(var aj=0;aj<aq.selectedDates.length;aj++){if(aq.selectedDates[aj].getTime()==M.getTime()){T=true;break}}}var R=(!U?{}:U.apply(ar,[M,M.getMonth()+1==ao]));var P=(R.selectable!=false)&&(ad||M.getMonth()+1==ao)&&(!aa||M.getTime()>=aa.getTime())&&(!Y||M.getTime()<=Y.getTime());X+=this._prepare(an.day,aq).replace(/\{day\}/g,(P?'<a href="javascript:void(0)"':"<span")+' class="dp'+K+" "+(R.dateClass||"")+(T&&(ad||M.getMonth()+1==ao)?" "+an.selectedClass:"")+(P?" "+an.defaultClass:"")+((M.getDay()||7)<6?"":" "+an.weekendClass)+(M.getMonth()+1==ao?"":" "+an.otherMonthClass)+(M.getTime()==O.getTime()&&(M.getMonth()+1)==ao?" "+an.todayClass:"")+(M.getTime()==aq.drawDate.getTime()&&(M.getMonth()+1)==ao?" "+an.highlightedClass:"")+'"'+(R.title||(ac&&P)?' title="'+(R.title||c.datepick.formatDate(ac,M,aq.getConfig()))+'"':"")+">"+(ae||(M.getMonth()+1)==ao?R.content||M.getDate():"&nbsp;")+(P?"</a>":"</span>"));c.datepick.add(M,1,"d");K=M.getTime()}J+=this._prepare(an.week,aq).replace(/\{days\}/g,X).replace(/\{weekOfYear\}/g,Z)}var N=this._prepare(an.month,aq).match(/\{monthHeader(:[^\}]+)?\}/);N=(N[0].length<=13?"MM yyyy":N[0].substring(13,N[0].length-1));N=(am?this._generateMonthSelection(aq,ap,ao,aa,Y,N,an):c.datepick.formatDate(N,c.datepick.newDate(ap,ao,1),aq.getConfig()));var L=this._prepare(an.weekHeader,aq).replace(/\{days\}/g,this._generateDayHeaders(aq,an));return this._prepare(an.month,aq).replace(/\{monthHeader(:[^\}]+)?\}/g,N).replace(/\{weekHeader\}/g,L).replace(/\{weeks\}/g,J)},_generateDayHeaders:function(k,j){var r=k.get("firstDay");var q=k.get("dayNames");var o=k.get("dayNamesMin");var n="";for(var m=0;m<7;m++){var l=(m+r)%7;n+=this._prepare(j.dayHeader,k).replace(/\{day\}/g,'<span class="'+this._curDoWClass+l+'" title="'+q[l]+'">'+o[l]+"</span>")}return n},_generateMonthSelection:function(H,G,E,D,C,B){if(!H.get("changeMonth")){return c.datepick.formatDate(B,c.datepick.newDate(G,E,1),H.getConfig())}var A=H.get("monthNames"+(B.match(/mm/i)?"":"Short"));var z=B.replace(/m+/i,"\\x2E").replace(/y+/i,"\\x2F");var x='<select class="'+this._monthYearClass+'" title="'+H.get("monthStatus")+'">';for(var t=1;t<=12;t++){if((!D||c.datepick.newDate(G,t,c.datepick.daysInMonth(G,t)).getTime()>=D.getTime())&&(!C||c.datepick.newDate(G,t,1).getTime()<=C.getTime())){x+='<option value="'+t+"/"+G+'"'+(E==t?' selected="selected"':"")+">"+A[t-1]+"</option>"}}x+="</select>";z=z.replace(/\\x2E/,x);var w=H.get("yearRange");if(w=="any"){x='<select class="'+this._monthYearClass+" "+this._anyYearClass+'" title="'+H.get("yearStatus")+'"><option>'+G+'</option></select><input class="'+this._monthYearClass+" "+this._curMonthClass+E+'" value="'+G+'">'}else{w=w.split(":");var v=c.datepick.today().getFullYear();var u=(w[0].match("c[+-].*")?G+parseInt(w[0].substring(1),10):((w[0].match("[+-].*")?v:0)+parseInt(w[0],10)));var s=(w[1].match("c[+-].*")?G+parseInt(w[1].substring(1),10):((w[1].match("[+-].*")?v:0)+parseInt(w[1],10)));x='<select class="'+this._monthYearClass+'" title="'+H.get("yearStatus")+'">';var r=c.datepick.add(c.datepick.newDate(u+1,1,1),-1,"d");r=(D&&D.getTime()>r.getTime()?D:r).getFullYear();var q=c.datepick.newDate(s,1,1);q=(C&&C.getTime()<q.getTime()?C:q).getFullYear();for(var F=r;F<=q;F++){if(F!=0){x+='<option value="'+E+"/"+F+'"'+(G==F?' selected="selected"':"")+">"+F+"</option>"}}x+="</select>"}z=z.replace(/\\x2F/,x);return z},_prepare:function(m,l){var k=function(f,e){while(true){var h=m.indexOf("{"+f+":start}");if(h==-1){return}var g=m.substring(h).indexOf("{"+f+":end}");if(g>-1){m=m.substring(0,h)+(e?m.substr(h+f.length+8,g-f.length-8):"")+m.substring(h+g+f.length+6)}}};k("inline",l.inline);k("popup",!l.inline);var j=/\{l10n:([^\}]+)\}/;var d=null;while(d=j.exec(m)){m=m.replace(d[0],l.get(d[1]))}return m}});function a(e,d){c.extend(e,d);for(var f in d){if(d[f]==null||d[f]==undefined){e[f]=d[f]}}return e}c.fn.datepick=function(e){var d=Array.prototype.slice.call(arguments,1);if(c.inArray(e,["getDate","isDisabled","options","retrieveDate"])>-1){return c.datepick[e].apply(c.datepick,[this[0]].concat(d))}return this.each(function(){if(typeof e=="string"){c.datepick[e].apply(c.datepick,[this].concat(d))}else{c.datepick._attachPicker(this,e||{})}})};c.datepick=new b();c(function(){c(document).mousedown(c.datepick._checkExternalClick).resize(function(){c.datepick.hide(c.datepick.curInst)})})})(jQuery);(function(a){a.datepick.regional.fr={monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dateFormat:"dd/mm/yyyy",firstDay:0,renderer:a.datepick.defaultRenderer,prevText:"&#x3c;Préc",prevStatus:"Voir le mois précédent",prevJumpText:"&#x3c;&#x3c;",prevJumpStatus:"Voir l'année précédente",nextText:"Suiv&#x3e;",nextStatus:"Voir le mois suivant",nextJumpText:"&#x3e;&#x3e;",nextJumpStatus:"Voir l'année suivante",currentText:"Courant",currentStatus:"Voir le mois courant",todayText:"Aujourd'hui",todayStatus:"Voir aujourd'hui",clearText:"Effacer",clearStatus:"Effacer la date sélectionnée",closeText:"Fermer",closeStatus:"Fermer sans modifier",yearStatus:"Voir une autre année",monthStatus:"Voir un autre mois",weekText:"Sm",weekStatus:"Semaine de l'année",dayStatus:"'Choisir' le DD d MM",defaultStatus:"Choisir la date",isRTL:false};a.datepick.setDefaults(a.datepick.regional.fr)})(jQuery);(function(b){b.validate=function(h){var a=[];var g=[];var j={custom:false,message:"",group:"",required:false,equals:false,notEquals:false,length:false,integer:false,"float":false,currency:false,date:false,numberRange:false,phone:false,webColor:false,url:false,email:false,hostname:false,postalCode:false,zipCode:false,filename:false,password:false,regexp:false,time:false,ip:false,inArray:false};var k={header:"Some fields arent correct",test:"all",order:"default",rules:[]};if(h){b.extend(k,h)}b.each(k.rules,function(d,c){c=b.extend({},j,c);a.push({custom:c.custom,element:(c.custom)?"":b("#"+c.id),id:(c.custom)?"":c.id,value:(c.custom)?"":b.validate._getElementValue(c.id),options:c})});b.each(a,function(f,d){var o=d.options,c=d.value,n=true,e=b.validate.isEmpty(c);if(!d.custom){if(n&&o.required&&b.validate.isEmpty(c)){n=false}if(k.test=="all"){if(n&&o.length!==false&&!b.validate.isInLength(c,o.length)){n=false}if(n&&o.regexp!==false&&!b.validate._isRegexp(c,o.regexp,false)){n=false}if(n&&o.password!==false&&!b.validate.isValidPassword(c,o.password)){n=false}if(!e){if(n&&o.equals&&!b.validate.isEqual(c,o.equals)){n=false}if(n&&o.notEquals&&!b.validate.isNotEqual(c,o.notEquals)){n=false}if(n&&o.integer!==false&&!b.validate.isInteger(c)){n=false}if(n&&o["float"]!==false&&!b.validate.isFloat(c)){n=false}if(n&&o.currency!==false&&!b.validate.isCurrency(c)){n=false}if(n&&o.date!==false&&!b.validate.isDate(c,o.date)){n=false}if(n&&o.numberRange!==false&&!b.validate.isInRange(c,o.numberRange)){n=false}if(n&&o.phone!==false&&!b.validate.isPhoneNumber(c)){n=false}if(n&&o.webColor!==false&&!b.validate.isWebColor(c)){n=false}if(n&&o.url!==false&&!b.validate.isUrl(c)){n=false}if(n&&o.email!==false&&!b.validate.isEmail(c)){n=false}if(n&&o.hostname!==false&&!b.validate.isHostname(c)){n=false}if(n&&o.postalCode!==false&&!b.validate.isPostalCode(c)){n=false}if(n&&o.zipCode!==false&&!b.validate.isZipCode(c)){n=false}if(n&&o.filename!==false&&!b.validate.isFilename(c)){n=false}if(n&&o.time!==false&&!b.validate.isTime(c,o.time)){n=false}if(n&&o.ip!==false&&!b.validate.isIp(c)){n=false}if(n&&o.inArray!==false&&b.inArray(c,o.inArray)==-1){n=false}}}}else{n=false}if(!n){g.push(d)}});return{nbErrors:g.length,errors:g,message:b.validate.getFormattedMessage(k,g)}};b.validate.getFormattedMessage=function(h,k){var j="";if(k.length>0){var g=k,a=null;j=h.header+"\n";if(h.order=="group"){g.sort(function(c,d){return c.options.group>d.options.group})}b.each(g,function(){if(a!==this.options.group){a=this.options.group;j+=a==""?"\n":"\n"+a+"\n"}j+="   - "+this.options.message+"\n"})}return j};b.extend(b.validate,{syntax:{regexpInteger:"^-?[0-9]{1,10}$",regexpFloat:"^-?[0-9]{1,10}((.|,)[0-9]{1,10})?$",regexpPhoneNumber:"^(1-)?\\d{3}-\\d{3}-\\d{4}$|^(1\\.)?\\d{3}\\.\\d{3}\\.\\d{4}$|^(1\\s)?\\d{3}\\s\\d{3}\\s\\d{4}$",regexpWebColor:"^#?[0-9a-f]{6}$",regexpUrl:"^https?://.*$",regexpEmail:"([\\w\\_\\.\\-]+\\@[\\w\\_\\.\\-]+\\.[a-z]{2,5})",regexpHostname:"^([\\w\\_\\.\\-]+\\.[a-z]{2,5})$",regexpPostalCode:"^[a-zA-Z]\\d[a-zA-Z]\\s?\\d[a-zA-Z]\\d$",regexpZipCode:"^\\d{5}((-|\\s)?\\d{4})?$",regexpFilename:"^[a-zA-Z0-9_-]+.[a-zA-Z0-9]+$",regexpIp:"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$",regexpDate:"^\\d{4}-\\d{1,2}-\\d{1,2}$",regexpDateFormat:"^(yyyy/mm/dd|yyyy/dd/mm|mm/yyyy/dd|mm/dd/yyyy|dd/yyyy/mm|dd/mm/yyyy|yyyy.mm.dd|yyyy.dd.mm|mm.yyyy.dd|mm.dd.yyyy|dd.yyyy.mm|dd.mm.yyyy|yyyy-mm-dd|yyyy-dd-mm|mm-yyyy-dd|mm-dd-yyyy|dd-yyyy-mm|dd-mm-yyyy)$",defaultDateFormat:"yyyy-mm-dd",regexpTimeFormat:"^(HH?|hh?)(:|h)(nn?)(?::(ss?))?(?: ?(a))?$",regexpTimeValue:"^(\\d\\d?)(:|h)(\\d\\d?)(?::(\\d\\d?))?(?: ?(am|pm|AM|PM))?$",defaultTimeFormat:"HH:nn"}});b.validate.isEmpty=function(a){return(a==null||b.trim(a.toString())=="")};b.validate.isEqual=function(d,a){return(d==a)};b.validate.isNotEqual=function(d,a){return(d!=a)};b.validate.isInLength=function(f,e){var a=b.extend({min:null,max:null},e);return b.validate.isInRange(f.length.toString(),a)};b.validate.isInRange=function(g,h){bValid=false;var a=b.extend({min:null,max:null},h);if(b.validate.isFloat(g)){var f=parseFloat(g.toString().replace(",","."));if((a.min===null||f>=a.min)&&(a.max===null||f<=a.max)){bValid=true}}return bValid};b.validate.isInteger=function(f){var a=false;if(b.validate._isRegexp(f,b.validate.syntax.regexpInteger,true)){var e=parseFloat(f);if(e<=2147483647&&e>=-2147483648){a=true}}return a};b.validate.isFloat=function(a){return(b.validate._isRegexp(a,b.validate.syntax.regexpFloat,true))?true:false};b.validate.isArray=function(a){return(a.constructor.toString().indexOf("Array")==-1)?false:true};b.validate.isCurrency=function(e){var f=false;var a=/^((((\$|\u20AC|\u20A4|\u00A3|\u00A5)\s?)?-?(\d{1,3})(\s?\d{3})*((\.|,)\d{1,2})?)|(-?(\d{1,3})(\s?\d{3})*((\.|,)\d{1,2})?(\s?(\$|\u20AC|\u20A4|\u00A3|\u00A5))?)|(((\$|\u20AC|\u20A4|\u00A3|\u00A5)\s?)?-?(\d{1,3})(,\d{3})*(\.\d{1,2})?)|(-?(\d{1,3})(,\d{3})*(\.\d{1,2})?(\s?(\$|\u20AC|\u20A4|\u00A3|\u00A5))?))$/i;if(e.match(a)){f=true}return f};b.validate.isDate=function(z,t){var o=false;var x=(t===true||!t)?b.validate.syntax.defaultDateFormat:t.toLowerCase();if(!b.validate._isRegexp(x,b.validate.syntax.regexpDateFormat,false)){throw ("isDate : Invalid date format provided");return false}var A=$j.grep(x.split(""),function(c){return(c=="/"||c=="-"||c==".")});A=b.validate._uniq(A);var a=x.split(A),q=z.split(A);var v=a.indexOf("yyyy"),s=a.indexOf("mm"),y=a.indexOf("dd");if(q.length==3&&b(q).filter(function(c){return b.validate.isInteger(c)})){var r=parseInt(q[v],10),u=parseInt(q[s],10),w=parseInt(q[y],10);if(u>=1&&u<=12){if(w>=1&&w<=b.validate._daysInMonth(u,r)){o=true}}}return o};b.validate.isTime=function(w,N){var A=(N===true||!N)?b.validate.syntax.defaultTimeFormat:N;var J,F,a,y,E;var L,M,G;var C,x,z,D,K;if(!b.validate._isRegexp(A,b.validate.syntax.regexpTimeFormat,false)){throw ("isTime : Invalid time format provided");return false}if(!b.validate._isRegexp(w,b.validate.syntax.regexpTimeValue,false)){return false}var P=new RegExp(b.validate.syntax.regexpTimeFormat);var O=P.exec(A);C=O[1];K=O[2];x=O[3];z=O[4];D=O[5];P=new RegExp(b.validate.syntax.regexpTimeValue);var B=P.exec(w);P=null;J=B[1];E=B[2];F=B[3];a=B[4];y=B[5];if(J){L=parseInt(J,10)}if(F){M=parseInt(F,10)}if(a){G=parseInt(a,10)}else{G=0}if(!z){z="";a=""}var I=[(L<0||L>23||(L>12&&b.inArray(C,["h","hh"])!=-1)),(L<10&&C.length!=J.length),(E!=K),(M<0||M>59),(M<10&&x.length!=F.length),((!z&&a)||(z&&!a)||G<0||G>59),(G<10&&z.length!=a.length),((!D&&y)||(D&&!y))];if(b.inArray(true,I)!=-1){return false}if(y){if(b.inArray(C,["H","HH"])){var H=(L*60)+M;if((H>=720&&b.inArray(y,["am","AM"])!=-1)||(H<720&&b.inArray(y,["pm","PM"])!=-1)){return false}}}return true};b.validate.isPhoneNumber=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpPhoneNumber,true)};b.validate.isWebColor=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpWebColor,true)};b.validate.isUrl=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpUrl,true)};b.validate.isEmail=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpEmail,true)};b.validate.isHostname=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpHostname,true)};b.validate.isPostalCode=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpPostalCode,true)};b.validate.isZipCode=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpZipCode,true)};b.validate.isFilename=function(d){var a=d.substring(d.lastIndexOf("\\")+1);return b.validate._isRegexp(a,b.validate.syntax.regexpFilename,true)};b.validate.isIp=function(a){return b.validate._isRegexp(a,b.validate.syntax.regexpIp,true)};b.validate.isValidPassword=function(t,q){var o=b.extend({minLength:4,maxLength:10,digitRequired:true,lowerRequired:true,upperRequired:true,specialRequired:false,spaceAllowed:false},q);var a="\\d",n="[a-z]",u="[A-Z]",r="\\s",s='[|!"/%&_@;,<>{}~\\-\\(\\)\\*\\+\\$\\?\\.]',l=true,m=t;if(l&&(m.length<o.minLength||m.length>o.maxLength)){l=false}if(l&&(!o.spaceAllowed&&b.validate._isRegexp(m,r,true))){l=false}if(l&&(o.digitRequired&&!b.validate._isRegexp(m,a,true))){l=false}if(l&&(o.lowerRequired&&!b.validate._isRegexp(m,n,false))){l=false}if(l&&(o.upperRequired&&!b.validate._isRegexp(m,u,false))){l=false}if(l&&(o.specialRequired&&!b.validate._isRegexp(m,s,true))){l=false}return l};b.validate._daysInMonth=function(g,f){var h=(((f%4==0)&&((!(f%100==0))||(f%400==0)))?29:28),a=[31,h,31,30,31,30,31,31,30,31,30,31];return a[g-1]},b.validate._isRegexp=function(k,h,l){var a=true,j=l?"i":"",m=(b.isArray(h)?h:[h]);b.each(m,function(e,d){var c=new RegExp(d,j);if(a&&!c.test(k)){a=false}});return a};b.validate._getElementValue=function(n){var l=null,o=false,m=false,j;if(typeof(FCKeditorAPI)!="undefined"&&FCKeditorAPI.GetInstance(n)){o=true;l=FCKeditorAPI.GetInstance(n).GetXHTML()}if(typeof(tinymce)!="undefined"&&tinyMCE.get(n)){m=true;l=tinyMCE.get(n).getContent()}if(!o&&!m){var k=b("#"+n).get(0);if(k.nodeName=="INPUT"&&b(k).attr("type")&&b.inArray(b(k).attr("type").toLowerCase(),["radio","checkbox"])!=-1){j=b('input[name="'+b(k).attr("name")+'"]:checked');var a=[];b.each(j,function(){a.push(b(this).val())});l=a.join(",")}else{if(k.nodeName=="SELECT"&&k.multiple){l=b("#"+n).val();l=b.makeArray(l).join(",")}else{l=b("#"+n).val()}}}return(l)?l:""};b.validate._uniq=function(k){var g={},a=[];for(var h=0,j=k.length;h<j;++h){if(!g.hasOwnProperty(k[h])){g[k[h]]=true;a.push(k[h])}}return a};b.fn._min=function(e,f){e=e||function(c){return c};var a;this.each(function(c,d){c=e.call(f,c,d);if(a==null||c<a){a=c}});return a};if(!Array.indexOf){Array.prototype.indexOf=function(d){for(var a=0;a<this.length;a++){if(this[a]==d){return a}}return -1}}})(jQuery);(function(window,undefined){var S={version:"3.0.3"};var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=true}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=true}else{if(ua.indexOf("linux")>-1){S.isLinux=true}}}S.isIE=ua.indexOf("msie")>-1;S.isIE6=ua.indexOf("msie 6")>-1;S.isIE7=ua.indexOf("msie 7")>-1;S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;S.isWebKit=ua.indexOf("applewebkit/")>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3)};S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.playerId="sb-player";S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null};S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)};S.isOpen=function(){return open};S.isPaused=function(){return slideTimer=="pause"};S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options)};S.revertOptions=function(){apply(S.options,lastOptions)};S.init=function(options,callback){if(initialized){return}initialized=true;if(S.skin.options){apply(S.options,S.skin.options)}if(options){apply(S.options,options)}if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break}}}if(callback){S.onReady=callback}bindLoad()};S.open=function(obj){if(open){return}var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null){return}S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===false){return}open=true;S.skin.onOpen(obj,load)}};S.close=function(){if(!open){return}open=false;if(S.player){S.player.remove();S.player=null}if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null}slideDelay=0;listenKeys(false);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions()};S.play=function(){if(!S.hasNext()){return}if(!slideDelay){slideDelay=S.options.slideshowDelay*1000}if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next()},slideDelay);if(S.skin.onPlay){S.skin.onPlay()}}};S.pause=function(){if(typeof slideTimer!="number"){return}slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause){S.skin.onPause()}}};S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery)){return}}else{return}}S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0}S.options.onChange(S.getCurrent());load(true)};S.next=function(){S.change(S.current+1)};S.previous=function(){S.change(S.current-1)};S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight){height=maxHeight-extraHeight}var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth){width=maxWidth-extraWidth}var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)}}}S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions};S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string"){obj=[obj]}if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o}else{gallery[i]={content:o}}});current=0}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj)}if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length}gallery.push(o)}}if(current==-1){gallery.unshift(obj);current=0}}else{gallery=[obj];current=0}}each(gallery,function(i,o){gallery[i]=apply({},o)});return[gallery,current]};S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o]}});obj.options=options}else{obj.options={}}if(!obj.player){obj.player=S.getPlayer(obj.content)}var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match){obj.gallery=escape(match[2])}each(rel.split(";"),function(i,p){match=p.match(inlineParam);if(match){obj[match[1]]=match[2]}})}return obj};S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}var ext,m=content.match(fileExtension);if(m){ext=m[0].toLowerCase()}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"}else{return"qt"}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"}}return"iframe"};function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i];remove=false;needed=null;switch(obj.player){case"flv":case"swf":if(!plugins.fla){needed="fla"}break;case"qt":if(!plugins.qt){needed="qt"}break;case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"}else{needed="qtf4m"}}else{if(!plugins.wmp){needed="wmp"}}break;case"qtwmp":if(plugins.qt){obj.player="qt"}else{if(plugins.wmp){obj.player="wmp"}else{needed="qtwmp"}}break}if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case"qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name]}obj.player="html";obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+"</div>"}else{remove=true}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML}else{remove=true}}else{remove=true}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177}}}}if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}}function listenKeys(on){if(!S.options.enableKeys){return}(on?addEvent:removeEvent)(document,"keydown",handleKey)}function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return}var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break}if(handler){preventDefault(e);handler()}}function load(changing){listenKeys(false);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function"){throw"unknown player "+player}if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{})}S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}S.skin.onLoad(changing,waitReady)}function waitReady(){if(!open){return}if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show)}}else{clearInterval(timer);timer=null}},10)}else{S.skin.onReady(show)}}function show(){if(!open){return}S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish)}function finish(){if(!open){return}if(S.player.onLoad){S.player.onLoad()}S.options.onFinish(S.getCurrent());if(!S.isPaused()){S.play()}listenKeys(true)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0){from+=len}for(;from<len;++from){if(from in this&&this[from]===obj){return from}}return -1}}function now(){return(new Date).getTime()}function apply(original,extension){for(var property in extension){original[property]=extension[property]}return original}function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==false;value=obj[++i]){}}function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]})}function noop(){}function get(id){return document.getElementById(id)}function remove(el){el.parentNode.removeChild(el)}var supportsOpacity=true,supportsFixed=true;function checkSupport(){var body=document.body,div=document.createElement("div");supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div)}S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle){ret=computedStyle[style]}if(style=="opacity"&&ret==""){ret="1"}}else{ret=el.currentStyle[style]}return ret}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)}else{if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else{el.innerHTML=html}}};S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]}return document.body["client"+dimension]};S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity)}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")"}}};S.clearOpacity=function(el){S.setOpacity(el,1)};function getTarget(e){return e.target}function getPageXY(e){return[e.pageX,e.pageY]}function preventDefault(e){e.preventDefault()}function keyCode(e){return e.keyCode}function addEvent(el,type,handler){jQuery(el).bind(type,handler)}function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)}jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});var cls=this.className||"";opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup(el,opts)})};var loaded=false,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);S.load()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load()}}}}function doScrollCheck(){if(loaded){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return}S.load()}function bindLoad(){if(document.readyState==="complete"){return S.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",S.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",S.load);var topLevel=false;try{topLevel=window.frameElement===null}catch(e){}if(document.documentElement.doScroll&&topLevel){doScrollCheck()}}}}S.load=function(){if(loaded){return}if(!document.body){return setTimeout(S.load,13)}loaded=true;checkSupport();S.onReady();if(!S.options.skipSetup){S.setup()}S.skin.init()};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name)});names=names.join(",");var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name)}catch(e){}return !!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel)){links.push(el)}})}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])}}else{for(var i=0;i<length;++i){links[i]=selector[i]}}}}else{links.push(selector)}}return links};S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)})};S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)})};S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick)}S.cache[key]=S.makeObject(link,options)};S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null};S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key])};S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)}S.cache={}};function handleClick(e){S.open(this);if(S.gallery.length){preventDefault(e)}}S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=context.getElementsByTagName("*")}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr}else{break}}old=expr}return curLoop};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false}}return true}else{throw"Syntax error, unrecognized expression: "+name}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true}return ret}}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true}return ret}}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}}return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};return Sizzle})();S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();return swfobject})();S.lang={code:"fr",of:"de",loading:"chargement",cancel:"Annuler",next:"Suivant",previous:"Précédent",play:"Lire",pause:"Pause",close:"Fermer",errors:{single:'Vous devez installer le plugin <a href="{0}">{1}</a> pour afficher ce contenu.',shared:'Vous devez installer les plugins <a href="{0}">{1}</a> et <a href="{2}">{3}</a> pour afficher ce contenu.',either:'Vous devez installer le plugin <a href="{0}">{1}</a> ou <a href="{2}">{3}</a> pour afficher ce contenu.'}};var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}}function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})}function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag)}function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null}dragTarget=null}function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"}}function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})}function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grab"}}S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=false;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=true;pre.onload=null;pre=null};pre.src=obj.content};S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth}else{height=this.height;width=this.width}img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img)},remove:function(){var el=get(this.id);if(el){remove(el)}disableDrag();if(pre){pre.onload=null;pre=null}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()}},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case"resize":var el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"}if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"}updateProxy()}break}}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get("sb-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth};S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="auto"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""}}html+="></iframe>";body.innerHTML=html},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500};S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div)},remove:function(){var el=get(this.id);if(el){remove(el)}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300};S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=jwControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var qtControllerHeight=16;S.qt=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=qtControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];S.qt.prototype={append:function(body,dims){var opt=S.options,autoplay=String(opt.autoplayMovies),controls=String(opt.showMovieControls);var html="<object",movie={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(S.isIE){movie.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";movie.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{movie.type="video/quicktime";movie.data=this.obj.content}for(var m in movie){html+=" "+m+'="'+movie[m]+'"'}html+=">";var params={src:this.obj.content,scale:"aspect",controller:controls,autoplay:autoplay};for(var p in params){html+='<param name="'+p+'" value="'+params[p]+'">'}html+="</object>";body.innerHTML=html},remove:function(){try{document[this.id].Stop()}catch(e){}var el=get(this.id);if(el){remove(el)}}};var wmpControllerHeight=(S.isIE?70:45);S.wmp=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=wmpControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.wmp.ext=["asf","avi","mpg","mpeg","wm","wmv"];S.wmp.prototype={append:function(body,dims){var opt=S.options,autoplay=opt.autoplayMovies?1:0;var movie='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',params={autostart:opt.autoplayMovies?1:0};if(S.isIE){movie+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';params.url=this.obj.content;params.uimode=opt.showMovieControls?"full":"none"}else{movie+=' type="video/x-ms-wmv"';movie+=' data="'+this.obj.content+'"';params.showcontrols=opt.showMovieControls?1:0}movie+=">";for(var p in params){movie+='<param name="'+p+'" value="'+params[p]+'">'}movie+="</object>";body.innerHTML=movie},remove:function(){if(S.isIE){try{window[this.id].controls.stop();window[this.id].URL="movie"+now()+".wmv";window[this.id]=function(){}}catch(e){}}var el=get(this.id);if(el){setTimeout(function(){remove(el)},10)}}};var overlayOn=false,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=true;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback){callback()}return}var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback){callback()}return}duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback){callback()}}else{anim(el,from+ease((time-begin)/duration)*delta)}},10)}function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px"}function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px"}function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""})}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden"})})}}function toggleNav(id,on){var el=get("sb-nav-"+id);if(el){el.style.display=on?"":"none"}}function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)}else{wrapped()}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)}else{wrapped()}}}function buildBars(callback){var obj=S.getCurrent();get("sb-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=true;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=true}else{next=(len-1)>S.current;previous=S.current>0}}if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause}}else{close=next=play=pause=previous=false}toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len}end=S.current+(limit-h);if(end>len){end-=len}}while(i!=end){if(i==len){i=0}counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current){counter+=' class="sb-counter-current"'}counter+=">"+(++i)+"</a>"}}else{counter=[S.current+1,S.lang.of,len].join(" ")}}get("sb-counter").innerHTML=counter;callback()}function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)}animate(infoInner,"marginTop",0,duration,callback)}function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback()})}function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback)}function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback)}function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)}var K={};K.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get("sb-body-inner");container=get("sb-container");overlay=get("sb-overlay");wrapper=get("sb-wrapper");if(!supportsFixed){container.style.position="absolute"}if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"}}})}var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null}if(open){timer=setTimeout(K.onWindowResize,10)}})};K.onOpen=function(obj,callback){doWindowResize=false;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal){addEvent(overlay,"click",S.close)}overlayOn=true}if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition)}toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)}else{callback()}};K.onLoad=function(changing,callback){toggleLoading(true);while(K.body.firstChild){remove(K.body.firstChild)}hideBars(changing,function(){if(!open){return}if(!changing){wrapper.style.visibility="visible"}buildBars(callback)})};K.onReady=function(callback){if(!open){return}var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback)};switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped)});break;case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped)});break;default:adjustWidth(dims.width,dims.left,true);adjustHeight(dims.innerHeight,dims.top,true,wrapped)}};K.onShow=function(callback){toggleLoading(false,callback);doWindowResize=true};K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)}removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(true)};if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)}else{callback()}};K.onPlay=function(){toggleNav("play",false);toggleNav("pause",true)};K.onPause=function(){toggleNav("pause",false);toggleNav("play",true)};K.onWindowResize=function(){if(!doWindowResize){return}setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize){player.onWindowResize()}};S.skin=K;window.Shadowbox=S})(window);function retrieveCookie(d){var b=document.cookie.split("; ");for(var a=0;a<b.length;a++){var c=b[a].split("=");if(c[0]==escape(d)){return c[1]?unescape(c[1]):""}}return null}function setCookie(f,e,d,c,b,a){if(!f){return false}if(d=="delete"){d=-10}document.cookie=escape(f)+"="+escape(e)+(d?";expires="+(new Date((new Date()).getTime()+(1000*d))).toGMTString():"")+(c?";path="+c:"")+(b?";domain="+b:"")+(a?";secure":"");if(d<0){if(typeof(retrieveCookie(f))=="string"){return false}return true}if(typeof(retrieveCookie(f))=="string"){return true}return false}if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b)}};var $jw=jwplayer;jwplayer.version="5.7.1896";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){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.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/android 2.[012]/i)!==null)};c.utils.isIOS=function(a){if(typeof a=="undefined"){a=/iP(hone|ad|od)/i}var b=navigator.userAgent.toLowerCase();return(b.match(a)!==null)};c.utils.isIPad=function(){return c.utils.isIOS(/iPad/i)};c.utils.isIPod=function(){return c.utils.isIOS(/iP(hone|od)/i)};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 q;if(b.indexOf("/")===0){q=b.split("/")}else{var o=l.split("?")[0];o=o.substring(a.length+m.length+1,o.lastIndexOf("/"));q=o.split("/").concat(b.split("/"))}var r=[];for(var n=0;n<q.length;n++){if(!q[n]||!c.utils.exists(q[n])||q[n]=="."){continue}else{if(q[n]==".."){r.pop()}else{r.push(q[n])}}}return a+m+"/"+r.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(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a};c.utils.stretch=function(s,a,b,u,o,t){if(typeof b=="undefined"||typeof u=="undefined"||typeof o=="undefined"||typeof t=="undefined"){return}var w=b/o;var v=u/t;var q=0;var r=0;a.style.overflow="hidden";c.utils.transform(a,"");var x={};switch(s.toUpperCase()){case c.utils.stretching.NONE:x.width=o;x.height=t;break;case c.utils.stretching.UNIFORM:if(w>v){x.width=o*v;x.height=t*v}else{x.width=o*w;x.height=t*w}break;case c.utils.stretching.FILL:if(w>v){x.width=o*w;x.height=t*w}else{x.width=o*v;x.height=t*v}break;case c.utils.stretching.EXACTFIT:c.utils.transform(a,["scale(",w,",",v,")"," translate(0px,0px)"].join(""));x.width=o;x.height=t;break;default:break}x.top=(u-x.height)/2;x.left=(b-x.width)/2;c.utils.css(a,x)};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.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}})(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,s,t,o,q,u){if(c[a.id]!=u&&d.utils.exists(u)){return}if(a.style.opacity==s){return}var v=new Date().getTime();if(u>v){setTimeout(function(){d.utils.fadeTo(a,s,t,o,0,u)},u-v)}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==s&&a.style.opacity!==""&&d.utils.exists(u)){if(s===0){a.style.display="none"}return}if(!d.utils.exists(u)){u=v;c[a.id]=u}if(!d.utils.exists(q)){q=0}var n=(t>0)?((v-u)/(t*1000)):0;n=n>1?1:n;var b=s-o;var r=o+(n*b);if(r>1){r=1}else{if(r<0){r=0}}a.style.opacity=r;if(q>0){c[a.id]=u+q*1000;d.utils.fadeTo(a,s,t,o,0,c[a.id]);return}setTimeout(function(){d.utils.fadeTo(a,s,t,o,0,u)},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 q(a)};function r(a,b){if(!o.utils.exists(b)){b=m[a]}else{o.utils.extend(b,m[a])}return b}function q(f,d){if(n[f.tagName.toLowerCase()]&&!o.utils.exists(d)){return n[f.tagName.toLowerCase()](f)}else{d=r("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=r("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=q(f,c);if(o.utils.exists(e.file)){b[0]={file:e.file}}e.levels=b;return e}function k(a,b){b=r("source",b);var c=q(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function j(a,b){b=r("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 q=0;q<n.length;q++){if(b.utils.exists(n[q].className)){var r=n[q].className.split(" ");for(var a=0;a<r.length;a++){if(r[a]==l){k.push(n[q])}}}}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+'"'}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+'"';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(v){var t="http://plugins.longtailvideo.com";var n=b.utils.loaderstatus.NEW;var m;var o;var a;var u=new b.events.eventdispatcher();b.utils.extend(this,u);function s(){switch(b.utils.getPluginPathType(v)){case b.utils.pluginPathType.ABSOLUTE:return v;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(v,window.location.href);case b.utils.pluginPathType.CDN:var d=b.utils.getPluginName(v);var c=b.utils.getPluginVersion(v);return t+"/"+b.version.split(".")[0]+"/"+d+"/"+d+(c!==""?("-"+c):"")+".js"}}function q(c){a=setTimeout(function(){n=b.utils.loaderstatus.COMPLETE;u.sendEvent(b.events.COMPLETE)},1000)}function r(c){n=b.utils.loaderstatus.ERROR;u.sendEvent(b.events.ERROR)}this.load=function(){if(n==b.utils.loaderstatus.NEW){if(v.lastIndexOf(".swf")>0){m=v;n=b.utils.loaderstatus.COMPLETE;u.sendEvent(b.events.COMPLETE);return}n=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(s());c.addEventListener(b.events.COMPLETE,q);c.addEventListener(b.events.ERROR,r);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;u.sendEvent(b.events.COMPLETE)};this.getStatus=function(){return n};this.getPluginName=function(){return b.utils.getPluginName(v)};this.getFlashPath=function(){if(m){switch(b.utils.getPluginPathType(m)){case b.utils.pluginPathType.ABSOLUTE:return m;case b.utils.pluginPathType.RELATIVE:if(v.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(m,window.location.href)}return b.utils.getAbsolutePath(m,s());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 v}}})(jwplayer);(function(b){b.plugins.pluginloader=function(m,q){var n={};var a=b.utils.loaderstatus.NEW;var r=false;var t=false;var s=new b.events.eventdispatcher();b.utils.extend(this,s);function o(){if(!t){t=true;a=b.utils.loaderstatus.COMPLETE;s.sendEvent(b.events.COMPLETE)}}function l(){if(!t){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;r=true;for(var c in q){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()}r=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(e,f){if(this.renderingMode=="html5"){A.jwResize(e,f)}else{this.container.width=e;this.container.height=f}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};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(d){d.embed=function(k){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var l=d.utils.mediaparser.parseMedia(k.container);var m=new d.embed.config(d.utils.extend(a,l,k.config),this);var b=d.plugins.loadPlugins(k.id,m.plugins);function o(e,f){for(var g in f){if(typeof e[g]=="function"){(e[g]).call(e,f[g])}}}function n(){if(b.getStatus()==d.utils.loaderstatus.COMPLETE){for(var e=0;e<m.modes.length;e++){if(m.modes[e].type&&d.embed[m.modes[e].type]){var g=m;if(m.modes[e].config){g=d.utils.extend(d.utils.clone(m),m.modes[e].config)}var f=new d.embed[m.modes[e].type](document.getElementById(k.id),m.modes[e],g,b,k);if(f.supportsConfig()){f.embed();o(k,m.events);return k}}}d.utils.log("No suitable players found");new d.embed.logo(d.utils.extend({hide:true},m.components.logo),"none",k.id)}}b.addEventListener(d.events.COMPLETE,n);b.addEventListener(d.events.ERROR,n);b.load();return k};function c(){if(!document.body){return setTimeout(c,15)}var f=d.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var b=0;b<f.length;b++){var a=f[b];d(a.id).setup({})}}c()})(jwplayer);(function(o){function l(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var t={players:"modes",autoplay:"autostart"};function s(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 r(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 q(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){q(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)){q(b,"components",f,d)}else{if(a[f]){q(b,"plugins",a[f],d)}}}}return b};o.embed.config=function(h,j){var v=o.utils.extend({},h);var a;if(r(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 t){if(v[e]){if(!v[t[e]]){v[t[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(q,n,r){var o=document.createElement(q);if(r){o.id=r}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(t,s,n,u,q){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(q.id+"_wrapper").appendChild(c)}var f=document.getElementById(q.id).getPluginConfig("display");d.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(c,g)}}function v(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 r(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 x(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 w(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=q.id;var h;var d=b.utils.extend({},n);var g=d.width;var k=d.height;if(t.id+"_wrapper"==t.parentNode.id){h=document.getElementById(t.id+"_wrapper")}else{h=document.createElement("div");h.id=t.id+"_wrapper";b.utils.wrap(t,h);b.utils.css(h,{position:"relative",width:g,height:k})}var f=u.setupPlugins(q,d,o);if(f.length>0){b.utils.extend(d,x(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}r(d,"components");r(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="'+t.id+'" name="'+t.id+'" tabindex=0"">';l+='<param name="movie" value="'+s.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="'+w(d)+'">';l+="</object>";b.utils.setOuterHTML(t,l);z=document.getElementById(t.id)}else{var A=document.createElement("object");A.setAttribute("type","application/x-shockwave-flash");A.setAttribute("data",s.src);A.setAttribute("width","100%");A.setAttribute("height","100%");A.setAttribute("bgcolor","#000000");A.setAttribute("id",t.id);A.setAttribute("name",t.id);A.setAttribute("tabindex",0);a(A,"allowfullscreen","true");a(A,"allowscriptaccess","always");a(A,"seamlesstabbing","true");a(A,"wmode",e);a(A,"flashvars",w(d));t.parentNode.replaceChild(A,t);z=A}q.container=z;q.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)}var o=f.style;d.resize(parseInt(o.width.replace("px","")),parseInt(o.height.replace("px","")));c.left=o.left;c.top=o.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:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",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)}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 g=e.utils;var h=g.css;e.html5.view=function(K,M,X){var F=K;var Q=M;var c=X;var d;var W;var J;var H;var I;var O;var N;function a(){d=document.createElement("div");d.id=Q.id;d.className=Q.className;_videowrapper=document.createElement("div");_videowrapper.id=d.id+"_video_wrapper";Q.id=d.id+"_video";h(d,{position:"relative",height:c.height,width:c.width,padding:0,backgroundColor:j(),zIndex:0});function j(){if(F.skin.getComponentSettings("display")&&F.skin.getComponentSettings("display").backgroundcolor){return F.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}h(Q,{width:c.width,height:c.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});h(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});g.wrap(Q,d);g.wrap(Q,_videowrapper);H=document.createElement("div");H.id=d.id+"_displayarea";d.appendChild(H)}function T(){for(var k=0;k<c.plugins.order.length;k++){var j=c.plugins.order[k];if(g.exists(c.plugins.object[j].getDisplayElement)){c.plugins.object[j].height=g.parseDimension(c.plugins.object[j].getDisplayElement().style.height);c.plugins.object[j].width=g.parseDimension(c.plugins.object[j].getDisplayElement().style.width);c.plugins.config[j].currentPosition=c.plugins.config[j].position}}E()}function R(j){h(H,{display:c.getMedia().hasChrome()?"none":"block"})}function E(l){var j=c.getMedia()?c.getMedia().getDisplayElement():null;if(g.exists(j)){if(N!=j){if(N&&N.parentNode){N.parentNode.replaceChild(j,N)}N=j}for(var m=0;m<c.plugins.order.length;m++){var k=c.plugins.order[m];if(g.exists(c.plugins.object[k].getDisplayElement)){c.plugins.config[k].currentPosition=c.plugins.config[k].position}}}U(c.width,c.height)}this.setup=function(){if(c&&c.getMedia()){Q=c.getMedia().getDisplayElement()}a();T();F.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,R);F.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_LOADED,E);F.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_META,function(){b()});var j;if(g.exists(window.onresize)){j=window.onresize}window.onresize=function(m){if(g.exists(j)){try{j(m)}catch(k){}}if(F.jwGetFullscreen()){var l=document.body.getBoundingClientRect();c.width=Math.abs(l.left)+Math.abs(l.right);c.height=window.innerHeight}U(c.width,c.height)}};function V(j){switch(j.keyCode){case 27:if(F.jwGetFullscreen()){F.jwSetFullscreen(false)}break;case 32:if(F.jwGetState()!=e.api.events.state.IDLE&&F.jwGetState()!=e.api.events.state.PAUSED){F.jwPause()}else{F.jwPlay()}break}}function U(l,o){if(d.style.display=="none"){return}var m=[].concat(c.plugins.order);m.reverse();I=m.length+2;if(!c.fullscreen){c.width=l;c.height=o;W=l;J=o;h(H,{top:0,bottom:0,left:0,right:0,width:l,height:o,position:"relative"});h(d,{height:J,width:W});var n=P(G,m);if(n.length>0){I+=n.length;var j=n.indexOf("playlist"),k=n.indexOf("controlbar");if(j>=0&&k>=0){n[j]=n.splice(k,1,n[j])[0]}P(S,n,true)}}else{if(!(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)){P(L,m,true)}}b()}function P(k,n,m){var o=[];for(var q=0;q<n.length;q++){var j=n[q];if(g.exists(c.plugins.object[j].getDisplayElement)){if(c.plugins.config[j].currentPosition!=e.html5.view.positions.NONE){var l=k(j,I--);if(!l){o.push(j)}else{c.plugins.object[j].resize(l.width,l.height);if(m){delete l.width;delete l.height}h(c.plugins.object[j].getDisplayElement(),l)}}else{h(c.plugins.object[j].getDisplayElement(),{display:"none"})}}}return o}function G(k,j){if(g.exists(c.plugins.object[k].getDisplayElement)){if(c.plugins.config[k].position&&f(c.plugins.config[k].position)){if(!g.exists(c.plugins.object[k].getDisplayElement().parentNode)){d.appendChild(c.plugins.object[k].getDisplayElement())}var l=Y(k);l.zIndex=j;return l}}return false}function S(k,j){if(!g.exists(c.plugins.object[k].getDisplayElement().parentNode)){H.appendChild(c.plugins.object[k].getDisplayElement())}var m=c.width,l=c.height;if(typeof c.width=="string"&&c.width.lastIndexOf("%")>-1){percentage=parseFloat(c.width.substring(0,c.width.lastIndexOf("%")))/100;m=Math.round(window.innerWidth*percentage)}if(typeof c.height=="string"&&c.height.lastIndexOf("%")>-1){percentage=parseFloat(c.height.substring(0,c.height.lastIndexOf("%")))/100;l=Math.round(window.innerHeight*percentage)}return{position:"absolute",width:(m-g.parseDimension(H.style.left)-g.parseDimension(H.style.right)),height:(l-g.parseDimension(H.style.top)-g.parseDimension(H.style.bottom)),zIndex:j}}function L(k,j){return{position:"fixed",width:c.width,height:c.height,zIndex:j}}function b(){if(!g.exists(c.getMedia())){return}H.style.position="absolute";var k=c.getMedia().getDisplayElement();if(k&&k.tagName.toLowerCase()=="video"){k.style.position="absolute";var n,j;if(H.style.width.toString().lastIndexOf("%")>-1||H.style.width.toString().lastIndexOf("%")>-1){var m=H.getBoundingClientRect();n=Math.abs(m.left)+Math.abs(m.right);j=Math.abs(m.top)+Math.abs(m.bottom)}else{n=g.parseDimension(H.style.width);j=g.parseDimension(H.style.height)}if(k.parentNode){k.parentNode.style.left=H.style.left;k.parentNode.style.top=H.style.top}g.stretch(F.jwGetStretching(),k,n,j,k.videoWidth?k.videoWidth:400,k.videoHeight?k.videoHeight:300)}else{var l=c.plugins.object.display.getDisplayElement();if(l){c.getMedia().resize(g.parseDimension(l.style.width),g.parseDimension(l.style.height))}else{c.getMedia().resize(g.parseDimension(H.style.width),g.parseDimension(H.style.height))}}}function Y(k){var j={position:"absolute",margin:0,padding:0,top:null};var l=c.plugins.config[k].currentPosition.toLowerCase();switch(l.toUpperCase()){case e.html5.view.positions.TOP:j.top=g.parseDimension(H.style.top);j.left=g.parseDimension(H.style.left);j.width=W-g.parseDimension(H.style.left)-g.parseDimension(H.style.right);j.height=c.plugins.object[k].height;H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].height+"px";H.style.height=g.parseDimension(H.style.height)-j.height+"px";break;case e.html5.view.positions.RIGHT:j.top=g.parseDimension(H.style.top);j.right=g.parseDimension(H.style.right);j.width=c.plugins.object[k].width;j.height=J-g.parseDimension(H.style.top)-g.parseDimension(H.style.bottom);H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].width+"px";H.style.width=g.parseDimension(H.style.width)-j.width+"px";break;case e.html5.view.positions.BOTTOM:j.bottom=g.parseDimension(H.style.bottom);j.left=g.parseDimension(H.style.left);j.width=W-g.parseDimension(H.style.left)-g.parseDimension(H.style.right);j.height=c.plugins.object[k].height;H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].height+"px";H.style.height=g.parseDimension(H.style.height)-j.height+"px";break;case e.html5.view.positions.LEFT:j.top=g.parseDimension(H.style.top);j.left=g.parseDimension(H.style.left);j.width=c.plugins.object[k].width;j.height=J-g.parseDimension(H.style.top)-g.parseDimension(H.style.bottom);H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].width+"px";H.style.width=g.parseDimension(H.style.width)-j.width+"px";break;default:break}return j}this.resize=U;this.fullscreen=function(j){if(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")===0){if(c.getMedia().getDisplayElement().webkitSupportsFullscreen){if(j){try{c.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(k){}}else{try{c.getMedia().getDisplayElement().webkitExitFullscreen()}catch(k){}}}}else{if(j){document.onkeydown=V;clearInterval(O);var l=document.body.getBoundingClientRect();c.width=Math.abs(l.left)+Math.abs(l.right);c.height=window.innerHeight;var m={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};h(d,m);m.zIndex=1;if(c.getMedia()&&c.getMedia().getDisplayElement()){h(c.getMedia().getDisplayElement(),m)}m.zIndex=2;h(H,m)}else{document.onkeydown="";c.width=W;c.height=J;h(d,{position:"relative",height:c.height,width:c.width,zIndex:0})}U(c.width,c.height)}}};function f(a){return([e.html5.view.positions.TOP,e.html5.view.positions.RIGHT,e.html5.view.positions.BOTTOM,e.html5.view.positions.LEFT].toString().indexOf(a.toUpperCase())>-1)}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,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(a3,ak){var a4=a3;var aH=_utils.extend({},c,a4.skin.getComponentSettings("controlbar"),ak);if(aH.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[aH.position]=="undefined"){return}if(_utils.mapLength(a4.skin.getComponentLayout("controlbar"))>0){aH.layout=a4.skin.getComponentLayout("controlbar")}var aL;var aq;var aM;var aF;var aT="none";var a7;var a5;var aJ;var a8;var a9;var aQ;var ap={};var aZ=false;var bb={};var b;var a6=false;var a0;var ba;var an=false;var aB=false;var aj=new d.html5.eventdispatcher();_utils.extend(this,aj);function ax(){if(!b){b=a4.skin.getSkinElement("controlbar","background");if(!b){b={width:0,height:0,src:null}}}return b}function at(){aM=0;aF=0;aq=0;if(!aZ){var g={height:ax().height,backgroundColor:aH.backgroundcolor};aL=document.createElement("div");aL.id=a4.id+"_jwplayer_controlbar";_css(aL,g)}var h=(a4.skin.getSkinElement("controlbar","capLeft"));var e=(a4.skin.getSkinElement("controlbar","capRight"));if(h){aR("capLeft","left",false,aL)}var f={position:"absolute",height:ax().height,left:(h?h.width:0),zIndex:0};a("background",aL,f,"img");if(ax().src){ap.background.src=ax().src}f.zIndex=1;a("elements",aL,f);if(e){aR("capRight","right",false,aL)}}this.getDisplayElement=function(){return aL};this.resize=function(f,e){_utils.cancelAnimation(aL);document.getElementById(a4.id).onmousemove=aN;a9=f;aQ=e;if(aB!=a4.jwGetFullscreen()){aB=a4.jwGetFullscreen();ba=undefined}var g=aS();aN();ay({id:a4.id,duration:aJ,position:a5});aU({id:a4.id,bufferPercent:a8});return g};this.show=function(){if(a6){a6=false;_show(aL);am()}};this.hide=function(){if(!a6){a6=true;_hide(aL);aO()}};function aY(){var g=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var f in g){var e=g[f];if(typeof ap[e]!="undefined"){bb[e]=ap[e].getBoundingClientRect()}}}function aN(e){if(a6){return}if(aH.position==d.html5.view.positions.OVER||a4.jwGetFullscreen()){clearTimeout(a0);switch(a4.jwGetState()){case d.api.events.state.PAUSED:case d.api.events.state.IDLE:if(!aH.idlehide||_utils.exists(e)){al()}if(aH.idlehide){a0=setTimeout(function(){aP()},2000)}break;default:if(e){al()}a0=setTimeout(function(){aP()},2000);break}}}function aP(e){aO();_utils.cancelAnimation(aL);_utils.fadeTo(aL,0,0.1,1,0)}function al(){am();_utils.cancelAnimation(aL);_utils.fadeTo(aL,1,0,1,0)}function az(e){return function(){if(an&&ba!=e){ba=e;aj.sendEvent(e,{component:"controlbar",boundingRect:ar()})}}}var am=az(d.api.events.JWPLAYER_COMPONENT_SHOW);var aO=az(d.api.events.JWPLAYER_COMPONENT_HIDE);function ar(){if(aH.position==d.html5.view.positions.OVER||a4.jwGetFullscreen()){return _utils.getDimensions(aL)}else{return{x:0,y:0,width:0,height:0}}}function a(f,g,h,e){var j;if(!aZ){if(!e){e="div"}j=document.createElement(e);ap[f]=j;j.id=aL.id+"_"+f;g.appendChild(j)}else{j=document.getElementById(aL.id+"_"+f)}if(_utils.exists(h)){_css(j,h)}return j}function au(){aA(aH.layout.left);aA(aH.layout.right,-1);aA(aH.layout.center)}function aA(g,e){var f=g.position=="right"?"right":"left";var h=_utils.extend([],g.elements);if(_utils.exists(e)){h.reverse()}for(var j=0;j<h.length;j++){aI(h[j],f)}}function aw(){return aq++}function aI(j,g){var k,m,l,n,e;if(j.type=="divider"){aR("divider"+aw(),g,true,undefined,undefined,j.width,j.element);return}switch(j.name){case"play":aR("playButton",g,false);aR("pauseButton",g,true);ao("playButton","jwPlay");ao("pauseButton","jwPause");break;case"prev":aR("prevButton",g,true);ao("prevButton","jwPlaylistPrev");break;case"stop":aR("stopButton",g,true);ao("stopButton","jwStop");break;case"next":aR("nextButton",g,true);ao("nextButton","jwPlaylistNext");break;case"elapsed":aR("elapsedText",g,true);break;case"time":m=!_utils.exists(a4.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:a4.skin.getSkinElement("controlbar","timeSliderCapLeft").width;l=!_utils.exists(a4.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:a4.skin.getSkinElement("controlbar","timeSliderCapRight").width;k=g=="left"?m:l;n=a4.skin.getSkinElement("controlbar","timeSliderRail").width+m+l;e={height:ax().height,position:"absolute",top:0,width:n};e[g]=g=="left"?aM:aF;var h=a("timeSlider",ap.elements,e);aR("timeSliderCapLeft",g,true,h,g=="left"?0:k);aR("timeSliderRail",g,false,h,k);aR("timeSliderBuffer",g,false,h,k);aR("timeSliderProgress",g,false,h,k);aR("timeSliderThumb",g,false,h,k);aR("timeSliderCapRight",g,true,h,g=="right"?0:k);ai("time");break;case"fullscreen":aR("fullscreenButton",g,false);aR("normalscreenButton",g,true);ao("fullscreenButton","jwSetFullscreen",true);ao("normalscreenButton","jwSetFullscreen",false);break;case"volume":m=!_utils.exists(a4.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:a4.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;l=!_utils.exists(a4.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:a4.skin.getSkinElement("controlbar","volumeSliderCapRight").width;k=g=="left"?m:l;n=a4.skin.getSkinElement("controlbar","volumeSliderRail").width+m+l;e={height:ax().height,position:"absolute",top:0,width:n};e[g]=g=="left"?aM:aF;var f=a("volumeSlider",ap.elements,e);aR("volumeSliderCapLeft",g,true,f,g=="left"?0:k);aR("volumeSliderRail",g,true,f,k);aR("volumeSliderProgress",g,false,f,k);aR("volumeSliderCapRight",g,true,f,g=="right"?0:k);ai("volume");break;case"mute":aR("muteButton",g,false);aR("unmuteButton",g,true);ao("muteButton","jwSetMute",true);ao("unmuteButton","jwSetMute",false);break;case"duration":aR("durationText",g,true);break}}function aR(m,j,o,f,l,q,n){if(_utils.exists(a4.skin.getSkinElement("controlbar",m))||m.indexOf("Text")>0||m.indexOf("divider")===0){var k={height:ax().height,position:"absolute",display:"block",top:0};if((m.indexOf("next")===0||m.indexOf("prev")===0)&&a4.jwGetPlaylist().length<2){o=false;k.display="none"}var e;if(m.indexOf("Text")>0){m.innerhtml="00:00";k.font=aH.fontsize+"px/"+(ax().height+1)+"px "+aH.font;k.color=aH.fontcolor;k.textAlign="center";k.fontWeight=aH.fontweight;k.fontStyle=aH.fontstyle;k.cursor="default";e=14+3*aH.fontsize}else{if(m.indexOf("divider")===0){if(q){if(!isNaN(parseInt(q))){e=parseInt(q)}}else{if(n){var h=a4.skin.getSkinElement("controlbar",n);if(h){k.background="url("+h.src+") repeat-x center left";e=h.width}}else{k.background="url("+a4.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";e=a4.skin.getSkinElement("controlbar","divider").width}}}else{k.background="url("+a4.skin.getSkinElement("controlbar",m).src+") repeat-x center left";e=a4.skin.getSkinElement("controlbar",m).width}}if(j=="left"){k.left=isNaN(l)?aM:l;if(o){aM+=e}}else{if(j=="right"){k.right=isNaN(l)?aF:l;if(o){aF+=e}}}if(_utils.typeOf(f)=="undefined"){f=ap.elements}k.width=e;if(aZ){_css(ap[m],k)}else{var g=a(m,f,k);if(_utils.exists(a4.skin.getSkinElement("controlbar",m+"Over"))){g.onmouseover=function(r){g.style.backgroundImage=["url(",a4.skin.getSkinElement("controlbar",m+"Over").src,")"].join("")};g.onmouseout=function(r){g.style.backgroundImage=["url(",a4.skin.getSkinElement("controlbar",m).src,")"].join("")}}}}}function aD(){a4.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,aK);a4.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_ITEM,aW);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,aU);a4.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,aX);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,ay);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,aC);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,a2);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,av)}function aK(){at();au();aS();aG()}function aW(e){aJ=a4.jwGetPlaylist()[e.index].duration;ay({id:a4.id,duration:aJ,position:0});aU({id:a4.id,bufferProgress:0})}function aG(){ay({id:a4.id,duration:a4.jwGetDuration(),position:0});aU({id:a4.id,bufferProgress:0});aC({id:a4.id,mute:a4.jwGetMute()});aX({id:a4.id,newstate:d.api.events.state.IDLE});a2({id:a4.id,volume:a4.jwGetVolume()})}function ao(g,f,h){if(aZ){return}if(_utils.exists(a4.skin.getSkinElement("controlbar",g))){var e=ap[g];if(_utils.exists(e)){_css(e,{cursor:"pointer"});if(f=="fullscreen"){e.onmouseup=function(j){j.stopPropagation();a4.jwSetFullscreen(!a4.jwGetFullscreen())}}else{e.onmouseup=function(j){j.stopPropagation();if(_utils.exists(h)){a4[f](h)}else{a4[f]()}}}}}}function ai(e){if(aZ){return}var f=ap[e+"Slider"];_css(ap.elements,{cursor:"pointer"});_css(f,{cursor:"pointer"});f.onmousedown=function(g){aT=e};f.onmouseup=function(g){g.stopPropagation();aE(g.pageX)};f.onmousemove=function(h){if(aT=="time"){a7=true;var g=h.pageX-bb[e+"Slider"].left-window.pageXOffset;_css(ap.timeSliderThumb,{left:g})}}}function aE(h){a7=false;var e;if(aT=="time"){e=h-bb.timeSliderRail.left+window.pageXOffset;var f=e/bb.timeSliderRail.width*aJ;if(f<0){f=0}else{if(f>aJ){f=aJ-3}}if(a4.jwGetState()==d.api.events.state.PAUSED||a4.jwGetState()==d.api.events.state.IDLE){a4.jwPlay()}a4.jwSeek(f)}else{if(aT=="volume"){e=h-bb.volumeSliderRail.left-window.pageXOffset;var g=Math.round(e/bb.volumeSliderRail.width*100);if(g<0){g=0}else{if(g>100){g=100}}if(a4.jwGetMute()){a4.jwSetMute(false)}a4.jwSetVolume(g)}}aT="none"}function aU(g){if(_utils.exists(g.bufferPercent)){a8=g.bufferPercent}if(bb.timeSliderRail){var f=bb.timeSliderRail.width;var e=isNaN(Math.round(f*a8/100))?0:Math.round(f*a8/100);_css(ap.timeSliderBuffer,{width:e})}}function aC(e){if(e.mute){_hide(ap.muteButton);_show(ap.unmuteButton);_hide(ap.volumeSliderProgress)}else{_show(ap.muteButton);_hide(ap.unmuteButton);_show(ap.volumeSliderProgress)}}function aX(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(ap.pauseButton);_hide(ap.playButton)}else{_hide(ap.pauseButton);_show(ap.playButton)}aN();if(e.newstate==d.api.events.state.IDLE){_hide(ap.timeSliderBuffer);_hide(ap.timeSliderProgress);_hide(ap.timeSliderThumb);ay({id:a4.id,duration:a4.jwGetDuration(),position:0})}else{_show(ap.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(ap.timeSliderProgress);_show(ap.timeSliderThumb)}}}function av(e){aU({bufferPercent:0});ay(_utils.extend(e,{position:0,duration:aJ}))}function ay(g){if(_utils.exists(g.position)){a5=g.position}if(_utils.exists(g.duration)){aJ=g.duration}var j=(a5===aJ===0)?0:a5/aJ;var f=bb.timeSliderRail;if(f){var e=isNaN(Math.round(f.width*j))?0:Math.round(f.width*j);var h=e;if(ap.timeSliderProgress){ap.timeSliderProgress.style.width=e+"px";if(!a7){if(ap.timeSliderThumb){ap.timeSliderThumb.style.left=h+"px"}}}}if(ap.durationText){ap.durationText.innerHTML=_utils.timeFormat(aJ)}if(ap.elapsedText){ap.elapsedText.innerHTML=_utils.timeFormat(a5)}}function a1(){var f,j;var h=document.getElementById(aL.id+"_elements");if(!h){return}var g=h.childNodes;for(var e in h.childNodes){if(isNaN(parseInt(e,10))){continue}if(g[e].id.indexOf(aL.id+"_divider")===0&&j&&j.id.indexOf(aL.id+"_divider")===0&&g[e].style.backgroundImage==j.style.backgroundImage){g[e].style.display="none"}else{if(g[e].id.indexOf(aL.id+"_divider")===0&&f&&f.style.display!="none"){g[e].style.display="block"}}if(g[e].style.display!="none"){j=g[e]}f=g[e]}}function aS(){a1();if(a4.jwGetFullscreen()){_show(ap.normalscreenButton);_hide(ap.fullscreenButton)}else{_hide(ap.normalscreenButton);_show(ap.fullscreenButton)}var j={width:a9};var e={};if(aH.position==d.html5.view.positions.OVER||a4.jwGetFullscreen()){j.left=aH.margin;j.width-=2*aH.margin;j.top=aQ-ax().height-aH.margin;j.height=ax().height}var g=a4.skin.getSkinElement("controlbar","capLeft");var h=a4.skin.getSkinElement("controlbar","capRight");e.left=g?g.width:0;e.width=j.width-e.left-(h?h.width:0);var f=!_utils.exists(a4.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:a4.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(ap.timeSliderRail,{width:(e.width-aM-aF),left:f});if(_utils.exists(ap.timeSliderCapRight)){_css(ap.timeSliderCapRight,{left:f+(e.width-aM-aF)})}_css(aL,j);_css(ap.elements,e);_css(ap.background,e);aY();return j}function a2(g){if(_utils.exists(ap.volumeSliderRail)){var j=isNaN(g.volume/100)?1:g.volume/100;var h=_utils.parseDimension(ap.volumeSliderRail.style.width);var e=isNaN(Math.round(h*j))?0:Math.round(h*j);var f=_utils.parseDimension(ap.volumeSliderRail.style.right);var k=(!_utils.exists(a4.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:a4.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(ap.volumeSliderProgress,{width:e,left:k});if(_utils.exists(ap.volumeSliderCapLeft)){_css(ap.volumeSliderCapLeft,{left:0})}}}function aV(){at();au();aY();aZ=true;aD();aH.idlehide=(aH.idlehide.toString().toLowerCase()=="true");if(aH.position==d.html5.view.positions.OVER&&aH.idlehide){aL.style.opacity=0;an=true}else{setTimeout((function(){an=true;am()}),1)}aG()}aV();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(c,R,am,T){var aa=c;var S=am;var an=T;var ag=R;var N=true;var ap=-1;var af=f.exists(S.config.debug)&&(S.config.debug.toString().toLowerCase()=="console");var ai=new d.html5.eventdispatcher(ag.id,af);f.extend(this,ai);var X=[];var aq=false;function ab(g){if(aq){ai.sendEvent(g.type,g)}else{X.push(g)}}function b(j){if(!aq){ai.sendEvent(d.api.events.JWPLAYER_READY,j);if(d.utils.exists(window.playerReady)){playerReady(j)}if(d.utils.exists(window[am.config.playerReady])){window[am.config.playerReady](j)}while(X.length>0){var g=X.shift();ai.sendEvent(g.type,g)}if(am.config.autostart&&!d.utils.isIOS()){W(S.item)}while(ae.length>0){var h=ae.shift();O(h.method,h.arguments)}aq=true}}S.addGlobalListener(ab);S.addEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){S.getMedia().play()});S.addEventListener(d.api.events.JWPLAYER_MEDIA_TIME,function(g){if(g.position>=S.playlist[S.item].start&&ap>=0){S.playlist[S.item].start=ap;ap=-1}});S.addEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,function(g){setTimeout(Y,25)});function V(){try{ao(S.item);if(S.playlist[S.item].levels[0].file.length>0){if(N||S.state==d.api.events.state.IDLE){S.getMedia().load(S.playlist[S.item]);N=false}else{if(S.state==d.api.events.state.PAUSED){S.getMedia().play()}}}return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function P(){try{if(S.playlist[S.item].levels[0].file.length>0){switch(S.state){case d.api.events.state.PLAYING:case d.api.events.state.BUFFERING:S.getMedia().pause();break}}return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function Z(h){try{if(S.playlist[S.item].levels[0].file.length>0){if(typeof h!="number"){h=parseFloat(h)}switch(S.state){case d.api.events.state.IDLE:if(ap<0){ap=S.playlist[S.item].start;S.playlist[S.item].start=h}V();break;case d.api.events.state.PLAYING:case d.api.events.state.PAUSED:case d.api.events.state.BUFFERING:S.seek(h);break}}return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ah(h){if(!f.exists(h)){h=true}try{S.getMedia().stop(h);return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ak(){try{if(S.playlist[S.item].levels[0].file.length>0){if(S.config.shuffle){ao(M())}else{if(S.item+1==S.playlist.length){ao(0)}else{ao(S.item+1)}}}if(S.state!=d.api.events.state.IDLE){var g=S.state;S.state=d.api.events.state.IDLE;ai.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}V();return true}catch(h){ai.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function al(){try{if(S.playlist[S.item].levels[0].file.length>0){if(S.config.shuffle){ao(M())}else{if(S.item===0){ao(S.playlist.length-1)}else{ao(S.item-1)}}}if(S.state!=d.api.events.state.IDLE){var g=S.state;S.state=d.api.events.state.IDLE;ai.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}V();return true}catch(h){ai.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function M(){var g=null;if(S.playlist.length>1){while(!f.exists(g)){g=Math.floor(Math.random()*S.playlist.length);if(g==S.item){g=null}}}else{g=0}return g}function W(h){if(!S.playlist||!S.playlist[h]){return false}try{if(S.playlist[h].levels[0].file.length>0){var g=S.state;if(g!==d.api.events.state.IDLE){if(S.playlist[S.item].provider==S.playlist[h].provider){ah(false)}else{ah()}}ao(h);V()}return true}catch(j){ai.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function ao(g){if(!S.playlist[g]){return}S.setActiveMediaProvider(S.playlist[g]);if(S.item!=g){S.item=g;N=true;ai.sendEvent(d.api.events.JWPLAYER_PLAYLIST_ITEM,{index:g})}}function Q(h){try{ao(S.item);var g=S.getMedia();switch(typeof(h)){case"number":g.volume(h);break;case"string":g.volume(parseInt(h,10));break}return true}catch(j){ai.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function ad(h){try{ao(S.item);var g=S.getMedia();if(typeof h=="undefined"){g.mute(!S.mute)}else{if(h.toString().toLowerCase()=="true"){g.mute(true)}else{g.mute(false)}}return true}catch(j){ai.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function aj(h,j){try{S.width=h;S.height=j;an.resize(h,j);ai.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:S.width,height:S.height});return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ac(g){try{if(typeof g=="undefined"){S.fullscreen=!S.fullscreen;an.fullscreen(!S.fullscreen)}else{if(g.toString().toLowerCase()=="true"){S.fullscreen=true;an.fullscreen(true)}else{S.fullscreen=false;an.fullscreen(false)}}ai.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:S.width,height:S.height});ai.sendEvent(d.api.events.JWPLAYER_FULLSCREEN,{fullscreen:g});return true}catch(h){ai.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function a(h){try{ah();S.loadPlaylist(h);ao(S.item);return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}d.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function Y(){switch(S.config.repeat.toUpperCase()){case d.html5.controller.repeatoptions.SINGLE:V();break;case d.html5.controller.repeatoptions.ALWAYS:if(S.item==S.playlist.length-1&&!S.config.shuffle){W(0)}else{ak()}break;case d.html5.controller.repeatoptions.LIST:if(S.item==S.playlist.length-1&&!S.config.shuffle){ah();ao(0)}else{ak()}break;default:ah();break}}var ae=[];function U(g){return function(){if(aq){O(g,arguments)}else{ae.push({method:g,arguments:arguments})}}}function O(g,h){var j=[];for(i=0;i<h.length;i++){j.push(h[i])}g.apply(this,j)}this.play=U(V);this.pause=U(P);this.seek=U(Z);this.stop=U(ah);this.next=U(ak);this.prev=U(al);this.item=U(W);this.setVolume=U(Q);this.setMute=U(ad);this.resize=U(aj);this.setFullscreen=U(ac);this.load=U(a);this.playerReady=b}})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></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(ax,aa){var ay={icons:true,showmute:false};var a=_utils.extend({},ay,aa);var az=ax;var R={};var aC;var am;var ak;var T;var ao;var Y;var ag;var X=!_utils.exists(az.skin.getComponentSettings("display").bufferrotation)?15:parseInt(az.skin.getComponentSettings("display").bufferrotation,10);var aq=!_utils.exists(az.skin.getComponentSettings("display").bufferinterval)?100:parseInt(az.skin.getComponentSettings("display").bufferinterval,10);var ah=-1;var an="";var W=true;var aD;var aA=false;var au=false;var Z=new b.html5.eventdispatcher();_utils.extend(this,Z);var ad={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:av},display_icon:{style:{cursor:"pointer",position:"absolute",top:((az.skin.getSkinElement("display","background").height-az.skin.getSkinElement("display","playIcon").height)/2),left:((az.skin.getSkinElement("display","background").width-az.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((am-az.skin.getSkinElement("display","background").height)/2),left:((aC-az.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",az.skin.getSkinElement("display","background").src,")"]).join(""),width:az.skin.getSkinElement("display","background").width,height:az.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:aC,height:am,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}}};az.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,ar);az.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,ar);az.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,ar);az.jwAddEventListener(b.api.events.JWPLAYER_ERROR,at);V();function V(){R.display=ae("div","display");R.display_text=ae("div","display_text");R.display.appendChild(R.display_text);R.display_image=ae("img","display_image");R.display_image.onerror=function(c){_hide(R.display_image)};R.display_image.onload=ai;R.display_icon=ae("div","display_icon");R.display_iconBackground=ae("div","display_iconBackground");R.display.appendChild(R.display_image);R.display_iconBackground.appendChild(R.display_icon);R.display.appendChild(R.display_iconBackground);aB();setTimeout((function(){au=true;if(a.icons.toString()=="true"){ab()}}),1)}this.getDisplayElement=function(){return R.display};this.resize=function(c,d){_css(R.display,{width:c,height:d});_css(R.display_text,{width:(c-10),top:((d-R.display_text.getBoundingClientRect().height)/2)});_css(R.display_iconBackground,{top:((d-az.skin.getSkinElement("display","background").height)/2),left:((c-az.skin.getSkinElement("display","background").width)/2)});if(aC!=c||am!=d){aC=c;am=d;aD=undefined;ab()}aE();ar({})};this.show=function(){if(aA){aA=false;ap(az.jwGetState())}};this.hide=function(){if(!aA){af();aA=true}};function ai(c){ak=R.display_image.naturalWidth;T=R.display_image.naturalHeight;aE()}function aE(){_utils.stretch(az.jwGetStretching(),R.display_image,aC,am,ak,T)}function ae(e,c){var d=document.createElement(e);d.id=az.id+"_jwplayer_"+c;_css(d,ad[c].style);return d}function aB(){for(var c in R){if(_utils.exists(ad[c].click)){R[c].onclick=ad[c].click}}}function av(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(az.jwGetState()!=b.api.events.state.PLAYING){az.jwPlay()}else{az.jwPause()}}function S(c){if(ag){af();return}R.display_icon.style.backgroundImage=(["url(",az.skin.getSkinElement("display",c).src,")"]).join("");_css(R.display_icon,{width:az.skin.getSkinElement("display",c).width,height:az.skin.getSkinElement("display",c).height,top:(az.skin.getSkinElement("display","background").height-az.skin.getSkinElement("display",c).height)/2,left:(az.skin.getSkinElement("display","background").width-az.skin.getSkinElement("display",c).width)/2});aF();if(_utils.exists(az.skin.getSkinElement("display",c+"Over"))){R.display_icon.onmouseover=function(d){R.display_icon.style.backgroundImage=["url(",az.skin.getSkinElement("display",c+"Over").src,")"].join("")};R.display_icon.onmouseout=function(d){R.display_icon.style.backgroundImage=["url(",az.skin.getSkinElement("display",c).src,")"].join("")}}else{R.display_icon.onmouseover=null;R.display_icon.onmouseout=null}}function af(){if(a.icons.toString()=="true"){_hide(R.display_icon);_hide(R.display_iconBackground);U()}}function aF(){if(!aA&&a.icons.toString()=="true"){_show(R.display_icon);_show(R.display_iconBackground);ab()}}function at(c){ag=true;af();R.display_text.innerHTML=c.error;_show(R.display_text);R.display_text.style.top=((am-R.display_text.getBoundingClientRect().height)/2)+"px"}function ac(){R.display_image.style.display="none"}function ar(d){if((d.type==b.api.events.JWPLAYER_PLAYER_STATE||d.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&ag){ag=false;_hide(R.display_text)}var c=az.jwGetState();if(c==an){return}an=c;if(ah>=0){clearTimeout(ah)}if(W||az.jwGetState()==b.api.events.state.PLAYING||az.jwGetState()==b.api.events.state.PAUSED){ap(az.jwGetState())}else{ah=setTimeout(aw(az.jwGetState()),500)}}function aw(c){return(function(){ap(c)})}function ap(c){if(_utils.exists(Y)){clearInterval(Y);Y=null;_utils.animations.rotate(R.display_icon,0)}switch(c){case b.api.events.state.BUFFERING:if(_utils.isIOS()){ac();af()}else{if(az.jwGetPlaylist()[az.jwGetItem()].provider=="sound"){al()}ao=0;Y=setInterval(function(){ao+=X;_utils.animations.rotate(R.display_icon,ao%360)},aq);S("bufferIcon");W=true}break;case b.api.events.state.PAUSED:if(!_utils.isIOS()){if(az.jwGetPlaylist()[az.jwGetItem()].provider!="sound"){_css(R.display_image,{background:"transparent no-repeat center center"})}S("playIcon");W=true}break;case b.api.events.state.IDLE:if(az.jwGetPlaylist()[az.jwGetItem()]&&az.jwGetPlaylist()[az.jwGetItem()].image){al()}else{ac()}S("playIcon");W=true;break;default:if(az.jwGetPlaylist()[az.jwGetItem()]&&az.jwGetPlaylist()[az.jwGetItem()].provider=="sound"){if(_utils.isIOS()){ac();W=false}else{al()}}else{ac();W=false}if(az.jwGetMute()&&a.showmute){S("muteIcon")}else{af()}break}ah=-1}function al(){if(az.jwGetPlaylist()[az.jwGetItem()]&&az.jwGetPlaylist()[az.jwGetItem()].image){_css(R.display_image,{display:"block"});R.display_image.src=_utils.getAbsolutePath(az.jwGetPlaylist()[az.jwGetItem()].image)}}function aj(c){return function(){if(!au){return}if(!aA&&aD!=c){aD=c;Z.sendEvent(c,{component:"display",boundingRect:_utils.getDimensions(R.display_iconBackground)})}}}var ab=aj(b.api.events.JWPLAYER_COMPONENT_SHOW);var U=aj(b.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(b){_css=b.utils.css;b.html5.dock=function(D,y){function C(){return{align:b.html5.view.positions.RIGHT}}var I=b.utils.extend({},C(),y);if(I.align=="FALSE"){return}var M={};var A=[];var L;var x;var O=false;var z=false;var N={x:0,y:0,width:0,height:0};var B;var J=new b.html5.eventdispatcher();_utils.extend(this,J);var G=document.createElement("div");G.id=D.id+"_jwplayer_dock";D.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,H);this.getDisplayElement=function(){return G};this.setButton=function(d,c,f,e){if(!c&&M[d]){b.utils.arrays.remove(A,d);G.removeChild(M[d].div);delete M[d]}else{if(c){if(!M[d]){M[d]={}}M[d].handler=c;M[d].outGraphic=f;M[d].overGraphic=e;if(!M[d].div){A.push(d);M[d].div=document.createElement("div");M[d].div.style.position="relative";G.appendChild(M[d].div);M[d].div.appendChild(document.createElement("img"));M[d].div.childNodes[0].style.position="absolute";M[d].div.childNodes[0].style.left=0;M[d].div.childNodes[0].style.top=0;M[d].div.childNodes[0].style.zIndex=10;M[d].div.childNodes[0].style.cursor="pointer";M[d].div.appendChild(document.createElement("img"));M[d].div.childNodes[1].style.position="absolute";M[d].div.childNodes[1].style.left=0;M[d].div.childNodes[1].style.top=0;if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}M[d].div.childNodes[1].style.zIndex=9;M[d].div.childNodes[1].style.cursor="pointer";M[d].div.onmouseover=function(){if(M[d].overGraphic){M[d].div.childNodes[0].src=M[d].overGraphic}if(D.skin.getSkinElement("dock","buttonOver")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","buttonOver").src}};M[d].div.onmouseout=function(){if(M[d].outGraphic){M[d].div.childNodes[0].src=M[d].outGraphic}if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}};if(M[d].overGraphic){M[d].div.childNodes[0].src=M[d].overGraphic}if(M[d].outGraphic){M[d].div.childNodes[0].src=M[d].outGraphic}if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}}if(c){M[d].div.onclick=function(g){g.preventDefault();b(D.id).callback(d);if(M[d].overGraphic){M[d].div.childNodes[0].src=M[d].overGraphic}if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}}}}}K(L,x)};function K(l,k){if(A.length>0){var j=10;var m=j;var q=-1;var o=D.skin.getSkinElement("dock","button").height;var r=D.skin.getSkinElement("dock","button").width;var d=l-r-j;var n,e;if(I.align==b.html5.view.positions.LEFT){q=1;d=j}for(var g=0;g<A.length;g++){var h=Math.floor(m/k);if((m+o+j)>((h+1)*k)){m=((h+1)*k)+j;h=Math.floor(m/k)}var f=M[A[g]].div;f.style.top=(m%k)+"px";f.style.left=(d+(D.skin.getSkinElement("dock","button").width+j)*h*q)+"px";var c={x:b.utils.parseDimension(f.style.left),y:b.utils.parseDimension(f.style.top),width:r,height:o};if(!n||(c.x<=n.x&&c.y<=n.y)){n=c}if(!e||(c.x>=e.x&&c.y>=e.y)){e=c}m+=D.skin.getSkinElement("dock","button").height+j}N={x:n.x,y:n.y,width:e.x-n.x+e.width,height:n.y-e.y+e.height}}if(z!=D.jwGetFullscreen()||L!=l||x!=k){L=l;x=k;z=D.jwGetFullscreen();B=undefined;setTimeout(F,1)}}function Q(c){return function(){if(!O&&B!=c&&A.length>0){B=c;J.sendEvent(c,{component:"dock",boundingRect:N})}}}function H(c){if(b.utils.isIOS()){switch(c.newstate){case b.api.events.state.IDLE:E();break;default:P();break}}}var F=Q(b.api.events.JWPLAYER_COMPONENT_SHOW);var a=Q(b.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=K;var E=function(){_css(G,{display:"block"});if(O){O=false;F()}};var P=function(){_css(G,{display:"none"});if(!O){a();O=true}};this.hide=P;this.show=E;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:"http://l.longtailvideo.com/html5/",file:"logo.png",link:"http://www.longtailvideo.com/players/jw-flv-player/",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();K();C()}function z(){if(c.prefix){var e=A.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(e)<0){c.prefix+=e+"/"}}if(w.position==d.html5.view.positions.OVER){w.position=c.position}J=d.utils.extend({},c)}function K(){b=document.createElement("img");b.id=x.id+"_jwplayer_logo";b.style.display="none";b.onload=function(e){_css(b,D());x.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,E);y()};if(!J.file){return}if(J.file.indexOf("http://")===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(J.hide.toString()=="true"&&F){b.style.opacity=J.over}return}function D(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=(J.hide.toString()=="true")?"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(g){var k={ended:g.api.events.state.IDLE,playing:g.api.events.state.PLAYING,pause:g.api.events.state.PAUSED,buffering:g.api.events.state.BUFFERING};var h=g.utils;var f=h.css;var j=h.isIOS();g.html5.mediavideo=function(ac,P){var R={abort:X,canplay:aa,canplaythrough:aa,durationchange:I,emptied:X,ended:aa,error:L,loadeddata:I,loadedmetadata:I,loadstart:aa,pause:aa,play:X,playing:aa,progress:J,ratechange:X,seeked:aa,seeking:aa,stalled:aa,suspend:aa,timeupdate:O,volumechange:X,waiting:aa,canshowcurrentframe:X,dataunavailable:X,empty:X,load:a,loadedfirstframe:X};var ab=new g.html5.eventdispatcher();h.extend(this,ab);var b=ac,Z=P,Y,S,U,c,ae,e=false,Q,V,T;W();this.load=function(n,m){if(typeof m=="undefined"){m=true}c=n;h.empty(Y);T=0;if(n.levels&&n.levels.length>0){if(n.levels.length==1){Y.src=n.levels[0].file}else{if(Y.src){Y.removeAttribute("src")}for(var o=0;o<n.levels.length;o++){var l=Y.ownerDocument.createElement("source");l.src=n.levels[o].file;Y.appendChild(l);T++}}}else{Y.src=n.file}if(j){if(n.image){Y.poster=n.image}Y.controls="controls";Y.style.display="block"}Q=V=U=false;b.buffer=0;if(!h.exists(n.start)){n.start=0}b.duration=n.duration;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_LOADED);if((!j&&n.levels.length==1)||!e){Y.load()}e=false;if(m){N(g.api.events.state.BUFFERING);ab.sendEvent(g.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(S!=g.api.events.state.PLAYING){M();if(V){N(g.api.events.state.PLAYING)}else{N(g.api.events.state.BUFFERING)}Y.play()}};this.pause=function(){Y.pause();N(g.api.events.state.PAUSED)};this.seek=function(l){if(!(b.duration<=0||isNaN(b.duration))&&!(b.position<=0||isNaN(b.position))){Y.currentTime=l;Y.play()}};_stop=this.stop=function(n){if(!h.exists(n)){n=true}ad();if(n){Y.style.display="none";V=false;var m=navigator.userAgent;if(m.match(/chrome/i)){Y.src=undefined}else{if(m.match(/safari/i)){Y.removeAttribute("src")}else{Y.src=""}}Y.removeAttribute("controls");Y.removeAttribute("poster");h.empty(Y);Y.load();e=true;if(Y.webkitSupportsFullscreen){try{Y.webkitExitFullscreen()}catch(l){}}}N(g.api.events.state.IDLE)};this.fullscreen=function(l){if(l===true){this.resize("100%","100%")}else{this.resize(b.config.width,b.config.height)}};this.resize=function(l,m){if(false){f(Z,{width:l,height:m})}ab.sendEvent(g.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:b.fullscreen,width:l,hieght:m})};this.volume=function(l){if(!j){Y.volume=l/100;b.volume=l;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(l)})}};this.mute=function(l){if(!j){Y.muted=l;b.mute=l;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_MUTE,{mute:l})}};this.getDisplayElement=function(){return Y};this.hasChrome=function(){return false};function W(){Y=document.createElement("video");S=g.api.events.state.IDLE;for(var l in R){Y.addEventListener(l,function(m){if(h.exists(m.target.parentNode)){R[m.type](m)}},true)}Y.setAttribute("x-webkit-airplay","allow");if(Z.parentNode){Z.parentNode.replaceChild(Y,Z)}if(!Y.id){Y.id=Z.id}}function N(m){if(m==g.api.events.state.PAUSED&&S==g.api.events.state.IDLE){return}if(S!=m){var l=S;b.state=S=m;ab.sendEvent(g.api.events.JWPLAYER_PLAYER_STATE,{oldstate:l,newstate:m})}}function X(l){}function J(l){var m;if(h.exists(l)&&l.lengthComputable&&l.total){m=l.loaded/l.total*100}else{if(h.exists(Y.buffered)&&(Y.buffered.length>0)){var n=Y.buffered.length-1;if(n>=0){m=Y.buffered.end(n)/Y.duration*100}}}if(V===false&&S==g.api.events.state.BUFFERING){ab.sendEvent(g.api.events.JWPLAYER_MEDIA_BUFFER_FULL);V=true}if(!Q){if(m==100){Q=true}if(h.exists(m)&&(m>b.buffer)){b.buffer=Math.round(m);ab.sendEvent(g.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(m)})}}}function O(l){if(h.exists(l)&&h.exists(l.target)){if(!isNaN(l.target.duration)&&(isNaN(b.duration)||b.duration<1)){if(l.target.duration==Infinity){b.duration=0}else{b.duration=Math.round(l.target.duration*10)/10}}if(!U&&Y.readyState>0){Y.style.display="block";N(g.api.events.state.PLAYING)}if(S==g.api.events.state.PLAYING){if(!U&&Y.readyState>0){U=true;try{if(Y.currentTime<c.start){Y.currentTime=c.start}}catch(m){}Y.volume=b.volume/100;Y.muted=b.mute}b.position=b.duration>0?(Math.round(l.target.currentTime*10)/10):0;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_TIME,{position:b.position,duration:b.duration});if(b.position>=b.duration&&(b.position>0||b.duration>0)){d()}}}J(l)}function a(l){}function aa(l){if(k[l.type]){if(l.type=="ended"){d()}else{N(k[l.type])}}}function I(m){var l={height:m.target.videoHeight,width:m.target.videoWidth,duration:Math.round(m.target.duration*10)/10};if((b.duration===0||isNaN(b.duration))&&m.target.duration!=Infinity){b.duration=Math.round(m.target.duration*10)/10}ab.sendEvent(g.api.events.JWPLAYER_MEDIA_META,{metadata:l})}function L(l){if(S==g.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"){T--;if(T>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+=K();_error=true;ab.sendEvent(g.api.events.JWPLAYER_ERROR,{error:m});return}function K(){var m="";for(var n in c.levels){var o=c.levels[n];var l=Z.ownerDocument.createElement("source");m+=g.utils.getAbsolutePath(o.file);if(n<(c.levels.length-1)){m+=", "}}return m}function M(){if(!h.exists(ae)){ae=setInterval(function(){J()},100)}}function ad(){clearInterval(ae);ae=null}function d(){if(S!=g.api.events.state.IDLE){_stop(false);ab.sendEvent(g.api.events.JWPLAYER_MEDIA_COMPLETE)}}}})(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(s,w){var v=new e.html5.eventdispatcher();e.utils.extend(this,v);var q=s;var t=document.getElementById(w.id);var u=e.api.events.state.IDLE;var b,c;function r(h){if(u!=h){var g=u;q.state=h;u=h;v.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:h})}}this.getDisplayElement=function(){return t};this.play=function(){if(u==e.api.events.state.IDLE){v.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});v.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);r(e.api.events.state.PLAYING)}else{if(u==e.api.events.state.PAUSED){r(e.api.events.state.PLAYING)}}};this.pause=function(){r(e.api.events.state.PAUSED)};this.seek=function(g){};this.stop=function(g){if(!_utils.exists(g)){g=true}q.position=0;r(e.api.events.state.IDLE);if(g){d(t,{display:"none"})}};this.volume=function(g){q.volume=g;v.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)})};this.mute=function(g){t.muted=g;q.mute=g;v.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}v.sendEvent(e.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:q.fullscreen,width:g,height:h})};this.fullscreen=function(g){if(g===true){this.resize("100%","100%")}else{this.resize(q.config.width,q.config.height)}};this.load=function(g){a(g);d(b,{display:"block"});r(e.api.events.state.BUFFERING);v.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});v.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(u!=e.api.events.state.IDLE)};function a(g){var k=g.levels[0].file;k=["http://www.youtube.com/v/",x(k),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");b=document.createElement("object");b.id=t.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(t!=b&&t.parentNode){t.parentNode.replaceChild(b,t)}t=b}function x(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.isIOS()){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]}}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{_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}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}}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}_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:_loadExternal(input);return;break}_model.playlist=new jwplayer.html5.playlist(config);if(jwplayer.utils.extension(_model.playlist[0].file)=="xml"){_loadExternal(_model.playlist[0].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";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(q){var h=Y[q];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(q);j.onmouseout=O(q);var o=document.createElement("div");var t=new Image();var n=0;var m=0;var l=0;if(E()&&(h.image||h["playlist.image"]||U.itemImage)){t.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(t,{position:"relative"});o.appendChild(t);t.onload=function(){e.utils.stretch(e.utils.stretching.FILL,t,m,l,this.naturalWidth,this.naturalHeight)};if(h["playlist.image"]){t.src=h["playlist.image"]}else{if(h.image){t.src=h.image}else{if(U.itemImage){t.src=U.itemImage.src}}}j.appendChild(o)}var u=R-m-n*2;if(I<X.itemheight*Y.length){u-=15}var g=document.createElement("div");_css(g,{position:"relative",height:"100%",overflow:"hidden"});var s=document.createElement("span");if(h.duration>0){s.className="duration";_css(s,{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"});s.innerHTML=_utils.timeFormat(h.duration);g.appendChild(s)}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)?u-50:u)-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 r=document.createElement("span");r.className="description";_css(r,{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"});r.innerHTML=h.description;g.appendChild(r)}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,{error:c?c:"could not load playlist for whatever reason.  too bad"})}}})(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 V=m.getElementsByTagName("component");if(V.length===0){return}for(var q=0;q<V.length;q++){var X=V[q].getAttribute("name");var Y={settings:{},elements:{},layout:{}};v[X]=Y;var R=V[q].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var T=0;T<R.length;T++){H(R[T],X)}var k=V[q].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[X].settings[c]=b.utils.typechecker(n,o)}}var h=V[q].getElementsByTagName("layout")[0];if(h&&h.childNodes.length>0){var g=h.getElementsByTagName("group");for(var r=0;r<g.length;r++){var Z=g[r];v[X].layout[Z.getAttribute("position")]={elements:[]};for(var e=0;e<Z.attributes.length;e++){var W=Z.attributes[e];v[X].layout[Z.getAttribute("position")][W.name]=W.value}var f=Z.getElementsByTagName("*");for(var s=0;s<f.length;s++){var U=f[s];v[X].layout[Z.getAttribute("position")].elements.push({type:U.tagName});for(var S=0;S<U.attributes.length;S++){var l=U.attributes[S];v[X].layout[Z.getAttribute("position")].elements[s][l.name]=l.value}if(!b.utils.exists(v[X].layout[Z.getAttribute("position")].elements[s].name)){v[X].layout[Z.getAttribute("position")].elements[s].name=U.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(y,a){var o={};var v=document.createElement("div");y.parentNode.replaceChild(v,y);v.id=y.id;o.version=b.version;o.id=v.id;var q=new b.html5.model(o,v,a);var s=new b.html5.view(o,v,q);var r=new b.html5.controller(o,v,q,s);o.skin=new b.html5.skin();o.jwPlay=function(c){if(typeof c=="undefined"){w()}else{if(c.toString().toLowerCase()=="true"){r.play()}else{r.pause()}}};o.jwPause=function(c){if(typeof c=="undefined"){w()}else{if(c.toString().toLowerCase()=="true"){r.pause()}else{r.play()}}};function w(){if(q.state==b.api.events.state.PLAYING||q.state==b.api.events.state.BUFFERING){r.pause()}else{r.play()}}o.jwStop=r.stop;o.jwSeek=r.seek;o.jwPlaylistItem=r.item;o.jwPlaylistNext=r.next;o.jwPlaylistPrev=r.prev;o.jwResize=r.resize;o.jwLoad=r.load;function t(c){return function(){return q[c]}}function x(e,c,d){return function(){var f=q.plugins.object[e];if(f&&f[c]&&typeof f[c]=="function"){f[c].apply(f,d)}}}o.jwGetItem=t("item");o.jwGetPosition=t("position");o.jwGetDuration=t("duration");o.jwGetBuffer=t("buffer");o.jwGetWidth=t("width");o.jwGetHeight=t("height");o.jwGetFullscreen=t("fullscreen");o.jwSetFullscreen=r.setFullscreen;o.jwGetVolume=t("volume");o.jwSetVolume=r.setVolume;o.jwGetMute=t("mute");o.jwSetMute=r.setMute;o.jwGetStretching=t("stretching");o.jwGetState=t("state");o.jwGetVersion=function(){return o.version};o.jwGetPlaylist=function(){return q.playlist};o.jwGetPlaylistIndex=o.jwGetItem;o.jwAddEventListener=r.addEventListener;o.jwRemoveEventListener=r.removeEventListener;o.jwSendEvent=r.sendEvent;o.jwDockSetButton=function(c,f,e,d){if(q.plugins.object.dock&&q.plugins.object.dock.setButton){q.plugins.object.dock.setButton(c,f,e,d)}};o.jwControlbarShow=x("controlbar","show");o.jwControlbarHide=x("controlbar","hide");o.jwDockShow=x("dock","show");o.jwDockHide=x("dock","hide");o.jwDisplayShow=x("display","show");o.jwDisplayHide=x("display","hide");o.jwGetLevel=function(){};o.jwGetBandwidth=function(){};o.jwGetLockState=function(){};o.jwLock=function(){};o.jwUnlock=function(){};function z(){if(q.config.playlistfile){q.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,u);q.loadPlaylist(q.config.playlistfile)}else{if(typeof q.config.playlist=="string"){q.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,u);q.loadPlaylist(q.config.playlist)}else{q.loadPlaylist(q.config);setTimeout(u,25)}}}function u(c){q.removeEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,u);q.setupPlugins();s.setup();var c={id:o.id,version:o.version};r.playerReady(c)}if(q.config.chromeless&&!b.utils.isIOS()){z()}else{o.skin.load(q.config.skin,z)}return o}})(jwplayer)}var audioplayer_swfobject=function(){var aR="undefined",af="object",aC="Shockwave Flash",ay="ShockwaveFlash.ShockwaveFlash",ag="application/x-shockwave-flash",aD="SWFObjectExprInst",z="onreadystatechange",aG=window,an=document,ad=navigator,aB=false,aA=[ap],ai=[],aH=[],aM=[],al,aE,aQ,aT,aL=false,ax=false,aj,aO,ak=true,aI=function(){var h=typeof an.getElementById!=aR&&typeof an.getElementsByTagName!=aR&&typeof an.createElement!=aR,a=ad.userAgent.toLowerCase(),k=ad.platform.toLowerCase(),d=k?/win/.test(k):/win/.test(a),f=k?/mac/.test(k):/mac/.test(a),c=/webkit/.test(a)?parseFloat(a.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,l=!+"\v1",b=[0,0,0],g=null;if(typeof ad.plugins!=aR&&typeof ad.plugins[aC]==af){g=ad.plugins[aC].description;if(g&&!(typeof ad.mimeTypes!=aR&&ad.mimeTypes[ag]&&!ad.mimeTypes[ag].enabledPlugin)){aB=true;l=false;g=g.replace(/^.*\s+(\S+\s+\S+$)/,"$1");b[0]=parseInt(g.replace(/^(.*)\..*$/,"$1"),10);b[1]=parseInt(g.replace(/^.*\.(.*)\s.*$/,"$1"),10);b[2]=/[a-zA-Z]/.test(g)?parseInt(g.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof aG.ActiveXObject!=aR){try{var e=new ActiveXObject(ay);if(e){g=e.GetVariable("$version");if(g){l=true;g=g.split(" ")[1].split(",");b=[parseInt(g[0],10),parseInt(g[1],10),parseInt(g[2],10)]}}}catch(j){}}}return{w3:h,pv:b,wk:c,ie:l,win:d,mac:f}}(),am=function(){if(!aI.w3){return}if((typeof an.readyState!=aR&&an.readyState=="complete")||(typeof an.readyState==aR&&(an.getElementsByTagName("body")[0]||an.body))){ar()}if(!aL){if(typeof an.addEventListener!=aR){an.addEventListener("DOMContentLoaded",ar,false)}if(aI.ie&&aI.win){an.attachEvent(z,function(){if(an.readyState=="complete"){an.detachEvent(z,arguments.callee);ar()}});if(aG==top){(function(){if(aL){return}try{an.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}ar()})()}}if(aI.wk){(function(){if(aL){return}if(!/loaded|complete/.test(an.readyState)){setTimeout(arguments.callee,0);return}ar()})()}ae(ar)}}();function ar(){if(aL){return}try{var c=an.getElementsByTagName("body")[0].appendChild(aS("span"));c.parentNode.removeChild(c)}catch(b){return}aL=true;var a=aA.length;for(var d=0;d<a;d++){aA[d]()}}function aK(a){if(aL){a()}else{aA[aA.length]=a}}function ae(b){if(typeof aG.addEventListener!=aR){aG.addEventListener("load",b,false)}else{if(typeof an.addEventListener!=aR){an.addEventListener("load",b,false)}else{if(typeof aG.attachEvent!=aR){ao(aG,"onload",b)}else{if(typeof aG.onload=="function"){var a=aG.onload;aG.onload=function(){a();b()}}else{aG.onload=b}}}}}function ap(){if(aB){az()}else{aN()}}function az(){var a=an.getElementsByTagName("body")[0];var c=aS(af);c.setAttribute("type",ag);var b=a.appendChild(c);if(b){var d=0;(function(){if(typeof b.GetVariable!=aR){var e=b.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");aI.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(d<10){d++;setTimeout(arguments.callee,10);return}}a.removeChild(c);b=null;aN()})()}else{aN()}}function aN(){var c=ai.length;if(c>0){for(var d=0;d<c;d++){var l=ai[d].id;var h=ai[d].callbackFn;var j={success:false,id:l};if(aI.pv[0]>0){var e=av(l);if(e){if(aP(ai[d].swfVersion)&&!(aI.wk&&aI.wk<312)){aa(l,true);if(h){j.success=true;j.ref=x(l);h(j)}}else{if(ai[d].expressInstall&&aU()){var a={};a.data=ai[d].expressInstall;a.width=e.getAttribute("width")||"0";a.height=e.getAttribute("height")||"0";if(e.getAttribute("class")){a.styleclass=e.getAttribute("class")}if(e.getAttribute("align")){a.align=e.getAttribute("align")}var b={};var m=e.getElementsByTagName("param");var g=m.length;for(var f=0;f<g;f++){if(m[f].getAttribute("name").toLowerCase()!="movie"){b[m[f].getAttribute("name")]=m[f].getAttribute("value")}}aF(a,b,l,h)}else{ah(e);if(h){h(j)}}}}}else{aa(l,true);if(h){var k=x(l);if(k&&typeof k.SetVariable!=aR){j.success=true;j.ref=k}h(j)}}}}}function x(c){var a=null;var d=av(c);if(d&&d.nodeName=="OBJECT"){if(typeof d.SetVariable!=aR){a=d}else{var b=d.getElementsByTagName(af)[0];if(b){a=b}}}return a}function aU(){return !ax&&aP("6.0.65")&&(aI.win||aI.mac)&&!(aI.wk&&aI.wk<312)}function aF(g,e,a,f){ax=true;aQ=f||null;aT={success:false,id:a};var b=av(a);if(b){if(b.nodeName=="OBJECT"){al=aq(b);aE=null}else{al=b;aE=a}g.id=aD;if(typeof g.width==aR||(!/%$/.test(g.width)&&parseInt(g.width,10)<310)){g.width="310"}if(typeof g.height==aR||(!/%$/.test(g.height)&&parseInt(g.height,10)<137)){g.height="137"}an.title=an.title.slice(0,47)+" - Flash Player Installation";var c=aI.ie&&aI.win?"ActiveX":"PlugIn",d="MMredirectURL="+aG.location.toString().replace(/&/g,"%26")+"&MMplayerType="+c+"&MMdoctitle="+an.title;if(typeof e.flashvars!=aR){e.flashvars+="&"+d}else{e.flashvars=d}if(aI.ie&&aI.win&&b.readyState!=4){var h=aS("div");a+="SWFObjectNew";h.setAttribute("id",a);b.parentNode.insertBefore(h,b);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b)}else{setTimeout(arguments.callee,10)}})()}ac(g,e,a)}}function ah(b){if(aI.ie&&aI.win&&b.readyState!=4){var a=aS("div");b.parentNode.insertBefore(a,b);a.parentNode.replaceChild(aq(b),a);b.style.display="none";(function(){if(b.readyState==4){b.parentNode.removeChild(b)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.replaceChild(aq(b),b)}}function aq(c){var e=aS("div");if(aI.win&&aI.ie){e.innerHTML=c.innerHTML}else{var f=c.getElementsByTagName(af)[0];if(f){var b=f.childNodes;if(b){var a=b.length;for(var d=0;d<a;d++){if(!(b[d].nodeType==1&&b[d].nodeName=="PARAM")&&!(b[d].nodeType==8)){e.appendChild(b[d].cloneNode(true))}}}}}return e}function ac(a,c,l){var m,j=av(l);if(aI.wk&&aI.wk<312){return m}if(j){if(typeof a.id==aR){a.id=l}if(aI.ie&&aI.win){var b="";for(var e in a){if(a[e]!=Object.prototype[e]){if(e.toLowerCase()=="data"){c.movie=a[e]}else{if(e.toLowerCase()=="styleclass"){b+=' class="'+a[e]+'"'}else{if(e.toLowerCase()!="classid"){b+=" "+e+'="'+a[e]+'"'}}}}}var d="";for(var f in c){if(c[f]!=Object.prototype[f]){d+='<param name="'+f+'" value="'+c[f]+'" />'}}j.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+b+">"+d+"</object>";aH[aH.length]=a.id;m=av(a.id)}else{var k=aS(af);k.setAttribute("type",ag);for(var g in a){if(a[g]!=Object.prototype[g]){if(g.toLowerCase()=="styleclass"){k.setAttribute("class",a[g])}else{if(g.toLowerCase()!="classid"){k.setAttribute(g,a[g])}}}}for(var h in c){if(c[h]!=Object.prototype[h]&&h.toLowerCase()!="movie"){at(k,h,c[h])}}j.parentNode.replaceChild(k,j);m=k}}return m}function at(c,a,d){var b=aS("param");b.setAttribute("name",a);b.setAttribute("value",d);c.appendChild(b)}function y(b){var a=av(b);if(a&&a.nodeName=="OBJECT"){if(aI.ie&&aI.win){a.style.display="none";(function(){if(a.readyState==4){aw(b)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.removeChild(a)}}}function aw(b){var c=av(b);if(c){for(var a in c){if(typeof c[a]=="function"){c[a]=null}}c.parentNode.removeChild(c)}}function av(b){var a=null;try{a=an.getElementById(b)}catch(c){}return a}function aS(a){return an.createElement(a)}function ao(b,a,c){b.attachEvent(a,c);aM[aM.length]=[b,a,c]}function aP(b){var c=aI.pv,a=b.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return(c[0]>a[0]||(c[0]==a[0]&&c[1]>a[1])||(c[0]==a[0]&&c[1]==a[1]&&c[2]>=a[2]))?true:false}function ab(c,g,b,d){if(aI.ie&&aI.mac){return}var f=an.getElementsByTagName("head")[0];if(!f){return}var a=(b&&typeof b=="string")?b:"screen";if(d){aj=null;aO=null}if(!aj||aO!=a){var e=aS("style");e.setAttribute("type","text/css");e.setAttribute("media",a);aj=f.appendChild(e);if(aI.ie&&aI.win&&typeof an.styleSheets!=aR&&an.styleSheets.length>0){aj=an.styleSheets[an.styleSheets.length-1]}aO=a}if(aI.ie&&aI.win){if(aj&&typeof aj.addRule==af){aj.addRule(c,g)}}else{if(aj&&typeof an.createTextNode!=aR){aj.appendChild(an.createTextNode(c+" {"+g+"}"))}}}function aa(b,a){if(!ak){return}var c=a?"visible":"hidden";if(aL&&av(b)){av(b).style.visibility=c}else{ab("#"+b,"visibility:"+c)}}function aJ(c){var b=/[\\\"<>\.;]/;var a=b.exec(c)!=null;return a&&typeof encodeURIComponent!=aR?encodeURIComponent(c):c}var au=function(){if(aI.ie&&aI.win){window.attachEvent("onunload",function(){var b=aM.length;for(var c=0;c<b;c++){aM[c][0].detachEvent(aM[c][1],aM[c][2])}var e=aH.length;for(var d=0;d<e;d++){y(aH[d])}for(var f in aI){aI[f]=null}aI=null;for(var a in audioplayer_swfobject){audioplayer_swfobject[a]=null}audioplayer_swfobject=null})}}();return{registerObject:function(b,a,d,c){if(aI.w3&&b&&a){var e={};e.id=b;e.swfVersion=a;e.expressInstall=d;e.callbackFn=c;ai[ai.length]=e;aa(b,false)}else{if(c){c({success:false,id:b})}}},getObjectById:function(a){if(aI.w3){return x(a)}},embedSWF:function(g,a,d,b,k,h,j,e,c,f){var l={success:false,id:a};if(aI.w3&&!(aI.wk&&aI.wk<312)&&g&&a&&d&&b&&k){aa(a,false);aK(function(){d+="";b+="";var m={};if(c&&typeof c===af){for(var r in c){m[r]=c[r]}}m.data=g;m.width=d;m.height=b;var q={};if(e&&typeof e===af){for(var s in e){q[s]=e[s]}}if(j&&typeof j===af){for(var n in j){if(typeof q.flashvars!=aR){q.flashvars+="&"+n+"="+j[n]}else{q.flashvars=n+"="+j[n]}}}if(aP(k)){var o=ac(m,q,a);if(m.id==a){aa(a,true)}l.success=true;l.ref=o}else{if(h&&aU()){m.data=h;aF(m,q,a,f);return}else{aa(a,true)}}if(f){f(l)}})}else{if(f){f(l)}}},switchOffAutoHideShow:function(){ak=false},ua:aI,getFlashPlayerVersion:function(){return{major:aI.pv[0],minor:aI.pv[1],release:aI.pv[2]}},hasFlashPlayerVersion:aP,createSWF:function(b,c,a){if(aI.w3){return ac(b,c,a)}else{return undefined}},showExpressInstall:function(c,b,a,d){if(aI.w3&&aU()){aF(c,b,a,d)}},removeSWF:function(a){if(aI.w3){y(a)}},createCSS:function(c,b,d,a){if(aI.w3){ab(c,b,d,a)}},addDomLoadEvent:aK,addLoadEvent:ae,getQueryParamValue:function(c){var b=an.location.search||an.location.hash;if(b){if(/\?/.test(b)){b=b.split("?")[1]}if(c==null){return aJ(b)}var d=b.split("&");for(var a=0;a<d.length;a++){if(d[a].substring(0,d[a].indexOf("="))==c){return aJ(d[a].substring((d[a].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(ax){var a=av(aD);if(a&&al){a.parentNode.replaceChild(al,a);if(aE){aa(aE,true);if(aI.ie&&aI.win){al.style.display="block"}}if(aQ){aQ(aT)}}ax=false}}}}();var AudioPlayer=function(){var b=[];var f;var d="";var a={};var e=-1;var c="9";function h(k){if(document.all&&!window[k]){for(var j=0;j<document.forms.length;j++){if(document.forms[j][k]){return document.forms[j][k];break}}}return document.all?window[k]:document[k]}function g(l,k,j){h(l).addListener(k,j)}return{setup:function(j,k){d=j;a=k;if(audioplayer_swfobject.hasFlashPlayerVersion(c)){audioplayer_swfobject.switchOffAutoHideShow();audioplayer_swfobject.createCSS("p.audioplayer_container span","visibility:hidden;height:24px;overflow:hidden;padding:0;border:none;")}},getPlayer:function(j){return h(j)},addListener:function(l,k,j){g(l,k,j)},embed:function(m,k){var o={};var j;var l={};var n={};var q={};for(j in a){o[j]=a[j]}for(j in k){o[j]=k[j]}if(o.transparentpagebg=="yes"){l.bgcolor="#FFFFFF";l.wmode="transparent"}else{if(o.pagebg){l.bgcolor="#"+o.pagebg}l.wmode="opaque"}l.menu="false";for(j in o){if(j=="pagebg"||j=="width"||j=="transparentpagebg"){continue}n[j]=o[j]}q.name=m;q.style="outline: none";n.playerID=m;audioplayer_swfobject.embedSWF(d,m,o.width.toString(),"24",c,false,n,l,q);b.push(m)},syncVolumes:function(l,j){e=j;for(var k=0;k<b.length;k++){if(b[k]!=l){h(b[k]).setVolume(e)}}},activate:function(k,j){if(f&&f!=k){h(f).close()}f=k},load:function(k,m,j,l){h(k).load(m,j,l)},close:function(j){h(j).close();if(j==f){f=null}},open:function(k,j){if(j==undefined){j=1}h(k).open(j==undefined?0:j-1)},getVolume:function(j){return e}}}();$(document).ready(function(){var a;$("a[rel~=external]").addTargetBlank();$("#btn-music").bind("click",function(c){c.preventDefault();var b=$(this).attr("href");if(!a||a.closed){a=window.open(b,"musicplayer","height=107, width=300, status=0, toolbar=0, location=0, menubar=0, resizable=0");a.focus()}else{a.focus()}return false});$("input[type=password], input[name=dt_naissance]").attr("autocomplete","off");$("#slides").cycle({timeout:8000,prev:".btn-prev",next:".btn-next",pager:"#pager",pause:1});$("#slides-projects").cycle({timeout:8000,prev:".btn-prev-project",next:".btn-next-project",cleartypeNoBg:true,timeout:0});$("#slides-modeles").cycle({timeout:8000,fx:"scrollHorz",prev:".btn-prev-modele",next:".btn-next-modele",timeout:0});$("#cModeles #subMenu > li").children("a").click(function(){if($(this).hasClass("selected")){$(this).removeClass("selected")}else{$(this).addClass("selected")}$(this).next().slideToggle();return false});$("#cModeles #subMenu > li").children("a").each(function(){if($(this).hasClass("selected")){$(this).next().slideToggle()}});$(".btn-print").click(function(b){b.preventDefault();window.print()})});btnChangeShippingClicked=function(){$("#shippingAddressForm").show();$("#shippingAddress").hide()};productSizeSelected=function(){window.location=$("#f_size").val()};loadSubCategories=function(){var a=language=="fr"?"":"/en";$.ajax({url:a+"/ajax/get-sub-category.php",type:"GET",data:({id:$("#f_categorie").val(),sub:$("#f_sous_categorie2").val()}),success:function(b){$("#f_sous_categorie").html(b)}})};loadSubCategoriesSearch=function(){var a=language=="fr"?"":"/en";$.ajax({url:a+"/ajax/get-sub-category.php",type:"GET",data:({id:$("#f_main_categorie").val(),sub:$("#f_main_sous_categorie2").val()}),success:function(b){$("#f_main_sous_categorie").html(b)}})};$.fn.addTargetBlank=function(){$(this).bind("click",function(){window.open(this.href);return false})};var originalValue=new Array;$.fn.emptyField=function(){val=$(this).val();if(!originalValue[$(this).attr("id")]){originalValue[$(this).attr("id")]=val}if(val==originalValue[$(this).attr("id")]){$(this).val("")}$(this).blur(function(){if($(this).val()==""){$(this).val(originalValue[$(this).attr("id")])}})};$.fn.showElem=function(a){a.preventDefault();rel=$($(this).attr("rel"));if(rel){rel.toggleClass("hide")}};$.fn.prepareDD=function(){var a=$(this),b=true;a.menu=$(a.attr("rel"));a.openDD=function(){a.menu.removeClass("none")};a.closeDD=function(){a.animate({width:a.width()},150,false,function(){if(b){a.menu.addClass("none")}})};a.bind("mouseover",a.openDD).bind("mouseout",a.closeDD);a.menu.bind("mouseover",function(){b=false}).bind("mouseleave",function(){b=true;a.closeDD()})};$.fn.prepareCart=function(){var a=$(this);a.menu=$(a.attr("rel"));a.bind("click",function(){a.menu.removeClass("none");return false});a.menu.find(".btn-close").bind("click",function(){a.menu.addClass("none");return false})};function onThumbClick(a){deselectAllThumbs();deselectAllMains();$("#thumb"+a+"Selected").show();$("#pic"+a+"Big").show()}function deselectAllThumbs(){$("#thumb1Selected").hide();$("#thumb2Selected").hide();$("#thumb3Selected").hide();$("#thumb4Selected").hide()}function deselectAllMains(){$("#pic1Big").hide();$("#pic2Big").hide();$("#pic3Big").hide();$("#pic4Big").hide()}function buildInfoString(b){var e=new Array();$("input[@name='modeles[]']:checked").each(function(){if($(this).val()!="all"){e.push($(this).val())}});if(e.length==0){return null}var d="";d+=b+".php?maisons=";var c;var a=e.length;for(c=0;c<a-1;c++){d+=e[c]+","}if(e.length>0){d+=e[a-1]}return d}function getFloat(a){return parseFloat(jQuery(a).val().replace(/ /g,""))}function getInt(a){return parseInt(jQuery(a).val().replace(/ /g,""))}function round(b,a){if(!a){var a=2}return Math.round(b*Math.pow(10,a))/Math.pow(10,a)}function addZero(a){(String(a).length<2)?a=String("0"+a):a=String(a);return a}function calculateLoan(){var c=getFloat("#i_cost");var b=getFloat("#i_down");if(!isNaN(b)&&!isNaN(c)&&c!=""){var a=document.getElementById("i_loan");$("#i_loan").val(c-b)}validateCalculator()}function validateCalculator(){var e=getFloat("#i_loan");var d=getFloat("#i_interest")/100;var f=getInt("#i_periode");var b=getInt("#s_frequence");var c=0;var a=Math.pow(1+(d/2),2/b)-1;if(!isNaN(e)&&!isNaN(d)&&!isNaN(f)&&!isNaN(b)){$("#submit").removeAttr("disabled")}else{$("#submit").attr("disabled","disabled")}}var cookieLife=6825600;var cookieName="logoSwitch";var cookieNameSession="lastSessionId";
