var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}else{if(d[0]=="b"){d=d.substring(1)}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(isIE&&isWin&&!isOpera){g=ControlVersion()}}}}}return g}function DetectFlashVer(f,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}function AC_Generateobj(e,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in e){c+=b+'="'+e[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,e,g,d,h){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var f=b[c].toLowerCase();switch(f){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],e);a.embedAttrs.src=b[c+1];a.params[g]=b[c+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":a.objAttrs[b[c]]=b[c+1];break;case"id":case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(h){a.embedAttrs.type=h}return a}(function(a){a.jScrollPane={active:[]};a.fn.jScrollPane=function(c){c=a.extend({},a.fn.jScrollPane.defaults,c);var b=function(){return false};return this.each(function(){var t=a(this);var E=this;var an=0;var L;var ao;var r;var ad=c.topCapHeight;var j;if(a(this).parent().is(".jScrollPaneContainer")){j=a(this).parent();an=c.maintainPosition?t.position().top:0;var q=a(this).parent();L=q.innerWidth();ao=q.outerHeight();a(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScrollCap",q).remove();t.css({top:0})}else{t.data("originalStyleTag",t.attr("style"));t.css("overflow","hidden");this.originalPadding=t.css("paddingTop")+" "+t.css("paddingRight")+" "+t.css("paddingBottom")+" "+t.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(t.css("paddingLeft"))||0)+(parseInt(t.css("paddingRight"))||0);L=t.innerWidth();ao=t.innerHeight();j=a("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:ao+"px",width:L+"px"});if(c.enableKeyboardNavigation){j.attr("tabindex",c.tabIndex)}t.wrap(j);j=t.parent();a(document).bind("emchange",function(ap,aq,p){t.jScrollPane(c)})}r=ao;if(c.reinitialiseOnImageLoad){var s=a.data(E,"jScrollPaneImagesToLoad")||a("img",t);var i=[];if(s.length){s.each(function(p,ap){a(this).bind("load readystatechange",function(){if(a.inArray(p,i)==-1){i.push(ap);s=a.grep(s,function(at,ar){return at!=ap});a.data(E,"jScrollPaneImagesToLoad",s);var aq=a.extend(c,{reinitialiseOnImageLoad:false});t.jScrollPane(aq)}}).each(function(aq,ar){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var Y=this.originalSidePaddingTotal;var aj=L-c.scrollbarWidth-c.scrollbarMargin-Y;var U={height:"auto",width:aj+"px"};if(c.scrollbarOnLeft){U.paddingLeft=c.scrollbarMargin+c.scrollbarWidth+"px"}else{U.paddingRight=c.scrollbarMargin+"px"}t.css(U);var W=t.outerHeight();var R=ao/W;var V=R<0.99;j[V?"addClass":"removeClass"]("jScrollPaneScrollable");if(V){j.append(a("<div></div>").addClass("jScrollCap jScrollCapTop").css({height:c.topCapHeight}),a("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:c.scrollbarWidth+"px"}).append(a("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:c.scrollbarWidth+"px"}),a("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:c.scrollbarWidth+"px"}))),a("<div></div>").addClass("jScrollCap jScrollCapBottom").css({height:c.bottomCapHeight}));var ak=a(">.jScrollPaneTrack",j);var u=a(">.jScrollPaneTrack .jScrollPaneDrag",j);var am;var g=[];var aa;var S=function(){if(aa>4||aa%4==0){ai(af+am*I)}aa++};if(c.enableKeyboardNavigation){j.bind("keydown.jscrollpane",function(p){switch(p.keyCode){case 38:am=-1;aa=0;S();g[g.length]=setInterval(S,100);return false;case 40:am=1;aa=0;S();g[g.length]=setInterval(S,100);return false;case 33:case 34:return false;default:}}).bind("keyup.jscrollpane",function(ap){if(ap.keyCode==38||ap.keyCode==40){for(var p=0;p<g.length;p++){clearInterval(g[p])}return false}})}if(c.showArrows){var P;var y;var o=function(p){a("html").unbind("mouseup",o);P.removeClass("jScrollActiveArrowButton");clearInterval(y)};var H=function(){a("html").bind("mouseup",o);P.addClass("jScrollActiveArrowButton");aa=0;S();y=setInterval(S,100)};j.append(a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp",tabindex:-1}).css({width:c.scrollbarWidth+"px",top:c.topCapHeight+"px"}).html("Scroll up").bind("mousedown",function(){P=a(this);am=-1;H();this.blur();return false}).bind("click",b),a("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown",tabindex:-1}).css({width:c.scrollbarWidth+"px",bottom:c.bottomCapHeight+"px"}).html("Scroll down").bind("mousedown",function(){P=a(this);am=1;H();this.blur();return false}).bind("click",b));var v=a(">.jScrollArrowUp",j);var m=a(">.jScrollArrowDown",j)}if(c.arrowSize){r=ao-c.arrowSize-c.arrowSize;ad+=c.arrowSize}else{if(v){var ab=v.height();c.arrowSize=ab;r=ao-ab-m.height();ad+=ab}}r-=c.topCapHeight+c.bottomCapHeight;ak.css({height:r+"px",top:ad+"px"});var ag=a(this).css({position:"absolute",overflow:"visible"});var d;var F;var I;var af=0;var C=R*ao/2;var G=function(ap,ar){var aq=ar=="X"?"Left":"Top";return ap["page"+ar]||(ap["client"+ar]+(document.documentElement["scroll"+aq]||document.body["scroll"+aq]))||0};var O=function(){return false};var ae=function(){X();d=u.offset(false);d.top-=af;F=r-u[0].offsetHeight;I=2*c.wheelSpeed*F/W};var e=function(p){ae();C=G(p,"Y")-af-d.top;a("html").bind("mouseup",z).bind("mousemove",Q).bind("mouseleave",z);if(a.browser.msie){a("html").bind("dragstart",O).bind("selectstart",O)}return false};var z=function(){a("html").unbind("mouseup",z).unbind("mousemove",Q);C=R*ao/2;if(a.browser.msie){a("html").unbind("dragstart",O).unbind("selectstart",O)}};var ai=function(ap){j.scrollTop(0);ap=ap<0?0:(ap>F?F:ap);af=ap;u.css({top:ap+"px"});var aq=ap/F;t.data("jScrollPanePosition",(ao-W)*-aq);ag.css({top:((ao-W)*aq)+"px"});t.trigger("scroll");if(c.showArrows){v[ap==0?"addClass":"removeClass"]("disabled");m[ap==F?"addClass":"removeClass"]("disabled")}};var Q=function(p){ai(G(p,"Y")-d.top-C)};var Z=Math.max(Math.min(R*(ao-c.arrowSize*2),c.dragMaxHeight),c.dragMinHeight);u.css({height:Z+"px"}).bind("mousedown",e);var T;var w;var l;var ac=function(){if(w>8||w%4==0){ai((af-((af-l)/2)))}w++};var al=function(){clearInterval(T);a("html").unbind("mouseup",al).unbind("mousemove",N)};var N=function(p){l=G(p,"Y")-d.top-C};var A=function(p){ae();N(p);w=0;a("html").bind("mouseup",al).bind("mousemove",N);T=setInterval(ac,100);ac();return false};ak.bind("mousedown",A);j.bind("mousewheel",function(ap,ar){ar=ar||(ap.wheelDelta?ap.wheelDelta/120:(ap.detail)?-ap.detail/3:0);ae();X();var aq=af;ai(af-ar*I);var p=aq!=af;return !p});var f;var D;function J(){var p=(f-af)/c.animateStep;if(p>1||p<-1){ai(af+p)}else{ai(f);X()}}var X=function(){if(D){clearInterval(D);delete f}};var ah=function(at,p){if(typeof at=="string"){try{$e=a(at,t)}catch(ar){return}if(!$e.length){return}at=$e.offset().top-t.offset().top}X();var aq=W-ao;at=at>aq?aq:at;t.data("jScrollPaneMaxScroll",aq);var ap=at/aq*F;if(p||!c.animateTo){ai(ap)}else{j.scrollTop(0);f=ap;D=setInterval(J,c.animateInterval)}};t[0].scrollTo=ah;t[0].scrollBy=function(ap){var p=-parseInt(ag.css("top"))||0;ah(p+ap)};ae();ah(-an,true);a("*",this).bind("focus",function(au){var at=a(this);var aw=0;var ap=100;while(at[0]!=t[0]){aw+=at.position().top;at=at.offsetParent();if(!ap--){return}}var p=-parseInt(ag.css("top"))||0;var av=p+ao;var ar=aw>p&&aw<av;if(!ar){var aq=aw-c.scrollbarMargin;if(aw>p){aq+=a(this).height()+15+c.scrollbarMargin-ao}ah(aq)}});if(c.observeHash){if(location.hash&&location.hash.length>1){setTimeout(function(){ah(location.hash)},a.browser.safari?100:0)}a(document).bind("click",function(ap){$target=a(ap.target);if($target.is("a")){var p=$target.attr("href");if(p&&p.substr(0,1)=="#"&&p.length>1){setTimeout(function(){ah(p,!c.animateToInternalLinks)},a.browser.safari?100:0)}}})}function B(p){a(document).bind("mousemove.jScrollPaneDragging",x);a(document).bind("mouseup.jScrollPaneDragging",n)}var M;var h;function K(){direction=M<0?-1:1;t[0].scrollBy(M/2)}function k(){if(h){clearInterval(h);h=undefined}}function x(aq){var ar=t.parent().offset().top;var p=ar+ao;var ap=G(aq,"Y");M=ap<ar?ap-ar:(ap>p?ap-p:0);if(M==0){k()}else{if(!h){h=setInterval(K,100)}}}function n(p){a(document).unbind("mousemove.jScrollPaneDragging").unbind("mouseup.jScrollPaneDragging");k()}j.bind("mousedown.jScrollPane",B);a.jScrollPane.active.push(t[0])}else{t.css({height:ao+"px",width:L-this.originalSidePaddingTotal+"px",padding:this.originalPadding});t[0].scrollTo=t[0].scrollBy=function(){};t.parent().unbind("mousewheel").unbind("mousedown.jScrollPane").unbind("keydown.jscrollpane").unbind("keyup.jscrollpane")}})};a.fn.jScrollPaneRemove=function(){a(this).each(function(){$this=a(this);var b=$this.parent();if(b.is(".jScrollPaneContainer")){$this.css({top:"",height:"",width:"",padding:"",overflow:"",position:""});$this.attr("style",$this.data("originalStyleTag"));b.after($this).remove()}})};a.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0,observeHash:true};a(window).bind("unload",function(){var c=a.jScrollPane.active;for(var b=0;b<c.length;b++){c[b].scrollTo=c[b].scrollBy=null}})})(jQuery);(function($){var calcFloat={get:function(num){var num=num.toString();if(num.indexOf(".")==-1){return[0,eval(num)]}var nn=num.split(".");var po=nn[1].length;var st=nn.join("");var sign="";if(st.charAt(0)=="-"){st=st.substr(1);sign="-"}for(var i=0;i<st.length;++i){if(st.charAt(0)=="0"){st=st.substr(1,st.length)}}st=sign+st;return[po,eval(st)]},getInt:function(num,figure){var d=Math.pow(10,figure);var n=this.get(num);var v1=eval("num * d");var v2=eval("n[1] * d");if(this.get(v1)[1]==v2){return v1}return(n[0]==0?v1:eval(v2+"/Math.pow(10, n[0])"))},sum:function(v1,v2){var n1=this.get(v1);var n2=this.get(v2);var figure=(n1[0]>n2[0]?n1[0]:n2[0]);v1=this.getInt(v1,figure);v2=this.getInt(v2,figure);return eval("v1 + v2")/Math.pow(10,figure)}};$.extend({spin:{imageBasePath:"/img/spin/",spinBtnImage:"spin-button.png",spinUpImage:"spin-up.png",spinDownImage:"spin-down.png",interval:1,max:null,min:null,timeInterval:500,timeBlink:200,btnClass:null,btnCss:{cursor:"pointer",padding:0,margin:0,verticalAlign:"middle"},txtCss:{marginRight:0,paddingRight:0},lock:false,decimal:null,beforeChange:null,changed:null,buttonUp:null,buttonDown:null}});$.fn.extend({spin:function(o){return this.each(function(){o=o||{};var opt={};$.each($.spin,function(k,v){opt[k]=(typeof o[k]!="undefined"?o[k]:v)});var txt=$(this);var spinBtnImage=opt.imageBasePath+opt.spinBtnImage;var btnSpin=new Image();btnSpin.src=spinBtnImage;var spinUpImage=opt.imageBasePath+opt.spinUpImage;var btnSpinUp=new Image();btnSpinUp.src=spinUpImage;var spinDownImage=opt.imageBasePath+opt.spinDownImage;var btnSpinDown=new Image();btnSpinDown.src=spinDownImage;var btn=$(document.createElement("img"));btn.attr("src",spinBtnImage);if(opt.btnClass){btn.addClass(opt.btnClass)}if(opt.btnCss){btn.css(opt.btnCss)}if(opt.txtCss){txt.css(opt.txtCss)}txt.after(btn);if(opt.lock){txt.focus(function(){txt.blur()})}function spin(vector){var val=txt.val();var org_val=val;if(opt.decimal){val=val.replace(opt.decimal,".")}if(!isNaN(val)){val=calcFloat.sum(val,vector*opt.interval);if(opt.min!==null&&val<opt.min){val=opt.min}if(opt.max!==null&&val>opt.max){val=opt.max}if(val!=txt.val()){if(opt.decimal){val=val.toString().replace(".",opt.decimal)}var ret=($.isFunction(opt.beforeChange)?opt.beforeChange.apply(txt,[val,org_val]):true);if(ret!==false){txt.val(val);if($.isFunction(opt.changed)){opt.changed.apply(txt,[val])}txt.change();src=(vector>0?spinUpImage:spinDownImage);btn.attr("src",src);if(opt.timeBlink<opt.timeInterval){setTimeout(function(){btn.attr("src",spinBtnImage)},opt.timeBlink)}}}}if(vector>0){if($.isFunction(opt.buttonUp)){opt.buttonUp.apply(txt,[val])}}else{if($.isFunction(opt.buttonDown)){opt.buttonDown.apply(txt,[val])}}}btn.mousedown(function(e){var pos=e.pageY-btn.offset().top;var vector=(btn.height()/2>pos?1:-1);(function(){spin(vector);var tk=setTimeout(arguments.callee,opt.timeInterval);$(document).one("mouseup",function(){clearTimeout(tk);btn.attr("src",spinBtnImage)})})();return false})})}})})(jQuery);(function(f){var e=["DOMMouseScroll","mousewheel"];f.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var a=e.length;a;){this.addEventListener(e[--a],d,false)}}else{this.onmousewheel=d}},teardown:function(){if(this.removeEventListener){for(var a=e.length;a;){this.removeEventListener(e[--a],d,false)}}else{this.onmousewheel=null}}};f.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}});function d(b){var h=[].slice.call(arguments,1),a=0,c=true;b=f.event.fix(b||window.event);b.type="mousewheel";if(b.wheelDelta){a=b.wheelDelta/120}if(b.detail){a=-b.detail/3}h.unshift(b,a);return f.event.handle.apply(this,h)}})(jQuery);if(!this.JSON){this.JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());var SWFUpload;var swfobject;if(SWFUpload==undefined){SWFUpload=function(a){this.initSWFUpload(a)}}SWFUpload.prototype.initSWFUpload=function(b){try{this.customSettings={};this.settings={};this.eventQueue=[];this.movieName="SWFUpload_"+SWFUpload.movieCount++;this.movieElement=null;SWFUpload.instances[this.movieName]=this;this.initSettings(b);this.loadSupport();if(this.swfuploadPreload()){this.loadFlash()}this.displayDebugInfo()}catch(a){delete SWFUpload.instances[this.movieName];throw a}};SWFUpload.instances={};SWFUpload.movieCount=0;SWFUpload.version="2.5.0 2010-01-15 Beta 2";SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130};SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290,RESIZE:-300};SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5};SWFUpload.UPLOAD_TYPE={NORMAL:-1,RESIZED:-2};SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120,JAVASCRIPT:-130,NONE:-130};SWFUpload.CURSOR={ARROW:-1,HAND:-2};SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"};SWFUpload.RESIZE_ENCODING={JPEG:-1,PNG:-2};SWFUpload.completeURL=function(a){try{var d="",c=-1;if(typeof(a)!=="string"||a.match(/^https?:\/\//i)||a.match(/^\//)||a===""){return a}c=window.location.pathname.lastIndexOf("/");if(c<=0){d="/"}else{d=window.location.pathname.substr(0,c)+"/"}return d+a}catch(b){return a}};SWFUpload.onload=function(){};SWFUpload.prototype.initSettings=function(a){this.ensureDefault=function(c,b){var d=a[c];if(d!=undefined){this.settings[c]=d}else{this.settings[c]=b}};this.ensureDefault("upload_url","");this.ensureDefault("preserve_relative_urls",false);this.ensureDefault("file_post_name","Filedata");this.ensureDefault("post_params",{});this.ensureDefault("use_query_string",false);this.ensureDefault("requeue_on_error",false);this.ensureDefault("http_success",[]);this.ensureDefault("assume_success_timeout",0);this.ensureDefault("file_types","*.*");this.ensureDefault("file_types_description","All Files");this.ensureDefault("file_size_limit",0);this.ensureDefault("file_upload_limit",0);this.ensureDefault("file_queue_limit",0);this.ensureDefault("flash_url","swfupload.swf");this.ensureDefault("flash9_url","swfupload_fp9.swf");this.ensureDefault("prevent_swf_caching",true);this.ensureDefault("button_image_url","");this.ensureDefault("button_width",1);this.ensureDefault("button_height",1);this.ensureDefault("button_text","");this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;");this.ensureDefault("button_text_top_padding",0);this.ensureDefault("button_text_left_padding",0);this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES);this.ensureDefault("button_disabled",false);this.ensureDefault("button_placeholder_id","");this.ensureDefault("button_placeholder",null);this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW);this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW);this.ensureDefault("debug",false);this.settings.debug_enabled=this.settings.debug;this.settings.return_upload_start_handler=this.returnUploadStart;this.ensureDefault("swfupload_preload_handler",null);this.ensureDefault("swfupload_load_failed_handler",null);this.ensureDefault("swfupload_loaded_handler",null);this.ensureDefault("file_dialog_start_handler",null);this.ensureDefault("file_queued_handler",null);this.ensureDefault("file_queue_error_handler",null);this.ensureDefault("file_dialog_complete_handler",null);this.ensureDefault("upload_resize_start_handler",null);this.ensureDefault("upload_start_handler",null);this.ensureDefault("upload_progress_handler",null);this.ensureDefault("upload_error_handler",null);this.ensureDefault("upload_success_handler",null);this.ensureDefault("upload_complete_handler",null);this.ensureDefault("mouse_click_handler",null);this.ensureDefault("mouse_out_handler",null);this.ensureDefault("mouse_over_handler",null);this.ensureDefault("debug_handler",this.debugMessage);this.ensureDefault("custom_settings",{});this.customSettings=this.settings.custom_settings;if(!!this.settings.prevent_swf_caching){this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime();this.settings.flash9_url=this.settings.flash9_url+(this.settings.flash9_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+new Date().getTime()}if(!this.settings.preserve_relative_urls){this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url);this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)}delete this.ensureDefault};SWFUpload.prototype.loadSupport=function(){this.support={loading:swfobject.hasFlashPlayerVersion("9.0.28"),imageResize:swfobject.hasFlashPlayerVersion("10.0.0")}};SWFUpload.prototype.loadFlash=function(){var b,f,e,a,d;if(!this.support.loading){this.queueEvent("swfupload_load_failed_handler",["Flash Player doesn't support SWFUpload"]);return}if(document.getElementById(this.movieName)!==null){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["Element ID already in use"]);return}b=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder;if(b==undefined){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["button place holder not found"]);return}e=(b.currentStyle&&b.currentStyle.display||window.getComputedStyle&&document.defaultView.getComputedStyle(b,null).getPropertyValue("display"))!=="block"?"span":"div";f=document.createElement(e);a=this.getFlashHTML();try{f.innerHTML=a}catch(c){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["Exception loading Flash HTML into placeholder"]);return}d=f.getElementsByTagName("object");if(!d||d.length>1||d.length===0){this.support.loading=false;this.queueEvent("swfupload_load_failed_handler",["Unable to find movie after adding to DOM"]);return}else{if(d.length===1){this.movieElement=d[0]}}b.parentNode.replaceChild(f.firstChild,b);if(window[this.movieName]==undefined){window[this.movieName]=this.getMovieElement()}};SWFUpload.prototype.getFlashHTML=function(a){return['<object id="',this.movieName,'" type="application/x-shockwave-flash" data="',(this.support.imageResize?this.settings.flash_url:this.settings.flash9_url),'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',(this.support.imageResize?this.settings.flash_url:this.settings.flash9_url),'" />','<param name="quality" value="high" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")};SWFUpload.prototype.getFlashVars=function(){var a,b;b=this.buildParamString();a=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(a),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",encodeURIComponent(b),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")};SWFUpload.prototype.getMovieElement=function(){if(this.movieElement==undefined){this.movieElement=document.getElementById(this.movieName)}if(this.movieElement===null){throw"Could not find Flash element"}return this.movieElement};SWFUpload.prototype.buildParamString=function(){var a,c,b=[];c=this.settings.post_params;if(typeof(c)==="object"){for(a in c){if(c.hasOwnProperty(a)){b.push(encodeURIComponent(a.toString())+"="+encodeURIComponent(c[a].toString()))}}}return b.join("&amp;")};SWFUpload.prototype.destroy=function(){var a;try{this.cancelUpload(null,false);a=this.cleanUp();if(a){try{a.parentNode.removeChild(a)}catch(b){}}window[this.movieName]=null;SWFUpload.instances[this.movieName]=null;delete SWFUpload.instances[this.movieName];this.movieElement=null;this.settings=null;this.customSettings=null;this.eventQueue=null;this.movieName=null;return true}catch(c){return false}};SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url:               ",this.settings.upload_url,"\n","\t","flash_url:                ",this.settings.flash_url,"\n","\t","flash9_url:                ",this.settings.flash9_url,"\n","\t","use_query_string:         ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error:         ",this.settings.requeue_on_error.toString(),"\n","\t","http_success:             ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout:   ",this.settings.assume_success_timeout,"\n","\t","file_post_name:           ",this.settings.file_post_name,"\n","\t","post_params:              ",this.settings.post_params.toString(),"\n","\t","file_types:               ",this.settings.file_types,"\n","\t","file_types_description:   ",this.settings.file_types_description,"\n","\t","file_size_limit:          ",this.settings.file_size_limit,"\n","\t","file_upload_limit:        ",this.settings.file_upload_limit,"\n","\t","file_queue_limit:         ",this.settings.file_queue_limit,"\n","\t","debug:                    ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching:      ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id:    ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder:       ",(this.settings.button_placeholder?"Set":"Not Set"),"\n","\t","button_image_url:         ",this.settings.button_image_url.toString(),"\n","\t","button_width:             ",this.settings.button_width.toString(),"\n","\t","button_height:            ",this.settings.button_height.toString(),"\n","\t","button_text:              ",this.settings.button_text.toString(),"\n","\t","button_text_style:        ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding:  ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action:            ",this.settings.button_action.toString(),"\n","\t","button_cursor:            ",this.settings.button_cursor.toString(),"\n","\t","button_disabled:          ",this.settings.button_disabled.toString(),"\n","\t","custom_settings:          ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_preload_handler assigned:  ",(typeof this.settings.swfupload_preload_handler==="function").toString(),"\n","\t","swfupload_load_failed_handler assigned:  ",(typeof this.settings.swfupload_load_failed_handler==="function").toString(),"\n","\t","swfupload_loaded_handler assigned:  ",(typeof this.settings.swfupload_loaded_handler==="function").toString(),"\n","\t","mouse_click_handler assigned:       ",(typeof this.settings.mouse_click_handler==="function").toString(),"\n","\t","mouse_over_handler assigned:        ",(typeof this.settings.mouse_over_handler==="function").toString(),"\n","\t","mouse_out_handler assigned:         ",(typeof this.settings.mouse_out_handler==="function").toString(),"\n","\t","file_dialog_start_handler assigned: ",(typeof this.settings.file_dialog_start_handler==="function").toString(),"\n","\t","file_queued_handler assigned:       ",(typeof this.settings.file_queued_handler==="function").toString(),"\n","\t","file_queue_error_handler assigned:  ",(typeof this.settings.file_queue_error_handler==="function").toString(),"\n","\t","upload_resize_start_handler assigned:      ",(typeof this.settings.upload_resize_start_handler==="function").toString(),"\n","\t","upload_start_handler assigned:      ",(typeof this.settings.upload_start_handler==="function").toString(),"\n","\t","upload_progress_handler assigned:   ",(typeof this.settings.upload_progress_handler==="function").toString(),"\n","\t","upload_error_handler assigned:      ",(typeof this.settings.upload_error_handler==="function").toString(),"\n","\t","upload_success_handler assigned:    ",(typeof this.settings.upload_success_handler==="function").toString(),"\n","\t","upload_complete_handler assigned:   ",(typeof this.settings.upload_complete_handler==="function").toString(),"\n","\t","debug_handler assigned:             ",(typeof this.settings.debug_handler==="function").toString(),"\n","Support:\n","\t","Load:                     ",(this.support.loading?"Yes":"No"),"\n","\t","Image Resize:             ",(this.support.imageResize?"Yes":"No"),"\n"].join(""))};SWFUpload.prototype.addSetting=function(b,c,a){if(c==undefined){return(this.settings[b]=a)}else{return(this.settings[b]=c)}};SWFUpload.prototype.getSetting=function(a){if(this.settings[a]!=undefined){return this.settings[a]}return""};SWFUpload.prototype.callFlash=function(functionName,argumentArray){var movieElement,returnValue,returnString;argumentArray=argumentArray||[];movieElement=this.getMovieElement();try{if(movieElement!=undefined){returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>");returnValue=eval(returnString)}else{this.debug("Can't call flash because the movie wasn't found.")}}catch(ex){this.debug("Exception calling flash function '"+functionName+"': "+ex.message)}if(returnValue!=undefined&&typeof returnValue.post==="object"){returnValue=this.unescapeFilePostParams(returnValue)}return returnValue};SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")};SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")};SWFUpload.prototype.startUpload=function(a){this.callFlash("StartUpload",[a])};SWFUpload.prototype.startResizedUpload=function(b,d,a,e,f,c){this.callFlash("StartUpload",[b,{width:d,height:a,encoding:e,quality:f,allowEnlarging:c}])};SWFUpload.prototype.cancelUpload=function(a,b){if(b!==false){b=true}this.callFlash("CancelUpload",[a,b])};SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")};SWFUpload.prototype.requeueUpload=function(a){return this.callFlash("RequeueUpload",[a])};SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")};SWFUpload.prototype.setStats=function(a){this.callFlash("SetStats",[a])};SWFUpload.prototype.getFile=function(a){if(typeof(a)==="number"){return this.callFlash("GetFileByIndex",[a])}else{return this.callFlash("GetFile",[a])}};SWFUpload.prototype.getQueueFile=function(a){if(typeof(a)==="number"){return this.callFlash("GetFileByQueueIndex",[a])}else{return this.callFlash("GetFile",[a])}};SWFUpload.prototype.addFileParam=function(a,b,c){return this.callFlash("AddFileParam",[a,b,c])};SWFUpload.prototype.removeFileParam=function(a,b){this.callFlash("RemoveFileParam",[a,b])};SWFUpload.prototype.setUploadURL=function(a){this.settings.upload_url=a.toString();this.callFlash("SetUploadURL",[a])};SWFUpload.prototype.setPostParams=function(a){this.settings.post_params=a;this.callFlash("SetPostParams",[a])};SWFUpload.prototype.addPostParam=function(a,b){this.settings.post_params[a]=b;this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.removePostParam=function(a){delete this.settings.post_params[a];this.callFlash("SetPostParams",[this.settings.post_params])};SWFUpload.prototype.setFileTypes=function(a,b){this.settings.file_types=a;this.settings.file_types_description=b;this.callFlash("SetFileTypes",[a,b])};SWFUpload.prototype.setFileSizeLimit=function(a){this.settings.file_size_limit=a;this.callFlash("SetFileSizeLimit",[a])};SWFUpload.prototype.setFileUploadLimit=function(a){this.settings.file_upload_limit=a;this.callFlash("SetFileUploadLimit",[a])};SWFUpload.prototype.setFileQueueLimit=function(a){this.settings.file_queue_limit=a;this.callFlash("SetFileQueueLimit",[a])};SWFUpload.prototype.setFilePostName=function(a){this.settings.file_post_name=a;this.callFlash("SetFilePostName",[a])};SWFUpload.prototype.setUseQueryString=function(a){this.settings.use_query_string=a;this.callFlash("SetUseQueryString",[a])};SWFUpload.prototype.setRequeueOnError=function(a){this.settings.requeue_on_error=a;this.callFlash("SetRequeueOnError",[a])};SWFUpload.prototype.setHTTPSuccess=function(a){if(typeof a==="string"){a=a.replace(" ","").split(",")}this.settings.http_success=a;this.callFlash("SetHTTPSuccess",[a])};SWFUpload.prototype.setAssumeSuccessTimeout=function(a){this.settings.assume_success_timeout=a;this.callFlash("SetAssumeSuccessTimeout",[a])};SWFUpload.prototype.setDebugEnabled=function(a){this.settings.debug_enabled=a;this.callFlash("SetDebugEnabled",[a])};SWFUpload.prototype.setButtonImageURL=function(a){if(a==undefined){a=""}this.settings.button_image_url=a;this.callFlash("SetButtonImageURL",[a])};SWFUpload.prototype.setButtonDimensions=function(c,a){this.settings.button_width=c;this.settings.button_height=a;var b=this.getMovieElement();if(b!=undefined){b.style.width=c+"px";b.style.height=a+"px"}this.callFlash("SetButtonDimensions",[c,a])};SWFUpload.prototype.setButtonText=function(a){this.settings.button_text=a;this.callFlash("SetButtonText",[a])};SWFUpload.prototype.setButtonTextPadding=function(b,a){this.settings.button_text_top_padding=a;this.settings.button_text_left_padding=b;this.callFlash("SetButtonTextPadding",[b,a])};SWFUpload.prototype.setButtonTextStyle=function(a){this.settings.button_text_style=a;this.callFlash("SetButtonTextStyle",[a])};SWFUpload.prototype.setButtonDisabled=function(a){this.settings.button_disabled=a;this.callFlash("SetButtonDisabled",[a])};SWFUpload.prototype.setButtonAction=function(a){this.settings.button_action=a;this.callFlash("SetButtonAction",[a])};SWFUpload.prototype.setButtonCursor=function(a){this.settings.button_cursor=a;this.callFlash("SetButtonCursor",[a])};SWFUpload.prototype.queueEvent=function(b,c){var a=this;if(c==undefined){c=[]}else{if(!(c instanceof Array)){c=[c]}}if(typeof this.settings[b]==="function"){this.eventQueue.push(function(){this.settings[b].apply(this,c)});setTimeout(function(){a.executeNextEvent()},0)}else{if(this.settings[b]!==null){throw"Event handler "+b+" is unknown or is not a function"}}};SWFUpload.prototype.executeNextEvent=function(){var a=this.eventQueue?this.eventQueue.shift():null;if(typeof(a)==="function"){a.apply(this)}};SWFUpload.prototype.unescapeFilePostParams=function(c){var e=/[$]([0-9a-f]{4})/i,f={},d,a,b;if(c!=undefined){for(a in c.post){if(c.post.hasOwnProperty(a)){d=a;while((b=e.exec(d))!==null){d=d.replace(b[0],String.fromCharCode(parseInt("0x"+b[1],16)))}f[d]=c.post[a]}}c.post=f}return c};SWFUpload.prototype.swfuploadPreload=function(){var a;if(typeof this.settings.swfupload_preload_handler==="function"){a=this.settings.swfupload_preload_handler.call(this)}else{if(this.settings.swfupload_preload_handler!=undefined){throw"upload_start_handler must be a function"}}if(a===undefined){a=true}return !!a};SWFUpload.prototype.flashReady=function(){var a=this.cleanUp();if(!a){this.debug("Flash called back ready but the flash movie can't be found.");return}this.queueEvent("swfupload_loaded_handler")};SWFUpload.prototype.cleanUp=function(){var c,a=this.getMovieElement();try{if(a&&typeof(a.CallFunction)==="unknown"){this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");for(c in a){try{if(typeof(a[c])==="function"){a[c]=null}}catch(b){}}}}catch(d){}window.__flash__removeCallback=function(e,f){try{if(e){e[f]=null}}catch(g){}};return a};SWFUpload.prototype.mouseClick=function(){this.queueEvent("mouse_click_handler")};SWFUpload.prototype.mouseOver=function(){this.queueEvent("mouse_over_handler")};SWFUpload.prototype.mouseOut=function(){this.queueEvent("mouse_out_handler")};SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")};SWFUpload.prototype.fileQueued=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("file_queued_handler",a)};SWFUpload.prototype.fileQueueError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("file_queue_error_handler",[a,c,b])};SWFUpload.prototype.fileDialogComplete=function(b,c,a){this.queueEvent("file_dialog_complete_handler",[b,c,a])};SWFUpload.prototype.uploadResizeStart=function(b,a){b=this.unescapeFilePostParams(b);this.queueEvent("upload_resize_start_handler",[b,a.width,a.height,a.encoding,a.quality])};SWFUpload.prototype.uploadStart=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("return_upload_start_handler",a)};SWFUpload.prototype.returnUploadStart=function(a){var b;if(typeof this.settings.upload_start_handler==="function"){a=this.unescapeFilePostParams(a);b=this.settings.upload_start_handler.call(this,a)}else{if(this.settings.upload_start_handler!=undefined){throw"upload_start_handler must be a function"}}if(b===undefined){b=true}b=!!b;this.callFlash("ReturnUploadStart",[b])};SWFUpload.prototype.uploadProgress=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("upload_progress_handler",[a,c,b])};SWFUpload.prototype.uploadError=function(a,c,b){a=this.unescapeFilePostParams(a);this.queueEvent("upload_error_handler",[a,c,b])};SWFUpload.prototype.uploadSuccess=function(b,a,c){b=this.unescapeFilePostParams(b);this.queueEvent("upload_success_handler",[b,a,c])};SWFUpload.prototype.uploadComplete=function(a){a=this.unescapeFilePostParams(a);this.queueEvent("upload_complete_handler",a)};SWFUpload.prototype.debug=function(a){this.queueEvent("debug_handler",a)};SWFUpload.prototype.debugMessage=function(c){var a,d,b;if(this.settings.debug){d=[];if(typeof c==="object"&&typeof c.name==="string"&&typeof c.message==="string"){for(b in c){if(c.hasOwnProperty(b)){d.push(b+": "+c[b])}}a=d.join("\n")||"";d=a.split("\n");a="EXCEPTION: "+d.join("\nEXCEPTION: ");SWFUpload.Console.writeLine(a)}else{SWFUpload.Console.writeLine(c)}}};SWFUpload.Console={};SWFUpload.Console.writeLine=function(d){var b,a;try{b=document.getElementById("SWFUpload_Console");if(!b){a=document.createElement("form");document.getElementsByTagName("body")[0].appendChild(a);b=document.createElement("textarea");b.id="SWFUpload_Console";b.style.fontFamily="monospace";b.setAttribute("wrap","off");b.wrap="off";b.style.overflow="auto";b.style.width="700px";b.style.height="350px";b.style.margin="5px";a.appendChild(b)}b.value+=d+"\n";b.scrollTop=b.scrollHeight-b.clientHeight}catch(c){alert("Exception: "+c.name+" Message: "+c.message)}};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),j=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],k=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){k=aB.plugins[ab].description;if(k&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var i=new ActiveXObject(X);if(i){k=i.GetVariable("$version");if(k){d=true;k=k.split(" ")[1].split(",");f=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:j}}(),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 l=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var i=aS(c);if(i){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(l){a.success=true;a.ref=av(c);l(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=i.getAttribute("width")||"0";e.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){e.styleclass=i.getAttribute("class")}if(i.getAttribute("align")){e.align=i.getAttribute("align")}var f={};var d=i.getElementsByTagName("param");var k=d.length;for(var j=0;j<k;j++){if(d[j].getAttribute("name").toLowerCase()!="movie"){f[d[j].getAttribute("name")]=d[j].getAttribute("value")}}ae(e,f,c,l)}else{aF(i);if(l){l(a)}}}}}else{ay(c,true);if(l){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}l(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 i in e){if(e[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){g.movie=e[i]}else{if(i.toLowerCase()=="styleclass"){f+=' class="'+e[i]+'"'}else{if(i.toLowerCase()!="classid"){f+=" "+i+'="'+e[i]+'"'}}}}}var h="";for(var j in g){if(g[j]!=Object.prototype[j]){h+='<param name="'+j+'" value="'+g[j]+'" />'}}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 k in e){if(e[k]!=Object.prototype[k]){if(k.toLowerCase()=="styleclass"){b.setAttribute("class",e[k])}else{if(k.toLowerCase()!="classid"){b.setAttribute(k,e[k])}}}}for(var l in g){if(g[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"){aQ(b,l,g[l])}}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(k,e,h,f,c,a,b,i,g,j){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&k&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var q={};if(g&&typeof g===aD){for(var o in g){q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aD){for(var p in i){n[p]=i[p]}}if(b&&typeof b===aD){for(var l in b){if(typeof n.flashvars!=aq){n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ao(c)){var m=aA(q,n,e);if(q.id==e){ay(e,true)}d.success=true;d.ref=m}else{if(a&&au()){q.data=a;ae(q,n,e,j);return}else{ay(e,true)}}if(j){j(d)}})}else{if(j){j(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}}}}();swfobject.addDomLoadEvent(function(){if(typeof(SWFUpload.onload)==="function"){SWFUpload.onload.call(window)}});jwplayer=function(b){return jwplayer.constructor(b)};jwplayer.constructor=function(b){};$jw=jwplayer;jwplayer.utils=function(){};jwplayer.utils.typeOf=function(c){var d=typeof c;if(d==="object"){if(c){if(c instanceof Array){d="array"}}else{d="null"}}return d};jwplayer.utils.extend=function(){var d=jwplayer.utils.extend["arguments"];if(d.length>1){for(var c=1;c<d.length;c++){for(element in d[c]){d[0][element]=d[c][element]}}return d[0]}return null};jwplayer.utils.extension=function(b){return b.substr(b.lastIndexOf(".")+1,b.length).toLowerCase()};jwplayer.utils.html=function(d,c){d.innerHTML=c};jwplayer.utils.append=function(d,c){d.appendChild(c)};jwplayer.utils.wrap=function(d,c){d.parentNode.replaceChild(c,d);c.appendChild(d)};jwplayer.utils.ajax=function(g,h,f){var e;if(window.XMLHttpRequest){e=new XMLHttpRequest()}else{e=new ActiveXObject("Microsoft.XMLHTTP")}e.onreadystatechange=function(){if(e.readyState===4){if(e.status===200){if(h){h(e)}}else{if(f){f(g)}}}};e.open("GET",g,true);e.send(null);return e};jwplayer.utils.load=function(d,f,e){d.onreadystatechange=function(){if(d.readyState===4){if(d.status===200){if(f){f()}}else{if(e){e()}}}}};jwplayer.utils.find=function(c,d){return c.getElementsByTagName(d)};jwplayer.utils.append=function(d,c){d.appendChild(c)};jwplayer.utils.isIE=function(){return(!+"\v1")};jwplayer.utils.isIOS=function(){var b=navigator.userAgent.toLowerCase();return(b.match(/iP(hone|ad)/i)!==null)};jwplayer.utils.hasHTML5=function(e){var f=document.createElement("video");if(!!f.canPlayType){if(e){var g={};if(e.playlist&&e.playlist.length){g.file=e.playlist[0].file;g.levels=e.playlist[0].levels}else{g.file=e.file;g.levels=e.levels}if(g.file){return jwplayer.utils.vidCanPlay(f,g.file)}else{if(g.levels&&g.levels.length){for(var h=0;h<g.levels.length;h++){if(g.levels[h].file&&jwplayer.utils.vidCanPlay(f,g.levels[h].file)){return true}}}}}else{return true}}return false};jwplayer.utils.vidCanPlay=function(d,e){var f=jwplayer.utils.strings.extension(e);if(jwplayer.utils.extensionmap[f]!==undefined){sourceType=jwplayer.utils.extensionmap[f]}else{sourceType="video/"+f+";"}return(d.canPlayType(sourceType)||e.toLowerCase().indexOf("youtube.com")>-1)};jwplayer.utils.hasFlash=function(){return(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")||(typeof window.ActiveXObject!="undefined")};(function(n){n.utils.mediaparser=function(){};var l={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 m={};n.utils.mediaparser.parseMedia=function(a){return o(a)};function p(a,b){if(b===undefined){b=l[a]}else{n.utils.extend(b,l[a])}return b}function o(a,e){if(m[a.tagName.toLowerCase()]&&(e===undefined)){return m[a.tagName.toLowerCase()](a)}else{e=p("element",e);var f={};for(var d in e){if(d!="length"){var b=a.getAttribute(d);if(!(b===""||b===undefined||b===null)){f[e[d]]=a.getAttribute(d)}}}var c=a.style["#background-color"];if(c&&!(c=="transparent"||c=="rgba(0, 0, 0, 0)")){f.screencolor=c}return f}}function k(f,c){c=p("media",c);var a=[];if(n.utils.isIE()){var b=f.nextSibling;if(b!==undefined){while(b.tagName.toLowerCase()=="source"){a.push(j(b));b=b.nextSibling}}}else{var d=n.utils.selectors("source",f);for(var g in d){if(!isNaN(g)){a.push(j(d[g]))}}}var e=o(f,c);if(e.file!==undefined){a[0]={file:e.file}}e.levels=a;return e}function j(a,b){b=p("source",b);var c=o(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function i(a,b){b=p("video",b);var c=k(a,b);return c}n.utils.mediaparser.replaceMediaElement=function(e,c){if(n.utils.isIE()){var b=false;var f=[];var a=e.nextSibling;while(a&&!b){f.push(a);if(a.nodeType==1&&a.tagName.toLowerCase()==("/")+e.tagName.toLowerCase()){b=true}a=a.nextSibling}if(b){while(f.length>0){var d=f.pop();d.parentNode.removeChild(d)}}e.outerHTML=c}};m.media=k;m.audio=k;m.source=j;m.video=i})(jwplayer);jwplayer.utils.selectors=function(e,f){if(f===undefined){f=document}e=jwplayer.utils.strings.trim(e);var d=e.charAt(0);if(d=="#"){return f.getElementById(e.substr(1))}else{if(d=="."){if(f.getElementsByClassName){return f.getElementsByClassName(e.substr(1))}else{return jwplayer.utils.selectors.getElementsByTagAndClass("*",e.substr(1))}}else{if(e.indexOf(".")>0){selectors=e.split(".");return jwplayer.utils.selectors.getElementsByTagAndClass(selectors[0],selectors[1])}else{return f.getElementsByTagName(e)}}}return null};jwplayer.utils.selectors.getElementsByTagAndClass=function(m,j,k){elements=[];if(k===undefined){k=document}var l=k.getElementsByTagName(m);for(var n=0;n<l.length;n++){if(l[n].className!==undefined){var h=l[n].className.split(" ");for(var i=0;i<h.length;i++){if(h[i]==j){elements.push(l[n])}}}}return elements};jwplayer.utils.strings=function(){};jwplayer.utils.strings.trim=function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")};jwplayer.utils.strings.extension=function(b){return b.substr(b.lastIndexOf(".")+1,b.length).toLowerCase()};(function(b){b.utils.extensionmap={"3gp":"video/3gpp","3gpp":"video/3gpp","3g2":"video/3gpp2","3gpp2":"video/3gpp2",flv:"video/x-flv",f4a:"audio/mp4",f4b:"audio/mp4",f4p:"video/mp4",f4v:"video/mp4",mov:"video/quicktime",m4a:"audio/mp4",m4b:"audio/mp4",m4p:"audio/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp4:"video/mp4",sdp:"application/sdp",vp6:"video/x-vp6",aac:"audio/aac",mp3:"audio/mp3",ogg:"audio/ogg",ogv:"video/ogg",webm:"video/webm"}})(jwplayer);(function(c){var d=[];c.constructor=function(a){return c.api.selectPlayer(a)};c.api=function(){};c.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",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.PlayerAPI=function(y){this.container=y;this.id=y.id;var s={};var a={};var z=[];var v=undefined;var t=false;var u=[];var p=y.outerHTML;var b={};var r=0;this.setPlayer=function(e){v=e};this.stateListener=function(f,e){if(!a[f]){a[f]=[];this.eventListener(c.api.events.JWPLAYER_PLAYER_STATE,w(f))}a[f].push(e);return this};function w(e){return function(i){var j=i.newstate,g=i.oldstate;if(j==e){var h=a[j];if(h){for(var f in h){if(typeof h[f]=="function"){h[f].call(this,{oldstate:g,newstate:j})}}}}}}this.addInternalListener=function(f,e){f.jwAddEventListener(e,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+e+'", dat); }')};this.eventListener=function(f,e){if(!s[f]){s[f]=[];if(v&&t){this.addInternalListener(v,f)}}s[f].push(e);return this};this.dispatchEvent=function(e){if(s[e]){var f=x(e,arguments[1]);for(var g in s[e]){if(typeof s[e][g]=="function"){s[e][g].call(this,f)}}}};function x(f,g){var e=c.utils.extend({},g);if(f==c.api.events.JWPLAYER_FULLSCREEN){e.fullscreen=e.message;delete e.message}else{if(f==c.api.events.JWPLAYER_PLAYLIST_ITEM){if(e.item&&e.index===undefined){e.index=e.item;delete e.item}}else{if(typeof e.data=="object"){e=c.utils.extend(e,e.data);delete e.data}}}return e}this.callInternal=function(e,f){if(t){if(typeof v!="undefined"&&typeof v[e]=="function"){if(f!==undefined){return(v[e])(f)}else{return(v[e])()}}return null}else{u.push({method:e,parameters:f})}};this.playerReady=function(e){t=true;if(!v){this.setPlayer(document.getElementById(e.id))}this.container=document.getElementById(this.id);for(var g in s){this.addInternalListener(v,g)}this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,function(h){if(h.index!==undefined){r=h.index}else{if(h.item!==undefined){r=h.item}}b={}});this.eventListener(c.api.events.JWPLAYER_MEDIA_META,function(h){c.utils.extend(b,h.metadata)});this.dispatchEvent(c.api.events.API_READY);while(u.length>0){var f=u.shift();this.callInternal(f.method,f.parameters)}};this.getItemMeta=function(){return b};this.getCurrentItem=function(){return r};this.destroy=function(){s={};u=[];if(this.container.outerHTML!=p){c.api.destroyPlayer(this.id,p)}};function q(g,e,f){var i=[];if(!e){e=0}if(!f){f=g.length-1}for(var h=e;h<=f;h++){i.push(g[h])}return i}};c.api.PlayerAPI.prototype={container:undefined,options:undefined,id:undefined,getBuffer:function(){return this.callInternal("jwGetBuffer")},getDuration:function(){return this.callInternal("jwGetDuration")},getFullscreen:function(){return this.callInternal("jwGetFullscreen")},getHeight:function(){return this.callInternal("jwGetHeight")},getLockState:function(){return this.callInternal("jwGetLockState")},getMeta:function(){return this.getItemMeta()},getMute:function(){return this.callInternal("jwGetMute")},getPlaylist:function(){var a=this.callInternal("jwGetPlaylist");for(var b=0;b<a.length;b++){if(a[b].index===undefined){a[b].index=b}}return a},getPlaylistItem:function(a){if(a==undefined){a=this.getCurrentItem()}return this.getPlaylist()[a]},getPosition:function(){return this.callInternal("jwGetPosition")},getState:function(){return this.callInternal("jwGetState")},getVolume:function(){return this.callInternal("jwGetVolume")},getWidth:function(){return this.callInternal("jwGetWidth")},setFullscreen:function(a){if(a===undefined){this.callInternal("jwSetFullscreen",true)}else{this.callInternal("jwSetFullscreen",a)}return this},setMute:function(a){if(a===undefined){this.callInternal("jwSetMute",true)}else{this.callInternal("jwSetMute",a)}return this},lock:function(){return this},unlock:function(){return this},load:function(a){this.callInternal("jwLoad",a);return this},playlistItem:function(a){this.callInternal("jwPlaylistItem",a);return this},playlistPrev:function(){this.callInternal("jwPlaylistPrev");return this},playlistNext:function(){this.callInternal("jwPlaylistNext");return this},resize:function(a,b){this.container.width=a;this.container.height=b;return this},play:function(a){if(typeof a==="undefined"){var a=this.getState();if(a==c.api.events.state.PLAYING||a==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",a)}return this},pause:function(){var a=this.getState();switch(a){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:this.callInternal("jwPause");break;case c.api.events.state.PAUSED:this.callInternal("jwPlay");break}return this},stop:function(){this.callInternal("jwStop");return this},seek:function(a){this.callInternal("jwSeek",a);return this},setVolume:function(a){this.callInternal("jwSetVolume",a);return this},onBufferChange:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER,a)},onBufferFull:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,a)},onError:function(a){return this.eventListener(c.api.events.JWPLAYER_ERROR,a)},onFullscreen:function(a){return this.eventListener(c.api.events.JWPLAYER_FULLSCREEN,a)},onMeta:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_META,a)},onMute:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_MUTE,a)},onPlaylist:function(a){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,a)},onPlaylistItem:function(a){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,a)},onReady:function(a){return this.eventListener(c.api.events.API_READY,a)},onResize:function(a){return this.eventListener(c.api.events.JWPLAYER_RESIZE,a)},onComplete:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,a)},onTime:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_TIME,a)},onVolume:function(a){return this.eventListener(c.api.events.JWPLAYER_MEDIA_VOLUME,a)},onBuffer:function(a){return this.stateListener(c.api.events.state.BUFFERING,a)},onPause:function(a){return this.stateListener(c.api.events.state.PAUSED,a)},onPlay:function(a){return this.stateListener(c.api.events.state.PLAYING,a)},onIdle:function(a){return this.stateListener(c.api.events.state.IDLE,a)},setup:function(a){return this},remove:function(){this.destroy()},initializePlugin:function(b,a){return this}};c.api.selectPlayer=function(b){var f;if(b==undefined){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.PlayerAPI(f))}}else{if(typeof b=="number"){return c.getPlayers()[b]}}return null};c.api.playerById=function(a){for(var b in d){if(d[b].id==a){return d[b]}}return null};c.api.addPlayer=function(a){for(var b in d){if(d[b]==a){return a}}d.push(a);return a};c.api.destroyPlayer=function(i,k){var j=-1;for(var a in d){if(d[a].id==i){j=a;continue}}if(j>=0){var l=document.getElementById(d[j].id);if(l){if(k){l.outerHTML=k}else{var b=document.createElement("div");b.setAttribute("id",l.id);l.parentNode.replaceChild(b,l)}}d.splice(j,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)}if(_userPlayerReady){_userPlayerReady.call(this,c)}};(function(d){d.embed=function(){};d.embed.Embedder=function(a){this.constructor(a)};d.embed.defaults={width:400,height:300,players:[{type:"flash",src:"player.swf"},{type:"html5"}],components:{controlbar:{position:"over"}}};d.embed.Embedder.prototype={config:undefined,api:undefined,events:{},players:undefined,constructor:function(a){this.api=a;var b=d.utils.mediaparser.parseMedia(this.api.container);this.config=this.parseConfig(d.utils.extend({},d.embed.defaults,b,this.api.config))},embedPlayer:function(){var f=this.players[0];if(f&&f.type){switch(f.type){case"flash":if(d.utils.hasFlash()){if(this.config.file&&!this.config.provider){switch(d.utils.extension(this.config.file).toLowerCase()){case"webm":case"ogv":case"ogg":this.config.provider="video";break}}if(this.config.levels||this.config.playlist){this.api.onReady(this.loadAfterReady(this.config))}this.config.id=this.api.id;var a=d.embed.embedFlash(document.getElementById(this.api.id),f,this.config);this.api.container=a;this.api.setPlayer(a)}else{this.players.splice(0,1);return this.embedPlayer()}break;case"html5":if(d.utils.hasHTML5(this.config)){var b=d.embed.embedHTML5(document.getElementById(this.api.id),f,this.config);this.api.container=document.getElementById(this.api.id);this.api.setPlayer(b)}else{this.players.splice(0,1);return this.embedPlayer()}break}}else{this.api.container.innerHTML="<p>No suitable players found</p>"}this.setupEvents();return this.api},setupEvents:function(){for(evt in this.events){if(typeof this.api[evt]=="function"){(this.api[evt]).call(this.api,this.events[evt])}}},loadAfterReady:function(a){return function(b){if(a.playlist){this.load(a.playlist)}else{if(a.levels){var f=this.getPlaylistItem(0);if(!f){f={file:a.levels[0].file,provider:(a.provider?a.provider:"video")}}if(!f.image){f.image=a.image}f.levels=a.levels;this.load(f)}}}},parseConfig:function(b){var a=d.utils.extend({},b);if(a.events){this.events=a.events;delete a.events}if(a.players){this.players=a.players;delete a.players}if(a.plugins){if(typeof a.plugins=="object"){a=d.utils.extend(a,d.embed.parsePlugins(a.plugins))}}if(a.playlist&&typeof a.playlist==="string"&&!a["playlist.position"]){a["playlist.position"]=a.playlist;delete a.playlist}if(a.controlbar&&typeof a.controlbar==="string"&&!a["controlbar.position"]){a["controlbar.position"]=a.controlbar;delete a.controlbar}return a}};d.embed.embedFlash=function(n,b,o){var a=d.utils.extend({},o);var l=a.width;delete a.width;var p=a.height;delete a.height;delete a.levels;delete a.playlist;d.embed.parseConfigBlock(a,"components");d.embed.parseConfigBlock(a,"providers");if(d.utils.isIE()){var m='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+l+'" height="'+p+'" id="'+n.id+'" name="'+n.id+'">';m+='<param name="movie" value="'+b.src+'">';m+='<param name="allowfullscreen" value="true">';m+='<param name="allowscriptaccess" value="always">';m+='<param name="wmode" value="opaque">';m+='<param name="flashvars" value="'+d.embed.jsonToFlashvars(a)+'">';m+="</object>";if(n.tagName.toLowerCase()=="video"){d.utils.mediaparser.replaceMediaElement(n,m)}else{n.outerHTML=m}return document.getElementById(n.id)}else{var k=document.createElement("object");k.setAttribute("type","application/x-shockwave-flash");k.setAttribute("data",b.src);k.setAttribute("width",l);k.setAttribute("height",p);k.setAttribute("id",n.id);k.setAttribute("name",n.id);d.embed.appendAttribute(k,"allowfullscreen","true");d.embed.appendAttribute(k,"allowscriptaccess","always");d.embed.appendAttribute(k,"wmode","opaque");d.embed.appendAttribute(k,"flashvars",d.embed.jsonToFlashvars(a));n.parentNode.replaceChild(k,n);return k}};d.embed.embedHTML5=function(g,a,b){if(d.html5){g.innerHTML="";var h=d.utils.extend({screencolor:"0x000000"},b);d.embed.parseConfigBlock(h,"components");if(h.levels&&!h.sources){h.sources=b.levels}if(h.skin&&h.skin.toLowerCase().indexOf(".zip")>0){h.skin=h.skin.replace(/\.zip/i,".xml")}return new (d.html5(g)).setup(h)}else{return null}};d.embed.appendAttribute=function(g,h,b){var a=document.createElement("param");a.setAttribute("name",h);a.setAttribute("value",b);g.appendChild(a)};d.embed.jsonToFlashvars=function(a){var b="";for(key in a){b+=key+"="+escape(a[key])+"&"}return b.substring(0,b.length-1)};d.embed.parsePlugins=function(h){if(!h){return{}}var a={},b=[];for(plugin in h){var i=plugin.indexOf("-")>0?plugin.substring(0,plugin.indexOf("-")):plugin;var j=h[plugin];b.push(plugin);for(param in j){a[i+"."+param]=j[param]}}a.plugins=b.join(",");return a};d.embed.parseConfigBlock=function(i,j){if(i[j]){var a=i[j];for(var k in a){var l=a[k];if(typeof l=="string"){if(!i[k]){i[k]=l}}else{for(var b in l){if(!i[k+"."+b]){i[k+"."+b]=l[b]}}}}delete i[j]}};d.api.PlayerAPI.prototype.setup=function(g,b){if(g&&g.flashplayer&&!g.players){g.players=[{type:"flash",src:g.flashplayer},{type:"html5"}];delete g.flashplayer}if(b&&!g.players){if(typeof b=="string"){g.players=[{type:"flash",src:b}]}else{if(b instanceof Array){g.players=b}else{if(typeof b=="object"&&b.type){g.players=[b]}}}}var h=this.id;this.remove();var a=d(h);a.config=g;return(new d.embed.Embedder(a)).embedPlayer()};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({players:[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"}]})}}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};b.html5.version="5.3"})(jwplayer);(function(d){d.html5.utils=function(){};d.html5.utils.extension=function(a){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()};d.html5.utils.getAbsolutePath=function(b){if(b===undefined){return undefined}if(e(b)){return b}var a=document.location.href.substring(0,document.location.href.indexOf("://")+3);var c=document.location.href.substring(a.length,document.location.href.indexOf("/",a.length+1));var m;if(b.indexOf("/")===0){m=b.split("/")}else{var l=document.location.href.split("?")[0];l=l.substring(a.length+c.length+1,l.lastIndexOf("/"));m=l.split("/").concat(b.split("/"))}var n=[];for(var i=0;i<m.length;i++){if(!m[i]||m[i]===undefined||m[i]=="."){continue}else{if(m[i]==".."){n.pop()}else{n.push(m[i])}}}return a+c+"/"+n.join("/")};function e(b){if(b===null){return}var a=b.indexOf("://");var c=b.indexOf("?");return(a>0&&(c<0||(c>a)))}d.html5.utils.mapEmpty=function(b){for(var a in b){return false}return true};d.html5.utils.mapLength=function(b){var c=0;for(var a in b){c++}return c};d.html5.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b)}else{console.log(a)}}};d.html5.utils.css=function(i,a,j){if(i!==undefined){for(var c in a){try{if(typeof a[c]==="undefined"){continue}else{if(typeof a[c]=="number"&&!(c=="zIndex"||c=="opacity")){if(isNaN(a[c])){continue}if(c.match(/color/i)){a[c]="#"+f(a[c].toString(16),6)}else{a[c]=a[c]+"px"}}}i.style[c]=a[c]}catch(b){}}}};function f(b,a){while(b.length<a){b="0"+b}return b}d.html5.utils.isYouTube=function(a){return a.indexOf("youtube.com")>-1};d.html5.utils.getYouTubeId=function(a){a.indexOf("youtube.com">0)}})(jwplayer);(function(d){var f=d.html5.utils.css;d.html5.view=function(L,N,W){var G=L;var Q=N;var D=W;var E;var V;var a;var J;var K;var O;function c(){E=document.createElement("div");E.id=Q.id;E.className=Q.className;Q.id=E.id+"_video";f(E,{position:"relative",height:D.height,width:D.width,padding:0,backgroundColor:g(),zIndex:0});function g(){if(G.skin.getComponentSettings("display")&&G.skin.getComponentSettings("display").backgroundcolor){return G.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}f(Q,{position:"absolute",width:D.width,height:D.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});d.utils.wrap(Q,E);J=document.createElement("div");J.id=E.id+"_displayarea";E.appendChild(J)}function S(){for(var h in D.plugins.order){var g=D.plugins.order[h];if(D.plugins.object[g].getDisplayElement!==undefined){D.plugins.object[g].height=I(D.plugins.object[g].getDisplayElement().style.height);D.plugins.object[g].width=I(D.plugins.object[g].getDisplayElement().style.width);D.plugins.config[g].currentPosition=D.plugins.config[g].position}}F()}function F(h){if(D.getMedia()!==undefined){for(var i in D.plugins.order){var g=D.plugins.order[i];if(D.plugins.object[g].getDisplayElement!==undefined){if(D.config.chromeless||D.getMedia().hasChrome()){D.plugins.config[g].currentPosition=d.html5.view.positions.NONE}else{D.plugins.config[g].currentPosition=D.plugins.config[g].position}}}}T(D.width,D.height)}function I(g){if(typeof g=="number"){return g}if(g===""){return 0}return parseInt(g.replace("px",""),10)}function M(){O=setInterval(function(){if(E.width&&E.height&&(D.width!==I(E.width)||D.height!==I(E.height))){T(I(E.width),I(E.height))}else{var g=E.getBoundingClientRect();if(D.width!==g.width||D.height!==g.height){T(g.width,g.height)}delete g}},100)}this.setup=function(h){Q=h;c();S();G.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_LOADED,F);M();var g;if(window.onresize!==null){g=window.onresize}window.onresize=function(j){if(g!==undefined){try{g(j)}catch(i){}}if(G.jwGetFullscreen()){D.width=window.innerWidth;D.height=window.innerHeight}T(D.width,D.height)}};function U(g){switch(g.keyCode){case 27:if(G.jwGetFullscreen()){G.jwSetFullscreen(false)}break;case 32:if(G.jwGetState()!=d.api.events.state.IDLE&&G.jwGetState()!=d.api.events.state.PAUSED){G.jwPause()}else{G.jwPlay()}break}}function T(g,j){if(E.style.display=="none"){return}var h=[].concat(D.plugins.order);h.reverse();K=h.length+2;if(!D.fullscreen){D.width=g;D.height=j;V=g;a=j;f(J,{top:0,bottom:0,left:0,right:0,width:g,height:j});f(E,{height:a,width:V});var i=P(H,h);if(i.length>0){K+=i.length;P(R,i,true)}C()}else{P(b,h,true)}}function P(h,k,j){var l=[];for(var m in k){var g=k[m];if(D.plugins.object[g].getDisplayElement!==undefined){if(D.plugins.config[g].currentPosition.toUpperCase()!==d.html5.view.positions.NONE){var i=h(g,K--);if(!i){l.push(g)}else{D.plugins.object[g].resize(i.width,i.height);if(j){delete i.width;delete i.height}f(D.plugins.object[g].getDisplayElement(),i)}}else{f(D.plugins.object[g].getDisplayElement(),{display:"none"})}}}return l}function H(h,g){if(D.plugins.object[h].getDisplayElement!==undefined){if(e(D.plugins.config[h].position)){if(D.plugins.object[h].getDisplayElement().parentNode===null){E.appendChild(D.plugins.object[h].getDisplayElement())}var i=X(h);i.zIndex=g;return i}}return false}function R(h,g){if(D.plugins.object[h].getDisplayElement().parentNode===null){J.appendChild(D.plugins.object[h].getDisplayElement())}return{position:"absolute",width:(D.width-I(J.style.left)-I(J.style.right)),height:(D.height-I(J.style.top)-I(J.style.bottom)),zIndex:g}}function b(h,g){return{position:"fixed",width:D.width,height:D.height,zIndex:g}}function C(){J.style.position="absolute";var g={position:"absolute",width:I(J.style.width),height:I(J.style.height),top:I(J.style.top),left:I(J.style.left)};f(D.getMedia().getDisplayElement(),g)}function X(h){var g={position:"absolute",margin:0,padding:0,top:null};var i=D.plugins.config[h].currentPosition.toLowerCase();switch(i.toUpperCase()){case d.html5.view.positions.TOP:g.top=I(J.style.top);g.left=I(J.style.left);g.width=V-I(J.style.left)-I(J.style.right);g.height=D.plugins.object[h].height;J.style[i]=I(J.style[i])+D.plugins.object[h].height+"px";J.style.height=I(J.style.height)-g.height+"px";break;case d.html5.view.positions.RIGHT:g.top=I(J.style.top);g.right=I(J.style.right);g.width=g.width=D.plugins.object[h].width;g.height=a-I(J.style.top)-I(J.style.bottom);J.style[i]=I(J.style[i])+D.plugins.object[h].width+"px";J.style.width=I(J.style.width)-g.width+"px";break;case d.html5.view.positions.BOTTOM:g.bottom=I(J.style.bottom);g.left=I(J.style.left);g.width=V-I(J.style.left)-I(J.style.right);g.height=D.plugins.object[h].height;J.style[i]=I(J.style[i])+D.plugins.object[h].height+"px";J.style.height=I(J.style.height)-g.height+"px";break;case d.html5.view.positions.LEFT:g.top=I(J.style.top);g.left=I(J.style.left);g.width=D.plugins.object[h].width;g.height=a-I(J.style.top)-I(J.style.bottom);J.style[i]=I(J.style[i])+D.plugins.object[h].width+"px";J.style.width=I(J.style.width)-g.width+"px";break;default:break}return g}this.resize=T;this.fullscreen=function(g){if(navigator.vendor.indexOf("Apple")===0){if(D.getMedia().getDisplayElement().webkitSupportsFullscreen){if(g){D.fullscreen=false;D.getMedia().getDisplayElement().webkitEnterFullscreen()}else{D.getMedia().getDisplayElement().webkitExitFullscreen()}}else{D.fullscreen=false}}else{if(g){document.onkeydown=U;clearInterval(O);D.width=window.innerWidth;D.height=window.innerHeight;var h={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};f(E,h);h.zIndex=1;f(D.getMedia().getDisplayElement(),h);h.zIndex=2;f(J,h)}else{document.onkeydown="";M();D.width=V;D.height=a;f(E,{position:"relative",height:D.height,width:D.width,zIndex:0})}T(D.width,D.height)}}};function e(a){return([d.html5.view.positions.TOP,d.html5.view.positions.RIGHT,d.html5.view.positions.BOTTOM,d.html5.view.positions.LEFT].indexOf(a.toUpperCase())>-1)}d.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"}]}}};_css=d.html5.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};d.html5.controlbar=function(aF,ac){var aG=aF;var an=d.utils.extend({},c,aG.skin.getComponentSettings("controlbar"),ac);if(d.html5.utils.mapLength(aG.skin.getComponentLayout("controlbar"))>0){an.layout=aG.skin.getComponentLayout("controlbar")}var Y;var af;var Z;var am;var av="none";var aJ;var aH;var X;var aK;var aL;var ar;var aw;var ae={};var aB=false;var aM={};function ag(){Z=0;am=0;af=0;if(!aB){var f={height:aG.skin.getSkinElement("controlbar","background").height,backgroundColor:an.backgroundcolor};Y=document.createElement("div");Y.id=aG.id+"_jwplayer_controlbar";_css(Y,f)}at("capLeft","left",false,Y);var e={position:"absolute",height:aG.skin.getSkinElement("controlbar","background").height,background:" url("+aG.skin.getSkinElement("controlbar","background").src+") repeat-x center left",left:aG.skin.getSkinElement("controlbar","capLeft").width};aa("elements",Y,e);at("capRight","right",false,Y)}this.getDisplayElement=function(){return Y};this.resize=function(g,f){d.html5.utils.cancelAnimation(Y);document.getElementById(aG.id).onmousemove=aq;aL=g;ar=f;aq();var e=au();ak({id:aG.id,duration:X,position:aH});ax({id:aG.id,bufferPercent:aK});return e};function aA(){var e=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var g in e){var f=e[g];if(typeof ae[f]!="undefined"){aM[f]=ae[f].getBoundingClientRect()}}}function aq(){d.html5.utils.cancelAnimation(Y);if(aI()){d.html5.utils.fadeTo(Y,1,0,1,0)}else{d.html5.utils.fadeTo(Y,0,0.1,1,2)}}function aI(){if(aG.jwGetState()==d.api.events.state.IDLE||aG.jwGetState()==d.api.events.state.PAUSED){if(an.idlehide){return false}return true}if(aG.jwGetFullscreen()){return false}if(an.position.toUpperCase()==d.html5.view.positions.OVER){return false}return true}function aa(g,h,e){var f;if(!aB){f=document.createElement("div");ae[g]=f;f.id=Y.id+"_"+g;h.appendChild(f)}else{f=document.getElementById(Y.id+"_"+g)}if(e!==undefined){_css(f,e)}return f}function ah(){a(an.layout.left);a(an.layout.right,-1);a(an.layout.center)}function a(h,f){var g=h.position=="right"?"right":"left";var i=d.utils.extend([],h.elements);if(f!==undefined){i.reverse()}for(var e=0;e<i.length;e++){ao(i[e],g)}}function aj(){return af++}function ao(f,m){var g,i,h,j,k;switch(f.name){case"play":at("playButton",m,false);at("pauseButton",m,true);ad("playButton","jwPlay");ad("pauseButton","jwPause");break;case"divider":at("divider"+aj(),m,true);break;case"prev":at("prevButton",m,true);ad("prevButton","jwPlaylistPrev");break;case"next":at("nextButton",m,true);ad("nextButton","jwPlaylistNext");break;case"elapsed":at("elapsedText",m,true);break;case"time":i=aG.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","timeSliderCapLeft").width;h=aG.skin.getSkinElement("controlbar","timeSliderCapRight")===undefined?0:aG.skin.getSkinElement("controlbar","timeSliderCapRight").width;g=m=="left"?i:h;j=aG.skin.getSkinElement("controlbar","timeSliderRail").width+i+h;k={height:aG.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:j};k[m]=m=="left"?Z:am;var e=aa("timeSlider",ae.elements,k);at("timeSliderCapLeft",m,true,e,m=="left"?0:g);at("timeSliderRail",m,false,e,g);at("timeSliderBuffer",m,false,e,g);at("timeSliderProgress",m,false,e,g);at("timeSliderThumb",m,false,e,g);at("timeSliderCapRight",m,true,e,m=="right"?0:g);ab("time");break;case"fullscreen":at("fullscreenButton",m,false);at("normalscreenButton",m,true);ad("fullscreenButton","jwSetFullscreen",true);ad("normalscreenButton","jwSetFullscreen",false);break;case"volume":i=aG.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;h=aG.skin.getSkinElement("controlbar","volumeSliderCapRight")===undefined?0:aG.skin.getSkinElement("controlbar","volumeSliderCapRight").width;g=m=="left"?i:h;j=aG.skin.getSkinElement("controlbar","volumeSliderRail").width+i+h;k={height:aG.skin.getSkinElement("controlbar","background").height,position:"absolute",top:0,width:j};k[m]=m=="left"?Z:am;var l=aa("volumeSlider",ae.elements,k);at("volumeSliderCapLeft",m,true,l,m=="left"?0:g);at("volumeSliderRail",m,true,l,g);at("volumeSliderProgress",m,false,l,g);at("volumeSliderCapRight",m,true,l,m=="right"?0:g);ab("volume");break;case"mute":at("muteButton",m,false);at("unmuteButton",m,true);ad("muteButton","jwSetMute",true);ad("unmuteButton","jwSetMute",false);break;case"duration":at("durationText",m,true);break}}function at(k,g,h,j,f){if((aG.skin.getSkinElement("controlbar",k)!==undefined||k.indexOf("Text")>0||k.indexOf("divider")===0)&&!(k.indexOf("divider")===0&&aw.indexOf("divider")===0)){aw=k;var l={height:aG.skin.getSkinElement("controlbar","background").height,position:"absolute",display:"block",top:0};if((k.indexOf("next")===0||k.indexOf("prev")===0)&&aG.jwGetPlaylist().length<2){h=false;l.display="none"}var i;if(k.indexOf("Text")>0){k.innerhtml="00:00";l.font=an.fontsize+"px/"+(aG.skin.getSkinElement("controlbar","background").height+1)+"px "+an.font;l.color=an.fontcolor;l.textAlign="center";l.fontWeight=an.fontweight;l.fontStyle=an.fontstyle;l.cursor="default";i=14+3*an.fontsize}else{if(k.indexOf("divider")===0){l.background="url("+aG.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";i=aG.skin.getSkinElement("controlbar","divider").width}else{l.background="url("+aG.skin.getSkinElement("controlbar",k).src+") repeat-x center left";i=aG.skin.getSkinElement("controlbar",k).width}}if(g=="left"){l.left=f===undefined?Z:f;if(h){Z+=i}}else{if(g=="right"){l.right=f===undefined?am:f;if(h){am+=i}}}if(j===undefined){j=ae.elements}l.width=i;if(aB){_css(ae[k],l)}else{var e=aa(k,j,l);if(aG.skin.getSkinElement("controlbar",k+"Over")!==undefined){e.onmouseover=function(m){e.style.backgroundImage=["url(",aG.skin.getSkinElement("controlbar",k+"Over").src,")"].join("")};e.onmouseout=function(m){e.style.backgroundImage=["url(",aG.skin.getSkinElement("controlbar",k).src,")"].join("")}}}}}function al(){aG.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,ap);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,ax);aG.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,az);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,ak);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,b);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,aE);aG.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,ai)}function ap(){ag();ah();au();W()}function W(){ak({id:aG.id,duration:aG.jwGetDuration(),position:0});ax({id:aG.id,bufferProgress:0});b({id:aG.id,mute:aG.jwGetMute()});az({id:aG.id,newstate:d.api.events.state.IDLE});aE({id:aG.id,volume:aG.jwGetVolume()})}function ad(h,g,e){if(aB){return}if(aG.skin.getSkinElement("controlbar",h)!==undefined){var f=ae[h];if(f!==null){_css(f,{cursor:"pointer"});if(g=="fullscreen"){f.onmouseup=function(i){i.stopPropagation();aG.jwSetFullscreen(!aG.jwGetFullscreen())}}else{f.onmouseup=function(i){i.stopPropagation();if(e!==null){aG[g](e)}else{aG[g]()}}}}}}function ab(f){if(aB){return}var e=ae[f+"Slider"];_css(ae.elements,{cursor:"pointer"});_css(e,{cursor:"pointer"});e.onmousedown=function(g){av=f};e.onmouseup=function(g){g.stopPropagation();V(g.pageX)};e.onmousemove=function(h){if(av=="time"){aJ=true;var g=h.pageX-aM[f+"Slider"].left-window.pageXOffset;_css(ae.timeSliderThumb,{left:g})}}}function V(e){aJ=false;var f;if(av=="time"){f=e-aM.timeSliderRail.left+window.pageXOffset;var g=f/aM.timeSliderRail.width*X;if(g<0){g=0}else{if(g>X){g=X-3}}aG.jwSeek(g);if(aG.jwGetState()!=d.api.events.state.PLAYING){aG.jwPlay()}}else{if(av=="volume"){f=e-aM.volumeSliderRail.left-window.pageXOffset;var h=Math.round(f/aM.volumeSliderRail.width*100);if(h<0){h=0}else{if(h>100){h=100}}if(aG.jwGetMute()){aG.jwSetMute(false)}aG.jwSetVolume(h)}}av="none"}function ax(e){if(e.bufferPercent!==null){aK=e.bufferPercent}var g=aM.timeSliderRail.width;var f=isNaN(Math.round(g*aK/100))?0:Math.round(g*aK/100);_css(ae.timeSliderBuffer,{width:f})}function b(e){if(e.mute){_hide(ae.muteButton);_show(ae.unmuteButton);_hide(ae.volumeSliderProgress)}else{_show(ae.muteButton);_hide(ae.unmuteButton);_show(ae.volumeSliderProgress)}}function az(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(ae.pauseButton);_hide(ae.playButton)}else{_hide(ae.pauseButton);_show(ae.playButton)}aq();if(e.newstate==d.api.events.state.IDLE){_hide(ae.timeSliderBuffer);_hide(ae.timeSliderProgress);_hide(ae.timeSliderThumb);ak({id:aG.id,duration:aG.jwGetDuration(),position:0})}else{_show(ae.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(ae.timeSliderProgress);_show(ae.timeSliderThumb)}}}function ai(e){ak(d.utils.extend(e,{position:0,duration:X}))}function ak(g){if(g.position!==null){aH=g.position}if(g.duration!==null){X=g.duration}var e=(aH===X===0)?0:aH/X;var f=isNaN(Math.round(aM.timeSliderRail.width*e))?0:Math.round(aM.timeSliderRail.width*e);var h=f;ae.timeSliderProgress.style.width=f+"px";if(!aJ){if(ae.timeSliderThumb){ae.timeSliderThumb.style.left=h+"px"}}if(ae.durationText){ae.durationText.innerHTML=aC(X)}if(ae.elapsedText){ae.elapsedText.innerHTML=aC(aH)}}function aC(e){str="00:00";if(e>0){str=Math.floor(e/60)<10?"0"+Math.floor(e/60)+":":Math.floor(e/60)+":";str+=Math.floor(e%60)<10?"0"+Math.floor(e%60):Math.floor(e%60)}return str}function aD(){var g,e;var h=document.getElementById(Y.id+"_elements").childNodes;for(var f in document.getElementById(Y.id+"_elements").childNodes){if(isNaN(parseInt(f,10))){continue}if(h[f].id.indexOf(Y.id+"_divider")===0&&e.id.indexOf(Y.id+"_divider")===0){h[f].style.display="none"}else{if(h[f].id.indexOf(Y.id+"_divider")===0&&g.style.display!="none"){h[f].style.display="block"}}if(h[f].style.display!="none"){e=h[f]}g=h[f]}}function au(){aD();if(aG.jwGetFullscreen()){_show(ae.normalscreenButton);_hide(ae.fullscreenButton)}else{_hide(ae.normalscreenButton);_show(ae.fullscreenButton)}var e={width:aL};var f={};if(an.position.toUpperCase()==d.html5.view.positions.OVER||aG.jwGetFullscreen()){e.left=an.margin;e.width-=2*an.margin;e.top=ar-aG.skin.getSkinElement("controlbar","background").height-an.margin;e.height=aG.skin.getSkinElement("controlbar","background").height}else{e.left=0}f.left=aG.skin.getSkinElement("controlbar","capLeft").width;f.width=e.width-aG.skin.getSkinElement("controlbar","capLeft").width-aG.skin.getSkinElement("controlbar","capRight").width;var g=aG.skin.getSkinElement("controlbar","timeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(ae.timeSliderRail,{width:(f.width-Z-am),left:g});if(ae.timeSliderCapRight!==undefined){_css(ae.timeSliderCapRight,{left:g+(f.width-Z-am)})}_css(Y,e);_css(ae.elements,f);aA();return e}function aE(h){if(ae.volumeSliderRail!==undefined){var j=isNaN(h.volume/100)?1:h.volume/100;var i=parseInt(ae.volumeSliderRail.style.width.replace("px",""),10);var f=isNaN(Math.round(i*j))?0:Math.round(i*j);var g=parseInt(ae.volumeSliderRail.style.right.replace("px",""),10);var e=aG.skin.getSkinElement("controlbar","volumeSliderCapLeft")===undefined?0:aG.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(ae.volumeSliderProgress,{width:f,left:e});if(ae.volumeSliderCapLeft!==undefined){_css(ae.volumeSliderCapLeft,{left:0})}}}function ay(){ag();ah();aA();aB=true;al();W();Y.style.opacity=an.idlehide?0:1}ay();return this}})(jwplayer);(function(c){var d=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];c.html5.controller=function(H,K,Y,M){var E=H;var C=Y;var Z=M;var S=K;var a=true;var G=(C.config.debug!==undefined)&&(C.config.debug.toString().toLowerCase()=="console");var U=new c.html5.eventdispatcher(S.id,G);c.utils.extend(this,U);function Q(e){U.sendEvent(e.type,e)}C.addGlobalListener(Q);function N(){try{if(C.playlist[0].levels[0].file.length>0){if(a||C.state==c.api.events.state.IDLE){C.setActiveMediaProvider(C.playlist[C.item]);C.addEventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){C.getMedia().play()});if(C.config.repeat){C.addEventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,function(f){setTimeout(P,25)})}C.getMedia().load(C.playlist[C.item]);a=false}else{if(C.state==c.api.events.state.PAUSED){C.getMedia().play()}}}return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function L(){try{if(C.playlist[0].levels[0].file.length>0){switch(C.state){case c.api.events.state.PLAYING:case c.api.events.state.BUFFERING:C.getMedia().pause();break}}return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function D(f){try{if(C.playlist[0].levels[0].file.length>0){switch(C.state){case c.api.events.state.PLAYING:case c.api.events.state.PAUSED:case c.api.events.state.BUFFERING:C.getMedia().seek(f);break}}return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function T(){try{if(C.playlist[0].levels[0].file.length>0&&C.state!=c.api.events.state.IDLE){C.getMedia().stop()}return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function W(){try{if(C.playlist[0].levels[0].file.length>0){if(C.config.shuffle){O(I())}else{if(C.item+1==C.playlist.length){O(0)}else{O(C.item+1)}}}if(C.state!=c.api.events.state.PLAYING&&C.state!=c.api.events.state.BUFFERING){N()}return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function X(){try{if(C.playlist[0].levels[0].file.length>0){if(C.config.shuffle){O(I())}else{if(C.item===0){O(C.playlist.length-1)}else{O(C.item-1)}}}if(C.state!=c.api.events.state.PLAYING&&C.state!=c.api.events.state.BUFFERING){N()}return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function I(){var e=null;if(C.playlist.length>1){while(e===null){e=Math.floor(Math.random()*C.playlist.length);if(e==C.item){e=null}}}else{e=0}return e}function O(f){C.resetEventListeners();C.addGlobalListener(Q);try{if(C.playlist[0].levels[0].file.length>0){var e=C.state;if(e!==c.api.events.state.IDLE){T()}C.item=f;a=true;U.sendEvent(c.api.events.JWPLAYER_PLAYLIST_ITEM,{item:f});if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){N()}}return true}catch(g){U.sendEvent(c.api.events.JWPLAYER_ERROR,g)}return false}function b(e){try{switch(typeof(e)){case"number":C.getMedia().volume(e);break;case"string":C.getMedia().volume(parseInt(e,10));break}return true}catch(f){U.sendEvent(c.api.events.JWPLAYER_ERROR,f)}return false}function R(e){try{C.getMedia().mute(e);return true}catch(f){U.sendEvent(c.api.events.JWPLAYER_ERROR,f)}return false}function V(f,g){try{C.width=f;C.height=g;Z.resize(f,g);return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}function F(e){try{C.fullscreen=e;Z.fullscreen(e);return true}catch(f){U.sendEvent(c.api.events.JWPLAYER_ERROR,f)}return false}function J(f){try{T();C.loadPlaylist(f);a=true;return true}catch(e){U.sendEvent(c.api.events.JWPLAYER_ERROR,e)}return false}c.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function P(){C.resetEventListeners();C.addGlobalListener(Q);switch(C.config.repeat.toUpperCase()){case c.html5.controller.repeatoptions.SINGLE:N();break;case c.html5.controller.repeatoptions.ALWAYS:if(C.item==C.playlist.length-1&&!C.config.shuffle){O(0);N()}else{W()}break;case c.html5.controller.repeatoptions.LIST:if(C.item==C.playlist.length-1&&!C.config.shuffle){O(0)}else{W()}break}}this.play=N;this.pause=L;this.seek=D;this.stop=T;this.next=W;this.prev=X;this.item=O;this.setVolume=b;this.setMute=R;this.resize=V;this.setFullscreen=F;this.load=J}})(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){_css=b.html5.utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};b.html5.display=function(E,w){var y=E;var L={};var J;var v;var x;var D;var I;var F=y.skin.getComponentSettings("display").bufferrotation===undefined?15:parseInt(y.skin.getComponentSettings("display").bufferrotation,10);var K=y.skin.getComponentSettings("display").bufferinterval===undefined?100:parseInt(y.skin.getComponentSettings("display").bufferinterval,10);var M={display:{style:{cursor:"pointer",top:0,left:0},click:z},display_icon:{style:{cursor:"pointer",position:"absolute",top:((y.skin.getSkinElement("display","background").height-y.skin.getSkinElement("display","playIcon").height)/2),left:((y.skin.getSkinElement("display","background").width-y.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((v-y.skin.getSkinElement("display","background").height)/2),left:((J-y.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",y.skin.getSkinElement("display","background").src,")"]).join(""),width:y.skin.getSkinElement("display","background").width,height:y.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2}},display_image:{style:{display:"none",width:J,height:v,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}}};y.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,G);y.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,G);y.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,G);y.jwAddEventListener(b.api.events.JWPLAYER_ERROR,A);a();function a(){L.display=B("div","display");L.display_text=B("div","display_text");L.display.appendChild(L.display_text);L.display_image=B("img","display_image");L.display_image.onerror=function(c){_hide(L.display_image)};L.display_icon=B("div","display_icon");L.display_iconBackground=B("div","display_iconBackground");L.display.appendChild(L.display_image);L.display_iconBackground.appendChild(L.display_icon);L.display.appendChild(L.display_iconBackground);N()}this.getDisplayElement=function(){return L.display};this.resize=function(c,d){J=c;v=d;_css(L.display,{width:c,height:d});_css(L.display_text,{width:(c-10),top:((v-L.display_text.getBoundingClientRect().height)/2)});_css(L.display_image,{width:c,height:d});_css(L.display_iconBackground,{top:((v-y.skin.getSkinElement("display","background").height)/2),left:((J-y.skin.getSkinElement("display","background").width)/2)});G({})};function B(e,c){var d=document.createElement(e);d.id=y.id+"_jwplayer_"+c;_css(d,M[c].style);return d}function N(){for(var c in L){if(M[c].click!==undefined){L[c].onclick=M[c].click}}}function z(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(y.jwGetState()!=b.api.events.state.PLAYING){y.jwPlay()}else{y.jwPause()}}function H(c){if(I){return}_show(L.display_iconBackground);L.display_icon.style.backgroundImage=(["url(",y.skin.getSkinElement("display",c).src,")"]).join("");_css(L.display_icon,{display:"block",width:y.skin.getSkinElement("display",c).width,height:y.skin.getSkinElement("display",c).height,top:(y.skin.getSkinElement("display","background").height-y.skin.getSkinElement("display",c).height)/2,left:(y.skin.getSkinElement("display","background").width-y.skin.getSkinElement("display",c).width)/2});if(y.skin.getSkinElement("display",c+"Over")!==undefined){L.display_icon.onmouseover=function(d){L.display_icon.style.backgroundImage=["url(",y.skin.getSkinElement("display",c+"Over").src,")"].join("")};L.display_icon.onmouseout=function(d){L.display_icon.style.backgroundImage=["url(",y.skin.getSkinElement("display",c).src,")"].join("")}}else{L.display_icon.onmouseover=null;L.display_icon.onmouseout=null}}function C(){_hide(L.display_icon);_hide(L.display_iconBackground)}function A(c){I=true;C();L.display_text.innerHTML=c.error;_show(L.display_text);L.display_text.style.top=((v-L.display_text.getBoundingClientRect().height)/2)+"px"}function G(c){if((c.type==b.api.events.JWPLAYER_PLAYER_STATE||c.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&I){I=false;_hide(L.display_text)}if(D!==undefined){clearInterval(D);D=null;b.html5.utils.animations.rotate(L.display_icon,0)}switch(y.jwGetState()){case b.api.events.state.BUFFERING:H("bufferIcon");x=0;D=setInterval(function(){x+=F;b.html5.utils.animations.rotate(L.display_icon,x%360)},K);H("bufferIcon");break;case b.api.events.state.PAUSED:_css(L.display_image,{background:"transparent no-repeat center center"});H("playIcon");break;case b.api.events.state.IDLE:if(y.jwGetPlaylist()[y.jwGetItem()].image){_css(L.display_image,{display:"block"});L.display_image.src=b.html5.utils.getAbsolutePath(y.jwGetPlaylist()[y.jwGetItem()].image)}else{_css(L.display_image,{display:"none"});delete L.display_image.src}H("playIcon");break;default:if(y.jwGetMute()){_css(L.display_image,{display:"none"});delete L.display_image.src;H("muteIcon")}else{_css(L.display_image,{display:"none"});delete L.display_image.src;_hide(L.display_iconBackground);_hide(L.display_icon)}break}}return this}})(jwplayer);(function(jwplayer){jwplayer.html5.eventdispatcher=function(id,debug){var _id=id;var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(_listeners[type]===undefined){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.html5.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){try{for(var lisenterIndex in _listeners[type]){if(_listeners[type][lisenterIndex].toString()==listener.toString()){_listeners[type].slice(lisenterIndex,lisenterIndex+1);break}}}catch(err){jwplayer.html5.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.html5.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){try{for(var lisenterIndex in _globallisteners){if(_globallisteners[lisenterIndex].toString()==listener.toString()){_globallisteners.slice(lisenterIndex,lisenterIndex+1);break}}}catch(err){jwplayer.html5.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(data===undefined){data={}}jwplayer.utils.extend(data,{id:_id,version:jwplayer.html5.version,type:type});if(_debug){jwplayer.html5.utils.log(type,data)}for(var listenerIndex in _listeners[type]){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.html5.utils.log("There was an error while handling a listener",_listeners[type][listenerIndex].listener,err)}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 in _globallisteners){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.html5.utils.log("There was an error while handling a listener",_globallisteners[globalListenerIndex].listener,err)}if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}})(jwplayer);(function(b){b.html5.extensionmap={"3gp":"video/3gpp","3gpp":"video/3gpp","3g2":"video/3gpp2","3gpp2":"video/3gpp2",flv:"video/x-flv",f4a:"audio/mp4",f4b:"audio/mp4",f4p:"video/mp4",f4v:"video/mp4",mov:"video/quicktime",m4a:"audio/mp4",m4b:"audio/mp4",m4p:"audio/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp4:"video/mp4",sdp:"application/sdp",vp6:"video/x-vp6",aac:"audio/aac",mp3:"audio/mp3",ogg:"audio/ogg",ogv:"video/ogg",webm:"video/webm"}})(jwplayer);(function(d){var c={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:3,hide:true,position:"bottom-left"};_css=d.html5.utils.css;d.html5.logo=function(r,q){var b=r;var o;if(c.prefix){var p=r.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(p)<0){c.prefix+=p+"/"}}if(q.position==d.html5.view.positions.OVER){q.position=c.position}var s=d.utils.extend({},c,q);if(!s.file){return}var v=document.createElement("img");v.id=b.id+"_jwplayer_logo";v.style.display="none";v.onload=function(e){_css(v,n());b.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,a)};if(s.file.indexOf("http://")===0){v.src=s.file}else{v.src=s.prefix+s.file}v.onmouseover=function(e){v.style.opacity=s.over;u()};v.onmouseout=function(e){v.style.opacity=s.out;u()};v.onclick=t;function n(){var e={textDecoration:"none",position:"absolute"};e.display=s.hide?"none":"block";var f=s.position.toLowerCase().split("-");for(var g in f){e[f[g]]=s.margin}return e}this.resize=function(e,f){};this.getDisplayElement=function(){return v};function t(e){e.stopPropagation();window.open(s.link,"_blank");return}function u(){if(o){clearTimeout(o)}o=setTimeout(function(){d.html5.utils.fadeTo(v,0,0.1,parseFloat(v.style.opacity))},s.timeout*1000)}function a(e){switch(b.jwGetState()){case d.api.events.state.BUFFERING:v.style.display="block";v.style.opacity=s.out;if(s.hide){u()}break;case d.api.events.state.PAUSED:break;case d.api.events.state.IDLE:break;case d.api.events.state.PLAYING:break;default:if(s.hide){u()}break}}return this}})(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.html5.utils.css;e.html5.mediavideo=function(ar,U){var Q={abort:ad,canplay:ak,canplaythrough:ak,durationchange:ag,emptied:ad,ended:ak,error:al,loadeddata:ag,loadedmetadata:ag,loadstart:ak,pause:ak,play:N,playing:ak,progress:X,ratechange:ad,seeked:ak,seeking:ak,stalled:ak,suspend:ak,timeupdate:N,volumechange:ad,waiting:ak,canshowcurrentframe:ad,dataunavailable:ad,empty:ad,load:at,loadedfirstframe:ad};var P=new e.html5.eventdispatcher();e.utils.extend(this,P);var ap=ar;var Z=U;var T;var R;var au=e.api.events.state.IDLE;var W=null;var aj;var aq=0;var Y=false;var af=false;var b;var c;var ao=[];var a;var V=false;function ab(){return au}function at(g){}function ad(g){}function ak(g){if(f[g.type]){ae(f[g.type])}}function ae(i){if(V){return}if(aj){i=e.api.events.state.IDLE}if(i==e.api.events.state.PAUSED&&au==e.api.events.state.IDLE){return}if(au!=i){var h=au;ap.state=i;au=i;var g=false;if(i==e.api.events.state.IDLE){ah();if(ap.position>=ap.duration&&(ap.position||ap.duration)){g=true}if(Z.style.display!="none"&&!ap.config.chromeless){Z.style.display="none"}}P.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:h,newstate:i});if(g){P.sendEvent(e.api.events.JWPLAYER_MEDIA_COMPLETE)}}aj=false}function ag(h){var g={height:h.target.videoHeight,width:h.target.videoWidth,duration:Math.round(h.target.duration*10)/10};if(ap.duration===0||isNaN(ap.duration)){ap.duration=Math.round(h.target.duration*10)/10}ap.playlist[ap.item]=e.utils.extend(ap.playlist[ap.item],g);P.sendEvent(e.api.events.JWPLAYER_MEDIA_META,{metadata:g})}function N(g){if(aj){return}if(g!==undefined&&g.target!==undefined){if(ap.duration===0||isNaN(ap.duration)){ap.duration=Math.round(g.target.duration*10)/10}if(!Y&&Z.readyState>0){ae(e.api.events.state.PLAYING)}if(au==e.api.events.state.PLAYING){if(!Y&&Z.readyState>0){Y=true;try{Z.currentTime=ap.playlist[ap.item].start}catch(h){}Z.volume=ap.volume/100;Z.muted=ap.mute}ap.position=Math.round(g.target.currentTime*10)/10;P.sendEvent(e.api.events.JWPLAYER_MEDIA_TIME,{position:Math.round(g.target.currentTime*10)/10,duration:Math.round(g.target.duration*10)/10})}}X(g)}function S(){var g=(ao[ao.length-1]-ao[0])/ao.length;a=setTimeout(function(){if(!R){X({lengthComputable:true,loaded:1,total:1})}},g*10)}function X(g){var h,i;if(g!==undefined&&g.lengthComputable&&g.total){ai();h=g.loaded/g.total*100;i=h/100*(ap.duration-Z.currentTime);if(50<h&&!R){clearTimeout(a);S()}}else{if((Z.buffered!==undefined)&&(Z.buffered.length>0)){maxBufferIndex=0;if(maxBufferIndex>=0){h=Z.buffered.end(maxBufferIndex)/Z.duration*100;i=Z.buffered.end(maxBufferIndex)-Z.currentTime}}}if(T===false&&au==e.api.events.state.BUFFERING){T=true;P.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL)}if(!R){if(h==100&&R===false){R=true}if(h!==null&&(h>ap.buffer)){ap.buffer=Math.round(h);P.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(h)})}}}function aa(){if(W===null){W=setInterval(function(){N()},100)}}function ah(){clearInterval(W);W=null}function al(g){var h="There was an error: ";if((g.target.error&&g.target.tagName.toLowerCase()=="video")||g.target.parentNode.error&&g.target.parentNode.tagName.toLowerCase()=="video"){var i=g.target.error===undefined?g.target.parentNode.error:g.target.error;switch(i.code){case i.MEDIA_ERR_ABORTED:h="You aborted the video playback: ";break;case i.MEDIA_ERR_NETWORK:h="A network error caused the video download to fail part-way: ";break;case i.MEDIA_ERR_DECODE:h="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case i.MEDIA_ERR_SRC_NOT_SUPPORTED:h="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:h="An unknown error occurred: ";break}}else{if(g.target.tagName.toLowerCase()=="source"){c--;if(c>0){return}h="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{e.html5.utils.log("Erroneous error received. Continuing...");return}}ac();h+=an();V=true;P.sendEvent(e.api.events.JWPLAYER_ERROR,{error:h});return}function an(){var h="";for(var i in b.levels){var j=b.levels[i];var g=Z.ownerDocument.createElement("source");h+=e.html5.utils.getAbsolutePath(j.file);if(i<(b.levels.length-1)){h+=", "}}return h}this.getDisplayElement=function(){return Z};this.play=function(){if(au!=e.api.events.state.PLAYING){if(Z.style.display!="block"){Z.style.display="block"}Z.play();aa()}};this.pause=function(){Z.pause();ae(e.api.events.state.PAUSED)};this.seek=function(g){if(!(ap.duration===0||isNaN(ap.duration))&&!(ap.position===0||isNaN(ap.position))){Z.currentTime=g;Z.play()}};function ac(){Z.pause();ah();ap.position=0;aj=true;ae(e.api.events.state.IDLE)}this.stop=ac;this.volume=function(g){Z.volume=g/100;ap.volume=g;P.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)})};this.mute=function(g){Z.muted=g;ap.mute=g;P.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:g})};this.resize=function(g,h){if(false){d(Z,{width:g,height:h})}P.sendEvent(e.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:ap.fullscreen,width:g,hieght:h})};this.fullscreen=function(g){if(g===true){this.resize("100%","100%")}else{this.resize(ap.config.width,ap.config.height)}};this.load=function(g){O(g);P.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);T=false;R=false;Y=false;if(!ap.config.chromeless){ao=[];ai();ae(e.api.events.state.BUFFERING);setTimeout(function(){N()},25)}};function ai(){var g=new Date().getTime();ao.push(g)}this.hasChrome=function(){return af};function O(g){ap.duration=g.duration;af=false;b=g;var l=document.createElement("video");l.preload="none";V=false;c=0;for(var m in g.levels){var n=g.levels[m];if(e.html5.utils.isYouTube(n.file)){delete l;am(n.file);return}var k;if(n.type===undefined){var h=e.html5.utils.extension(n.file);if(e.html5.extensionmap[h]!==undefined){k=e.html5.extensionmap[h]}else{k="video/"+h+";"}}else{k=n.type}if(l.canPlayType(k)===""){continue}var i=Z.ownerDocument.createElement("source");i.src=e.html5.utils.getAbsolutePath(n.file);i.type=k;c++;l.appendChild(i)}if(c===0){V=true;P.sendEvent(e.api.events.JWPLAYER_ERROR,{error:"The video could not be loaded because the format is not supported by your browser: "+an()})}if(ap.config.chromeless){l.poster=e.html5.utils.getAbsolutePath(g.image);l.controls="controls"}l.style.position=Z.style.position;l.style.top=Z.style.top;l.style.left=Z.style.left;l.style.width=Z.style.width;l.style.height=Z.style.height;l.style.zIndex=Z.style.zIndex;l.onload=at;l.volume=0;Z.parentNode.replaceChild(l,Z);l.id=Z.id;Z=l;for(var j in Q){Z.addEventListener(j,function(o){if(o.target.parentNode!==null){Q[o.type](o)}},true)}}function am(j){var m=document.createElement("object");j=["http://www.youtube.com/v/",j.replace(/^[^v]+v.(.{11}).*/,"$1"),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");var g={movie:j,allowFullScreen:"true",allowscriptaccess:"always"};for(var n in g){var i=document.createElement("param");i.name=n;i.value=g[n];m.appendChild(i)}var h=document.createElement("embed");var l={src:j,type:"application/x-shockwave-flash",allowscriptaccess:"always",allowfullscreen:"true",width:document.getElementById(ar.id).style.width,height:document.getElementById(ar.id).style.height};for(var k in l){h[k]=l[k]}m.appendChild(h);m.style.position=Z.style.position;m.style.top=Z.style.top;m.style.left=Z.style.left;m.style.width=document.getElementById(ar.id).style.width;m.style.height=document.getElementById(ar.id).style.height;m.style.zIndex=2147483000;Z.parentNode.replaceChild(m,Z);m.id=Z.id;Z=m;af=true}this.embed=O;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins"];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:0,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"none",autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar"];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.html5.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(config[path[edge]]===undefined){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(_model.plugins!==undefined){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){pluginorder.push(userplugin.replace(/^\s+|\s+$/g,""))}}else{for(var plugin in _model.plugins){pluginorder.push(plugin.replace(/^\s+|\s+$/g,""))}}}if(jwplayer.utils.isIOS()){_model.config.chromeless=true}if(_model.config.chromeless){pluginorder=[]}_model.plugins={order:pluginorder,config:{controlbar:{position:jwplayer.html5.view.positions.BOTTOM}},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=_model.config[pluginName]===undefined?{}:_model.config[pluginName];_model.plugins.config[pluginName]=_model.plugins.config[pluginName]===undefined?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(_model.plugins.config[pluginName].position===undefined){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}_model.loadPlaylist=function(arg,ready){var input;if(typeof arg=="string"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input};break}_model.playlist=new jwplayer.html5.playlist(config);if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}_model.item=_model.config.item}if(!ready){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED);_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{item:_model.item})}_model.setActiveMediaProvider(_model.playlist[_model.item])};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(result===null){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)}_model.setActiveMediaProvider=function(playlistItem){if(_media!==undefined){_media.resetEventListeners()}_media=new jwplayer.html5.mediavideo(_model,_container);_media.addGlobalListener(forward);if(_model.config.chromeless){_media.load(playlistItem)}return true};_model.getMedia=function(){return _media};_model.setupPlugins=function(){for(var plugin in _model.plugins.order){try{if(jwplayer.html5[_model.plugins.order[plugin]]!==undefined){_model.plugins.object[_model.plugins.order[plugin]]=new jwplayer.html5[_model.plugins.order[plugin]](_api,_model.plugins.config[_model.plugins.order[plugin]])}else{if(window[_model.plugins.order[plugin]]!==undefined){_model.plugins.object[_model.plugins.order[plugin]]=new window[_model.plugins.order[plugin]](_api,_model.plugins.config[_model.plugins.order[plugin]])}else{_model.plugins.order.splice(plugin,plugin+1)}}}catch(err){jwplayer.html5.utils.log("Could not setup "+_model.plugins.order[plugin])}}};return _model}})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist.length>0){for(var f in a.playlist){e.push(new b.html5.playlistitem(a.playlist[f]))}}else{e.push(new b.html5.playlistitem(a))}return e}})(jwplayer);(function(b){b.html5.playlistitem=function(f){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};for(var e in a){if(f[e]!==undefined){a[e]=f[e]}}if(a.levels.length===0){a.levels[0]=new b.html5.playlistitemlevel(a)}return a}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(a[f]!==undefined){e[f]=a[f]}}return e}})(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.html5.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(B,t,y){var u={};var E=t;var x=y;var C=true;var z;var v=B;var a=false;function w(){if(v===undefined||v===""){D(b.html5.defaultSkin().xml)}else{b.utils.ajax(b.html5.utils.getAbsolutePath(v),function(c){D(c.responseXML)},function(c){D(b.html5.defaultSkin().xml)})}}function D(n){var V=n.getElementsByTagName("component");if(V.length===0){return}for(var q=0;q<V.length;q++){var X=V[q].getAttribute("name");var h={settings:{},elements:{},layout:{}};u[X]=h;var R=V[q].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var T=0;T<R.length;T++){F(R[T],X)}var l=V[q].getElementsByTagName("settings")[0];if(l!==undefined&&l.childNodes.length>0){var k=l.getElementsByTagName("setting");for(var d=0;d<k.length;d++){var c=k[d].getAttribute("name");var o=k[d].getAttribute("value");var p=/color$/.test(c)?"color":null;u[X].settings[c]=b.html5.utils.typechecker(o,p)}}var i=V[q].getElementsByTagName("layout")[0];if(i!==undefined&&i.childNodes.length>0){var g=i.getElementsByTagName("group");for(var P=0;P<g.length;P++){var j=g[P];u[X].layout[j.getAttribute("position")]={elements:[]};for(var e=0;e<j.attributes.length;e++){var W=j.attributes[e];u[X].layout[j.getAttribute("position")][W.name]=W.value}var f=j.getElementsByTagName("*");for(var Q=0;Q<f.length;Q++){var U=f[Q];u[X].layout[j.getAttribute("position")].elements.push({type:U.tagName});for(var S=0;S<U.attributes.length;S++){var m=U.attributes[S];u[X].layout[j.getAttribute("position")].elements[Q][m.name]=m.value}if(u[X].layout[j.getAttribute("position")].elements[Q].name===undefined){u[X].layout[j.getAttribute("position")].elements[Q].name=U.tagName}}}}C=false;r()}}function r(){clearInterval(z);if(!a){z=setInterval(function(){s()},100)}}function F(d,e){var f=new Image();var i=d.getAttribute("name");var g=d.getAttribute("src");var j;if(g.indexOf("data:image/png;base64,")===0){j=g}else{var h=b.html5.utils.getAbsolutePath(v);var c=h.substr(0,h.lastIndexOf("/"));j=[c,e,g].join("/")}u[e].elements[i]={height:0,width:0,src:"",ready:false};f.onload=function(k){A(f,i,e)};f.onerror=function(k){a=true;r();x()};f.src=j}function s(){for(var d in u){if(d!="properties"){for(var c in u[d].elements){if(!u[d].elements[c].ready){return}}}}if(C===false){clearInterval(z);E(u)}}function A(e,c,d){u[d].elements[c].height=e.height;u[d].elements[c].width=e.width;u[d].elements[c].src=e.src;u[d].elements[c].ready=true;r()}w()}})(jwplayer);(function(d){var c={};d.html5.utils.animations=function(){};d.html5.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a};d.html5.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a};d.html5.utils.animations.rotate=function(b,a){d.html5.utils.animations.transform(b,["rotate(",a,"deg)"].join(""))};d.html5.utils.cancelAnimation=function(a){delete c[a.id]};d.html5.utils.fadeTo=function(a,q,r,n,o,s){if(c[a.id]!=s&&s!==undefined){return}var t=new Date().getTime();if(s>t){setTimeout(function(){d.html5.utils.fadeTo(a,q,r,n,0,s)},s-t)}a.style.display="block";if(n===undefined){n=a.style.opacity===""?1:a.style.opacity}if(a.style.opacity==q&&a.style.opacity!==""&&s!==undefined){if(q===0){a.style.display="none"}return}if(s===undefined){s=t;c[a.id]=s}if(o===undefined){o=0}var m=(t-s)/(r*1000);m=m>1?1:m;var b=q-n;var p=n+(m*b);if(p>1){p=1}else{if(p<0){p=0}}a.style.opacity=p;if(o>0){c[a.id]=s+o*1000;d.html5.utils.fadeTo(a,q,r,n,0,c[a.id]);return}setTimeout(function(){d.html5.utils.fadeTo(a,q,r,n,0,s)},10)}})(jwplayer);(function(j){var i=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);j.html5.utils.typechecker=function(a,b){b=b===null?f(a):b;return h(a,b)};function f(b){var a=["true","false","t","f"];if(a.indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(i.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(b===null){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.html5.api=function(r,a){var k={};if(!b.utils.hasHTML5()){return k}var p=document.createElement("div");r.parentNode.replaceChild(p,r);p.id=r.id;k.version=b.html5.version;k.id=p.id;var l=new b.html5.model(k,p,a);var o=new b.html5.view(k,p,l);var m=new b.html5.controller(k,p,l,o);k.skin=new b.html5.skin();k.jwPlay=m.play;k.jwPause=m.pause;k.jwStop=m.stop;k.jwSeek=m.seek;k.jwPlaylistItem=m.item;k.jwPlaylistNext=m.next;k.jwPlaylistPrev=m.prev;k.jwResize=m.resize;k.jwLoad=m.load;function n(c){return function(){return l[c]}}k.jwGetItem=n("item");k.jwGetPosition=n("position");k.jwGetDuration=n("duration");k.jwGetBuffer=n("buffer");k.jwGetWidth=n("width");k.jwGetHeight=n("height");k.jwGetFullscreen=n("fullscreen");k.jwSetFullscreen=m.setFullscreen;k.jwGetVolume=n("volume");k.jwSetVolume=m.setVolume;k.jwGetMute=n("mute");k.jwSetMute=m.setMute;k.jwGetState=n("state");k.jwGetVersion=function(){return k.version};k.jwGetPlaylist=function(){return l.playlist};k.jwAddEventListener=m.addEventListener;k.jwRemoveEventListener=m.removeEventListener;k.jwSendEvent=m.sendEvent;k.jwGetLevel=function(){};k.jwGetBandwidth=function(){};k.jwGetLockState=function(){};k.jwLock=function(){};k.jwUnlock=function(){};function q(c,d,e){return function(){c.loadPlaylist(c.config,true);c.setupPlugins();d.setup(c.getMedia().getDisplayElement());var f={id:k.id,version:k.version};e.sendEvent(b.api.events.JWPLAYER_READY,f);if(playerReady!==undefined){playerReady(f)}if(window[c.config.playerReady]!==undefined){window[c.config.playerReady](f)}c.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED);c.sendEvent(b.api.events.JWPLAYER_PLAYLIST_ITEM,{item:c.config.item});if(c.config.autostart===true&&!c.config.chromeless){e.play()}}}if(l.config.chromeless){setTimeout(q(l,o,m),25)}else{k.skin.load(l.config.skin,q(l,o,m))}return k}})(jwplayer);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),j=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],k=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){k=aB.plugins[ab].description;if(k&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var i=new ActiveXObject(X);if(i){k=i.GetVariable("$version");if(k){d=true;k=k.split(" ")[1].split(",");f=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:j}}(),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 l=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var i=aS(c);if(i){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(l){a.success=true;a.ref=av(c);l(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=i.getAttribute("width")||"0";e.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){e.styleclass=i.getAttribute("class")}if(i.getAttribute("align")){e.align=i.getAttribute("align")}var f={};var d=i.getElementsByTagName("param");var k=d.length;for(var j=0;j<k;j++){if(d[j].getAttribute("name").toLowerCase()!="movie"){f[d[j].getAttribute("name")]=d[j].getAttribute("value")}}ae(e,f,c,l)}else{aF(i);if(l){l(a)}}}}}else{ay(c,true);if(l){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}l(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 i in e){if(e[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){g.movie=e[i]}else{if(i.toLowerCase()=="styleclass"){f+=' class="'+e[i]+'"'}else{if(i.toLowerCase()!="classid"){f+=" "+i+'="'+e[i]+'"'}}}}}var h="";for(var j in g){if(g[j]!=Object.prototype[j]){h+='<param name="'+j+'" value="'+g[j]+'" />'}}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 k in e){if(e[k]!=Object.prototype[k]){if(k.toLowerCase()=="styleclass"){b.setAttribute("class",e[k])}else{if(k.toLowerCase()!="classid"){b.setAttribute(k,e[k])}}}}for(var l in g){if(g[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"){aQ(b,l,g[l])}}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(k,e,h,f,c,a,b,i,g,j){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&k&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var q={};if(g&&typeof g===aD){for(var o in g){q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aD){for(var p in i){n[p]=i[p]}}if(b&&typeof b===aD){for(var l in b){if(typeof n.flashvars!=aq){n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ao(c)){var m=aA(q,n,e);if(q.id==e){ay(e,true)}d.success=true;d.ref=m}else{if(a&&au()){q.data=a;ae(q,n,e,j);return}else{ay(e,true)}}if(j){j(d)}})}else{if(j){j(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}}}}();
