function madonnaConsole(c){var a=this;this.param=c;this.miniStorys=3;this.bigImage=$("#"+c.id+" .bigStory");this.bigInfo=$("#"+c.id+" .bigStoryInfo");this.tinyDiv=$("#"+c.id+" .tinyStorys .b");this.tinyFlow=this.tinyDiv.find(".flow");this.storys=this.tinyFlow.find(".story").length;var b=this.tinyFlow.html();this.tinyFlow.append(b);this.tinyStories=this.tinyFlow.find(".story");this.w=this.tinyDiv.find(".story:first").outerWidth();this.maxw=this.storys*this.w;this.jump=function(f,d){this.curr=$(f);if(typeof d!="undefined"){clearInterval(this.iv)}this.tinyStories.removeClass("active");this.curr.addClass("active");this.index=this.curr.prevAll().length+1;var e=this.w*this.index;if(this.maxw<e){this.jump(this.tinyDiv.find(".story:first"))}else{this.tinyFlow.css("left","-"+e+"px");this.load()}};this.load=function(){var g=this.curr;this.bigInfo.html(g.find(".big").html());var e=g.find(".bigimage a:first");var f=g.find(".bigimage img:first");var d=g.find(".layoutElements");this.bigImage.find("a:first").attr("href",e.attr("href"));this.bigImage.find("a:first").attr("target",e.attr("target"));this.bigImage.find("img:first").attr("src",f.attr("src"));this.bigImage.find(".layoutElements").html(d.html())};this.ivJump=function(){this.next()};this.next=function(d){this.jump(this.tinyFlow.find(".active").next(),d)};this.prev=function(e){var d=this.tinyFlow.find(".active").prev();if(!d.length){this.jump(this.tinyDiv.find(".story:eq("+(this.storys-1)+")"),e)}else{this.jump(d,e)}};this.init=function(){this.jump(this.tinyDiv.find(".story:eq(0)"));this.iv=setInterval(this.param.ownName+".ivJump()",this.param.interval)}}function oe24Slider(c){var a=this;this.prev=function(){this.page--;if(this.page<0){this.page=this.pages-1}this.gotoPage(this.page)};this.next=function(){this.page++;if(this.page>=this.pages){this.page=0}this.gotoPage(this.page)};this.gotoPage=function(e){var f=e*this.param.jumpPerClick;var d=f+this.entrysPerPage;this.box.find(".flowBox > .entry").hide();this.box.find(".flowBox > .entry").each(function(g){if(g>=f&&g<d){$(this).show()}})};this.param=c;this.box=$("#"+this.param.id);this.count=this.box.find(".flowBox > .entry").length;var b=this.box.find(".flowBox").html();this.box.find(".flowBox").append(b);this.entrysPerPage=typeof this.param.entrysPerPage!="undefined"?this.param.entrysPerPage:4;this.page=0;this.pages=Math.ceil(this.count/this.param.jumpPerClick);this.box.find(".flowBox > .entry").hide();this.box.find(".flowBox > .entry").each(function(d){if(d>=a.entrysPerPage){return false}$(this).show()})}var showInlineAdsEvery=5;function oe24InlineDiashow(a){this.showAd=function(){if($("#"+a.id+" #slide_slot").length>0){if($("#"+a.id+" #slide_slot").val()!=1){this.box.find(".entry").hide();$("#"+a.id+" #slide_slot").val(1)}if($("#"+a.id+" #slide_slot").val()==1){$("#"+a.id+" #adContainerTmpWerbebreak1 a").remove();$("#"+a.id+" #sliderInlineAdSlot").show()}}};this.hideAd=function(){if($("#"+a.id+" #slide_slot").length>0){if($("#"+a.id+" #slide_slot").val()==1){$("#"+a.id+" #slide_slot").val(0)}if($("#"+a.id+" #slide_slot").val()==0){if($("#"+a.id+" #sliderInlineAdSlot").length>0){$("#"+a.id+" #sliderInlineAdSlot").hide()}}}};this.countClick=function(){if(this.showAds==true){if($("#"+a.id+" #slide_slot").length>0){this.inlineClickCounter++;if(this.inlineClickCounter>showInlineAdsEvery){this.inlineClickCounter=showInlineAdsEvery}else{if(this.inlineClickCounter==showInlineAdsEvery){this.showAd();this.inlineClickCounter=0}else{if(this.inlineClickCounter<showInlineAdsEvery&&this.inlineClickCounter!=0){this.hideAd()}}}}}};this.jumpTo=function(c){this.s.html(c+" / "+this.all);this.current=c;this.box.find(".entry").hide();this.box.find(".entry:eq("+(this.current-1)+")").show();var b=this.box.find(".entry:eq("+(this.current-1)+") img:first");b.attr("src",b.attr("alt"))};this.prev=function(){if($("#"+a.id+" #slide_slot").length>0){this.countClick();if(this.inlineClickCounter<showInlineAdsEvery&&this.inlineClickCounter!=0){this.current--;if(this.current<1){this.current=this.all}this.jumpTo(this.current)}}else{this.current--;if(this.current<1){this.current=this.all}this.jumpTo(this.current)}};this.next=function(){if($("#"+a.id+" #slide_slot").length>0){this.countClick();if(this.inlineClickCounter<showInlineAdsEvery&&this.inlineClickCounter!=0){this.current++;if(this.current>this.all){this.current=1}this.jumpTo(this.current)}}else{this.current++;if(this.current>this.all){this.current=1}this.jumpTo(this.current)}};this.box=$("#"+a.id);this.s=this.box.find(".a div span");this.current=1;this.all=this.box.find(".entry").length;this.jumpTo(this.current);this.showAds=(typeof a.showAds!="undefined"&&a.showAds==true)?true:false;this.inlineClickCounter=1}function oe24TextSlideshow(b){var a=this;this.box=$("#"+b.id);this.page=0;this.prev=function(){a.page--;if(a.page<0){a.page=b.pages-1}a.gotoPage(a.page)};this.next=function(){a.page++;if(a.page>=b.pages){a.page=0}a.gotoPage(a.page)};this.gotoPage=function(c){a.page=c;a.textPosition=this.box.find(".textSlideshowHeadline .textSlideshowPosition");if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){window.getSelection().setBaseAndExtent(a.textPosition,0,a.textPosition,1)}this.currentItem=this.box.find(".textSlideshowContentArea .tSsEntry");this.currentItem.removeClass("visible");this.currentItem.addClass("hidden");this.nextItem=this.box.find(".textSlideshowContentArea .tSsEntry:eq("+a.page+")");this.nextItem.removeClass("hidden");this.nextItem.addClass("visible");this.box.find(".textSlideshowHeadline .textSlideshowPosition").html((a.page+1)+"/"+b.pages)}}
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var c=M.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d}else{if(a){b.selector=this.selector+"."+a+"("+d+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement("div");e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),c=0;d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var g=T.data(a[c],"events");for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ab){var j=this[0];if(j){if(T.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,"select")){var e=j.selectedIndex,b=[],a=j.options,f=j.type=="select-one";if(e<0){return null}for(var h=f?e:0,d=f?e+1:a.length;h<d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(j.value||"").replace(/\r/g,"")}return ab}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)}else{if(T.nodeName(this,"select")){var k=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,k)>=0||T.inArray(this.text,k)>=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,j=this.length;g<j;g++){b.call(c(this[g],f),this.length>1||g>0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(l,k){return a&&T.nodeName(l,"table")&&T.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;if(h==="border"){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,"padding"+this,true))||0}if(h==="margin"){a+=parseFloat(T.curCSS(e,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,j=e.style;if(h=="opacity"&&!T.support.opacity){b=T.attr(j,"opacity");return b==""?"1":b}if(h.match(/float/i)){h=H}if(!g&&j&&j[h]){b=j[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h=="opacity"&&b==""){b="1"}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=j.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;j.left=b||0;b=j.pixelLeft+"px";j.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement("div");T.each(g,function(m,j){if(typeof j==="number"){j+=""}if(!j){return}if(typeof j==="string"){j=j.replace(/(<(\w+)[^>]*?)\/>/g,function(r,q,s){return s.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:q+"></"+s+">"});var n=j.replace(/^\s+/,"").substring(0,10).toLowerCase();var l=!n.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!n.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||n.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!n.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!n.indexOf("<td")||!n.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!n.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=l[1]+j+l[2];while(l[0]--){a=a.lastChild}if(!T.support.tbody){var k=/<tbody/i.test(j),o=!n.indexOf("<table")&&!k?a.firstChild&&a.firstChild.childNodes:l[1]=="<table>"&&!k?a.childNodes:[];for(var p=o.length-1;p>=0;--p){if(T.nodeName(o[p],"tbody")&&!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!T.support.leadingWhitespace&&/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=T.makeArray(a.childNodes)}if(j.nodeType){f.push(j)}else{f=T.merge(f,j)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&&T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[f]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab}return c[f]}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(f,""+b)}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&&f=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d<c;d++){if(a[d]===b){return d}}return -1},merge:function(b,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&&typeof d=="string"){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d<g;d++){var f=(d>0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d="";for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b==="fx"){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ab&&this.length){c=T.data(this[0],d)}return c===ab&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,m=Object.prototype.toString;var o=function(s,w,aj,ai){aj=aj||[];w=w||document;if(w.nodeType!==1&&w.nodeType!==9){return[]}if(!s||typeof s!=="string"){return aj}var r=[],u,B,y,x,D,v,t=true;b.lastIndex=0;while((u=b.exec(s))!==null){r.push(u[1]);if(u[2]){v=RegExp.rightContext;break}}if(r.length>1&&g.exec(s)){if(r.length===2&&l.relative[r[0]]){B=k(r[0]+r[1],w)}else{B=l.relative[r[0]]?[w]:o(r.shift(),w);while(r.length){s=r.shift();if(l.relative[s]){s+=r.shift()}B=k(s,B)}}}else{var C=ai?{expr:r.pop(),set:p(ai)}:o.find(r.pop(),r.length===1&&w.parentNode?w.parentNode:w,c(w));B=o.filter(C.expr,C.set);if(r.length>0){y=p(B)}else{t=false}while(r.length){var z=r.pop(),A=z;if(!l.relative[z]){z=""}else{A=r.pop()}if(A==null){A=w}l.relative[z](y,A,c(w))}}if(!y){y=B}if(!y){throw"Syntax error, unrecognized expression: "+(z||s)}if(m.call(y)==="[object Array]"){if(!t){aj.push.apply(aj,y)}else{if(w.nodeType===1){for(var q=0;y[q]!=null;q++){if(y[q]&&(y[q]===true||y[q].nodeType===1&&j(w,y[q]))){aj.push(B[q])}}}else{for(var q=0;y[q]!=null;q++){if(y[q]&&y[q].nodeType===1){aj.push(B[q])}}}}}else{p(y,aj)}if(v){o(v,w,aj,ai);if(n){hasDuplicate=false;aj.sort(n);if(hasDuplicate){for(var q=1;q<aj.length;q++){if(aj[q]===aj[q-1]){aj.splice(q--,1)}}}}}return aj};o.matches=function(r,q){return o(r,null,null,q)};o.find=function(q,x,y){var r,t;if(!q){return[]}for(var u=0,v=l.order.length;u<v;u++){var s=l.order[u],t;if((t=l.match[s].exec(q))){var w=RegExp.leftContext;if(w.substr(w.length-1)!=="\\"){t[1]=(t[1]||"").replace(/\\/g,"");r=l.find[s](t,x,y);if(r!=null){q=q.replace(l.match[s],"");break}}}}if(!r){r=x.getElementsByTagName("*")}return{set:r,expr:q}};o.filter=function(D,ai,A,u){var v=D,y=[],q=ai,s,x,r=ai&&ai[0]&&c(ai[0]);while(D&&ai.length){for(var aj in l.filter){if((s=l.match[aj].exec(D))!=null){var w=l.filter[aj],z,B;x=false;if(q==y){y=[]}if(l.preFilter[aj]){s=l.preFilter[aj](s,q,A,y,u,r);if(!s){x=z=true}else{if(s===true){continue}}}if(s){for(var t=0;(B=q[t])!=null;t++){if(B){z=w(B,s,t,q);var C=u^!!z;if(A&&z!=null){if(C){x=true}else{q[t]=false}}else{if(C){y.push(B);x=true}}}}}if(z!==ab){if(!A){q=y}D=D.replace(l.match[aj],"");if(!x){return[]}break}}}if(D==v){if(x==null){throw"Syntax error, unrecognized expression: "+D}else{break}}v=D}return q};var l=o.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(q){return q.getAttribute("href")}},relative:{"+":function(q,x,r){var t=typeof x==="string",y=t&&!/\W/.test(x),s=t&&!y;if(y&&!r){x=x.toUpperCase()}for(var u=0,v=q.length,w;u<v;u++){if((w=q[u])){while((w=w.previousSibling)&&w.nodeType!==1){}q[u]=s||w&&w.nodeName===x?w||false:w===x}}if(s){o.filter(x,q,true)}},">":function(v,s,u){var x=typeof s==="string";if(x&&!/\W/.test(s)){s=u?s:s.toUpperCase();for(var r=0,t=v.length;r<t;r++){var w=v[r];if(w){var q=w.parentNode;v[r]=q.nodeName===s?q:false}}}else{for(var r=0,t=v.length;r<t;r++){var w=v[r];if(w){v[r]=x?w.parentNode:w.parentNode===s}}if(x){o.filter(s,v,true)}}},"":function(q,s,u){var r=h++,t=a;if(!s.match(/\W/)){var v=s=u?s:s.toUpperCase();t=d}t("parentNode",s,r,q,v,u)},"~":function(q,s,u){var r=h++,t=a;if(typeof s==="string"&&!s.match(/\W/)){var v=s=u?s:s.toUpperCase();t=d}t("previousSibling",s,r,q,v,u)}},find:{ID:function(s,r,q){if(typeof r.getElementById!=="undefined"&&!q){var t=r.getElementById(s[1]);return t?[t]:[]}},NAME:function(r,v,u){if(typeof v.getElementsByName!=="undefined"){var s=[],w=v.getElementsByName(r[1]);for(var q=0,t=w.length;q<t;q++){if(w[q].getAttribute("name")===r[1]){s.push(w[q])}}return s.length===0?null:s}},TAG:function(r,q){return q.getElementsByTagName(r[1])}},preFilter:{CLASS:function(q,s,r,t,v,u){q=" "+q[1].replace(/\\/g,"")+" ";if(u){return q}for(var x=0,w;(w=s[x])!=null;x++){if(w){if(v^(w.className&&(" "+w.className+" ").indexOf(q)>=0)){if(!r){t.push(w)}}else{if(r){s[x]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(r,s){for(var q=0;s[q]===false;q++){}return s[q]&&c(s[q])?r[1]:r[1].toUpperCase()},CHILD:function(r){if(r[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]=="even"&&"2n"||r[2]=="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=(q[1]+(q[2]||1))-0;r[3]=q[3]-0}r[0]=h++;return r},ATTR:function(w,s,r,t,v,u){var q=w[1].replace(/\\/g,"");if(!u&&l.attrMap[q]){w[1]=l.attrMap[q]}if(w[2]==="~="){w[4]=" "+w[4]+" "}return w},PSEUDO:function(v,s,r,t,u){if(v[1]==="not"){if(v[3].match(b).length>1||/^\w/.test(v[3])){v[3]=o(v[3],null,null,s)}else{var q=o.filter(v[3],s,r,true^u);if(!r){t.push.apply(t,q)}return false}}else{if(l.match.POS.test(v[0])||l.match.CHILD.test(v[0])){return true}}return v},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(q,r,s){return !!o(s[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()==="BUTTON"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,r){return r===0},last:function(r,s,t,q){return s===q.length-1},even:function(q,r){return r%2===0},odd:function(q,r){return r%2===1},lt:function(q,r,s){return r<s[3]-0},gt:function(q,r,s){return r>s[3]-0},nth:function(q,r,s){return s[3]-0==r},eq:function(q,r,s){return s[3]-0==r}},filter:{PSEUDO:function(v,r,q,u){var s=r[1],x=l.filters[s];if(x){return x(v,q,r,u)}else{if(s==="contains"){return(v.textContent||v.innerText||"").indexOf(r[3])>=0}else{if(s==="not"){var w=r[3];for(var q=0,t=w.length;q<t;q++){if(w[q]===v){return false}}return true}}}},CHILD:function(x,u){var r=u[1],w=x;switch(r){case"only":case"first":while(w=w.previousSibling){if(w.nodeType===1){return false}}if(r=="first"){return true}w=x;case"last":while(w=w.nextSibling){if(w.nodeType===1){return false}}return true;case"nth":var v=u[2],y=u[3];if(v==1&&y==0){return true}var s=u[0],z=x.parentNode;if(z&&(z.sizcache!==s||!x.nodeIndex)){var t=0;for(w=z.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++t}}z.sizcache=s}var q=x.nodeIndex-y;if(v==0){return q==0}else{return(q%v==0&&q/v>=0)}}},ID:function(q,r){return q.nodeType===1&&q.getAttribute("id")===r},TAG:function(q,r){return(r==="*"&&q.nodeType===1)||q.nodeName===r},CLASS:function(q,r){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(r)>-1},ATTR:function(v,q){var r=q[1],t=l.attrHandle[r]?l.attrHandle[r](v):v[r]!=null?v[r]:v.getAttribute(r),u=t+"",w=q[2],s=q[4];return t==null?w==="!=":w==="="?u===s:w==="*="?u.indexOf(s)>=0:w==="~="?(" "+u+" ").indexOf(s)>=0:!s?u&&t!==false:w==="!="?u!=s:w==="^="?u.indexOf(s)===0:w==="$="?u.substr(u.length-s.length)===s:w==="|="?u===s||u.substr(0,s.length+1)===s+"-":false},POS:function(v,s,r,u){var t=s[2],q=l.setFilters[t];if(q){return q(v,r,s,u)}}}};var g=l.match.POS;for(var e in l.match){l.match[e]=RegExp(l.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(q,r){q=Array.prototype.slice.call(q);if(r){r.push.apply(r,q);return r}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){p=function(u,q){var s=q||[];if(m.call(u)==="[object Array]"){Array.prototype.push.apply(s,u)}else{if(typeof u.length==="number"){for(var r=0,t=u.length;r<t;r++){s.push(u[r])}}else{for(var r=0;u[r];r++){s.push(u[r])}}}return s}}var n;if(document.documentElement.compareDocumentPosition){n=function(r,s){var q=r.compareDocumentPosition(s)&4?-1:r===s?0:1;if(q===0){hasDuplicate=true}return q}}else{if("sourceIndex" in document.documentElement){n=function(r,s){var q=r.sourceIndex-s.sourceIndex;if(q===0){hasDuplicate=true}return q}}else{if(document.createRange){n=function(q,s){var r=q.ownerDocument.createRange(),t=s.ownerDocument.createRange();r.selectNode(q);r.collapse(true);t.selectNode(s);t.collapse(true);var u=r.compareBoundaryPoints(Range.START_TO_END,t);if(u===0){hasDuplicate=true}return u}}}}(function(){var r=document.createElement("form"),q="script"+(new Date).getTime();r.innerHTML="<input name='"+q+"'/>";var s=document.documentElement;s.insertBefore(r,s.firstChild);if(!!document.getElementById(q)){l.find.ID=function(w,v,u){if(typeof v.getElementById!=="undefined"&&!u){var t=v.getElementById(w[1]);return t?t.id===w[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===w[1]?[t]:ab:[]}};l.filter.ID=function(u,t){var v=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&v&&v.nodeValue===t}}s.removeChild(r)})();(function(){var q=document.createElement("div");q.appendChild(document.createComment(""));if(q.getElementsByTagName("*").length>0){l.find.TAG=function(t,u){var v=u.getElementsByTagName(t[1]);if(t[1]==="*"){var r=[];for(var s=0;v[s];s++){if(v[s].nodeType===1){r.push(v[s])}}v=r}return v}}q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#"){l.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var r=o,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return}o=function(v,w,t,s){w=w||document;if(!s&&w.nodeType===9&&!c(w)){try{return p(w.querySelectorAll(v),t)}catch(u){}}return r(v,w,t,s)};o.find=r.find;o.filter=r.filter;o.selectors=r.selectors;o.matches=r.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var q=document.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(q.getElementsByClassName("e").length===0){return}q.lastChild.className="e";if(q.getElementsByClassName("e").length===1){return}l.order.splice(1,0,"CLASS");l.find.CLASS=function(t,s,r){if(typeof s.getElementsByClassName!=="undefined"&&!r){return s.getElementsByClassName(t[1])}}})()}function d(w,r,s,y,q,z){var A=w=="previousSibling"&&!z;for(var u=0,v=y.length;u<v;u++){var x=y[u];if(x){if(A&&x.nodeType===1){x.sizcache=s;x.sizset=u}x=x[w];var t=false;while(x){if(x.sizcache===s){t=y[x.sizset];break}if(x.nodeType===1&&!z){x.sizcache=s;x.sizset=u}if(x.nodeName===r){t=x;break}x=x[w]}y[u]=t}}}function a(w,r,s,y,q,z){var A=w=="previousSibling"&&!z;for(var u=0,v=y.length;u<v;u++){var x=y[u];if(x){if(A&&x.nodeType===1){x.sizcache=s;x.sizset=u}x=x[w];var t=false;while(x){if(x.sizcache===s){t=y[x.sizset];break}if(x.nodeType===1){if(!z){x.sizcache=s;x.sizset=u}if(typeof r!=="string"){if(x===r){t=true;break}}else{if(o.filter(r,[x]).length>0){t=x;break}}}x=x[w]}y[u]=t}}}var j=document.compareDocumentPosition?function(q,r){return q.compareDocumentPosition(r)&16}:function(q,r){return q!==r&&(q.contains?q.contains(r):true)};var c=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&c(q.ownerDocument)};var k=function(t,v){var q=[],x="",w,r=v.nodeType?[v]:v;while((w=l.match.PSEUDO.exec(t))){x+=w[0];t=t.replace(l.match.PSEUDO,"")}t=l.relative[t]?t+"*":t;for(var u=0,s=r.length;u<s;u++){o(t,r[u],q)}return o.filter(x,q)};T.find=o;T.filter=o.filter;T.expr=o.selectors;T.expr[":"]=T.expr.filters;o.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};o.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0};o.selectors.filters.animated=function(q){return T.grep(T.timers,function(r){return q===r.elem}).length};T.multiFilter=function(q,s,r){if(r){q=":not("+q+")"}return o.matches(q,s)};T.dir=function(r,s){var t=[],q=r[s];while(q&&q!=document){if(q.nodeType==1){t.push(q)}q=q[s]}return t};T.nth=function(u,t,r,q){t=t||1;var s=0;for(;u;u=u[r]){if(u.nodeType==1&&++s==t){break}}return u};T.sibling=function(q,r){var s=[];for(;q;q=q.nextSibling){if(q.nodeType==1&&q!=r){s.push(q)}}return s};return;W.Sizzle=o})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;d=this.proxy(e);d.data=a}var g=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(l,k){var j=k.split(".");k=j.shift();d.type=j.slice().sort().join(".");var h=g[k];if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(c,a,j)}if(!h){h=g[k]={};if(!T.event.special[k]||T.event.special[k].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(k,b,false)}else{if(c.attachEvent){c.attachEvent("on"+k,b)}}}}h[d.guid]=d;T.event.global[k]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,"events"),g,h;if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(n,l){var j=l.split(".");l=j.shift();var m=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");if(f[l]){if(c){delete f[l][c.guid]}else{for(var k in f[l]){if(m.test(f[l][k].type)){delete f[l][k]}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(b,j)}for(g in f[l]){break}if(!g){if(!T.event.special[l]||T.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+l,T.data(b,"handle"))}}}g=null;delete f[l]}}})}for(g in f){break}if(!g){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,"handle");if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");h=(T.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];T.each(T.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,"closest")-T.data(f.elem,"closest")});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e)}var c=e.indexOf(" ");if(c>=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);d="POST"}}}var f=this;T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(j,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):j.responseText)}if(a){f.each(a,[j.responseText,h,j])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(c,b,a){return T.get(c,b,a,"json")},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));var a,s=/=\?(&|$)/g,f,b,r=l.type.toUpperCase();if(l.data&&l.processData&&typeof l.data!=="string"){l.data=T.param(l.data)}if(l.dataType=="jsonp"){if(r=="GET"){if(!l.url.match(s)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?"}}else{if(!l.data||!l.data.match(s)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?"}}l.dataType="json"}if(l.dataType=="json"&&(l.data&&l.data.match(s)||l.url.match(s))){a="jsonp"+N++;if(l.data){l.data=(l.data+"").replace(s,"="+a+"$1")}l.url=l.url.replace(s,"="+a+"$1");l.dataType="script";W[a]=function(v){b=v;p();m();W[a]=ab;try{delete W[a]}catch(u){}if(q){q.removeChild(d)}}}if(l.dataType=="script"&&l.cache==null){l.cache=false}if(l.cache===false&&r=="GET"){var t=ad();var c=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");l.url=c+((c==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+t:"")}if(l.data&&r=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null}if(l.global&&!T.active++){T.event.trigger("ajaxStart")}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType=="script"&&r=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var q=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=l.url;if(l.scriptCharset){d.charset=l.scriptCharset}if(!a){var j=false;d.onload=d.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;p();m();d.onload=d.onreadystatechange=null;q.removeChild(d)}}}q.appendChild(d);return ab}var n=false;var o=l.xhr();if(l.username){o.open(r,l.url,l.async,l.username,l.password)}else{o.open(r,l.url,l.async)}try{if(l.data){o.setRequestHeader("Content-Type",l.contentType)}if(l.ifModified){o.setRequestHeader("If-Modified-Since",T.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default)}catch(e){}if(l.beforeSend&&l.beforeSend(o,l)===false){if(l.global&&!--T.active){T.event.trigger("ajaxStop")}o.abort();return false}if(l.global){T.event.trigger("ajaxSend",[o,l])}var k=function(w){if(o.readyState==0){if(h){clearInterval(h);h=null;if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!n&&o&&(o.readyState==4||w=="timeout")){n=true;if(h){clearInterval(h);h=null}f=w=="timeout"?"timeout":!T.httpSuccess(o)?"error":l.ifModified&&T.httpNotModified(o,l.url)?"notmodified":"success";if(f=="success"){try{b=T.httpData(o,l.dataType,l)}catch(u){f="parsererror"}}if(f=="success"){var v;try{v=o.getResponseHeader("Last-Modified")}catch(u){}if(l.ifModified&&v){T.lastModified[l.url]=v}if(!a){p()}}else{T.handleError(l,o,f)}m();if(w){o.abort()}if(l.async){o=null}}}};if(l.async){var h=setInterval(k,13);if(l.timeout>0){setTimeout(function(){if(o&&!n){k("timeout")}},l.timeout)}}try{o.send(l.data)}catch(e){T.handleError(l,o,null,e)}if(!l.async){k()}function p(){if(l.success){l.success(b,f)}if(l.global){T.event.trigger("ajaxSuccess",[o,l])}}function m(){if(l.complete){l.complete(o,f)}if(l.global){T.event.trigger("ajaxComplete",[o,l])}if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}return o},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger("ajaxError",[a,c,b])}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(d&&d.dataFilter){b=d.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){T.globalEval(b)}if(c=="json"){b=W["eval"]("("+b+")")}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)}else{for(var e=0,g=this.length;e<g;e++){var h=T.data(this[e],"olddisplay");this[e].style.display=h||"";if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[f]=b}T.data(this[e],"olddisplay",b)}}for(var e=0,g=this.length;e<g;e++){this[e].style.display=T.data(this[e],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var c=0,d=this.length;c<d;c++){var e=T.data(this[c],"olddisplay");if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}}for(var c=0,d=this.length;c<d;c++){this[c].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");T(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),j,f=this.nodeType==1&&T(this).is(":hidden"),h=this;for(j in a){if(a[j]=="hide"&&f||a[j]=="show"&&!f){return g.complete.call(this)}if((j=="height"||j=="width")&&this.style){g.display=T.css(this,"display");g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow="hidden"}g.curAnim=T.extend({},a);T.each(a,function(p,l){var m=new T.fx(h,g,p);if(/toggle|show|hide/.test(l)){m[l=="toggle"?f?"show":"hide":l](a)}else{var n=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;if(n){var q=parseFloat(n[2]),o=n[3]||"px";if(o!="px"){h.style[p]=(q||1)+o;k=((q||1)/m.cur(true))*k;h.style[p]=k+o}if(n[1]){q=((n[1]=="-="?-1:1)*q)+k}m.custom(k,q,o)}else{m.custom(k,l,"")}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var f=T.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],j=f.offsetParent,k=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,l=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===j){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}k=j,j=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}l=c}if(l.position==="relative"||l.position==="static"){b+=e.offsetTop,g+=e.offsetLeft}if(l.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,j=document.createElement("div"),g,h,a,f,b,k,e=c.style.marginTop,d='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(k in b){j.style[k]=b[k]}j.innerHTML=d;c.insertBefore(j,c.firstChild);g=j.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow="hidden",g.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(j);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");f.top+=Y(d,"borderTopWidth");f.left+=Y(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,c){var a="scroll"+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,d){var f=b?"Left":"Top",c=b?"Right":"Bottom",e=d.toLowerCase();T.fn["inner"+d]=function(){return this[0]?T.css(this[0],e,false,"padding"):null};T.fn["outer"+d]=function(g){return this[0]?T.css(this[0],e,false,g?"margin":"border"):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g==="string"?g:g+"px")}})})();(oe24Core={_init:function(){},popup:function(d,g){if(typeof g!="undefined"){g.width=typeof g.width=="undefined"||g.width==""?0:g.width;g.height=typeof g.height=="undefined"||g.height==""?0:g.height}else{g={};g.width=g.height=0}var c=g.width?g.width:(screen.availWidth/2);var f=g.height?g.height:(screen.availHeight/2);var e=100;var b=(screen.availWidth)/2-(c/2);var a="width="+c+", height="+f+", top="+e+", left="+b;if(g.scrollbars!="undefined"&&g.scrollbars){a+=", scrollbars=yes"}window.open(d,"popup",a)},ratingRequest:function(d,a,b,c){$.ajax({url:"/rating/"+d+"/"+a+"/"+b,type:"POST",success:function(e){if(e=="1"){if(typeof c=="function"){c()}}}})}});oe24Core._init();(oe24Tracking={_init:function(){this.oewaBase="http://oe24.oewabox.at/cgi-bin/ivw/CP/";this.ivwBase="http://glam.ivwbox.de/cgi-bin/ivw/CP/";this.oewaPath=null;this.ivwPath=null;this.googleTrackers=[];this.currentChannel=0;this.currentChannelId=0;this.currentObject=0;this.oewaSite="oe24.at";this.username="guest"},trackPageView:function(b){this.loadOewa();this.objId=(this.currentObject)?this.currentObject:this.currentChannel;try{trackRequest(this.username,"200",this.objId,this.currentChannelId)}catch(a){}this.reloadAdIframe()},trackEvent:function(a){this.loadOewa();this.googleAnalyticsRefreshTracking();this.googleEventTracking(a);if(a.reloadAds!=0){this.reloadAdIframe()}},trackClickOut:function(b){if(typeof b=="undefined"){b={}}this.googleEventTracking(b);b.box=(typeof b.box=="undefined")?0:b.box;b.channel=(typeof b.channel=="undefined")?0:b.channel;b.column=(typeof b.column=="undefined")?0:b.column;this.objId=(this.currentObject)?this.currentObject:this.currentChannel;try{clickRequest(this.username,b.element,b.column,b.box,this.objId,this.currentChannelId)}catch(a){}},loadOewa:function(){if(!this.oewaPath){return false}var d=this.currentChannel=="/"?"/frontpage":this.currentChannel;var b=this.oewaBase+this.oewaPath+"/"+this.oewaSite+d+"/";var c=new Image();c.src=b+"?r="+escape(document.referrer)+"&d="+(new Date()).getTime();if(this.ivwPath){var a=this.ivwBase+this.ivwPath;var e=new Image();e.src=a+"?r="+escape(document.referrer)+"&d="+(new Date()).getTime()}},reloadAdIframe:function(){var a=window.frames.adServerIFrame;try{a.location.reload()}catch(b){}},fullEventRefresh:function(){this.reloadAdIframe();this.loadOewa();this.googleAnalyticsRefreshTracking()},googleAnalyticsRefreshTracking:function(){for(i in this.googleTrackers){_gaq.push(this.googleTrackers[i])}},googleEventTracking:function(c){c.category=(typeof c.category=="undefined")?"":"_AdditionalCategory="+c.category;c.label=(typeof c.element.href=="undefined")?"Kein Link":c.element.href;c.action=(typeof c.action=="undefined")?"click":c.action;if(typeof c.eventTrackingBox!="undefined"){c.category+="_TrackingString:"+c.eventTrackingBox+":"}else{if(typeof c.eventTrackingChannel!="undefined"){c.category+="_TrackingString:"+c.eventTrackingChannel+":"}}if(typeof c.channelname!="undefined"){c.category+="_Channel="+c.channelname;c.category+="_ChannelId="+c.channel}else{if(typeof c.callTemplate!="undefined"){c.category+="_CallTemplate="+c.callTemplate}}if(typeof c.columnname!="undefined"){c.category+="_Column="+c.columnname;c.category+="_ColumnId="+c.column}else{if(typeof c.content!="undefined"){c.category+="_ContentId="+c.content}}try{var a=c.mouseevent.pageY;var d="";if(a<=800){d="oben"}else{if(a>800&&a<=1600){d="mitte"}else{d="unten"}}c.category+="_Bereich="+d}catch(b){c.category+="_Bereich=oben"}if(typeof c.box!="undefined"){c.category+="_BoxId="+c.box}_gaq.push(["_trackEvent",c.category,c.action,c.label]);_gaq.push(["spunq._trackEvent",c.category,c.action,c.label])}});(oe24RegisterAdContainer={_init:function(){this.counter=[];this.containers=[];this.currentPosition="Left";this.googleAdSlots=[];this.debug=false},register:function(f){f=(!f)?{}:f;f.ownCounter=(typeof f.ownCounter=="undefined")?null:f.ownCounter;f.position=(!f.position)?this.currentPosition:f.position;var d=0;for(b in this.containers){if(b==f.position){d=1}if(d==1&&f.position!="Werbebreak"){d=0}}if(d==0){this.counter[f.position]=(!this.counter[f.position])?1:this.counter[f.position]+1;var b=f.ownCounter?f.ownCounter:this.counter[f.position];var e=typeof f.ownCounter!="undefined"?f.ownCounter:"";e=e==null?"":e;var h=f.position+b;var a=f.position+e;var g="adContainerTmp"+h;document.write("<span id='"+g+"'>");if(typeof this.googleAdSlots[h]!="undefined"){GA_googleFillSlot(this.googleAdSlots[h])}else{if(typeof this.googleAdSlots[a]!="undefined"){GA_googleFillSlot(this.googleAdSlots[a])}}document.write("</span>");if(typeof this.googleAdSlots[h]!="undefined"||typeof this.googleAdSlots[a]!="undefined"){$("#"+g).parent().show();$("#"+g).show()}var c=$("#"+g);var h=(f.ownCounter!=null)?f.position+f.ownCounter:f.position+b;this.containers[h]=c}},createFrame:function(b){if(this.debug===true){b+="?adDebug=1"}document.write('<iframe src="'+b+'" frameborder="0" width="0" height="0" style="visibility: hidden;" name="adServerIFrame"></iframe>');document.write('<span id="adContainers" style="display:none;"></span>');for(i in this.containers){if(typeof this.googleAdSlots[i]=="undefined"){var a=this.containers[i];$("#adContainers").append(i+":"+a.attr("id")+",")}}}});oe24RegisterAdContainer._init();ReplaceFakeLinks={counter:0,replace:function(b){this.counter++;b=$(b);var a=["href","title","target"];var c=b.find("a.realLink:first");b.find("a.fakeLink").each(function(d){$(this).removeClass("fakeLink");for(i in a){$(this).attr(a[i],c.attr(a[i]))}$(this).bind("click",function(){c.attr("onclick")()})})},replacePrev:function(){var a="replaceLinksId"+this.counter;document.write('<span id="'+a+'"></span>');this.replace($("#"+a).prev().prev())}};function ContentSlide(b){var a=this;this.box=$("#"+b);this.page=0;this.box.find(".buttons .page").each(function(c){$(this).bind("click",function(){a.gotoPage(c)})});this.box.find(".buttons .gotoLeft").bind("click",function(){a.page--;if(a.page<0){a.page=a.pages-1}a.gotoPage(a.page)});this.box.find(".buttons .gotoRight").bind("click",function(){a.page++;if(a.page>=a.pages){a.page=0}a.gotoPage(a.page)});this.gotoPage=function(c){a.page=c;this.box.find(".buttons .page").removeClass("page_active");this.box.find(".buttons .page:eq("+a.page+")").addClass("page_active");this.box.find(".pages .page").hide();this.box.find(".pages .page:eq("+a.page+")").show()}}if(typeof jwplayer=="undefined"){var jwplayer=function(b){if(jwplayer.api){return jwplayer.api.selectPlayer(b)}};var $jw=jwplayer;jwplayer.version="5.7.1896 (Licensed version)";jwplayer.vid=document.createElement("video");jwplayer.audio=document.createElement("audio");jwplayer.source=document.createElement("source");(function(c){c.utils=function(){};c.utils.typeOf=function(a){var b=typeof a;if(b==="object"){if(a){if(a instanceof Array){b="array"}}else{b="null"}}return b};c.utils.extend=function(){var f=c.utils.extend["arguments"];if(f.length>1){for(var a=1;a<f.length;a++){for(var b in f[a]){f[0][b]=f[a][b]}}return f[0]}return null};c.utils.clone=function(a){var h;var g=c.utils.clone["arguments"];if(g.length==1){switch(c.utils.typeOf(g[0])){case"object":h={};for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;case"array":h=[];for(var b in g[0]){h[b]=c.utils.clone(g[0][b])}break;default:return g[0];break}}return h};c.utils.extension=function(a){if(!a){return""}a=a.substring(a.lastIndexOf("/")+1,a.length);a=a.split("?")[0];if(a.lastIndexOf(".")>-1){return a.substr(a.lastIndexOf(".")+1,a.length).toLowerCase()}return};c.utils.html=function(b,a){b.innerHTML=a};c.utils.wrap=function(b,a){if(b.parentNode){b.parentNode.replaceChild(a,b)}a.appendChild(b)};c.utils.ajax=function(a,b,k){var h;if(window.XMLHttpRequest){h=new XMLHttpRequest()}else{h=new ActiveXObject("Microsoft.XMLHTTP")}h.onreadystatechange=function(){if(h.readyState===4){if(h.status===200){if(b){b(h)}}else{if(k){k(a)}}}};try{h.open("GET",a,true);h.send(null)}catch(j){if(k){k(a)}}return h};c.utils.load=function(b,a,f){b.onreadystatechange=function(){if(b.readyState===4){if(b.status===200){if(a){a()}}else{if(f){f()}}}}};c.utils.find=function(a,b){return a.getElementsByTagName(b)};c.utils.append=function(b,a){b.appendChild(a)};c.utils.isIE=function(){return((!+"\v1")||(typeof window.ActiveXObject!="undefined"))};c.utils.isLegacyAndroid=function(){var a=navigator.userAgent.toLowerCase();return(a.match(/android 2.[012]/i)!==null)};c.utils.isIOS=function(a){if(typeof a=="undefined"){a=/iP(hone|ad|od)/i}var b=navigator.userAgent.toLowerCase();return(b.match(a)!==null)};c.utils.isIPad=function(){return c.utils.isIOS(/iPad/i)};c.utils.isIPod=function(){return c.utils.isIOS(/iP(hone|od)/i)};c.utils.getFirstPlaylistItemFromConfig=function(f){var b={};var a;if(f.playlist&&f.playlist.length){a=f.playlist[0]}else{a=f}b.file=a.file;b.levels=a.levels;b.streamer=a.streamer;b.playlistfile=a.playlistfile;b.provider=a.provider;if(!b.provider){if(b.file&&(b.file.toLowerCase().indexOf("youtube.com")>-1||b.file.toLowerCase().indexOf("youtu.be")>-1)){b.provider="youtube"}if(b.streamer&&b.streamer.toLowerCase().indexOf("rtmp://")==0){b.provider="rtmp"}if(a.type){b.provider=a.type.toLowerCase()}}if(b.provider=="audio"){b.provider="sound"}return b};c.utils.getOuterHTML=function(b){if(b.outerHTML){return b.outerHTML}else{try{return new XMLSerializer().serializeToString(b)}catch(a){return""}}};c.utils.setOuterHTML=function(b,h){if(b.outerHTML){b.outerHTML=h}else{var a=document.createElement("div");a.innerHTML=h;var k=document.createRange();k.selectNodeContents(a);var j=k.extractContents();b.parentNode.insertBefore(j,b);b.parentNode.removeChild(b)}};c.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined"){return true}if(typeof window.ActiveXObject!="undefined"){try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return true}catch(a){}}return false};c.utils.getPluginName=function(a){if(a.lastIndexOf("/")>=0){a=a.substring(a.lastIndexOf("/")+1,a.length)}if(a.lastIndexOf("-")>=0){a=a.substring(0,a.lastIndexOf("-"))}if(a.lastIndexOf(".swf")>=0){a=a.substring(0,a.lastIndexOf(".swf"))}if(a.lastIndexOf(".js")>=0){a=a.substring(0,a.lastIndexOf(".js"))}return a};c.utils.getPluginVersion=function(a){if(a.lastIndexOf("-")>=0){if(a.lastIndexOf(".js")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".js"))}else{if(a.lastIndexOf(".swf")>=0){return a.substring(a.lastIndexOf("-")+1,a.lastIndexOf(".swf"))}else{return a.substring(a.lastIndexOf("-")+1)}}}return""};c.utils.getAbsolutePath=function(b,l){if(!c.utils.exists(l)){l=document.location.href}if(!c.utils.exists(b)){return undefined}if(d(b)){return b}var a=l.substring(0,l.indexOf("://")+3);var m=l.substring(a.length,l.indexOf("/",a.length+1));var p;if(b.indexOf("/")===0){p=b.split("/")}else{var o=l.split("?")[0];o=o.substring(a.length+m.length+1,o.lastIndexOf("/"));p=o.split("/").concat(b.split("/"))}var q=[];for(var n=0;n<p.length;n++){if(!p[n]||!c.utils.exists(p[n])||p[n]=="."){continue}else{if(p[n]==".."){q.pop()}else{q.push(p[n])}}}return a+m+"/"+q.join("/")};function d(b){if(!c.utils.exists(b)){return}var a=b.indexOf("://");var f=b.indexOf("?");return(a>0&&(f<0||(f>a)))}c.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"};c.utils.getPluginPathType=function(g){if(typeof g!="string"){return}g=g.split("?")[0];var b=g.indexOf("://");if(b>0){return c.utils.pluginPathType.ABSOLUTE}var h=g.indexOf("/");var a=c.utils.extension(g);if(b<0&&h<0&&(!a||!isNaN(a))){return c.utils.pluginPathType.CDN}return c.utils.pluginPathType.RELATIVE};c.utils.mapEmpty=function(b){for(var a in b){return false}return true};c.utils.mapLength=function(b){var f=0;for(var a in b){f++}return f};c.utils.log=function(a,b){if(typeof console!="undefined"&&typeof console.log!="undefined"){if(b){console.log(a,b)}else{console.log(a)}}};c.utils.css=function(j,a,k){if(c.utils.exists(j)){for(var h in a){try{if(typeof a[h]==="undefined"){continue}else{if(typeof a[h]=="number"&&!(h=="zIndex"||h=="opacity")){if(isNaN(a[h])){continue}if(h.match(/color/i)){a[h]="#"+c.utils.strings.pad(a[h].toString(16),6)}else{a[h]=Math.ceil(a[h])+"px"}}}j.style[h]=a[h]}catch(b){}}}};c.utils.isYouTube=function(a){return(a.indexOf("youtube.com")>-1||a.indexOf("youtu.be")>-1)};c.utils.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a};c.utils.stretch=function(r,a,b,t,o,s){if(typeof b=="undefined"||typeof t=="undefined"||typeof o=="undefined"||typeof s=="undefined"){return}var v=b/o;var u=t/s;var p=0;var q=0;a.style.overflow="hidden";c.utils.transform(a,"");var w={};switch(r.toUpperCase()){case c.utils.stretching.NONE:w.width=o;w.height=s;break;case c.utils.stretching.UNIFORM:if(v>u){w.width=o*u;w.height=s*u}else{w.width=o*v;w.height=s*v}break;case c.utils.stretching.FILL:if(v>u){w.width=o*v;w.height=s*v}else{w.width=o*u;w.height=s*u}break;case c.utils.stretching.EXACTFIT:c.utils.transform(a,["scale(",v,",",u,")"," translate(0px,0px)"].join(""));w.width=o;w.height=s;break;default:break}w.top=(t-w.height)/2;w.left=(b-w.width)/2;c.utils.css(a,w)};c.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"};c.utils.deepReplaceKeyName=function(a,k,m){switch(c.utils.typeOf(a)){case"array":for(var b=0;b<a.length;b++){a[b]=c.utils.deepReplaceKeyName(a[b],k,m)}break;case"object":for(var j in a){var l=j.replace(new RegExp(k,"g"),m);a[l]=c.utils.deepReplaceKeyName(a[j],k,m);if(j!=l){delete a[j]}}break}return a};c.utils.isInArray=function(a,b){if(!(a)||!(a instanceof Array)){return false}for(var f=0;f<a.length;f++){if(b===a[f]){return true}}return false};c.utils.exists=function(a){switch(typeof(a)){case"string":return(a.length>0);break;case"object":return(a!==null);case"undefined":return false}return true};c.utils.empty=function(a){if(typeof a.hasChildNodes=="function"){while(a.hasChildNodes()){a.removeChild(a.firstChild)}}};c.utils.parseDimension=function(a){if(typeof a=="string"){if(a===""){return 0}else{if(a.lastIndexOf("%")>-1){return a}else{return parseInt(a.replace("px",""),10)}}}return a};c.utils.getDimensions=function(a){if(a&&a.style){return{x:c.utils.parseDimension(a.style.left),y:c.utils.parseDimension(a.style.top),width:c.utils.parseDimension(a.style.width),height:c.utils.parseDimension(a.style.height)}}else{return{}}};c.utils.timeFormat=function(a){str="00:00";if(a>0){str=Math.floor(a/60)<10?"0"+Math.floor(a/60)+":":Math.floor(a/60)+":";str+=Math.floor(a%60)<10?"0"+Math.floor(a%60):Math.floor(a%60)}return str}})(jwplayer);(function(b){b.events=function(){};b.events.COMPLETE="COMPLETE";b.events.ERROR="ERROR"})(jwplayer);(function(jwplayer){jwplayer.events.eventdispatcher=function(debug){var _debug=debug;var _listeners;var _globallisteners;this.resetEventListeners=function(){_listeners={};_globallisteners=[]};this.resetEventListeners();this.addEventListener=function(type,listener,count){try{if(!jwplayer.utils.exists(_listeners[type])){_listeners[type]=[]}if(typeof(listener)=="string"){eval("listener = "+listener)}_listeners[type].push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeEventListener=function(type,listener){if(!_listeners[type]){return}try{for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){if(_listeners[type][listenerIndex].listener.toString()==listener.toString()){_listeners[type].splice(listenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.addGlobalListener=function(listener,count){try{if(typeof(listener)=="string"){eval("listener = "+listener)}_globallisteners.push({listener:listener,count:count})}catch(err){jwplayer.utils.log("error",err)}return false};this.removeGlobalListener=function(listener){if(!_globallisteners[type]){return}try{for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){if(_globallisteners[globalListenerIndex].listener.toString()==listener.toString()){_globallisteners.splice(globalListenerIndex,1);break}}}catch(err){jwplayer.utils.log("error",err)}return false};this.sendEvent=function(type,data){if(!jwplayer.utils.exists(data)){data={}}if(_debug){jwplayer.utils.log(type,data)}if(typeof _listeners[type]!="undefined"){for(var listenerIndex=0;listenerIndex<_listeners[type].length;listenerIndex++){try{_listeners[type][listenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_listeners[type][listenerIndex].listener)}if(_listeners[type][listenerIndex]){if(_listeners[type][listenerIndex].count===1){delete _listeners[type][listenerIndex]}else{if(_listeners[type][listenerIndex].count>0){_listeners[type][listenerIndex].count=_listeners[type][listenerIndex].count-1}}}}}for(var globalListenerIndex=0;globalListenerIndex<_globallisteners.length;globalListenerIndex++){try{_globallisteners[globalListenerIndex].listener(data)}catch(err){jwplayer.utils.log("There was an error while handling a listener: "+err.toString(),_globallisteners[globalListenerIndex].listener)}if(_globallisteners[globalListenerIndex]){if(_globallisteners[globalListenerIndex].count===1){delete _globallisteners[globalListenerIndex]}else{if(_globallisteners[globalListenerIndex].count>0){_globallisteners[globalListenerIndex].count=_globallisteners[globalListenerIndex].count-1}}}}}}})(jwplayer);(function(d){var c={};d.utils.animations=function(){};d.utils.animations.transform=function(b,a){b.style.webkitTransform=a;b.style.MozTransform=a;b.style.OTransform=a;b.style.msTransform=a};d.utils.animations.transformOrigin=function(b,a){b.style.webkitTransformOrigin=a;b.style.MozTransformOrigin=a;b.style.OTransformOrigin=a;b.style.msTransformOrigin=a};d.utils.animations.rotate=function(b,a){d.utils.animations.transform(b,["rotate(",a,"deg)"].join(""))};d.utils.cancelAnimation=function(a){delete c[a.id]};d.utils.fadeTo=function(a,r,s,o,p,t){if(c[a.id]!=t&&d.utils.exists(t)){return}if(a.style.opacity==r){return}var u=new Date().getTime();if(t>u){setTimeout(function(){d.utils.fadeTo(a,r,s,o,0,t)},t-u)}if(a.style.display=="none"){a.style.display="block"}if(!d.utils.exists(o)){o=a.style.opacity===""?1:a.style.opacity}if(a.style.opacity==r&&a.style.opacity!==""&&d.utils.exists(t)){if(r===0){a.style.display="none"}return}if(!d.utils.exists(t)){t=u;c[a.id]=t}if(!d.utils.exists(p)){p=0}var n=(s>0)?((u-t)/(s*1000)):0;n=n>1?1:n;var b=r-o;var q=o+(n*b);if(q>1){q=1}else{if(q<0){q=0}}a.style.opacity=q;if(p>0){c[a.id]=t+p*1000;d.utils.fadeTo(a,r,s,o,0,c[a.id]);return}setTimeout(function(){d.utils.fadeTo(a,r,s,o,0,t)},10)}})(jwplayer);(function(b){b.utils.arrays=function(){};b.utils.arrays.indexOf=function(f,e){for(var a=0;a<f.length;a++){if(f[a]==e){return a}}return -1};b.utils.arrays.remove=function(f,e){var a=b.utils.arrays.indexOf(f,e);if(a>-1){f.splice(a,1)}}})(jwplayer);(function(b){b.utils.extensionmap={"3gp":{html5:"video/3gpp",flash:"video"},"3gpp":{html5:"video/3gpp"},"3g2":{html5:"video/3gpp2",flash:"video"},"3gpp2":{html5:"video/3gpp2"},flv:{flash:"video"},f4a:{html5:"audio/mp4"},f4b:{html5:"audio/mp4",flash:"video"},f4v:{html5:"video/mp4",flash:"video"},mov:{html5:"video/quicktime",flash:"video"},m4a:{html5:"audio/mp4",flash:"video"},m4b:{html5:"audio/mp4"},m4p:{html5:"audio/mp4"},m4v:{html5:"video/mp4",flash:"video"},mp4:{html5:"video/mp4",flash:"video"},rbs:{flash:"sound"},aac:{html5:"audio/aac",flash:"video"},mp3:{html5:"audio/mp3",flash:"sound"},ogg:{html5:"audio/ogg"},oga:{html5:"audio/ogg"},ogv:{html5:"video/ogg"},webm:{html5:"video/webm"},m3u8:{html5:"audio/x-mpegurl"},gif:{flash:"image"},jpeg:{flash:"image"},jpg:{flash:"image"},swf:{flash:"image"},png:{flash:"image"},wav:{html5:"audio/x-wav"}}})(jwplayer);(function(o){o.utils.mediaparser=function(){};var m={element:{width:"width",height:"height",id:"id","class":"className",name:"name"},media:{src:"file",preload:"preload",autoplay:"autostart",loop:"repeat",controls:"controls"},source:{src:"file",type:"type",media:"media","data-jw-width":"width","data-jw-bitrate":"bitrate"},video:{poster:"image"}};var n={};o.utils.mediaparser.parseMedia=function(a){return p(a)};function q(a,b){if(!o.utils.exists(b)){b=m[a]}else{o.utils.extend(b,m[a])}return b}function p(f,d){if(n[f.tagName.toLowerCase()]&&!o.utils.exists(d)){return n[f.tagName.toLowerCase()](f)}else{d=q("element",d);var e={};for(var c in d){if(c!="length"){var a=f.getAttribute(c);if(o.utils.exists(a)){e[d[c]]=a}}}var b=f.style["#background-color"];if(b&&!(b=="transparent"||b=="rgba(0, 0, 0, 0)")){e.screencolor=b}return e}}function l(f,c){c=q("media",c);var b=[];var d=o.utils.selectors("source",f);for(var a in d){if(!isNaN(a)){b.push(k(d[a]))}}var e=p(f,c);if(o.utils.exists(e.file)){b[0]={file:e.file}}e.levels=b;return e}function k(a,b){b=q("source",b);var c=p(a,b);c.width=c.width?c.width:0;c.bitrate=c.bitrate?c.bitrate:0;return c}function j(a,b){b=q("video",b);var c=l(a,b);return c}n.media=l;n.audio=l;n.source=k;n.video=j})(jwplayer);(function(b){b.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"};b.utils.scriptloader=function(f){var e=b.utils.loaderstatus.NEW;var a=new b.events.eventdispatcher();b.utils.extend(this,a);this.load=function(){if(e==b.utils.loaderstatus.NEW){e=b.utils.loaderstatus.LOADING;var c=document.createElement("script");c.onload=function(d){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)};c.onerror=function(d){e=b.utils.loaderstatus.ERROR;a.sendEvent(b.events.ERROR)};c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){e=b.utils.loaderstatus.COMPLETE;a.sendEvent(b.events.COMPLETE)}};document.getElementsByTagName("head")[0].appendChild(c);c.src=f}};this.getStatus=function(){return e}}})(jwplayer);(function(b){b.utils.selectors=function(a,f){if(!b.utils.exists(f)){f=document}a=b.utils.strings.trim(a);var h=a.charAt(0);if(h=="#"){return f.getElementById(a.substr(1))}else{if(h=="."){if(f.getElementsByClassName){return f.getElementsByClassName(a.substr(1))}else{return b.utils.selectors.getElementsByTagAndClass("*",a.substr(1))}}else{if(a.indexOf(".")>0){var g=a.split(".");return b.utils.selectors.getElementsByTagAndClass(g[0],g[1])}else{return f.getElementsByTagName(a)}}}return null};b.utils.selectors.getElementsByTagAndClass=function(o,l,m){var k=[];if(!b.utils.exists(m)){m=document}var n=m.getElementsByTagName(o);for(var p=0;p<n.length;p++){if(b.utils.exists(n[p].className)){var q=n[p].className.split(" ");for(var a=0;a<q.length;a++){if(q[a]==l){k.push(n[p])}}}}return k}})(jwplayer);(function(b){b.utils.strings=function(){};b.utils.strings.trim=function(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")};b.utils.strings.pad=function(f,e,a){if(!a){a="0"}while(f.length<e){f=a+f}return f};b.utils.strings.serialize=function(a){if(a==null){return null}else{if(a=="true"){return true}else{if(a=="false"){return false}else{if(isNaN(Number(a))||a.length>5||a.length==0){return a}else{return Number(a)}}}}};b.utils.strings.seconds=function(e){e=e.replace(",",".");var a=e.split(":");var f=0;if(e.substr(-1)=="s"){f=Number(e.substr(0,e.length-1))}else{if(e.substr(-1)=="m"){f=Number(e.substr(0,e.length-1))*60}else{if(e.substr(-1)=="h"){f=Number(e.substr(0,e.length-1))*3600}else{if(a.length>1){f=Number(a[a.length-1]);f+=Number(a[a.length-2])*60;if(a.length==3){f+=Number(a[a.length-3])*3600}}else{f=Number(e)}}}}return f};b.utils.strings.xmlAttribute=function(a,f){for(var e=0;e<a.attributes.length;e++){if(a.attributes[e].name&&a.attributes[e].name.toLowerCase()==f.toLowerCase()){return a.attributes[e].value.toString()}}return""};b.utils.strings.jsonToString=function(l){var j=j||{};if(j&&j.stringify){return j.stringify(l)}var o=typeof(l);if(o!="object"||l===null){if(o=="string"){l='"'+l+'"'}else{return String(l)}}else{var k=[],a=(l&&l.constructor==Array);for(var n in l){var m=l[n];switch(typeof(m)){case"string":m='"'+m+'"';break;case"object":if(b.utils.exists(m)){m=b.utils.strings.jsonToString(m)}break}if(a){if(typeof(m)!="function"){k.push(String(m))}}else{if(typeof(m)!="function"){k.push('"'+n+'":'+String(m))}}}if(a){return"["+String(k)+"]"}else{return"{"+String(k)+"}"}}}})(jwplayer);(function(k){var j=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);k.utils.typechecker=function(a,b){b=!k.utils.exists(b)?f(a):b;return h(a,b)};function f(b){var a=["true","false","t","f"];if(a.toString().indexOf(b.toLowerCase().replace(" ",""))>=0){return"boolean"}else{if(j.test(b)){return"color"}else{if(!isNaN(parseInt(b,10))&&parseInt(b,10).toString().length==b.length){return"integer"}else{if(!isNaN(parseFloat(b))&&parseFloat(b).toString().length==b.length){return"float"}}}}return"string"}function h(a,b){if(!k.utils.exists(b)){return a}switch(b){case"color":if(a.length>0){return g(a)}return null;case"integer":return parseInt(a,10);case"float":return parseFloat(a);case"boolean":if(a.toLowerCase()=="true"){return true}else{if(a=="1"){return true}}return false}return a}function g(a){switch(a.toLowerCase()){case"blue":return parseInt("0000FF",16);case"green":return parseInt("00FF00",16);case"red":return parseInt("FF0000",16);case"cyan":return parseInt("00FFFF",16);case"magenta":return parseInt("FF00FF",16);case"yellow":return parseInt("FFFF00",16);case"black":return parseInt("000000",16);case"white":return parseInt("FFFFFF",16);default:a=a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2");if(a.length==3){a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)}return parseInt(a,16)}return parseInt("000000",16)}})(jwplayer);(function(b){b.utils.parsers=function(){};b.utils.parsers.localName=function(a){if(!a){return""}else{if(a.localName){return a.localName}else{if(a.baseName){return a.baseName}else{return""}}}};b.utils.parsers.textContent=function(a){if(!a){return""}else{if(a.textContent){return a.textContent}else{if(a.text){return a.text}else{return""}}}}})(jwplayer);(function(b){b.utils.parsers.jwparser=function(){};b.utils.parsers.jwparser.PREFIX="jwplayer";b.utils.parsers.jwparser.parseEntry=function(f,e){for(var a=0;a<f.childNodes.length;a++){if(f.childNodes[a].prefix==b.utils.parsers.jwparser.PREFIX){e[b.utils.parsers.localName(f.childNodes[a])]=b.utils.strings.serialize(b.utils.parsers.textContent(f.childNodes[a]))}if(!e.file&&String(e.link).toLowerCase().indexOf("youtube")>-1){e.file=e.link}}return e};b.utils.parsers.jwparser.getProvider=function(d){if(d.type){return d.type}else{if(d.file.indexOf("youtube.com/w")>-1||d.file.indexOf("youtube.com/v")>-1||d.file.indexOf("youtu.be/")>-1){return"youtube"}else{if(d.streamer&&d.streamer.indexOf("rtmp")==0){return"rtmp"}else{if(d.streamer&&d.streamer.indexOf("http")==0){return"http"}else{var a=b.utils.strings.extension(d.file);if(extensions.hasOwnProperty(a)){return extensions[a]}}}}}return""}})(jwplayer);(function(b){b.utils.parsers.mediaparser=function(){};b.utils.parsers.mediaparser.PREFIX="media";b.utils.parsers.mediaparser.parseGroup=function(j,g){var h=false;for(var k=0;k<j.childNodes.length;k++){if(j.childNodes[k].prefix==b.utils.parsers.mediaparser.PREFIX){if(!b.utils.parsers.localName(j.childNodes[k])){continue}switch(b.utils.parsers.localName(j.childNodes[k]).toLowerCase()){case"content":if(!h){g.file=b.utils.strings.xmlAttribute(j.childNodes[k],"url")}if(b.utils.strings.xmlAttribute(j.childNodes[k],"duration")){g.duration=b.utils.strings.seconds(b.utils.strings.xmlAttribute(j.childNodes[k],"duration"))}if(b.utils.strings.xmlAttribute(j.childNodes[k],"start")){g.start=b.utils.strings.seconds(b.utils.strings.xmlAttribute(j.childNodes[k],"start"))}if(j.childNodes[k].childNodes&&j.childNodes[k].childNodes.length>0){g=b.utils.parsers.mediaparser.parseGroup(j.childNodes[k],g)}if(b.utils.strings.xmlAttribute(j.childNodes[k],"width")||b.utils.strings.xmlAttribute(j.childNodes[k],"bitrate")||b.utils.strings.xmlAttribute(j.childNodes[k],"url")){if(!g.levels){g.levels=[]}g.levels.push({width:b.utils.strings.xmlAttribute(j.childNodes[k],"width"),bitrate:b.utils.strings.xmlAttribute(j.childNodes[k],"bitrate"),file:b.utils.strings.xmlAttribute(j.childNodes[k],"url")})}break;case"title":g.title=b.utils.parsers.textContent(j.childNodes[k]);break;case"description":g.description=b.utils.parsers.textContent(j.childNodes[k]);break;case"keywords":g.tags=b.utils.parsers.textContent(j.childNodes[k]);break;case"thumbnail":g.image=b.utils.strings.xmlAttribute(j.childNodes[k],"url");break;case"credit":g.author=b.utils.parsers.textContent(j.childNodes[k]);break;case"player":var a=j.childNodes[k].url;if(a.indexOf("youtube.com")>=0||a.indexOf("youtu.be")>=0){h=true;g.file=b.utils.strings.xmlAttribute(j.childNodes[k],"url")}break;case"group":b.utils.parsers.mediaparser.parseGroup(j.childNodes[k],g);break}}}return g}})(jwplayer);(function(c){c.utils.parsers.rssparser=function(){};c.utils.parsers.rssparser.parse=function(a){var h=[];for(var b=0;b<a.childNodes.length;b++){if(c.utils.parsers.localName(a.childNodes[b]).toLowerCase()=="channel"){for(var g=0;g<a.childNodes[b].childNodes.length;g++){if(c.utils.parsers.localName(a.childNodes[b].childNodes[g]).toLowerCase()=="item"){h.push(d(a.childNodes[b].childNodes[g]))}}}}return h};function d(b){var a={};for(var f=0;f<b.childNodes.length;f++){if(!c.utils.parsers.localName(b.childNodes[f])){continue}switch(c.utils.parsers.localName(b.childNodes[f]).toLowerCase()){case"enclosure":a.file=c.utils.strings.xmlAttribute(b.childNodes[f],"url");break;case"title":a.title=c.utils.parsers.textContent(b.childNodes[f]);break;case"pubdate":a.date=c.utils.parsers.textContent(b.childNodes[f]);break;case"description":a.description=c.utils.parsers.textContent(b.childNodes[f]);break;case"link":a.link=c.utils.parsers.textContent(b.childNodes[f]);break;case"category":if(a.tags){a.tags+=c.utils.parsers.textContent(b.childNodes[f])}else{a.tags=c.utils.parsers.textContent(b.childNodes[f])}break}}a=c.utils.parsers.mediaparser.parseGroup(b,a);a=c.utils.parsers.jwparser.parseEntry(b,a);return new c.html5.playlistitem(a)}})(jwplayer);(function(e){var f={};var d={};e.plugins=function(){};e.plugins.loadPlugins=function(a,b){d[a]=new e.plugins.pluginloader(new e.plugins.model(f),b);return d[a]};e.plugins.registerPlugin=function(a,c,j){var k=e.utils.getPluginName(a);if(f[k]){f[k].registerPlugin(a,c,j)}else{e.utils.log("A plugin ("+a+") was registered with the player that was not loaded. Please check your configuration.");for(var b in d){d[b].pluginFailed()}}}})(jwplayer);(function(b){b.plugins.model=function(a){this.addPlugin=function(f){var e=b.utils.getPluginName(f);if(!a[e]){a[e]=new b.plugins.plugin(f)}return a[e]}}})(jwplayer);(function(b){b.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"};b.plugins.plugin=function(u){var s="http://lp.longtailvideo.com";var n=b.utils.loaderstatus.NEW;var m;var o;var a;var t=new b.events.eventdispatcher();b.utils.extend(this,t);function r(){switch(b.utils.getPluginPathType(u)){case b.utils.pluginPathType.ABSOLUTE:return u;case b.utils.pluginPathType.RELATIVE:return b.utils.getAbsolutePath(u,window.location.href);case b.utils.pluginPathType.CDN:var d=b.utils.getPluginName(u);var c=b.utils.getPluginVersion(u);return s+"/"+b.version.split(".")[0]+"/"+d+"/"+d+(c!==""?("-"+c):"")+".js"}}function p(c){a=setTimeout(function(){n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE)},1000)}function q(c){n=b.utils.loaderstatus.ERROR;t.sendEvent(b.events.ERROR)}this.load=function(){if(n==b.utils.loaderstatus.NEW){if(u.lastIndexOf(".swf")>0){m=u;n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE);return}n=b.utils.loaderstatus.LOADING;var c=new b.utils.scriptloader(r());c.addEventListener(b.events.COMPLETE,p);c.addEventListener(b.events.ERROR,q);c.load()}};this.registerPlugin=function(d,e,c){if(a){clearTimeout(a);a=undefined}if(e&&c){m=c;o=e}else{if(typeof e=="string"){m=e}else{if(typeof e=="function"){o=e}else{if(!e&&!c){m=d}}}}n=b.utils.loaderstatus.COMPLETE;t.sendEvent(b.events.COMPLETE)};this.getStatus=function(){return n};this.getPluginName=function(){return b.utils.getPluginName(u)};this.getFlashPath=function(){if(m){switch(b.utils.getPluginPathType(m)){case b.utils.pluginPathType.ABSOLUTE:return m;case b.utils.pluginPathType.RELATIVE:if(u.lastIndexOf(".swf")>0){return b.utils.getAbsolutePath(m,window.location.href)}return b.utils.getAbsolutePath(m,r());case b.utils.pluginPathType.CDN:if(m.indexOf("-")>-1){return m+"h"}return m+"-h"}}return null};this.getJS=function(){return o};this.getPluginmode=function(){if(typeof m!="undefined"&&typeof o!="undefined"){return b.plugins.pluginmodes.HYBRID}else{if(typeof m!="undefined"){return b.plugins.pluginmodes.FLASH}else{if(typeof o!="undefined"){return b.plugins.pluginmodes.JAVASCRIPT}}}};this.getNewInstance=function(e,c,d){return new o(e,c,d)};this.getURL=function(){return u}}})(jwplayer);(function(b){b.plugins.pluginloader=function(m,p){var n={};var a=b.utils.loaderstatus.NEW;var q=false;var s=false;var r=new b.events.eventdispatcher();b.utils.extend(this,r);function o(){if(!s){s=true;a=b.utils.loaderstatus.COMPLETE;r.sendEvent(b.events.COMPLETE)}}function l(){if(!s){var c=0;for(plugin in n){var d=n[plugin].getStatus();if(d==b.utils.loaderstatus.LOADING||d==b.utils.loaderstatus.NEW){c++}}if(c==0){o()}}}this.setupPlugins=function(k,d,e){var c={length:0,plugins:{}};var h={length:0,plugins:{}};for(var j in n){var g=n[j].getPluginName();if(n[j].getFlashPath()){c.plugins[n[j].getFlashPath()]=d.plugins[j];c.plugins[n[j].getFlashPath()].pluginmode=n[j].getPluginmode();c.length++}if(n[j].getJS()){var f=document.createElement("div");f.id=k.id+"_"+g;f.style.position="absolute";f.style.zIndex=h.length+10;h.plugins[g]=n[j].getNewInstance(k,d.plugins[j],f);h.length++;if(typeof h.plugins[g].resize!="undefined"){k.onReady(e(h.plugins[g],f,true));k.onResize(e(h.plugins[g],f))}}}k.plugins=h.plugins;return c};this.load=function(){a=b.utils.loaderstatus.LOADING;q=true;for(var c in p){if(b.utils.exists(c)){n[c]=m.addPlugin(c);n[c].addEventListener(b.events.COMPLETE,l);n[c].addEventListener(b.events.ERROR,l)}}for(c in n){n[c].load()}q=false;l()};this.pluginFailed=function(){o()};this.getStatus=function(){return a}}})(jwplayer);(function(c){var d=[];c.api=function(E){this.container=E;this.id=E.id;var v={};var G={};var b={};var F=[];var A=undefined;var x=false;var z=[];var t=c.utils.getOuterHTML(E);var a={};var y={};this.getBuffer=function(){return this.callInternal("jwGetBuffer")};this.getContainer=function(){return this.container};function D(e,f){return function(k,j,h,g){if(e.renderingMode=="flash"||e.renderingMode=="html5"){var l;if(j){y[k]=j;l="jwplayer('"+e.id+"').callback('"+k+"')"}else{if(!j&&y[k]){delete y[k]}}A.jwDockSetButton(k,l,h,g)}return f}}this.getPlugin=function(g){var e=this;var f={};if(g=="dock"){return c.utils.extend(f,{setButton:D(e,f),show:function(){e.callInternal("jwDockShow");return f},hide:function(){e.callInternal("jwDockHide");return f},onShow:function(h){e.componentListener("dock",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("dock",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{if(g=="controlbar"){return c.utils.extend(f,{show:function(){e.callInternal("jwControlbarShow");return f},hide:function(){e.callInternal("jwControlbarHide");return f},onShow:function(h){e.componentListener("controlbar",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("controlbar",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{if(g=="display"){return c.utils.extend(f,{show:function(){e.callInternal("jwDisplayShow");return f},hide:function(){e.callInternal("jwDisplayHide");return f},onShow:function(h){e.componentListener("display",c.api.events.JWPLAYER_COMPONENT_SHOW,h);return f},onHide:function(h){e.componentListener("display",c.api.events.JWPLAYER_COMPONENT_HIDE,h);return f}})}else{return this.plugins[g]}}}};this.callback=function(e){if(y[e]){return y[e]()}};this.getDuration=function(){return this.callInternal("jwGetDuration")};this.getFullscreen=function(){return this.callInternal("jwGetFullscreen")};this.getHeight=function(){return this.callInternal("jwGetHeight")};this.getLockState=function(){return this.callInternal("jwGetLockState")};this.getMeta=function(){return this.getItemMeta()};this.getMute=function(){return this.callInternal("jwGetMute")};this.getPlaylist=function(){var e=this.callInternal("jwGetPlaylist");if(this.renderingMode=="flash"){c.utils.deepReplaceKeyName(e,"__dot__",".")}for(var f=0;f<e.length;f++){if(!c.utils.exists(e[f].index)){e[f].index=f}}return e};this.getPlaylistItem=function(e){if(!c.utils.exists(e)){e=this.getCurrentItem()}return this.getPlaylist()[e]};this.getPosition=function(){return this.callInternal("jwGetPosition")};this.getRenderingMode=function(){return this.renderingMode};this.getState=function(){return this.callInternal("jwGetState")};this.getVolume=function(){return this.callInternal("jwGetVolume")};this.getWidth=function(){return this.callInternal("jwGetWidth")};this.setFullscreen=function(e){if(!c.utils.exists(e)){this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen"))}else{this.callInternal("jwSetFullscreen",e)}return this};this.setMute=function(e){if(!c.utils.exists(e)){this.callInternal("jwSetMute",!this.callInternal("jwGetMute"))}else{this.callInternal("jwSetMute",e)}return this};this.lock=function(){return this};this.unlock=function(){return this};this.load=function(e){this.callInternal("jwLoad",e);return this};this.playlistItem=function(e){this.callInternal("jwPlaylistItem",e);return this};this.playlistPrev=function(){this.callInternal("jwPlaylistPrev");return this};this.playlistNext=function(){this.callInternal("jwPlaylistNext");return this};this.resize=function(e,f){if(this.renderingMode=="html5"){A.jwResize(e,f)}else{this.container.width=e;this.container.height=f}return this};this.play=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPlay",e)}return this};this.pause=function(e){if(typeof e=="undefined"){e=this.getState();if(e==c.api.events.state.PLAYING||e==c.api.events.state.BUFFERING){this.callInternal("jwPause")}else{this.callInternal("jwPlay")}}else{this.callInternal("jwPause",e)}return this};this.stop=function(){this.callInternal("jwStop");return this};this.seek=function(e){this.callInternal("jwSeek",e);return this};this.setVolume=function(e){this.callInternal("jwSetVolume",e);return this};this.onBufferChange=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER,e)};this.onBufferFull=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_BUFFER_FULL,e)};this.onError=function(e){return this.eventListener(c.api.events.JWPLAYER_ERROR,e)};this.onFullscreen=function(e){return this.eventListener(c.api.events.JWPLAYER_FULLSCREEN,e)};this.onMeta=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_META,e)};this.onMute=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_MUTE,e)};this.onPlaylist=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_LOADED,e)};this.onPlaylistItem=function(e){return this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,e)};this.onReady=function(e){return this.eventListener(c.api.events.API_READY,e)};this.onResize=function(e){return this.eventListener(c.api.events.JWPLAYER_RESIZE,e)};this.onComplete=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_COMPLETE,e)};this.onSeek=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_SEEK,e)};this.onTime=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_TIME,e)};this.onVolume=function(e){return this.eventListener(c.api.events.JWPLAYER_MEDIA_VOLUME,e)};this.onBuffer=function(e){return this.stateListener(c.api.events.state.BUFFERING,e)};this.onPause=function(e){return this.stateListener(c.api.events.state.PAUSED,e)};this.onPlay=function(e){return this.stateListener(c.api.events.state.PLAYING,e)};this.onIdle=function(e){return this.stateListener(c.api.events.state.IDLE,e)};this.remove=function(){v={};z=[];if(c.utils.getOuterHTML(this.container)!=t){c.api.destroyPlayer(this.id,t)}};this.setup=function(f){if(c.embed){var g=this.id;this.remove();var e=c(g);e.config=f;return new c.embed(e)}return this};this.registerPlugin=function(e,f,g){c.plugins.registerPlugin(e,f,g)};this.setPlayer=function(f,e){A=f;this.renderingMode=e};this.stateListener=function(f,e){if(!G[f]){G[f]=[];this.eventListener(c.api.events.JWPLAYER_PLAYER_STATE,B(f))}G[f].push(e);return this};function B(e){return function(h){var j=h.newstate,f=h.oldstate;if(j==e){var g=G[j];if(g){for(var k=0;k<g.length;k++){if(typeof g[k]=="function"){g[k].call(this,{oldstate:f,newstate:j})}}}}}}this.componentListener=function(g,f,e){if(!b[g]){b[g]={}}if(!b[g][f]){b[g][f]=[];this.eventListener(f,w(g,f))}b[g][f].push(e);return this};function w(f,e){return function(h){if(f==h.component){var j=b[f][e];if(j){for(var g=0;g<j.length;g++){if(typeof j[g]=="function"){j[g].call(this,h)}}}}}}this.addInternalListener=function(f,e){f.jwAddEventListener(e,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+e+'", dat); }')};this.eventListener=function(f,e){if(!v[f]){v[f]=[];if(A&&x){this.addInternalListener(A,f)}}v[f].push(e);return this};this.dispatchEvent=function(e){if(v[e]){var f=C(e,arguments[1]);for(var g=0;g<v[e].length;g++){if(typeof v[e][g]=="function"){v[e][g].call(this,f)}}}};function C(g,j){var e=c.utils.extend({},j);if(g==c.api.events.JWPLAYER_FULLSCREEN&&!e.fullscreen){e.fullscreen=e.message=="true"?true:false;delete e.message}else{if(typeof e.data=="object"){e=c.utils.extend(e,e.data);delete e.data}}var h=["position","duration","offset"];for(var f in h){if(e[h[f]]){e[h[f]]=Math.round(e[h[f]]*1000)/1000}}return e}this.callInternal=function(e,f){if(x){if(typeof A!="undefined"&&typeof A[e]=="function"){if(c.utils.exists(f)){return(A[e])(f)}else{return(A[e])()}}return null}else{z.push({method:e,parameters:f})}};this.playerReady=function(e){x=true;if(!A){this.setPlayer(document.getElementById(e.id))}this.container=document.getElementById(this.id);for(var g in v){this.addInternalListener(A,g)}this.eventListener(c.api.events.JWPLAYER_PLAYLIST_ITEM,function(h){a={}});this.eventListener(c.api.events.JWPLAYER_MEDIA_META,function(h){c.utils.extend(a,h.metadata)});this.dispatchEvent(c.api.events.API_READY);while(z.length>0){var f=z.shift();this.callInternal(f.method,f.parameters)}};this.getItemMeta=function(){return a};this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")};function u(g,e,f){var j=[];if(!e){e=0}if(!f){f=g.length-1}for(var h=e;h<=f;h++){j.push(g[h])}return j}return this};c.api.selectPlayer=function(b){var f;if(!c.utils.exists(b)){b=0}if(b.nodeType){f=b}else{if(typeof b=="string"){f=document.getElementById(b)}}if(f){var a=c.api.playerById(f.id);if(a){return a}else{return c.api.addPlayer(new c.api(f))}}else{if(typeof b=="number"){return c.getPlayers()[b]}}return null};c.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_COMPONENT_SHOW:"jwplayerComponentShow",JWPLAYER_COMPONENT_HIDE:"jwplayerComponentHide",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem"};c.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"};c.api.playerById=function(a){for(var b=0;b<d.length;b++){if(d[b].id==a){return d[b]}}return null};c.api.addPlayer=function(b){for(var a=0;a<d.length;a++){if(d[a]==b){return b}}d.push(b);return b};c.api.destroyPlayer=function(k,n){var l=-1;for(var a=0;a<d.length;a++){if(d[a].id==k){l=a;continue}}if(l>=0){var o=document.getElementById(d[l].id);if(document.getElementById(d[l].id+"_wrapper")){o=document.getElementById(d[l].id+"_wrapper")}if(o){if(n){c.utils.setOuterHTML(o,n)}else{var b=document.createElement("div");var m=o.id;if(o.id.indexOf("_wrapper")==o.id.length-8){newID=o.id.substring(0,o.id.length-8)}b.setAttribute("id",m);o.parentNode.replaceChild(b,o)}}d.splice(l,1)}return null};c.getPlayers=function(){return d.slice(0)}})(jwplayer);var _userPlayerReady=(typeof playerReady=="function")?playerReady:undefined;playerReady=function(c){var d=jwplayer.api.playerById(c.id);if(d){d.playerReady(c)}else{jwplayer.api.selectPlayer(c.id).playerReady(c)}if(_userPlayerReady){_userPlayerReady.call(this,c)}};(function(d){d.embed=function(k){var a={width:400,height:300,components:{controlbar:{position:"over"}}};var l=d.utils.mediaparser.parseMedia(k.container);var m=new d.embed.config(d.utils.extend(a,l,k.config),this);var b=d.plugins.loadPlugins(k.id,m.plugins);function o(e,f){for(var g in f){if(typeof e[g]=="function"){(e[g]).call(e,f[g])}}}function n(){if(b.getStatus()==d.utils.loaderstatus.COMPLETE){for(var e=0;e<m.modes.length;e++){if(m.modes[e].type&&d.embed[m.modes[e].type]){var g=m;if(m.modes[e].config){g=d.utils.extend(d.utils.clone(m),m.modes[e].config)}var f=new d.embed[m.modes[e].type](document.getElementById(k.id),m.modes[e],g,b,k);if(f.supportsConfig()){f.embed();o(k,m.events);return k}}}d.utils.log("No suitable players found");new d.embed.logo(d.utils.extend({hide:true},m.components.logo),"none",k.id)}}b.addEventListener(d.events.COMPLETE,n);b.addEventListener(d.events.ERROR,n);b.load();return k};function c(){if(!document.body){return setTimeout(c,15)}var f=d.utils.selectors.getElementsByTagAndClass("video","jwplayer");for(var b=0;b<f.length;b++){var a=f[b];d(a.id).setup({})}}c()})(jwplayer);(function(o){function l(){return[{type:"flash",src:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}]}var s={players:"modes",autoplay:"autostart"};function r(d){var a=d.toLowerCase();var b=["left","right","top","bottom"];for(var c=0;c<b.length;c++){if(a==b[c]){return true}}return false}function q(a){var b=false;b=(a instanceof Array)||(typeof a=="object"&&!a.position&&!a.size);return b}function k(a){if(typeof a=="string"){if(parseInt(a).toString()==a||a.toLowerCase().indexOf("px")>-1){return parseInt(a)}}return a}var m=["playlist","dock","controlbar","logo","display"];function n(c){var e={};switch(o.utils.typeOf(c.plugins)){case"object":for(var a in c.plugins){e[o.utils.getPluginName(a)]=a}break;case"string":var d=c.plugins.split(",");for(var b=0;b<d.length;b++){e[o.utils.getPluginName(d[b])]=d[b]}break}return e}function p(e,f,a,c){if(o.utils.typeOf(e[f])!="object"){e[f]={}}var b=e[f][a];if(o.utils.typeOf(b)!="object"){e[f][a]=b={}}if(c){if(f=="plugins"){var d=o.utils.getPluginName(a);b[c]=e[d+"."+c];delete e[d+"."+c]}else{b[c]=e[a+"."+c];delete e[a+"."+c]}}}o.embed.deserialize=function(b){var a=n(b);for(var c in a){p(b,"plugins",a[c])}for(var d in b){if(d.indexOf(".")>-1){var e=d.split(".");var f=e[0];var d=e[1];if(o.utils.isInArray(m,f)){p(b,"components",f,d)}else{if(a[f]){p(b,"plugins",a[f],d)}}}}return b};o.embed.config=function(h,j){var v=o.utils.extend({},h);var a;if(q(v.playlist)){a=v.playlist;delete v.playlist}v=o.embed.deserialize(v);v.height=k(v.height);v.width=k(v.width);if(typeof v.plugins=="string"){var g=v.plugins.split(",");if(typeof v.plugins!="object"){v.plugins={}}for(var c=0;c<g.length;c++){var b=o.utils.getPluginName(g[c]);if(typeof v[b]=="object"){v.plugins[g[c]]=v[b];delete v[b]}else{v.plugins[g[c]]={}}}}for(var w=0;w<m.length;w++){var d=m[w];if(o.utils.exists(v[d])){if(typeof v[d]!="object"){if(!v.components[d]){v.components[d]={}}if(d=="logo"){v.components[d].file=v[d]}else{v.components[d].position=v[d]}delete v[d]}else{if(!v.components[d]){v.components[d]={}}o.utils.extend(v.components[d],v[d]);delete v[d]}}if(typeof v[d+"size"]!="undefined"){if(!v.components[d]){v.components[d]={}}v.components[d].size=v[d+"size"];delete v[d+"size"]}}if(typeof v.icons!="undefined"){if(!v.components.display){v.components.display={}}v.components.display.icons=v.icons;delete v.icons}for(var e in s){if(v[e]){if(!v[s[e]]){v[s[e]]=v[e]}delete v[e]}}var f;if(v.flashplayer&&!v.modes){f=l();f[0].src=v.flashplayer;delete v.flashplayer}else{if(v.modes){if(typeof v.modes=="string"){f=l();f[0].src=v.modes}else{if(v.modes instanceof Array){f=v.modes}else{if(typeof v.modes=="object"&&v.modes.type){f=[v.modes]}}}delete v.modes}else{f=l()}}v.modes=f;if(a){v.playlist=a}return v}})(jwplayer);(function(b){b.embed.download=function(m,h,a,l,j){this.embed=function(){var x=b.utils.extend({},a);var d={};var y=a.width?a.width:480;if(typeof y!="number"){y=parseInt(y,10)}var v=a.height?a.height:320;if(typeof v!="number"){v=parseInt(v,10)}var A,f,g;var C={};if(a.playlist&&a.playlist.length){C.file=a.playlist[0].file;f=a.playlist[0].image;C.levels=a.playlist[0].levels}else{C.file=a.file;f=a.image;C.levels=a.levels}if(C.file){A=C.file}else{if(C.levels&&C.levels.length){A=C.levels[0].file}}g=A?"pointer":"auto";var w={display:{style:{cursor:g,width:y,height:v,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:g,position:"absolute",display:A?"block":"none",top:0,left:0,border:0,margin:0,padding:0,zIndex:3,width:50,height:50,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg==)"}},display_iconBackground:{style:{cursor:g,position:"absolute",display:A?"block":"none",top:((v-50)/2),left:((y-50)/2),border:0,width:50,height:50,margin:0,padding:0,zIndex:2,backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC)"}},display_image:{style:{width:y,height:v,display:f?"block":"none",position:"absolute",cursor:g,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}};var z=function(p,n,q){var o=document.createElement(p);if(q){o.id=q}else{o.id=m.id+"_jwplayer_"+n}b.utils.css(o,w[n].style);return o};d.display=z("a","display",m.id);if(A){d.display.setAttribute("href",b.utils.getAbsolutePath(A))}d.display_image=z("img","display_image");d.display_image.setAttribute("alt","Click to download...");if(f){d.display_image.setAttribute("src",b.utils.getAbsolutePath(f))}if(true){d.display_icon=z("div","display_icon");d.display_iconBackground=z("div","display_iconBackground");d.display.appendChild(d.display_image);d.display_iconBackground.appendChild(d.display_icon);d.display.appendChild(d.display_iconBackground)}_css=b.utils.css;_hide=function(n){_css(n,{display:"none"})};function c(n){_imageWidth=d.display_image.naturalWidth;_imageHeight=d.display_image.naturalHeight;B()}function B(){b.utils.stretch(b.utils.stretching.UNIFORM,d.display_image,y,v,_imageWidth,_imageHeight)}d.display_image.onerror=function(n){_hide(d.display_image)};d.display_image.onload=c;m.parentNode.replaceChild(d.display,m);var e=(a.plugins&&a.plugins.logo)?a.plugins.logo:{};d.display.appendChild(new b.embed.logo(a.components.logo,"download",m.id));j.container=document.getElementById(j.id);j.setPlayer(d.display,"download")};this.supportsConfig=function(){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return k(c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&k(c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}};function k(f,d,g){if(g){return false}var e=["image","sound","youtube","http"];if(d&&(e.toString().indexOf(d)>-1)){return true}if(!d||(d&&d=="video")){var c=b.utils.extension(f);if(c&&b.utils.extensionmap[c]){return true}}return false}}})(jwplayer);(function(b){b.embed.flash=function(s,r,n,t,p){function a(e,f,d){var c=document.createElement("param");c.setAttribute("name",f);c.setAttribute("value",d);e.appendChild(c)}function o(d,c,e){return function(h){if(e){document.getElementById(p.id+"_wrapper").appendChild(c)}var f=document.getElementById(p.id).getPluginConfig("display");d.resize(f.width,f.height);var g={left:f.x,top:f.y};b.utils.css(c,g)}}function u(e){if(!e){return{}}var c={};for(var f in e){var g=e[f];for(var d in g){c[f+"."+d]=g[d]}}return c}function q(e,f){if(e[f]){var c=e[f];for(var g in c){var h=c[g];if(typeof h=="string"){if(!e[g]){e[g]=h}}else{for(var d in h){if(!e[g+"."+d]){e[g+"."+d]=h[d]}}}}delete e[f]}}function w(f){if(!f){return{}}var c={},d=[];for(var j in f){var g=b.utils.getPluginName(j);var h=f[j];d.push(j);for(var e in h){c[g+"."+e]=h[e]}}c.plugins=d.join(",");return c}function v(c){var e=c.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&";for(var d in c){if(typeof(c[d])=="object"){e+=d+"="+encodeURIComponent("[[JSON]]"+b.utils.strings.jsonToString(c[d]))+"&"}else{e+=d+"="+encodeURIComponent(c[d])+"&"}}return e.substring(0,e.length-1)}this.embed=function(){n.id=p.id;var h;var d=b.utils.extend({},n);var g=d.width;var k=d.height;if(s.id+"_wrapper"==s.parentNode.id){h=document.getElementById(s.id+"_wrapper")}else{h=document.createElement("div");h.id=s.id+"_wrapper";b.utils.wrap(s,h);b.utils.css(h,{position:"relative",width:g,height:k})}var f=t.setupPlugins(p,d,o);if(f.length>0){b.utils.extend(d,w(f.plugins))}else{delete d.plugins}var c=["height","width","modes","events"];for(var m=0;m<c.length;m++){delete d[c[m]]}var e="opaque";if(d.wmode){e=d.wmode}q(d,"components");q(d,"providers");if(typeof d["dock.position"]!="undefined"){if(d["dock.position"].toString().toLowerCase()=="false"){d.dock=d["dock.position"];delete d["dock.position"]}}var j="#000000";var z;if(b.utils.isIE()){var l='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+j+'" width="100%" height="100%" id="'+s.id+'" name="'+s.id+'" tabindex=0"">';l+='<param name="movie" value="'+r.src+'">';l+='<param name="allowfullscreen" value="true">';l+='<param name="allowscriptaccess" value="always">';l+='<param name="seamlesstabbing" value="true">';l+='<param name="wmode" value="'+e+'">';l+='<param name="flashvars" value="'+v(d)+'">';l+="</object>";b.utils.setOuterHTML(s,l);z=document.getElementById(s.id)}else{var A=document.createElement("object");A.setAttribute("type","application/x-shockwave-flash");A.setAttribute("data",r.src);A.setAttribute("width","100%");A.setAttribute("height","100%");A.setAttribute("bgcolor","#000000");A.setAttribute("id",s.id);A.setAttribute("name",s.id);A.setAttribute("tabindex",0);a(A,"allowfullscreen","true");a(A,"allowscriptaccess","always");a(A,"seamlesstabbing","true");a(A,"wmode",e);a(A,"flashvars",v(d));s.parentNode.replaceChild(A,s);z=A}p.container=z;p.setPlayer(z,"flash")};this.supportsConfig=function(){if(b.utils.hasFlash()){if(n){var c=b.utils.getFirstPlaylistItemFromConfig(n);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return flashCanPlay(c.file,c.provider)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&flashCanPlay(c.levels[d].file,c.provider)){return true}}}}}}else{return true}}return false};flashCanPlay=function(f,d){var e=["video","http","sound","image"];if(d&&(e.toString().indexOf(d<0))){return true}var c=b.utils.extension(f);if(!c){return true}if(b.utils.exists(b.utils.extensionmap[c])&&!b.utils.exists(b.utils.extensionmap[c].flash)){return false}return true}}})(jwplayer);(function(b){b.embed.html5=function(m,h,a,l,j){function k(d,c,e){return function(g){var f=document.getElementById(m.id+"_displayarea");if(e){f.appendChild(c)}var o=f.style;d.resize(parseInt(o.width.replace("px","")),parseInt(o.height.replace("px","")));c.left=o.left;c.top=o.top}}this.embed=function(){if(b.html5){l.setupPlugins(j,a,k);m.innerHTML="";var e=b.utils.extend({screencolor:"0x000000"},a);var f=["plugins","modes","events"];for(var d=0;d<f.length;d++){delete e[f[d]]}if(e.levels&&!e.sources){e.sources=a.levels}if(e.skin&&e.skin.toLowerCase().indexOf(".zip")>0){e.skin=e.skin.replace(/\.zip/i,".xml")}var c=new (b.html5(m)).setup(e);j.container=document.getElementById(j.id);j.setPlayer(c,"html5")}else{return null}};this.supportsConfig=function(){if(!!b.vid.canPlayType){if(a){var c=b.utils.getFirstPlaylistItemFromConfig(a);if(typeof c.file=="undefined"&&typeof c.levels=="undefined"){return true}else{if(c.file){return html5CanPlay(b.vid,c.file,c.provider,c.playlistfile)}else{if(c.levels&&c.levels.length){for(var d=0;d<c.levels.length;d++){if(c.levels[d].file&&html5CanPlay(b.vid,c.levels[d].file,c.provider,c.playlistfile)){return true}}}}}}else{return true}}return false};html5CanPlay=function(e,f,d,g){if(g){return false}if(d&&d=="youtube"){return true}if(d&&d!="video"&&d!="http"&&d!="sound"){return false}var c=b.utils.extension(f);if(!b.utils.exists(c)||!b.utils.exists(b.utils.extensionmap[c])){return true}if(!b.utils.exists(b.utils.extensionmap[c].html5)){return false}if(b.utils.isLegacyAndroid()&&c.match(/m4v|mp4/)){return true}return browserCanPlay(e,b.utils.extensionmap[c].html5)};browserCanPlay=function(c,d){if(!d){return true}if(c.canPlayType(d)){return true}else{if(d=="audio/mp3"&&navigator.userAgent.match(/safari/i)){return c.canPlayType("audio/mpeg")}else{return false}}}}})(jwplayer);(function(b){b.embed.logo=function(s,t,A){var v={prefix:"http://l.longtailvideo.com/"+t+"/",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:false,position:"bottom-left"};_css=b.utils.css;var C;var w;u();function u(){q();B();y()}function q(){if(v.prefix){var c=b.version.split(/\W/).splice(0,2).join("/");if(v.prefix.indexOf(c)<0){v.prefix+=c+"/"}}w=b.utils.extend({},v,s)}function a(){var c={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10};c.display=w.hide?"none":"block";var d=w.position.toLowerCase().split("-");for(var e in d){c[d[e]]=w.margin}return c}function B(){C=document.createElement("img");C.id=A+"_jwplayer_logo";C.style.display="none";C.onload=function(c){_css(C,a());z()};if(!w.file){return}if(w.file.indexOf("http://")===0){C.src=w.file}else{C.src=w.prefix+w.file}}if(!w.file){return}function y(){if(w.link){C.onmouseover=x;C.onmouseout=z;C.onclick=r}else{this.mouseEnabled=false}}function r(c){if(typeof c!="undefined"){c.preventDefault();c.stopPropagation()}if(w.link){window.open(w.link,"_blank")}return}function z(c){if(w.link){C.style.opacity=w.out}return}function x(c){if(w.hide){C.style.opacity=w.over}return}return C}})(jwplayer);(function(b){b.html5=function(a){var d=a;this.setup=function(c){b.utils.extend(this,new b.html5.api(d,c));return this};return this}})(jwplayer);(function(e){var g=e.utils;var h=g.css;e.html5.view=function(K,M,X){var F=K;var Q=M;var c=X;var d;var W;var J;var H;var I;var O;var N;function a(){d=document.createElement("div");d.id=Q.id;d.className=Q.className;_videowrapper=document.createElement("div");_videowrapper.id=d.id+"_video_wrapper";Q.id=d.id+"_video";h(d,{position:"relative",height:c.height,width:c.width,padding:0,backgroundColor:j(),zIndex:0});function j(){if(F.skin.getComponentSettings("display")&&F.skin.getComponentSettings("display").backgroundcolor){return F.skin.getComponentSettings("display").backgroundcolor}return parseInt("000000",16)}h(Q,{width:c.width,height:c.height,top:0,left:0,zIndex:1,margin:"auto",display:"block"});h(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0});g.wrap(Q,d);g.wrap(Q,_videowrapper);H=document.createElement("div");H.id=d.id+"_displayarea";d.appendChild(H)}function T(){for(var k=0;k<c.plugins.order.length;k++){var j=c.plugins.order[k];if(g.exists(c.plugins.object[j].getDisplayElement)){c.plugins.object[j].height=g.parseDimension(c.plugins.object[j].getDisplayElement().style.height);c.plugins.object[j].width=g.parseDimension(c.plugins.object[j].getDisplayElement().style.width);c.plugins.config[j].currentPosition=c.plugins.config[j].position}}E()}function R(j){h(H,{display:c.getMedia().hasChrome()?"none":"block"})}function E(l){var j=c.getMedia()?c.getMedia().getDisplayElement():null;if(g.exists(j)){if(N!=j){if(N&&N.parentNode){N.parentNode.replaceChild(j,N)}N=j}for(var m=0;m<c.plugins.order.length;m++){var k=c.plugins.order[m];if(g.exists(c.plugins.object[k].getDisplayElement)){c.plugins.config[k].currentPosition=c.plugins.config[k].position}}}U(c.width,c.height)}this.setup=function(){if(c&&c.getMedia()){Q=c.getMedia().getDisplayElement()}a();T();F.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,R);F.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_LOADED,E);F.jwAddEventListener(e.api.events.JWPLAYER_MEDIA_META,function(){b()});var j;if(g.exists(window.onresize)){j=window.onresize}window.onresize=function(m){if(g.exists(j)){try{j(m)}catch(k){}}if(F.jwGetFullscreen()){var l=document.body.getBoundingClientRect();c.width=Math.abs(l.left)+Math.abs(l.right);c.height=window.innerHeight}U(c.width,c.height)}};function V(j){switch(j.keyCode){case 27:if(F.jwGetFullscreen()){F.jwSetFullscreen(false)}break;case 32:if(F.jwGetState()!=e.api.events.state.IDLE&&F.jwGetState()!=e.api.events.state.PAUSED){F.jwPause()}else{F.jwPlay()}break}}function U(l,o){if(d.style.display=="none"){return}var m=[].concat(c.plugins.order);m.reverse();I=m.length+2;if(!c.fullscreen){c.width=l;c.height=o;W=l;J=o;h(H,{top:0,bottom:0,left:0,right:0,width:l,height:o,position:"relative"});h(d,{height:J,width:W});var n=P(G,m);if(n.length>0){I+=n.length;var j=n.indexOf("playlist"),k=n.indexOf("controlbar");if(j>=0&&k>=0){n[j]=n.splice(k,1,n[j])[0]}P(S,n,true)}}else{if(!(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0)){P(L,m,true)}}b()}function P(k,n,m){var o=[];for(var p=0;p<n.length;p++){var j=n[p];if(g.exists(c.plugins.object[j].getDisplayElement)){if(c.plugins.config[j].currentPosition!=e.html5.view.positions.NONE){var l=k(j,I--);if(!l){o.push(j)}else{c.plugins.object[j].resize(l.width,l.height);if(m){delete l.width;delete l.height}h(c.plugins.object[j].getDisplayElement(),l)}}else{h(c.plugins.object[j].getDisplayElement(),{display:"none"})}}}return o}function G(k,j){if(g.exists(c.plugins.object[k].getDisplayElement)){if(c.plugins.config[k].position&&f(c.plugins.config[k].position)){if(!g.exists(c.plugins.object[k].getDisplayElement().parentNode)){d.appendChild(c.plugins.object[k].getDisplayElement())}var l=Y(k);l.zIndex=j;return l}}return false}function S(k,j){if(!g.exists(c.plugins.object[k].getDisplayElement().parentNode)){H.appendChild(c.plugins.object[k].getDisplayElement())}var m=c.width,l=c.height;if(typeof c.width=="string"&&c.width.lastIndexOf("%")>-1){percentage=parseFloat(c.width.substring(0,c.width.lastIndexOf("%")))/100;m=Math.round(window.innerWidth*percentage)}if(typeof c.height=="string"&&c.height.lastIndexOf("%")>-1){percentage=parseFloat(c.height.substring(0,c.height.lastIndexOf("%")))/100;l=Math.round(window.innerHeight*percentage)}return{position:"absolute",width:(m-g.parseDimension(H.style.left)-g.parseDimension(H.style.right)),height:(l-g.parseDimension(H.style.top)-g.parseDimension(H.style.bottom)),zIndex:j}}function L(k,j){return{position:"fixed",width:c.width,height:c.height,zIndex:j}}function b(){if(!g.exists(c.getMedia())){return}H.style.position="absolute";var k=c.getMedia().getDisplayElement();if(k&&k.tagName.toLowerCase()=="video"){k.style.position="absolute";var n,j;if(H.style.width.toString().lastIndexOf("%")>-1||H.style.width.toString().lastIndexOf("%")>-1){var m=H.getBoundingClientRect();n=Math.abs(m.left)+Math.abs(m.right);j=Math.abs(m.top)+Math.abs(m.bottom)}else{n=g.parseDimension(H.style.width);j=g.parseDimension(H.style.height)}if(k.parentNode){k.parentNode.style.left=H.style.left;k.parentNode.style.top=H.style.top}g.stretch(F.jwGetStretching(),k,n,j,k.videoWidth?k.videoWidth:400,k.videoHeight?k.videoHeight:300)}else{var l=c.plugins.object.display.getDisplayElement();if(l){c.getMedia().resize(g.parseDimension(l.style.width),g.parseDimension(l.style.height))}else{c.getMedia().resize(g.parseDimension(H.style.width),g.parseDimension(H.style.height))}}}function Y(k){var j={position:"absolute",margin:0,padding:0,top:null};var l=c.plugins.config[k].currentPosition.toLowerCase();switch(l.toUpperCase()){case e.html5.view.positions.TOP:j.top=g.parseDimension(H.style.top);j.left=g.parseDimension(H.style.left);j.width=W-g.parseDimension(H.style.left)-g.parseDimension(H.style.right);j.height=c.plugins.object[k].height;H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].height+"px";H.style.height=g.parseDimension(H.style.height)-j.height+"px";break;case e.html5.view.positions.RIGHT:j.top=g.parseDimension(H.style.top);j.right=g.parseDimension(H.style.right);j.width=c.plugins.object[k].width;j.height=J-g.parseDimension(H.style.top)-g.parseDimension(H.style.bottom);H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].width+"px";H.style.width=g.parseDimension(H.style.width)-j.width+"px";break;case e.html5.view.positions.BOTTOM:j.bottom=g.parseDimension(H.style.bottom);j.left=g.parseDimension(H.style.left);j.width=W-g.parseDimension(H.style.left)-g.parseDimension(H.style.right);j.height=c.plugins.object[k].height;H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].height+"px";H.style.height=g.parseDimension(H.style.height)-j.height+"px";break;case e.html5.view.positions.LEFT:j.top=g.parseDimension(H.style.top);j.left=g.parseDimension(H.style.left);j.width=c.plugins.object[k].width;j.height=J-g.parseDimension(H.style.top)-g.parseDimension(H.style.bottom);H.style[l]=g.parseDimension(H.style[l])+c.plugins.object[k].width+"px";H.style.width=g.parseDimension(H.style.width)-j.width+"px";break;default:break}return j}this.resize=U;this.fullscreen=function(j){if(navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")===0){if(c.getMedia().getDisplayElement().webkitSupportsFullscreen){if(j){try{c.getMedia().getDisplayElement().webkitEnterFullscreen()}catch(k){}}else{try{c.getMedia().getDisplayElement().webkitExitFullscreen()}catch(k){}}}}else{if(j){document.onkeydown=V;clearInterval(O);var l=document.body.getBoundingClientRect();c.width=Math.abs(l.left)+Math.abs(l.right);c.height=window.innerHeight;var m={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483000};h(d,m);m.zIndex=1;if(c.getMedia()&&c.getMedia().getDisplayElement()){h(c.getMedia().getDisplayElement(),m)}m.zIndex=2;h(H,m)}else{document.onkeydown="";c.width=W;c.height=J;h(d,{position:"relative",height:c.height,width:c.width,zIndex:0})}U(c.width,c.height)}}};function f(a){return([e.html5.view.positions.TOP,e.html5.view.positions.RIGHT,e.html5.view.positions.BOTTOM,e.html5.view.positions.LEFT].toString().indexOf(a.toUpperCase())>-1)}e.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}})(jwplayer);(function(d){var c={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:d.html5.view.positions.BOTTOM,idlehide:false,layout:{left:{position:"left",elements:[{name:"play",type:"button"},{name:"divider",type:"divider"},{name:"prev",type:"button"},{name:"divider",type:"divider"},{name:"next",type:"button"},{name:"divider",type:"divider"},{name:"elapsed",type:"text"}]},center:{position:"center",elements:[{name:"time",type:"slider"}]},right:{position:"right",elements:[{name:"duration",type:"text"},{name:"blank",type:"button"},{name:"divider",type:"divider"},{name:"mute",type:"button"},{name:"volume",type:"slider"},{name:"divider",type:"divider"},{name:"fullscreen",type:"button"}]}}};_utils=d.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};d.html5.controlbar=function(a3,ak){var a4=a3;var aH=_utils.extend({},c,a4.skin.getComponentSettings("controlbar"),ak);if(aH.position==d.html5.view.positions.NONE||typeof d.html5.view.positions[aH.position]=="undefined"){return}if(_utils.mapLength(a4.skin.getComponentLayout("controlbar"))>0){aH.layout=a4.skin.getComponentLayout("controlbar")}var aL;var aq;var aM;var aF;var aT="none";var a7;var a5;var aJ;var a8;var a9;var aQ;var ap={};var aZ=false;var bb={};var b;var a6=false;var a0;var ba;var an=false;var aB=false;var aj=new d.html5.eventdispatcher();_utils.extend(this,aj);function ax(){if(!b){b=a4.skin.getSkinElement("controlbar","background");if(!b){b={width:0,height:0,src:null}}}return b}function at(){aM=0;aF=0;aq=0;if(!aZ){var g={height:ax().height,backgroundColor:aH.backgroundcolor};aL=document.createElement("div");aL.id=a4.id+"_jwplayer_controlbar";_css(aL,g)}var h=(a4.skin.getSkinElement("controlbar","capLeft"));var e=(a4.skin.getSkinElement("controlbar","capRight"));if(h){aR("capLeft","left",false,aL)}var f={position:"absolute",height:ax().height,left:(h?h.width:0),zIndex:0};a("background",aL,f,"img");if(ax().src){ap.background.src=ax().src}f.zIndex=1;a("elements",aL,f);if(e){aR("capRight","right",false,aL)}}this.getDisplayElement=function(){return aL};this.resize=function(f,e){_utils.cancelAnimation(aL);document.getElementById(a4.id).onmousemove=aN;a9=f;aQ=e;if(aB!=a4.jwGetFullscreen()){aB=a4.jwGetFullscreen();ba=undefined}var g=aS();aN();ay({id:a4.id,duration:aJ,position:a5});aU({id:a4.id,bufferPercent:a8});return g};this.show=function(){if(a6){a6=false;_show(aL);am()}};this.hide=function(){if(!a6){a6=true;_hide(aL);aO()}};function aY(){var g=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"];for(var f in g){var e=g[f];if(typeof ap[e]!="undefined"){bb[e]=ap[e].getBoundingClientRect()}}}function aN(e){if(a6){return}if(aH.position==d.html5.view.positions.OVER||a4.jwGetFullscreen()){clearTimeout(a0);switch(a4.jwGetState()){case d.api.events.state.PAUSED:case d.api.events.state.IDLE:if(!aH.idlehide||_utils.exists(e)){al()}if(aH.idlehide){a0=setTimeout(function(){aP()},2000)}break;default:if(e){al()}a0=setTimeout(function(){aP()},2000);break}}}function aP(e){aO();_utils.cancelAnimation(aL);_utils.fadeTo(aL,0,0.1,1,0)}function al(){am();_utils.cancelAnimation(aL);_utils.fadeTo(aL,1,0,1,0)}function az(e){return function(){if(an&&ba!=e){ba=e;aj.sendEvent(e,{component:"controlbar",boundingRect:ar()})}}}var am=az(d.api.events.JWPLAYER_COMPONENT_SHOW);var aO=az(d.api.events.JWPLAYER_COMPONENT_HIDE);function ar(){if(aH.position==d.html5.view.positions.OVER||a4.jwGetFullscreen()){return _utils.getDimensions(aL)}else{return{x:0,y:0,width:0,height:0}}}function a(f,g,h,e){var j;if(!aZ){if(!e){e="div"}j=document.createElement(e);ap[f]=j;j.id=aL.id+"_"+f;g.appendChild(j)}else{j=document.getElementById(aL.id+"_"+f)}if(_utils.exists(h)){_css(j,h)}return j}function au(){aA(aH.layout.left);aA(aH.layout.right,-1);aA(aH.layout.center)}function aA(g,e){var f=g.position=="right"?"right":"left";var h=_utils.extend([],g.elements);if(_utils.exists(e)){h.reverse()}for(var j=0;j<h.length;j++){aI(h[j],f)}}function aw(){return aq++}function aI(j,g){var k,m,l,n,e;if(j.type=="divider"){aR("divider"+aw(),g,true,undefined,undefined,j.width,j.element);return}switch(j.name){case"play":aR("playButton",g,false);aR("pauseButton",g,true);ao("playButton","jwPlay");ao("pauseButton","jwPause");break;case"prev":aR("prevButton",g,true);ao("prevButton","jwPlaylistPrev");break;case"stop":aR("stopButton",g,true);ao("stopButton","jwStop");break;case"next":aR("nextButton",g,true);ao("nextButton","jwPlaylistNext");break;case"elapsed":aR("elapsedText",g,true);break;case"time":m=!_utils.exists(a4.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:a4.skin.getSkinElement("controlbar","timeSliderCapLeft").width;l=!_utils.exists(a4.skin.getSkinElement("controlbar","timeSliderCapRight"))?0:a4.skin.getSkinElement("controlbar","timeSliderCapRight").width;k=g=="left"?m:l;n=a4.skin.getSkinElement("controlbar","timeSliderRail").width+m+l;e={height:ax().height,position:"absolute",top:0,width:n};e[g]=g=="left"?aM:aF;var h=a("timeSlider",ap.elements,e);aR("timeSliderCapLeft",g,true,h,g=="left"?0:k);aR("timeSliderRail",g,false,h,k);aR("timeSliderBuffer",g,false,h,k);aR("timeSliderProgress",g,false,h,k);aR("timeSliderThumb",g,false,h,k);aR("timeSliderCapRight",g,true,h,g=="right"?0:k);ai("time");break;case"fullscreen":aR("fullscreenButton",g,false);aR("normalscreenButton",g,true);ao("fullscreenButton","jwSetFullscreen",true);ao("normalscreenButton","jwSetFullscreen",false);break;case"volume":m=!_utils.exists(a4.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?0:a4.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;l=!_utils.exists(a4.skin.getSkinElement("controlbar","volumeSliderCapRight"))?0:a4.skin.getSkinElement("controlbar","volumeSliderCapRight").width;k=g=="left"?m:l;n=a4.skin.getSkinElement("controlbar","volumeSliderRail").width+m+l;e={height:ax().height,position:"absolute",top:0,width:n};e[g]=g=="left"?aM:aF;var f=a("volumeSlider",ap.elements,e);aR("volumeSliderCapLeft",g,true,f,g=="left"?0:k);aR("volumeSliderRail",g,true,f,k);aR("volumeSliderProgress",g,false,f,k);aR("volumeSliderCapRight",g,true,f,g=="right"?0:k);ai("volume");break;case"mute":aR("muteButton",g,false);aR("unmuteButton",g,true);ao("muteButton","jwSetMute",true);ao("unmuteButton","jwSetMute",false);break;case"duration":aR("durationText",g,true);break}}function aR(m,j,o,f,l,p,n){if(_utils.exists(a4.skin.getSkinElement("controlbar",m))||m.indexOf("Text")>0||m.indexOf("divider")===0){var k={height:ax().height,position:"absolute",display:"block",top:0};if((m.indexOf("next")===0||m.indexOf("prev")===0)&&a4.jwGetPlaylist().length<2){o=false;k.display="none"}var e;if(m.indexOf("Text")>0){m.innerhtml="00:00";k.font=aH.fontsize+"px/"+(ax().height+1)+"px "+aH.font;k.color=aH.fontcolor;k.textAlign="center";k.fontWeight=aH.fontweight;k.fontStyle=aH.fontstyle;k.cursor="default";e=14+3*aH.fontsize}else{if(m.indexOf("divider")===0){if(p){if(!isNaN(parseInt(p))){e=parseInt(p)}}else{if(n){var h=a4.skin.getSkinElement("controlbar",n);if(h){k.background="url("+h.src+") repeat-x center left";e=h.width}}else{k.background="url("+a4.skin.getSkinElement("controlbar","divider").src+") repeat-x center left";e=a4.skin.getSkinElement("controlbar","divider").width}}}else{k.background="url("+a4.skin.getSkinElement("controlbar",m).src+") repeat-x center left";e=a4.skin.getSkinElement("controlbar",m).width}}if(j=="left"){k.left=isNaN(l)?aM:l;if(o){aM+=e}}else{if(j=="right"){k.right=isNaN(l)?aF:l;if(o){aF+=e}}}if(_utils.typeOf(f)=="undefined"){f=ap.elements}k.width=e;if(aZ){_css(ap[m],k)}else{var g=a(m,f,k);if(_utils.exists(a4.skin.getSkinElement("controlbar",m+"Over"))){g.onmouseover=function(q){g.style.backgroundImage=["url(",a4.skin.getSkinElement("controlbar",m+"Over").src,")"].join("")};g.onmouseout=function(q){g.style.backgroundImage=["url(",a4.skin.getSkinElement("controlbar",m).src,")"].join("")}}}}}function aD(){a4.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_LOADED,aK);a4.jwAddEventListener(d.api.events.JWPLAYER_PLAYLIST_ITEM,aW);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER,aU);a4.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,aX);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_TIME,ay);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_MUTE,aC);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_VOLUME,a2);a4.jwAddEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,av)}function aK(){at();au();aS();aG()}function aW(e){aJ=a4.jwGetPlaylist()[e.index].duration;ay({id:a4.id,duration:aJ,position:0});aU({id:a4.id,bufferProgress:0})}function aG(){ay({id:a4.id,duration:a4.jwGetDuration(),position:0});aU({id:a4.id,bufferProgress:0});aC({id:a4.id,mute:a4.jwGetMute()});aX({id:a4.id,newstate:d.api.events.state.IDLE});a2({id:a4.id,volume:a4.jwGetVolume()})}function ao(g,f,h){if(aZ){return}if(_utils.exists(a4.skin.getSkinElement("controlbar",g))){var e=ap[g];if(_utils.exists(e)){_css(e,{cursor:"pointer"});if(f=="fullscreen"){e.onmouseup=function(j){j.stopPropagation();a4.jwSetFullscreen(!a4.jwGetFullscreen())}}else{e.onmouseup=function(j){j.stopPropagation();if(_utils.exists(h)){a4[f](h)}else{a4[f]()}}}}}}function ai(e){if(aZ){return}var f=ap[e+"Slider"];_css(ap.elements,{cursor:"pointer"});_css(f,{cursor:"pointer"});f.onmousedown=function(g){aT=e};f.onmouseup=function(g){g.stopPropagation();aE(g.pageX)};f.onmousemove=function(h){if(aT=="time"){a7=true;var g=h.pageX-bb[e+"Slider"].left-window.pageXOffset;_css(ap.timeSliderThumb,{left:g})}}}function aE(h){a7=false;var e;if(aT=="time"){e=h-bb.timeSliderRail.left+window.pageXOffset;var f=e/bb.timeSliderRail.width*aJ;if(f<0){f=0}else{if(f>aJ){f=aJ-3}}if(a4.jwGetState()==d.api.events.state.PAUSED||a4.jwGetState()==d.api.events.state.IDLE){a4.jwPlay()}a4.jwSeek(f)}else{if(aT=="volume"){e=h-bb.volumeSliderRail.left-window.pageXOffset;var g=Math.round(e/bb.volumeSliderRail.width*100);if(g<0){g=0}else{if(g>100){g=100}}if(a4.jwGetMute()){a4.jwSetMute(false)}a4.jwSetVolume(g)}}aT="none"}function aU(g){if(_utils.exists(g.bufferPercent)){a8=g.bufferPercent}if(bb.timeSliderRail){var f=bb.timeSliderRail.width;var e=isNaN(Math.round(f*a8/100))?0:Math.round(f*a8/100);_css(ap.timeSliderBuffer,{width:e})}}function aC(e){if(e.mute){_hide(ap.muteButton);_show(ap.unmuteButton);_hide(ap.volumeSliderProgress)}else{_show(ap.muteButton);_hide(ap.unmuteButton);_show(ap.volumeSliderProgress)}}function aX(e){if(e.newstate==d.api.events.state.BUFFERING||e.newstate==d.api.events.state.PLAYING){_show(ap.pauseButton);_hide(ap.playButton)}else{_hide(ap.pauseButton);_show(ap.playButton)}aN();if(e.newstate==d.api.events.state.IDLE){_hide(ap.timeSliderBuffer);_hide(ap.timeSliderProgress);_hide(ap.timeSliderThumb);ay({id:a4.id,duration:a4.jwGetDuration(),position:0})}else{_show(ap.timeSliderBuffer);if(e.newstate!=d.api.events.state.BUFFERING){_show(ap.timeSliderProgress);_show(ap.timeSliderThumb)}}}function av(e){aU({bufferPercent:0});ay(_utils.extend(e,{position:0,duration:aJ}))}function ay(g){if(_utils.exists(g.position)){a5=g.position}if(_utils.exists(g.duration)){aJ=g.duration}var j=(a5===aJ===0)?0:a5/aJ;var f=bb.timeSliderRail;if(f){var e=isNaN(Math.round(f.width*j))?0:Math.round(f.width*j);var h=e;if(ap.timeSliderProgress){ap.timeSliderProgress.style.width=e+"px";if(!a7){if(ap.timeSliderThumb){ap.timeSliderThumb.style.left=h+"px"}}}}if(ap.durationText){ap.durationText.innerHTML=_utils.timeFormat(aJ)}if(ap.elapsedText){ap.elapsedText.innerHTML=_utils.timeFormat(a5)}}function a1(){var f,j;var h=document.getElementById(aL.id+"_elements");if(!h){return}var g=h.childNodes;for(var e in h.childNodes){if(isNaN(parseInt(e,10))){continue}if(g[e].id.indexOf(aL.id+"_divider")===0&&j&&j.id.indexOf(aL.id+"_divider")===0&&g[e].style.backgroundImage==j.style.backgroundImage){g[e].style.display="none"}else{if(g[e].id.indexOf(aL.id+"_divider")===0&&f&&f.style.display!="none"){g[e].style.display="block"}}if(g[e].style.display!="none"){j=g[e]}f=g[e]}}function aS(){a1();if(a4.jwGetFullscreen()){_show(ap.normalscreenButton);_hide(ap.fullscreenButton)}else{_hide(ap.normalscreenButton);_show(ap.fullscreenButton)}var j={width:a9};var e={};if(aH.position==d.html5.view.positions.OVER||a4.jwGetFullscreen()){j.left=aH.margin;j.width-=2*aH.margin;j.top=aQ-ax().height-aH.margin;j.height=ax().height}var g=a4.skin.getSkinElement("controlbar","capLeft");var h=a4.skin.getSkinElement("controlbar","capRight");e.left=g?g.width:0;e.width=j.width-e.left-(h?h.width:0);var f=!_utils.exists(a4.skin.getSkinElement("controlbar","timeSliderCapLeft"))?0:a4.skin.getSkinElement("controlbar","timeSliderCapLeft").width;_css(ap.timeSliderRail,{width:(e.width-aM-aF),left:f});if(_utils.exists(ap.timeSliderCapRight)){_css(ap.timeSliderCapRight,{left:f+(e.width-aM-aF)})}_css(aL,j);_css(ap.elements,e);_css(ap.background,e);aY();return j}function a2(g){if(_utils.exists(ap.volumeSliderRail)){var j=isNaN(g.volume/100)?1:g.volume/100;var h=_utils.parseDimension(ap.volumeSliderRail.style.width);var e=isNaN(Math.round(h*j))?0:Math.round(h*j);var f=_utils.parseDimension(ap.volumeSliderRail.style.right);var k=(!_utils.exists(a4.skin.getSkinElement("controlbar","volumeSliderCapLeft")))?0:a4.skin.getSkinElement("controlbar","volumeSliderCapLeft").width;_css(ap.volumeSliderProgress,{width:e,left:k});if(_utils.exists(ap.volumeSliderCapLeft)){_css(ap.volumeSliderCapLeft,{left:0})}}}function aV(){at();au();aY();aZ=true;aD();aH.idlehide=(aH.idlehide.toString().toLowerCase()=="true");if(aH.position==d.html5.view.positions.OVER&&aH.idlehide){aL.style.opacity=0;an=true}else{setTimeout((function(){an=true;am()}),1)}aG()}aV();return this}})(jwplayer);(function(d){var e=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"];var f=d.utils;d.html5.controller=function(c,R,am,T){var aa=c;var S=am;var an=T;var ag=R;var N=true;var ap=-1;var af=f.exists(S.config.debug)&&(S.config.debug.toString().toLowerCase()=="console");var ai=new d.html5.eventdispatcher(ag.id,af);f.extend(this,ai);var X=[];var aq=false;function ab(g){if(aq){ai.sendEvent(g.type,g)}else{X.push(g)}}function b(j){if(!aq){ai.sendEvent(d.api.events.JWPLAYER_READY,j);if(d.utils.exists(window.playerReady)){playerReady(j)}if(d.utils.exists(window[am.config.playerReady])){window[am.config.playerReady](j)}while(X.length>0){var g=X.shift();ai.sendEvent(g.type,g)}if(am.config.autostart&&!d.utils.isIOS()){W(S.item)}while(ae.length>0){var h=ae.shift();O(h.method,h.arguments)}aq=true}}S.addGlobalListener(ab);S.addEventListener(d.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){S.getMedia().play()});S.addEventListener(d.api.events.JWPLAYER_MEDIA_TIME,function(g){if(g.position>=S.playlist[S.item].start&&ap>=0){S.playlist[S.item].start=ap;ap=-1}});S.addEventListener(d.api.events.JWPLAYER_MEDIA_COMPLETE,function(g){setTimeout(Y,25)});function V(){try{ao(S.item);if(S.playlist[S.item].levels[0].file.length>0){if(N||S.state==d.api.events.state.IDLE){S.getMedia().load(S.playlist[S.item]);N=false}else{if(S.state==d.api.events.state.PAUSED){S.getMedia().play()}}}return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function P(){try{if(S.playlist[S.item].levels[0].file.length>0){switch(S.state){case d.api.events.state.PLAYING:case d.api.events.state.BUFFERING:S.getMedia().pause();break}}return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function Z(h){try{if(S.playlist[S.item].levels[0].file.length>0){if(typeof h!="number"){h=parseFloat(h)}switch(S.state){case d.api.events.state.IDLE:if(ap<0){ap=S.playlist[S.item].start;S.playlist[S.item].start=h}V();break;case d.api.events.state.PLAYING:case d.api.events.state.PAUSED:case d.api.events.state.BUFFERING:S.seek(h);break}}return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ah(h){if(!f.exists(h)){h=true}try{S.getMedia().stop(h);return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ak(){try{if(S.playlist[S.item].levels[0].file.length>0){if(S.config.shuffle){ao(M())}else{if(S.item+1==S.playlist.length){ao(0)}else{ao(S.item+1)}}}if(S.state!=d.api.events.state.IDLE){var g=S.state;S.state=d.api.events.state.IDLE;ai.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}V();return true}catch(h){ai.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function al(){try{if(S.playlist[S.item].levels[0].file.length>0){if(S.config.shuffle){ao(M())}else{if(S.item===0){ao(S.playlist.length-1)}else{ao(S.item-1)}}}if(S.state!=d.api.events.state.IDLE){var g=S.state;S.state=d.api.events.state.IDLE;ai.sendEvent(d.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:d.api.events.state.IDLE})}V();return true}catch(h){ai.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function M(){var g=null;if(S.playlist.length>1){while(!f.exists(g)){g=Math.floor(Math.random()*S.playlist.length);if(g==S.item){g=null}}}else{g=0}return g}function W(h){if(!S.playlist||!S.playlist[h]){return false}try{if(S.playlist[h].levels[0].file.length>0){var g=S.state;if(g!==d.api.events.state.IDLE){if(S.playlist[S.item].provider==S.playlist[h].provider){ah(false)}else{ah()}}ao(h);V()}return true}catch(j){ai.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function ao(g){if(!S.playlist[g]){return}S.setActiveMediaProvider(S.playlist[g]);if(S.item!=g){S.item=g;N=true;ai.sendEvent(d.api.events.JWPLAYER_PLAYLIST_ITEM,{index:g})}}function Q(h){try{ao(S.item);var g=S.getMedia();switch(typeof(h)){case"number":g.volume(h);break;case"string":g.volume(parseInt(h,10));break}return true}catch(j){ai.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function ad(h){try{ao(S.item);var g=S.getMedia();if(typeof h=="undefined"){g.mute(!S.mute)}else{if(h.toString().toLowerCase()=="true"){g.mute(true)}else{g.mute(false)}}return true}catch(j){ai.sendEvent(d.api.events.JWPLAYER_ERROR,j)}return false}function aj(h,j){try{S.width=h;S.height=j;an.resize(h,j);ai.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:S.width,height:S.height});return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}function ac(g){try{if(typeof g=="undefined"){S.fullscreen=!S.fullscreen;an.fullscreen(!S.fullscreen)}else{if(g.toString().toLowerCase()=="true"){S.fullscreen=true;an.fullscreen(true)}else{S.fullscreen=false;an.fullscreen(false)}}ai.sendEvent(d.api.events.JWPLAYER_RESIZE,{width:S.width,height:S.height});ai.sendEvent(d.api.events.JWPLAYER_FULLSCREEN,{fullscreen:g});return true}catch(h){ai.sendEvent(d.api.events.JWPLAYER_ERROR,h)}return false}function a(h){try{ah();S.loadPlaylist(h);ao(S.item);return true}catch(g){ai.sendEvent(d.api.events.JWPLAYER_ERROR,g)}return false}d.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"};function Y(){switch(S.config.repeat.toUpperCase()){case d.html5.controller.repeatoptions.SINGLE:V();break;case d.html5.controller.repeatoptions.ALWAYS:if(S.item==S.playlist.length-1&&!S.config.shuffle){W(0)}else{ak()}break;case d.html5.controller.repeatoptions.LIST:if(S.item==S.playlist.length-1&&!S.config.shuffle){ah();ao(0)}else{ak()}break;default:ah();break}}var ae=[];function U(g){return function(){if(aq){O(g,arguments)}else{ae.push({method:g,arguments:arguments})}}}function O(g,h){var j=[];for(i=0;i<h.length;i++){j.push(h[i])}g.apply(this,j)}this.play=U(V);this.pause=U(P);this.seek=U(Z);this.stop=U(ah);this.next=U(ak);this.prev=U(al);this.item=U(W);this.setVolume=U(Q);this.setMute=U(ad);this.resize=U(aj);this.setFullscreen=U(ac);this.load=U(a);this.playerReady=b}})(jwplayer);(function(b){b.html5.defaultSkin=function(){this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.0"><settings><setting name="backcolor" value="0xFFFFFF"/><setting name="frontcolor" value="0x000000"/><setting name="lightcolor" value="0x000000"/><setting name="screencolor" value="0x000000"/></settings><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/></settings><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFJJREFUeNrslLENwAAIwxLU/09j5AiOgD5hVQzNAVY8JK4qEfHMIKBnd2+BQlBINaiRtL/aV2rdzYBsM6CIONbI1NZENTr3RwdB2PlnJgJ6BRgA4hwu5Qg5iswAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD5JREFUeNosi8ENACAMAgnuv14H0Z8asI19XEjhOiKCMmibVgJTUt7V6fe9KXOtSQCfctJHu2q3/ot79hNgANc2OTz9uTCCAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhJREFUeNpiYqABYBo1dNRQ+hr6H4jvA3E8NS39j4SpZvh/LJig4YxEGEqy3kET+w+AOGFQRhTJhrEQkGcczfujhg4CQwECDADpTRWU/B3wHQAAAABJRU5ErkJggg=="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiYBgFo2DwA0YC8v/R1P4nRu+ooaOGUtnQUTAKhgIACDAAFCwQCfAJ4gwAAAAASUVORK5CYII="/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEtJREFUeNpiYBgFo2Dog/9QDAPyQHweTYwiQ/2B+D0Wi8g2tB+JTdBQRiIMJVkvEy0iglhDF9Aq9uOpHVEwoE+NJDUKRsFgAAABBgDe2hqZcNNL0AAAAABJRU5ErkJggg=="/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUeNpiYBgFo2Dog/9AfB6I5dHE/lNqKAi/B2J/ahsKw/3EGMpIhKEk66WJoaR6fz61IyqemhEFSlL61ExSo2AUDAYAEGAAiG4hj+5t7M8AAAAASUVORK5CYII="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADxJREFUeNpiYBgFo2AU0Bwwzluw+D8tLWARFhKiqQ9YuLg4aWsBGxs7bS1gZ6e5BWyjSX0UjIKhDgACDABlYQOGh5pYywAAAABJRU5ErkJggg=="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFo2AU0Bww1jc0/aelBSz8/Pw09QELOzs7bS1gY2OjrQWsrKy09gHraFIfBaNgqAOAAAMAvy0DChXHsZMAAAAASUVORK5CYII="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAClJREFUeNpiYBgFo2AU0BwwAvF/WlrARGsfjFow8BaMglEwCugAAAIMAOHfAQunR+XzAAAAAElFTkSuQmCC"/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAICAYAAAA870V8AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpiZICA/yCCiQEJUJcDEGAAY0gBD1/m7Q0AAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiYBgFIw3MB+L/5Gj8j6yRiRTFyICJXHfTXyMLAXlGati4YDRFDj8AEGAABk8GSqqS4CoAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYBgFgxz8p7bm+cQa+h8LHy7GhEcjIz4bmAjYykiun/8j0fakGPIfTfPgiSr6aB4FVAcAAQYAWdwR1G1Wd2gAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwM9ABMDncCoRYPfIqqDZcuW1UPp/6AUDcNM1DQYKtRAlaAj1mCSLSLXYIIWUctgDItoZfDA5aOoqKhGEANIM9LVR7SymGDQUctikuOIXkFNdhHEOFrDjlpEd4sAAgwAriRMub95fu8AAAAASUVORK5CYII="/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFtJREFUeNpi/P//PwM9ABMDncCoRYPfIlqAeij9H5SiYZiqBqPTlFqE02BKLSLaYFItIttgQhZRzWB8FjENiuRJ7aAbsMQwYMl7wDIsWUUQ42gNO2oR3S0CCDAAKhKq6MLLn8oAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE5JREFUeNpiYBgFo2DQA0YC8v/xqP1PjDlMRDrEgUgxkgHIlfZoriVGjmzLsLFHAW2D6D8eA/9Tw7L/BAwgJE90PvhPpNgoGAVDEQAEGAAMdhTyXcPKcAAAAABJRU5ErkJggg=="/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEZJREFUeNpiYBgFo2DIg/9UUkOUAf8JiFFsyX88fJyAkcQgYMQjNkzBoAgiezyRbE+tFGSPxQJ7auYBmma0UTAKBhgABBgAJAEY6zON61sAAAAASUVORK5CYII="/></elements></component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEpJREFUeNrszwENADAIA7DhX8ENoBMZ5KR10EryckCJiIiIiIiIiIiIiIiIiIiIiIh8GmkRERERERERERERERERERERERGRHSPAAPlXH1phYpYaAAAAAElFTkSuQmCC"/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAALdJREFUeNrs18ENgjAYhmFouDOCcQJGcARHgE10BDcgTOIosAGwQOuPwaQeuFRi2p/3Sb6EC5L3QCxZBgAAAOCorLW1zMn65TrlkH4NcV7QNcUQt7Gn7KIhxA+qNIR81spOGkL8oFJDyLJRdosqKDDkK+iX5+d7huzwM40xptMQMkjIOeRGo+VkEVvIPfTGIpKASfYIfT9iCHkHrBEzf4gcUQ56aEzuGK/mw0rHpy4AAACAf3kJMACBxjAQNRckhwAAAABJRU5ErkJggg=="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNrs1jEOgCAMBVAg7t5/8qaoIy4uoobyXsLCxA+0NCUAAADGUWvdQoQ41x4ixNBB2hBvBskdD3w5ZCkl3+33VqI0kjBBlh9rp+uTcyOP33TnolfsU85XX3yIRpQph8ZQY3wTZtU5AACASA4BBgDHoVuY1/fvOQAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWlJREFUeNrsl+1twjAQhsHq/7BBYQLYIBmBDcoGMAIjtBPQTcII2SDtBDBBwrU6pGsUO7YbO470PtKJkz9iH++d4ywWAAAAAABgljRNsyWr2bZzDuJG1rLdZhcMbTjrBCGDyUKsqQLFciJb9bSvuG/WagRVRUVUI6gqy5HVeKWfSgRyJruKIU//TrZTSn2nmlaXThrloi/v9F2STC1W4+Aw5cBzkquRc09bofFNc6YLxEON0VUZS5FPTftO49vMjRsIF3RhOGr7/D/pJw+FKU+q0vDyq8W42jCunDqI3LC5XxNj2wHLU1XjaRnb0Lhykhqhhd8MtSF5J9tbjCv4mXGvKJz/65FF/qJryyaaIvzP2QRxZTX2nTuXjvV/VPFSwyLnW7mpH99yTh1FEVro6JBSd40/pMrRdV8vPtcKl28T2pT8TnFZ4yNosct3Q0io6JfBiz1FlGdqVQH3VHnepAEAAAAAADDzEGAAcTwB10jWgxcAAAAASUVORK5CYII="/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuhJREFUeNrsWr9rU1EUznuNGqvFQh1ULOhiBx0KDtIuioO4pJuik3FxFfUPaAV1FTdx0Q5d2g4FFxehTnEpZHFoBy20tCIWtGq0TZP4HfkeHB5N8m6Sl/sa74XDybvv3vvOd8/Pe4lXrVZT3dD8VJc0B8QBcUAcEAfESktHGeR5XtMfqFQq/f92zPe/NbtGlKTdCY30kuxrpMGO94BlQCXs+rbh3ONgA6BlzP1p20d80gEI5hmA2A92Qua1Q2PtAFISM+bvjMG8U+Q7oA3rQGASwrYCU6WpNdLGYbA+Pq5jjXIiwi8EEa2UDbQSaKOIuV+SlkcCrfjY8XTI9EpKGwP0C2kru2hLtHqa4zoXtZRWyvi4CLwv9Opr6Hkn6A9HKgEANsQ1iqC3Ub/vRUk2JgmRkatK36kVrnt0qObunwUdUUMXMWYpakJsO5Am8tAw2GBIgwWA+G2S2dMpiw0gDioQRQJoKhRb1QiDwlHZUABYbaXWsm5ae6loTE4ZDxN4CZar8foVzOJ2iyZ2kWF3t7YIevffaMT5yJ70kQb2fQ1sE5SHr2wazs2wgMxgbsEKEAgxAvZUJbQLBGTSBMgNrncJbA6AljtS/eKDJ0Ez+DmrQEzXS2h1Ck25kAg0IZcUOaydCy4sYnN2fOA+2AP16gNoHALlQ+fwH7XO4CxLenUpgj4xr6ugY2roPMbMx+Xs18m/E8CVEIhxsNeg83XWOAN6grG3lGbk8uE5fr4B/WH3cJw+co/l9nTYsSGYCJ/lY5/qv0thn6nrIWmjeJcPSnWOeY++AkF8tpJHIMAUs/MaBBpj3znZfQo5psY+ZrG4gv5HickjEOymKjEeRpgyST6IuZcTcWbnjcgdPi5ghxciRKsl1lDSsgwA1i8fssonJgzmTSqfGUkCENndNdAL7PS6QQ7ZYISTo+1qq0LEWjTWcvY4isa4z+yfQB+7ooyHVg5RI7/i1Ijn/vnggDggDogD4oC00P4KMACd/juEHOrS4AAAAABJRU5ErkJggg=="/></elements></component><component name="dock"><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUeNrs0cEJACAQA8Eofu0fu/W6EM5ZSAFDRpKTBs00CQQEBAQEBAQEBAQEBAQEBATkK8iqbY+AgICAgICAgICAgICAgICAgIC86QowAG5PAQzEJ0lKAAAAAElFTkSuQmCC"/></elements></component><component name="playlist"><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHhJREFUeNrs2NEJwCAMBcBYuv/CFuIE9VN47WWCR7iocXR3pdWdGPqqwIoMjYfQeAiNh9B4JHc6MHQVHnjggQceeOCBBx77TifyeOY0iHi8DqIdEY8dD5cL094eePzINB5CO/LwcOTptNB4CP25L4TIbZzpU7UEGAA5wz1uF5rF9AAAAABJRU5ErkJggg=="/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUeNrsy6ENACAMAMHClp2wYxZLAg5Fcu9e3OjuOKqqfTMzbs14CIZhGIZhGIZhGP4VLwEGAK/BBnVFpB0oAAAAAElFTkSuQmCC"/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAA8CAIAAADpFA0BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNrsy7ENACAMBLE8++8caFFKKiRffU53112SGs3ttOohGIZhGIZhGIZh+Fe8BRgAiaUGde6NOSEAAAAASUVORK5CYII="/></elements></component></components></skin>';this.xml=null;if(window.DOMParser){parser=new DOMParser();this.xml=parser.parseFromString(this.text,"text/xml")}else{this.xml=new ActiveXObject("Microsoft.XMLDOM");this.xml.async="false";this.xml.loadXML(this.text)}return this}})(jwplayer);(function(b){_utils=b.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};b.html5.display=function(ax,aa){var ay={icons:true,showmute:false};var a=_utils.extend({},ay,aa);var az=ax;var R={};var aC;var am;var ak;var T;var ao;var Y;var ag;var X=!_utils.exists(az.skin.getComponentSettings("display").bufferrotation)?15:parseInt(az.skin.getComponentSettings("display").bufferrotation,10);var aq=!_utils.exists(az.skin.getComponentSettings("display").bufferinterval)?100:parseInt(az.skin.getComponentSettings("display").bufferinterval,10);var ah=-1;var an="";var W=true;var aD;var aA=false;var au=false;var Z=new b.html5.eventdispatcher();_utils.extend(this,Z);var ad={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:av},display_icon:{style:{cursor:"pointer",position:"absolute",top:((az.skin.getSkinElement("display","background").height-az.skin.getSkinElement("display","playIcon").height)/2),left:((az.skin.getSkinElement("display","background").width-az.skin.getSkinElement("display","playIcon").width)/2),border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:((am-az.skin.getSkinElement("display","background").height)/2),left:((aC-az.skin.getSkinElement("display","background").width)/2),border:0,backgroundImage:(["url(",az.skin.getSkinElement("display","background").src,")"]).join(""),width:az.skin.getSkinElement("display","background").width,height:az.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:aC,height:am,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:0.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}};az.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,ar);az.jwAddEventListener(b.api.events.JWPLAYER_MEDIA_MUTE,ar);az.jwAddEventListener(b.api.events.JWPLAYER_PLAYLIST_ITEM,ar);az.jwAddEventListener(b.api.events.JWPLAYER_ERROR,at);V();function V(){R.display=ae("div","display");R.display_text=ae("div","display_text");R.display.appendChild(R.display_text);R.display_image=ae("img","display_image");R.display_image.onerror=function(c){_hide(R.display_image)};R.display_image.onload=ai;R.display_icon=ae("div","display_icon");R.display_iconBackground=ae("div","display_iconBackground");R.display.appendChild(R.display_image);R.display_iconBackground.appendChild(R.display_icon);R.display.appendChild(R.display_iconBackground);aB();setTimeout((function(){au=true;if(a.icons.toString()=="true"){ab()}}),1)}this.getDisplayElement=function(){return R.display};this.resize=function(c,d){_css(R.display,{width:c,height:d});_css(R.display_text,{width:(c-10),top:((d-R.display_text.getBoundingClientRect().height)/2)});_css(R.display_iconBackground,{top:((d-az.skin.getSkinElement("display","background").height)/2),left:((c-az.skin.getSkinElement("display","background").width)/2)});if(aC!=c||am!=d){aC=c;am=d;aD=undefined;ab()}aE();ar({})};this.show=function(){if(aA){aA=false;ap(az.jwGetState())}};this.hide=function(){if(!aA){af();aA=true}};function ai(c){ak=R.display_image.naturalWidth;T=R.display_image.naturalHeight;aE()}function aE(){_utils.stretch(az.jwGetStretching(),R.display_image,aC,am,ak,T)}function ae(e,c){var d=document.createElement(e);d.id=az.id+"_jwplayer_"+c;_css(d,ad[c].style);return d}function aB(){for(var c in R){if(_utils.exists(ad[c].click)){R[c].onclick=ad[c].click}}}function av(c){if(typeof c.preventDefault!="undefined"){c.preventDefault()}else{c.returnValue=false}if(az.jwGetState()!=b.api.events.state.PLAYING){az.jwPlay()}else{az.jwPause()}}function S(c){if(ag){af();return}R.display_icon.style.backgroundImage=(["url(",az.skin.getSkinElement("display",c).src,")"]).join("");_css(R.display_icon,{width:az.skin.getSkinElement("display",c).width,height:az.skin.getSkinElement("display",c).height,top:(az.skin.getSkinElement("display","background").height-az.skin.getSkinElement("display",c).height)/2,left:(az.skin.getSkinElement("display","background").width-az.skin.getSkinElement("display",c).width)/2});aF();if(_utils.exists(az.skin.getSkinElement("display",c+"Over"))){R.display_icon.onmouseover=function(d){R.display_icon.style.backgroundImage=["url(",az.skin.getSkinElement("display",c+"Over").src,")"].join("")};R.display_icon.onmouseout=function(d){R.display_icon.style.backgroundImage=["url(",az.skin.getSkinElement("display",c).src,")"].join("")}}else{R.display_icon.onmouseover=null;R.display_icon.onmouseout=null}}function af(){if(a.icons.toString()=="true"){_hide(R.display_icon);_hide(R.display_iconBackground);U()}}function aF(){if(!aA&&a.icons.toString()=="true"){_show(R.display_icon);_show(R.display_iconBackground);ab()}}function at(c){ag=true;af();R.display_text.innerHTML=c.error;_show(R.display_text);R.display_text.style.top=((am-R.display_text.getBoundingClientRect().height)/2)+"px"}function ac(){R.display_image.style.display="none"}function ar(d){if((d.type==b.api.events.JWPLAYER_PLAYER_STATE||d.type==b.api.events.JWPLAYER_PLAYLIST_ITEM)&&ag){ag=false;_hide(R.display_text)}var c=az.jwGetState();if(c==an){return}an=c;if(ah>=0){clearTimeout(ah)}if(W||az.jwGetState()==b.api.events.state.PLAYING||az.jwGetState()==b.api.events.state.PAUSED){ap(az.jwGetState())}else{ah=setTimeout(aw(az.jwGetState()),500)}}function aw(c){return(function(){ap(c)})}function ap(c){if(_utils.exists(Y)){clearInterval(Y);Y=null;_utils.animations.rotate(R.display_icon,0)}switch(c){case b.api.events.state.BUFFERING:if(_utils.isIOS()){ac();af()}else{if(az.jwGetPlaylist()[az.jwGetItem()].provider=="sound"){al()}ao=0;Y=setInterval(function(){ao+=X;_utils.animations.rotate(R.display_icon,ao%360)},aq);S("bufferIcon");W=true}break;case b.api.events.state.PAUSED:if(!_utils.isIOS()){if(az.jwGetPlaylist()[az.jwGetItem()].provider!="sound"){_css(R.display_image,{background:"transparent no-repeat center center"})}S("playIcon");W=true}break;case b.api.events.state.IDLE:if(az.jwGetPlaylist()[az.jwGetItem()]&&az.jwGetPlaylist()[az.jwGetItem()].image){al()}else{ac()}S("playIcon");W=true;break;default:if(az.jwGetPlaylist()[az.jwGetItem()]&&az.jwGetPlaylist()[az.jwGetItem()].provider=="sound"){if(_utils.isIOS()){ac();W=false}else{al()}}else{ac();W=false}if(az.jwGetMute()&&a.showmute){S("muteIcon")}else{af()}break}ah=-1}function al(){if(az.jwGetPlaylist()[az.jwGetItem()]&&az.jwGetPlaylist()[az.jwGetItem()].image){_css(R.display_image,{display:"block"});R.display_image.src=_utils.getAbsolutePath(az.jwGetPlaylist()[az.jwGetItem()].image)}}function aj(c){return function(){if(!au){return}if(!aA&&aD!=c){aD=c;Z.sendEvent(c,{component:"display",boundingRect:_utils.getDimensions(R.display_iconBackground)})}}}var ab=aj(b.api.events.JWPLAYER_COMPONENT_SHOW);var U=aj(b.api.events.JWPLAYER_COMPONENT_HIDE);return this}})(jwplayer);(function(b){_css=b.utils.css;b.html5.dock=function(D,y){function C(){return{align:b.html5.view.positions.RIGHT}}var I=b.utils.extend({},C(),y);if(I.align=="FALSE"){return}var M={};var A=[];var L;var x;var O=false;var z=false;var N={x:0,y:0,width:0,height:0};var B;var J=new b.html5.eventdispatcher();_utils.extend(this,J);var G=document.createElement("div");G.id=D.id+"_jwplayer_dock";D.jwAddEventListener(b.api.events.JWPLAYER_PLAYER_STATE,H);this.getDisplayElement=function(){return G};this.setButton=function(d,c,f,e){if(!c&&M[d]){b.utils.arrays.remove(A,d);G.removeChild(M[d].div);delete M[d]}else{if(c){if(!M[d]){M[d]={}}M[d].handler=c;M[d].outGraphic=f;M[d].overGraphic=e;if(!M[d].div){A.push(d);M[d].div=document.createElement("div");M[d].div.style.position="relative";G.appendChild(M[d].div);M[d].div.appendChild(document.createElement("img"));M[d].div.childNodes[0].style.position="absolute";M[d].div.childNodes[0].style.left=0;M[d].div.childNodes[0].style.top=0;M[d].div.childNodes[0].style.zIndex=10;M[d].div.childNodes[0].style.cursor="pointer";M[d].div.appendChild(document.createElement("img"));M[d].div.childNodes[1].style.position="absolute";M[d].div.childNodes[1].style.left=0;M[d].div.childNodes[1].style.top=0;if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}M[d].div.childNodes[1].style.zIndex=9;M[d].div.childNodes[1].style.cursor="pointer";M[d].div.onmouseover=function(){if(M[d].overGraphic){M[d].div.childNodes[0].src=M[d].overGraphic}if(D.skin.getSkinElement("dock","buttonOver")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","buttonOver").src}};M[d].div.onmouseout=function(){if(M[d].outGraphic){M[d].div.childNodes[0].src=M[d].outGraphic}if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}};if(M[d].overGraphic){M[d].div.childNodes[0].src=M[d].overGraphic}if(M[d].outGraphic){M[d].div.childNodes[0].src=M[d].outGraphic}if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}}if(c){M[d].div.onclick=function(g){g.preventDefault();b(D.id).callback(d);if(M[d].overGraphic){M[d].div.childNodes[0].src=M[d].overGraphic}if(D.skin.getSkinElement("dock","button")){M[d].div.childNodes[1].src=D.skin.getSkinElement("dock","button").src}}}}}K(L,x)};function K(l,k){if(A.length>0){var j=10;var m=j;var p=-1;var o=D.skin.getSkinElement("dock","button").height;var q=D.skin.getSkinElement("dock","button").width;var d=l-q-j;var n,e;if(I.align==b.html5.view.positions.LEFT){p=1;d=j}for(var g=0;g<A.length;g++){var h=Math.floor(m/k);if((m+o+j)>((h+1)*k)){m=((h+1)*k)+j;h=Math.floor(m/k)}var f=M[A[g]].div;f.style.top=(m%k)+"px";f.style.left=(d+(D.skin.getSkinElement("dock","button").width+j)*h*p)+"px";var c={x:b.utils.parseDimension(f.style.left),y:b.utils.parseDimension(f.style.top),width:q,height:o};if(!n||(c.x<=n.x&&c.y<=n.y)){n=c}if(!e||(c.x>=e.x&&c.y>=e.y)){e=c}m+=D.skin.getSkinElement("dock","button").height+j}N={x:n.x,y:n.y,width:e.x-n.x+e.width,height:n.y-e.y+e.height}}if(z!=D.jwGetFullscreen()||L!=l||x!=k){L=l;x=k;z=D.jwGetFullscreen();B=undefined;setTimeout(F,1)}}function Q(c){return function(){if(!O&&B!=c&&A.length>0){B=c;J.sendEvent(c,{component:"dock",boundingRect:N})}}}function H(c){if(b.utils.isIOS()){switch(c.newstate){case b.api.events.state.IDLE:E();break;default:P();break}}}var F=Q(b.api.events.JWPLAYER_COMPONENT_SHOW);var a=Q(b.api.events.JWPLAYER_COMPONENT_HIDE);this.resize=K;var E=function(){_css(G,{display:"block"});if(O){O=false;F()}};var P=function(){_css(G,{display:"none"});if(!O){a();O=true}};this.hide=P;this.show=E;return this}})(jwplayer);(function(b){b.html5.eventdispatcher=function(e,a){var f=new b.events.eventdispatcher(a);b.utils.extend(this,f);this.sendEvent=function(d,c){if(!b.utils.exists(c)){c={}}b.utils.extend(c,{id:e,version:b.version,type:d});f.sendEvent(d,c)}}})(jwplayer);(function(d){var c={prefix:"",file:"",link:"",margin:8,out:0.5,over:1,timeout:5,hide:true,position:"bottom-left"};_css=d.utils.css;d.html5.logo=function(A,w){var x=A;var a;var J;var b;var F=false;G();function G(){z();K();C()}function z(){if(c.prefix){var e=A.version.split(/\W/).splice(0,2).join("/");if(c.prefix.indexOf(e)<0){c.prefix+=e+"/"}}if(w.position==d.html5.view.positions.OVER){w.position=c.position}J=d.utils.extend({},c,w)}function K(){b=document.createElement("img");b.id=x.id+"_jwplayer_logo";b.style.display="none";b.onload=function(e){_css(b,D());x.jwAddEventListener(d.api.events.JWPLAYER_PLAYER_STATE,E);y()};if(!J.file){return}if(J.file.indexOf("http://")===0){b.src=J.file}else{b.src=J.prefix+J.file}}if(!J.file){return}this.resize=function(e,f){};this.getDisplayElement=function(){return b};function C(){if(J.link){b.onmouseover=H;b.onmouseout=y;b.onclick=v}else{this.mouseEnabled=false}}function v(e){if(typeof e!="undefined"){e.stopPropagation()}if(!F){return}x.jwPause();x.jwSetFullscreen(false);if(J.link){window.open(J.link,"_top")}return}function y(e){if(J.link&&F){b.style.opacity=J.out}return}function H(e){if(J.hide.toString()=="true"&&F){b.style.opacity=J.over}return}function D(){var e={textDecoration:"none",position:"absolute",cursor:"pointer"};e.display=(J.hide.toString()=="true")?"none":"block";var f=J.position.toLowerCase().split("-");for(var g in f){e[f[g]]=J.margin}return e}function B(){if(J.hide.toString()=="true"){b.style.display="block";b.style.opacity=0;d.utils.fadeTo(b,J.out,0.1,parseFloat(b.style.opacity));a=setTimeout(function(){I()},J.timeout*1000)}F=true}function I(){F=false;if(J.hide.toString()=="true"){d.utils.fadeTo(b,0,0.1,parseFloat(b.style.opacity))}}function E(e){if(e.newstate==d.api.events.state.BUFFERING){clearTimeout(a);B()}}return this}})(jwplayer);(function(g){var k={ended:g.api.events.state.IDLE,playing:g.api.events.state.PLAYING,pause:g.api.events.state.PAUSED,buffering:g.api.events.state.BUFFERING};var h=g.utils;var f=h.css;var j=h.isIOS();g.html5.mediavideo=function(ac,P){var R={abort:X,canplay:aa,canplaythrough:aa,durationchange:I,emptied:X,ended:aa,error:L,loadeddata:I,loadedmetadata:I,loadstart:aa,pause:aa,play:X,playing:aa,progress:J,ratechange:X,seeked:aa,seeking:aa,stalled:aa,suspend:aa,timeupdate:O,volumechange:X,waiting:aa,canshowcurrentframe:X,dataunavailable:X,empty:X,load:a,loadedfirstframe:X};var ab=new g.html5.eventdispatcher();h.extend(this,ab);var b=ac,Z=P,Y,S,U,c,ae,e=false,Q,V,T;W();this.load=function(n,m){if(typeof m=="undefined"){m=true}c=n;h.empty(Y);T=0;if(n.levels&&n.levels.length>0){if(n.levels.length==1){Y.src=n.levels[0].file}else{if(Y.src){Y.removeAttribute("src")}for(var o=0;o<n.levels.length;o++){var l=Y.ownerDocument.createElement("source");l.src=n.levels[o].file;Y.appendChild(l);T++}}}else{Y.src=n.file}if(j){if(n.image){Y.poster=n.image}Y.controls="controls";Y.style.display="block"}Q=V=U=false;b.buffer=0;if(!h.exists(n.start)){n.start=0}b.duration=n.duration;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_LOADED);if((!j&&n.levels.length==1)||!e){Y.load()}e=false;if(m){N(g.api.events.state.BUFFERING);ab.sendEvent(g.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});this.play()}};this.play=function(){if(S!=g.api.events.state.PLAYING){M();if(V){N(g.api.events.state.PLAYING)}else{N(g.api.events.state.BUFFERING)}Y.play()}};this.pause=function(){Y.pause();N(g.api.events.state.PAUSED)};this.seek=function(l){if(!(b.duration<=0||isNaN(b.duration))&&!(b.position<=0||isNaN(b.position))){Y.currentTime=l;Y.play()}};_stop=this.stop=function(n){if(!h.exists(n)){n=true}ad();if(n){Y.style.display="none";V=false;var m=navigator.userAgent;if(m.match(/chrome/i)){Y.src=undefined}else{if(m.match(/safari/i)){Y.removeAttribute("src")}else{Y.src=""}}Y.removeAttribute("controls");Y.removeAttribute("poster");h.empty(Y);Y.load();e=true;if(Y.webkitSupportsFullscreen){try{Y.webkitExitFullscreen()}catch(l){}}}N(g.api.events.state.IDLE)};this.fullscreen=function(l){if(l===true){this.resize("100%","100%")}else{this.resize(b.config.width,b.config.height)}};this.resize=function(l,m){if(false){f(Z,{width:l,height:m})}ab.sendEvent(g.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:b.fullscreen,width:l,hieght:m})};this.volume=function(l){if(!j){Y.volume=l/100;b.volume=l;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(l)})}};this.mute=function(l){if(!j){Y.muted=l;b.mute=l;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_MUTE,{mute:l})}};this.getDisplayElement=function(){return Y};this.hasChrome=function(){return false};function W(){Y=document.createElement("video");S=g.api.events.state.IDLE;for(var l in R){Y.addEventListener(l,function(m){if(h.exists(m.target.parentNode)){R[m.type](m)}},true)}Y.setAttribute("x-webkit-airplay","allow");if(Z.parentNode){Z.parentNode.replaceChild(Y,Z)}if(!Y.id){Y.id=Z.id}}function N(m){if(m==g.api.events.state.PAUSED&&S==g.api.events.state.IDLE){return}if(S!=m){var l=S;b.state=S=m;ab.sendEvent(g.api.events.JWPLAYER_PLAYER_STATE,{oldstate:l,newstate:m})}}function X(l){}function J(l){var m;if(h.exists(l)&&l.lengthComputable&&l.total){m=l.loaded/l.total*100}else{if(h.exists(Y.buffered)&&(Y.buffered.length>0)){var n=Y.buffered.length-1;if(n>=0){m=Y.buffered.end(n)/Y.duration*100}}}if(V===false&&S==g.api.events.state.BUFFERING){ab.sendEvent(g.api.events.JWPLAYER_MEDIA_BUFFER_FULL);V=true}if(!Q){if(m==100){Q=true}if(h.exists(m)&&(m>b.buffer)){b.buffer=Math.round(m);ab.sendEvent(g.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(m)})}}}function O(l){if(h.exists(l)&&h.exists(l.target)){if(!isNaN(l.target.duration)&&(isNaN(b.duration)||b.duration<1)){if(l.target.duration==Infinity){b.duration=0}else{b.duration=Math.round(l.target.duration*10)/10}}if(!U&&Y.readyState>0){Y.style.display="block";N(g.api.events.state.PLAYING)}if(S==g.api.events.state.PLAYING){if(!U&&Y.readyState>0){U=true;try{if(Y.currentTime<c.start){Y.currentTime=c.start}}catch(m){}Y.volume=b.volume/100;Y.muted=b.mute}b.position=b.duration>0?(Math.round(l.target.currentTime*10)/10):0;ab.sendEvent(g.api.events.JWPLAYER_MEDIA_TIME,{position:b.position,duration:b.duration});if(b.position>=b.duration&&(b.position>0||b.duration>0)){d()}}}J(l)}function a(l){}function aa(l){if(k[l.type]){if(l.type=="ended"){d()}else{N(k[l.type])}}}function I(m){var l={height:m.target.videoHeight,width:m.target.videoWidth,duration:Math.round(m.target.duration*10)/10};if((b.duration===0||isNaN(b.duration))&&m.target.duration!=Infinity){b.duration=Math.round(m.target.duration*10)/10}ab.sendEvent(g.api.events.JWPLAYER_MEDIA_META,{metadata:l})}function L(l){if(S==g.api.events.state.IDLE){return}var m="There was an error: ";if((l.target.error&&l.target.tagName.toLowerCase()=="video")||l.target.parentNode.error&&l.target.parentNode.tagName.toLowerCase()=="video"){var n=!h.exists(l.target.error)?l.target.parentNode.error:l.target.error;switch(n.code){case n.MEDIA_ERR_ABORTED:m="You aborted the video playback: ";break;case n.MEDIA_ERR_NETWORK:m="A network error caused the video download to fail part-way: ";break;case n.MEDIA_ERR_DECODE:m="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case n.MEDIA_ERR_SRC_NOT_SUPPORTED:m="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:m="An unknown error occurred: ";break}}else{if(l.target.tagName.toLowerCase()=="source"){T--;if(T>0){return}m="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{h.log("An unknown error occurred.  Continuing...");return}}_stop(false);m+=K();_error=true;ab.sendEvent(g.api.events.JWPLAYER_ERROR,{error:m});return}function K(){var m="";for(var n in c.levels){var o=c.levels[n];var l=Z.ownerDocument.createElement("source");m+=g.utils.getAbsolutePath(o.file);if(n<(c.levels.length-1)){m+=", "}}return m}function M(){if(!h.exists(ae)){ae=setInterval(function(){J()},100)}}function ad(){clearInterval(ae);ae=null}function d(){if(S!=g.api.events.state.IDLE){_stop(false);ab.sendEvent(g.api.events.JWPLAYER_MEDIA_COMPLETE)}}}})(jwplayer);(function(e){var f={ended:e.api.events.state.IDLE,playing:e.api.events.state.PLAYING,pause:e.api.events.state.PAUSED,buffering:e.api.events.state.BUFFERING};var d=e.utils.css;e.html5.mediayoutube=function(r,v){var u=new e.html5.eventdispatcher();e.utils.extend(this,u);var p=r;var s=document.getElementById(v.id);var t=e.api.events.state.IDLE;var b,c;function q(h){if(t!=h){var g=t;p.state=h;t=h;u.sendEvent(e.api.events.JWPLAYER_PLAYER_STATE,{oldstate:g,newstate:h})}}this.getDisplayElement=function(){return s};this.play=function(){if(t==e.api.events.state.IDLE){u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100});u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER_FULL);q(e.api.events.state.PLAYING)}else{if(t==e.api.events.state.PAUSED){q(e.api.events.state.PLAYING)}}};this.pause=function(){q(e.api.events.state.PAUSED)};this.seek=function(g){};this.stop=function(g){if(!_utils.exists(g)){g=true}p.position=0;q(e.api.events.state.IDLE);if(g){d(s,{display:"none"})}};this.volume=function(g){p.volume=g;u.sendEvent(e.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(g)})};this.mute=function(g){s.muted=g;p.mute=g;u.sendEvent(e.api.events.JWPLAYER_MEDIA_MUTE,{mute:g})};this.resize=function(g,h){if(g*h>0&&b){b.width=c.width=g;b.height=c.height=h}u.sendEvent(e.api.events.JWPLAYER_MEDIA_RESIZE,{fullscreen:p.fullscreen,width:g,height:h})};this.fullscreen=function(g){if(g===true){this.resize("100%","100%")}else{this.resize(p.config.width,p.config.height)}};this.load=function(g){a(g);d(b,{display:"block"});q(e.api.events.state.BUFFERING);u.sendEvent(e.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0});u.sendEvent(e.api.events.JWPLAYER_MEDIA_LOADED);this.play()};this.hasChrome=function(){return(t!=e.api.events.state.IDLE)};function a(g){var k=g.levels[0].file;k=["http://www.youtube.com/v/",w(k),"&amp;hl=en_US&amp;fs=1&autoplay=1"].join("");b=document.createElement("object");b.id=s.id;b.style.position="absolute";var h={movie:k,allowfullscreen:"true",allowscriptaccess:"always"};for(var n in h){var j=document.createElement("param");j.name=n;j.value=h[n];b.appendChild(j)}c=document.createElement("embed");b.appendChild(c);var m={src:k,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:b.width,height:b.height};for(var l in m){c.setAttribute(l,m[l])}b.appendChild(c);b.style.zIndex=2147483000;if(s!=b&&s.parentNode){s.parentNode.replaceChild(b,s)}s=b}function w(j){var k=j.split(/\?|\#\!/);var g="";for(var h=0;h<k.length;h++){if(k[h].substr(0,2)=="v="){g=k[h].substr(2)}}if(g==""){if(j.indexOf("/v/")>=0){g=j.substr(j.indexOf("/v/")+3)}else{if(j.indexOf("youtu.be")>=0){g=j.substr(j.indexOf("youtu.be/")+9)}else{g=j}}}if(g.indexOf("?")>-1){g=g.substr(0,g.indexOf("?"))}if(g.indexOf("&")>-1){g=g.substr(0,g.indexOf("&"))}return g}this.embed=c;return this}})(jwplayer);(function(jwplayer){var _configurableStateVariables=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"];jwplayer.html5.model=function(api,container,options){var _api=api;var _container=container;var _model={id:_container.id,playlist:[],state:jwplayer.api.events.state.IDLE,position:0,buffer:0,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:90,mute:false,fullscreen:false,repeat:"",stretching:jwplayer.utils.stretching.UNIFORM,autostart:false,debug:undefined,screencolor:undefined}};var _media;var _eventDispatcher=new jwplayer.html5.eventdispatcher();var _components=["display","logo","controlbar","playlist","dock"];jwplayer.utils.extend(_model,_eventDispatcher);for(var option in options){if(typeof options[option]=="string"){var type=/color$/.test(option)?"color":null;options[option]=jwplayer.utils.typechecker(options[option],type)}var config=_model.config;var path=option.split(".");for(var edge in path){if(edge==path.length-1){config[path[edge]]=options[option]}else{if(!jwplayer.utils.exists(config[path[edge]])){config[path[edge]]={}}config=config[path[edge]]}}}for(var index in _configurableStateVariables){var configurableStateVariable=_configurableStateVariables[index];_model[configurableStateVariable]=_model.config[configurableStateVariable]}var pluginorder=_components.concat([]);if(jwplayer.utils.exists(_model.plugins)){if(typeof _model.plugins=="string"){var userplugins=_model.plugins.split(",");for(var userplugin in userplugins){if(typeof userplugins[userplugin]=="string"){pluginorder.push(userplugins[userplugin].replace(/^\s+|\s+$/g,""))}}}}if(jwplayer.utils.isIOS()){pluginorder=["display","logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}else{if(_model.config.chromeless){pluginorder=["logo","dock","playlist"];if(!jwplayer.utils.exists(_model.config.repeat)){_model.config.repeat="list"}}}_model.plugins={order:pluginorder,config:{},object:{}};if(typeof _model.config.components!="undefined"){for(var component in _model.config.components){_model.plugins.config[component]=_model.config.components[component]}}for(var pluginIndex in _model.plugins.order){var pluginName=_model.plugins.order[pluginIndex];var pluginConfig=!jwplayer.utils.exists(_model.plugins.config[pluginName])?{}:_model.plugins.config[pluginName];_model.plugins.config[pluginName]=!jwplayer.utils.exists(_model.plugins.config[pluginName])?pluginConfig:jwplayer.utils.extend(_model.plugins.config[pluginName],pluginConfig);if(!jwplayer.utils.exists(_model.plugins.config[pluginName].position)){if(pluginName=="playlist"){_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.NONE}else{_model.plugins.config[pluginName].position=jwplayer.html5.view.positions.OVER}}else{_model.plugins.config[pluginName].position=_model.plugins.config[pluginName].position.toString().toUpperCase()}}if(typeof _model.plugins.config.dock!="undefined"){if(typeof _model.plugins.config.dock!="object"){var position=_model.plugins.config.dock.toString().toUpperCase();_model.plugins.config.dock={position:position}}if(typeof _model.plugins.config.dock.position!="undefined"){_model.plugins.config.dock.align=_model.plugins.config.dock.position;_model.plugins.config.dock.position=jwplayer.html5.view.positions.OVER}}function _loadExternal(playlistfile){var loader=new jwplayer.html5.playlistloader();loader.addEventListener(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,function(evt){_model.playlist=new jwplayer.html5.playlist(evt);_loadComplete(true)});loader.addEventListener(jwplayer.api.events.JWPLAYER_ERROR,function(evt){_model.playlist=new jwplayer.html5.playlist({playlist:[]});_loadComplete(false)});loader.load(playlistfile)}function _loadComplete(){if(_model.config.shuffle){_model.item=_getShuffleItem()}else{if(_model.config.item>=_model.playlist.length){_model.config.item=_model.playlist.length-1}else{if(_model.config.item<0){_model.config.item=0}}_model.item=_model.config.item}_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:_model.playlist});_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_PLAYLIST_ITEM,{index:_model.item})}_model.loadPlaylist=function(arg){var input;if(typeof arg=="string"){if(arg.indexOf("[")==0||arg.indexOf("{")=="0"){try{input=eval(arg)}catch(err){input=arg}}else{input=arg}}else{input=arg}var config;switch(jwplayer.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:_loadExternal(input);return;break}_model.playlist=new jwplayer.html5.playlist(config);if(jwplayer.utils.extension(_model.playlist[0].file)=="xml"){_loadExternal(_model.playlist[0].file)}else{_loadComplete()}};function _getShuffleItem(){var result=null;if(_model.playlist.length>1){while(!jwplayer.utils.exists(result)){result=Math.floor(Math.random()*_model.playlist.length);if(result==_model.item){result=null}}}else{result=0}return result}function forward(evt){if(evt.type==jwplayer.api.events.JWPLAYER_MEDIA_LOADED){_container=_media.getDisplayElement()}_eventDispatcher.sendEvent(evt.type,evt)}var _mediaProviders={};_model.setActiveMediaProvider=function(playlistItem){if(playlistItem.provider=="audio"){playlistItem.provider="sound"}var provider=playlistItem.provider;var current=_media?_media.getDisplayElement():null;if(provider=="sound"||provider=="http"||provider==""){provider="video"}if(!jwplayer.utils.exists(_mediaProviders[provider])){switch(provider){case"video":_media=new jwplayer.html5.mediavideo(_model,current?current:_container);break;case"youtube":_media=new jwplayer.html5.mediayoutube(_model,current?current:_container);break}if(!jwplayer.utils.exists(_media)){return false}_media.addGlobalListener(forward);_mediaProviders[provider]=_media}else{if(_media!=_mediaProviders[provider]){if(_media){_media.stop()}_media=_mediaProviders[provider]}}return true};_model.getMedia=function(){return _media};_model.seek=function(pos){_eventDispatcher.sendEvent(jwplayer.api.events.JWPLAYER_MEDIA_SEEK,{position:_model.position,offset:pos});return _media.seek(pos)};_model.setupPlugins=function(){if(!jwplayer.utils.exists(_model.plugins)||!jwplayer.utils.exists(_model.plugins.order)||_model.plugins.order.length==0){jwplayer.utils.log("No plugins to set up");return _model}for(var i=0;i<_model.plugins.order.length;i++){try{var pluginName=_model.plugins.order[i];if(jwplayer.utils.exists(jwplayer.html5[pluginName])){if(pluginName=="playlist"){_model.plugins.object[pluginName]=new jwplayer.html5.playlistcomponent(_api,_model.plugins.config[pluginName])}else{_model.plugins.object[pluginName]=new jwplayer.html5[pluginName](_api,_model.plugins.config[pluginName])}}else{_model.plugins.order.splice(plugin,plugin+1)}if(typeof _model.plugins.object[pluginName].addGlobalListener=="function"){_model.plugins.object[pluginName].addGlobalListener(forward)}}catch(err){jwplayer.utils.log("Could not setup "+pluginName)}}};return _model}})(jwplayer);(function(b){b.html5.playlist=function(a){var e=[];if(a.playlist&&a.playlist instanceof Array&&a.playlist.length>0){for(var f in a.playlist){if(!isNaN(parseInt(f))){e.push(new b.html5.playlistitem(a.playlist[f]))}}}else{e.push(new b.html5.playlistitem(a))}return e}})(jwplayer);(function(e){var f={size:180,position:e.html5.view.positions.NONE,itemheight:60,thumbs:true,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""};var d={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=e.utils;_css=_utils.css;_hide=function(a){_css(a,{display:"none"})};_show=function(a){_css(a,{display:"block"})};e.html5.playlistcomponent=function(J,K){var D=J;var X=e.utils.extend({},f,D.skin.getComponentSettings("playlist"),K);if(X.position==e.html5.view.positions.NONE||typeof e.html5.view.positions[X.position]=="undefined"){return}var c;var R;var I;var Y;var V;var W;var S=-1;var U={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined};this.getDisplayElement=function(){return c};this.resize=function(g,j){R=g;I=j;if(D.jwGetFullscreen()){_hide(c)}else{var h={display:"block",width:R,height:I};_css(c,h)}};this.show=function(){_show(c)};this.hide=function(){_hide(c)};function T(){c=document.createElement("div");c.id=D.id+"_jwplayer_playlistcomponent";switch(X.position){case e.html5.view.positions.RIGHT:case e.html5.view.positions.LEFT:c.style.width=X.size+"px";break;case e.html5.view.positions.TOP:case e.html5.view.positions.BOTTOM:c.style.height=X.size+"px";break}M();if(U.item){X.itemheight=U.item.height}c.style.backgroundColor="#C6C6C6";D.jwAddEventListener(e.api.events.JWPLAYER_PLAYLIST_LOADED,H);D.jwAddEventListener(e.api.events.JWPLAYER_PLAYLIST_ITEM,F);D.jwAddEventListener(e.api.events.JWPLAYER_PLAYER_STATE,Q)}function N(){var g=document.createElement("ul");_css(g,{width:c.style.width,minWidth:c.style.width,height:c.style.height,backgroundColor:X.backgroundcolor,backgroundImage:U.background?"url("+U.background.src+")":"",color:X.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:d[X.font]?d[X.font]:d._sans,fontSize:(X.fontsize?X.fontsize:11)+"px",fontStyle:X.fontstyle,fontWeight:X.fontweight,overflowY:"auto"});return g}function b(g){return function(){var k=W.getElementsByClassName("item")[g];var j=X.fontcolor;var h=U.item?"url("+U.item.src+")":"";if(g==D.jwGetPlaylistIndex()){if(X.activecolor!==""){j=X.activecolor}if(U.itemActive){h="url("+U.itemActive.src+")"}}_css(k,{color:X.overcolor!==""?X.overcolor:j,backgroundImage:U.itemOver?"url("+U.itemOver.src+")":h})}}function O(g){return function(){var k=W.getElementsByClassName("item")[g];var j=X.fontcolor;var h=U.item?"url("+U.item.src+")":"";if(g==D.jwGetPlaylistIndex()){if(X.activecolor!==""){j=X.activecolor}if(U.itemActive){h="url("+U.itemActive.src+")"}}_css(k,{color:j,backgroundImage:h})}}function L(p){var h=Y[p];var j=document.createElement("li");j.className="item";_css(j,{height:X.itemheight,display:"block",cursor:"pointer",backgroundImage:U.item?"url("+U.item.src+")":"",backgroundSize:"100% "+X.itemheight+"px"});j.onmouseover=b(p);j.onmouseout=O(p);var o=document.createElement("div");var s=new Image();var n=0;var m=0;var l=0;if(E()&&(h.image||h["playlist.image"]||U.itemImage)){s.className="image";if(U.itemImage){n=(X.itemheight-U.itemImage.height)/2;m=U.itemImage.width;l=U.itemImage.height}else{m=X.itemheight*4/3;l=X.itemheight}_css(o,{height:l,width:m,"float":"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:n+"px",position:"relative"});_css(s,{position:"relative"});o.appendChild(s);s.onload=function(){e.utils.stretch(e.utils.stretching.FILL,s,m,l,this.naturalWidth,this.naturalHeight)};if(h["playlist.image"]){s.src=h["playlist.image"]}else{if(h.image){s.src=h.image}else{if(U.itemImage){s.src=U.itemImage.src}}}j.appendChild(o)}var t=R-m-n*2;if(I<X.itemheight*Y.length){t-=15}var g=document.createElement("div");_css(g,{position:"relative",height:"100%",overflow:"hidden"});var r=document.createElement("span");if(h.duration>0){r.className="duration";_css(r,{fontSize:(X.fontsize?X.fontsize:11)+"px",fontWeight:(X.fontweight?X.fontweight:"bold"),width:"40px",height:X.fontsize?X.fontsize+10:20,lineHeight:24,"float":"right",styleFloat:"right",cssFloat:"right"});r.innerHTML=_utils.timeFormat(h.duration);g.appendChild(r)}var k=document.createElement("span");k.className="title";_css(k,{padding:"5px 5px 0 "+(n?0:"5px"),height:X.fontsize?X.fontsize+10:20,lineHeight:X.fontsize?X.fontsize+10:20,overflow:"hidden","float":"left",styleFloat:"left",cssFloat:"left",width:((h.duration>0)?t-50:t)-10+"px",fontSize:(X.fontsize?X.fontsize:13)+"px",fontWeight:(X.fontweight?X.fontweight:"bold")});k.innerHTML=h?h.title:"";g.appendChild(k);if(h.description){var q=document.createElement("span");q.className="description";_css(q,{display:"block","float":"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:k.style.paddingLeft,paddingRight:k.style.paddingRight,lineHeight:(X.fontsize?X.fontsize+4:16)+"px",overflow:"hidden",position:"relative"});q.innerHTML=h.description;g.appendChild(q)}j.appendChild(g);return j}function H(j){c.innerHTML="";Y=D.jwGetPlaylist();if(!Y){return}items=[];W=N();for(var h=0;h<Y.length;h++){var k=L(h);k.onclick=a(h);W.appendChild(k);items.push(k)}S=D.jwGetPlaylistIndex();O(S)();c.appendChild(W);if(_utils.isIOS()&&window.iScroll){W.style.height=X.itemheight*Y.length+"px";var g=new iScroll(c.id)}}function a(g){return function(){D.jwPlaylistItem(g);D.jwPlay(true)}}function P(){W.scrollTop=D.jwGetPlaylistIndex()*X.itemheight}function E(){return X.thumbs.toString().toLowerCase()=="true"}function F(g){if(S>=0){O(S)();S=g.index}O(g.index)();P()}function Q(){if(X.position==e.html5.view.positions.OVER){switch(D.jwGetState()){case e.api.events.state.IDLE:_show(c);break;default:_hide(c);break}}}function M(){for(var g in U){U[g]=G(g)}}function G(g){return D.skin.getSkinElement("playlist",g)}T();return this}})(jwplayer);(function(c){c.html5.playlistitem=function(b){var a={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]};var f=c.utils.extend({},a,b);if(f.type){f.provider=f.type;delete f.type}if(f.levels.length===0){f.levels[0]=new c.html5.playlistitemlevel(f)}if(!f.provider){f.provider=d(f.levels[0])}else{f.provider=f.provider.toLowerCase()}return f};function d(b){if(c.utils.isYouTube(b.file)){return"youtube"}else{var a=c.utils.extension(b.file);var h;if(a&&c.utils.extensionmap[a]){if(a=="m3u8"){return"video"}h=c.utils.extensionmap[a].html5}else{if(b.type){h=b.type}}if(h){var g=h.split("/")[0];if(g=="audio"){return"sound"}else{if(g=="video"){return g}}}}return""}})(jwplayer);(function(b){b.html5.playlistitemlevel=function(a){var e={file:"",streamer:"",bitrate:0,width:0};for(var f in e){if(b.utils.exists(a[f])){e[f]=a[f]}}return e}})(jwplayer);(function(b){b.html5.playlistloader=function(){var f=new b.html5.eventdispatcher();b.utils.extend(this,f);this.load=function(c){b.utils.ajax(c,e,a)};function e(d){var j=[];try{var j=b.utils.parsers.rssparser.parse(d.responseXML.firstChild);f.sendEvent(b.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new b.html5.playlist({playlist:j})})}catch(c){a("Could not parse the playlist")}}function a(c){f.sendEvent(b.api.events.JWPLAYER_ERROR,{error:c?c:"could not load playlist for whatever reason.  too bad"})}}})(jwplayer);(function(b){b.html5.skin=function(){var a={};var d=false;this.load=function(f,c){new b.html5.skinloader(f,function(e){d=true;a=e;c()},function(){new b.html5.skinloader("",function(e){d=true;a=e;c()})})};this.getSkinElement=function(h,g){if(d){try{return a[h].elements[g]}catch(c){b.utils.log("No such skin component / element: ",[h,g])}}return null};this.getComponentSettings=function(c){if(d){return a[c].settings}return null};this.getComponentLayout=function(c){if(d){return a[c].layout}return null}}})(jwplayer);(function(b){b.html5.skinloader=function(D,u,z){var v={};var G=u;var y=z;var E=true;var A;var w=D;var I=false;function x(){if(typeof w!="string"||w===""){F(b.html5.defaultSkin().xml)}else{b.utils.ajax(b.utils.getAbsolutePath(w),function(d){try{if(b.utils.exists(d.responseXML)){F(d.responseXML);return}}catch(c){B()}F(b.html5.defaultSkin().xml)},function(c){F(b.html5.defaultSkin().xml)})}}function F(m){var U=m.getElementsByTagName("component");if(U.length===0){return}for(var p=0;p<U.length;p++){var W=U[p].getAttribute("name");var X={settings:{},elements:{},layout:{}};v[W]=X;var s=U[p].getElementsByTagName("elements")[0].getElementsByTagName("element");for(var S=0;S<s.length;S++){H(s[S],W)}var k=U[p].getElementsByTagName("settings")[0];if(k&&k.childNodes.length>0){var j=k.getElementsByTagName("setting");for(var d=0;d<j.length;d++){var c=j[d].getAttribute("name");var n=j[d].getAttribute("value");var o=/color$/.test(c)?"color":null;v[W].settings[c]=b.utils.typechecker(n,o)}}var h=U[p].getElementsByTagName("layout")[0];if(h&&h.childNodes.length>0){var g=h.getElementsByTagName("group");for(var q=0;q<g.length;q++){var Y=g[q];v[W].layout[Y.getAttribute("position")]={elements:[]};for(var e=0;e<Y.attributes.length;e++){var V=Y.attributes[e];v[W].layout[Y.getAttribute("position")][V.name]=V.value}var f=Y.getElementsByTagName("*");for(var r=0;r<f.length;r++){var T=f[r];v[W].layout[Y.getAttribute("position")].elements.push({type:T.tagName});for(var R=0;R<T.attributes.length;R++){var l=T.attributes[R];v[W].layout[Y.getAttribute("position")].elements[r][l.name]=l.value}if(!b.utils.exists(v[W].layout[Y.getAttribute("position")].elements[r].name)){v[W].layout[Y.getAttribute("position")].elements[r].name=T.tagName}}}}E=false;a()}}function a(){clearInterval(A);if(!I){A=setInterval(function(){t()},100)}}function H(k,d){var e=new Image();var h=k.getAttribute("name");var f=k.getAttribute("src");var c;if(f.indexOf("data:image/png;base64,")===0){c=f}else{var g=b.utils.getAbsolutePath(w);var j=g.substr(0,g.lastIndexOf("/"));c=[j,d,f].join("/")}v[d].elements[h]={height:0,width:0,src:"",ready:false,image:e};e.onload=function(l){C(e,h,d)};e.onerror=function(l){I=true;a();y()};e.src=c}function B(){for(var f in v){var d=v[f];for(var g in d.elements){var c=d.elements[g];var e=c.image;e.onload=null;e.onerror=null;delete c.image;delete d.elements[g]}delete v[f]}}function t(){for(var d in v){if(d!="properties"){for(var c in v[d].elements){if(!v[d].elements[c].ready){return}}}}if(E===false){clearInterval(A);G(v)}}function C(e,c,d){if(v[d]&&v[d].elements[c]){v[d].elements[c].height=e.height;v[d].elements[c].width=e.width;v[d].elements[c].src=e.src;v[d].elements[c].ready=true;a()}else{b.utils.log("Loaded an image for a missing element: "+d+"."+c)}}x()}})(jwplayer);(function(b){b.html5.api=function(x,a){var o={};var u=document.createElement("div");x.parentNode.replaceChild(u,x);u.id=x.id;o.version=b.version;o.id=u.id;var p=new b.html5.model(o,u,a);var r=new b.html5.view(o,u,p);var q=new b.html5.controller(o,u,p,r);o.skin=new b.html5.skin();o.jwPlay=function(c){if(typeof c=="undefined"){v()}else{if(c.toString().toLowerCase()=="true"){q.play()}else{q.pause()}}};o.jwPause=function(c){if(typeof c=="undefined"){v()}else{if(c.toString().toLowerCase()=="true"){q.pause()}else{q.play()}}};function v(){if(p.state==b.api.events.state.PLAYING||p.state==b.api.events.state.BUFFERING){q.pause()}else{q.play()}}o.jwStop=q.stop;o.jwSeek=q.seek;o.jwPlaylistItem=q.item;o.jwPlaylistNext=q.next;o.jwPlaylistPrev=q.prev;o.jwResize=q.resize;o.jwLoad=q.load;function s(c){return function(){return p[c]}}function w(e,c,d){return function(){var f=p.plugins.object[e];if(f&&f[c]&&typeof f[c]=="function"){f[c].apply(f,d)}}}o.jwGetItem=s("item");o.jwGetPosition=s("position");o.jwGetDuration=s("duration");o.jwGetBuffer=s("buffer");o.jwGetWidth=s("width");o.jwGetHeight=s("height");o.jwGetFullscreen=s("fullscreen");o.jwSetFullscreen=q.setFullscreen;o.jwGetVolume=s("volume");o.jwSetVolume=q.setVolume;o.jwGetMute=s("mute");o.jwSetMute=q.setMute;o.jwGetStretching=s("stretching");o.jwGetState=s("state");o.jwGetVersion=function(){return o.version};o.jwGetPlaylist=function(){return p.playlist};o.jwGetPlaylistIndex=o.jwGetItem;o.jwAddEventListener=q.addEventListener;o.jwRemoveEventListener=q.removeEventListener;o.jwSendEvent=q.sendEvent;o.jwDockSetButton=function(c,f,e,d){if(p.plugins.object.dock&&p.plugins.object.dock.setButton){p.plugins.object.dock.setButton(c,f,e,d)}};o.jwControlbarShow=w("controlbar","show");o.jwControlbarHide=w("controlbar","hide");o.jwDockShow=w("dock","show");o.jwDockHide=w("dock","hide");o.jwDisplayShow=w("display","show");o.jwDisplayHide=w("display","hide");o.jwGetLevel=function(){};o.jwGetBandwidth=function(){};o.jwGetLockState=function(){};o.jwLock=function(){};o.jwUnlock=function(){};function y(){if(p.config.playlistfile){p.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t);p.loadPlaylist(p.config.playlistfile)}else{if(typeof p.config.playlist=="string"){p.addEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t);p.loadPlaylist(p.config.playlist)}else{p.loadPlaylist(p.config);setTimeout(t,25)}}}function t(c){p.removeEventListener(b.api.events.JWPLAYER_PLAYLIST_LOADED,t);p.setupPlugins();r.setup();var c={id:o.id,version:o.version};q.playerReady(c)}if(p.config.chromeless&&!b.utils.isIOS()){y()}else{o.skin.load(p.config.skin,y)}return o}})(jwplayer)}oe24Navigation={boundLeft:null,boundRight:null,init:function(){this.to=null;this.main=$("#mainnavi");this.sub=$("#subnavi");this.updateBoundings();this.markNavigationByUrl();this.sub.bind("mouseover",function(){oe24Navigation.clearTo()});this.main.find("a").bind("mouseover",function(){oe24Navigation.showNavigation(($(this).parent().prevAll().length));oe24Navigation.clearTo()});this.sub.bind("mouseout",function(){oe24Navigation.startTo()});this.main.bind("mouseout",function(){oe24Navigation.startTo()});$(window).bind("scroll",function(){oe24Navigation.scroll()});this.highlightTopNavigation();$("#movingHeader").html($("#head .main").html())},updateBoundings:function(){var b=this.sub;var c=this.boundRight?this.boundRight:780;var a=this.boundLeft?this.boundLeft:5;this.main.find("a").each(function(d){var f=b.find("div:eq("+d+")");f.css("display","inline");var h=f.width();f.css("display","block");f.hide();var j=$(this).offset().left+($(this).outerWidth()/2);var e=parseInt(j-(h/2));if(e<a){e=a}var g=e+h;if(g>c){f.css({left:"0px",position:"absolute",display:"block",width:c+"px","text-align":"right"})}else{f.css("left",e+"px");f.css("position","relative")}})},startTo:function(){this.clearTo();this.to=setTimeout(function(){oe24Navigation.markNavigationByUrl()},3000)},clearTo:function(){if(this.to){clearTimeout(this.to)}},markNavigationByUrl:function(){var c=window.location.href;var b=c;var e=false;var f=false;var a=false;var d=-1;this.main.find("a").each(function(){var k=oe24Navigation.getSubDivForMainLink($(this));var h=k.prevAll().length;var g=this;var j=$(this).attr("href");if(oe24Navigation.compareUrls(c,j)){e=true;a=h}k.find("a").removeClass("active");k.find("a").each(function(){var m=$(this).attr("href");if(oe24Navigation.compareUrls(c,m)){var l=m.split("/");if(l.length>d){a=h;f=this}e=true}})});if(!e){oe24Navigation.showNavigation(this.main.find("a.default").parent().prevAll().length)}else{if(f){$(f).addClass("active")}oe24Navigation.showNavigation(a)}},getSubDivForMainLink:function(b){var a=(b.parent().prevAll().length);return this.sub.find("div:eq("+a+")")},compareUrls:function(b,a){if(!a.length){return false}if(b.match(a)){return true}return false},showNavigation:function(a){this.main.find("a").removeClass("active");this.main.find("a").css("background-position","right center");this.main.find("a:eq("+a+")").addClass("active");this.sub.children("div").hide();this.sub.children("div:eq("+a+")").show();this.main.find("a:eq("+(a-1)+")").css({"background-position":"-1px 0px"})},scroll:function(){this.headerTop=$("#head .navi").offset().top+$("#movingHeader").outerHeight();this.docEl=(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat")?"documentElement":"body";if(navigator.appVersion.match(/MSIE/)){this.topY=document[this.docEl].scrollTop}else{this.topY=window.pageYOffset}if(this.topY>=this.headerTop){$("#movingHeader").show();if(navigator.appVersion.match(/MSIE 6/)){$("#movingHeader").css({position:"absolute",top:this.topY+"px"})}}else{$("#movingHeader").hide()}},bindFooterDropdowns:function(){$(document).click(function(){$("#footerDiv .dropdown").addClass("hide")});$("#footerDiv .dropdown").each(function(){if($(this).find("a").length){$(this).bind("mouseleave",function(){$(document).trigger("click")});$(this).parent().bind("mouseover",function(){$(document).trigger("click");$(this).find(".dropdown").removeClass("hide")})}})},highlightTopNavigation:function(){var a=window.location.host.replace(/dev\./ig,"");$("#topNavigation .two a").each(function(){var c=$.trim($(this).attr("href")).replace(/dev\./ig,"");var b=c.replace(/(.*?)\:\/\/|\/(.*)/ig,"");var d=new RegExp(a,"i");if(d.test(c)){$(this).addClass("active");return false}})}};function oe24Tabs(b){var a=this;this.open=function(c){this.box.find(this.param.triggerSelector).removeClass("active");this.box.find(this.param.boxSelector).removeClass("active");this.box.find(this.param.triggerSelector+":eq("+c+")").addClass("active");this.box.find(this.param.boxSelector+":eq("+c+")").addClass("active")};this.param=b;this.box=$("#"+this.param.id);this.box.find(this.param.triggerSelector).each(function(c){$(this).bind(a.param.method,function(){a.open(c)})})}function moneyTicker(b){var a=this;this.param=b;this.box=$("#"+b.boxId);this.flow=this.box.find(".flow");this.w=this.flow.innerWidth();this.l=0;this.perInterval=1;this.flow.append(this.flow.html());this.ivvar;this.iv=function(){this.stopIv();this.ivvar=setInterval(function(){a.l-=a.perInterval;a.flow.css("left",a.l+"px");if(a.l<(a.w*(-1))){a.l=0}},60)};this.stopIv=function(){clearInterval(this.ivvar)};this.box.bind("mouseover",function(){a.stopIv()});this.box.bind("mouseout",function(){a.iv()});this.iv()}oe24ShowAds={_init:function(){this.googleAdSlots=[];this.debug=false},getParentContainers:function(){if(!parent){return null}var d=parent.document.getElementById("adContainers").innerHTML;var c=d.split(",");var a=[];var b=0;for(i in c){var e=c[i].split(":");if(typeof e[1]=="undefined"){continue}b=a.length;a[b]=[];a[b]["name"]=e[0];a[b]["cont"]=parent.document.getElementById(e[1])}return a},show:function(a){oe24ShowAds.swapAds()},swapAds:function(){var containers=this.getParentContainers();var arr,cont,conf;for(i in containers){arr=containers[i];cont=arr.cont;i=arr.name;if(this.debug===true){alert("try container "+i)}var tmpDiv=document.getElementById("tmpAdDiv"+i);if(!tmpDiv){if(this.debug===true){alert("not found iframe container "+i)}continue}var img=tmpDiv.getElementsByTagName("img")[0];if(img&&img.width==1&&img.height==1&&img.src.match(/default\/empty\.gif/i)){if(this.debug===true){alert("empty gif in container "+i);conf=confirm("Willst du auch den Content sehen der vom Adserver geliefert wurde?");if(conf){alert(tmpDiv.innerHTML)}}$(cont).parent().hide();$(cont).hide();var matched=$(cont).parent().attr("class").match(/callbackAdHide-([^ ]+)/i);if(matched){var func=matched[1];try{eval("parent."+func+"()")}catch(e){}}continue}var matched=$(cont).parent().attr("class").match(/callbackAdShow-([^ ]+)/i);if(matched){var func=matched[1];try{eval("parent."+func+"()")}catch(e){}}$(cont).show();$(cont).parent().show();$(tmpDiv).find("img").each(function(){if($(this).attr("src").match(/(.*)v.gif\?(.*)/ig)){$(this).remove()}});cont.innerHTML=tmpDiv.innerHTML;$(cont).show();$(cont).parent().show();cont.style.display="block";delete containers[i]}}};oe24ShowAds._init();function slideshowVoting(b){var a=this;this.gotoImage=function(d){this.currentImage=d;var c="http://app.oe24.at/polls/votePanel.do?key="+a.param.voteKey+"&template="+a.param.template+"&imgUrl="+a.param.imgUrls[this.currentImage-1];$("#votingFrame").attr("src",c)};this.showResult=function(){document.location.href=document.location.href+"&result=true"};this.currentImage=1;this.param=b}function checkVotingFrameSize(){var c=document.getElementById("vresultframe");var a=c.contentWindow.document.body;var b=a.offsetHeight+30;var d=c.offsetHeight;if(d<b){c.style.height=b+"px"}}function showTextPages(){this.gotoPage=function(c){this.box.find(".textPages .textPage").hide();this.box.find(".textPages .textPage:eq("+(c-1)+")").show();this.box.find(".pages").each(function(){$(this).find("a").removeClass("active")});this.box.find(".pages").each(function(){$(this).find("a:eq("+(c-1)+")").addClass("active")})};this.box=$("#storymain");if(this.box.find(".textPages").length){this.pages=this.box.find(".textPages .textPage").length;var b="Seiten: ";for(var a=1;a<=this.pages;a++){b+='<a onclick="pager.gotoPage('+a+'); oe24Tracking.loadOewa(); oe24Tracking.googleAnalyticsRefreshTracking();" href="#textBegin">'+a+"</a>"}this.box.find(".pages").html(b);this.gotoPage(1)}}function doRate(e,a,c,b){var d=function(){var f=$(b).next().html();f=parseInt(f);f++;$(b).next().html(f)};oe24Core.ratingRequest(e,a,c,d)}function commentPager(b){var a=this;this.current=1;this.gotoPage=function(e,d){this.current=e;if(e==this.param.pages){this.box.find(".moreButton").hide()}else{this.box.find(".moreButton").show()}this.box.find(".entry").hide();var c=1;this.box.find(".entry").each(function(f){var h=(e-1)*a.param.postsPerSite;var g=h+a.param.postsPerSite;if(c>h){$(this).show()}if(c>=g){return false}c++});$(d).parent().find("*").removeClass("active");$(d).addClass("active")};this.next=function(){this.box.find(".active").next().trigger("click")};this.box=$("#"+b.id);this.param=b}function enableArticleImageSlideshow(){var a=$("#articleImages .img").length;if(a<=1){return}$("#articleImages").addClass("isSlideshow").find(".btnLeft, .btnRight").bind("click",function(){var b=0;$("#articleImages .img").each(function(c){if($(this).hasClass("active")){b=c}});$("#articleImages .img").addClass("inactive").removeClass("active");if($(this).hasClass("btnLeft")){b--}else{b++}if(b<0){b=a-1}else{if(b>=a){b=0}}$("#articleImages .img:eq("+b+")").addClass("active")})}function oe24Console(param){this.leftClick=function(clearIv){if(typeof clearIv!="undefined"){clearInterval(this.iv)}this.prev()};this.rightClick=function(clearIv){if(typeof clearIv!="undefined"){clearInterval(this.iv)}this.next()};this.prev=function(){var currIndex=this.getTinyIndex();if(currIndex==0){currIndex=this.count-1}else{currIndex--}this.open(currIndex)};this.next=function(){var currIndex=this.getTinyIndex();if(currIndex==(this.count-1)){currIndex=0}else{currIndex++}this.open(currIndex)};this.tinyJump=function(element){var i=$(element).parent().parent().prevAll().length;if(i>=this.count){i=i-this.count}this.open(i,true)};this.open=function(index,clearIv){if(typeof clearIv!="undefined"){clearInterval(this.iv)}this.box.find(".counterText").html((index+1)+"/"+this.count);this.box.find(".bigStory").hide();this.box.find(".tinyStory").removeClass("active");this.box.find(".bigStory:eq("+index+")").show();this.box.find(".tinyStory:eq("+index+")").addClass("active");var w=this.box.find(".tinyStory").outerWidth();var l=(w*index+1)*(-1);l++;this.box.find(".tinyStorys .moveBox").css({left:l+"px"})};this.getTinyIndex=function(){return this.box.find(".active").prevAll().length};this.box=$("#"+param.id);var html=this.box.find(".tinyStorys .moveBox").html();this.count=this.box.find(".tinyStorys .moveBox .tinyStory").length;this.box.find(".tinyStorys .moveBox").append(html);this.open(0);param.interval=param.interval<1000?1000:param.interval;this.iv=setInterval(function(){eval(param.ownObjName+".next()")},param.interval)}Society={defaultParams:{},ajaxUrl:false,updateValue:function(a,b,c){this.defaultParams[a]=b;if(typeof document.evsearch!="undefined"){$(document.evsearch).find("input[name='"+a+"']").trigger("focus").val(b)}if(typeof c=="function"){c()}},doSearch:function(f){var a=this.defaultParams;var d="";if(typeof document.evsearch!="undefined"){d=document.evsearch.action;$(document.evsearch.ca_query).trigger("focus");var c=$(document.evsearch).serializeArray();for(i in c){var b=c[i];a[b.name]=b.value}a.ca_main_categorys=a.ca_middle_categorys="";$(document.evsearch).find("input[name='ca_main_categorys']:checked").each(function(){a.ca_main_categorys+=$(this).val()+","});$(document.evsearch).find("input[name='ca_middle_categorys']:checked").each(function(){a.ca_middle_categorys+=$(this).val()+","})}if(typeof f=="object"){for(i in f){a[i]=f[i]}}var f="";for(i in a){var e=encodeURIComponent(a[i]);if(e==null||e=="null"){e=""}f+=i+"="+e+"&"}if(!$("#searchresults").length){d+="?"+f;location.href=d}else{if(this.ajaxUrl){d=this.ajaxUrl+"?"+f;$("#searchresults").html('<div class="loadingIndicator">Wird geladen... Bitte warten...</div>');$.get(d,function(g){$("#searchresults").html(g)})}}return false},initSearchbox:function(){$(document.evsearch.ca_query).one("focus",function(){$(this).val("");Society.defaultParams.site=1})},checkEnter:function(a){if(a&&(a.which==13||a.keyCode==13)){Society.doSearch()}},datePicker:{open:function(c,b){if(!document.getElementById("datePicker")){$("body").append('<div class="societyInclude"><div class="datePicker" id="datePicker"></div></div>')}var a=document.getElementById("datePicker");a.style.left=(xPos+5)+"px";a.style.top=(yPos-5)+"px";if(c){this.ToId=c}this.Method=(b)?b:"input";if(!this.monate){this.monate=[];this.monate[0]="Jänner";this.monate[1]="Februar";this.monate[2]="März";this.monate[3]="April";this.monate[4]="Mai";this.monate[5]="Juni";this.monate[6]="Juli";this.monate[7]="August";this.monate[8]="September";this.monate[9]="Oktober";this.monate[10]="November";this.monate[11]="Dezember"}if(!this.days){this.days=[];this.days[0]="So";this.days[1]="Mo";this.days[2]="Di";this.days[3]="Mi";this.days[4]="Do";this.days[5]="Fr";this.days[6]="Sa"}this.update()},update:function(a,f,o){var e=document.getElementById("datePicker");e.style.display="block";var b=document.getElementById(this.ToId);if(b&&!a&&!f&&!o){if(b.value.length>=8&&b.value.length<=10){var g=b.value.match(/(.*?)\.(.*?)\.(.*)/);g[3]=(g[3].length==2)?"20"+g[3]:g[3];a=Number(g[3]);f=Number(g[2])-1;o=Number(g[1])}}var p=new Date();a=(!a)?p.getFullYear():a;f=(f==undefined)?p.getMonth():f;o=(!o)?p.getDate():o;var d=(f==0)?a-1:a;var j=(f==0)?11:f-1;var h=(f==11)?a+1:a;var m=(f==11)?0:f+1;e.innerHTML='<a onclick="Society.datePicker.update('+d+", "+j+", "+o+')" class="prev"><</a><a onclick="Society.datePicker.update('+h+", "+m+", "+o+')" class="next">></a><div class="title">'+this.monate[f]+" "+a+"</div>";var q='<div class="calender">';var c;c=new Date(a,f,1,1,1,1);var k=c.getDay();var n=0;for(i=k;i<=(k+6);i++){n=(i>6)?i-7:i;q+='<a class="date">'+this.days[n]+"</a>"}for(i=1;i<=31;i++){var l;c=new Date(a,f,i,1,1,1);if(c.getMonth()!=f){break}if((o==i)){l="actual"}else{l=""}if(this.Method=="input"){q+='<a class="'+l+'" onclick="Society.datePicker.writeToForm(\''+i+"."+(f+1)+"."+a+"');\">"+i+"</a> "}else{if(this.Method=="weekChoose"){this.tmpWeek=Society.datePicker.getWeek(a,f,i);q+='<a class="'+l+'" onclick="Society.datePicker.pickWeek('+this.tmpWeek+');" title="Woche '+this.tmpWeek+'">'+i+"</a> "}else{if(this.Method=="Society.weekScroller"){this.tmpWeek=Society.datePicker.getWeek(a,f,i);q+='<a class="'+l+'" onclick="Society.weekScroller.updateDate(\''+i+"."+(f+1)+"."+a+"'); Society.weekScroller.update("+this.tmpWeek+'); Society.datePicker.close()" title="Woche '+this.tmpWeek+'">'+i+"</a> "}}}}q+='<a class="close" onclick="Society.datePicker.close();">X</a>';q+='</div><div class="clear"></div>';e.innerHTML+=q},writeToForm:function(a){if(this.Method=="input"){var b=document.getElementById(this.ToId);b.value=a}this.close()},pickWeek:function(a){var b=document.getElementById(this.ToId);b.value=a;b.checked=true;this.close()},getWeek:function(a,b,g){var e=new Date(a,b,g);var f=new Date(e.getFullYear(),0,0);var d=(f.getDay()+6)%6;var c=Math.ceil((e.getTime()-f)/604800000+d/7);return c},close:function(){var a=document.getElementById("datePicker");if(a){a.style.display="none"}}},weekScroller:{update:function(t,n,k){if(!this.monate){this.monate=[];this.monate[0]="Jan";this.monate[1]="Feb";this.monate[2]="Mar";this.monate[3]="Apr";this.monate[4]="Mai";this.monate[5]="Jun";this.monate[6]="Jul";this.monate[7]="Aug";this.monate[8]="Sep";this.monate[9]="Okt";this.monate[10]="Nov";this.monate[11]="Dez"}if(!this.days){this.days=[];this.days[0]="Mo";this.days[1]="Di";this.days[2]="Mi";this.days[3]="Do";this.days[4]="Fr";this.days[5]="Sa";this.days[6]="So"}var a=new Date();var e=this.nowYear=a.getFullYear();var p=document.getElementById("weekpickdate");if(!t){t=Society.datePicker.getWeek(e,a.getMonth(),a.getDate());p.value=a.getDate()+"."+(a.getMonth()+1)+"."+e;var f=a.getMonth();var c=a.getDate()}if(n){this.nowYear=e=n}if(k){var g=k}else{var g=0}var h=p.value.match(/(.*?)\.(.*?)\.(.*)/);h[3]=(h[3].length==2)?"20"+h[3]:h[3];chooseYear=Number(h[3]);chooseMonth=Number(h[2])-1;chooseDay=Number(h[1]);f=(chooseMonth==a.getMonth())?chooseMonth:undefined;c=(chooseDay==a.getDate())?chooseDay:undefined;this.prevWeek=(t==1)?Society.datePicker.getWeek(e-1,11,31):t-1;this.nextWeek=(t==Society.datePicker.getWeek(e,11,31))?1:t+1;var o=document.getElementById("weekScroller");var l=document.getElementById("weekScrollerLeft");var A=document.getElementById("weekScrollerRight");l.onclick=function(){if(Society.weekScroller.prevWeek==Society.datePicker.getWeek(Society.weekScroller.nowYear-1,11,31)){Society.weekScroller.nowYear--}g--;Society.weekScroller.update(Society.weekScroller.prevWeek,Society.weekScroller.nowYear,g)};A.onclick=function(){if(Society.weekScroller.nextWeek==1){Society.weekScroller.nowYear++}g++;Society.weekScroller.update(Society.weekScroller.nextWeek,Society.weekScroller.nowYear,g)};a=new Date(e,0,0);var z=actDay=entrys=0;var q=0;var u="";this.matched=0;var w=new Date();var s=[];if(g==0){s=Society.weekScroller.getAllDaysOfWeek(w)}else{s=Society.weekScroller.getAllDaysOfWeek(new Date(w.getTime()+(604800000*g)))}for(i=0;i<7;i++){var b=s[i];var v=b.getDate();var r=b.getMonth();var j=b.getFullYear();var x=b.getDay();this.bgclass=(x==6||x==0)?"webg":"bluebg";if(chooseDay==v&&r==chooseMonth&&j==chooseYear){this.divclass="highlight_entry";if(actDay>4){this.divclass="highlight_entry brown_highlight"}this.matched=1;this.bgclass="bluebg"}else{this.divclass="entry"}if(v==w.getDate()&&w.getMonth()==r&&w.getFullYear()==j){this.today="Heute";this.month=this.monate[r]}else{this.today="";this.month=this.monate[r]}u+='<div class="'+this.divclass+'" onclick="Society.weekScroller.updateDate(\''+v+"."+(r+1)+"."+b.getFullYear()+"'); Society.weekScroller.update("+t+","+b.getFullYear()+","+g+');"><div class="layer"><span class="today">'+this.today+'</span><span class="day">'+this.days[actDay]+'</span><span class="daynr '+this.bgclass+'">'+v+'</span><span class="month">'+this.month+"</span></div></div>";actDay=(actDay==6)?0:actDay+1;entrys++}if(!this.matched){u=u.replace(/<div class="entry"/,'<div class="entry leftmarg"')}o.innerHTML=u},getAllDaysOfWeek:function(d){var a=0;var g=[];var c=d.getDay();var b=(c-1<0)?6:c-1;var e=6-b;var f=d;for(i=0;i<b;i++){g[a]=Society.weekScroller.getDateBefore(f);f=g[a];a++}g[a]=d;a++;f=d;for(i=0;i<e;i++){g[a]=Society.weekScroller.getDateAfter(f);f=g[a];a++}g.sort(Society.weekScroller.dateSort);return(g)},dateSort:function(d,c){var e=d.getTime();var f=c.getTime();return e-f},getDateBefore:function(a){var b=new Date(a.getTime()-86400000);return(new Date(b.getFullYear(),b.getMonth(),b.getDate()))},getDateAfter:function(a){var b=new Date(a.getTime()+86400000);return(new Date(b.getFullYear(),b.getMonth(),b.getDate()))},updateDate:function(a){var c={0:"weekpickdate",1:"pickBeginKal",2:"pickEndKal",3:"pickBegin",4:"pickEnd"};var b;for(i in c){b=document.getElementById(c[i]);if(b){b.value=a}}Society.doSearch()}},markCategory:function(b){var a=document.evsearch.ca_main_categorys;for(i=0;i<a.length;i++){if(a[i].value==b||b==""){a[i].checked=true}else{a[i].checked=false}changeCatTitle(a[i])}},changeCatTitle:function(a){var d=a.parentNode;if(a.checked){d.className="title"}else{d.className="titlegray";var b=d.parentNode.getElementsByTagName("input");for(var c=1;c<b.length;c++){b[c].checked=false;Society.changeSubCatColor(b[c])}}},changeSubCatColor:function(a){var b=a.parentNode;if(a.checked){b.className=""}else{b.className="gray"}},resetForm:function(b){b.reset();for(var a=0;a<b.ca_main_categorys.length;a++){b.ca_main_categorys[a].checked=true;Society.changeCatTitle(b.ca_main_categorys[a])}},extendevent:{open:function(c){this.close();if(c){this.lastId=c;var b=document.getElementById(this.lastId);var a=b.getElementsByTagName("img")[0];b.style.display="block";a.height=b.offsetHeight}},close:function(){if(this.lastId){document.getElementById(this.lastId).style.display="none"}}},searchtabs:{max:function(b){var a=this.getDoms(b);a.maininfo.style.display="none";if(a.entry.className.match(/inactive/)){a.entry.className=a.entry.className.replace(/ inactive/," active")}a.max.style.display="block"},ext:function(b){var a=this.getDoms(b);if(a.entry.className.match(/ active/)){a.entry.className=a.entry.className.replace(/ active/," inactive")}else{a.entry.className=a.entry.className.replace(/ inactive/," active")}a.maininfo.style.display="block";a.max.style.display="none"},getDoms:function(b){if(!this.stats){this.stats=[]}var a=[];a.maininfo=document.getElementById("ca_main"+b);a.ext=document.getElementById("ca_ext"+b);a.entry=document.getElementById("ca_entry"+b);a.max=document.getElementById("ca_max"+b);return a}},toppicslider:{init:function(a){this.params=a;this.dom=[];this.titles=[];this.infos=[];this.required={slideBtnL:1,slideBtnR:1};for(i in this.params.elementIds){if(!this.params.elementIds[i]){continue}if(!document.getElementById(this.params.elementIds[i])){alert("ID "+a.elementIds[i]+" not found!");return}this.dom[i]=document.getElementById(this.params.elementIds[i])}for(i in this.required){if(!this.dom[i]){alert("Element "+i+" needed but not avaible.");return}}this.dir=1;this.element=0;this.duplicates=0;this.speed=this.currSpeed=(this.params.speed)?this.params.speed:0;this.clickSpeed=(this.params.clickSpeed)?this.params.clickSpeed:0;this.brakedelay=(this.params.brakedelay)?this.params.brakedelay:5;this.containerDivs=this.dom.container.getElementsByTagName("div");this.containerDivsCount=this.containerDivs.length;this.startWidth=0;this.containerWidth=this.dom.container.offsetWidth;this.oneDivWidth=this.containerDivs[0].offsetWidth;for(i in this.containerDivs){if(isNaN(i)){continue}this.startWidth+=this.containerDivs[i].offsetWidth}this.neededDuplicates=Math.ceil((this.containerWidth*2)/this.startWidth);this.containerFontWidth=this.startWidth;this.containerHeight=this.dom.container.offsetHeight;this.containerLeftPos=0;this.startWidth=(this.containerWidth>this.startWidth)?this.containerWidth*2:this.startWidth*2;this.duplicate();this.dom.slideBtnL.onmouseover=function(){Society.toppicslider.dir=1;Society.toppicslider.currSpeed=Society.toppicslider.speed;Society.toppicslider.startSlide();this.style.cursor="pointer"};this.dom.slideBtnL.onmouseout=function(){Society.toppicslider.stopSlide()};this.dom.slideBtnL.onclick=function(){Society.toppicslider.pushSlide()};this.dom.slideBtnR.onmouseover=function(){Society.toppicslider.dir=-1;Society.toppicslider.currSpeed=Society.toppicslider.speed;Society.toppicslider.startSlide();this.style.cursor="pointer"};this.dom.slideBtnR.onmouseout=function(){Society.toppicslider.stopSlide()};this.dom.slideBtnR.onclick=function(){Society.toppicslider.pushSlide()}},duplicate:function(){if(!this.containerHTML){this.containerHTML=this.dom.container.innerHTML}for(i=0;i<=this.neededDuplicates;i++){this.dom.container.innerHTML+=this.containerHTML}this.dom.container.innerHTML='<font style="width: '+(this.startWidth)+'px;">'+this.dom.container.innerHTML+"</font>"},startSlide:function(){this.stopSlide();this.interval=setInterval("Society.toppicslider.slide()",1)},stopSlide:function(){clearInterval(this.interval)},pushSlide:function(){this.currSpeed+=this.clickSpeed},slide:function(){if(this.currSpeed>this.speed){this.currSpeed-=this.currSpeed/this.brakedelay}this.containerLeftPos+=this.currSpeed*this.dir;if(this.dir==(-1)){if(this.containerLeftPos<=(this.containerFontWidth*-1)){this.containerLeftPos=0}}else{if(this.dir==1){if(this.containerLeftPos>0){this.containerLeftPos=this.containerFontWidth*-1}}}this.dom.container.getElementsByTagName("font")[0].style.left=this.containerLeftPos+"px"}}};var yPos,xPos=0;$(document).mousemove(function(a){yPos=a.pageY;xPos=a.pageX});function dateCountdown(r){var j=new Date();var l=r.date;var h=24*60*60*1000;var f=(l.getTime()-j.getTime());var p=f/h;var b=Math.floor(p);var g=(p-b)*24;var q=Math.floor(g);var c=(g-q)*60;var k=Math.floor((g-q)*60);var a=Math.floor((c-k)*60);var e="";var n=false;var m=false;var o=false;if(typeof r.withoutText!="undefined"&&r.withoutText==true){n=true}if(typeof r.stopAfterDate!="undefined"&&r.stopAfterDate==true&&j.getTime()>l.getTime()){m=true}if(typeof r.removeAfterDate!="undefined"&&r.removeAfterDate==true){o=true}if(m==false){var d=(typeof r.displayIfNull!="undefined")?r.displayIfNull:false;if(typeof r.days!="undefined"&&r.days&&(b>0||d)){e+='<span class="days">';e+=b;if(!n){e+=' <span class="dayText">Tag'+(b!=1?"e":"")+"</span> "}e+="</span>"}if(typeof r.hours!="undefined"&&r.hours&&(q>0||d)){e+='<span class="hours">';e+=q;if(!n){e+=' <span class="hoursText">Stunde'+(q!=1?"n":"")+"</span> "}e+="</span>"}if(typeof r.minutes!="undefined"&&r.minutes&&(k>0||d)){e+='<span class="minutes">';e+=k;if(!n){e+=' <span class="minutesText">Minute'+(k!=1?"n":"")+"</span> "}e+="</span>"}if(typeof r.seconds!="undefined"&&r.seconds&&(a>0||d)){e+='<span class="seconds">';e+=a;if(!n){e+=' <span class="secondsText">Sekunde'+(a!=1?"n":"</span> ")}e+="</span>"}document.getElementById(r.container).innerHTML=e;setTimeout(function(){dateCountdown(r)},300)}else{var d=(typeof r.displayIfNull!="undefined")?r.displayIfNull:false;if(typeof r.days!="undefined"&&r.days&&(b>0||d)){e+='<span class="days">0';if(!n){e+=' <span class="dayText">Tag'+(b!=1?"e":"")+"</span> "}e+="</span>"}if(typeof r.hours!="undefined"&&r.hours&&(q>0||d)){e+='<span class="hours">0';if(!n){e+=' <span class="hoursText">Stunde'+(q!=1?"n":"")+"</span> "}e+="</span>"}if(typeof r.minutes!="undefined"&&r.minutes&&(k>0||d)){e+='<span class="minutes">0';if(!n){e+=' <span class="minutesText">Minute'+(k!=1?"n":"")+"</span> "}e+="</span>"}if(typeof r.seconds!="undefined"&&r.seconds&&(a>0||d)){e+='<span class="seconds">0';if(!n){e+=' <span class="secondsText">Sekunde'+(a!=1?"n":"</span> ")}e+="</span>"}if(o){e=""}document.getElementById(r.container).innerHTML=e}if(typeof r.switchPictureOnHoldTo!="undefined"&&m==true){$("#"+r.container).parent().css("backgroundImage","url("+r.switchPictureOnHoldTo+")")}}globalScripts={popup:function(f){f.w=typeof f.w=="undefined"?0:f.w;f.h=typeof f.h=="undefined"?0:f.h;var c=f.w?f.w:(screen.availWidth/2);var e=f.h?f.h:(screen.availHeight/2);var d=100;var b=(screen.availWidth)/2-(c/2);var a="width="+c+", height="+e+", top="+d+", left="+b;if(f.scrollbars!="undefined"&&f.scrollbars){a+=", scrollbars=yes"}window.open(f.url,"popup",a)},expandBox:function(c,d){try{var a=$(c).height();a+=$(d).outerHeight();$(c).css("height",a+"px")}catch(b){}}};var showAdsEvery=5;var clickCounter=1;function popupDiashow(b){var a=this;this.gotoImageById=function(d){var c=$("#diashowImages");d=parseInt(d);c.find(".img img").each(function(e){var f=parseInt($(this).attr("alt").replace(/(.*)\/|\./ig,""));if(d===f){a.gotoImage(e+1);return false}})};this.showAd=function(){if($("#slide_slot").length>0){if($("#slide_slot").val()!=1){this.imageBox.find("div.img, div.info").hide();this.thumbBox.find("img").fadeTo(0,0.6);$("#slide_slot").val(1)}if($("#slide_slot").val()==1){$("#adContainerTmpWerbebreak1 a").remove();$("#adcontainerWerbebreak").show()}}};this.hideAd=function(){if($("#slide_slot").length>0){if($("#slide_slot").val()==1){$("#slide_slot").val(0)}if($("#slide_slot").val()==0){if($("#adcontainerWerbebreak").length>0){$("#adcontainerWerbebreak").hide()}}}};this.gotoImage=function(f){this.currentImage=f;var e=Math.floor((f-1)/a.param.thumbsPerSite)+1;this.gotoPage(e);this.imageBox.find("div.img, div.info").hide();this.thumbBox.find("img").fadeTo(0,0.6);var g=this.imageBox.find("div.img:eq("+(f-1)+")");this.imageBox.find("div.img:eq("+(f-1)+"), div.info:eq("+(f-1)+")").show();var d=this.imageBox.find("div.img:eq("+(f-1)+") img");d.attr("src",d.attr("alt"));g.show();var c=g.height();var d=parseInt((c-g.find("img").height())/2);g.find("img").css({"padding-top":d+"px"});this.thumbBox.find("img:eq("+(f-1)+")").fadeTo(400,1);this.infoBox.find(".a span").html(this.currentImage+" / "+this.imageCount);this.infoBox.find(".entrys .entry").hide();this.infoBox.find(".entrys .entry:eq("+(this.currentImage-1)+")").show();if(b.slideshowVoting!=null){b.slideshowVoting.gotoImage(f)}};this.gotoPage=function(d,e){this.highlightPage(d);this.thumbBox.find("img").hide();var g=(d-1)*a.param.thumbsPerSite;var f=g+a.param.thumbsPerSite;var c=1;this.thumbBox.find("img").each(function(){if(c>g){$(this).show();$(this).attr("src",$(this).attr("alt"))}if(c>=f){return false}c++});if(typeof e!="undefined"){this.gotoImage(g+1)}};this.highlightPage=function(c){this.pageBox.find("a").removeClass("active");this.pageBox.find("a:eq("+(c-1)+")").addClass("active")};this.next=function(){if($("#slide_slot").length>0){this.countClick();if(clickCounter<showAdsEvery&&clickCounter!=0){this.currentImage++;if(this.currentImage>this.imageCount){this.currentImage=1}this.gotoImage(this.currentImage)}}else{this.currentImage++;if(this.currentImage>this.imageCount){this.currentImage=1}this.gotoImage(this.currentImage)}};this.prev=function(){if($("#slide_slot").length>0){this.countClick();if(clickCounter<showAdsEvery&&clickCounter!=0){this.currentImage--;if(this.currentImage<=0){this.currentImage=this.imageCount}this.gotoImage(this.currentImage)}}else{this.currentImage--;if(this.currentImage<=0){this.currentImage=this.imageCount}this.gotoImage(this.currentImage)}};this.countClick=function(){if(this.showAds==true){if($("#slide_slot").length>0){clickCounter++;if(clickCounter>showAdsEvery){clickCounter=showAdsEvery}else{if(clickCounter==showAdsEvery){this.showAd();clickCounter=0}else{if(clickCounter<showAdsEvery){this.hideAd()}}}}}};this.imageBox=$("#"+b.imageBoxId);this.thumbBox=$("#"+b.thumbBoxId);this.pageBox=$("#"+b.pageBoxId);this.infoBox=$("#"+b.infoBoxId);this.currentImage=b.currentImage;this.imageCount=this.imageBox.find("div.img img").length;this.param=b;this.gotoImage(this.currentImage);this.showAds=(typeof this.param.showAds!="undefined"&&this.param.showAds==true)?true:false}dSearch={searchEl:null,imagesEl:null,init:function(){this.searchEl=$("#diashowSearch");if(this.searchEl.length<=0){return false}this.imagesEl=$("#diashowInfos");this.searchEl.find("input").one("focus",function(){$(this).val("")}).bind("focus",function(){dSearch.keyTrigger(this)}).bind("keyup",function(){dSearch.keyTrigger(this)}).bind("blur",function(){setTimeout(function(){dSearch.showPopdown(null)},500)})},keyTrigger:function(b){b=$(b);var d=$.trim(b.val());if(d.length<2){dSearch.showPopdown(null);return false}var a=$("<div></div>");var c=false;this.imagesEl.find(".entry .title2").each(function(e){var f=$(this).text();var h=new RegExp(d,"ig");if(h.test(f)){var g=$('<div class="entry">'+f+"</div>");g.bind("click",function(){dPager.gotoImage(e+1);if(typeof dPager.param.gotoImageTrigger=="function"){dPager.param.gotoImageTrigger()}});a.append(g);c=true}});this.showPopdown(c?a:"Kein Bild gefunden")},showPopdown:function(a){var b=this.searchEl.find(".popdown");if(a===null){b.hide();return}b.html(a).show()}};
