eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}));
(function(){function v(a){console.log("$f.fireEvent",[].slice.call(a))}function r(a){if(!a||typeof a!="object"){return a}var c=new a.constructor();for(var b in a){if(a.hasOwnProperty(b)){c[b]=r(a[b])}}return c}function p(a,d){if(!a){return}var f,e=0,c=a.length;if(c===undefined){for(f in a){if(d.call(a[f],f,a[f])===false){break}}}else{for(var b=a[0];e<c&&d.call(b,e,b)!==false;b=a[++e]){}}return a}function z(a){return document.getElementById(a)}function t(a,b,c){if(typeof b!="object"){return a}if(a&&b){p(b,function(e,d){if(!c||typeof d!="function"){a[e]=d}})}return a}function o(a){var c=a.indexOf(".");if(c!=-1){var d=a.slice(0,c)||"*";var e=a.slice(c+1,a.length);var b=[];p(document.getElementsByTagName(d),function(){if(this.className&&this.className.indexOf(e)!=-1){b.push(this)}});return b}}function w(a){a=a||window.event;if(a.preventDefault){a.stopPropagation();a.preventDefault()}else{a.returnValue=false;a.cancelBubble=true}return false}function s(a,c,b){a[c]=a[c]||[];a[c].push(b)}function x(){return"_"+(""+Math.random()).slice(2,10)}var u=function(b,d,c){var e=this,f={},a={};e.index=d;if(typeof b=="string"){b={url:b}}t(this,b,true);p(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var i="on"+this;if(i.indexOf("*")!=-1){i=i.slice(0,i.length-1);var h="onBefore"+i.slice(2);e[h]=function(j){s(a,h,j);return e}}e[i]=function(j){s(a,i,j);return e};if(d==-1){if(e[h]){c[h]=e[h]}if(e[i]){c[i]=e[i]}}});t(this,{onCuepoint:function(h,i){if(arguments.length==1){f.embedded=[null,h];return e}if(typeof h=="number"){h=[h]}var j=x();f[j]=[h,i];if(c.isLoaded()){c._api().fp_addCuepoints(h,d,j)}return e},update:function(i){t(e,i);if(c.isLoaded()){c._api().fp_updateClip(i,d)}var j=c.getConfig();var h=(d==-1)?j.clip:j.playlist[d];t(h,i,true)},_fireEvent:function(k,m,j,i){if(k=="onLoad"){p(f,function(D,n){if(n[0]){c._api().fp_addCuepoints(n[0],d,D)}});return false}i=i||e;if(k=="onCuepoint"){var l=f[m];if(l){return l[1].call(c,i,j)}}if(m&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(k)!=-1){t(i,m);if(m.metaData){if(!i.duration){i.duration=m.metaData.duration}else{i.fullDuration=m.metaData.duration}}}var h=true;p(a[k],function(){h=this.call(c,i,m,j)});return h}});if(b.onCuepoint){var g=b.onCuepoint;e.onCuepoint.apply(e,typeof g=="function"?[g]:g);delete b.onCuepoint}p(b,function(i,h){if(typeof h=="function"){s(a,i,h);delete b[i]}});if(d==-1){c.onCuepoint=this.onCuepoint}};var q=function(f,d,e,b){var g=this,c={},a=false;if(b){t(c,b)}p(d,function(i,h){if(typeof h=="function"){c[i]=h;delete d[i]}});t(this,{animate:function(l,k,h){if(!l){return g}if(typeof k=="function"){h=k;k=500}if(typeof l=="string"){var i=l;l={};l[i]=k;k=500}if(h){var j=x();c[j]=h}if(k===undefined){k=500}d=e._api().fp_animate(f,l,k,j);return g},css:function(i,h){if(h!==undefined){var j={};j[i]=h;i=j}d=e._api().fp_css(f,i);t(g,d);return g},show:function(){this.display="block";e._api().fp_showPlugin(f);return g},hide:function(){this.display="none";e._api().fp_hidePlugin(f);return g},toggle:function(){this.display=e._api().fp_togglePlugin(f);return g},fadeTo:function(k,h,i){if(typeof h=="function"){i=h;h=500}if(i){var j=x();c[j]=i}this.display=e._api().fp_fadeTo(f,k,h,j);this.opacity=k;return g},fadeIn:function(h,i){return g.fadeTo(1,h,i)},fadeOut:function(h,i){return g.fadeTo(0,h,i)},getName:function(){return f},getPlayer:function(){return e},_fireEvent:function(j,k,i){if(j=="onUpdate"){var l=e._api().fp_getPlugin(f);if(!l){return}t(g,l);delete g.methods;if(!a){p(l.methods,function(){var n=""+this;g[n]=function(){var F=[].slice.call(arguments);var E=e._api().fp_invoke(f,n,F);return E==="undefined"||E===undefined?g:E}});a=true}}var h=c[j];if(h){var m=h.apply(g,k);if(j.slice(0,1)=="_"){delete c[j]}return m}return g}})};function A(I,e,j){var d=this,f=null,l=false,h,k,g=[],b={},c={},i,n,K,m,L,J;t(d,{id:function(){return i},isLoaded:function(){return(f!==null&&f.fp_play!==undefined&&!l)},getParent:function(){return I},hide:function(C){if(C){I.style.height="0px"}if(d.isLoaded()){f.style.height="0px"}return d},show:function(){I.style.height=J+"px";if(d.isLoaded()){f.style.height=L+"px"}return d},isHidden:function(){return d.isLoaded()&&parseInt(f.style.height,10)===0},load:function(C){if(!d.isLoaded()&&d._fireEvent("onBeforeLoad")!==false){var E=function(){h=I.innerHTML;if(h&&!flashembed.isSupported(e.version)){I.innerHTML=""}if(C){C.cached=true;s(c,"onLoad",C)}flashembed(I,e,{config:j})};var D=0;p(B,function(){this.unload(function(F){if(++D==B.length){E()}})})}return d},unload:function(C){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(C){C(false)}return d}if(h.replace(/\s/g,"")!==""){if(d._fireEvent("onBeforeUnload")===false){if(C){C(false)}return d}l=true;try{if(f){f.fp_close();d._fireEvent("onUnload")}}catch(E){}var D=function(){f=null;I.innerHTML=h;l=false;if(C){C(true)}};setTimeout(D,50)}else{if(C){C(false)}}return d},getClip:function(C){if(C===undefined){C=m}return g[C]},getCommonClip:function(){return k},getPlaylist:function(){return g},getPlugin:function(E){var C=b[E];if(!C&&d.isLoaded()){var D=d._api().fp_getPlugin(E);if(D){C=new q(E,D,d);b[E]=C}}return C},getScreen:function(){return d.getPlugin("screen")},getControls:function(){return d.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return d.getPlugin("logo")._fireEvent("onUpdate")}catch(C){}},getPlay:function(){return d.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(C){return C?r(j):j},getFlashParams:function(){return e},loadPlugin:function(D,E,P,C){if(typeof P=="function"){C=P;P={}}var F=C?x():"_";d._api().fp_loadPlugin(D,E,P,F);var G={};G[F]=C;var O=new q(D,null,d,G);b[D]=O;return O},getState:function(){return d.isLoaded()?f.fp_getState():-1},play:function(D,E){var C=function(){if(D!==undefined){d._api().fp_play(D,E)}else{d._api().fp_play()}};if(d.isLoaded()){C()}else{if(l){setTimeout(function(){d.play(D,E)},50)}else{d.load(function(){C()})}}return d},getVersion:function(){var C="flowplayer.js 3.2.6";if(d.isLoaded()){var D=f.fp_getVersion();D.push(C);return D}return C},_api:function(){if(!d.isLoaded()){throw"Flowplayer "+d.id()+" not loaded when calling an API method"}return f},setClip:function(C){d.setPlaylist([C]);return d},getIndex:function(){return K},_swfHeight:function(){return f.clientHeight}});p(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var D="on"+this;if(D.indexOf("*")!=-1){D=D.slice(0,D.length-1);var C="onBefore"+D.slice(2);d[C]=function(E){s(c,C,E);return d}}d[D]=function(E){s(c,D,E);return d}});p(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var C=this;d[C]=function(E,F){if(!d.isLoaded()){return d}var D=null;if(E!==undefined&&F!==undefined){D=f["fp_"+C](E,F)}else{D=(E===undefined)?f["fp_"+C]():f["fp_"+C](E)}return D==="undefined"||D===undefined?d:D}});d._fireEvent=function(D){if(typeof D=="string"){D=[D]}var C=D[0],F=D[1],S=D[2],T=D[3],U=0;if(j.debug){v(D)}if(!d.isLoaded()&&C=="onLoad"&&F=="player"){f=f||z(n);L=d._swfHeight();p(g,function(){this._fireEvent("onLoad")});p(b,function(N,M){M._fireEvent("onUpdate")});k._fireEvent("onLoad")}if(C=="onLoad"&&F!="player"){return}if(C=="onError"){if(typeof F=="string"||(typeof F=="number"&&typeof S=="number")){F=S;S=T}}if(C=="onContextMenu"){p(j.contextMenu[F],function(N,M){M.call(d)});return}if(C=="onPluginEvent"||C=="onBeforePluginEvent"){var X=F.name||F;var W=b[X];if(W){W._fireEvent("onUpdate",F);return W._fireEvent(S,D.slice(3))}return}if(C=="onPlaylistReplace"){g=[];var G=0;p(F,function(){g.push(new u(this,G++,d))})}if(C=="onClipAdd"){if(F.isInStream){return}F=new u(F,S,d);g.splice(S,0,F);for(U=S+1;U<g.length;U++){g[U].index++}}var E=true;if(typeof F=="number"&&F<g.length){m=F;var V=g[F];if(V){E=V._fireEvent(C,S,T)}if(!V||E!==false){E=k._fireEvent(C,S,T,V)}}p(c[C],function(){E=this.call(d,F,S);if(this.cached){c[C].splice(U,1)}if(E===false){return false}U++});return E};function H(){if($f(I)){$f(I).getParent().innerHTML="";K=$f(I).getIndex();B[K]=d}else{B.push(d);K=B.length-1}J=parseInt(I.style.height,10)||I.clientHeight;i=I.id||"fp"+x();n=e.id||i+"_api";e.id=n;j.playerId=i;if(typeof j=="string"){j={clip:{url:j}}}if(typeof j.clip=="string"){j.clip={url:j.clip}}j.clip=j.clip||{};if(I.getAttribute("href",2)&&!j.clip.url){j.clip.url=I.getAttribute("href",2)}k=new u(j.clip,-1,d);j.playlist=j.playlist||[j.clip];var D=0;p(j.playlist,function(){var F=this;if(typeof F=="object"&&F.length){F={url:""+F}}p(j.clip,function(G,N){if(N!==undefined&&F[G]===undefined&&typeof N!="function"){F[G]=N}});j.playlist[D]=F;F=new u(F,D,d);g.push(F);D++});p(j,function(G,F){if(typeof F=="function"){if(k[G]){k[G](F)}else{s(c,G,F)}delete j[G]}});p(j.plugins,function(G,F){if(F){b[G]=new q(G,F,d)}});if(!j.plugins||j.plugins.controls===undefined){b.controls=new q("controls",null,d)}b.canvas=new q("canvas",null,d);h=I.innerHTML;function C(F){var G=d.hasiPadSupport&&d.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(g[0].url)&&!G){return true}if(!d.isLoaded()&&d._fireEvent("onBeforeClick")!==false){d.load()}return w(F)}function E(){if(h.replace(/\s/g,"")!==""){if(I.addEventListener){I.addEventListener("click",C,false)}else{if(I.attachEvent){I.attachEvent("onclick",C)}}}else{if(I.addEventListener){I.addEventListener("click",w,false)}d.load()}}setTimeout(E,0)}if(typeof I=="string"){var a=z(I);if(!a){throw"Flowplayer cannot access element: "+I}I=a;H()}else{H()}}var B=[];function y(a){this.length=a.length;this.each=function(b){p(a,b)};this.size=function(){return a.length}}window.flowplayer=window.$f=function(){var e=null;var f=arguments[0];if(!arguments.length){p(B,function(){if(this.isLoaded()){e=this;return false}});return e||B[0]}if(arguments.length==1){if(typeof f=="number"){return B[f]}else{if(f=="*"){return new y(B)}p(B,function(){if(this.id()==f.id||this.id()==f||this.getParent()==f){e=this;return false}});return e}}if(arguments.length>1){var a=arguments[1],d=(arguments.length==3)?arguments[2]:{};if(typeof a=="string"){a={src:a}}a=t({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:false},a);if(typeof f=="string"){if(f.indexOf(".")!=-1){var b=[];p(o(f),function(){b.push(new A(this,r(a),r(d)))});return new y(b)}else{var c=z(f);return new A(c!==null?c:f,a,d)}}else{if(f){return new A(f,a,d)}}}return null};t(window.$f,{fireEvent:function(){var b=[].slice.call(arguments);var a=$f(b[0]);return a?a._fireEvent(b.slice(1)):null},addPlugin:function(b,a){A.prototype[b]=a;return $f},each:p,extend:t});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(a,b){if(!arguments.length||typeof arguments[0]=="number"){var c=[];this.each(function(){var d=$f(this);if(d){c.push(d)}});return arguments.length?c[arguments[0]]:new y(c)}return this.each(function(){$f(this,r(a),b?r(b):{})})}}})();(function(){var n=document.all,l="http://www.adobe.com/go/getflashplayer",r=typeof jQuery=="function",p=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,s={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function m(a,b){if(b){for(var c in b){if(b.hasOwnProperty(c)){a[c]=b[c]}}}return a}function t(c,d){var a=[];for(var b in c){if(c.hasOwnProperty(b)){a[b]=d(c[b])}}return a}window.flashembed=function(c,a,b){if(typeof c=="string"){c=document.getElementById(c.replace("#",""))}if(!c){return}if(typeof a=="string"){a={src:a}}return new q(c,m(m({},s),a),b)};var o=m(window.flashembed,{conf:s,getVersion:function(){var a,c;try{c=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(d){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");c=a&&a.GetVariable("$version")}catch(e){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=a&&a.GetVariable("$version")}catch(b){}}}c=p.exec(c);return c?[c[1],c[3]]:[0,0]},asString:function(b){if(b===null||b===undefined){return null}var c=typeof b;if(c=="object"&&b.push){c="array"}switch(c){case"string":b=b.replace(new RegExp('(["\\\\])',"g"),"\\$1");b=b.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+b+'"';case"array":return"["+t(b,function(e){return o.asString(e)}).join(",")+"]";case"function":return'"function()"';case"object":var a=[];for(var d in b){if(b.hasOwnProperty(d)){a.push('"'+d+'":'+o.asString(b[d]))}}return"{"+a.join(",")+"}"}return String(b).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(g,b){g=m({},g);var h='<object width="'+g.width+'" height="'+g.height+'" id="'+g.id+'" name="'+g.id+'"';if(g.cachebusting){g.src+=((g.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(g.w3c||!n){h+=' data="'+g.src+'" type="application/x-shockwave-flash"'}else{h+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}h+=">";if(g.w3c||n){h+='<param name="movie" value="'+g.src+'" />'}g.width=g.height=g.id=g.w3c=g.src=null;g.onFail=g.version=g.expressInstall=null;for(var a in g){if(g[a]){h+='<param name="'+a+'" value="'+g[a]+'" />'}}var e="";if(b){for(var d in b){if(b[d]){var c=b[d];e+=d+"="+(/function|object/.test(typeof c)?o.asString(c):c)+"&"}}e=e.slice(0,-1);h+='<param name="flashvars" value=\''+e+"' />"}h+="</object>";return h},isSupported:function(a){return f[0]>a[0]||f[0]==a[0]&&f[1]>=a[1]}});var f=o.getVersion();function q(c,d,a){if(o.isSupported(d.version)){c.innerHTML=o.getHTML(d,a)}else{if(d.expressInstall&&o.isSupported([6,65])){c.innerHTML=o.getHTML(m(d,{src:d.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!c.innerHTML.replace(/\s/g,"")){c.innerHTML="<h2>Flash version "+d.version+" or greater is required</h2><h3>"+(f[0]>0?"Your version is "+f:"You have no flash plugin installed")+"</h3>"+(c.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+l+"'>here</a></p>");if(c.tagName=="A"){c.onclick=function(){location.href=l}}}if(d.onFail){var b=d.onFail.call(this);if(typeof b=="string"){c.innerHTML=b}}}}if(n){window[d.id]=document.getElementById(d.id)}m(this,{getRoot:function(){return c},getOptions:function(){return d},getConf:function(){return a},getApi:function(){return c.firstChild}})}if(r){jQuery.tools=jQuery.tools||{version:"3.2.6"};jQuery.tools.flashembed={conf:s};jQuery.fn.flashembed=function(a,b){return this.each(function(){jQuery(this).data("flashembed",flashembed(this,a,b))})}}})();(function(a){a.anythingSlider=function(f,e){var d=this,c;d.el=f;d.$el=a(f).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');d.$el.data("AnythingSlider",d);d.init=function(){d.options=c=a.extend({},a.anythingSlider.defaults,e);d.initialized=!1;a.isFunction(c.onBeforeInitialize)&&d.$el.bind("before_initialize",c.onBeforeInitialize);d.$el.trigger("before_initialize",d);d.$wrapper=d.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+c.theme);d.$window=d.$el.closest("div.anythingWindow");d.win=window;d.$win=a(d.win);d.$controls=a('<div class="anythingControls"></div>').appendTo(c.appendControlsTo!==null&&a(c.appendControlsTo).length?a(c.appendControlsTo):d.$wrapper);d.$startStop=a('<a href="#" class="start-stop"></a>');c.buildStartStop&&d.$startStop.appendTo(c.appendStartStopTo!==null&&a(c.appendStartStopTo).length?a(c.appendStartStopTo):d.$controls);d.$nav=a('<ul class="thumbNav" />').appendTo(c.appendNavigationTo!==null&&a(c.appendNavigationTo).length?a(c.appendNavigationTo):d.$controls);d.flag=!1;d.playing=c.autoPlay;d.slideshow=!1;d.hovered=!1;d.panelSize=[];d.currentPage=c.startPanel=parseInt(c.startPanel,10)||1;c.changeBy=parseInt(c.changeBy,10)||1;d.adj=c.infiniteSlides?0:1;d.width=d.$el.width();d.height=d.$el.height();d.outerPad=[d.$wrapper.innerWidth()-d.$wrapper.width(),d.$wrapper.innerHeight()-d.$wrapper.height()];c.playRtl&&d.$wrapper.addClass("rtl");if(c.expand){d.$outer=d.$wrapper.parent(),d.$window.css({width:"100%",height:"100%"}),d.checkResize()}c.buildStartStop&&d.buildAutoPlay();c.buildArrows&&d.buildNextBackButtons();if(!c.autoPlay){c.autoPlayLocked=!1}d.updateSlider();d.$lastPage=d.$currentPage;d.runTimes=a("div.anythingSlider").index(d.$wrapper)+1;d.regex=RegExp("panel"+d.runTimes+"-(\\d+)","i");d.runTimes===1&&d.makeActive();if(!a.isFunction(a.easing[c.easing])){c.easing="swing"}c.pauseOnHover&&d.$wrapper.hover(function(){d.playing&&(d.$el.trigger("slideshow_paused",d),d.clearTimer(!0))},function(){d.playing&&(d.$el.trigger("slideshow_unpaused",d),d.startStop(d.playing,!0))});d.setCurrentPage(d.gotoHash()||c.startPage,!1);d.slideControls(!1);d.$wrapper.bind("mouseenter mouseleave",function(g){d.hovered=g.type==="mouseenter"?!0:!1;d.slideControls(d.hovered,!1)});a(document).keyup(function(g){if(c.enableKeyboard&&d.$wrapper.is(".activeSlider")&&!g.target.tagName.match("TEXTAREA|INPUT|SELECT")&&(c.vertical||!(g.which===38||g.which===40))){switch(g.which){case 39:case 40:d.goForward();break;case 37:case 38:d.goBack()}}});d.$items.delegate("a","focus.AnythingSlider",function(h){var g=a(this).closest(".panel"),g=d.$items.index(g)+d.adj;d.$items.find(".focusedLink").removeClass("focusedLink");a(this).addClass("focusedLink");d.$window.scrollLeft(0);if(g>=d.currentPage+c.showMultiple||g<d.currentPage){d.gotoPage(g),h.preventDefault()}});var b="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");a.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(h,i){a.isFunction(c[i])&&d.$el.bind(b[h],c[i])});a.isFunction(c.onSlideComplete)&&d.$el.bind("slide_complete",function(){setTimeout(function(){c.onSlideComplete(d)},0)});d.initialized=!0;d.$el.trigger("initialized",d);d.startStop(d.playing)};d.updateSlider=function(){d.$el.children(".cloned").remove();d.$nav.empty();d.currentPage=d.currentPage||1;d.$items=d.$el.children();d.pages=d.$items.length;d.dir=c.vertical?"top":"left";c.showMultiple=c.vertical?1:parseInt(c.showMultiple,10)||1;if(c.showMultiple>1){if(c.showMultiple>d.pages){c.showMultiple=d.pages}d.adjustMultiple=c.infiniteSlides&&d.pages>1?0:c.showMultiple-1;d.pages=d.$items.length-d.adjustMultiple}d.$controls.add(d.$nav).add(d.$startStop).add(d.$forward).add(d.$back)[d.pages<=1?"hide":"show"]();d.pages>1&&d.buildNavigation();c.infiniteSlides&&d.pages>1&&(d.$el.prepend(d.$items.filter(":last").clone().removeAttr("id").addClass("cloned")),c.showMultiple>1?d.$el.append(d.$items.filter(":lt("+c.showMultiple+")").clone().removeAttr("id").addClass("cloned").addClass("multiple")):d.$el.append(d.$items.filter(":first").clone().removeAttr("id").addClass("cloned")),d.$el.find(".cloned").each(function(){a(this).find("a,input,textarea,select,button,area").attr("disabled","disabled");a(this).find("[id]").removeAttr("id")}));d.$items=d.$el.children().addClass("panel"+(c.vertical?" vertical":""));d.setDimensions();c.resizeContents?(d.$items.css("width",d.width),d.$wrapper.css("width",d.getDim(d.currentPage)[0]),d.$wrapper.add(d.$items).css("height",d.height)):d.$win.load(function(){d.setDimensions()});if(d.currentPage>d.pages){d.currentPage=d.pages}d.setCurrentPage(d.currentPage,!1);d.$nav.find("a").eq(d.currentPage-1).addClass("cur")};d.buildNavigation=function(){if(c.buildNavigation&&d.pages>1){var h,b;d.$items.filter(":not(.cloned)").each(function(i){var g=i+1;h=(g===1?"first":"")+(g===d.pages?"last":"");b=a('<a href="#"></a>').addClass("panel"+g).wrap('<li class="'+h+'" />');d.$nav.append(b.parent());a.isFunction(c.navigationFormatter)?(h=c.navigationFormatter(g,a(this)),b.html("<span>"+h+"</span>"),parseInt(b.find("span").css("text-indent"),10)<0&&b.addClass(c.tooltipClass).attr("title",h)):b.html("<span>"+g+"</span>");b.bind(c.clickControls,function(j){if(!d.flag&&c.enableNavigation){d.flag=!0,setTimeout(function(){d.flag=!1},100),d.gotoPage(g),c.hashTags&&d.setHash(g)}j.preventDefault()})});if(c.navigationSize!==!1&&parseInt(c.navigationSize,10)<d.pages){d.$controls.find(".anythingNavWindow").length||d.$nav.before('<ul><li class="prev"><a href="#"><span>'+c.backText+"</span></a></li></ul>").after('<ul><li class="next"><a href="#"><span>'+c.forwardText+"</span></a></li></ul>").wrap('<div class="anythingNavWindow"></div>'),d.navWidths=d.$nav.find("li").map(function(){return a(this).innerWidth()+Math.ceil(parseInt(a(this).find("span").css("left"),10)/2||0)}).get(),d.navLeft=1,d.$nav.width(d.navWidth(1,d.pages+1)+5),d.$controls.find(".anythingNavWindow").width(d.navWidth(1,c.navigationSize+1)).end().find(".prev,.next").bind(c.clickControls,function(g){if(!d.flag){d.flag=!0,setTimeout(function(){d.flag=!1},200),d.navWindow(d.navLeft+c.navigationSize*(a(this).is(".prev")?-1:1))}g.preventDefault()})}}};d.navWidth=function(g,l){for(var k=Math.min(g,l),i=Math.max(g,l),h=0;k<i;k++){h+=d.navWidths[k-1]||0}return h};d.navWindow=function(g){var b=d.pages-c.navigationSize+1,g=g<=1?1:g>1&&g<b?g:b;if(g!==d.navLeft){d.$controls.find(".anythingNavWindow").animate({scrollLeft:d.navWidth(1,g),width:d.navWidth(g,g+c.navigationSize)},{queue:!1,duration:c.animationTime}),d.navLeft=g}};d.buildNextBackButtons=function(){d.$forward=a('<span class="arrow forward"><a href="#"><span>'+c.forwardText+"</span></a></span>");d.$back=a('<span class="arrow back"><a href="#"><span>'+c.backText+"</span></a></span>");d.$back.bind(c.clickBackArrow,function(b){if(c.enableArrows&&!d.flag){d.flag=!0,setTimeout(function(){d.flag=!1},100),d.goBack()}b.preventDefault()});d.$forward.bind(c.clickForwardArrow,function(b){if(c.enableArrows&&!d.flag){d.flag=!0,setTimeout(function(){d.flag=!1},100),d.goForward()}b.preventDefault()});d.$back.add(d.$forward).find("a").bind("focusin focusout",function(){a(this).toggleClass("hover")});d.$back.appendTo(c.appendBackTo!==null&&a(c.appendBackTo).length?a(c.appendBackTo):d.$wrapper);d.$forward.appendTo(c.appendForwardTo!==null&&a(c.appendForwardTo).length?a(c.appendForwardTo):d.$wrapper);d.$arrowWidth=d.$forward.width()};d.buildAutoPlay=function(){d.$startStop.html("<span>"+(d.playing?c.stopText:c.startText)+"</span>").bind(c.clickSlideshow,function(b){c.enableStartStop&&(d.startStop(!d.playing),d.makeActive(),d.playing&&!c.autoPlayDelayed&&d.goForward(!0));b.preventDefault()}).bind("focusin focusout",function(){a(this).toggleClass("hover")})};d.checkResize=function(b){clearTimeout(d.resizeTimer);d.resizeTimer=setTimeout(function(){var h=d.$outer.width()-d.outerPad[0],g=(d.$outer[0].tagName==="BODY"?d.$win.height():d.$outer.height())-d.outerPad[1];if(d.width*c.showMultiple!==h||d.height!==g){d.setDimensions(),d.gotoPage(d.currentPage,d.playing,null,-1)}typeof b==="undefined"&&d.checkResize()},500)};d.setDimensions=function(){var n,k,m,l=0,b=c.showMultiple>1?d.width||d.$window.width()/c.showMultiple:d.$window.width(),i=d.$win.width();if(c.expand){n=d.$outer.width()-d.outerPad[0],d.height=k=d.$outer.height()-d.outerPad[1],d.$wrapper.add(d.$window).add(d.$items).css({width:n,height:k}),d.width=b=c.showMultiple>1?n/c.showMultiple:n}d.$items.each(function(g){m=a(this).children();c.resizeContents?(n=d.width,k=d.height,a(this).css({width:n,height:k}),m.length&&m[0].tagName==="EMBED"&&m.attr({width:"100%",height:"100%"}),m.length===1&&m.css({width:"100%",height:"100%"})):(n=a(this).width(),m.length===1&&n>=i&&(n=m.width()>=i?b:m.width(),m.css("max-width",n)),a(this).css("width",n),k=m.length===1?m.outerHeight(!0):a(this).height(),a(this).css("height",k));d.panelSize[g]=[n,k,l];l+=c.vertical?k:n});d.$el.css(c.vertical?"height":"width",l)};d.getDim=function(i){if(d.pages<1||isNaN(i)){return[d.width,d.height]}var i=c.infiniteSlides&&d.pages>1?i:i-1,h,g=d.panelSize[i][0],b=d.panelSize[i][1];if(c.showMultiple>1){for(h=1;h<c.showMultiple;h++){g+=d.panelSize[(i+h)%c.showMultiple][0],b=Math.max(b,d.panelSize[i+h][1])}}return[g,b]};d.goForward=function(b){d.gotoPage(d.currentPage+c.changeBy*(c.playRtl?-1:1),b)};d.goBack=function(b){d.gotoPage(d.currentPage+c.changeBy*(c.playRtl?1:-1),b)};d.gotoPage=function(j,b,i,h){b!==!0&&(b=!1,d.startStop(!1),d.makeActive());/^[#|.]/.test(j)&&a(j).length&&(j=a(j).closest(".panel").index()+d.adj);c.changeBy!==1&&(j<0&&(j+=d.pages),j>d.pages&&(j-=d.pages));if(!(d.pages<=1)){d.$lastPage=d.$currentPage;if(typeof j!=="number"){j=c.startPanel,d.setCurrentPage(j)}if(!b||!c.isVideoPlaying(d)){j>d.pages+1-d.adj&&(j=!c.infiniteSlides&&!c.stopAtEnd?1:d.pages),j<d.adj&&(j=!c.infiniteSlides&&!c.stopAtEnd?d.pages:1),d.currentPage=j>d.pages?d.pages:j<1?1:d.currentPage,d.$currentPage=d.$items.eq(d.currentPage-d.adj),d.exactPage=j,d.$targetPage=d.$items.eq(j===0?d.pages-d.adj:j>d.pages?1-d.adj:j-d.adj),h=h||c.animationTime,h>=0&&d.$el.trigger("slide_init",d),d.slideControls(!0,!1),b!==!0&&(b=!1),(!b||c.stopAtEnd&&j===d.pages)&&d.startStop(!1),h>=0&&d.$el.trigger("slide_begin",d),setTimeout(function(g){c.resizeContents||(g=d.getDim(j),d.$wrapper.filter(":not(:animated)").animate({width:g[0]||d.width,height:g[1]||d.height},{queue:!1,duration:h<0?0:h,easing:c.easing}));g={};g[d.dir]=-d.panelSize[c.infiniteSlides&&d.pages>1?j:j-1][2];d.$el.filter(":not(:animated)").animate(g,{queue:!1,duration:h,easing:c.easing,complete:function(){d.endAnimation(j,i,h)}})},parseInt(c.delayBeforeAnimate,10)||0)}}};d.endAnimation=function(h,g,b){h===0?(d.$el.css(d.dir,-d.panelSize[d.pages][2]),h=d.pages):h>d.pages&&(d.$el.css(d.dir,-d.panelSize[1][2]),h=1);d.exactPage=h;d.setCurrentPage(h,!1);d.$items.removeClass("activePage").eq(h-d.adj).addClass("activePage");d.hovered||d.slideControls(!1);b>=0&&d.$el.trigger("slide_complete",d);typeof g==="function"&&g(d);c.autoPlayLocked&&!d.playing&&setTimeout(function(){d.startStop(!0)},c.resumeDelay-(c.autoPlayDelayed?c.delay:0))};d.setCurrentPage=function(h,g){h=parseInt(h,10);if(!(d.pages<1||h===0||isNaN(h))){h>d.pages+1-d.adj&&(h=d.pages-d.adj);h<d.adj&&(h=1);c.buildNavigation&&d.$nav.find(".cur").removeClass("cur").end().find("a").eq(h-1).addClass("cur");!c.infiniteSlides&&c.stopAtEnd&&(d.$wrapper.find("span.forward")[h===d.pages?"addClass":"removeClass"]("disabled").end().find("span.back")[h===1?"addClass":"removeClass"]("disabled"),h===d.pages&&d.playing&&d.startStop());if(!g){var b=d.getDim(h);d.$wrapper.css({width:b[0],height:b[1]}).add(d.$window).scrollLeft(0);d.$el.css(d.dir,-d.panelSize[c.infiniteSlides&&d.pages>1?h:h-1][2])}d.currentPage=h;d.$currentPage=d.$items.removeClass("activePage").eq(h-d.adj).addClass("activePage")}};d.makeActive=function(){d.$wrapper.is(".activeSlider")||(a(".activeSlider").removeClass("activeSlider"),d.$wrapper.addClass("activeSlider"))};d.gotoHash=function(){var i=d.win.location.hash,b=i.indexOf("&"),h=i.match(d.regex);h===null&&!/^#&/.test(i)?(i=i.substring(0,b>=0?b:i.length),h=a(i).closest(".anythingBase")[0]===d.el?a(i).closest(".panel").index():null):h!==null&&(h=c.hashTags?parseInt(h[1],10):null);return h};d.setHash=function(g){var i="panel"+d.runTimes+"-",h=d.win.location.hash;if(typeof h!=="undefined"){d.win.location.hash=h.indexOf(i)>0?h.replace(d.regex,i+g):h+"&"+i+g}};d.slideControls=function(k){var j=k?0:c.animationTime,i=k?c.animationTime:0,g=k?1:0,b=k?0:1;c.toggleControls&&d.$controls.stop(!0,!0).delay(j)[k?"slideDown":"slideUp"](c.animationTime/2).delay(i);c.buildArrows&&c.toggleArrows&&(!d.hovered&&d.playing&&(b=1,g=0),d.$forward.stop(!0,!0).delay(j).animate({right:b*d.$arrowWidth,opacity:g},c.animationTime/2),d.$back.stop(!0,!0).delay(j).animate({left:b*d.$arrowWidth,opacity:g},c.animationTime/2))};d.clearTimer=function(g){if(d.timer&&(d.win.clearInterval(d.timer),!g&&d.slideshow)){d.$el.trigger("slideshow_stop",d),d.slideshow=!1}};d.startStop=function(g,b){g!==!0&&(g=!1);if((d.playing=g)&&!b){d.$el.trigger("slideshow_start",d),d.slideshow=!0}c.buildStartStop&&(d.$startStop.toggleClass("playing",g).find("span").html(g?c.stopText:c.startText),parseInt(d.$startStop.find("span").css("text-indent"),10)<0&&d.$startStop.addClass(c.tooltipClass).attr("title",g?c.stopText:c.startText));g?(d.clearTimer(!0),d.timer=d.win.setInterval(function(){c.isVideoPlaying(d)?c.resumeOnVideoEnd||d.startStop():d.goForward(!0)},c.delay)):d.clearTimer()};d.init()};a.anythingSlider.defaults={theme:"default",expand:!1,resizeContents:!0,vertical:!1,showMultiple:!1,easing:"swing",buildArrows:!0,buildNavigation:!0,buildStartStop:!0,appendForwardTo:null,appendBackTo:null,appendControlsTo:null,appendNavigationTo:null,appendStartStopTo:null,toggleArrows:!1,toggleControls:!1,startText:"Start",stopText:"Stop",forwardText:"&raquo;",backText:"&laquo;",tooltipClass:"tooltip",enableArrows:!0,enableNavigation:!0,enableStartStop:!0,enableKeyboard:!0,startPanel:1,changeBy:1,hashTags:!0,infiniteSlides:!0,navigationFormatter:null,navigationSize:!1,autoPlay:!1,autoPlayLocked:!1,autoPlayDelayed:!1,pauseOnHover:!0,stopAtEnd:!1,playRtl:!1,delay:3000,resumeDelay:15000,animationTime:600,delayBeforeAnimate:0,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",resumeOnVideoEnd:!0,addWmodeToObject:"opaque",isVideoPlaying:function(){return !1}};a.fn.anythingSlider=function(c,b){return this.each(function(){var e,d=a(this).data("AnythingSlider");(typeof c).match("object|undefined")?d?d.updateSlider():new a.anythingSlider(this,c):/\d/.test(c)&&!isNaN(c)&&d?(e=typeof c==="number"?c:parseInt(a.trim(c),10),e>=1&&e<=d.pages&&d.gotoPage(e,!1,b)):/^[#|.]/.test(c)&&a(c).length&&d.gotoPage(c,!1,b)})}})(jQuery);(function(F,V){var ac,Y=Array.prototype.slice,R=decodeURIComponent,ak=F.param,ai,Z,K,aj=F.bbq=F.bbq||{},T,L,ab,ag=F.event.special,ah="hashchange",U="querystring",P="fragment",H="elemUrlAttr",ae="location",aa="href",N="src",I=/^.*\?|#.*$/g,J=/^.*\#/,ad,Q={};function M(a){return typeof a==="string"}function S(a){var b=Y.call(arguments,1);return function(){return a.apply(this,b.concat(Y.call(arguments)))}}function X(a){return a.replace(/^[^#]*#?(.*)$/,"$1")}function W(a){return a.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function af(h,c,j,g,i){var a,d,e,b,f;if(g!==ac){e=j.match(h?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);f=e[3]||"";if(i===2&&M(g)){d=g.replace(h?J:I,"")}else{b=Z(e[2]);g=M(g)?Z[h?P:U](g):g;d=i===2?g:i===1?F.extend({},g,b):F.extend({},b,g);d=ak(d);if(h){d=d.replace(ad,R)}}a=e[1]+(h?"#":d||!e[1]?"?":"")+d+f}else{a=c(j!==ac?j:V[ae][aa])}return a}ak[U]=S(af,0,W);ak[P]=ai=S(af,1,X);ai.noEscape=function(a){a=a||"";var b=F.map(a.split(""),encodeURIComponent);ad=new RegExp(b.join("|"),"g")};ai.noEscape(",/");F.deparam=Z=function(a,d){var b={},c={"true":!0,"false":!1,"null":null};F.each(a.replace(/\+/g," ").split("&"),function(k,f){var l=f.split("="),g=R(l[0]),m,h=b,j=0,e=g.split("]["),i=e.length-1;if(/\[/.test(e[0])&&/\]$/.test(e[i])){e[i]=e[i].replace(/\]$/,"");e=e.shift().split("[").concat(e);i=e.length-1}else{i=0}if(l.length===2){m=R(l[1]);if(d){m=m&&!isNaN(m)?+m:m==="undefined"?ac:c[m]!==ac?c[m]:m}if(i){for(;j<=i;j++){g=e[j]===""?h.length:e[j];h=h[g]=j<i?h[g]||(e[j+1]&&isNaN(e[j+1])?{}:[]):m}}else{if(F.isArray(b[g])){b[g].push(m)}else{if(b[g]!==ac){b[g]=[b[g],m]}else{b[g]=m}}}}else{if(g){b[g]=d?ac:""}}});return b};function G(a,c,b){if(c===ac||typeof c==="boolean"){b=c;c=ak[a?P:U]()}else{c=M(c)?c.replace(a?J:I,""):c}return Z(c,b)}Z[U]=S(G,0);Z[P]=K=S(G,1);F[H]||(F[H]=function(a){return F.extend(Q,a)})({a:aa,base:aa,iframe:N,img:N,input:N,form:"action",link:aa,script:N});ab=F[H];function O(a,c,b,d){if(!M(b)&&typeof b!=="object"){d=b;b=c;c=ac}return this.each(function(){var e=F(this),g=c||ab()[(this.nodeName||"").toLowerCase()]||"",f=g&&e.attr(g)||"";e.attr(g,ak[a](f,b,d))})}F.fn[U]=S(O,U);F.fn[P]=S(O,P);aj.pushState=T=function(a,d){if(M(a)&&/^#/.test(a)&&d===ac){d=2}var b=a!==ac,c=ai(V[ae][aa],b?a:{},b?d:2);V[ae][aa]=c+(/#/.test(c)?"":"#")};aj.getState=L=function(b,a){return b===ac||typeof b==="boolean"?K(b):K(a)[b]};aj.removeState=function(b){var a={};if(b!==ac){a=L();F.each(F.isArray(b)?b:arguments,function(c,d){delete a[d]})}T(a,2)};ag[ah]=F.extend(ag[ah],{add:function(c){var a;function b(d){var e=d[P]=ai();d.getState=function(g,f){return g===ac||typeof g==="boolean"?Z(e,g):Z(e,f)[g]};a.apply(this,arguments)}if(F.isFunction(c)){a=c;return b}else{a=c.handler;c.handler=b}}})})(jQuery,this);(function(p,q,x){var o,n=p.event.special,w="location",v="hashchange",m="href",t=p.browser,s=document.documentMode,r=t.msie&&(s===x||s<8),u="on"+v in q&&!r;function y(a){a=a||q[w][m];return a.replace(/^[^#]*#?(.*)$/,"$1")}p[v+"Delay"]=100;n[v]=p.extend(n[v],{setup:function(){if(u){return false}p(o.start)},teardown:function(){if(u){return false}p(o.stop)}});o=(function(){var a={},b,f,e,c;function d(){e=c=function(g){return g};if(r){f=p('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow;c=function(){return y(f.document[w][m])};e=function(g,i){if(g!==i){var h=f.document;h.open().close();h[w].hash="#"+g}};e(y())}}a.start=function(){if(b){return}var g=y();e||d();(function h(){var i=y(),j=c(g);if(i!==g){e(g=i,j);p(q).trigger(v)}else{if(j!==g){q[w][m]=q[w][m].replace(/#.*/,"")+"#"+j}}b=setTimeout(h,p[v+"Delay"])})()};a.stop=function(){if(!f){b&&clearTimeout(b);b=0}};return a})()})(jQuery,this);(function(a){a.extend(a.fx.step,{backgroundPosition:function(d){if(d.state===0&&typeof d.end=="string"){var f=a.curCSS(d.elem,"backgroundPosition");f=c(f);d.start=[f[0],f[2]];var b=c(d.end);d.end=[b[0],b[2]];d.unit=[b[1],b[3]]}var e=[];e[0]=((d.end[0]-d.start[0])*d.pos)+d.start[0]+d.unit[0];e[1]=((d.end[1]-d.start[1])*d.pos)+d.start[1]+d.unit[1];d.elem.style.backgroundPosition=e[0]+" "+e[1];function c(h){h=h.replace(/left|top/g,"0px");h=h.replace(/right|bottom/g,"100%");h=h.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var g=h.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(g[1],10),g[2],parseFloat(g[3],10),g[4]]}}})})(jQuery);
/*!
 * Collapse plugin for jQuery
 * http://github.com/danielstocks/jQuery-Collapse/
 *
 * @author Daniel Stocks (http://webcloud.se)
 * @version 0.9.1
 * @updated 17-AUG-2010
 * 
 * Copyright 2010, Daniel Stocks
 * Released under the MIT, BSD, and GPL Licenses.
 */
(function(b){var a=0;b.fn.extend({collapse:function(d){var g={head:"h3",group:"div, ul",cookieName:"collapse",show:function(){this.show()},hide:function(){this.hide()}};var h=b.extend(g,d);var f="active",e="inactive";return this.each(function(){a++;var m=b(this),p=m.find(h.head).wrapInner('<a href="#"></a>'),j=p.length,k=h.cookieName+"_"+a;var i=m.find(h.head).map(function(){var l=b(this);if(!l.hasClass(f)){return l.next(h.group).hide()[0]}return l.next(h.group)[0]});m.bind("show",function(q,r){var l=b(q.target);l.attr("aria-hidden",false).prev().removeClass(e).addClass(f);if(r){l.show()}else{h.show.call(l)}});m.bind("hide",function(q,r){var l=b(q.target);l.attr("aria-hidden",true).prev().removeClass(f).addClass(e);if(r){l.hide()}else{h.hide.call(l)}});if(c){for(var o=0;o<=j;o++){var n=b.cookie(k+o);if(n==o+"open"){i.eq(o).trigger("show",[true])}else{if(n==o+"closed"){i.eq(o).trigger("hide",[true])}}}}m.bind("click",function(u){var r=b(u.target);if(!r.is(h.head)){if(r.parent().is(h.head)){r=r.parent()}else{return}u.preventDefault()}var q=p.index(r),v=k+q,l=q,s=r.next(h.group);if(r.hasClass(f)){s.trigger("hide");l+="closed";if(c){b.cookie(v,l,{path:"/",expires:10})}return}s.trigger("show");l+="open";if(c){b.cookie(v,l,{path:"/",expires:10})}})})}});var c=(function(){try{b.cookie("x","x",{path:"/",expires:10});b.cookie("x",null)}catch(d){return false}return true})()})(jQuery);(function(D,C,B){function y(e){var d=document.documentElement.style,j;if(typeof d[e]=="string"){return e}e=A(e);for(var i=0,h=z.length;i<h;i++){j=z[i]+e;if(typeof d[j]=="string"){return j}}}function A(b){return b.charAt(0).toUpperCase()+b.slice(1)}var z="Moz Webkit Khtml O Ms".split(" "),x=y("transform"),w={csstransforms:function(){return !!x},csstransforms3d:function(){var b=!!y("perspective");if(b){var j=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),i="@media ("+j.join("transform-3d),(")+"modernizr)",h=C("<style>"+i+"{#modernizr{height:3px}}</style>").appendTo("head"),f=C('<div id="modernizr" />').appendTo("html");b=f.height()===3,f.remove(),h.remove()}return b},csstransitions:function(){return !!y("transitionProperty")}};if(D.Modernizr){for(var v in w){Modernizr.hasOwnProperty(v)||Modernizr.addTest(v,w[v])}}else{D.Modernizr=function(){var b={_version:"1.6ish: miniModernizr for Isotope"},h=" ",g,f;for(f in w){g=w[f](),b[f]=g,h+=" "+(g?"":"no-")+f}C("html").addClass(h);return b}()}if(Modernizr.csstransforms){var u=Modernizr.csstransforms3d?{translate:function(b){return"translate3d("+b[0]+"px, "+b[1]+"px, 0) "},scale:function(b){return"scale3d("+b+", "+b+", 1) "}}:{translate:function(b){return"translate("+b[0]+"px, "+b[1]+"px) "},scale:function(b){return"scale("+b+") "}},t=function(K,J,I){var H=C.data(K,"isoTransform")||{},G={},F,E={},o;G[J]=I,C.extend(H,G);for(F in H){o=H[F],E[F]=u[F](o)}var j=E.translate||"",g=E.scale||"",b=j+g;C.data(K,"isoTransform",H),K.style[x]=b};C.cssNumber.scale=!0,C.cssHooks.scale={set:function(d,c){t(d,"scale",c)},get:function(b,f){var e=C.data(b,"isoTransform");return e&&e.scale?e.scale:1}},C.fx.step.scale=function(b){C.cssHooks.scale.set(b.elem,b.now+b.unit)},C.cssNumber.translate=!0,C.cssHooks.translate={set:function(d,c){t(d,"translate",c)},get:function(b,f){var e=C.data(b,"isoTransform");return e&&e.translate?e.translate:[0,0]}}}var s=C.event,r;s.special.smartresize={setup:function(){C(this).bind("resize",s.special.smartresize.handler)},teardown:function(){C(this).unbind("resize",s.special.smartresize.handler)},handler:function(f,e){var h=this,g=arguments;f.type="smartresize",r&&clearTimeout(r),r=setTimeout(function(){jQuery.event.handle.apply(h,g)},e==="execAsap"?0:100)}},C.fn.smartresize=function(b){return b?this.bind("smartresize",b):this.trigger("smartresize",["execAsap"])},C.Isotope=function(b,d){this.element=C(d),this._create(b),this._init()};var q=["overflow","position","width","height"];C.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:Modernizr.csstransforms&&!C.browser.opera?{opacity:0,scale:0.001}:{opacity:0},visibleStyle:Modernizr.csstransforms&&!C.browser.opera?{opacity:1,scale:1}:{opacity:1},animationEngine:C.browser.opera?"jquery":"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},C.Isotope.prototype={_create:function(E){this.options=C.extend({},C.Isotope.settings,E),this.styleQueue=[],this.elemCount=0;var o=this.element[0].style;this.originalStyle={};for(var n=0,m=q.length;n<m;n++){var l=q[n];this.originalStyle[l]=o[l]||""}this.element.css({overflow:"hidden",position:"relative"}),this._updateAnimationEngine(),this._updateUsingTransforms();var k={"original-order":function(d,c){c.elemCount++;return c.elemCount},random:function(){return Math.random()}};this.options.getSortData=C.extend(this.options.getSortData,k),this.reloadItems();var b=C(document.createElement("div")).prependTo(this.element);this.offset=b.position(),b.remove();var a=this;setTimeout(function(){a.element.addClass(a.options.containerClass)},0),this.options.resizable&&C(D).bind("smartresize.isotope",function(){a.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return !1})},_getAtoms:function(f){var e=this.options.itemSelector,h=e?f.filter(e).add(f.find(e)):f,g={position:"absolute"};this.usingTransforms&&(g.left=0,g.top=0),h.css(g).addClass(this.options.itemClass),this.updateSortData(h,!0);return h},_init:function(b){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(b)},option:function(b){if(C.isPlainObject(b)){this.options=C.extend(!0,this.options,b);var f;for(var d in b){f="_update"+A(d),this[f]&&this[f]()}}},_updateAnimationEngine:function(){var b=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");switch(b){case"css":case"none":this.isUsingJQueryAnimation=!1;break;case"jquery":this.isUsingJQueryAnimation=!0;break;default:this.isUsingJQueryAnimation=!Modernizr.csstransitions}this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){this.usingTransforms=this.options.transformsEnabled&&Modernizr.csstransforms&&Modernizr.csstransitions&&!this.isUsingJQueryAnimation,this.getPositionStyles=this.usingTransforms?this._translate:this._positionAbs},_filter:function(i){var h=this.options.filter===""?"*":this.options.filter;if(!h){return i}var n=this.options.hiddenClass,m="."+n,l=i.filter(m),k=l;if(h!=="*"){k=l.filter(h);var j=i.not(m).not(h).addClass(n);this.styleQueue.push({$el:j,style:this.options.hiddenStyle})}this.styleQueue.push({$el:k,style:this.options.visibleStyle}),k.removeClass(n);return i.filter(h)},updateSortData:function(b,l){var k=this,j=this.options.getSortData,i,h;b.each(function(){i=C(this),h={};for(var c in j){!l&&c==="original-order"?h[c]=C.data(this,"isotope-sort-data")[c]:h[c]=j[c](i,k)}C.data(this,"isotope-sort-data",h)})},_sort:function(){var f=this.options.sortBy,e=this._getSorter,h=this.options.sortAscending?1:-1,g=function(i,c){var b=e(i,f),a=e(c,f);b===a&&f!=="original-order"&&(b=e(i,"original-order"),a=e(c,"original-order"));return(b>a?1:b<a?-1:0)*h};this.$filteredAtoms.sort(g)},_getSorter:function(b,d){return C.data(b,"isotope-sort-data")[d]},_translate:function(d,c){return{translate:[d,c]}},_positionAbs:function(d,c){return{left:d,top:c}},_pushPosition:function(f,e,h){e+=this.offset.left,h+=this.offset.top;var g=this.getPositionStyles(e,h);this.styleQueue.push({$el:f,style:g}),this.options.itemPositionDataEnabled&&f.data("isotope-item-position",{x:e,y:h})},layout:function(f,e){var h=this.options.layoutMode;this["_"+h+"Layout"](f);if(this.options.resizesContainer){var g=this["_"+h+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:g})}this._processStyleQueue(),e&&e.call(f),this.isLaidOut=!0},_processStyleQueue:function(){var b=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",h=this.options.animationOptions,g=this._isInserting&&this.isUsingJQueryAnimation,f;C.each(this.styleQueue,function(a,c){f=g&&c.$el.hasClass("no-transition")?"css":b,c.$el[f](c.style,h)}),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(b){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,b)},addItems:function(e,d){var f=this._getAtoms(e);this.$allAtoms=this.$allAtoms.add(f),d&&d(f)},insert:function(e,d){this.element.append(e);var f=this;this.addItems(e,function(b){var c=f._filter(b,!0);f._addHideAppended(c),f._sort(),f.reLayout(),f._revealAppended(c,d)})},appended:function(e,d){var f=this;this.addItems(e,function(b){f._addHideAppended(b),f.layout(b),f._revealAppended(b,d)})},_addHideAppended:function(b){this.$filteredAtoms=this.$filteredAtoms.add(b),b.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:b,style:this.options.hiddenStyle})},_revealAppended:function(e,d){var f=this;setTimeout(function(){e.removeClass("no-transition"),f.styleQueue.push({$el:e,style:f.options.visibleStyle}),f._processStyleQueue(),delete f._isInserting,d&&d(e)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(b){this.$allAtoms=this.$allAtoms.not(b),this.$filteredAtoms=this.$filteredAtoms.not(b),b.remove()},shuffle:function(){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout()},destroy:function(){var j=this.usingTransforms;this.$allAtoms.removeClass(this.options.hiddenClass+" "+this.options.itemClass).each(function(){this.style.position="",this.style.top="",this.style.left="",this.style.opacity="",j&&(this.style[x]="")});var i=this.element[0].style;for(var g=0,b=q.length;g<b;g++){var a=q[g];i[a]=this.originalStyle[a]}this.element.unbind(".isotope").undelegate("."+this.options.hiddenClass,"click").removeClass(this.options.containerClass).removeData("isotope"),C(D).unbind(".isotope")},_getSegments:function(j){var d=this.options.layoutMode,E=j?"rowHeight":"columnWidth",o=j?"height":"width",n=j?"rows":"cols",m=this.element[o](),l,k=this.options[d]&&this.options[d][E]||this.$filteredAtoms["outer"+A(o)](!0)||m;l=Math.floor(m/k),l=Math.max(l,1),this[d][n]=l,this[d][E]=k},_checkIfSegmentsChanged:function(f){var e=this.options.layoutMode,h=f?"rows":"cols",g=this[e][h];this._getSegments(f);return this[e][h]!==g},_masonryReset:function(){this.masonry={},this._getSegments();var b=this.masonry.cols;this.masonry.colYs=[];while(b--){this.masonry.colYs.push(0)}},_masonryLayout:function(b){var f=this,e=f.masonry;b.each(function(){var c=C(this),m=Math.ceil(c.outerWidth(!0)/e.columnWidth);m=Math.min(m,e.cols);if(m===1){f._masonryPlaceBrick(c,e.colYs)}else{var l=e.cols+1-m,k=[],j,d;for(d=0;d<l;d++){j=e.colYs.slice(d,d+m),k[d]=Math.max.apply(Math,j)}f._masonryPlaceBrick(c,k)}})},_masonryPlaceBrick:function(I,H){var G=Math.min.apply(Math,H),F=0;for(var E=0,o=H.length;E<o;E++){if(H[E]===G){F=E;break}}var n=this.masonry.columnWidth*F,m=G;this._pushPosition(I,n,m);var l=G+I.outerHeight(!0),k=this.masonry.cols+1-o;for(E=0;E<k;E++){this.masonry.colYs[F+E]=l}},_masonryGetContainerSize:function(){var b=Math.max.apply(Math,this.masonry.colYs);return{height:b}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(b){var h=this,g=this.element.width(),f=this.fitRows;b.each(function(){var c=C(this),e=c.outerWidth(!0),d=c.outerHeight(!0);f.x!==0&&e+f.x>g&&(f.x=0,f.y=f.height),h._pushPosition(c,f.x,f.y),f.height=Math.max(f.y+d,f.height),f.x+=e})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return !0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(b){var f=this,e=this.cellsByRow;b.each(function(){var c=C(this),k=e.index%e.cols,j=~~(e.index/e.cols),i=(k+0.5)*e.columnWidth-c.outerWidth(!0)/2,d=(j+0.5)*e.rowHeight-c.outerHeight(!0)/2;f._pushPosition(c,i,d),e.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(b){var d=this;b.each(function(c){var e=C(this);d._pushPosition(e,0,d.straightDown.y),d.straightDown.y+=e.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return !0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var b=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(b--){this.masonryHorizontal.rowXs.push(0)}},_masonryHorizontalLayout:function(b){var f=this,e=f.masonryHorizontal;b.each(function(){var c=C(this),m=Math.ceil(c.outerHeight(!0)/e.rowHeight);m=Math.min(m,e.rows);if(m===1){f._masonryHorizontalPlaceBrick(c,e.rowXs)}else{var l=e.rows+1-m,k=[],j,d;for(d=0;d<l;d++){j=e.rowXs.slice(d,d+m),k[d]=Math.max.apply(Math,j)}f._masonryHorizontalPlaceBrick(c,k)}})},_masonryHorizontalPlaceBrick:function(I,H){var G=Math.min.apply(Math,H),F=0;for(var E=0,o=H.length;E<o;E++){if(H[E]===G){F=E;break}}var n=G,m=this.masonryHorizontal.rowHeight*F;this._pushPosition(I,n,m);var l=G+I.outerWidth(!0),k=this.masonryHorizontal.rows+1-o;for(E=0;E<k;E++){this.masonryHorizontal.rowXs[F+E]=l}},_masonryHorizontalGetContainerSize:function(){var b=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:b}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(b){var h=this,g=this.element.height(),f=this.fitColumns;b.each(function(){var c=C(this),e=c.outerWidth(!0),d=c.outerHeight(!0);f.y!==0&&d+f.y>g&&(f.x=f.width,f.y=0),h._pushPosition(c,f.x,f.y),f.width=Math.max(f.x+e,f.width),f.y+=d})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return !0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(b){var f=this,e=this.cellsByColumn;b.each(function(){var c=C(this),k=~~(e.index/e.rows),j=e.index%e.rows,i=(k+0.5)*e.columnWidth-c.outerWidth(!0)/2,d=(j+0.5)*e.rowHeight-c.outerHeight(!0)/2;f._pushPosition(c,i,d),e.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(b){var d=this;b.each(function(c){var e=C(this);d._pushPosition(e,d.straightAcross.x,0),d.straightAcross.x+=e.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return !0}},C.fn.imagesLoaded=function(i){function j(){--m<=0&&this.src!==l&&(setTimeout(k),n.unbind("load error",j))}function k(){i.call(c,n)}var c=this,n=c.find("img").add(c.filter("img")),m=n.length,l="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";m||k(),n.bind("load error",j).each(function(){if(this.complete||this.complete===B){var b=this.src;this.src=l,this.src=b}});return c};var p=function(b){this.console&&console.error(b)};C.fn.isotope=function(b){if(typeof b=="string"){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var a=C.data(this,"isotope");if(!a){p("cannot call methods on isotope prior to initialization; attempted to call method '"+b+"'")}else{if(!C.isFunction(a[b])||b.charAt(0)==="_"){p("no such method '"+b+"' for isotope instance");return}a[b].apply(a,d)}})}else{this.each(function(){var a=C.data(this,"isotope");a?(a.option(b),a._init()):C.data(this,"isotope",new C.Isotope(b,this))})}return this}})(window,jQuery);(function(c,d){var a=c.document;(function(){var e=false,f=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.JRClass=function(){};JRClass.extend=function(k){var i=this.prototype;e=true;var h=new this();e=false;for(var g in k){h[g]=typeof k[g]=="function"&&typeof i[g]=="function"&&f.test(k[g])?(function(l,m){return function(){var o=this._super;this._super=i[l];var n=m.apply(this,arguments);this._super=o;return n}})(g,k[g]):k[g]}function j(){if(!e&&this.init){this.init.apply(this,arguments)}}j.prototype=h;j.constructor=j;j.extend=arguments.callee;return j}})();var b=JRClass.extend({init:function(f,e){if(typeof f=="string"){this.video=a.getElementById(f)}else{this.video=f}this.video.player=this;this.values={};this.elements={};this.options={autoplay:false,preload:true,useBuiltInControls:false,controlsBelow:false,controlsAtStart:false,controlsHiding:true,defaultVolume:0.85,playerFallbackOrder:["html5","flash","links"],flashPlayer:"htmlObject",flashPlayerVersion:false};if(typeof b.options=="object"){_V_.merge(this.options,b.options)}if(typeof e=="object"){_V_.merge(this.options,e)}if(this.getPreloadAttribute()!==d){this.options.preload=this.getPreloadAttribute()}if(this.getAutoplayAttribute()!==d){this.options.autoplay=this.getAutoplayAttribute()}this.box=this.video.parentNode;this.linksFallback=this.getLinksFallback();this.hideLinksFallback();this.each(this.options.playerFallbackOrder,function(g){if(this[g+"Supported"]()){this[g+"Init"]();return true}});this.activateElement(this,"player");this.activateElement(this.box,"box")},behaviors:{},newBehavior:function(e,f,g){this.behaviors[e]=f;this.extend(g)},activateElement:function(e,f){if(typeof e=="string"){e=a.getElementById(e)}this.behaviors[f].call(this,e)},errors:[],warnings:[],warning:function(e){this.warnings.push(e);this.log(e)},history:[],log:function(f){if(!f){return}if(typeof f=="string"){f={type:f}}if(f.type){this.history.push(f.type)}if(this.history.length>=50){this.history.shift()}try{console.log(f.type)}catch(g){try{opera.postError(f.type)}catch(g){}}},setLocalStorage:function(f,g){if(!localStorage){return}try{localStorage[f]=g}catch(h){if(h.code==22||h.code==1014){this.warning(b.warnings.localStorageFull)}}},getPreloadAttribute:function(){if(typeof this.video.hasAttribute=="function"&&this.video.hasAttribute("preload")){var e=this.video.getAttribute("preload");if(e===""||e==="true"){return"auto"}if(e==="false"){return"none"}return e}},getAutoplayAttribute:function(){if(typeof this.video.hasAttribute=="function"&&this.video.hasAttribute("autoplay")){var e=this.video.getAttribute("autoplay");if(e==="false"){return false}return true}},bufferedPercent:function(){return(this.duration())?this.buffered()[1]/this.duration():0},each:function(e,h){if(!e||e.length===0){return}for(var g=0,f=e.length;g<f;g++){if(h.call(this,e[g],g)){break}}},extend:function(f){for(var e in f){if(f.hasOwnProperty(e)){this[e]=f[e]}}}});b.player=b.prototype;b.player.extend({flashSupported:function(){if(!this.flashElement){this.flashElement=this.getFlashElement()}if(this.flashElement&&this.flashPlayerVersionSupported()){return true}else{return false}},flashInit:function(){this.replaceWithFlash();this.element=this.flashElement;this.video.src="";var e=b.flashPlayers[this.options.flashPlayer];this.extend(b.flashPlayers[this.options.flashPlayer].api);(e.init.context(this))()},getFlashElement:function(){var g=this.video.children;for(var f=0,e=g.length;f<e;f++){if(g[f].className=="vjs-flash-fallback"){return g[f]}}},replaceWithFlash:function(){if(this.flashElement){this.box.insertBefore(this.flashElement,this.video);this.video.style.display="none"}},flashPlayerVersionSupported:function(){var e=(this.options.flashPlayerVersion)?this.options.flashPlayerVersion:b.flashPlayers[this.options.flashPlayer].flashPlayerVersion;return b.getFlashVersion()>=e}});b.flashPlayers={};b.flashPlayers.htmlObject={flashPlayerVersion:9,init:function(){return true},api:{width:function(e){if(e!==d){this.element.width=e;this.box.style.width=e+"px";this.triggerResizeListeners();return this}return this.element.width},height:function(e){if(e!==d){this.element.height=e;this.box.style.height=e+"px";this.triggerResizeListeners();return this}return this.element.height}}};b.player.extend({linksSupported:function(){return true},linksInit:function(){this.showLinksFallback();this.element=this.video},getLinksFallback:function(){return this.box.getElementsByTagName("P")[0]},hideLinksFallback:function(){if(this.linksFallback){this.linksFallback.style.display="none"}},showLinksFallback:function(){if(this.linksFallback){this.linksFallback.style.display="block"}}});b.merge=function(h,g,f){for(var e in g){if(g.hasOwnProperty(e)&&(!f||!h.hasOwnProperty(e))){h[e]=g[e]}}return h};b.extend=function(e){this.merge(this,e,true)};b.extend({setupAllWhenReady:function(e){b.options=e;b.DOMReady(b.setup)},DOMReady:function(e){b.addToDOMReady(e)},setup:function(g,e){var k=false,j=[],h;if(!g||g=="All"){g=b.getVideoJSTags()}else{if(typeof g!="object"||g.nodeType==1){g=[g];k=true}}for(var f=0;f<g.length;f++){if(typeof g[f]=="string"){h=a.getElementById(g[f])}else{h=g[f]}j.push(new b(h,e))}return(k)?j[0]:j},getVideoJSTags:function(){var g=a.getElementsByTagName("video"),e=[],k;for(var h=0,f=g.length;h<f;h++){k=g[h];if(k.className.indexOf("video-js")!=-1){e.push(k)}}return e},browserSupportsVideo:function(){if(typeof b.videoSupport!="undefined"){return b.videoSupport}b.videoSupport=!!a.createElement("video").canPlayType;return b.videoSupport},getFlashVersion:function(){if(typeof b.flashVersion!="undefined"){return b.flashVersion}var f=0,i;if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object"){i=navigator.plugins["Shockwave Flash"].description;if(i&&!(typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-shockwave-flash"]&&!navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)){f=parseInt(i.match(/^.*\s+([^\s]+)\.[^\s]+\s+[^\s]+$/)[1],10)}}else{if(typeof c.ActiveXObject!="undefined"){try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(g){f=parseInt(g.GetVariable("$version").match(/^[^\s]+\s(\d+)/)[1],10)}}catch(h){}}}b.flashVersion=f;return b.flashVersion},isIE:function(){return !+"\v1"},isIPad:function(){return navigator.userAgent.match(/iPad/i)!==null},isIPhone:function(){return navigator.userAgent.match(/iPhone/i)!==null},isIOS:function(){return b.isIPhone()||b.isIPad()},iOSVersion:function(){var e=navigator.userAgent.match(/OS (\d+)_/i);if(e&&e[1]){return e[1]}},isAndroid:function(){return navigator.userAgent.match(/Android/i)!==null},androidVersion:function(){var e=navigator.userAgent.match(/Android (\d+)\./i);if(e&&e[1]){return e[1]}},warnings:{videoNotReady:"Video is not ready yet (try playing the video first).",localStorageFull:"Local Storage is Full"}});if(b.isIE()){a.createElement("video")}c.VideoJS=c._V_=b;b.player.extend({html5Supported:function(){if(b.browserSupportsVideo()&&this.canPlaySource()){return true}else{return false}},html5Init:function(){this.element=this.video;this.fixPreloading();this.supportProgressEvents();this.volume((localStorage&&localStorage.volume)||this.options.defaultVolume);if(b.isIOS()){this.options.useBuiltInControls=true;this.iOSInterface()}else{if(b.isAndroid()){this.options.useBuiltInControls=true;this.androidInterface()}}if(!this.options.useBuiltInControls){this.video.controls=false;if(this.options.controlsBelow){_V_.addClass(this.box,"vjs-controls-below")}this.activateElement(this.video,"playToggle");this.buildStylesCheckDiv();this.buildAndActivatePoster();this.buildBigPlayButton();this.buildAndActivateSpinner();this.buildAndActivateControlBar();this.loadInterface();this.getSubtitles()}},canPlaySource:function(){if(this.canPlaySourceResult){return this.canPlaySourceResult}var h=this.video.children;for(var g=0,f=h.length;g<f;g++){if(h[g].tagName.toUpperCase()=="SOURCE"){var e=this.video.canPlayType(h[g].type)||this.canPlayExt(h[g].src);if(e=="probably"||e=="maybe"){this.firstPlayableSource=h[g];this.canPlaySourceResult=true;return true}}}this.canPlaySourceResult=false;return false},canPlayExt:function(g){if(!g){return""}var e=g.match(/\.([^\.]+)$/);if(e&&e[1]){var f=e[1].toLowerCase();if(b.isAndroid()){if(f=="mp4"||f=="m4v"){return"maybe"}}else{if(b.isIOS()){if(f=="m3u8"){return"maybe"}}}}return""},forceTheSource:function(){this.video.src=this.firstPlayableSource.src;this.video.load()},fixPreloading:function(){if(typeof this.video.hasAttribute=="function"&&this.video.hasAttribute("preload")&&this.video.preload!="none"){this.video.autobuffer=true}else{this.video.autobuffer=false;this.video.preload="none"}},supportProgressEvents:function(f){_V_.addListener(this.video,"progress",this.playerOnVideoProgress.context(this))},playerOnVideoProgress:function(e){this.setBufferedFromProgress(e)},setBufferedFromProgress:function(f){if(f.total>0){var e=(f.loaded/f.total)*this.duration();if(e>this.values.bufferEnd){this.values.bufferEnd=e}}},iOSInterface:function(){if(b.iOSVersion()<4){this.forceTheSource()}if(b.isIPad()){this.buildAndActivateSpinner()}},androidInterface:function(){this.forceTheSource();_V_.addListener(this.video,"click",function(){this.play()});this.buildBigPlayButton();_V_.addListener(this.bigPlayButton,"click",function(){this.play()}.context(this));this.positionBox();this.showBigPlayButtons()},loadInterface:function(){if(!this.stylesHaveLoaded()){if(!this.positionRetries){this.positionRetries=1}if(this.positionRetries++<100){setTimeout(this.loadInterface.context(this),10);return}}this.hideStylesCheckDiv();this.showPoster();if(this.video.paused!==false){this.showBigPlayButtons()}if(this.options.controlsAtStart){this.showControlBars()}this.positionAll()},buildAndActivateControlBar:function(){this.controls=_V_.createElement("div",{className:"vjs-controls"});this.box.appendChild(this.controls);this.activateElement(this.controls,"controlBar");this.activateElement(this.controls,"mouseOverVideoReporter");this.playControl=_V_.createElement("div",{className:"vjs-play-control",innerHTML:"<span></span>"});this.controls.appendChild(this.playControl);this.activateElement(this.playControl,"playToggle");this.progressControl=_V_.createElement("div",{className:"vjs-progress-control"});this.controls.appendChild(this.progressControl);this.progressHolder=_V_.createElement("div",{className:"vjs-progress-holder"});this.progressControl.appendChild(this.progressHolder);this.activateElement(this.progressHolder,"currentTimeScrubber");this.loadProgressBar=_V_.createElement("div",{className:"vjs-load-progress"});this.progressHolder.appendChild(this.loadProgressBar);this.activateElement(this.loadProgressBar,"loadProgressBar");this.playProgressBar=_V_.createElement("div",{className:"vjs-play-progress"});this.progressHolder.appendChild(this.playProgressBar);this.activateElement(this.playProgressBar,"playProgressBar");this.timeControl=_V_.createElement("div",{className:"vjs-time-control"});this.controls.appendChild(this.timeControl);this.currentTimeDisplay=_V_.createElement("span",{className:"vjs-current-time-display",innerHTML:"00:00"});this.timeControl.appendChild(this.currentTimeDisplay);this.activateElement(this.currentTimeDisplay,"currentTimeDisplay");this.timeSeparator=_V_.createElement("span",{innerHTML:" / "});this.timeControl.appendChild(this.timeSeparator);this.durationDisplay=_V_.createElement("span",{className:"vjs-duration-display",innerHTML:"00:00"});this.timeControl.appendChild(this.durationDisplay);this.activateElement(this.durationDisplay,"durationDisplay");this.volumeControl=_V_.createElement("div",{className:"vjs-volume-control",innerHTML:"<div><span></span><span></span><span></span><span></span><span></span><span></span></div>"});this.controls.appendChild(this.volumeControl);this.activateElement(this.volumeControl,"volumeScrubber");this.volumeDisplay=this.volumeControl.children[0];this.activateElement(this.volumeDisplay,"volumeDisplay");this.fullscreenControl=_V_.createElement("div",{className:"vjs-fullscreen-control",innerHTML:"<div><span></span><span></span><span></span><span></span></div>"});this.controls.appendChild(this.fullscreenControl);this.activateElement(this.fullscreenControl,"fullscreenToggle")},buildAndActivatePoster:function(){this.updatePosterSource();if(this.video.poster){this.poster=a.createElement("img");this.box.appendChild(this.poster);this.poster.src=this.video.poster;this.poster.className="vjs-poster";this.activateElement(this.poster,"poster")}else{this.poster=false}},buildBigPlayButton:function(){this.bigPlayButton=_V_.createElement("div",{className:"vjs-big-play-button",innerHTML:"<span></span>"});this.box.appendChild(this.bigPlayButton);this.activateElement(this.bigPlayButton,"bigPlayButton")},buildAndActivateSpinner:function(){this.spinner=_V_.createElement("div",{className:"vjs-spinner",innerHTML:"<div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>"});this.box.appendChild(this.spinner);this.activateElement(this.spinner,"spinner")},buildStylesCheckDiv:function(){this.stylesCheckDiv=_V_.createElement("div",{className:"vjs-styles-check"});this.stylesCheckDiv.style.position="absolute";this.box.appendChild(this.stylesCheckDiv)},hideStylesCheckDiv:function(){this.stylesCheckDiv.style.display="none"},stylesHaveLoaded:function(){if(this.stylesCheckDiv.offsetHeight!=5){return false}else{return true}},positionAll:function(){this.positionBox();this.positionControlBars();this.positionPoster()},positionBox:function(){if(this.videoIsFullScreen){this.box.style.width="";this.element.style.height="";if(this.options.controlsBelow){this.box.style.height="";this.element.style.height=(this.box.offsetHeight-this.controls.offsetHeight)+"px"}}else{this.box.style.width=this.width()+"px";this.element.style.height=this.height()+"px";if(this.options.controlsBelow){this.element.style.height=""}}},getSubtitles:function(){var f=this.video.getElementsByTagName("TRACK");for(var g=0,e=f.length;g<e;g++){if(f[g].getAttribute("kind")=="subtitles"&&f[g].getAttribute("src")){this.subtitlesSource=f[g].getAttribute("src");this.loadSubtitles();this.buildSubtitles()}}},loadSubtitles:function(){_V_.get(this.subtitlesSource,this.parseSubtitles.context(this))},parseSubtitles:function(g){var f=g.split("\n"),e="",k,m,n;this.subtitles=[];this.currentSubtitle=false;this.lastSubtitleIndex=0;for(var l=0;l<f.length;l++){e=_V_.trim(f[l]);if(e){k={id:e,index:this.subtitles.length};e=_V_.trim(f[++l]);m=e.split(" --> ");k.start=this.parseSubtitleTime(m[0]);k.end=this.parseSubtitleTime(m[1]);n=[];for(var h=l;h<f.length;h++){e=_V_.trim(f[++l]);if(!e){break}n.push(e)}k.text=n.join("<br/>");this.subtitles.push(k)}}},parseSubtitleTime:function(e){var g=e.split(":"),f=0;f+=parseFloat(g[0])*60*60;f+=parseFloat(g[1])*60;var h=g[2].split(/\.|,/);f+=parseFloat(h[0]);ms=parseFloat(h[1]);if(ms){f+=ms/1000}return f},buildSubtitles:function(){this.subtitlesDisplay=_V_.createElement("div",{className:"vjs-subtitles"});this.box.appendChild(this.subtitlesDisplay);this.activateElement(this.subtitlesDisplay,"subtitlesDisplay")},addVideoListener:function(f,e){_V_.addListener(this.video,f,e.rEvtContext(this))},play:function(){this.video.play();return this},onPlay:function(e){this.addVideoListener("play",e);return this},pause:function(){this.video.pause();return this},onPause:function(e){this.addVideoListener("pause",e);return this},paused:function(){return this.video.paused},currentTime:function(g){if(g!==d){try{this.video.currentTime=g}catch(f){this.warning(b.warnings.videoNotReady)}this.values.currentTime=g;return this}return this.video.currentTime},onCurrentTimeUpdate:function(e){this.currentTimeListeners.push(e)},duration:function(){return this.video.duration},buffered:function(){if(this.values.bufferStart===d){this.values.bufferStart=0;this.values.bufferEnd=0}if(this.video.buffered&&this.video.buffered.length>0){var e=this.video.buffered.end(0);if(e>this.values.bufferEnd){this.values.bufferEnd=e}}return[this.values.bufferStart,this.values.bufferEnd]},volume:function(e){if(e!==d){this.values.volume=Math.max(0,Math.min(1,parseFloat(e)));this.video.volume=this.values.volume;this.setLocalStorage("volume",this.values.volume);return this}if(this.values.volume){return this.values.volume}return this.video.volume},onVolumeChange:function(e){_V_.addListener(this.video,"volumechange",e.rEvtContext(this))},width:function(e){if(e!==d){this.video.width=e;this.box.style.width=e+"px";this.triggerResizeListeners();return this}return this.video.offsetWidth},height:function(e){if(e!==d){this.video.height=e;this.box.style.height=e+"px";this.triggerResizeListeners();return this}return this.video.offsetHeight},supportsFullScreen:function(){if(typeof this.video.webkitEnterFullScreen=="function"){if(!navigator.userAgent.match("Chrome")&&!navigator.userAgent.match("Mac OS X 10.5")){return true}}return false},html5EnterNativeFullScreen:function(){try{this.video.webkitEnterFullScreen()}catch(f){if(f.code==11){this.warning(b.warnings.videoNotReady)}}return this},enterFullScreen:function(){if(this.supportsFullScreen()){this.html5EnterNativeFullScreen()}else{this.enterFullWindow()}},exitFullScreen:function(){if(this.supportsFullScreen()){}else{this.exitFullWindow()}},enterFullWindow:function(){this.videoIsFullScreen=true;this.docOrigOverflow=a.documentElement.style.overflow;_V_.addListener(a,"keydown",this.fullscreenOnEscKey.rEvtContext(this));_V_.addListener(c,"resize",this.fullscreenOnWindowResize.rEvtContext(this));a.documentElement.style.overflow="hidden";_V_.addClass(this.box,"vjs-fullscreen");this.positionAll()},exitFullWindow:function(){this.videoIsFullScreen=false;a.removeEventListener("keydown",this.fullscreenOnEscKey,false);c.removeEventListener("resize",this.fullscreenOnWindowResize,false);a.documentElement.style.overflow=this.docOrigOverflow;_V_.removeClass(this.box,"vjs-fullscreen");this.positionAll()},onError:function(e){this.addVideoListener("error",e);return this},onEnded:function(e){this.addVideoListener("ended",e);return this}});b.player.newBehavior("player",function(e){this.onError(this.playerOnVideoError);this.onPlay(this.playerOnVideoPlay);this.onPlay(this.trackCurrentTime);this.onPause(this.playerOnVideoPause);this.onPause(this.stopTrackingCurrentTime);this.onEnded(this.playerOnVideoEnded);this.trackBuffered();this.onBufferedUpdate(this.isBufferFull)},{playerOnVideoError:function(e){this.log(e);this.log(this.video.error)},playerOnVideoPlay:function(e){this.hasPlayed=true},playerOnVideoPause:function(e){},playerOnVideoEnded:function(e){this.currentTime(0);this.pause()},trackBuffered:function(){this.bufferedInterval=setInterval(this.triggerBufferedListeners.context(this),500)},stopTrackingBuffered:function(){clearInterval(this.bufferedInterval)},bufferedListeners:[],onBufferedUpdate:function(e){this.bufferedListeners.push(e)},triggerBufferedListeners:function(){this.isBufferFull();this.each(this.bufferedListeners,function(e){(e.context(this))()})},isBufferFull:function(){if(this.bufferedPercent()==1){this.stopTrackingBuffered()}},trackCurrentTime:function(){if(this.currentTimeInterval){clearInterval(this.currentTimeInterval)}this.currentTimeInterval=setInterval(this.triggerCurrentTimeListeners.context(this),100);this.trackingCurrentTime=true},stopTrackingCurrentTime:function(){clearInterval(this.currentTimeInterval);this.trackingCurrentTime=false},currentTimeListeners:[],triggerCurrentTimeListeners:function(e,f){this.each(this.currentTimeListeners,function(g){(g.context(this))(f||this.currentTime())})},resizeListeners:[],onResize:function(e){this.resizeListeners.push(e)},triggerResizeListeners:function(){this.each(this.resizeListeners,function(e){(e.context(this))()})}});b.player.newBehavior("mouseOverVideoReporter",function(e){_V_.addListener(e,"mousemove",this.mouseOverVideoReporterOnMouseMove.context(this));_V_.addListener(e,"mouseout",this.mouseOverVideoReporterOnMouseOut.context(this))},{mouseOverVideoReporterOnMouseMove:function(){this.showControlBars();clearInterval(this.mouseMoveTimeout);this.mouseMoveTimeout=setTimeout(this.hideControlBars.context(this),4000)},mouseOverVideoReporterOnMouseOut:function(f){var e=f.relatedTarget;while(e&&e!==this.box){e=e.parentNode}if(e!==this.box){this.hideControlBars()}}});b.player.newBehavior("box",function(e){this.positionBox();_V_.addClass(e,"vjs-paused");this.activateElement(e,"mouseOverVideoReporter");this.onPlay(this.boxOnVideoPlay);this.onPause(this.boxOnVideoPause)},{boxOnVideoPlay:function(){_V_.removeClass(this.box,"vjs-paused");_V_.addClass(this.box,"vjs-playing")},boxOnVideoPause:function(){_V_.removeClass(this.box,"vjs-playing");_V_.addClass(this.box,"vjs-paused")}});b.player.newBehavior("poster",function(e){this.activateElement(e,"mouseOverVideoReporter");this.activateElement(e,"playButton");this.onPlay(this.hidePoster);this.onEnded(this.showPoster);this.onResize(this.positionPoster)},{showPoster:function(){if(!this.poster){return}this.poster.style.display="block";this.positionPoster()},positionPoster:function(){if(!this.poster||this.poster.style.display=="none"){return}this.poster.style.height=this.height()+"px";this.poster.style.width=this.width()+"px"},hidePoster:function(){if(!this.poster){return}this.poster.style.display="none"},updatePosterSource:function(){if(!this.video.poster){var e=this.video.getElementsByTagName("img");if(e.length>0){this.video.poster=e[0].src}}}});b.player.newBehavior("controlBar",function(e){if(!this.controlBars){this.controlBars=[];this.onResize(this.positionControlBars)}this.controlBars.push(e);_V_.addListener(e,"mousemove",this.onControlBarsMouseMove.context(this));_V_.addListener(e,"mouseout",this.onControlBarsMouseOut.context(this))},{showControlBars:function(){if(!this.options.controlsAtStart&&!this.hasPlayed){return}this.each(this.controlBars,function(e){e.style.display="block"})},positionControlBars:function(){this.updatePlayProgressBars();this.updateLoadProgressBars()},hideControlBars:function(){if(this.options.controlsHiding&&!this.mouseIsOverControls){this.each(this.controlBars,function(e){e.style.display="none"})}},onControlBarsMouseMove:function(){this.mouseIsOverControls=true},onControlBarsMouseOut:function(e){this.mouseIsOverControls=false}});b.player.newBehavior("playToggle",function(e){if(!this.elements.playToggles){this.elements.playToggles=[];this.onPlay(this.playTogglesOnPlay);this.onPause(this.playTogglesOnPause)}this.elements.playToggles.push(e);_V_.addListener(e,"click",this.onPlayToggleClick.context(this))},{onPlayToggleClick:function(e){if(this.paused()){this.play()}else{this.pause()}},playTogglesOnPlay:function(e){this.each(this.elements.playToggles,function(f){_V_.removeClass(f,"vjs-paused");_V_.addClass(f,"vjs-playing")})},playTogglesOnPause:function(e){this.each(this.elements.playToggles,function(f){_V_.removeClass(f,"vjs-playing");_V_.addClass(f,"vjs-paused")})}});b.player.newBehavior("playButton",function(e){_V_.addListener(e,"click",this.onPlayButtonClick.context(this))},{onPlayButtonClick:function(e){this.play()}});b.player.newBehavior("pauseButton",function(e){_V_.addListener(e,"click",this.onPauseButtonClick.context(this))},{onPauseButtonClick:function(e){this.pause()}});b.player.newBehavior("playProgressBar",function(e){if(!this.playProgressBars){this.playProgressBars=[];this.onCurrentTimeUpdate(this.updatePlayProgressBars)}this.playProgressBars.push(e)},{updatePlayProgressBars:function(f){var e=(f!==d)?f/this.duration():this.currentTime()/this.duration();if(isNaN(e)){e=0}this.each(this.playProgressBars,function(g){if(g.style){g.style.width=_V_.round(e*100,2)+"%"}})}});b.player.newBehavior("loadProgressBar",function(e){if(!this.loadProgressBars){this.loadProgressBars=[]}this.loadProgressBars.push(e);this.onBufferedUpdate(this.updateLoadProgressBars)},{updateLoadProgressBars:function(){this.each(this.loadProgressBars,function(e){if(e.style){e.style.width=_V_.round(this.bufferedPercent()*100,2)+"%"}})}});b.player.newBehavior("currentTimeDisplay",function(e){if(!this.currentTimeDisplays){this.currentTimeDisplays=[];this.onCurrentTimeUpdate(this.updateCurrentTimeDisplays)}this.currentTimeDisplays.push(e)},{updateCurrentTimeDisplays:function(e){if(!this.currentTimeDisplays){return}var f=(e)?e:this.currentTime();this.each(this.currentTimeDisplays,function(g){g.innerHTML=_V_.formatTime(f)})}});b.player.newBehavior("durationDisplay",function(e){if(!this.durationDisplays){this.durationDisplays=[];this.onCurrentTimeUpdate(this.updateDurationDisplays)}this.durationDisplays.push(e)},{updateDurationDisplays:function(){if(!this.durationDisplays){return}this.each(this.durationDisplays,function(e){if(this.duration()){e.innerHTML=_V_.formatTime(this.duration())}})}});b.player.newBehavior("currentTimeScrubber",function(e){_V_.addListener(e,"mousedown",this.onCurrentTimeScrubberMouseDown.rEvtContext(this))},{onCurrentTimeScrubberMouseDown:function(e,f){e.preventDefault();this.currentScrubber=f;this.stopTrackingCurrentTime();this.videoWasPlaying=!this.paused();this.pause();_V_.blockTextSelection();this.setCurrentTimeWithScrubber(e);_V_.addListener(a,"mousemove",this.onCurrentTimeScrubberMouseMove.rEvtContext(this));_V_.addListener(a,"mouseup",this.onCurrentTimeScrubberMouseUp.rEvtContext(this))},onCurrentTimeScrubberMouseMove:function(e){this.setCurrentTimeWithScrubber(e)},onCurrentTimeScrubberMouseUp:function(e){_V_.unblockTextSelection();a.removeEventListener("mousemove",this.onCurrentTimeScrubberMouseMove,false);a.removeEventListener("mouseup",this.onCurrentTimeScrubberMouseUp,false);if(this.videoWasPlaying){this.play();this.trackCurrentTime()}},setCurrentTimeWithScrubber:function(f){var g=_V_.getRelativePosition(f.pageX,this.currentScrubber);var e=g*this.duration();this.triggerCurrentTimeListeners(0,e);if(e==this.duration()){e=e-0.1}this.currentTime(e)}});b.player.newBehavior("volumeDisplay",function(e){if(!this.volumeDisplays){this.volumeDisplays=[];this.onVolumeChange(this.updateVolumeDisplays)}this.volumeDisplays.push(e);this.updateVolumeDisplay(e)},{updateVolumeDisplays:function(){if(!this.volumeDisplays){return}this.each(this.volumeDisplays,function(e){this.updateVolumeDisplay(e)})},updateVolumeDisplay:function(f){var e=Math.ceil(this.volume()*6);this.each(f.children,function(h,g){if(g<e){_V_.addClass(h,"vjs-volume-level-on")}else{_V_.removeClass(h,"vjs-volume-level-on")}})}});b.player.newBehavior("volumeScrubber",function(e){_V_.addListener(e,"mousedown",this.onVolumeScrubberMouseDown.rEvtContext(this))},{onVolumeScrubberMouseDown:function(e,f){_V_.blockTextSelection();this.currentScrubber=f;this.setVolumeWithScrubber(e);_V_.addListener(a,"mousemove",this.onVolumeScrubberMouseMove.rEvtContext(this));_V_.addListener(a,"mouseup",this.onVolumeScrubberMouseUp.rEvtContext(this))},onVolumeScrubberMouseMove:function(e){this.setVolumeWithScrubber(e)},onVolumeScrubberMouseUp:function(e){this.setVolumeWithScrubber(e);_V_.unblockTextSelection();a.removeEventListener("mousemove",this.onVolumeScrubberMouseMove,false);a.removeEventListener("mouseup",this.onVolumeScrubberMouseUp,false)},setVolumeWithScrubber:function(e){var f=_V_.getRelativePosition(e.pageX,this.currentScrubber);this.volume(f)}});b.player.newBehavior("fullscreenToggle",function(e){_V_.addListener(e,"click",this.onFullscreenToggleClick.context(this))},{onFullscreenToggleClick:function(e){if(!this.videoIsFullScreen){this.enterFullScreen()}else{this.exitFullScreen()}},fullscreenOnWindowResize:function(e){this.positionControlBars()},fullscreenOnEscKey:function(e){if(e.keyCode==27){this.exitFullScreen()}}});b.player.newBehavior("bigPlayButton",function(e){if(!this.elements.bigPlayButtons){this.elements.bigPlayButtons=[];this.onPlay(this.bigPlayButtonsOnPlay);this.onEnded(this.bigPlayButtonsOnEnded)}this.elements.bigPlayButtons.push(e);this.activateElement(e,"playButton")},{bigPlayButtonsOnPlay:function(e){this.hideBigPlayButtons()},bigPlayButtonsOnEnded:function(e){this.showBigPlayButtons()},showBigPlayButtons:function(){this.each(this.elements.bigPlayButtons,function(e){e.style.display="block"})},hideBigPlayButtons:function(){this.each(this.elements.bigPlayButtons,function(e){e.style.display="none"})}});b.player.newBehavior("spinner",function(e){if(!this.spinners){this.spinners=[];_V_.addListener(this.video,"loadeddata",this.spinnersOnVideoLoadedData.context(this));_V_.addListener(this.video,"loadstart",this.spinnersOnVideoLoadStart.context(this));_V_.addListener(this.video,"seeking",this.spinnersOnVideoSeeking.context(this));_V_.addListener(this.video,"seeked",this.spinnersOnVideoSeeked.context(this));_V_.addListener(this.video,"canplay",this.spinnersOnVideoCanPlay.context(this));_V_.addListener(this.video,"canplaythrough",this.spinnersOnVideoCanPlayThrough.context(this));_V_.addListener(this.video,"waiting",this.spinnersOnVideoWaiting.context(this));_V_.addListener(this.video,"stalled",this.spinnersOnVideoStalled.context(this));_V_.addListener(this.video,"suspend",this.spinnersOnVideoSuspend.context(this));_V_.addListener(this.video,"playing",this.spinnersOnVideoPlaying.context(this));_V_.addListener(this.video,"timeupdate",this.spinnersOnVideoTimeUpdate.context(this))}this.spinners.push(e)},{showSpinners:function(){this.each(this.spinners,function(e){e.style.display="block"});clearInterval(this.spinnerInterval);this.spinnerInterval=setInterval(this.rotateSpinners.context(this),100)},hideSpinners:function(){this.each(this.spinners,function(e){e.style.display="none"});clearInterval(this.spinnerInterval)},spinnersRotated:0,rotateSpinners:function(){this.each(this.spinners,function(e){e.style.WebkitTransform="scale(0.5) rotate("+this.spinnersRotated+"deg)";e.style.MozTransform="scale(0.5) rotate("+this.spinnersRotated+"deg)"});if(this.spinnersRotated==360){this.spinnersRotated=0}this.spinnersRotated+=45},spinnersOnVideoLoadedData:function(e){this.hideSpinners()},spinnersOnVideoLoadStart:function(e){this.showSpinners()},spinnersOnVideoSeeking:function(e){},spinnersOnVideoSeeked:function(e){},spinnersOnVideoCanPlay:function(e){},spinnersOnVideoCanPlayThrough:function(e){this.hideSpinners()},spinnersOnVideoWaiting:function(e){this.showSpinners()},spinnersOnVideoStalled:function(e){},spinnersOnVideoSuspend:function(e){},spinnersOnVideoPlaying:function(e){this.hideSpinners()},spinnersOnVideoTimeUpdate:function(e){if(this.spinner.style.display=="block"){this.hideSpinners()}}});b.player.newBehavior("subtitlesDisplay",function(e){if(!this.subtitleDisplays){this.subtitleDisplays=[];this.onCurrentTimeUpdate(this.subtitleDisplaysOnVideoTimeUpdate);this.onEnded(function(){this.lastSubtitleIndex=0}.context(this))}this.subtitleDisplays.push(e)},{subtitleDisplaysOnVideoTimeUpdate:function(h){if(this.subtitles){if(!this.currentSubtitle||this.currentSubtitle.start>=h||this.currentSubtitle.end<h){var g=false,e=(this.subtitles[this.lastSubtitleIndex].start>h),f=this.lastSubtitleIndex-(e)?1:0;while(true){if(e){if(f<0||this.subtitles[f].end<h){break}if(this.subtitles[f].start<h){g=f;break}f--}else{if(f>=this.subtitles.length||this.subtitles[f].start>h){break}if(this.subtitles[f].end>h){g=f;break}f++}}if(g!==false){this.currentSubtitle=this.subtitles[g];this.lastSubtitleIndex=g;this.updateSubtitleDisplays(this.currentSubtitle.text)}else{if(this.currentSubtitle){this.currentSubtitle=false;this.updateSubtitleDisplays("")}}}}},updateSubtitleDisplays:function(e){this.each(this.subtitleDisplays,function(f){f.innerHTML=e})}});b.extend({addClass:function(e,f){if((" "+e.className+" ").indexOf(" "+f+" ")==-1){e.className=e.className===""?f:e.className+" "+f}},removeClass:function(f,e){if(f.className.indexOf(e)==-1){return}var g=f.className.split(/\s+/);g.splice(g.lastIndexOf(e),1);f.className=g.join(" ")},createElement:function(f,e){return this.merge(a.createElement(f),e)},blockTextSelection:function(){a.body.focus();a.onselectstart=function(){return false}},unblockTextSelection:function(){a.onselectstart=function(){return true}},formatTime:function(f){var g=Math.round(f);var e=Math.floor(g/60);e=(e>=10)?e:"0"+e;g=Math.floor(g%60);g=(g>=10)?g:"0"+g;return e+":"+g},getRelativePosition:function(f,e){return Math.max(0,Math.min(1,(f-this.findPosX(e))/e.offsetWidth))},findPosX:function(e){var f=e.offsetLeft;while(e=e.offsetParent){f+=e.offsetLeft}return f},getComputedStyleValue:function(e,f){return c.getComputedStyle(e,null).getPropertyValue(f)},round:function(e,f){if(!f){f=0}return Math.round(e*Math.pow(10,f))/Math.pow(10,f)},addListener:function(e,g,f){if(e.addEventListener){e.addEventListener(g,f,false)}else{if(e.attachEvent){e.attachEvent("on"+g,f)}}},removeListener:function(e,g,f){if(e.removeEventListener){e.removeEventListener(g,f,false)}else{if(e.attachEvent){e.detachEvent("on"+g,f)}}},get:function(e,g){if(typeof XMLHttpRequest=="undefined"){XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(j){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(i){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(h){}throw new Error("This browser does not support XMLHttpRequest.")}}var f=new XMLHttpRequest();f.open("GET",e);f.onreadystatechange=function(){if(f.readyState==4&&f.status==200){g(f.responseText)}}.context(this);f.send()},trim:function(e){return e.toString().replace(/^\s+/,"").replace(/\s+$/,"")},bindDOMReady:function(){if(a.readyState==="complete"){return b.onDOMReady()}if(a.addEventListener){a.addEventListener("DOMContentLoaded",b.DOMContentLoaded,false);c.addEventListener("load",b.onDOMReady,false)}else{if(a.attachEvent){a.attachEvent("onreadystatechange",b.DOMContentLoaded);c.attachEvent("onload",b.onDOMReady)}}},DOMContentLoaded:function(){if(a.addEventListener){a.removeEventListener("DOMContentLoaded",b.DOMContentLoaded,false);b.onDOMReady()}else{if(a.attachEvent){if(a.readyState==="complete"){a.detachEvent("onreadystatechange",b.DOMContentLoaded);b.onDOMReady()}}}},DOMReadyList:[],addToDOMReady:function(e){if(b.DOMIsReady){e.call(a)}else{b.DOMReadyList.push(e)}},DOMIsReady:false,onDOMReady:function(){if(b.DOMIsReady){return}if(!a.body){return setTimeout(b.onDOMReady,13)}b.DOMIsReady=true;if(b.DOMReadyList){for(var e=0;e<b.DOMReadyList.length;e++){b.DOMReadyList[e].call(a)}b.DOMReadyList=null}}});b.bindDOMReady();Function.prototype.context=function(f){var g=this,e=function(){return g.apply(f,arguments)};return e};Function.prototype.evtContext=function(f){var g=this,e=function(){var h=this;return g.call(f,arguments[0],h)};return e};Function.prototype.rEvtContext=function(g,e){if(this.hasContext===true){return this}if(!e){e=g}for(var f in e){if(e[f]==this){e[f]=this.evtContext(g);e[f].hasContext=true;return e[f]}}return this.evtContext(g)};if(c.jQuery){(function(e){e.fn.VideoJS=function(f){this.each(function(){b.setup(this,f)});return this};e.fn.player=function(){return this[0].player}})(jQuery)}c.VideoJS=c._V_=b})(window);
