function hideBrandedContent(n){n?$(".brandedContent").fadeOut(200):$(".brandedContent").fadeIn()}function updateMetaTags(){for(var n in slideDeck)$("#page"+slideDeck[n][0]).hasClass("active")&&(document.title=pageTitles[slideDeck[n][1]])}function getpath(){var t=window.location.href.match(/(http:\/\/[^\/]*)\/([^\/]*#\.)\/([^\/]*)/i),n;return t!=null?t[3]:(n=window.location.pathname.substring(1),n.length>1&&n[n.length-1]=="/"&&(n=n.substr(0,n.length-1)),n)}function RenderKenshooPixel(n,t){var i="https:"==document.location.protocol?"https://":"http://";$("#KenshooPixel").attr("src",i+location.hostname+"/scripts/kenshoopixel/"+n.toLowerCase()+".html"),ahref=$(t).attr("href"),ahref!=undefined&&setTimeout("window.location = ahref",500)}function renderBingTag(n,t,i){window.uetq=window.uetq||[],window.uetq.push({ec:n,ea:t,el:i})}var jwplayer,$jw,_userPlayerReady,FAD_Tracking,rightKey,leftKey,topKey,bottomKey,clickslide,currentslide,IE78,IE9,smallMonitor,hasUrlHash,signUpEmailSuccess,slideDeck;typeof jwplayer=="undefined"&&(jwplayer=function(n){if(jwplayer.api)return jwplayer.api.selectPlayer(n)},$jw=jwplayer,jwplayer.version="5.10.2295 (Licensed version)",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(n){function t(t){if(n.utils.exists(t)){var i=t.indexOf("://"),r=t.indexOf("?");return i>0&&(r<0||r>i)}}n.utils=function(){},n.utils.typeOf=function(n){var t=typeof n;return t==="object"&&(n?n instanceof Array&&(t="array"):t="null"),t},n.utils.extend=function(){var t=n.utils.extend.arguments,i,r;if(t.length>1){for(i=1;i<t.length;i++)for(r in t[i])t[0][r]=t[i][r];return t[0]}return null},n.utils.clone=function(){var u,i=n.utils.clone.arguments,r;if(i.length==1)switch(n.utils.typeOf(i[0])){case"object":u={};for(r in i[0])u[r]=n.utils.clone(i[0][r]);break;case"array":u=[];for(r in i[0])u[r]=n.utils.clone(i[0][r]);break;default:return i[0]}return u},n.utils.extension=function(n){return n?(n=n.substring(n.lastIndexOf("/")+1,n.length),n=n.split("?")[0],n.lastIndexOf(".")>-1)?n.substr(n.lastIndexOf(".")+1,n.length).toLowerCase():void 0:""},n.utils.html=function(n,t){n.innerHTML=t},n.utils.wrap=function(n,t){n.parentNode&&n.parentNode.replaceChild(t,n),t.appendChild(n)},n.utils.ajax=function(t,i,r){var u;u=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),u.onreadystatechange=function(){if(u.readyState===4)if(u.status===200){if(i){if(!n.utils.exists(u.responseXML))try{if(window.DOMParser){var f=(new DOMParser).parseFromString(u.responseText,"text/xml");f&&(u=n.utils.extend({},u,{responseXML:f}))}else f=new ActiveXObject("Microsoft.XMLDOM"),f.async="false",f.loadXML(u.responseText),u=n.utils.extend({},u,{responseXML:f})}catch(e){r&&r(t)}i(u)}}else r&&r(t)};try{u.open("GET",t,!0),u.send(null)}catch(f){r&&r(t)}return u},n.utils.load=function(n,t,i){n.onreadystatechange=function(){n.readyState===4&&(n.status===200?t&&t():i&&i())}},n.utils.find=function(n,t){return n.getElementsByTagName(t)},n.utils.append=function(n,t){n.appendChild(t)},n.utils.isIE=function(){return!+"\v1"||typeof window.ActiveXObject!="undefined"},n.utils.userAgentMatch=function(n){var t=navigator.userAgent.toLowerCase();return t.match(n)!==null},n.utils.isIOS=function(){return n.utils.userAgentMatch(/iP(hone|ad|od)/i)},n.utils.isIPad=function(){return n.utils.userAgentMatch(/iPad/i)},n.utils.isIPod=function(){return n.utils.userAgentMatch(/iP(hone|od)/i)},n.utils.isAndroid=function(){return n.utils.userAgentMatch(/android/i)},n.utils.isLegacyAndroid=function(){return n.utils.userAgentMatch(/android 2.[012]/i)},n.utils.isBlackberry=function(){return n.utils.userAgentMatch(/blackberry/i)},n.utils.isMobile=function(){return n.utils.userAgentMatch(/(iP(hone|ad|od))|android/i)},n.utils.getFirstPlaylistItemFromConfig=function(n){var t={},i;return i=n.playlist&&n.playlist.length?n.playlist[0]:n,t.file=i.file,t.levels=i.levels,t.streamer=i.streamer,t.playlistfile=i.playlistfile,t.provider=i.provider,t.provider||(t.file&&(t.file.toLowerCase().indexOf("youtube.com")>-1||t.file.toLowerCase().indexOf("youtu.be")>-1)&&(t.provider="youtube"),t.streamer&&t.streamer.toLowerCase().indexOf("rtmp://")==0&&(t.provider="rtmp"),i.type&&(t.provider=i.type.toLowerCase())),t.provider=="audio"&&(t.provider="sound"),t},n.utils.getOuterHTML=function(n){if(n.outerHTML)return n.outerHTML;try{return(new XMLSerializer).serializeToString(n)}catch(t){return""}},n.utils.setOuterHTML=function(n,t){var i,r,u;n.outerHTML?n.outerHTML=t:(i=document.createElement("div"),i.innerHTML=t,r=document.createRange(),r.selectNodeContents(i),u=r.extractContents(),n.parentNode.insertBefore(u,n),n.parentNode.removeChild(n))},n.utils.hasFlash=function(){if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]!="undefined")return!0;if(typeof window.ActiveXObject!="undefined")try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),!0}catch(n){}return!1},n.utils.getPluginName=function(n){return n.lastIndexOf("/")>=0&&(n=n.substring(n.lastIndexOf("/")+1,n.length)),n.lastIndexOf("-")>=0&&(n=n.substring(0,n.lastIndexOf("-"))),n.lastIndexOf(".swf")>=0&&(n=n.substring(0,n.lastIndexOf(".swf"))),n.lastIndexOf(".js")>=0&&(n=n.substring(0,n.lastIndexOf(".js"))),n},n.utils.getPluginVersion=function(n){return n.lastIndexOf("-")>=0?n.lastIndexOf(".js")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".js")):n.lastIndexOf(".swf")>=0?n.substring(n.lastIndexOf("-")+1,n.lastIndexOf(".swf")):n.substring(n.lastIndexOf("-")+1):""},n.utils.getAbsolutePath=function(i,r){var e,h,u,o,s,f;if(n.utils.exists(r)||(r=document.location.href),!n.utils.exists(i))return undefined;if(t(i))return i;for(e=r.substring(0,r.indexOf("://")+3),h=r.substring(e.length,r.indexOf("/",e.length+1)),i.indexOf("/")===0?u=i.split("/"):(o=r.split("?")[0],o=o.substring(e.length+h.length+1,o.lastIndexOf("/")),u=o.split("/").concat(i.split("/"))),s=[],f=0;f<u.length;f++)if(u[f]&&n.utils.exists(u[f])&&u[f]!=".")u[f]==".."?s.pop():s.push(u[f]);else continue;return e+h+"/"+s.join("/")},n.utils.pluginPathType={ABSOLUTE:"ABSOLUTE",RELATIVE:"RELATIVE",CDN:"CDN"},n.utils.getPluginPathType=function(t){var i,u,r;if(typeof t=="string")return(t=t.split("?")[0],i=t.indexOf("://"),i>0)?n.utils.pluginPathType.ABSOLUTE:(u=t.indexOf("/"),r=n.utils.extension(t),i<0&&u<0&&(!r||!isNaN(r)))?n.utils.pluginPathType.CDN:n.utils.pluginPathType.RELATIVE},n.utils.mapEmpty=function(n){for(var t in n)return!1;return!0},n.utils.mapLength=function(n){var t=0,i;for(i in n)t++;return t},n.utils.log=function(n,t){typeof console!="undefined"&&typeof console.log!="undefined"&&(t?console.log(n,t):console.log(n))},n.utils.css=function(t,i){if(n.utils.exists(t))for(var u in i)try{if(typeof i[u]=="undefined")continue;else if(typeof i[u]=="number"&&!(u=="zIndex"||u=="opacity")){if(isNaN(i[u]))continue;i[u]=u.match(/color/i)?"#"+n.utils.strings.pad(i[u].toString(16),6):Math.ceil(i[u])+"px"}t.style[u]=i[u]}catch(f){}},n.utils.isYouTube=function(n){return n.indexOf("youtube.com")>-1||n.indexOf("youtu.be")>-1},n.utils.transform=function(t,i,r,u,f){if(n.utils.exists(i)||(i=1),n.utils.exists(r)||(r=1),n.utils.exists(u)||(u=0),n.utils.exists(f)||(f=0),i==1&&r==1&&u==0&&f==0)t.style.webkitTransform="",t.style.MozTransform="",t.style.OTransform="";else{var e="scale("+i+","+r+") translate("+u+"px,"+f+"px)";t.style.webkitTransform=e,t.style.MozTransform=e,t.style.OTransform=e}},n.utils.stretch=function(t,i,r,u,f,e){var l,a;if(typeof r!="undefined"&&typeof u!="undefined"&&typeof f!="undefined"&&typeof e!="undefined"){var s=r/f,h=u/e,v=0,y=0,c=!1,o={};i.parentElement&&(i.parentElement.style.overflow="hidden"),n.utils.transform(i);switch(t.toUpperCase()){case n.utils.stretching.NONE:o.width=f,o.height=e,o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.UNIFORM:s>h?(o.width=f*h,o.height=e*h,o.width/r>.95&&(c=!0,s=Math.ceil(100*r/o.width)/100,h=1,o.width=r)):(o.width=f*s,o.height=e*s,o.height/u>.95&&(c=!0,s=1,h=Math.ceil(100*u/o.height)/100,o.height=u)),o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.FILL:s>h?(o.width=f*s,o.height=e*s):(o.width=f*h,o.height=e*h),o.top=(u-o.height)/2,o.left=(r-o.width)/2;break;case n.utils.stretching.EXACTFIT:o.width=f,o.height=e,l=Math.round(f/2*(1-1/s)),a=Math.round(e/2*(1-1/h)),c=!0,o.top=o.left=0}c&&n.utils.transform(i,s,h,l,a),n.utils.css(i,o)}},n.utils.stretching={NONE:"NONE",FILL:"FILL",UNIFORM:"UNIFORM",EXACTFIT:"EXACTFIT"},n.utils.deepReplaceKeyName=function(t,i,r){var f,o,s,e,u;switch(n.utils.typeOf(t)){case"array":for(u=0;u<t.length;u++)t[u]=n.utils.deepReplaceKeyName(t[u],i,r);break;case"object":for(f in t){if(i instanceof Array&&r instanceof Array)if(i.length!=r.length)continue;else o=i,s=r;else o=[i],s=[r];for(e=f,u=0;u<o.length;u++)e=e.replace(new RegExp(i[u],"g"),r[u]);t[e]=n.utils.deepReplaceKeyName(t[f],i,r),f!=e&&delete t[f]}}return t},n.utils.isInArray=function(n,t){if(!n||!(n instanceof Array))return!1;for(var i=0;i<n.length;i++)if(t===n[i])return!0;return!1},n.utils.exists=function(n){switch(typeof n){case"string":return n.length>0;case"object":return n!==null;case"undefined":return!1}return!0},n.utils.empty=function(n){if(typeof n.hasChildNodes=="function")while(n.hasChildNodes())n.removeChild(n.firstChild)},n.utils.parseDimension=function(n){return typeof n=="string"?n===""?0:n.lastIndexOf("%")>-1?n:parseInt(n.replace("px",""),10):n},n.utils.getDimensions=function(t){return t&&t.style?{x:n.utils.parseDimension(t.style.left),y:n.utils.parseDimension(t.style.top),width:n.utils.parseDimension(t.style.width),height:n.utils.parseDimension(t.style.height)}:{}},n.utils.getElementWidth=function(t){return t?t==document.body?n.utils.parentNode(t).clientWidth:t.clientWidth>0?t.clientWidth:t.style?n.utils.parseDimension(t.style.width):null:null},n.utils.getElementHeight=function(t){return t?t==document.body?n.utils.parentNode(t).clientHeight:t.clientHeight>0?t.clientHeight:t.style?n.utils.parseDimension(t.style.height):null:null},n.utils.timeFormat=function(n){return str="00:00",n>0&&(str=Math.floor(n/60)<10?"0"+Math.floor(n/60)+":":Math.floor(n/60)+":",str+=Math.floor(n%60)<10?"0"+Math.floor(n%60):Math.floor(n%60)),str},n.utils.useNativeFullscreen=function(){return navigator&&navigator.vendor&&navigator.vendor.indexOf("Apple")==0},n.utils.parentNode=function(n){return n?n.parentNode?n.parentNode:n.parentElement?n.parentElement:n:document.body},n.utils.getBoundingClientRect=function(n){try{return n.getBoundingClientRect()}catch(t){return{left:n.offsetLeft+document.body.scrollLeft,top:n.offsetTop+document.body.scrollTop,width:n.offsetWidth,height:n.offsetHeight}}},n.utils.translateEventResponse=function(t,i){var r=n.utils.extend({},i),u,f;t!=n.api.events.JWPLAYER_FULLSCREEN||r.fullscreen?typeof r.data=="object"?(r=n.utils.extend(r,r.data),delete r.data):typeof r.metadata=="object"&&n.utils.deepReplaceKeyName(r.metadata,["__dot__","__spc__","__dsh__"],["."," ","-"]):(r.fullscreen=r.message=="true"?!0:!1,delete r.message),u=["position","duration","offset"];for(f in u)r[u[f]]&&(r[u[f]]=Math.round(r[u[f]]*1e3)/1e3);return r},n.utils.saveCookie=function(n,t){document.cookie="jwplayer."+n+"="+t+"; path=/"},n.utils.getCookies=function(){for(var i={},r=document.cookie.split("; "),n,t=0;t<r.length;t++)n=r[t].split("="),n[0].indexOf("jwplayer.")==0&&(i[n[0].substring(9,n[0].length)]=n[1]);return i},n.utils.readCookie=function(t){return n.utils.getCookies()[t]}}(jwplayer),function(n){n.events=function(){},n.events.COMPLETE="COMPLETE",n.events.ERROR="ERROR"}(jwplayer),function(n){n.events.eventdispatcher=function(t){var u=t,i,r;this.resetEventListeners=function(){i={},r=[]},this.resetEventListeners(),this.addEventListener=function(type,listener,count){try{n.utils.exists(i[type])||(i[type]=[]),typeof listener=="string"&&eval("listener = "+listener),i[type].push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1},this.removeEventListener=function(t,r){if(i[t]){try{for(var u=0;u<i[t].length;u++)if(i[t][u].listener.toString()==r.toString()){i[t].splice(u,1);break}}catch(f){n.utils.log("error",f)}return!1}},this.addGlobalListener=function(listener,count){try{typeof listener=="string"&&eval("listener = "+listener),r.push({listener:listener,count:count})}catch(err){n.utils.log("error",err)}return!1},this.removeGlobalListener=function(t){if(t){try{for(var i=0;i<r.length;i++)if(r[i].listener.toString()==t.toString()){r.splice(i,1);break}}catch(u){n.utils.log("error",u)}return!1}},this.sendEvent=function(t,f){var e,o;if(n.utils.exists(f)||(f={}),u&&n.utils.log(t,f),typeof i[t]!="undefined")for(e=0;e<i[t].length;e++){try{i[t][e].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),i[t][e].listener)}i[t][e]&&(i[t][e].count===1?delete i[t][e]:i[t][e].count>0&&(i[t][e].count=i[t][e].count-1))}for(o=0;o<r.length;o++){try{r[o].listener(f)}catch(s){n.utils.log("There was an error while handling a listener: "+s.toString(),r[o].listener)}r[o]&&(r[o].count===1?delete r[o]:r[o].count>0&&(r[o].count=r[o].count-1))}}}}(jwplayer),function(n){var t={};n.utils.animations=function(){},n.utils.animations.transform=function(n,t){n.style.webkitTransform=t,n.style.MozTransform=t,n.style.OTransform=t,n.style.msTransform=t},n.utils.animations.transformOrigin=function(n,t){n.style.webkitTransformOrigin=t,n.style.MozTransformOrigin=t,n.style.OTransformOrigin=t,n.style.msTransformOrigin=t},n.utils.animations.rotate=function(t,i){n.utils.animations.transform(t,["rotate(",i,"deg)"].join(""))},n.utils.cancelAnimation=function(n){delete t[n.id]},n.utils.fadeTo=function(i,r,u,f,e,o){var h,c,l,s;if((t[i.id]==o||!n.utils.exists(o))&&i.style.opacity!=r){if(h=+new Date,o>h&&setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},o-h),i.style.display=="none"&&(i.style.display="block"),n.utils.exists(f)||(f=i.style.opacity===""?1:i.style.opacity),i.style.opacity==r&&i.style.opacity!==""&&n.utils.exists(o)){r===0&&(i.style.display="none");return}if(n.utils.exists(o)||(o=h,t[i.id]=o),n.utils.exists(e)||(e=0),c=u>0?(h-o)/(u*1e3):0,c=c>1?1:c,l=r-f,s=f+c*l,s>1?s=1:s<0&&(s=0),i.style.opacity=s,e>0){t[i.id]=o+e*1e3,n.utils.fadeTo(i,r,u,f,0,t[i.id]);return}setTimeout(function(){n.utils.fadeTo(i,r,u,f,0,o)},10)}}}(jwplayer),function(n){n.utils.arrays=function(){},n.utils.arrays.indexOf=function(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return i;return-1},n.utils.arrays.remove=function(t,i){var r=n.utils.arrays.indexOf(t,i);r>-1&&t.splice(r,1)}}(jwplayer),function(n){n.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(n){function i(t,i){return n.utils.exists(i)?n.utils.extend(i,f[t]):i=f[t],i}function r(r,u){var e,o,s,f;if(t[r.tagName.toLowerCase()]&&!n.utils.exists(u))return t[r.tagName.toLowerCase()](r);u=i("element",u),e={};for(o in u)o!="length"&&(s=r.getAttribute(o),n.utils.exists(s)&&(e[u[o]]=s));return f=r.style["#background-color"],!f||f=="transparent"||f=="rgba(0, 0, 0, 0)"||(e.screencolor=f),e}function u(t,u){var o,s,h,f;u=i("media",u),o=[],s=n.utils.selectors("source",t);for(h in s)isNaN(h)||o.push(e(s[h]));return f=r(t,u),n.utils.exists(f.file)&&(o[0]={file:f.file}),f.levels=o,f}function e(n,t){t=i("source",t);var u=r(n,t);return u.width=u.width?u.width:0,u.bitrate=u.bitrate?u.bitrate:0,u}function o(n,t){t=i("video",t);return u(n,t)}n.utils.mediaparser=function(){};var f={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"}},t={};n.utils.mediaparser.parseMedia=function(n){return r(n)},t.media=u,t.audio=u,t.source=e,t.video=o}(jwplayer),function(n){n.utils.loaderstatus={NEW:"NEW",LOADING:"LOADING",ERROR:"ERROR",COMPLETE:"COMPLETE"},n.utils.scriptloader=function(t){var i=n.utils.loaderstatus.NEW,r=new n.events.eventdispatcher;n.utils.extend(this,r),this.load=function(){if(i==n.utils.loaderstatus.NEW){i=n.utils.loaderstatus.LOADING;var u=document.createElement("script");u.onload=function(){i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE)},u.onerror=function(){i=n.utils.loaderstatus.ERROR,r.sendEvent(n.events.ERROR)},u.onreadystatechange=function(){(u.readyState=="loaded"||u.readyState=="complete")&&(i=n.utils.loaderstatus.COMPLETE,r.sendEvent(n.events.COMPLETE))},document.getElementsByTagName("head")[0].appendChild(u),u.src=t}},this.getStatus=function(){return i}}}(jwplayer),function(n){n.utils.selectors=function(t,i){var r,u;return n.utils.exists(i)||(i=document),t=n.utils.strings.trim(t),r=t.charAt(0),r=="#"?i.getElementById(t.substr(1)):r=="."?i.getElementsByClassName?i.getElementsByClassName(t.substr(1)):n.utils.selectors.getElementsByTagAndClass("*",t.substr(1)):t.indexOf(".")>0?(u=t.split("."),n.utils.selectors.getElementsByTagAndClass(u[0],u[1])):i.getElementsByTagName(t)},n.utils.selectors.getElementsByTagAndClass=function(t,i,r){var s=[],f,u,o,e;for(n.utils.exists(r)||(r=document),f=r.getElementsByTagName(t),u=0;u<f.length;u++)if(n.utils.exists(f[u].className))for(o=f[u].className.split(" "),e=0;e<o.length;e++)o[e]==i&&s.push(f[u]);return s}}(jwplayer),function(n){n.utils.strings=function(){},n.utils.strings.trim=function(n){return n.replace(/^\s*/,"").replace(/\s*$/,"")},n.utils.strings.pad=function(n,t,i){for(i||(i="0");n.length<t;)n=i+n;return n},n.utils.strings.serialize=function(n){return n==null?null:n=="true"?!0:n=="false"?!1:isNaN(Number(n))||n.length>5||n.length==0?n:Number(n)},n.utils.strings.seconds=function(n){n=n.replace(",",".");var t=n.split(":"),i=0;return n.substr(-1)=="s"?i=Number(n.substr(0,n.length-1)):n.substr(-1)=="m"?i=Number(n.substr(0,n.length-1))*60:n.substr(-1)=="h"?i=Number(n.substr(0,n.length-1))*3600:t.length>1?(i=Number(t[t.length-1]),i+=Number(t[t.length-2])*60,t.length==3&&(i+=Number(t[t.length-3])*3600)):i=Number(n),i},n.utils.strings.xmlAttribute=function(n,t){for(var i=0;i<n.attributes.length;i++)if(n.attributes[i].name&&n.attributes[i].name.toLowerCase()==t.toLowerCase())return n.attributes[i].value.toString();return""},n.utils.strings.jsonToString=function(t){var u=u||{},f,r,e,o,i;if(u&&u.stringify)return u.stringify(t);if(f=typeof t,f!="object"||t===null)if(f=="string")t='"'+t.replace(/"/g,'\\"')+'"';else return String(t);else{r=[],e=t&&t.constructor==Array;for(o in t){i=t[o];switch(typeof i){case"string":i='"'+i.replace(/"/g,'\\"')+'"';break;case"object":n.utils.exists(i)&&(i=n.utils.strings.jsonToString(i))}e?typeof i!="function"&&r.push(String(i)):typeof i!="function"&&r.push('"'+o+'":'+String(i))}return e?"["+String(r)+"]":"{"+String(r)+"}"}}}(jwplayer),function(n){function i(n){var i=["true","false","t","f"];if(i.toString().indexOf(n.toLowerCase().replace(" ",""))>=0)return"boolean";if(t.test(n))return"color";if(isNaN(parseInt(n,10))||parseInt(n,10).toString().length!=n.length){if(!isNaN(parseFloat(n))&&parseFloat(n).toString().length==n.length)return"float"}else return"integer";return"string"}function r(t,i){if(!n.utils.exists(i))return t;switch(i){case"color":return t.length>0?u(t):null;case"integer":return parseInt(t,10);case"float":return parseFloat(t);case"boolean":return t.toLowerCase()=="true"?!0:t=="1"?!0:!1}return t}function u(n){switch(n.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:return n=n.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),n.length==3&&(n=n.charAt(0)+n.charAt(0)+n.charAt(1)+n.charAt(1)+n.charAt(2)+n.charAt(2)),parseInt(n,16)}return parseInt("000000",16)}var t=new RegExp(/^(#|0x)[0-9a-fA-F]{3,6}/);n.utils.typechecker=function(t,u){return u=n.utils.exists(u)?u:i(t),r(t,u)}}(jwplayer),function(n){n.utils.parsers=function(){},n.utils.parsers.localName=function(n){return n?n.localName?n.localName:n.baseName?n.baseName:"":""},n.utils.parsers.textContent=function(n){return n?n.textContent?n.textContent:n.text?n.text:"":""}}(jwplayer),function(n){n.utils.parsers.jwparser=function(){},n.utils.parsers.jwparser.PREFIX="jwplayer",n.utils.parsers.jwparser.parseEntry=function(t,i){for(var r=0;r<t.childNodes.length;r++)t.childNodes[r].prefix==n.utils.parsers.jwparser.PREFIX&&(i[n.utils.parsers.localName(t.childNodes[r])]=n.utils.strings.serialize(n.utils.parsers.textContent(t.childNodes[r])),n.utils.parsers.localName(t.childNodes[r])=="file"&&i.levels&&delete i.levels),!i.file&&String(i.link).toLowerCase().indexOf("youtube")>-1&&(i.file=i.link);return i},n.utils.parsers.jwparser.getProvider=function(t){if(t.type)return t.type;if(t.file.indexOf("youtube.com/w")>-1||t.file.indexOf("youtube.com/v")>-1||t.file.indexOf("youtu.be/")>-1)return"youtube";if(t.streamer&&t.streamer.indexOf("rtmp")==0)return"rtmp";if(t.streamer&&t.streamer.indexOf("http")==0)return"http";var i=n.utils.strings.extension(t.file);return extensions.hasOwnProperty(i)?extensions[i]:""}}(jwplayer),function(n){n.utils.parsers.mediaparser=function(){},n.utils.parsers.mediaparser.PREFIX="media",n.utils.parsers.mediaparser.parseGroup=function(t,i){for(var f=!1,u,r=0;r<t.childNodes.length;r++)if(t.childNodes[r].prefix==n.utils.parsers.mediaparser.PREFIX){if(!n.utils.parsers.localName(t.childNodes[r]))continue;switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"content":f||(i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url")),n.utils.strings.xmlAttribute(t.childNodes[r],"duration")&&(i.duration=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"duration"))),n.utils.strings.xmlAttribute(t.childNodes[r],"start")&&(i.start=n.utils.strings.seconds(n.utils.strings.xmlAttribute(t.childNodes[r],"start"))),t.childNodes[r].childNodes&&t.childNodes[r].childNodes.length>0&&(i=n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)),(n.utils.strings.xmlAttribute(t.childNodes[r],"width")||n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate")||n.utils.strings.xmlAttribute(t.childNodes[r],"url"))&&(i.levels||(i.levels=[]),i.levels.push({width:n.utils.strings.xmlAttribute(t.childNodes[r],"width"),bitrate:n.utils.strings.xmlAttribute(t.childNodes[r],"bitrate"),file:n.utils.strings.xmlAttribute(t.childNodes[r],"url")}));break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"keywords":i.tags=n.utils.parsers.textContent(t.childNodes[r]);break;case"thumbnail":i.image=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"credit":i.author=n.utils.parsers.textContent(t.childNodes[r]);break;case"player":u=t.childNodes[r].url,(u.indexOf("youtube.com")>=0||u.indexOf("youtu.be")>=0)&&(f=!0,i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url"));break;case"group":n.utils.parsers.mediaparser.parseGroup(t.childNodes[r],i)}}return i}}(jwplayer),function(n){function t(t){for(var i={},r=0;r<t.childNodes.length;r++)if(n.utils.parsers.localName(t.childNodes[r]))switch(n.utils.parsers.localName(t.childNodes[r]).toLowerCase()){case"enclosure":i.file=n.utils.strings.xmlAttribute(t.childNodes[r],"url");break;case"title":i.title=n.utils.parsers.textContent(t.childNodes[r]);break;case"pubdate":i.date=n.utils.parsers.textContent(t.childNodes[r]);break;case"description":i.description=n.utils.parsers.textContent(t.childNodes[r]);break;case"link":i.link=n.utils.parsers.textContent(t.childNodes[r]);break;case"category":i.tags?i.tags+=n.utils.parsers.textContent(t.childNodes[r]):i.tags=n.utils.parsers.textContent(t.childNodes[r])}return i=n.utils.parsers.mediaparser.parseGroup(t,i),i=n.utils.parsers.jwparser.parseEntry(t,i),new n.html5.playlistitem(i)}n.utils.parsers.rssparser=function(){},n.utils.parsers.rssparser.parse=function(i){for(var f=[],u,r=0;r<i.childNodes.length;r++)if(n.utils.parsers.localName(i.childNodes[r]).toLowerCase()=="channel")for(u=0;u<i.childNodes[r].childNodes.length;u++)n.utils.parsers.localName(i.childNodes[r].childNodes[u]).toLowerCase()=="item"&&f.push(t(i.childNodes[r].childNodes[u]));return f}}(jwplayer),function(n){var i={},t={};n.plugins=function(){},n.plugins.loadPlugins=function(r,u){return t[r]=new n.plugins.pluginloader(new n.plugins.model(i),u)},n.plugins.registerPlugin=function(r,u,f){var e=n.utils.getPluginName(r),o;if(i[e])i[e].registerPlugin(r,u,f);else{n.utils.log("A plugin ("+r+") was registered with the player that was not loaded. Please check your configuration.");for(o in t)t[o].pluginFailed()}}}(jwplayer),function(n){n.plugins.model=function(t){this.addPlugin=function(i){var r=n.utils.getPluginName(i);return t[r]||(t[r]=new n.plugins.plugin(i)),t[r]}}}(jwplayer),function(n){n.plugins.pluginmodes={FLASH:"FLASH",JAVASCRIPT:"JAVASCRIPT",HYBRID:"HYBRID"},n.plugins.plugin=function(t){function s(){switch(n.utils.getPluginPathType(t)){case n.utils.pluginPathType.ABSOLUTE:return t;case n.utils.pluginPathType.RELATIVE:return n.utils.getAbsolutePath(t,window.location.href);case n.utils.pluginPathType.CDN:var i=n.utils.getPluginName(t),r=n.utils.getPluginVersion(t),u=window.location.href.indexOf("https://")==0?o.replace("http://","https://secure"):o;return u+"/"+n.version.split(".")[0]+"/"+i+"/"+i+(r!==""?"-"+r:"")+".js"}}function h(){e=setTimeout(function(){r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE)},1e3)}function c(){r=n.utils.loaderstatus.ERROR,f.sendEvent(n.events.ERROR)}var o="http://lp.longtailvideo.com",r=n.utils.loaderstatus.NEW,i,u,e,f=new n.events.eventdispatcher;n.utils.extend(this,f),this.load=function(){if(r==n.utils.loaderstatus.NEW){if(t.lastIndexOf(".swf")>0){i=t,r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE);return}r=n.utils.loaderstatus.LOADING;var u=new n.utils.scriptloader(s());u.addEventListener(n.events.COMPLETE,h),u.addEventListener(n.events.ERROR,c),u.load()}},this.registerPlugin=function(t,o,s){e&&(clearTimeout(e),e=undefined),o&&s?(i=s,u=o):typeof o=="string"?i=o:typeof o=="function"?u=o:o||s||(i=t),r=n.utils.loaderstatus.COMPLETE,f.sendEvent(n.events.COMPLETE)},this.getStatus=function(){return r},this.getPluginName=function(){return n.utils.getPluginName(t)},this.getFlashPath=function(){if(i)switch(n.utils.getPluginPathType(i)){case n.utils.pluginPathType.ABSOLUTE:return i;case n.utils.pluginPathType.RELATIVE:return t.lastIndexOf(".swf")>0?n.utils.getAbsolutePath(i,window.location.href):n.utils.getAbsolutePath(i,s());case n.utils.pluginPathType.CDN:return i.indexOf("-")>-1?i+"h":i+"-h"}return null},this.getJS=function(){return u},this.getPluginmode=function(){return typeof i!="undefined"&&typeof u!="undefined"?n.plugins.pluginmodes.HYBRID:typeof i!="undefined"?n.plugins.pluginmodes.FLASH:typeof u!="undefined"?n.plugins.pluginmodes.JAVASCRIPT:void 0},this.getNewInstance=function(n,t,i){return new u(n,t,i)},this.getURL=function(){return t}}}(jwplayer),function(n){n.plugins.pluginloader=function(t,i){function h(){f||(f=!0,u=n.utils.loaderstatus.COMPLETE,s.sendEvent(n.events.COMPLETE))}function e(){var t,i;if(!f){t=0;for(plugin in r)i=r[plugin].getStatus(),(i==n.utils.loaderstatus.LOADING||i==n.utils.loaderstatus.NEW)&&t++;t==0&&h()}}var r={},u=n.utils.loaderstatus.NEW,o=!1,f=!1,s=new n.events.eventdispatcher;n.utils.extend(this,s),this.setupPlugins=function(n,t,i){var s={length:0,plugins:{}},f={length:0,plugins:{}},u,o,e;for(u in r)if(o=r[u].getPluginName(),r[u].getFlashPath()&&(s.plugins[r[u].getFlashPath()]=t.plugins[u],s.plugins[r[u].getFlashPath()].pluginmode=r[u].getPluginmode(),s.length++),r[u].getJS()&&(e=document.createElement("div"),e.id=n.id+"_"+o,e.style.position="absolute",e.style.zIndex=f.length+10,f.plugins[o]=r[u].getNewInstance(n,t.plugins[u],e),f.length++,typeof f.plugins[o].resize!="undefined")){n.onReady(i(f.plugins[o],e,!0));n.onResize(i(f.plugins[o],e))}return n.plugins=f.plugins,s},this.load=function(){u=n.utils.loaderstatus.LOADING,o=!0;for(var f in i)n.utils.exists(f)&&(r[f]=t.addPlugin(f),r[f].addEventListener(n.events.COMPLETE,e),r[f].addEventListener(n.events.ERROR,e));for(f in r)r[f].load();o=!1,e()},this.pluginFailed=function(){h()},this.getStatus=function(){return u}}}(jwplayer),function(n){var t=[];n.api=function(t){function v(n,t){return function(r,u,e,o){if(n.renderingMode=="flash"||n.renderingMode=="html5"){var s;u?(f[r]=u,s="jwplayer('"+n.id+"').callback('"+r+"')"):!u&&f[r]&&delete f[r],i.jwDockSetButton(r,s,e,o)}return t}}function a(t){s=[],n.utils.getOuterHTML(t.container)!=l&&n.api.destroyPlayer(t.id,l)}function y(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n&&(i=e[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u})}}function p(n,t){return function(i){var r,f;if(n==i.component&&(r=u[n][t],r))for(f=0;f<r.length;f++)typeof r[f]=="function"&&r[f].call(this,i)}}this.container=t,this.id=t.id;var r={},e={},u={},w=[],i=undefined,o=!1,s=[],h=undefined,l=n.utils.getOuterHTML(t),c={},f={};return this.getBuffer=function(){return this.callInternal("jwGetBuffer")},this.getContainer=function(){return this.container},this.getPlugin=function(t){var r=this,i={};return t=="dock"?n.utils.extend(i,{setButton:v(r,i),show:function(){return r.callInternal("jwDockShow"),i},hide:function(){return r.callInternal("jwDockHide"),i},onShow:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("dock",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="controlbar"?n.utils.extend(i,{show:function(){return r.callInternal("jwControlbarShow"),i},hide:function(){return r.callInternal("jwControlbarHide"),i},onShow:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("controlbar",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):t=="display"?n.utils.extend(i,{show:function(){return r.callInternal("jwDisplayShow"),i},hide:function(){return r.callInternal("jwDisplayHide"),i},onShow:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_SHOW,t),i},onHide:function(t){return r.componentListener("display",n.api.events.JWPLAYER_COMPONENT_HIDE,t),i}}):this.plugins[t]},this.callback=function(n){if(f[n])return f[n]()},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 i=this.callInternal("jwGetPlaylist"),t;for(this.renderingMode=="flash"&&n.utils.deepReplaceKeyName(i,["__dot__","__spc__","__dsh__"],["."," ","-"]),t=0;t<i.length;t++)n.utils.exists(i[t].index)||(i[t].index=t);return i},this.getPlaylistItem=function(t){return n.utils.exists(t)||(t=this.getCurrentItem()),this.getPlaylist()[t]},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(t){return n.utils.exists(t)?this.callInternal("jwSetFullscreen",t):this.callInternal("jwSetFullscreen",!this.callInternal("jwGetFullscreen")),this},this.setMute=function(t){return n.utils.exists(t)?this.callInternal("jwSetMute",t):this.callInternal("jwSetMute",!this.callInternal("jwGetMute")),this},this.lock=function(){return this},this.unlock=function(){return this},this.load=function(n){return this.callInternal("jwLoad",n),this},this.playlistItem=function(n){return this.callInternal("jwPlaylistItem",n),this},this.playlistPrev=function(){return this.callInternal("jwPlaylistPrev"),this},this.playlistNext=function(){return this.callInternal("jwPlaylistNext"),this},this.resize=function(n,t){if(this.renderingMode=="html5")i.jwResize(n,t);else{this.container.width=n,this.container.height=t;var r=document.getElementById(this.id+"_wrapper");r&&(r.style.width=n+"px",r.style.height=t+"px")}return this},this.play=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPlay",t),this},this.pause=function(t){return typeof t=="undefined"?(t=this.getState(),t==n.api.events.state.PLAYING||t==n.api.events.state.BUFFERING?this.callInternal("jwPause"):this.callInternal("jwPlay")):this.callInternal("jwPause",t),this},this.stop=function(){return this.callInternal("jwStop"),this},this.seek=function(n){return this.callInternal("jwSeek",n),this},this.setVolume=function(n){return this.callInternal("jwSetVolume",n),this},this.loadInstream=function(t,r){return h=new n.api.instream(this,i,t,r)},this.onBufferChange=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,t)},this.onBufferFull=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,t)},this.onError=function(t){return this.eventListener(n.api.events.JWPLAYER_ERROR,t)},this.onFullscreen=function(t){return this.eventListener(n.api.events.JWPLAYER_FULLSCREEN,t)},this.onMeta=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_META,t)},this.onMute=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_MUTE,t)},this.onPlaylist=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,t)},this.onPlaylistItem=function(t){return this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,t)},this.onReady=function(t){return this.eventListener(n.api.events.API_READY,t)},this.onResize=function(t){return this.eventListener(n.api.events.JWPLAYER_RESIZE,t)},this.onComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)},this.onSeek=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_SEEK,t)},this.onTime=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_TIME,t)},this.onVolume=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,t)},this.onBeforePlay=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,t)},this.onBeforeComplete=function(t){return this.eventListener(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE,t)},this.onBuffer=function(t){return this.stateListener(n.api.events.state.BUFFERING,t)},this.onPause=function(t){return this.stateListener(n.api.events.state.PAUSED,t)},this.onPlay=function(t){return this.stateListener(n.api.events.state.PLAYING,t)},this.onIdle=function(t){return this.stateListener(n.api.events.state.IDLE,t)},this.remove=function(){if(!o){throw"Cannot call remove() before player is ready";return}a(this)},this.setup=function(t){var r,i;return n.embed?(r=this.id,a(this),i=n(r),i.config=t,new n.embed(i)):this},this.registerPlugin=function(t,i,r){n.plugins.registerPlugin(t,i,r)},this.setPlayer=function(n,t){i=n,this.renderingMode=t},this.stateListener=function(t,i){return e[t]||(e[t]=[],this.eventListener(n.api.events.JWPLAYER_PLAYER_STATE,y(t))),e[t].push(i),this},this.detachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwDetachMedia")},this.attachMedia=function(){if(this.renderingMode=="html5")return this.callInternal("jwAttachMedia")},this.componentListener=function(n,t,i){return u[n]||(u[n]={}),u[n][t]||(u[n][t]=[],this.eventListener(t,p(n,t))),u[n][t].push(i),this},this.addInternalListener=function(t,i){try{t.jwAddEventListener(i,'function(dat) { jwplayer("'+this.id+'").dispatchEvent("'+i+'", dat); }')}catch(r){n.utils.log("Could not add internal listener")}},this.eventListener=function(n,t){return r[n]||(r[n]=[],i&&o&&this.addInternalListener(i,n)),r[n].push(t),this},this.dispatchEvent=function(n){var i,t;if(r[n])for(i=_utils.translateEventResponse(n,arguments[1]),t=0;t<r[n].length;t++)typeof r[n][t]=="function"&&r[n][t].call(this,i)},this.dispatchInstreamEvent=function(n){h&&h.dispatchEvent(n,arguments)},this.callInternal=function(){var t,n,r;if(o){for(t=arguments[0],n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);return typeof i!="undefined"&&typeof i[t]=="function"?n.length==2?i[t](n[0],n[1]):n.length==1?i[t](n[0]):i[t]():null}s.push(arguments)},this.playerReady=function(t){o=!0,i||this.setPlayer(document.getElementById(t.id)),this.container=document.getElementById(this.id);for(var u in r)this.addInternalListener(i,u);for(this.eventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,function(){c={}}),this.eventListener(n.api.events.JWPLAYER_MEDIA_META,function(t){n.utils.extend(c,t.metadata)}),this.dispatchEvent(n.api.events.API_READY);s.length>0;)this.callInternal.apply(this,s.shift())},this.getItemMeta=function(){return c},this.getCurrentItem=function(){return this.callInternal("jwGetPlaylistIndex")},this},n.api.selectPlayer=function(t){var i,r;return(n.utils.exists(t)||(t=0),t.nodeType?i=t:typeof t=="string"&&(i=document.getElementById(t)),i)?(r=n.api.playerById(i.id),r?r:n.api.addPlayer(new n.api(i))):typeof t=="number"?n.getPlayers()[t]:null},n.api.events={API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",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",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed"},n.api.events.state={BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},n.api.playerById=function(n){for(var i=0;i<t.length;i++)if(t[i].id==n)return t[i];return null},n.api.addPlayer=function(n){for(var i=0;i<t.length;i++)if(t[i]==n)return n;return t.push(n),n},n.api.destroyPlayer=function(i,r){for(var f=-1,u,o,s,e=0;e<t.length;e++)if(t[e].id==i){f=e;continue}if(f>=0){try{t[f].callInternal("jwDestroy")}catch(h){}u=document.getElementById(t[f].id),document.getElementById(t[f].id+"_wrapper")&&(u=document.getElementById(t[f].id+"_wrapper")),u&&(r?n.utils.setOuterHTML(u,r):(o=document.createElement("div"),s=u.id,u.id.indexOf("_wrapper")==u.id.length-8&&(newID=u.id.substring(0,u.id.length-8)),o.setAttribute("id",s),u.parentNode.replaceChild(o,u))),t.splice(f,1)}return null},n.getPlayers=function(){return t.slice(0)}}(jwplayer),_userPlayerReady=typeof playerReady=="function"?playerReady:undefined,playerReady=function(n){var t=jwplayer.api.playerById(n.id);t?t.playerReady(n):jwplayer.api.selectPlayer(n.id).playerReady(n),_userPlayerReady&&_userPlayerReady.call(this,n)},function(n){n.api.instream=function(t,i,r,u){function l(){c.callInternal("jwLoadInstream",r,u)}function a(n,t){e.jwInstreamAddEventListener(t,'function(dat) { jwplayer("'+c.id+'").dispatchInstreamEvent("'+t+'", dat); }')}function f(n,t){return o[n]||(o[n]=[],a(e,n)),o[n].push(t),this}function h(t,i){return s[t]||(s[t]=[],f(n.api.events.JWPLAYER_PLAYER_STATE,v(t))),s[t].push(i),this}function v(n){return function(t){var u=t.newstate,f=t.oldstate,i,r;if(u==n&&(i=s[u],i))for(r=0;r<i.length;r++)typeof i[r]=="function"&&i[r].call(this,{oldstate:f,newstate:u,type:t.type})}}var c=t,e=i,y=r,p=u,o={},s={};this.dispatchEvent=function(n,t){var r,i;if(o[n])for(r=_utils.translateEventResponse(n,t[1]),i=0;i<o[n].length;i++)typeof o[n][i]=="function"&&o[n][i].call(this,r)},this.onError=function(t){return f(n.api.events.JWPLAYER_ERROR,t)},this.onFullscreen=function(t){return f(n.api.events.JWPLAYER_FULLSCREEN,t)},this.onMeta=function(t){return f(n.api.events.JWPLAYER_MEDIA_META,t)},this.onMute=function(t){return f(n.api.events.JWPLAYER_MEDIA_MUTE,t)},this.onComplete=function(t){return f(n.api.events.JWPLAYER_MEDIA_COMPLETE,t)},this.onSeek=function(t){return f(n.api.events.JWPLAYER_MEDIA_SEEK,t)},this.onTime=function(t){return f(n.api.events.JWPLAYER_MEDIA_TIME,t)},this.onVolume=function(t){return f(n.api.events.JWPLAYER_MEDIA_VOLUME,t)},this.onBuffer=function(t){return h(n.api.events.state.BUFFERING,t)},this.onPause=function(t){return h(n.api.events.state.PAUSED,t)},this.onPlay=function(t){return h(n.api.events.state.PLAYING,t)},this.onIdle=function(t){return h(n.api.events.state.IDLE,t)},this.onInstreamClick=function(t){return f(n.api.events.JWPLAYER_INSTREAM_CLICK,t)},this.onInstreamDestroyed=function(t){return f(n.api.events.JWPLAYER_INSTREAM_DESTROYED,t)},this.play=function(n){e.jwInstreamPlay(n)},this.pause=function(n){e.jwInstreamPause(n)},this.seek=function(n){e.jwInstreamSeek(n)},this.destroy=function(){e.jwInstreamDestroy()},this.getState=function(){return e.jwInstreamGetState()},this.getDuration=function(){return e.jwInstreamGetDuration()},this.getPosition=function(){return e.jwInstreamGetPosition()},l()}}(jwplayer),function(n){function i(){var f,r,u;if(!document.body)return setTimeout(i,15);for(f=t.selectors.getElementsByTagAndClass("video","jwplayer"),r=0;r<f.length;r++)u=f[r],u.id==""&&(u.id="jwplayer_"+Math.round(Math.random()*1e5)),n(u.id).setup({})}var t=n.utils;n.embed=function(i){function s(n,t){for(var i in t)typeof n[i]=="function"&&n[i].call(n,t[i])}function f(){var f,e,o,h,c,y,l,a,v;if(u.getStatus()==t.loaderstatus.COMPLETE){for(f=0;f<r.modes.length;f++)if(r.modes[f].type&&n.embed[r.modes[f].type]){if(e=r.modes[f].config,o=r,e)for(o=t.extend(t.clone(r),e),h=["file","levels","playlist"],c=0;c<h.length;c++)if(y=h[c],t.exists(e[y]))for(l=0;l<h.length;l++)l!=c&&(a=h[l],t.exists(o[a])&&!t.exists(e[a])&&delete o[a]);if(v=new n.embed[r.modes[f].type](document.getElementById(i.id),r.modes[f],o,u,i),v.supportsConfig())return v.embed(),s(i,r.events),i}t.log("No suitable players found"),new n.embed.logo(t.extend({hide:!0},r.components.logo),"none",i.id)}}var e={width:400,height:300,components:{controlbar:{position:"over"}}},o=t.mediaparser.parseMedia(i.container),r=new n.embed.config(t.extend(e,o,i.config),this),u=n.plugins.loadPlugins(i.id,r.plugins);return u.addEventListener(n.events.COMPLETE,f),u.addEventListener(n.events.ERROR,f),u.load(),i},i()}(jwplayer),function(n){function i(n){var i=[{type:"flash",src:n?n:"/jwplayer/player.swf"},{type:"html5"},{type:"download"}];return t.isAndroid()&&(i[0]=i.splice(1,1,i[0])[0]),i}function o(n){var t=!1;return t=n instanceof Array||typeof n=="object"&&!n.position&&!n.size}function e(n){return typeof n=="string"&&(parseInt(n).toString()==n||n.toLowerCase().indexOf("px")>-1)?parseInt(n):n}function s(n){var u={},f,r,i;switch(t.typeOf(n.plugins)){case"object":for(f in n.plugins)u[t.getPluginName(f)]=f;break;case"string":for(r=n.plugins.split(","),i=0;i<r.length;i++)u[t.getPluginName(r[i])]=r[i]}return u}function f(n,i,r,u){var f,e;t.typeOf(n[i])!="object"&&(n[i]={}),f=n[i][r],t.typeOf(f)!="object"&&(n[i][r]=f={}),u&&(i=="plugins"?(e=t.getPluginName(r),f[u]=n[e+"."+u],delete n[e+"."+u]):(f[u]=n[r+"."+u],delete n[r+"."+u]))}var t=n.utils,r={players:"modes",autoplay:"autostart"},u=["playlist","dock","controlbar","logo","display"];n.embed.deserialize=function(n){var r=s(n),o,i;for(o in r)f(n,"plugins",r[o]);for(i in n)if(i.indexOf(".")>-1){var h=i.split("."),e=h[0],i=h[1];t.isInArray(u,e)?f(n,"components",e,i):r[e]&&f(n,"plugins",r[e],i)}return n},n.embed.config=function(f){var h=t.extend({},f),b,y,l,p,w,c,a,v;if(o(h.playlist)&&(b=h.playlist,delete h.playlist),h=n.embed.deserialize(h),h.height=e(h.height),h.width=e(h.width),typeof h.plugins=="string")for(y=h.plugins.split(","),typeof h.plugins!="object"&&(h.plugins={}),l=0;l<y.length;l++)p=t.getPluginName(y[l]),typeof h[p]=="object"?(h.plugins[y[l]]=h[p],delete h[p]):h.plugins[y[l]]={};for(w=0;w<u.length;w++)c=u[w],t.exists(h[c])&&(typeof h[c]!="object"?(h.components[c]||(h.components[c]={}),c=="logo"?h.components[c].file=h[c]:h.components[c].position=h[c],delete h[c]):(h.components[c]||(h.components[c]={}),t.extend(h.components[c],h[c]),delete h[c])),typeof h[c+"size"]!="undefined"&&(h.components[c]||(h.components[c]={}),h.components[c].size=h[c+"size"],delete h[c+"size"]);typeof h.icons!="undefined"&&(h.components.display||(h.components.display={}),h.components.display.icons=h.icons,delete h.icons);for(a in r)h[a]&&(h[r[a]]||(h[r[a]]=h[a]),delete h[a]);return h.flashplayer&&!h.modes?(v=i(h.flashplayer),delete h.flashplayer):h.modes?(typeof h.modes=="string"?v=i(h.modes):h.modes instanceof Array?v=h.modes:typeof h.modes=="object"&&h.modes.type&&(v=[h.modes]),delete h.modes):v=i(),h.modes=v,b&&(h.playlist=b),h}}(jwplayer),function(n){n.embed.download=function(t,i,r,u,f){function e(t,i,r){var f,u;return r?!1:(f=["image","sound","youtube","http"],i&&f.toString().indexOf(i)>-1)?!0:(!i||i&&i=="video")&&(u=n.utils.extension(t),u&&n.utils.extensionmap[u])?!0:!1}this.embed=function(){function v(){_imageWidth=i.display_image.naturalWidth,_imageHeight=i.display_image.naturalHeight,y()}function y(){n.utils.stretch(n.utils.stretching.UNIFORM,i.display_image,o,e,_imageWidth,_imageHeight)}var w=n.utils.extend({},r),i={},o=r.width?r.width:480,e,s,h,c,u,a,l,p;typeof o!="number"&&(o=parseInt(o,10)),e=r.height?r.height:320,typeof e!="number"&&(e=parseInt(e,10)),u={},r.playlist&&r.playlist.length?(u.file=r.playlist[0].file,h=r.playlist[0].image,u.levels=r.playlist[0].levels):(u.file=r.file,h=r.image,u.levels=r.levels),u.file?s=u.file:u.levels&&u.levels.length&&(s=u.levels[0].file),c=s?"pointer":"auto",a={display:{style:{cursor:c,width:o,height:e,backgroundColor:"#000",position:"relative",textDecoration:"none",border:"none",display:"block"}},display_icon:{style:{cursor:c,position:"absolute",display:s?"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:c,position:"absolute",display:s?"block":"none",top:(e-50)/2,left:(o-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:o,height:e,display:h?"block":"none",position:"absolute",cursor:c,left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1,border:"none"}}},l=function(i,r,u){var f=document.createElement(i);return f.id=u?u:t.id+"_jwplayer_"+r,n.utils.css(f,a[r].style),f},i.display=l("a","display",t.id),s&&i.display.setAttribute("href",n.utils.getAbsolutePath(s)),i.display_image=l("img","display_image"),i.display_image.setAttribute("alt","Click to download..."),h&&i.display_image.setAttribute("src",n.utils.getAbsolutePath(h)),!0&&(i.display_icon=l("div","display_icon"),i.display_iconBackground=l("div","display_iconBackground"),i.display.appendChild(i.display_image),i.display_iconBackground.appendChild(i.display_icon),i.display.appendChild(i.display_iconBackground)),_css=n.utils.css,_hide=function(n){_css(n,{display:"none"})},i.display_image.onerror=function(){_hide(i.display_image)},i.display_image.onload=v,t.parentNode.replaceChild(i.display,t),p=r.plugins&&r.plugins.logo?r.plugins.logo:{},i.display.appendChild(new n.embed.logo(r.components.logo,"download",t.id)),f.container=document.getElementById(f.id),f.setPlayer(i.display,"download")},this.supportsConfig=function(){var t,i;if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return e(t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&e(t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0}}}(jwplayer),function(n){n.embed.flash=function(t,i,r,u,f){function e(n,t,i){var r=document.createElement("param");r.setAttribute("name",t),r.setAttribute("value",i),n.appendChild(r)}function h(t,i,r){return function(){var e,o;r&&document.getElementById(f.id+"_wrapper").appendChild(i),e=document.getElementById(f.id).getPluginConfig("display"),t.resize(e.width,e.height),o={left:e.x,top:e.y},n.utils.css(i,o)}}function o(n,t){var f,i,r,u;if(n[t]){f=n[t];for(i in f)if(r=f[i],typeof r=="string")n[i]||(n[i]=r);else for(u in r)n[i+"."+u]||(n[i+"."+u]=r[u]);delete n[t]}}function c(t){var i,u,r,o,f,e;if(!t)return{};i={},u=[];for(r in t){o=n.utils.getPluginName(r),f=t[r],u.push(r);for(e in f)i[o+"."+e]=f[e]}return i.plugins=u.join(","),i}function s(t){var r=t.netstreambasepath?"":"netstreambasepath="+encodeURIComponent(window.location.href.split("#")[0])+"&",i;for(i in t)r+=typeof t[i]=="object"?i+"="+encodeURIComponent("[[JSON]]"+n.utils.strings.jsonToString(t[i]))+"&":i+"="+encodeURIComponent(t[i])+"&";return r.substring(0,r.length-1)}this.embed=function(){var d,g,p,w,nt,b,tt,k,v,a;r.id=f.id;var y,l=n.utils.extend({},r),it=l.width,rt=l.height;for(t.id+"_wrapper"==t.parentNode.id?y=document.getElementById(t.id+"_wrapper"):(y=document.createElement("div"),y.id=t.id+"_wrapper",n.utils.wrap(t,y),n.utils.css(y,{position:"relative",width:it,height:rt})),d=u.setupPlugins(f,l,h),d.length>0?n.utils.extend(l,c(d.plugins)):delete l.plugins,g=["height","width","modes","events"],p=0;p<g.length;p++)delete l[g[p]];w="opaque",l.wmode&&(w=l.wmode),o(l,"components"),o(l,"providers"),typeof l["dock.position"]!="undefined"&&l["dock.position"].toString().toLowerCase()=="false"&&(l.dock=l["dock.position"],delete l["dock.position"]),nt=n.utils.getCookies();for(b in nt)typeof l[b]=="undefined"&&(l[b]=nt[b]);tt="#000000",n.utils.isIE()?(v='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" bgcolor="'+tt+'" width="100%" height="100%" id="'+t.id+'" name="'+t.id+'" tabindex=0"">',v+='<param name="movie" value="'+i.src+'">',v+='<param name="allowfullscreen" value="true">',v+='<param name="allowscriptaccess" value="always">',v+='<param name="seamlesstabbing" value="true">',v+='<param name="wmode" value="'+w+'">',v+='<param name="flashvars" value="'+s(l)+'">',v+="<\/object>",n.utils.setOuterHTML(t,v),k=document.getElementById(t.id)):(a=document.createElement("object"),a.setAttribute("type","application/x-shockwave-flash"),a.setAttribute("data",i.src),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("bgcolor","#000000"),a.setAttribute("id",t.id),a.setAttribute("name",t.id),a.setAttribute("tabindex",0),e(a,"allowfullscreen","true"),e(a,"allowscriptaccess","always"),e(a,"seamlesstabbing","true"),e(a,"wmode",w),e(a,"flashvars",s(l)),t.parentNode.replaceChild(a,t),k=a),f.container=k,f.setPlayer(k,"flash")},this.supportsConfig=function(){var t,i;if(n.utils.hasFlash())if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return flashCanPlay(t.file,t.provider);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&flashCanPlay(t.levels[i].file,t.provider))return!0}else return!0;return!1},flashCanPlay=function(t,i){var u=["video","http","sound","image"],r;return i&&u.toString().indexOf(i)<0?!0:(r=n.utils.extension(t),!r)?!0:n.utils.exists(n.utils.extensionmap[r])&&!n.utils.exists(n.utils.extensionmap[r].flash)?!1:!0}}}(jwplayer),function(n){n.embed.html5=function(t,i,r,u,f){function e(n,i,r){return function(){var f=document.getElementById(t.id+"_displayarea");r&&f.appendChild(i),n.resize(f.clientWidth,f.clientHeight),i.left=f.style.left,i.top=f.style.top}}this.embed=function(){var i,s,o,h;if(n.html5){for(u.setupPlugins(f,r,e),t.innerHTML="",i=n.utils.extend({screencolor:"0x000000"},r),s=["plugins","modes","events"],o=0;o<s.length;o++)delete i[s[o]];i.levels&&!i.sources&&(i.sources=r.levels),i.skin&&i.skin.toLowerCase().indexOf(".zip")>0&&(i.skin=i.skin.replace(/\.zip/i,".xml")),h=new(n.html5(t).setup)(i),f.container=document.getElementById(f.id),f.setPlayer(h,"html5")}else return null},this.supportsConfig=function(){var t,i;if(!!n.vid.canPlayType)if(r){if(t=n.utils.getFirstPlaylistItemFromConfig(r),typeof t.file=="undefined"&&typeof t.levels=="undefined")return!0;if(t.file)return html5CanPlay(n.vid,t.file,t.provider,t.playlistfile);if(t.levels&&t.levels.length)for(i=0;i<t.levels.length;i++)if(t.levels[i].file&&html5CanPlay(n.vid,t.levels[i].file,t.provider,t.playlistfile))return!0}else return!0;return!1},html5CanPlay=function(t,i,r,u){if(u)return!1;if(r&&r=="youtube")return!0;if(r&&r!="video"&&r!="http"&&r!="sound"||navigator.userAgent.match(/BlackBerry/i)!==null)return!1;var f=n.utils.extension(i);return!n.utils.exists(f)||!n.utils.exists(n.utils.extensionmap[f])?!0:n.utils.exists(n.utils.extensionmap[f].html5)?n.utils.isLegacyAndroid()&&f.match(/m4v|mp4/)?!0:browserCanPlay(t,n.utils.extensionmap[f].html5):!1},browserCanPlay=function(n,t){return t?n.canPlayType(t)?!0:t=="audio/mp3"&&navigator.userAgent.match(/safari/i)?n.canPlayType("audio/mpeg"):!1:!0}}}(jwplayer),function(n){n.embed.logo=function(t,i,r){function s(){h(),l(),a()}function h(){if(e.prefix){var i=n.version.split(/\W/).splice(0,2).join("/");e.prefix.indexOf(i)<0&&(e.prefix+=i+"/")}u=n.utils.extend({},e,t)}function c(){var n={border:"none",textDecoration:"none",position:"absolute",cursor:"pointer",zIndex:10},t,i;n.display=u.hide?"none":"block",t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=u.margin;return n}function l(){(f=document.createElement("img"),f.id=r+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,c()),o()},u.file)&&(f.src=u.file.indexOf("http://")===0?u.file:u.prefix+u.file)}function a(){u.link?(f.onmouseover=y,f.onmouseout=o,f.onclick=v):this.mouseEnabled=!1}function v(n){typeof n!="undefined"&&(n.preventDefault(),n.stopPropagation()),u.link&&window.open(u.link,u.linktarget);return}function o(){u.link&&(f.style.opacity=u.out);return}function y(){u.hide&&(f.style.opacity=u.over);return}var e={prefix:"http://l.longtailvideo.com/"+i+"/",file:"",link:"",linktarget:"_top",margin:8,out:.5,over:1,timeout:5,hide:!1,position:"bottom-left"},f,u;if(_css=n.utils.css,s(),u.file)return f}}(jwplayer),function(n){n.html5=function(t){var i=t;return this.setup=function(t){return n.utils.extend(this,new n.html5.api(i,t)),this},this}}(jwplayer),function(n){var t=n.utils,i=t.css,r=t.isIOS();n.html5.view=function(u,f,e){function at(){function n(){return c.skin.getComponentSettings("display")&&c.skin.getComponentSettings("display").backgroundcolor?c.skin.getComponentSettings("display").backgroundcolor:parseInt("000000",16)}h=document.createElement("div"),h.id=l.id,h.className=l.className,_videowrapper=document.createElement("div"),_videowrapper.id=h.id+"_video_wrapper",l.id=h.id+"_video",i(h,{position:"relative",height:o.height,width:o.width,padding:0,backgroundColor:n(),zIndex:0}),i(l,{width:"100%",height:"100%",top:0,left:0,zIndex:1,margin:"auto",display:"block"}),i(_videowrapper,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0}),t.wrap(l,h),t.wrap(l,_videowrapper),s=document.createElement("div"),s.id=h.id+"_displayarea",h.appendChild(s),_instreamArea=document.createElement("div"),_instreamArea.id=h.id+"_instreamarea",i(_instreamArea,{overflow:"hidden",position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:100,background:"000000",display:"none"}),h.appendChild(_instreamArea)}function vt(){for(var n,i=0;i<o.plugins.order.length;i++)n=o.plugins.order[i],t.exists(o.plugins.object[n].getDisplayElement)&&(o.plugins.object[n].height=t.parseDimension(o.plugins.object[n].getDisplayElement().style.height),o.plugins.object[n].width=t.parseDimension(o.plugins.object[n].getDisplayElement().style.width),o.plugins.config[n].currentPosition=o.plugins.config[n].position);et()}function yt(){rt=o.fullscreen}function pt(t){if(!g){switch(t.newstate){case n.api.events.state.PLAYING:o.getMedia()&&o.getMedia().hasChrome()&&(s.style.display="none");break;default:s.style.display="block"}w()}}function et(){var i=o.getMedia()?o.getMedia().getDisplayElement():null,r,u;if(t.exists(i))for(y!=i&&(y&&y.parentNode&&y.parentNode.replaceChild(i,y),y=i),r=0;r<o.plugins.order.length;r++)u=o.plugins.order[r],t.exists(o.plugins.object[u].getDisplayElement)&&(o.plugins.config[u].currentPosition=o.plugins.config[u].position);p(o.width,o.height)}function wt(t){switch(t.keyCode){case 27:c.jwGetFullscreen()&&c.jwSetFullscreen(!1);break;case 32:c.jwGetState()!=n.api.events.state.IDLE&&c.jwGetState()!=n.api.events.state.PAUSED?c.jwPause():c.jwPlay()}}function p(n,u){var e,p,c,l,g,f,y,b;if(h.style.display!="none"){if(e=[].concat(o.plugins.order),e.reverse(),d=e.length+2,rt&&k())try{o.fullscreen&&!o.getMedia().getDisplayElement().webkitDisplayingFullscreen&&(o.fullscreen=!1)}catch(nt){}if(o.fullscreen)k()||r||it(dt,e,!0);else{a=n,v=u,a=typeof n=="string"&&n.indexOf("%")>0?t.getElementWidth(t.parentNode(h))*parseInt(n.replace("%"),"")/100:n,v=typeof u=="string"&&u.indexOf("%")>0?t.getElementHeight(t.parentNode(h))*parseInt(u.replace("%"),"")/100:u,p={top:0,bottom:0,left:0,right:0,width:a,height:v,position:"absolute"},i(s,p),c={};try{l=o.plugins.object.display.getDisplayElement()}catch(nt){}l&&(c.width=t.parseDimension(l.style.width),c.height=t.parseDimension(l.style.height)),g=t.extend({},p,c,{zIndex:_instreamArea.style.zIndex,display:_instreamArea.style.display}),i(_instreamArea,g),i(h,{height:v,width:a}),f=it(bt,e),f.length>0&&(d+=f.length,y=f.indexOf("playlist"),b=f.indexOf("controlbar"),y>=0&&b>=0&&(f[y]=f.splice(b,1,f[y])[0]),it(kt,f,!0)),ut=t.getElementWidth(s),ft=t.getElementHeight(s)}w()}}function it(r,u,f){var c,h,e,s,l,a;for(tt=0,c=[],h=0;h<u.length;h++)e=u[h],t.exists(o.plugins.object[e].getDisplayElement)&&(o.plugins.config[e].currentPosition!=n.html5.view.positions.NONE?(s=r(e,d--),s?(l=s.width,a=s.height,f&&(delete s.width,delete s.height),i(o.plugins.object[e].getDisplayElement(),s),o.plugins.object[e].resize(l,a)):c.push(e)):i(o.plugins.object[e].getDisplayElement(),{display:"none"}));return c}function bt(n,i){if(t.exists(o.plugins.object[n].getDisplayElement)&&o.plugins.config[n].position&&ni(o.plugins.config[n].position)){t.exists(o.plugins.object[n].getDisplayElement().parentNode)||h.appendChild(o.plugins.object[n].getDisplayElement());var r=ot(n);return r.zIndex=i,r}return!1}function kt(n,i){return t.exists(o.plugins.object[n].getDisplayElement().parentNode)||s.appendChild(o.plugins.object[n].getDisplayElement()),{position:"absolute",width:t.getElementWidth(s)-t.parseDimension(s.style.right),height:t.getElementHeight(s)-t.parseDimension(s.style.bottom),zIndex:i}}function dt(n,t){return{position:"fixed",width:o.width,height:o.height,zIndex:t}}function ni(t){return[n.html5.view.positions.TOP,n.html5.view.positions.RIGHT,n.html5.view.positions.BOTTOM,n.html5.view.positions.LEFT].toString().indexOf(t.toUpperCase())>-1}function k(){return c.jwGetState()!=n.api.events.state.IDLE&&!b&&o.getMedia()&&o.getMedia().getDisplayElement()&&o.getMedia().getDisplayElement().webkitSupportsFullscreen&&t.useNativeFullscreen()?!0:!1}var c=u,l=f,o=e,h,a,v,s,d,lt,y,b=!1,rt=!1,ut,ft,ii,g,nt,tt,w,ot,st,ht,ct,gt,ti;this.setup=function(){o&&o.getMedia()&&(l=o.getMedia().getDisplayElement()),at(),vt(),c.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,pt),c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_LOADED,et),c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY,yt),c.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_META,function(){w()});var i;t.exists(window.onresize)&&(i=window.onresize),window.onresize=function(n){if(t.exists(i))try{i(n)}catch(u){}if(c.jwGetFullscreen()){if(!k()){var r=t.getBoundingClientRect(document.body);o.width=Math.abs(r.left)+Math.abs(r.right),o.height=window.innerHeight,p(o.width,o.height)}}else p(o.width,o.height)}},w=this.resizeMedia=function(){var u,f,e;if(s.style.position="absolute",u=o.getMedia()?o.getMedia().getDisplayElement():nt,u)if(u&&u.tagName.toLowerCase()=="video"){if(!u.videoWidth||!u.videoHeight){u.style.width=s.style.width,u.style.height=s.style.height;return}u.style.position="absolute",t.fadeTo(u,1,.25),u.parentNode&&(u.parentNode.style.left=s.style.left,u.parentNode.style.top=s.style.top),o.fullscreen&&c.jwGetStretching()==n.utils.stretching.EXACTFIT&&!t.isMobile()?(f=document.createElement("div"),t.stretch(n.utils.stretching.UNIFORM,f,t.getElementWidth(s),t.getElementHeight(s),ut,ft),t.stretch(n.utils.stretching.EXACTFIT,u,t.parseDimension(f.style.width),t.parseDimension(f.style.height),u.videoWidth?u.videoWidth:400,u.videoHeight?u.videoHeight:300),i(u,{left:f.style.left,top:f.style.top})):r||t.stretch(c.jwGetStretching(),u,t.getElementWidth(s),t.getElementHeight(s),u.videoWidth?u.videoWidth:400,u.videoHeight?u.videoHeight:300)}else e=o.plugins.object.display.getDisplayElement(),e?o.getMedia().resize(t.parseDimension(e.style.width),t.parseDimension(e.style.height)):o.getMedia().resize(t.parseDimension(s.style.width),t.parseDimension(s.style.height))},ot=this.getComponentPosition=function(i){var r={position:"absolute",margin:0,padding:0,top:null},u=o.plugins.config[i].currentPosition.toLowerCase();switch(u.toUpperCase()){case n.html5.view.positions.TOP:r.top=t.parseDimension(s.style.top),r.left=t.parseDimension(s.style.left),r.width=t.getElementWidth(s)-t.parseDimension(s.style.left)-t.parseDimension(s.style.right),r.height=o.plugins.object[i].height,s.style[u]=t.parseDimension(s.style[u])+o.plugins.object[i].height+"px",s.style.height=t.getElementHeight(s)-r.height+"px";break;case n.html5.view.positions.RIGHT:r.top=t.parseDimension(s.style.top),r.right=t.parseDimension(s.style.right),r.width=o.plugins.object[i].width,r.height=t.getElementHeight(s)-t.parseDimension(s.style.top)-t.parseDimension(s.style.bottom),s.style.width=t.getElementWidth(s)-r.width+"px";break;case n.html5.view.positions.BOTTOM:r.left=t.parseDimension(s.style.left),r.width=t.getElementWidth(s)-t.parseDimension(s.style.left)-t.parseDimension(s.style.right),r.height=o.plugins.object[i].height,r.bottom=t.parseDimension(s.style.bottom+tt),tt+=r.height,s.style.height=t.getElementHeight(s)-r.height+"px";break;case n.html5.view.positions.LEFT:r.top=t.parseDimension(s.style.top),r.left=t.parseDimension(s.style.left),r.width=o.plugins.object[i].width,r.height=t.getElementHeight(s)-t.parseDimension(s.style.top)-t.parseDimension(s.style.bottom),s.style[u]=t.parseDimension(s.style[u])+o.plugins.object[i].width+"px",s.style.width=t.getElementWidth(s)-r.width+"px"}return r},this.resize=p,gt=this.fullscreen=function(n){var u,f,e,c;if(!r){try{u=o.getMedia().getDisplayElement()}catch(l){}if(n&&(ht=o.width,ct=o.height),f={position:"fixed",width:"100%",height:"100%",top:0,left:0,zIndex:2147483e3},e={position:"relative",height:ht,width:ct,zIndex:0},k()&&u&&u.webkitSupportsFullscreen){if(n&&!u.webkitDisplayingFullscreen)try{i(u,f),t.transform(u),st=s.style.display,s.style.display="none",u.webkitEnterFullscreen()}catch(y){}else if(!n){if(i(u,e),w(),u.webkitDisplayingFullscreen)try{u.webkitExitFullscreen()}catch(y){}s.style.display=st}b=!1}else n?(document.onkeydown=wt,clearInterval(lt),c=t.getBoundingClientRect(document.body),o.width=Math.abs(c.left)+Math.abs(c.right),o.height=window.innerHeight,i(h,f),f.zIndex=1,o.getMedia()&&o.getMedia().getDisplayElement()&&i(o.getMedia().getDisplayElement(),f),f.zIndex=2,i(s,f),b=!0):(document.onkeydown="",o.width=a,o.height=v,i(h,e),b=!1),p(o.width,o.height)}},this.setupInstream=function(n,i){t.css(_instreamArea,{display:"block",position:"absolute"}),s.style.display="none",_instreamArea.appendChild(n),nt=i,g=!0},ti=this.destroyInstream=function(){_instreamArea.style.display="none",_instreamArea.innerHTML="",s.style.display="block",nt=null,g=!1,p(o.width,o.height)}},n.html5.view.positions={TOP:"TOP",RIGHT:"RIGHT",BOTTOM:"BOTTOM",LEFT:"LEFT",OVER:"OVER",NONE:"NONE"}}(jwplayer),function(n){var t={backgroundcolor:"",margin:10,font:"Arial,sans-serif",fontsize:10,fontcolor:parseInt("000000",16),fontstyle:"normal",fontweight:"bold",buttoncolor:parseInt("ffffff",16),position:n.html5.view.positions.BOTTOM,idlehide:!1,hideplaylistcontrols:!1,forcenextprev:!1,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=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.controlbar=function(i,r){function c(){return d||(d=u.skin.getSkinElement("controlbar","background"),d||(d={width:0,height:0,src:null})),d}function ci(){var t,n,i;pt=0,wt=0,yt=0,p||(t={height:c().height,backgroundColor:e.backgroundcolor},o=document.createElement("div"),o.id=u.id+"_jwplayer_controlbar",_css(o,t)),n=u.skin.getSkinElement("controlbar","capLeft"),i=u.skin.getSkinElement("controlbar","capRight"),n&&s("capLeft","left",!1,o),w("background",o,{position:"absolute",height:c().height,left:n?n.width:0,zIndex:0},"img"),c().src&&(f.background.src=c().src),w("elements",o,{position:"relative",height:c().height,zIndex:1}),i&&s("capRight","right",!1,o)}function ni(){var t=["timeSlider","volumeSlider","timeSliderRail","volumeSliderRail"],i,n;for(i in t)n=t[i],typeof f[n]!="undefined"&&(l[n]=_utils.getBoundingClientRect(f[n]))}function ht(t){if(!v)if(clearTimeout(ut),e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())switch(u.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:o&&o.style.opacity<1&&(!e.idlehide||_utils.exists(t))&&(st=!1,setTimeout(function(){st||ct()},100)),e.idlehide&&(ut=setTimeout(function(){ti()},2e3));break;default:st=!0,t&&ct(),ut=setTimeout(function(){ti()},2e3)}else ct()}function ti(){v||(lt(),o.style.opacity==1&&(_utils.cancelAnimation(o),_utils.fadeTo(o,0,.1,1,0)))}function ct(){v||(tt(),o.style.opacity==0&&(_utils.cancelAnimation(o),_utils.fadeTo(o,1,.1,0,0)))}function ii(n){return function(){et&&ft!=n&&(ft=n,gt.sendEvent(n,{component:"controlbar",boundingRect:li()}))}}function li(){return e.position==n.html5.view.positions.OVER||u.jwGetFullscreen()?_utils.getDimensions(o):{x:0,y:0,width:0,height:0}}function w(n,t,i,r){var u;return p?u=document.getElementById(o.id+"_"+n):(r||(r="div"),u=document.createElement(r),f[n]=u,u.id=o.id+"_"+n,t.appendChild(u)),_utils.exists(i)&&_css(u,i),u}function ai(){if(u.jwGetHeight()<=40){e.layout=_utils.clone(e.layout);for(var n=0;n<e.layout.left.elements.length;n++)e.layout.left.elements[n].name=="fullscreen"&&e.layout.left.elements.splice(n,1);for(n=0;n<e.layout.right.elements.length;n++)e.layout.right.elements[n].name=="fullscreen"&&e.layout.right.elements.splice(n,1);oi()}at(e.layout.left),at(e.layout.center),at(e.layout.right)}function at(n,t){var u=n.position=="right"?"right":"left",r=_utils.extend([],n.elements),n,i;for(_utils.exists(t)&&r.reverse(),n=w(n.position+"Group",f.elements,{float:"left",styleFloat:"left",cssFloat:"left",height:"100%"}),i=0;i<r.length;i++)yi(r[i],u,n)}function vi(){return yt++}function yi(n,t,i){var v,o,h,y,l,r,e;if(i||(i=f.elements),n.type=="divider"){s("divider"+vi(),t,!0,i,undefined,n.width,n.element);return}switch(n.name){case"play":s("playButton",t,!1,i),s("pauseButton",t,!0,i),a("playButton","jwPlay"),a("pauseButton","jwPause");break;case"prev":s("prevButton",t,!0,i),a("prevButton","jwPlaylistPrev");break;case"stop":s("stopButton",t,!0,i),a("stopButton","jwStop");break;case"next":s("nextButton",t,!0,i),a("nextButton","jwPlaylistNext");break;case"elapsed":s("elapsedText",t,!0,i,null,null,u.skin.getSkinElement("controlbar","elapsedBackground"));break;case"time":o=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapLeft"))?u.skin.getSkinElement("controlbar","timeSliderCapLeft").width:0,h=_utils.exists(u.skin.getSkinElement("controlbar","timeSliderCapRight"))?u.skin.getSkinElement("controlbar","timeSliderCapRight").width:0,v=t=="left"?o:h,l={height:c().height,position:"relative",float:"left",styleFloat:"left",cssFloat:"left"},r=w("timeSlider",i,l),s("timeSliderCapLeft",t,!0,r,"relative"),s("timeSliderRail",t,!1,r,"relative"),s("timeSliderBuffer",t,!1,r,"absolute"),s("timeSliderProgress",t,!1,r,"absolute"),s("timeSliderThumb",t,!1,r,"absolute"),s("timeSliderCapRight",t,!0,r,"relative"),ui("time");break;case"fullscreen":s("fullscreenButton",t,!1,i),s("normalscreenButton",t,!0,i),a("fullscreenButton","jwSetFullscreen",!0),a("normalscreenButton","jwSetFullscreen",!1);break;case"volume":o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0,h=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapRight"))?u.skin.getSkinElement("controlbar","volumeSliderCapRight").width:0,v=t=="left"?o:h,y=u.skin.getSkinElement("controlbar","volumeSliderRail").width+o+h,l={height:c().height,position:"relative",width:y,float:"left",styleFloat:"left",cssFloat:"left"},e=w("volumeSlider",i,l),s("volumeSliderCapLeft",t,!1,e,"relative"),s("volumeSliderRail",t,!1,e,"relative"),s("volumeSliderProgress",t,!1,e,"absolute"),s("volumeSliderThumb",t,!1,e,"absolute"),s("volumeSliderCapRight",t,!1,e,"relative"),ui("volume");break;case"mute":s("muteButton",t,!1,i),s("unmuteButton",t,!0,i),a("muteButton","jwSetMute",!0),a("unmuteButton","jwSetMute",!1);break;case"duration":s("durationText",t,!0,i,null,null,u.skin.getSkinElement("controlbar","durationBackground"))}}function s(n,t,i,r,o,s,h){var l,a,y,v;(_utils.exists(u.skin.getSkinElement("controlbar",n))||n.indexOf("Text")>0||n.indexOf("divider")===0)&&(l={height:"100%",position:o?o:"relative",display:"block",float:"left",styleFloat:"left",cssFloat:"left"},(n.indexOf("next")===0||n.indexOf("prev")===0)&&(u.jwGetPlaylist().length<2||e.hideplaylistcontrols.toString()=="true")&&e.forcenextprev.toString()!="true"&&(i=!1,l.display="none"),n.indexOf("Text")>0?(n.innerhtml="00:00",l.font=e.fontsize+"px/"+(c().height+1)+"px "+e.font,l.color=e.fontcolor,l.textAlign="center",l.fontWeight=e.fontweight,l.fontStyle=e.fontstyle,l.cursor="default",h&&(l.background="url("+h.src+") no-repeat center",l.backgroundSize="100% "+c().height+"px"),l.padding="0 5px"):n.indexOf("divider")===0?s?isNaN(parseInt(s))||(a=parseInt(s)):h?(y=u.skin.getSkinElement("controlbar",h),y&&(l.background="url("+y.src+") repeat-x center left",a=y.width)):(l.background="url("+u.skin.getSkinElement("controlbar","divider").src+") repeat-x center left",a=u.skin.getSkinElement("controlbar","divider").width):(l.background="url("+u.skin.getSkinElement("controlbar",n).src+") repeat-x center left",a=u.skin.getSkinElement("controlbar",n).width),t=="left"?i&&(pt+=a):t=="right"&&i&&(wt+=a),_utils.typeOf(r)=="undefined"&&(r=f.elements),l.width=a,p?_css(f[n],l):(v=w(n,r,l),_utils.exists(u.skin.getSkinElement("controlbar",n+"Over"))&&(v.onmouseover=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n+"Over").src,")"].join("")},v.onmouseout=function(){v.style.backgroundImage=["url(",u.skin.getSkinElement("controlbar",n).src,")"].join("")}),n.indexOf("divider")==0&&v.setAttribute("class","divider"),v.innerHTML=" "))}function pi(){u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,wi),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,bi),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER,g),u.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ei),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_TIME,b),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,fi),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_VOLUME,si),u.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,di)}function wi(){e.hideplaylistcontrols||(u.jwGetPlaylist().length>1||e.forcenextprev.toString()=="true"?(_show(f.nextButton),_show(f.prevButton)):(_hide(f.nextButton),_hide(f.prevButton)),vt(),ri())}function bi(n){h=u.jwGetPlaylist()[n.index].duration,rt=-1,b({id:u.id,duration:h,position:0}),g({id:u.id,bufferProgress:0})}function ri(){b({id:u.id,duration:u.jwGetDuration(),position:0}),g({id:u.id,bufferProgress:0}),fi({id:u.id,mute:u.jwGetMute()}),ei({id:u.id,newstate:n.api.events.state.IDLE}),si({id:u.id,volume:u.jwGetVolume()})}function a(n,t,i){if(!p&&_utils.exists(u.skin.getSkinElement("controlbar",n))){var r=f[n];_utils.exists(r)&&(_css(r,{cursor:"pointer"}),r.onmouseup=t=="fullscreen"?function(n){n.stopPropagation(),u.jwSetFullscreen(!u.jwGetFullscreen())}:function(n){n.stopPropagation(),_utils.exists(i)?u[t](i):u[t]()})}}function ui(n){if(!p){var t=f[n+"Slider"];_css(f.elements,{cursor:"pointer"}),_css(t,{cursor:"pointer"}),t.onmousedown=function(){y=n},t.onmouseup=function(n){n.stopPropagation(),ki(n.pageX)},t.onmousemove=function(t){if(y=="time"){it=!0;var i=t.pageX-l[n+"Slider"].left-window.pageXOffset;_css(f[y+"SliderThumb"],{left:i})}}}}function ki(t){var f,i,r;it=!1,y=="time"?(f=t-l.timeSliderRail.left+window.pageXOffset,i=f/l.timeSliderRail.width*h,i<0?i=0:i>h&&(i=h-3),(u.jwGetState()==n.api.events.state.PAUSED||u.jwGetState()==n.api.events.state.IDLE)&&u.jwPlay(),u.jwSeek(i)):y=="volume"&&(f=t-l.volumeSliderRail.left-window.pageXOffset,r=Math.round(f/l.volumeSliderRail.width*100),r<10?r=0:r>100&&(r=100),u.jwGetMute()&&u.jwSetMute(!1),u.jwSetVolume(r)),y="none"}function g(n){if(_utils.exists(n.bufferPercent)&&(nt=n.bufferPercent),l.timeSliderRail){var t=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),i=l.timeSliderRail.width,r=isNaN(Math.round(i*nt/100))?0:Math.round(i*nt/100);_css(f.timeSliderBuffer,{width:r,left:t?t.width:0})}}function fi(n){n.mute?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function ei(t){t.newstate==n.api.events.state.BUFFERING||t.newstate==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton)),ht(),t.newstate==n.api.events.state.IDLE?(_hide(f.timeSliderBuffer),_hide(f.timeSliderProgress),_hide(f.timeSliderThumb),b({id:u.id,duration:u.jwGetDuration(),position:0})):(_show(f.timeSliderBuffer),t.newstate!=n.api.events.state.BUFFERING&&(_show(f.timeSliderProgress),_show(f.timeSliderThumb)))}function di(n){g({bufferPercent:0}),b(_utils.extend(n,{position:0,duration:h}))}function b(n){var t,o,i,e;if(_utils.exists(n.position)&&(k=n.position),t=!1,_utils.exists(n.duration)&&n.duration!=h&&(h=n.duration,t=!0),o=k/h,i=l.timeSliderRail,i){var s=isNaN(Math.round(i.width*o))?0:Math.round(i.width*o),r=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),c=s+(r?r.width:0);f.timeSliderProgress&&(_css(f.timeSliderProgress,{width:s,left:r?r.width:0}),it||f.timeSliderThumb&&(f.timeSliderThumb.style.left=c+"px"))}f.durationText&&(f.durationText.innerHTML=_utils.timeFormat(h)),f.elapsedText&&(e=_utils.timeFormat(k),f.elapsedText.innerHTML=e,rt!=e.length&&(t=!0,rt=e.length)),t&&vt()}function oi(){for(var e=f.elements.childNodes,u,i,n,t,r=0;r<e.length;r++){n=e[r].childNodes;for(t in n)isNaN(parseInt(t,10))||(n[t].id.indexOf(o.id+"_divider")===0&&i&&i.id.indexOf(o.id+"_divider")===0&&n[t].style.backgroundImage==i.style.backgroundImage?n[t].style.display="none":n[t].id.indexOf(o.id+"_divider")===0&&u&&u.style.display!="none"&&(n[t].style.display="block"),n[t].style.display!="none"&&(i=n[t]),u=n[t])}}function gi(){u.jwGetFullscreen()?(_show(f.normalscreenButton),_hide(f.fullscreenButton)):(_hide(f.normalscreenButton),_show(f.fullscreenButton)),u.jwGetState()==n.api.events.state.BUFFERING||u.jwGetState()==n.api.events.state.PLAYING?(_show(f.pauseButton),_hide(f.playButton)):(_hide(f.pauseButton),_show(f.playButton)),u.jwGetMute()==!0?(_hide(f.muteButton),_show(f.unmuteButton),_hide(f.volumeSliderProgress)):(_show(f.muteButton),_hide(f.unmuteButton),_show(f.volumeSliderProgress))}function vt(){var t,i,r,s;oi(),gi(),t={width:bt},i={float:"left",styleFloat:"left",cssFloat:"left"},(e.position==n.html5.view.positions.OVER||u.jwGetFullscreen())&&(t.left=e.margin,t.width-=2*e.margin,t.top=kt-c().height-e.margin,t.height=c().height),r=u.skin.getSkinElement("controlbar","capLeft"),s=u.skin.getSkinElement("controlbar","capRight"),i.width=t.width-(r?r.width:0)-(s?s.width:0);var y=_utils.getBoundingClientRect(f.leftGroup).width,p=_utils.getBoundingClientRect(f.rightGroup).width,l=i.width-y-p-1,h=l,a=u.skin.getSkinElement("controlbar","timeSliderCapLeft"),v=u.skin.getSkinElement("controlbar","timeSliderCapRight");return _utils.exists(a)&&(h-=a.width),_utils.exists(v)&&(h-=v.width),f.timeSlider.style.width=l+"px",f.timeSliderRail.style.width=h+"px",_css(o,t),_css(f.elements,i),_css(f.background,i),ni(),t}function si(n){var t;if(_utils.exists(f.volumeSliderRail)){var r=isNaN(n.volume/100)?1:n.volume/100,i=_utils.parseDimension(f.volumeSliderRail.style.width),e=isNaN(Math.round(i*r))?0:Math.round(i*r),s=_utils.parseDimension(f.volumeSliderRail.style.right),o=_utils.exists(u.skin.getSkinElement("controlbar","volumeSliderCapLeft"))?u.skin.getSkinElement("controlbar","volumeSliderCapLeft").width:0;_css(f.volumeSliderProgress,{width:e,left:o}),f.volumeSliderThumb&&(t=e-Math.round(_utils.parseDimension(f.volumeSliderThumb.style.width)/2),t=Math.min(Math.max(t,0),i-_utils.parseDimension(f.volumeSliderThumb.style.width)),_css(f.volumeSliderThumb,{left:t})),_utils.exists(f.volumeSliderCapLeft)&&_css(f.volumeSliderCapLeft,{left:0})}}function hi(){try{var n=u.id.indexOf("_instream")>0?u.id.replace("_instream",""):u.id;dt=document.getElementById(n),dt.addEventListener("mousemove",ht)}catch(t){_utils.log("Could not add mouse listeners to controlbar: "+t)}}function nr(){ci(),ai(),ni(),p=!0,pi(),e.idlehide=e.idlehide.toString().toLowerCase()=="true",e.position==n.html5.view.positions.OVER&&e.idlehide?(o.style.opacity=0,et=!0):(o.style.opacity=1,setTimeout(function(){et=!0,tt()},1)),hi(),ri()}var u,e,st,tt,lt;if(window.controlbar=this,u=i,e=_utils.extend({},t,u.skin.getComponentSettings("controlbar"),r),e.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[e.position]!="undefined"){_utils.mapLength(u.skin.getComponentLayout("controlbar"))>0&&(e.layout=u.skin.getComponentLayout("controlbar"));var o,yt,pt,wt,y="none",it,k,h,nt,bt,kt,f={},p=!1,l={},rt=-1,d,v=!1,ut,ft,et=!1,ot=!1,dt,gt=new n.html5.eventdispatcher;return _utils.extend(this,gt),this.getDisplayElement=function(){return o},this.resize=function(n,t){hi(),_utils.cancelAnimation(o),bt=n,kt=t,ot!=u.jwGetFullscreen()&&(ot=u.jwGetFullscreen(),ot||ht(),ft=undefined);var i=vt();return b({id:u.id,duration:h,position:k}),g({id:u.id,bufferPercent:nt}),i},this.show=function(){v&&(v=!1,_show(o),tt())},this.hide=function(){v||(v=!0,_hide(o),lt())},tt=ii(n.api.events.JWPLAYER_COMPONENT_SHOW),lt=ii(n.api.events.JWPLAYER_COMPONENT_HIDE),nr(),this}}}(jwplayer),function(n){var r=["width","height","state","playlist","item","position","buffer","duration","volume","mute","fullscreen"],t=n.utils;n.html5.controller=function(r,u,f,e){function ct(n){b?s.sendEvent(n.type,n):g.push(n)}function lt(t){var i,r;if(!b){for(b=!0,s.sendEvent(n.api.events.JWPLAYER_READY,t),n.utils.exists(window.playerReady)&&playerReady(t),n.utils.exists(window[f.config.playerReady])&&window[f.config.playerReady](t);g.length>0;)i=g.shift(),s.sendEvent(i.type,i);for(f.config.autostart&&!n.utils.isIOS()&&ft();k.length>0;)r=k.shift(),ot(r.method,r.arguments)}}function a(){try{if(v=a,!l&&(l=!0,s.sendEvent(n.api.events.JWPLAYER_MEDIA_BEFOREPLAY),l=!1,w)){w=!1,v=null;return}return h(o.item),o.playlist[o.item].levels[0].file.length>0&&(d||o.state==n.api.events.state.IDLE?(o.getMedia().load(o.playlist[o.item]),d=!1):o.state==n.api.events.state.PAUSED&&o.getMedia().play()),!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t),v=null}return!1}function at(){try{if(o.playlist[o.item].levels[0].file.length>0)switch(o.state){case n.api.events.state.PLAYING:case n.api.events.state.BUFFERING:o.getMedia()&&o.getMedia().pause();break;default:l&&(w=!0)}return!0}catch(t){s.sendEvent(n.api.events.JWPLAYER_ERROR,t)}return!1}function vt(t){try{if(o.playlist[o.item].levels[0].file.length>0){typeof t!="number"&&(t=parseFloat(t));switch(o.state){case n.api.events.state.IDLE:p<0&&(p=o.playlist[o.item].start,o.playlist[o.item].start=t),l||a();break;case n.api.events.state.PLAYING:case n.api.events.state.PAUSED:case n.api.events.state.BUFFERING:o.seek(t)}}return!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function y(i){v=null,t.exists(i)||(i=!0);try{return(o.state!=n.api.events.state.IDLE||i)&&o.getMedia()&&o.getMedia().stop(i),l&&(w=!0),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function nt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(it()):o.item+1==o.playlist.length?h(0):h(o.item+1)),o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE,s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return a(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function yt(){try{if(o.playlist[o.item].levels[0].file.length>0&&(o.config.shuffle?h(it()):o.item===0?h(o.playlist.length-1):h(o.item-1)),o.state!=n.api.events.state.IDLE){var t=o.state;o.state=n.api.events.state.IDLE,s.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:t,newstate:n.api.events.state.IDLE})}return a(),!0}catch(i){s.sendEvent(n.api.events.JWPLAYER_ERROR,i)}return!1}function it(){var n=null;if(o.playlist.length>1)while(!t.exists(n))n=Math.floor(Math.random()*o.playlist.length),n==o.item&&(n=null);else n=0;return n}function rt(t){if(!o.playlist||!o.playlist[t])return!1;try{if(o.playlist[t].levels[0].file.length>0){var i=o.state;i!==n.api.events.state.IDLE&&(o.playlist[o.item]&&o.playlist[o.item].provider==o.playlist[t].provider?y(!1):y()),h(t),a()}return!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function h(t){o.playlist[t]&&(o.setActiveMediaProvider(o.playlist[t]),o.item!=t&&(o.item=t,d=!0,s.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:t})))}function pt(t){try{h(o.item);var i=o.getMedia();switch(typeof t){case"number":i.volume(t);break;case"string":i.volume(parseInt(t,10))}return o.setVolume(t),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function wt(t){try{h(o.item);var i=o.getMedia();return typeof t=="undefined"?(i.mute(!o.mute),o.setMute(!o.mute)):t.toString().toLowerCase()=="true"?(i.mute(!0),o.setMute(!0)):(i.mute(!1),o.setMute(!1)),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function bt(t,i){try{return o.width=t,o.height=i,tt.resize(t,i),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height}),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function ut(t,i){try{return typeof t=="undefined"&&(t=!o.fullscreen),typeof i=="undefined"&&(i=!0),t!=o.fullscreen&&(o.fullscreen=t.toString().toLowerCase()=="true",tt.fullscreen(o.fullscreen),i&&s.sendEvent(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:o.fullscreen}),s.sendEvent(n.api.events.JWPLAYER_RESIZE,{width:o.width,height:o.height})),!0}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function kt(i){try{return y(),l&&(w=!1),o.loadPlaylist(i),o.playlist[o.item].provider?(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||l||a(),!0):!1}catch(r){s.sendEvent(n.api.events.JWPLAYER_ERROR,r)}return!1}function ft(){t.isIOS()||(h(o.item),o.config.autostart.toString().toLowerCase()!="true"||t.isIOS()||a())}function dt(n){ut(n.fullscreen,!1)}function gt(){try{return o.getMedia().detachMedia()}catch(n){return null}}function ni(){try{var n=o.getMedia().attachMedia();typeof v=="function"&&v()}catch(t){return null}}function et(){if(o.state==n.api.events.state.IDLE){v=et;switch(o.config.repeat.toUpperCase()){case n.html5.controller.repeatoptions.SINGLE:a();break;case n.html5.controller.repeatoptions.ALWAYS:o.item!=o.playlist.length-1||o.config.shuffle?nt():rt(0);break;case n.html5.controller.repeatoptions.LIST:o.item!=o.playlist.length-1||o.config.shuffle?nt():(y(),h(0));break;default:y()}}}function c(n){return function(){b?ot(n,arguments):k.push({method:n,arguments:arguments})}}function ot(n,t){var r=[];for(i=0;i<t.length;i++)r.push(t[i]);n.apply(this,r)}var ti=r,o=f,tt=e,st=u,d=!0,p=-1,l=!1,w=!1,v,g=[],b=!1,ht=t.exists(o.config.debug)&&o.config.debug.toString().toLowerCase()=="console",s=new n.html5.eventdispatcher(st.id,ht),k;t.extend(this,s),o.addGlobalListener(ct),o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,function(){o.getMedia().play()}),o.addEventListener(n.api.events.JWPLAYER_MEDIA_TIME,function(n){n.position>=o.playlist[o.item].start&&p>=0&&(o.playlist[o.item].start=p,p=-1)}),o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,function(){setTimeout(et,25)}),o.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,ft),o.addEventListener(n.api.events.JWPLAYER_FULLSCREEN,dt),n.html5.controller.repeatoptions={LIST:"LIST",ALWAYS:"ALWAYS",SINGLE:"SINGLE",NONE:"NONE"},k=[],this.play=c(a),this.pause=c(at),this.seek=c(vt),this.stop=c(y),this.next=c(nt),this.prev=c(yt),this.item=c(rt),this.setVolume=c(pt),this.setMute=c(wt),this.resize=c(bt),this.setFullscreen=c(ut),this.load=c(kt),this.playerReady=lt,this.detachMedia=gt,this.attachMedia=ni,this.beforePlay=function(){return l},this.destroy=function(){o.getMedia()&&o.getMedia().destroy()}}}(jwplayer),function(n){n.html5.defaultSkin=function(){return this.text='<?xml version="1.0" ?><skin author="LongTail Video" name="Five" version="1.1"><components><component name="controlbar"><settings><setting name="margin" value="20"/><setting name="fontsize" value="11"/><setting name="fontcolor" value="0x000000"/><\/settings><layout><group position="left"><button name="play"/><divider name="divider"/><button name="prev"/><divider name="divider"/><button name="next"/><divider name="divider"/><text name="elapsed"/><\/group><group position="center"><slider name="time"/><\/group><group position="right"><text name="duration"/><divider name="divider"/><button name="blank"/><divider name="divider"/><button name="mute"/><slider name="volume"/><divider name="divider"/><button name="fullscreen"/><\/group><\/layout><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAIAAABvFaqvAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAElJREFUOI3t1LERACAMQlFgGvcfxNIhHMK4gsUvUviOmgtNsiAZkBSEKxKEnCYkkQrJn/YwbUNiSDDYRZaQRDaShv+oX9GBZEIuK+8hXVLs+/YAAAAASUVORK5CYII="/><element name="blankButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="capLeft" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="capRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAYAAAA7zJfaAAAAQElEQVQIWz3LsRGAMADDQJ0XB5bMINABZ9GENGrszxhjT2WLSqxEJG2JQrTMdV2q5LpOAvyRaVmsi7WdeZ/7+AAaOTq7BVrfOQAAAABJRU5ErkJggg=="/><element name="divider" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAYCAIAAAC0rgCNAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADhJREFUCB0FwcENgEAAw7Aq+893g8APUILNOQcbFRktVGqUVFRkWNz3xTa2sUaLNUosKlRUvvf5AdbWOTtzmzyWAAAAAElFTkSuQmCC"/><element name="playButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAANUlEQVR42u2RsQkAAAjD/NTTPaW6dXLrINJA1kBpGPMAjDWmOgp1HFQXx+b1KOefO4oxY57R73YnVYCQUCQAAAAASUVORK5CYII="/><element name="pauseButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAIUlEQVQ4jWNgGAWjYOiD/0gYG3/U0FFDB4Oho2AUDAYAAEwiL9HrpdMVAAAAAElFTkSuQmCC"/><element name="prevButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQklEQVQ4y2NgGAWjYOiD/1AMA/JAfB5NjCJD/YH4PRaLyDa0H4lNNUP/DxlD59PCUBCIp3ZEwYA+NZLUKBgFgwEAAN+HLX9sB8u8AAAAAElFTkSuQmCC"/><element name="nextButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAYCAYAAAAVibZIAAAAQElEQVQ4y2NgGAWjYOiD/0B8Hojl0cT+U2ooCL8HYn9qGwrD/bQw9P+QMXQ+tSMqnpoRBUpS+tRMUqNgFAwGAADxZy1/mHvFnAAAAABJRU5ErkJggg=="/><element name="timeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAOElEQVRIDe3BwQkAIRADwAhhw/nU/kWwUK+KPITMABFh19Y+F0acY8CJvX9wYpXgRElwolSIiMf9ZWEDhtwurFsAAAAASUVORK5CYII="/><element name="timeSliderBuffer" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAN0lEQVRIDe3BwQkAMQwDMBcc55mRe9zi7RR+FCwBEWG39vcfGHFm4MTuhhMlwYlVBSdKhYh43AW/LQMKm1spzwAAAABJRU5ErkJggg=="/><element name="timeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAIElEQVRIiWNgGAWjYBTQBfynMR61YCRYMApGwSigMQAAiVWPcbq6UkIAAAAASUVORK5CYII="/><element name="timeSliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAYCAYAAAA/OUfnAAAAO0lEQVQYlWP4//8/Awwz0JgDBP/BeN6Cxf/hnI2btiI4u/fsQ3AOHjqK4Jw4eQbBOX/hEoKDYjSd/AMA4cS4mfLsorgAAAAASUVORK5CYII="/><element name="muteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAJklEQVQ4y2NgGAUjDcwH4v/kaPxPikZkxcNVI9mBQ5XoGAWDFwAAsKAXKQQmfbUAAAAASUVORK5CYII="/><element name="unmuteButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xXAAAAMklEQVQ4y2NgGAWDHPyntub5xBr6Hwv/Pzk2/yfVG/8psRFE25Oq8T+tQnsIaB4FVAcAi2YVysVY52AAAAAASUVORK5CYII="/><element name="volumeSliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAACmpqampqbBXAu8AAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderProgress" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYAgMAAACdGdVrAAAACVBMVEUAAAAAAAAAAACDY+nAAAAAAnRSTlMAgJsrThgAAAArSURBVAhbY2AgErBAyA4I2QEhOyBkB4TsYOhAoaCCUCUwDTDtMMNgRuMHAFB5FoGH5T0UAAAAAElFTkSuQmCC"/><element name="volumeSliderCapRight" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAYCAYAAAAyJzegAAAAFElEQVQYV2P8//8/AzpgHBUc7oIAGZdH0RjKN8EAAAAASUVORK5CYII="/><element name="fullscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAQklEQVRIiWNgGAWjYMiD/0iYFDmSLbDHImdPLQtgBpEiR7Zl2NijAA5oEkT/0Whi5UiyAJ8BVMsHNMtoo2AUDAIAAGdcIN3IDNXoAAAAAElFTkSuQmCC"/><element name="normalscreenButton" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAP0lEQVRIx2NgGAWjYMiD/1RSQ5QB/wmIUWzJfzx8qhj+n4DYCAY0DyJ7PBbYU8sHMEvwiZFtODXUjIJRMJgBACpWIN2ZxdPTAAAAAElFTkSuQmCC"/><\/elements><\/component><component name="display"><elements><element name="background" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><element name="playIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAiUlEQVR42u3XSw2AMBREURwgAQlIQAISKgUpSEFKJeCg5b0E0kWBTVcD9ySTsL0Jn9IBAAAA+K2UUrBlW/Rr5ZDoIeeuoFkxJD9ss03aIXXQqB9SttoG7ZA6qNcOKdttiwcJh9RB+iFl4SshkRBuLR72+9cvH0SOKI2HRo7x/Fi1/uoCAAAAwLsD8ki99IlO2dQAAAAASUVORK5CYII="/><element name="muteIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVR42u3WMQrAIAxAUW/g/SdvGmvpoOBeSHgPsjj5QTANAACARCJilIhYM0tEvJM+Ik3Id9E957kQIb+F3OdCPC0hPkQriqWx9hp/x/QGAABQyAPLB22VGrpLDgAAAABJRU5ErkJggg=="/><element name="errorIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAA/0lEQVR42u2U0QmEMBAF7cASLMESUoIlpARLSCkpwRJSgiWkhOvAXD4WsgRkyaG5DbyB+Yvg8KITAAAAAAAYk+u61mwk15EjPtlEfihmqIiZR1Qx80ghjgdUuiHXGHSVsoag0x6x8DUoyjD5KovmEJ9NTDMRPIT0mtdIUkjlonuNohO+Ha99DTmkuGgKCTcvebAzx82ZoCWC3/3aIMWSRucaxcjORSFY4xpFdjYJGp1rFGcyCYZ/RVh6AUnfcNZ2zih3/mGj1jVCdiNDwyrq1rA/xMdeEXvDVdnYc1vDc3uPkDObXrlaxbNHSOohQhr/WOeLEWfWTgAAAAAAADzNF9sHJ7PJ57MlAAAAAElFTkSuQmCC"/><element name="bufferIcon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAACBklEQVR42u3Zv0sCYRzH8USTzOsHHEWGkC1HgaDgkktGDjUYtDQ01RDSljQ1BLU02+rk1NTm2NLq4Nx/0L/h9fnCd3j4cnZe1/U8xiO8h3uurufF0/3COd/3/0UWYiEWYiEWYiGJQ+J8xuPxKhXjEMZANinjIZhkGuVRNioE4wVURo4JkHm0xKWmhRAc1bh1EyCUw5BcBIjHiApKa4CErko6DEJwuRo6IRKzyJD8FJAyI3Zp2zRImiBcRhlfo5RtlxCcE3CcDNpGrhYIT2IhAJKilO0VRmzJ32fAMTpBTS0QMfGwlcuKMRftE0DJ0wCJdcOsCkBdXP3Mh9CEFUBTPS9mDZJBG6io4aqVzMdCokCw9H3kT6j/C/9iDdSeUMNC7DkyyxAs/Rk6Qss8FPWRZgdVtUH4DjxEn1zxh+/zj1wHlf4MQhNGrwqA6sY40U8JonRJwEQh+AO3AvCG6gHv4U7IY4krxkroWoAOkoQMGfCBrgIm+YBGqPENpIJ66CJg3x66Y0gnSUidAEEnNr9jjLiWMn5DiWP0OC/oAsCgkq43xBdGDMQr7YASP/vEkHvdl1+JOCcEV5sC4hGEOzTlPuKgd0b0xD4JkRcOgnRRTjdErkYhAsQVq6IdUuPJtmk7BCL3t/h88cx91pKQkI/pkDx6pmYTIjEoxiHsN1YWYiEWYiEWknhflZ5IErA5nr8AAAAASUVORK5CYII="/><\/elements><\/component><component name="dock"><settings><setting name="fontcolor" value="0xffffff"/><\/settings><elements><element name="button" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlOZpuml+rYAAAASSURBVBhXY2AYJuA/GBwY6jQAyDyoK8QcL4QAAAAASUVORK5CYII="/><\/elements><\/component><component name="playlist"><settings><setting name="backgroundcolor" value="0xe8e8e8"/><\/settings><elements><element name="item" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAIAAAC1nk4lAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHBJREFUaN7t2MENwCAMBEEe9N8wSKYC/D8YV7CyJoRkVtVImxkZPQInMxoP0XiIxkM0HsGbjjSNBx544IEHHnjggUe/6UQeey0PIh7XTftGxKPj4eXCtLsHHh+ZxkO0Iw8PR55Ni8ZD9Hu/EAoP0dc5RRg9qeRjVF8AAAAASUVORK5CYII="/><element name="sliderCapTop" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><element name="sliderRail" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAKElEQVQ4y2P4//8/Az68bNmy/+iYkB6GUUNHDR01dNTQUUNHDaXcUABUDOKhcxnsSwAAAABJRU5ErkJggg=="/><element name="sliderThumb" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAAJUlEQVQ4T2P4//8/Ay4MBP9xYbz6Rg0dNXTU0FFDRw0dNZRyQwHH4NBa7GJsXAAAAABJRU5ErkJggg=="/><element name="sliderCapBottom" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAHCAYAAADnCQYGAAAAFUlEQVQokWP8//8/A7UB46ihI9hQAKt6FPPXhVGHAAAAAElFTkSuQmCC"/><\/elements><\/component><\/components><\/skin>',this.xml=null,window.DOMParser?(parser=new DOMParser,this.xml=parser.parseFromString(this.text,"text/xml")):(this.xml=new ActiveXObject("Microsoft.XMLDOM"),this.xml.async="false",this.xml.loadXML(this.text)),this}}(jwplayer),function(n){_utils=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.display=function(t,i){function gt(){u.display=h("div","display"),u.display_text=h("div","display_text"),u.display.appendChild(u.display_text),u.display_image=h("img","display_image"),u.display_image.onerror=function(){_hide(u.display_image)},u.display_image.onload=ni,u.display_icon=h("div","display_icon"),u.display_iconBackground=h("div","display_iconBackground"),u.display.appendChild(u.display_image),u.display_iconBackground.appendChild(u.display_icon),u.display.appendChild(u.display_iconBackground),ti(),setTimeout(function(){ct=!0,l.icons.toString()=="true"&&g()},1)}function ni(){nt=u.display_image.naturalWidth,tt=u.display_image.naturalHeight,yt(),(r.jwGetState()==n.api.events.state.IDLE||r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound")&&(_css(u.display_image,{display:"block",opacity:0}),_utils.fadeTo(u.display_image,1,.1)),ft=!1}function yt(){if(r.jwGetFullscreen()&&r.jwGetStretching()==n.utils.stretching.EXACTFIT){var t=document.createElement("div");_utils.stretch(n.utils.stretching.UNIFORM,t,e,f,lt,at),_utils.stretch(n.utils.stretching.EXACTFIT,u.display_image,_utils.parseDimension(t.style.width),_utils.parseDimension(t.style.height),nt,tt),_css(u.display_image,{left:t.style.left,top:t.style.top})}else _utils.stretch(r.jwGetStretching(),u.display_image,e,f,nt,tt)}function h(n,t){var i=document.createElement(n);return i.id=r.id+"_jwplayer_"+t,_css(i,w[t].style),i}function ti(){for(var n in u)_utils.exists(w[n].click)&&(u[n].onclick=w[n].click)}function ii(t){if(typeof t.preventDefault!="undefined"?t.preventDefault():t.returnValue=!1,typeof p=="function"){p(t);return}r.jwGetState()!=n.api.events.state.PLAYING?r.jwPlay():r.jwPause()}function b(n){if(v){c();return}u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join(""),_css(u.display_icon,{width:r.skin.getSkinElement("display",n).width,height:r.skin.getSkinElement("display",n).height,top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display",n).height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display",n).width)/2}),ri(),_utils.exists(r.skin.getSkinElement("display",n+"Over"))?(u.display_icon.onmouseover=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n+"Over").src,")"].join("")},u.display_icon.onmouseout=function(){u.display_icon.style.backgroundImage=["url(",r.skin.getSkinElement("display",n).src,")"].join("")}):(u.display_icon.onmouseover=null,u.display_icon.onmouseout=null)}function c(){l.icons.toString()=="true"&&(_hide(u.display_icon),_hide(u.display_iconBackground),wt())}function ri(){s||l.icons.toString()!="true"||(_show(u.display_icon),_show(u.display_iconBackground),g())}function ui(n){v=!0,c(),u.display_text.innerHTML=n.message,_show(u.display_text),u.display_text.style.top=(f-_utils.getBoundingClientRect(u.display_text).height)/2+"px"}function k(){et=!1,u.display_image.style.display="none"}function fi(){rt=""}function d(t){(t.type==n.api.events.JWPLAYER_PLAYER_STATE||t.type==n.api.events.JWPLAYER_PLAYLIST_ITEM)&&v&&(v=!1,_hide(u.display_text));var i=r.jwGetState();i!=rt&&(rt=i,y>=0&&clearTimeout(y),o||r.jwGetState()==n.api.events.state.PLAYING||r.jwGetState()==n.api.events.state.PAUSED?ot(r.jwGetState()):y=setTimeout(ei(r.jwGetState()),500))}function ei(n){return function(){ot(n)}}function ot(t){_utils.exists(a)&&(clearInterval(a),a=null,_utils.animations.rotate(u.display_icon,0));switch(t){case n.api.events.state.BUFFERING:_utils.isIPod()?(k(),c()):(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"&&st(),it=0,a=setInterval(function(){it+=kt,_utils.animations.rotate(u.display_icon,it%360)},dt),b("bufferIcon"),o=!0);break;case n.api.events.state.PAUSED:_utils.isIPod()||(r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider!="sound"&&_css(u.display_image,{background:"transparent no-repeat center center"}),b("playIcon"),o=!0);break;case n.api.events.state.IDLE:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image?st():k(),b("playIcon"),o=!0;break;default:r.jwGetPlaylist()[r.jwGetPlaylistIndex()]&&r.jwGetPlaylist()[r.jwGetPlaylistIndex()].provider=="sound"?_utils.isIPod()?(k(),o=!1):st():(k(),o=!1),r.jwGetMute()&&l.showmute?b("muteIcon"):c()}y=-1}function st(){if(r.jwGetPlaylist()[r.jwGetPlaylistIndex()]){var n=r.jwGetPlaylist()[r.jwGetPlaylistIndex()].image;n&&(n!=ht?(ht=n,ft=!0,u.display_image.src=_utils.getAbsolutePath(n)):ft||et||(et=!0,u.display_image.style.opacity=0,u.display_image.style.display="block",_utils.fadeTo(u.display_image,1,.1)))}}function pt(n){return function(){ct&&(s||ut==n||(ut=n,vt.sendEvent(n,{component:"display",boundingRect:_utils.getDimensions(u.display_iconBackground)})))}}var bt={icons:!0,showmute:!1},l=_utils.extend({},bt,i),r=t,u={},e,f,nt,tt,it,a,v,kt=_utils.exists(r.skin.getComponentSettings("display").bufferrotation)?parseInt(r.skin.getComponentSettings("display").bufferrotation,10):15,dt=_utils.exists(r.skin.getComponentSettings("display").bufferinterval)?parseInt(r.skin.getComponentSettings("display").bufferinterval,10):100,y=-1,rt=n.api.events.state.IDLE,o=!0,ut,ft=!1,et=!0,ht="",s=!1,ct=!1,p,lt,at,vt=new n.html5.eventdispatcher,w,g,wt;return _utils.extend(this,vt),w={display:{style:{cursor:"pointer",top:0,left:0,overflow:"hidden"},click:ii},display_icon:{style:{cursor:"pointer",position:"absolute",top:(r.skin.getSkinElement("display","background").height-r.skin.getSkinElement("display","playIcon").height)/2,left:(r.skin.getSkinElement("display","background").width-r.skin.getSkinElement("display","playIcon").width)/2,border:0,margin:0,padding:0,zIndex:3,display:"none"}},display_iconBackground:{style:{cursor:"pointer",position:"absolute",top:(f-r.skin.getSkinElement("display","background").height)/2,left:(e-r.skin.getSkinElement("display","background").width)/2,border:0,backgroundImage:["url(",r.skin.getSkinElement("display","background").src,")"].join(""),width:r.skin.getSkinElement("display","background").width,height:r.skin.getSkinElement("display","background").height,margin:0,padding:0,zIndex:2,display:"none"}},display_image:{style:{display:"none",width:e,height:f,position:"absolute",cursor:"pointer",left:0,top:0,margin:0,padding:0,textDecoration:"none",zIndex:1}},display_text:{style:{zIndex:4,position:"relative",opacity:.8,backgroundColor:parseInt("000000",16),color:parseInt("ffffff",16),textAlign:"center",fontFamily:"Arial,sans-serif",padding:"0 5px",fontSize:14}}},r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,d),r.jwAddEventListener(n.api.events.JWPLAYER_MEDIA_MUTE,d),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,fi),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,d),r.jwAddEventListener(n.api.events.JWPLAYER_ERROR,ui),gt(),this.getDisplayElement=function(){return u.display},this.resize=function(n,t){r.jwGetFullscreen()&&_utils.isMobile()||(_css(u.display,{width:n,height:t}),_css(u.display_text,{width:n-10,top:(t-_utils.getBoundingClientRect(u.display_text).height)/2}),_css(u.display_iconBackground,{top:(t-r.skin.getSkinElement("display","background").height)/2,left:(n-r.skin.getSkinElement("display","background").width)/2}),(e!=n||f!=t)&&(e=n,f=t,ut=undefined,g()),r.jwGetFullscreen()||(lt=n,at=t),yt(),d({}))},this.show=function(){s&&(s=!1,ot(r.jwGetState()))},this.hide=function(){s||(c(),s=!0)},g=pt(n.api.events.JWPLAYER_COMPONENT_SHOW),wt=pt(n.api.events.JWPLAYER_COMPONENT_HIDE),this.setAlternateClickHandler=function(n){p=n},this.revertAlternateClickHandler=function(){p=undefined},this}}(jwplayer),function(n){var t=n.utils,i=t.css;n.html5.dock=function(r,u){function st(){return{align:n.html5.view.positions.RIGHT}}function h(n){return"url("+n+") no-repeat center center"}function rt(i,u){var k,b,y,p;if(ot(),s.length>0){var h=10,w=h,rt=-1,tt=r.skin.getSkinElement("dock","button").height,it=r.skin.getSkinElement("dock","button").width,ut=i-it-h,e,o;for(d.align==n.html5.view.positions.LEFT&&(rt=1,ut=h),k=0;k<s.length;k++)b=Math.floor(w/u),w+tt+h>(b+1)*u&&(w=(b+1)*u+h,b=Math.floor(w/u)),y=f[s[k]].div,y.style.top=w%u+"px",y.style.left=ut+(r.skin.getSkinElement("dock","button").width+h)*b*rt+"px",p={x:t.parseDimension(y.style.left),y:t.parseDimension(y.style.top),width:it,height:tt},(!e||p.x<=e.x&&p.y<=e.y)&&(e=p),(!o||p.x>=o.x&&p.y>=o.y)&&(o=p),y.style.width=it+"px",y.style.height=tt+"px",w+=r.skin.getSkinElement("dock","button").height+h;nt={x:e.x,y:e.y,width:o.x-e.x+o.width,height:e.y-o.y+o.height}}(g!=r.jwGetFullscreen()||l!=i||a!=u)&&(l=i,a=u,g=r.jwGetFullscreen(),v=undefined,setTimeout(c,1))}function ut(n){return function(){!o&&v!=n&&s.length>0&&(v=n,it.sendEvent(n,{component:"dock",boundingRect:nt}))}}function ht(i){t.isMobile()?i.newstate==n.api.events.state.IDLE?w():b():ft()}function ft(i){if(!o)if(clearTimeout(y),u.position==n.html5.view.positions.OVER||r.jwGetFullscreen())switch(r.jwGetState()){case n.api.events.state.PAUSED:case n.api.events.state.IDLE:e&&e.style.opacity<1&&(!u.idlehide||t.exists(i))&&k(),u.idlehide&&(y=setTimeout(function(){et()},2e3));break;default:t.exists(i)&&k(),y=setTimeout(function(){et()},2e3)}else k()}function et(){o||(p(),e.style.opacity==1&&(t.cancelAnimation(e),t.fadeTo(e,0,.1,1,0)))}function k(){o||(c(),e.style.opacity==0&&(t.cancelAnimation(e),t.fadeTo(e,1,.1,0,0)))}function ot(){try{tt=document.getElementById(r.id),tt.addEventListener("mousemove",ft)}catch(n){t.log("Could not add mouse listeners to dock: "+n)}}var d=t.extend({},st(),u),e,c,p,w,b;if(d.align!="FALSE"){var f={},s=[],l,a,o=!1,g=!1,nt={x:0,y:0,width:0,height:0},v,tt,y,it=new n.html5.eventdispatcher;return t.extend(this,it),e=document.createElement("div"),e.id=r.id+"_jwplayer_dock",e.style.opacity=1,ot(),r.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ht),this.getDisplayElement=function(){return e},this.setButton=function(i,u,o,c){!u&&f[i]?(t.arrays.remove(s,i),e.removeChild(f[i].div),delete f[i]):u&&(f[i]||(f[i]={}),f[i].handler=u,f[i].outGraphic=o,f[i].overGraphic=c,f[i].div||(s.push(i),f[i].div=document.createElement("div"),f[i].div.style.position="absolute",e.appendChild(f[i].div),f[i].div.appendChild(document.createElement("div")),f[i].div.childNodes[0].style.position="relative",f[i].div.childNodes[0].style.width="100%",f[i].div.childNodes[0].style.height="100%",f[i].div.childNodes[0].style.zIndex=10,f[i].div.childNodes[0].style.cursor="pointer",f[i].div.appendChild(document.createElement("img")),f[i].div.childNodes[1].style.position="absolute",f[i].div.childNodes[1].style.left=0,f[i].div.childNodes[1].style.top=0,r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src),f[i].div.childNodes[1].style.zIndex=9,f[i].div.childNodes[1].style.cursor="pointer",f[i].div.onmouseover=function(){f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic)),r.skin.getSkinElement("dock","buttonOver")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","buttonOver").src)},f[i].div.onmouseout=function(){f[i].outGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].outGraphic)),r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)},r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)),f[i].outGraphic?f[i].div.childNodes[0].style.background=h(f[i].outGraphic):f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic)),u&&(f[i].div.onclick=function(t){t.preventDefault(),n(r.id).callback(i),f[i].overGraphic&&(f[i].div.childNodes[0].style.background=h(f[i].overGraphic)),r.skin.getSkinElement("dock","button")&&(f[i].div.childNodes[1].src=r.skin.getSkinElement("dock","button").src)})),rt(l,a)},c=ut(n.api.events.JWPLAYER_COMPONENT_SHOW),p=ut(n.api.events.JWPLAYER_COMPONENT_HIDE),this.resize=rt,w=function(){i(e,{display:"block"}),o&&(o=!1,c())},b=function(){i(e,{display:"none"}),o||(p(),o=!0)},this.hide=b,this.show=w,this}}}(jwplayer),function(n){n.html5.eventdispatcher=function(t,i){var r=new n.events.eventdispatcher(i);n.utils.extend(this,r),this.sendEvent=function(i,u){n.utils.exists(u)||(u={}),n.utils.extend(u,{id:t,version:n.version,type:i}),r.sendEvent(i,u)}}}(jwplayer),function(n){var t=n.utils;n.html5.instream=function(i,r,u,f){function ot(){_fakemodel=new n.html5.model(this,e.getMedia()?e.getMedia().getDisplayElement():e.container,e),p=new n.html5.eventdispatcher,h.jwAddEventListener(n.api.events.JWPLAYER_RESIZE,tt),h.jwAddEventListener(n.api.events.JWPLAYER_FULLSCREEN,tt)}function st(){_fakemodel.setMute(e.mute),_fakemodel.setVolume(e.volume)}function ht(){o||(o=new n.html5.mediavideo(_fakemodel,e.getMedia()?e.getMedia().getDisplayElement():e.container),o.addGlobalListener(ct),o.addEventListener(n.api.events.JWPLAYER_MEDIA_META,vt),o.addEventListener(n.api.events.JWPLAYER_MEDIA_COMPLETE,at),o.addEventListener(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL,lt)),o.attachMedia()}function ct(n){s&&nt(n.type,n)}function lt(){s&&o.play()}function at(){s&&setTimeout(function(){k.jwInstreamDestroy(!0)},10)}function vt(n){n.metadata.width&&n.metadata.height&&w.resizeMedia()}function nt(n,t,i){(s||i)&&p.sendEvent(n,t)}function tt(){var n=e.plugins.object.display.getDisplayElement().style,i;l&&(i=e.plugins.object.controlbar.getDisplayElement().style,l.resize(t.parseDimension(n.width),t.parseDimension(n.height)),_css(l.getDisplayElement(),t.extend({},i,{zIndex:1001,opacity:1}))),y&&(y.resize(t.parseDimension(n.width),t.parseDimension(n.height)),_css(y.getDisplayElement(),t.extend({},n,{zIndex:1e3}))),w&&w.resizeMedia()}var ut={controlbarseekable:"always",controlbarpausable:!0,controlbarstoppable:!0,playlistclickable:!0},d,a,h=i,e=r,w=u,it=f,c,ft,et,rt,v,g,o,l,y,s=!1,p,b,k=this;return this.load=function(i,r){if(st(),s=!0,a=t.extend(ut,r),d=n.html5.playlistitem(i),ht(),b=document.createElement("div"),b.id=k.id+"_instream_container",it.detachMedia(),c=o.getDisplayElement(),g=e.playlist[e.item],v=h.jwGetState(),(v==n.api.events.state.BUFFERING||v==n.api.events.state.PLAYING)&&c.pause(),ft=c.src?c.src:c.currentSrc,et=c.innerHTML,rt=c.currentTime,y=new n.html5.display(k,t.extend({},e.plugins.config.display)),y.setAlternateClickHandler(function(t){_fakemodel.state==n.api.events.state.PAUSED?k.jwInstreamPlay():nt(n.api.events.JWPLAYER_INSTREAM_CLICK,t)}),b.appendChild(y.getDisplayElement()),!t.isMobile())if(l=new n.html5.controlbar(k,t.extend({},e.plugins.config.controlbar,{})),e.plugins.config.controlbar.position==n.html5.view.positions.OVER)b.appendChild(l.getDisplayElement());else{var u=e.plugins.object.controlbar.getDisplayElement().parentNode;u.appendChild(l.getDisplayElement())}w.setupInstream(b,c),tt(),o.load(d)},this.jwInstreamDestroy=function(t){if(s){if(s=!1,v!=n.api.events.state.IDLE?(o.load(g,!1),o.stop(!1)):o.stop(!0),o.detachMedia(),w.destroyInstream(),l)try{l.getDisplayElement().parentNode.removeChild(l.getDisplayElement())}catch(i){}nt(n.api.events.JWPLAYER_INSTREAM_DESTROYED,{reason:t?"complete":"destroyed"},!0),it.attachMedia(),(v==n.api.events.state.BUFFERING||v==n.api.events.state.PLAYING)&&(c.play(),e.playlist[e.item]==g&&e.getMedia().seek(rt));return}},this.jwInstreamAddEventListener=function(n,t){p.addEventListener(n,t)},this.jwInstreamRemoveEventListener=function(n,t){p.removeEventListener(n,t)},this.jwInstreamPlay=function(){s&&o.play(!0)},this.jwInstreamPause=function(){s&&o.pause(!0)},this.jwInstreamSeek=function(n){s&&o.seek(n)},this.jwInstreamGetState=function(){return s?_fakemodel.state:undefined},this.jwInstreamGetPosition=function(){return s?_fakemodel.position:undefined},this.jwInstreamGetDuration=function(){return s?_fakemodel.duration:undefined},this.playlistClickable=function(){return!s||a.playlistclickable.toString().toLowerCase()=="true"},this.jwPlay=function(){a.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPlay()},this.jwPause=function(){a.controlbarpausable.toString().toLowerCase()=="true"&&this.jwInstreamPause()},this.jwStop=function(){a.controlbarstoppable.toString().toLowerCase()=="true"&&(this.jwInstreamDestroy(),h.jwStop())},this.jwSeek=function(n){switch(a.controlbarseekable.toLowerCase()){case"always":this.jwInstreamSeek(n);break;case"backwards":_fakemodel.position>n&&this.jwInstreamSeek(n)}},this.jwGetPosition=function(){},this.jwGetDuration=function(){},this.jwGetWidth=h.jwGetWidth,this.jwGetHeight=h.jwGetHeight,this.jwGetFullscreen=h.jwGetFullscreen,this.jwSetFullscreen=h.jwSetFullscreen,this.jwGetVolume=function(){return e.volume},this.jwSetVolume=function(n){o.volume(n),h.jwSetVolume(n)},this.jwGetMute=function(){return e.mute},this.jwSetMute=function(n){o.mute(n),h.jwSetMute(n)},this.jwGetState=function(){return _fakemodel.state},this.jwGetPlaylist=function(){return[d]},this.jwGetPlaylistIndex=function(){return 0},this.jwGetStretching=function(){return e.config.stretching},this.jwAddEventListener=function(n,t){p.addEventListener(n,t)},this.jwRemoveEventListener=function(n,t){p.removeEventListener(n,t)},this.skin=h.skin,this.id=h.id+"_instream",ot(),this}}(jwplayer),function(n){var t={prefix:"",file:"",link:"",linktarget:"_top",margin:8,out:.5,over:1,timeout:5,hide:!0,position:"bottom-left"};_css=n.utils.css,n.html5.logo=function(i,r){function c(){l(),o.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,d),a(),v()}function l(){if(t.prefix){var f=i.version.split(/\W/).splice(0,2).join("/");t.prefix.indexOf(f)<0&&(t.prefix+=f+"/")}r.position==n.html5.view.positions.OVER&&(r.position=t.position);try{window.location.href.indexOf("https")==0&&(t.prefix=t.prefix.replace("http://l.longtailvideo.com","https://securel.longtailvideo.com"))}catch(e){}u=n.utils.extend({},t,r)}function a(){(f=document.createElement("img"),f.id=o.id+"_jwplayer_logo",f.style.display="none",f.onload=function(){_css(f,w()),h()},u.file)&&(f.src=u.file.indexOf("/")>=0?u.file:u.prefix+u.file)}function v(){u.link?(f.onmouseover=p,f.onmouseout=h,f.onclick=y):this.mouseEnabled=!1}function y(n){if(typeof n!="undefined"&&n.stopPropagation(),e){o.jwPause(),o.jwSetFullscreen(!1),u.link&&window.open(u.link,u.linktarget);return}}function h(){u.link&&e&&(f.style.opacity=u.out);return}function p(){e&&(f.style.opacity=u.over);return}function w(){var n={textDecoration:"none",position:"absolute",cursor:"pointer"},t,i;n.display=u.hide.toString()=="true"&&!e?"none":"block",t=u.position.toLowerCase().split("-");for(i in t)n[t[i]]=parseInt(u.margin);return n}function b(){u.hide.toString()=="true"&&(f.style.display="block",f.style.opacity=0,n.utils.fadeTo(f,u.out,.1,parseFloat(f.style.opacity)),s=setTimeout(function(){k()},u.timeout*1e3)),e=!0}function k(){e=!1,u.hide.toString()=="true"&&n.utils.fadeTo(f,0,.1,parseFloat(f.style.opacity))}function d(t){t.newstate==n.api.events.state.BUFFERING&&(clearTimeout(s),b())}var o=i,s,u,f,e=!1;if(c(),u.file)return this.resize=function(){},this.getDisplayElement=function(){return f},this}}(jwplayer),function(n){var e={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils,r=t.isMobile(),i,u,f={};n.html5.mediavideo=function(o,s){function at(n,i){return it[n]?it[n]:it[n]=function(n){t.exists(n.target.parentNode)&&i(n)}}function kt(){y=n.api.events.state.IDLE,a=!0,h=dt(),h.setAttribute("x-webkit-airplay","allow"),p.parentNode&&(h.id=p.id,p.parentNode.replaceChild(h,p))}function dt(){var n=f[c.id],t;n||(n=p.tagName.toLowerCase()=="video"?p:document.createElement("video"),f[c.id]=n,n.id||(n.id=p.id));for(t in tt)n.addEventListener(t,at(t,tt[t]),!0);return n}function k(t){if(t!=n.api.events.state.PAUSED||y!=n.api.events.state.IDLE){if(r)switch(t){case n.api.events.state.PLAYING:wt();break;case n.api.events.state.BUFFERING:case n.api.events.state.PAUSED:bt()}if(y!=t){var i=y;c.state=y=t,l(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}}function w(){}function gt(){var i=Math.round(h.volume*100);l(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:i},!0),l(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:h.muted},!0)}function lt(i){var r,u;a&&(t.exists(i)&&i.lengthComputable&&i.total?r=i.loaded/i.total*100:t.exists(h.buffered)&&h.buffered.length>0&&(u=h.buffered.length-1,u>=0&&(r=h.buffered.end(u)/h.duration*100)),t.useNativeFullscreen()&&t.exists(h.webkitDisplayingFullscreen)&&c.fullscreen!=h.webkitDisplayingFullscreen&&l(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:h.webkitDisplayingFullscreen},!0),nt===!1&&y==n.api.events.state.BUFFERING&&(l(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),nt=!0),ct||(r==100&&(ct=!0),t.exists(r)&&r>c.buffer&&(c.buffer=Math.round(r),l(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:Math.round(r)}))))}function ni(i){if(a){if(t.exists(i)&&t.exists(i.target)&&(ht>0&&!isNaN(i.target.duration)&&(isNaN(c.duration)||c.duration<1)&&(c.duration=i.target.duration==Infinity?0:Math.round(i.target.duration*10)/10),!g&&h.readyState>0&&k(n.api.events.state.PLAYING),y==n.api.events.state.PLAYING)){if(h.readyState>0&&(b>-1||!g)){g=!0;try{h.currentTime!=b&&b>-1&&(h.currentTime=b,b=-1)}catch(r){}h.volume=c.volume/100,h.muted=c.mute}if(c.position=c.duration>0?Math.round(i.target.currentTime*10)/10:0,l(n.api.events.JWPLAYER_MEDIA_TIME,{position:c.position,duration:c.duration}),c.position>=c.duration&&(c.position>0||c.duration>0)){pt();return}}lt(i)}}function ti(){}function v(n){a&&(i&&u&&(h.style.width=i,h.style.height=u,i=_previousHieght=0),e[n.type]&&(n.type=="ended"?pt():k(e[n.type])))}function et(){if(a){var i=Math.round(h.duration*10)/10,r={height:h.videoHeight,width:h.videoWidth,duration:i};ht||(c.duration<i||isNaN(c.duration))&&h.duration!=Infinity&&(c.duration=i),l(n.api.events.JWPLAYER_MEDIA_META,{metadata:r})}}function ii(i){var r,u;if(a&&y!=n.api.events.state.IDLE){if(r="There was an error: ",i.target.error&&i.target.tagName.toLowerCase()=="video"||i.target.parentNode.error&&i.target.parentNode.tagName.toLowerCase()=="video"){u=t.exists(i.target.error)?i.target.error:i.target.parentNode.error;switch(u.code){case u.MEDIA_ERR_ABORTED:t.log("User aborted the video playback.");return;case u.MEDIA_ERR_NETWORK:r="A network error caused the video download to fail part-way: ";break;case u.MEDIA_ERR_DECODE:r="The video playback was aborted due to a corruption problem or because the video used features your browser did not support: ";break;case u.MEDIA_ERR_SRC_NOT_SUPPORTED:r="The video could not be loaded, either because the server or network failed or because the format is not supported: ";break;default:r="An unknown error occurred: "}}else if(i.target.tagName.toLowerCase()=="source"){if(ut--,ut>0)return;if(t.userAgentMatch(/firefox/i)){t.log("The video could not be loaded, either because the server or network failed or because the format is not supported."),ft(!1);return}r="The video could not be loaded, either because the server or network failed or because the format is not supported: "}else{t.log("An unknown error occurred.  Continuing...");return}ft(!1),r+=ri(),_error=!0,l(n.api.events.JWPLAYER_ERROR,{message:r});return}}function ri(){var t="",i,r,u;for(i in d.levels)r=d.levels[i],u=p.ownerDocument.createElement("source"),t+=n.utils.getAbsolutePath(r.file),i<d.levels.length-1&&(t+=", ");return t}function vt(){t.exists(rt)||(rt=setInterval(function(){lt()},100))}function yt(){clearInterval(rt),rt=null}function pt(){y==n.api.events.state.PLAYING&&(ft(!1),l(n.api.events.JWPLAYER_MEDIA_BEFORECOMPLETE),l(n.api.events.JWPLAYER_MEDIA_COMPLETE))}function ui(){t.exists(h.webkitDisplayingFullscreen)&&c.fullscreen&&!h.webkitDisplayingFullscreen&&l(n.api.events.JWPLAYER_FULLSCREEN,{fullscreen:!1},!0)}function fi(n){var r,i,u;if(n.length>0&&t.userAgentMatch(/Safari/i)&&!t.userAgentMatch(/Chrome/i)){for(r=-1,i=0;i<n.length;i++)switch(t.extension(n[i].file)){case"mp4":r<0&&(r=i);break;case"webm":n.splice(i,1)}r>0&&(u=n.splice(r,1)[0],n.unshift(u))}}function wt(){setTimeout(function(){h.setAttribute("controls","controls")},100)}function bt(){setTimeout(function(){h.removeAttribute("controls")},250)}function l(n,t,i){(a||i)&&(t?ot.sendEvent(n,t):ot.sendEvent(n))}var tt={abort:w,canplay:v,canplaythrough:v,durationchange:et,emptied:w,ended:v,error:ii,loadeddata:et,loadedmetadata:et,loadstart:v,pause:v,play:w,playing:v,progress:lt,ratechange:w,seeked:v,seeking:v,stalled:v,suspend:v,timeupdate:ni,volumechange:gt,waiting:v,canshowcurrentframe:w,dataunavailable:w,empty:w,load:ti,loadedfirstframe:w,webkitfullscreenchange:ui},it={},ot=new n.html5.eventdispatcher,ft;t.extend(this,ot);var c=o,p=s,h,y,g,d,rt,b,st=!1,a=!1,ht=!1,ct,nt,ut;kt(),this.load=function(f,e){var o,s;if(typeof e=="undefined"&&(e=!0),a){if(d=f,ht=d.duration>0,c.duration=d.duration,t.empty(h),h.style.display="block",h.style.opacity=1,i&&u&&(h.style.width=i,h.style.height=u,i=_previousHieght=0),ut=0,fi(f.levels),f.levels&&f.levels.length>0)if(f.levels.length==1||t.isIOS())h.src=f.levels[0].file;else for(h.src&&h.removeAttribute("src"),o=0;o<f.levels.length;o++)s=h.ownerDocument.createElement("source"),s.src=f.levels[o].file,h.appendChild(s),ut++;else h.src=f.file;h.volume=c.volume/100,h.muted=c.mute,r&&wt(),ct=nt=g=!1,c.buffer=0,t.exists(f.start)||(f.start=0),b=f.start>0?f.start:-1,l(n.api.events.JWPLAYER_MEDIA_LOADED),(r||f.levels.length!=1)&&st||h.load(),st=!1,e&&(k(n.api.events.state.BUFFERING),l(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),vt()),h.videoWidth>0&&h.videoHeight>0&&et()}},this.play=function(){a&&(vt(),nt?k(n.api.events.state.PLAYING):(h.load(),k(n.api.events.state.BUFFERING)),h.play())},this.pause=function(){a&&(h.pause(),k(n.api.events.state.PAUSED))},this.seek=function(n){a&&(!g&&h.readyState>0?c.duration<=0||isNaN(c.duration)||c.position<=0||isNaN(c.position)||(h.currentTime=n,h.play()):b=n)},ft=this.stop=function(r){if(a){if(t.exists(r)||(r=!0),yt(),r){nt=!1;var f=navigator.userAgent;if(h.webkitSupportsFullscreen)try{h.webkitExitFullscreen()}catch(e){}h.style.opacity=0,bt(),t.isIE()?h.src="":h.removeAttribute("src"),t.empty(h),h.load(),st=!0}if(t.isIPod())i=h.style.width,u=h.style.height,h.style.width=0,h.style.height=0;else if(t.isIPad()){h.style.display="none";try{h.webkitExitFullscreen()}catch(o){}}k(n.api.events.state.IDLE)}},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(c.config.width,c.config.height)},this.resize=function(){},this.volume=function(t){r||(h.volume=t/100,l(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:t/100}))},this.mute=function(t){r||(h.muted=t,l(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t}))},this.getDisplayElement=function(){return h},this.hasChrome=function(){return r&&y==n.api.events.state.PLAYING},this.detachMedia=function(){return a=!1,this.getDisplayElement()},this.attachMedia=function(){a=!0},this.destroy=function(){if(h&&h.parentNode){yt();for(var n in tt)h.removeEventListener(n,at(n,tt[n]),!0);t.empty(h),p=h.parentNode,h.parentNode.removeChild(h),delete f[c.id],h=null}}}}(jwplayer),function(n){var i={ended:n.api.events.state.IDLE,playing:n.api.events.state.PLAYING,pause:n.api.events.state.PAUSED,buffering:n.api.events.state.BUFFERING},t=n.utils.css;n.html5.mediayoutube=function(i,r){function c(t){if(s!=t){var i=s;h.state=t,s=t,e.sendEvent(n.api.events.JWPLAYER_PLAYER_STATE,{oldstate:i,newstate:t})}}function l(n){var t=n.levels[0].file,r,e,i,s,h;t=["http://www.youtube.com/v/",a(t),"&hl=en_US&fs=1&autoplay=1"].join(""),u=document.createElement("object"),u.id=f.id,u.style.position="absolute",r={movie:t,allowfullscreen:"true",allowscriptaccess:"always"};for(e in r)i=document.createElement("param"),i.name=e,i.value=r[e],u.appendChild(i);o=document.createElement("embed"),u.appendChild(o),s={src:t,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",width:u.width,height:u.height};for(h in s)o.setAttribute(h,s[h]);u.appendChild(o),u.style.zIndex=2147483e3,f!=u&&f.parentNode&&f.parentNode.replaceChild(u,f),f=u}function a(n){for(var r=n.split(/\?|\#\!/),t="",i=0;i<r.length;i++)r[i].substr(0,2)=="v="&&(t=r[i].substr(2));return t==""&&(t=n.indexOf("/v/")>=0?n.substr(n.indexOf("/v/")+3):n.indexOf("youtu.be")>=0?n.substr(n.indexOf("youtu.be/")+9):n),t.indexOf("?")>-1&&(t=t.substr(0,t.indexOf("?"))),t.indexOf("&")>-1&&(t=t.substr(0,t.indexOf("&"))),t}var e=new n.html5.eventdispatcher;n.utils.extend(this,e);var h=i,f=document.getElementById(r.id),s=n.api.events.state.IDLE,u,o;return this.getDisplayElement=this.detachMedia=function(){return f},this.attachMedia=function(){},this.play=function(){s==n.api.events.state.IDLE?(e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:100}),e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER_FULL),c(n.api.events.state.PLAYING)):s==n.api.events.state.PAUSED&&c(n.api.events.state.PLAYING)},this.pause=function(){c(n.api.events.state.PAUSED)},this.seek=function(){},this.stop=function(i){_utils.exists(i)||(i=!0),h.position=0,c(n.api.events.state.IDLE),i&&t(f,{display:"none"})},this.volume=function(t){h.setVolume(t),e.sendEvent(n.api.events.JWPLAYER_MEDIA_VOLUME,{volume:Math.round(t)})},this.mute=function(t){f.muted=t,e.sendEvent(n.api.events.JWPLAYER_MEDIA_MUTE,{mute:t})},this.resize=function(n,t){n*t>0&&u&&(u.width=o.width=n,u.height=o.height=t)},this.fullscreen=function(n){n===!0?this.resize("100%","100%"):this.resize(h.config.width,h.config.height)},this.load=function(i){l(i),t(u,{display:"block"}),c(n.api.events.state.BUFFERING),e.sendEvent(n.api.events.JWPLAYER_MEDIA_BUFFER,{bufferPercent:0}),e.sendEvent(n.api.events.JWPLAYER_MEDIA_LOADED),this.play()},this.hasChrome=function(){return s!=n.api.events.state.IDLE},this.embed=o,this}}(jwplayer),function(n){var i=["width","height","start","duration","volume","mute","fullscreen","item","plugins","stretching"],t=n.utils;n.html5.model=function(r,u,f){function lt(t){var i=new n.html5.playlistloader;i.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,function(t){e.playlist=new n.html5.playlist(t),rt(!0)}),i.addEventListener(n.api.events.JWPLAYER_ERROR,function(){e.playlist=new n.html5.playlist({playlist:[]}),rt(!1)}),i.load(t)}function rt(){e.config.shuffle?e.item=at():(e.config.item>=e.playlist.length?e.config.item=e.playlist.length-1:e.config.item<0&&(e.config.item=0),e.item=e.config.item),e.position=0,e.duration=e.playlist.length>0?e.playlist[e.item].duration:0,y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:e.playlist}),y.sendEvent(n.api.events.JWPLAYER_PLAYLIST_ITEM,{index:e.item})}function at(){var t=null;if(e.playlist.length>1)while(!n.utils.exists(t))t=Math.floor(Math.random()*e.playlist.length),t==e.item&&(t=null);else t=0;return t}function ht(t){switch(t.type){case n.api.events.JWPLAYER_MEDIA_LOADED:v=o.getDisplayElement();break;case n.api.events.JWPLAYER_MEDIA_MUTE:this.mute=t.mute;break;case n.api.events.JWPLAYER_MEDIA_VOLUME:this.volume=t.volume}y.sendEvent(t.type,t)}var ut=r,v=u,b=t.getCookies(),e={id:v.id,playlist:[],state:n.api.events.state.IDLE,position:0,buffer:0,container:v,config:{width:480,height:320,item:-1,skin:undefined,file:undefined,image:undefined,start:0,duration:0,bufferlength:5,volume:b.volume?b.volume:90,mute:b.mute&&b.mute.toString().toLowerCase()=="true"?!0:!1,fullscreen:!1,repeat:"",stretching:n.utils.stretching.UNIFORM,autostart:!1,debug:undefined,screencolor:undefined}},o,y=new n.html5.eventdispatcher,ct=["display","logo","controlbar","playlist","dock"],h,ft,l,c,a,et,d,p,k,g,nt,tt,ot,s,it,st,w;n.utils.extend(e,y);for(h in f){typeof f[h]=="string"&&(ft=/color$/.test(h)?"color":null,f[h]=n.utils.typechecker(f[h],ft)),l=e.config,c=h.split(".");for(a in c)a==c.length-1?l[c[a]]=f[h]:(n.utils.exists(l[c[a]])||(l[c[a]]={}),l=l[c[a]])}for(et in i)d=i[et],e[d]=e.config[d];if(p=ct.concat([]),n.utils.exists(e.plugins)&&typeof e.plugins=="string"){k=e.plugins.split(",");for(g in k)typeof k[g]=="string"&&p.push(k[g].replace(/^\s+|\s+$/g,""))}if(n.utils.isMobile()?(p=["display","logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")):e.config.chromeless&&(p=["logo","dock","playlist"],n.utils.exists(e.config.repeat)||(e.config.repeat="list")),e.plugins={order:p,config:{},object:{}},typeof e.config.components!="undefined")for(nt in e.config.components)e.plugins.config[nt]=e.config.components[nt];tt=!1;for(ot in e.plugins.order)s=e.plugins.order[ot],it=n.utils.exists(e.plugins.config[s])?e.plugins.config[s]:{},e.plugins.config[s]=n.utils.exists(e.plugins.config[s])?n.utils.extend(e.plugins.config[s],it):it,n.utils.exists(e.plugins.config[s].position)?(s=="playlist"&&(tt=!0),e.plugins.config[s].position=e.plugins.config[s].position.toString().toUpperCase()):e.plugins.config[s].position=s=="playlist"?n.html5.view.positions.NONE:n.html5.view.positions.OVER;if(e.plugins.config.controlbar&&tt&&(e.plugins.config.controlbar.hideplaylistcontrols=!0),typeof e.plugins.config.dock!="undefined"&&(typeof e.plugins.config.dock!="object"&&(st=e.plugins.config.dock.toString().toUpperCase(),e.plugins.config.dock={position:st}),typeof e.plugins.config.dock.position!="undefined"&&(e.plugins.config.dock.align=e.plugins.config.dock.position,e.plugins.config.dock.position=n.html5.view.positions.OVER),typeof e.plugins.config.dock.idlehide=="undefined"))try{e.plugins.config.dock.idlehide=e.plugins.config.controlbar.idlehide}catch(vt){}return e.loadPlaylist=function(arg){var input,config;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;switch(n.utils.typeOf(input)){case"object":config=input;break;case"array":config={playlist:input};break;default:config={file:input}}e.playlist=new n.html5.playlist(config),e.item=e.config.item>=0?e.config.item:0,!e.playlist[0].provider&&e.playlist[0].file?lt(e.playlist[0].file):rt()},w={},e.setActiveMediaProvider=function(t){t.provider=="audio"&&(t.provider="sound");var i=t.provider,r=o?o.getDisplayElement():null;if((i=="sound"||i=="http"||i=="")&&(i="video"),n.utils.exists(w[i]))o!=w[i]&&(o&&o.stop(),o=w[i]);else{switch(i){case"video":o=new n.html5.mediavideo(e,r?r:v);break;case"youtube":o=new n.html5.mediayoutube(e,r?r:v)}if(!n.utils.exists(o))return!1;o.addGlobalListener(ht),w[i]=o}return!0},e.getMedia=function(){return o},e.seek=function(t){return y.sendEvent(n.api.events.JWPLAYER_MEDIA_SEEK,{position:e.position,offset:t}),o.seek(t)},e.setVolume=function(n){t.saveCookie("volume",n),e.volume=n},e.setMute=function(n){t.saveCookie("mute",n),e.mute=n},e.setupPlugins=function(){var i,t;if(!n.utils.exists(e.plugins)||!n.utils.exists(e.plugins.order)||e.plugins.order.length==0)return n.utils.log("No plugins to set up"),e;for(i=0;i<e.plugins.order.length;i++)try{t=e.plugins.order[i],n.utils.exists(n.html5[t])?e.plugins.object[t]=t=="playlist"?new n.html5.playlistcomponent(ut,e.plugins.config[t]):new n.html5[t](ut,e.plugins.config[t]):e.plugins.order.splice(plugin,plugin+1),typeof e.plugins.object[t].addGlobalListener=="function"&&e.plugins.object[t].addGlobalListener(ht)}catch(r){n.utils.log("Could not setup "+t)}},e}}(jwplayer),function(n){n.html5.playlist=function(t){var i=[],r;if(t.playlist&&t.playlist instanceof Array&&t.playlist.length>0)for(r in t.playlist)isNaN(parseInt(r))||i.push(new n.html5.playlistitem(t.playlist[r]));else i.push(new n.html5.playlistitem(t));return i}}(jwplayer),function(n){var i={size:180,position:n.html5.view.positions.NONE,itemheight:60,thumbs:!0,fontcolor:"#000000",overcolor:"",activecolor:"",backgroundcolor:"#f8f8f8",font:"_sans",fontsize:"",fontstyle:"",fontweight:""},t={_sans:"Arial, Helvetica, sans-serif",_serif:"Times, Times New Roman, serif",_typewriter:"Courier New, Courier, monospace"};_utils=n.utils,_css=_utils.css,_hide=function(n){_css(n,{display:"none"})},_show=function(n){_css(n,{display:"block"})},n.html5.playlistcomponent=function(r,u){function p(){o=document.createElement("div"),o.id=s.id+"_jwplayer_playlistcomponent",o.style.overflow="hidden";switch(f.position){case n.html5.view.positions.RIGHT:case n.html5.view.positions.LEFT:o.style.width=f.size+"px";break;case n.html5.view.positions.TOP:case n.html5.view.positions.BOTTOM:o.style.height=f.size+"px"}ft(),e.item&&(f.itemheight=e.item.height),o.style.backgroundColor="#C6C6C6",s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,d),s.jwAddEventListener(n.api.events.JWPLAYER_PLAYLIST_ITEM,rt),s.jwAddEventListener(n.api.events.JWPLAYER_PLAYER_STATE,ut)}function w(){var n=document.createElement("ul");return _css(n,{width:o.style.width,minWidth:o.style.width,height:o.style.height,backgroundColor:f.backgroundcolor,backgroundImage:e.background?"url("+e.background.src+")":"",color:f.fontcolor,listStyle:"none",margin:0,padding:0,fontFamily:t[f.font]?t[f.font]:t._sans,fontSize:(f.fontsize?f.fontsize:11)+"px",fontStyle:f.fontstyle,fontWeight:f.fontweight,overflowY:"auto"}),n}function b(n){return function(){var r=h.getElementsByClassName("item")[n],t=f.fontcolor,i=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(t=f.activecolor),e.itemActive&&(i="url("+e.itemActive.src+")")),_css(r,{color:f.overcolor!==""?f.overcolor:t,backgroundImage:e.itemOver?"url("+e.itemOver.src+")":i})}}function a(n){return function(){var r=h.getElementsByClassName("item")[n],t=f.fontcolor,i=e.item?"url("+e.item.src+")":"";n==s.jwGetPlaylistIndex()&&(f.activecolor!==""&&(t=f.activecolor),e.itemActive&&(i="url("+e.itemActive.src+")")),_css(r,{color:t,backgroundImage:i})}}function k(t){var i=c[t],u=document.createElement("li"),d,s,l,o,p;u.className="item",_css(u,{height:f.itemheight,display:"block",cursor:"pointer",backgroundImage:e.item?"url("+e.item.src+")":"",backgroundSize:"100% "+f.itemheight+"px"}),u.onmouseover=b(t),u.onmouseout=a(t);var g=document.createElement("div"),r=new Image,w=0,h=0,k=0;return it()&&(i.image||i["playlist.image"]||e.itemImage)&&(r.className="image",e.itemImage?(w=(f.itemheight-e.itemImage.height)/2,h=e.itemImage.width,k=e.itemImage.height):(h=f.itemheight*4/3,k=f.itemheight),_css(g,{height:k,width:h,float:"left",styleFloat:"left",cssFloat:"left",margin:"0 5px 0 0",background:"black",overflow:"hidden",margin:w+"px",position:"relative"}),_css(r,{position:"relative"}),g.appendChild(r),r.onload=function(){n.utils.stretch(n.utils.stretching.FILL,r,h,k,this.naturalWidth,this.naturalHeight)},i["playlist.image"]?r.src=i["playlist.image"]:i.image?r.src=i.image:e.itemImage&&(r.src=e.itemImage.src),u.appendChild(g)),d=v-h-w*2,y<f.itemheight*c.length&&(d-=15),s=document.createElement("div"),_css(s,{position:"relative",height:"100%",overflow:"hidden"}),l=document.createElement("span"),i.duration>0&&(l.className="duration",_css(l,{fontSize:(f.fontsize?f.fontsize:11)+"px",fontWeight:f.fontweight?f.fontweight:"bold",width:"40px",height:f.fontsize?f.fontsize+10:20,lineHeight:24,float:"right",styleFloat:"right",cssFloat:"right"}),l.innerHTML=_utils.timeFormat(i.duration),s.appendChild(l)),o=document.createElement("span"),o.className="title",_css(o,{padding:"5px 5px 0 "+(w?0:"5px"),height:f.fontsize?f.fontsize+10:20,lineHeight:f.fontsize?f.fontsize+10:20,overflow:"hidden",float:"left",styleFloat:"left",cssFloat:"left",width:(i.duration>0?d-50:d)-10+"px",fontSize:(f.fontsize?f.fontsize:13)+"px",fontWeight:f.fontweight?f.fontweight:"bold"}),o.innerHTML=i?i.title:"",s.appendChild(o),i.description&&(p=document.createElement("span"),p.className="description",_css(p,{display:"block",float:"left",styleFloat:"left",cssFloat:"left",margin:0,paddingLeft:o.style.paddingLeft,paddingRight:o.style.paddingRight,lineHeight:(f.fontsize?f.fontsize+4:16)+"px",overflow:"hidden",position:"relative"}),p.innerHTML=i.description,s.appendChild(p)),u.appendChild(s),u}function d(){var t,i,r;if(o.innerHTML="",c=g(),c){for(items=[],h=w(),t=0;t<c.length;t++)i=k(t),i.onclick=nt(t),h.appendChild(i),items.push(i);l=s.jwGetPlaylistIndex(),a(l)(),o.appendChild(h),_utils.isIOS()&&window.iScroll&&(h.style.height=f.itemheight*c.length+"px",r=new iScroll(o.id))}}function g(){for(var t=s.jwGetPlaylist(),i=[],n=0;n<t.length;n++)t[n]["ova.hidden"]||i.push(t[n]);return i}function nt(n){return function(){s.jwPlaylistItem(n),s.jwPlay(!0)}}function tt(){h.scrollTop=s.jwGetPlaylistIndex()*f.itemheight}function it(){return f.thumbs.toString().toLowerCase()=="true"}function rt(n){l>=0&&(a(l)(),l=n.index),a(n.index)(),tt()}function ut(){if(f.position==n.html5.view.positions.OVER)switch(s.jwGetState()){case n.api.events.state.IDLE:_show(o);break;default:_hide(o)}}function ft(){for(var n in e)e[n]=et(n)}function et(n){return s.skin.getSkinElement("playlist",n)}var s=r,f=n.utils.extend({},i,s.skin.getComponentSettings("playlist"),u),o,v,y,c,ot,h,l,e;if(f.position!=n.html5.view.positions.NONE&&typeof n.html5.view.positions[f.position]!="undefined")return l=-1,e={background:undefined,item:undefined,itemOver:undefined,itemImage:undefined,itemActive:undefined},this.getDisplayElement=function(){return o},this.resize=function(n,t){if(v=n,y=t,s.jwGetFullscreen())_hide(o);else{var i={display:"block",width:v,height:y};_css(o,i)}},this.show=function(){_show(o)},this.hide=function(){_hide(o)},p(),this}}(jwplayer),function(n){function t(t){var i,r,u;if(n.utils.isYouTube(t.file))return"youtube";if(i=n.utils.extension(t.file),i&&n.utils.extensionmap[i]){if(i=="m3u8")return"video";r=n.utils.extensionmap[i].html5}else t.type&&(r=t.type);if(r){if(u=r.split("/")[0],u=="audio")return"sound";if(u=="video")return u}return""}n.html5.playlistitem=function(i){var u={author:"",date:"",description:"",image:"",link:"",mediaid:"",tags:"",title:"",provider:"",file:"",streamer:"",duration:-1,start:0,currentLevel:-1,levels:[]},r=n.utils.extend({},u,i);return r.type&&(r.provider=r.type,delete r.type),r.levels.length===0&&(r.levels[0]=new n.html5.playlistitemlevel(r)),r.provider=r.provider?r.provider.toLowerCase():t(r.levels[0]),r}}(jwplayer),function(n){n.html5.playlistitemlevel=function(t){var r={file:"",streamer:"",bitrate:0,width:0},i;for(i in r)n.utils.exists(t[i])&&(r[i]=t[i]);return r}}(jwplayer),function(n){n.html5.playlistloader=function(){function r(r){var u=[];try{u=n.utils.parsers.rssparser.parse(r.responseXML.firstChild),t.sendEvent(n.api.events.JWPLAYER_PLAYLIST_LOADED,{playlist:new n.html5.playlist({playlist:u})})}catch(f){i("Could not parse the playlist")}}function i(i){t.sendEvent(n.api.events.JWPLAYER_ERROR,{message:i?i:"Could not load playlist an unknown reason."})}var t=new n.html5.eventdispatcher;n.utils.extend(this,t),this.load=function(t){n.utils.ajax(t,r,i)}}}(jwplayer),function(n){n.html5.skin=function(){var t={},i=!1;this.load=function(r,u){new n.html5.skinloader(r,function(n){i=!0,t=n,u()},function(){new n.html5.skinloader("",function(n){i=!0,t=n,u()})})},this.getSkinElement=function(r,u){if(i)try{return t[r].elements[u]}catch(f){n.utils.log("No such skin component / element: ",[r,u])}return null},this.getComponentSettings=function(n){return i&&t&&t[n]?t[n].settings:null},this.getComponentLayout=function(n){return i?t[n].layout:null}}}(jwplayer),function(n){n.html5.skinloader=function(t,i,r){function v(){typeof f!="string"||f===""?e(n.html5.defaultSkin().xml):n.utils.ajax(n.utils.getAbsolutePath(f),function(t){try{if(n.utils.exists(t.responseXML)){e(t.responseXML);return}}catch(i){p()}e(n.html5.defaultSkin().xml)},function(){e(n.html5.defaultSkin().xml)})}function e(t){var o=t.getElementsByTagName("component"),f,i,ut,g,a,v,p,c,w,nt,b,r,k,tt,it,e,l,d,rt;if(o.length!==0)for(f=0;f<o.length;f++){for(i=o[f].getAttribute("name"),ut={settings:{},elements:{},layout:{}},u[i]=ut,g=o[f].getElementsByTagName("elements")[0].getElementsByTagName("element"),a=0;a<g.length;a++)y(g[a],i);if(v=o[f].getElementsByTagName("settings")[0],v&&v.childNodes.length>0)for(p=v.getElementsByTagName("setting"),c=0;c<p.length;c++){var ft=p[c].getAttribute("name"),et=p[c].getAttribute("value"),ot=/color$/.test(ft)?"color":null;u[i].settings[ft]=n.utils.typechecker(et,ot)}if(w=o[f].getElementsByTagName("layout")[0],w&&w.childNodes.length>0)for(nt=w.getElementsByTagName("group"),b=0;b<nt.length;b++){for(r=nt[b],u[i].layout[r.getAttribute("position")]={elements:[]},k=0;k<r.attributes.length;k++)tt=r.attributes[k],u[i].layout[r.getAttribute("position")][tt.name]=tt.value;for(it=r.getElementsByTagName("*"),e=0;e<it.length;e++){for(l=it[e],u[i].layout[r.getAttribute("position")].elements.push({type:l.tagName}),d=0;d<l.attributes.length;d++)rt=l.attributes[d],u[i].layout[r.getAttribute("position")].elements[e][rt.name]=rt.value;n.utils.exists(u[i].layout[r.getAttribute("position")].elements[e].name)||(u[i].layout[r.getAttribute("position")].elements[e].name=l.tagName)}}h=!1,s()}}function s(){clearInterval(o),c||(o=setInterval(function(){w()},100))}function y(t,i){var r=new Image,l=t.getAttribute("name"),e=t.getAttribute("src"),o,h,v;e.indexOf("data:image/png;base64,")===0?o=e:(h=n.utils.getAbsolutePath(f),v=h.substr(0,h.lastIndexOf("/")),o=[v,i,e].join("/")),u[i].elements[l]={height:0,width:0,src:"",ready:!1,image:r},r.onload=function(){b(r,l,i)},r.onerror=function(){c=!0,s(),a()},r.src=o}function p(){var t,n,i,r,f;for(t in u){n=u[t];for(i in n.elements)r=n.elements[i],f=r.image,f.onload=null,f.onerror=null,delete r.image,delete n.elements[i];delete u[t]}}function w(){var n,t;for(n in u)if(n!="properties")for(t in u[n].elements)if(!u[n].elements[t].ready)return;h===!1&&(clearInterval(o),l(u))}function b(t,i,r){u[r]&&u[r].elements[i]?(u[r].elements[i].height=t.height,u[r].elements[i].width=t.width,u[r].elements[i].src=t.src,u[r].elements[i].ready=!0,s()):n.utils.log("Loaded an image for a missing element: "+r+"."+i)}var u={},l=i,a=r,h=!0,o,f=t,c=!1;v()}}(jwplayer),function(n){n.html5.api=function(t,i){function v(){u.state==n.api.events.state.PLAYING||u.state==n.api.events.state.BUFFERING?f.pause():f.play()}function o(n){return function(){return u[n]}}function c(n,t,i){return function(){var r=u.plugins.object[n];r&&r[t]&&typeof r[t]=="function"&&r[t].apply(r,i)}}function s(n){return function(){if(e&&typeof e[n]=="function")return e[n].apply(this,arguments);_utils.log("Could not call instream method - instream API not initialized")}}function y(){u.config.playlistfile?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.loadPlaylist(u.config.playlistfile)):typeof u.config.playlist=="string"?(u.addEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.loadPlaylist(u.config.playlist)):(u.loadPlaylist(u.config),setTimeout(l,25))}function l(t){u.removeEventListener(n.api.events.JWPLAYER_PLAYLIST_LOADED,l),u.setupPlugins(),a.setup();var t={id:r.id,version:r.version};f.playerReady(t)}var r={},h=document.createElement("div"),e;t.parentNode.replaceChild(h,t),h.id=t.id,r.version=n.version,r.id=h.id;var u=new n.html5.model(r,h,i),a=new n.html5.view(r,h,u),f=new n.html5.controller(r,h,u,a);return r.skin=new n.html5.skin,r.jwPlay=function(n){typeof n=="undefined"?v():n.toString().toLowerCase()=="true"?f.play():f.pause()},r.jwPause=function(n){typeof n=="undefined"?v():n.toString().toLowerCase()=="true"?f.pause():f.play()},r.jwStop=f.stop,r.jwSeek=f.seek,r.jwPlaylistItem=function(n){if(e){if(e.playlistClickable())return e.jwInstreamDestroy(),f.item(n)}else return f.item(n)},r.jwPlaylistNext=f.next,r.jwPlaylistPrev=f.prev,r.jwResize=f.resize,r.jwLoad=f.load,r.jwDetachMedia=f.detachMedia,r.jwAttachMedia=f.attachMedia,r.jwGetPlaylistIndex=o("item"),r.jwGetPosition=o("position"),r.jwGetDuration=o("duration"),r.jwGetBuffer=o("buffer"),r.jwGetWidth=o("width"),r.jwGetHeight=o("height"),r.jwGetFullscreen=o("fullscreen"),r.jwSetFullscreen=f.setFullscreen,r.jwGetVolume=o("volume"),r.jwSetVolume=f.setVolume,r.jwGetMute=o("mute"),r.jwSetMute=f.setMute,r.jwGetStretching=function(){return u.stretching.toUpperCase()},r.jwGetState=o("state"),r.jwGetVersion=function(){return r.version},r.jwGetPlaylist=function(){return u.playlist},r.jwAddEventListener=f.addEventListener,r.jwRemoveEventListener=f.removeEventListener,r.jwSendEvent=f.sendEvent,r.jwDockSetButton=function(n,t,i,r){u.plugins.object.dock&&u.plugins.object.dock.setButton&&u.plugins.object.dock.setButton(n,t,i,r)},r.jwControlbarShow=c("controlbar","show"),r.jwControlbarHide=c("controlbar","hide"),r.jwDockShow=c("dock","show"),r.jwDockHide=c("dock","hide"),r.jwDisplayShow=c("display","show"),r.jwDisplayHide=c("display","hide"),r.jwLoadInstream=function(t,i){e||(e=new n.html5.instream(r,u,a,f)),setTimeout(function(){e.load(t,i)},10)},r.jwInstreamDestroy=function(){e&&e.jwInstreamDestroy()},r.jwInstreamAddEventListener=s("jwInstreamAddEventListener"),r.jwInstreamRemoveEventListener=s("jwInstreamRemoveEventListener"),r.jwInstreamGetState=s("jwInstreamGetState"),r.jwInstreamGetDuration=s("jwInstreamGetDuration"),r.jwInstreamGetPosition=s("jwInstreamGetPosition"),r.jwInstreamPlay=s("jwInstreamPlay"),r.jwInstreamPause=s("jwInstreamPause"),r.jwInstreamSeek=s("jwInstreamSeek"),r.jwDestroy=function(){f.destroy()},r.jwGetLevel=function(){},r.jwGetBandwidth=function(){},r.jwGetLockState=function(){},r.jwLock=function(){},r.jwUnlock=function(){},u.config.chromeless&&!n.utils.isIOS()?y():r.skin.load(u.config.skin,y),r}}(jwplayer)),function(n,t,i){function a(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function e(n,r){var f=this,u=i(f);if(f.value==u.attr("placeholder")&&u.hasClass("placeholder"))if(u.data("placeholder-password")){if(u=u.hide().next().show().attr("id",u.removeAttr("id").data("placeholder-id")),n===!0)return u[0].value=r;u.focus()}else f.value="",u.removeClass("placeholder"),f==t.activeElement&&f.select()}function s(){var t,r=this,n=i(r),u=this.id;if(r.value==""){if(r.type=="password"){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"password"})}catch(f){t=i("<input>").attr(i.extend(a(this),{type:"password"}))}t.removeAttr("name").data({"placeholder-password":n,"placeholder-id":u}).bind("focus.placeholder",e),n.data({"placeholder-textinput":t,"placeholder-id":u}).before(t)}n=n.removeAttr("id").hide().prev().attr("id",u).show()}n.addClass("placeholder"),n[0].value=n.attr("placeholder")}else n.removeClass("placeholder")}var f="placeholder"in t.createElement("input"),o="placeholder"in t.createElement("textarea"),h=i.fn,c=i.valHooks,l=i.propHooks,u,r;f&&o?(r=h.placeholder=function(){return this},r.input=r.textarea=!0):(r=h.placeholder=function(){var n=this;return n.filter((f?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n},r.input=f,r.textarea=o,u={get:function(n){var t=i(n),r=t.data("placeholder-password");return r?r[0].value:t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":n.value},set:function(n,r){var u=i(n),f=u.data("placeholder-password");return f?f[0].value=r:u.data("placeholder-enabled")?(r==""?(n.value=r,n!=t.activeElement&&s.call(n)):u.hasClass("placeholder")?e.call(n,!0,r)||(n.value=r):n.value=r,u):n.value=r}},f||(c.input=u,l.value=u),o||(c.textarea=u,l.value=u),i(function(){i(t).delegate("form","submit.placeholder",function(){var n=i(".placeholder",this).each(e);setTimeout(function(){n.each(s)},10)})}),i(n).bind("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery),typeof JSON!="object"&&(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i)),typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s<a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n,t){"use strict";var i=n.History=n.History||{},r=n.jQuery;if(typeof i.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");i.Adapter={bind:function(n,t,i){r(n).bind(t,i)},trigger:function(n,t,i){r(n).trigger(t,i)},extractEventData:function(n,i,r){return i&&i.originalEvent&&i.originalEvent[n]||r&&r[n]||t},onDomLoad:function(n){r(n)}},typeof i.init!="undefined"&&i.init()}(window),function(n){"use strict";var r=n.document,f=n.setTimeout||f,e=n.clearTimeout||e,u=n.setInterval||u,i=n.History=n.History||{};if(typeof i.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");i.initHtml4=function(){if(typeof i.initHtml4.initialized!="undefined")return!1;if(i.initHtml4.initialized=!0,i.enabled=!0,i.savedHashes=[],i.isLastHash=function(n){var r=i.getHashByIndex(),t;return t=n===r},i.isHashEqual=function(n,t){return n=encodeURIComponent(n).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),n===t},i.saveHash=function(n){return i.isLastHash(n)?!1:(i.savedHashes.push(n),!0)},i.getHashByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedHashes[i.savedHashes.length-1]:n<0?i.savedHashes[i.savedHashes.length+n]:i.savedHashes[n]},i.discardedHashes={},i.discardedStates={},i.discardState=function(n,t,r){var f=i.getHashByState(n),u;return u={discardedState:n,backState:r,forwardState:t},i.discardedStates[f]=u,!0},i.discardHash=function(n,t,r){var u={discardedHash:n,backState:r,forwardState:t};return i.discardedHashes[n]=u,!0},i.discardedState=function(n){var r=i.getHashByState(n),t;return t=i.discardedStates[r]||!1},i.discardedHash=function(n){return i.discardedHashes[n]||!1},i.recycleState=function(n){var t=i.getHashByState(n);return i.discardedState(n)&&delete i.discardedStates[t],!0},i.emulated.hashChange){i.hashChangeInit=function(){i.checkerFunction=null;var f="",s,t,e,o,h=Boolean(i.getHash());return i.isInternetExplorer()?(s="historyjs-iframe",t=r.createElement("iframe"),t.setAttribute("id",s),t.setAttribute("src","#"),t.style.display="none",r.body.appendChild(t),t.contentWindow.document.open(),t.contentWindow.document.close(),e="",o=!1,i.checkerFunction=function(){if(o)return!1;o=!0;var u=i.getHash(),r=i.getHash(t.contentWindow.document);return u!==f?(f=u,r!==u&&(e=r=u,t.contentWindow.document.open(),t.contentWindow.document.close(),t.contentWindow.document.location.hash=i.escapeHash(u)),i.Adapter.trigger(n,"hashchange")):r!==e&&(e=r,h&&r===""?i.back():i.setHash(r,!1)),o=!1,!0}):i.checkerFunction=function(){var t=i.getHash()||"";return t!==f&&(f=t,i.Adapter.trigger(n,"hashchange")),!0},i.intervalList.push(u(i.checkerFunction,i.options.hashChangeInterval)),!0};i.Adapter.onDomLoad(i.hashChangeInit)}if(i.emulated.pushState&&(i.onHashChange=function(t){var e=t&&t.newURL||i.getLocationHref(),u=i.getHashByUrl(e),r=null,o=null,s=null,f;return i.isLastHash(u)?(i.busy(!1),!1):(i.doubleCheckComplete(),i.saveHash(u),u&&i.isTraditionalAnchor(u))?(i.Adapter.trigger(n,"anchorchange"),i.busy(!1),!1):(r=i.extractState(i.getFullUrl(u||i.getLocationHref()),!0),i.isLastSavedState(r))?(i.busy(!1),!1):(o=i.getHashByState(r),f=i.discardedState(r),f)?(i.getHashByIndex(-2)===i.getHashByState(f.forwardState)?i.back(!1):i.forward(!1),!1):(i.pushState(r.data,r.title,encodeURI(r.url),!1),!0)},i.Adapter.bind(n,"hashchange",i.onHashChange),i.pushState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),o=i.getHashByState(e),s=i.getState(!1),h=i.getHashByState(s),c=i.getHash(),l=i.expectedStateId==e.id;return(i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),o===h)?(i.busy(!1),!1):(i.saveState(e),l||i.Adapter.trigger(n,"statechange"),i.isHashEqual(o,c)||i.isHashEqual(o,i.getShortUrl(i.getLocationHref()))||i.setHash(o,!1),i.busy(!1),!0)},i.replaceState=function(t,r,u,f){if(u=encodeURI(u).replace(/%25/g,"%"),i.getHashByUrl(u))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u),s=i.getHashByState(e),o=i.getState(!1),h=i.getHashByState(o),c=i.getStateByIndex(-2);return i.discardState(o,e,c),s===h?(i.storeState(e),i.expectedStateId=e.id,i.recycleState(e),i.setTitle(e),i.saveState(e),i.Adapter.trigger(n,"statechange"),i.busy(!1)):i.pushState(e.data,e.title,e.url,!1),!0}),i.emulated.pushState&&i.getHash()&&!i.emulated.hashChange)i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})},typeof i.init!="undefined"&&i.init()}(window),function(n,t){"use strict";var e=n.console||t,r=n.document,o=n.navigator,f=n.sessionStorage||!1,h=n.setTimeout,c=n.clearTimeout,l=n.setInterval,a=n.clearInterval,u=n.JSON,v=n.alert,i=n.History=n.History||{},s=n.history;try{f.setItem("TEST","1"),f.removeItem("TEST")}catch(y){f=!1}if(u.stringify=u.stringify||u.encode,u.parse=u.parse||u.decode,typeof i.init!="undefined")throw new Error("History.js Core has already been loaded...");i.init=function(){return typeof i.Adapter=="undefined"?!1:(typeof i.initCore!="undefined"&&i.initCore(),typeof i.initHtml4!="undefined"&&i.initHtml4(),!0)},i.initCore=function(){if(typeof i.initCore.initialized!="undefined")return!1;if(i.initCore.initialized=!0,i.options=i.options||{},i.options.hashChangeInterval=i.options.hashChangeInterval||100,i.options.safariPollInterval=i.options.safariPollInterval||500,i.options.doubleCheckInterval=i.options.doubleCheckInterval||500,i.options.disableSuid=i.options.disableSuid||!1,i.options.storeInterval=i.options.storeInterval||1e3,i.options.busyDelay=i.options.busyDelay||250,i.options.debug=i.options.debug||!1,i.options.initialTitle=i.options.initialTitle||r.title,i.options.html4Mode=i.options.html4Mode||!1,i.options.delayInit=i.options.delayInit||!1,i.intervalList=[],i.clearAllIntervals=function(){var n,t=i.intervalList;if(typeof t!="undefined"&&t!==null){for(n=0;n<t.length;n++)a(t[n]);i.intervalList=null}},i.debug=function(){(i.options.debug||!1)&&i.log.apply(i,arguments)},i.log=function(){var s=!(typeof e=="undefined"||typeof e.log=="undefined"||typeof e.log.apply=="undefined"),t=r.getElementById("log"),n,f,h,o,i;for(s?(o=Array.prototype.slice.call(arguments),n=o.shift(),typeof e.debug!="undefined"?e.debug.apply(e,[n,o]):e.log.apply(e,[n,o])):n="\n"+arguments[0]+"\n",f=1,h=arguments.length;f<h;++f){if(i=arguments[f],typeof i=="object"&&typeof u!="undefined")try{i=u.stringify(i)}catch(c){}n+="\n"+i+"\n"}return t?(t.value+=n+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):s||v(n),!0},i.getInternetExplorerMajorVersion=function(){return i.getInternetExplorerMajorVersion.cached=typeof i.getInternetExplorerMajorVersion.cached!="undefined"?i.getInternetExplorerMajorVersion.cached:function(){for(var n=3,t=r.createElement("div"),i=t.getElementsByTagName("i");(t.innerHTML="<!--[if gt IE "+ ++n+"]><i><\/i><![endif]-->")&&i[0];);return n>4?n:!1}()},i.isInternetExplorer=function(){return i.isInternetExplorer.cached=typeof i.isInternetExplorer.cached!="undefined"?i.isInternetExplorer.cached:Boolean(i.getInternetExplorerMajorVersion())},i.emulated=i.options.html4Mode?{pushState:!0,hashChange:!0}:{pushState:!Boolean(n.history&&n.history.pushState&&n.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(o.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(o.userAgent))),hashChange:Boolean(!("onhashchange"in n||"onhashchange"in r)||i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8)},i.enabled=!i.emulated.pushState,i.bugs={setHash:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),safariPoll:Boolean(!i.emulated.pushState&&o.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(o.userAgent)),ieDoubleCheck:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(i.isInternetExplorer()&&i.getInternetExplorerMajorVersion()<7)},i.isEmptyObject=function(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0},i.cloneObject=function(n){var i,t;return n?(i=u.stringify(n),t=u.parse(i)):t={},t},i.getRootUrl=function(){var n=r.location.protocol+"//"+(r.location.hostname||r.location.host);return(r.location.port||!1)&&(n+=":"+r.location.port),n+="/"},i.getBaseHref=function(){var t=r.getElementsByTagName("base"),i=null,n="";return t.length===1&&(i=t[0],n=i.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},i.getBaseUrl=function(){return i.getBaseHref()||i.getBasePageUrl()||i.getRootUrl()},i.getPageUrl=function(){var t=i.getState(!1,!1),r=(t||{}).url||i.getLocationHref(),n;return n=r.replace(/\/+$/,"").replace(/[^\/]+$/,function(n){return/\./.test(n)?n:n+"/"})},i.getBasePageUrl=function(){return i.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(n){return/[^\/]$/.test(n)?"":n}).replace(/\/+$/,"")+"/"},i.getFullUrl=function(n,t){var r=n,u=n.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(n)||(r=u==="/"?i.getRootUrl()+n.replace(/^\/+/,""):u==="#"?i.getPageUrl().replace(/#.*/,"")+n:u==="?"?i.getPageUrl().replace(/[\?#].*/,"")+n:t?i.getBaseUrl()+n.replace(/^(\.\/)+/,""):i.getBasePageUrl()+n.replace(/^(\.\/)+/,"")),r.replace(/\#$/,"")},i.getShortUrl=function(n){var t=n,r=i.getBaseUrl(),u=i.getRootUrl();return i.emulated.pushState&&(t=t.replace(r,"")),t=t.replace(u,"/"),i.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},i.getLocationHref=function(n){return(n=n||r,n.URL===n.location.href)?n.location.href:n.location.href===decodeURIComponent(n.URL)?n.URL:n.location.hash&&decodeURIComponent(n.location.href.replace(/^[^#]+/,""))===n.location.hash?n.location.href:n.URL.indexOf("#")==-1&&n.location.href.indexOf("#")!=-1?n.location.href:n.URL||n.location.href},i.store={},i.idToState=i.idToState||{},i.stateToId=i.stateToId||{},i.urlToId=i.urlToId||{},i.storedStates=i.storedStates||[],i.savedStates=i.savedStates||[],i.normalizeStore=function(){i.store.idToState=i.store.idToState||{},i.store.urlToId=i.store.urlToId||{},i.store.stateToId=i.store.stateToId||{}},i.getState=function(n,t){typeof n=="undefined"&&(n=!0),typeof t=="undefined"&&(t=!0);var r=i.getLastSavedState();return!r&&t&&(r=i.createStateObject()),n&&(r=i.cloneObject(r),r.url=r.cleanUrl||r.url),r},i.getIdByState=function(n){var t=i.extractId(n.url),r;if(!t)if(r=i.getStateString(n),typeof i.stateToId[r]!="undefined")t=i.stateToId[r];else if(typeof i.store.stateToId[r]!="undefined")t=i.store.stateToId[r];else{for(;;)if(t=+new Date+String(Math.random()).replace(/\D/g,""),typeof i.idToState[t]=="undefined"&&typeof i.store.idToState[t]=="undefined")break;i.stateToId[r]=t,i.idToState[t]=n}return t},i.normalizeState=function(n){var t,r;return(n&&typeof n=="object"||(n={}),typeof n.normalized!="undefined")?n:(n.data&&typeof n.data=="object"||(n.data={}),t={},t.normalized=!0,t.title=n.title||"",t.url=i.getFullUrl(n.url?n.url:i.getLocationHref()),t.hash=i.getShortUrl(t.url),t.data=i.cloneObject(n.data),t.id=i.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,r=!i.isEmptyObject(t.data),(t.title||r)&&i.options.disableSuid!==!0&&(t.hash=i.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=i.getFullUrl(t.hash),(i.emulated.pushState||i.bugs.safariPoll)&&i.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},i.createStateObject=function(n,t,r){var u={data:n,title:t,url:r};return u=i.normalizeState(u)},i.getStateById=function(n){n=String(n);return i.idToState[n]||i.store.idToState[n]||t},i.getStateString=function(n){var t,r,f;return t=i.normalizeState(n),r={data:t.data,title:n.title,url:n.url},f=u.stringify(r)},i.getStateId=function(n){var t,r;return t=i.normalizeState(n),r=t.id},i.getHashByState=function(n){var t,r;return t=i.normalizeState(n),r=t.hash},i.extractId=function(n){var r,t,u,i;return i=n.indexOf("#")!=-1?n.split("#")[0]:n,t=/(.*)\&_suid=([0-9]+)$/.exec(i),u=t?t[1]||n:n,r=t?String(t[2]||""):"",r||!1},i.isTraditionalAnchor=function(n){return!/[\/\?\.]/.test(n)},i.extractState=function(n,t){var r=null,u,f;return t=t||!1,u=i.extractId(n),u&&(r=i.getStateById(u)),r||(f=i.getFullUrl(n),u=i.getIdByUrl(f)||!1,u&&(r=i.getStateById(u)),r||!t||i.isTraditionalAnchor(n)||(r=i.createStateObject(null,null,f))),r},i.getIdByUrl=function(n){return i.urlToId[n]||i.store.urlToId[n]||t},i.getLastSavedState=function(){return i.savedStates[i.savedStates.length-1]||t},i.getLastStoredState=function(){return i.storedStates[i.storedStates.length-1]||t},i.hasUrlDuplicate=function(n){var r=!1,t;return t=i.extractState(n.url),r=t&&t.id!==n.id},i.storeState=function(n){return i.urlToId[n.url]=n.id,i.storedStates.push(i.cloneObject(n)),n},i.isLastSavedState=function(n){var t=!1,r,u,f;return i.savedStates.length&&(r=n.id,u=i.getLastSavedState(),f=u.id,t=r===f),t},i.saveState=function(n){return i.isLastSavedState(n)?!1:(i.savedStates.push(i.cloneObject(n)),!0)},i.getStateByIndex=function(n){var t=null;return t=typeof n=="undefined"?i.savedStates[i.savedStates.length-1]:n<0?i.savedStates[i.savedStates.length+n]:i.savedStates[n]},i.getCurrentIndex=function(){var n=null;return n=i.savedStates.length<1?0:i.savedStates.length-1},i.getHash=function(n){var r=i.getLocationHref(n),t;return t=i.getHashByUrl(r)},i.unescapeHash=function(n){var t=i.normalizeHash(n);return t=decodeURIComponent(t)},i.normalizeHash=function(n){return n.replace(/[^#]*#/,"").replace(/#.*/,"")},i.setHash=function(n,t){var u,f;return t!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.setHash,args:arguments,queue:t}),!1):(i.busy(!0),u=i.extractState(n,!0),u&&!i.emulated.pushState?i.pushState(u.data,u.title,u.url,!1):i.getHash()!==n&&(i.bugs.setHash?(f=i.getPageUrl(),i.pushState(null,null,f+"#"+n,!1)):r.location.hash=n),i)},i.escapeHash=function(t){var r=i.normalizeHash(t);return r=n.encodeURIComponent(r),i.bugs.hashEscape||(r=r.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),r},i.getHashByUrl=function(n){var t=String(n).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=i.unescapeHash(t)},i.setTitle=function(n){var t=n.title,u;t||(u=i.getStateByIndex(0),u&&u.url===n.url&&(t=u.title||i.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(f){}return r.title=t,i},i.queues=[],i.busy=function(n){if(typeof n!="undefined"?i.busy.flag=n:typeof i.busy.flag=="undefined"&&(i.busy.flag=!1),!i.busy.flag){c(i.busy.timeout);var t=function(){var n,r,u;if(!i.busy.flag)for(n=i.queues.length-1;n>=0;--n)(r=i.queues[n],r.length!==0)&&(u=r.shift(),i.fireQueueItem(u),i.busy.timeout=h(t,i.options.busyDelay))};i.busy.timeout=h(t,i.options.busyDelay)}return i.busy.flag},i.busy.flag=!1,i.fireQueueItem=function(n){return n.callback.apply(n.scope||i,n.args||[])},i.pushQueue=function(n){return i.queues[n.queue||0]=i.queues[n.queue||0]||[],i.queues[n.queue||0].push(n),i},i.queue=function(n,t){return typeof n=="function"&&(n={callback:n}),typeof t!="undefined"&&(n.queue=t),i.busy()?i.pushQueue(n):i.fireQueueItem(n),i},i.clearQueue=function(){return i.busy.flag=!1,i.queues=[],i},i.stateChanged=!1,i.doubleChecker=!1,i.doubleCheckComplete=function(){return i.stateChanged=!0,i.doubleCheckClear(),i},i.doubleCheckClear=function(){return i.doubleChecker&&(c(i.doubleChecker),i.doubleChecker=!1),i},i.doubleCheck=function(n){return i.stateChanged=!1,i.doubleCheckClear(),i.bugs.ieDoubleCheck&&(i.doubleChecker=h(function(){return i.doubleCheckClear(),i.stateChanged||n(),!0},i.options.doubleCheckInterval)),i},i.safariStatePoll=function(){var r=i.extractState(i.getLocationHref()),t;if(!i.isLastSavedState(r))return t=r,t||(t=i.createStateObject()),i.Adapter.trigger(n,"popstate"),i},i.back=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.back,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.back(!1)}),s.go(-1),!0)},i.forward=function(n){return n!==!1&&i.busy()?(i.pushQueue({scope:i,callback:i.forward,args:arguments,queue:n}),!1):(i.busy(!0),i.doubleCheck(function(){i.forward(!1)}),s.go(1),!0)},i.go=function(n,t){var r;if(n>0)for(r=1;r<=n;++r)i.forward(t);else if(n<0)for(r=-1;r>=n;--r)i.back(t);else throw new Error("History.go: History.go requires a positive or negative integer passed.");return i},i.emulated.pushState){var p=function(){};i.pushState=i.pushState||p,i.replaceState=i.replaceState||p}else i.onPopState=function(t,r){var e=!1,u=!1,o,f;return(i.doubleCheckComplete(),o=i.getHash(),o)?(f=i.extractState(o||i.getLocationHref(),!0),f?i.replaceState(f.data,f.title,f.url,!1):(i.Adapter.trigger(n,"anchorchange"),i.busy(!1)),i.expectedStateId=!1,!1):(e=i.Adapter.extractEventData("state",t,r)||!1,u=e?i.getStateById(e):i.expectedStateId?i.getStateById(i.expectedStateId):i.extractState(i.getLocationHref()),u||(u=i.createStateObject(null,null,i.getLocationHref())),i.expectedStateId=!1,i.isLastSavedState(u))?(i.busy(!1),!1):(i.storeState(u),i.saveState(u),i.setTitle(u),i.Adapter.trigger(n,"statechange"),i.busy(!1),!0)},i.Adapter.bind(n,"popstate",i.onPopState),i.pushState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.pushState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.pushState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0},i.replaceState=function(t,r,u,f){if(i.getHashByUrl(u)&&i.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&i.busy())return i.pushQueue({scope:i,callback:i.replaceState,args:arguments,queue:f}),!1;i.busy(!0);var e=i.createStateObject(t,r,u);return i.isLastSavedState(e)?i.busy(!1):(i.storeState(e),i.expectedStateId=e.id,s.replaceState(e.id,e.title,e.url),i.Adapter.trigger(n,"popstate")),!0};if(f){try{i.store=u.parse(f.getItem("History.store"))||{}}catch(w){i.store={}}i.normalizeStore()}else i.store={},i.normalizeStore();if(i.Adapter.bind(n,"unload",i.clearAllIntervals),i.saveState(i.storeState(i.extractState(i.getLocationHref(),!0))),f&&(i.onUnload=function(){var n,t,r;try{n=u.parse(f.getItem("History.store"))||{}}catch(e){n={}}n.idToState=n.idToState||{},n.urlToId=n.urlToId||{},n.stateToId=n.stateToId||{};for(t in i.idToState)i.idToState.hasOwnProperty(t)&&(n.idToState[t]=i.idToState[t]);for(t in i.urlToId)i.urlToId.hasOwnProperty(t)&&(n.urlToId[t]=i.urlToId[t]);for(t in i.stateToId)i.stateToId.hasOwnProperty(t)&&(n.stateToId[t]=i.stateToId[t]);i.store=n,i.normalizeStore(),r=u.stringify(n);try{f.setItem("History.store",r)}catch(o){if(o.code===DOMException.QUOTA_EXCEEDED_ERR)f.length&&(f.removeItem("History.store"),f.setItem("History.store",r));else throw o;}},i.intervalList.push(l(i.onUnload,i.options.storeInterval)),i.Adapter.bind(n,"beforeunload",i.onUnload),i.Adapter.bind(n,"unload",i.onUnload)),!i.emulated.pushState&&(i.bugs.safariPoll&&i.intervalList.push(l(i.safariStatePoll,i.options.safariPollInterval)),(o.vendor==="Apple Computer, Inc."||(o.appCodeName||"")==="Mozilla")&&(i.Adapter.bind(n,"hashchange",function(){i.Adapter.trigger(n,"popstate")}),i.getHash())))i.Adapter.onDomLoad(function(){i.Adapter.trigger(n,"hashchange")})},i.options&&i.options.delayInit||i.init()}(window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}function i(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t.json?JSON.parse(n):n}catch(i){}}var r=/\+/g,t=n.cookie=function(r,e,o){var l,h,s,y;if(e!==undefined)return o=n.extend({},t.defaults,o),typeof o.expires=="number"&&(l=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+l)),e=t.json?JSON.stringify(e):String(e),document.cookie=[t.raw?r:encodeURIComponent(r),"=",t.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");var a=t.raw?u:f,v=document.cookie.split("; "),c=r?undefined:{};for(s=0,y=v.length;s<y;s++){var p=v[s].split("="),w=a(p.shift()),b=a(p.join("="));if(r&&r===w){c=i(b);break}r||(c[w]=i(b))}return c};t.defaults={},n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}}),function(n){n.fn.extend({slimScroll:function(i){var u={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px",scrollBy:"20px",betterScroll:0,betterTouchScroll:0},r=n.extend(u,i);return this.each(function(){function d(t){var t,i,f;l&&(t=t||window.event,i=0,t.wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3),f=t.target||t.srcTarget||t.srcElement,n(f).closest("."+r.wrapperClass).is(u.parent())&&h(i,!0),t.preventDefault&&!o&&t.preventDefault(),o||(t.returnValue=!1))}function h(n,t,i,s){var a;s=s===!0?!0:!1,o=!1;var h=n,l=u.outerHeight()-f.outerHeight(),v=s?r.betterTouchScroll:r.betterScroll;t&&(h=parseInt(f.css("top"))+n*parseInt(r.wheelStep)/100*f.outerHeight(),h=Math.min(Math.max(h,0),l),s&&(r.betterScroll=r.betterTouchScroll),h=n>0?Math.ceil(h+v):Math.floor(h-v),h=h>l?l:h,h=h<0?0:h,f.css({top:h+"px"})),e=parseInt(f.css("top"))/(u.outerHeight()-f.outerHeight()),h=e*(u[0].scrollHeight-u.outerHeight()),i&&(h=n,a=h/u[0].scrollHeight*u.outerHeight(),a=Math.min(Math.max(a,0),l),f.css({top:a+"px"})),u.scrollTop(h),u.trigger("slimscrolling",~~h),nt(),c()}function et(n){window.addEventListener?(n.addEventListener("DOMMouseScroll",d,!1),n.addEventListener("mousewheel",d,!1)):document.attachEvent("onmousewheel",d)}function g(){a=Math.max(u.outerHeight()/u[0].scrollHeight*u.outerHeight(),ft),f.css({height:a+"px"});var n=a==u.outerHeight()?"none":"block";f.css({display:n})}function nt(){if(g(),clearTimeout(tt),e==~~e){if(o=r.allowPageScroll,it!=e){var n=~~e==0?"top":"bottom";u.trigger("slimscroll",n)}}else o=!1;if(it=e,a>=u.outerHeight()){o=!0;return}f.stop(!0,!0).fadeIn("fast"),r.railVisible&&s.stop(!0,!0).fadeIn("fast")}function c(){r.alwaysVisible||(tt=setTimeout(function(){r.disableFadeOut&&l||y||p||(f.fadeOut("slow"),s.fadeOut("slow"))},1e3))}var l,y,p,tt,w,a,e,it,b="<div><\/div>",ft=30,o=!1,u=n(this),v,k,rt;if(u.parent().hasClass(r.wrapperClass)){if(v=u.scrollTop(),f=u.closest("."+r.barClass),s=u.closest("."+r.railClass),g(),n.isPlainObject(i)){if("height"in i&&i.height=="auto"&&(u.parent().css("height","auto"),u.css("height","auto"),k=u.parent().parent().height(),u.parent().css("height",k),u.css("height",k)),"scrollTo"in i)v=parseInt(r.scrollTo);else if("scrollBy"in i)v+=parseInt(r.scrollBy);else if("destroy"in i){f.remove(),s.remove(),u.unwrap();return}h(v,!1,!0)}return}if(!n.isPlainObject(i)||!("destroy"in i)){r.height=r.height=="auto"?u.parent().height():r.height,rt=n(b).addClass(r.wrapperClass).css({position:"relative",overflow:"hidden",width:r.width,height:r.height}),u.css({overflow:"hidden",width:r.width,height:r.height});var s=n(b).addClass(r.railClass).css({width:r.size,height:"100%",position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"block":"none","border-radius":r.railBorderRadius,background:r.railColor,opacity:r.railOpacity,zIndex:90}),f=n(b).addClass(r.barClass).css({width:r.size,position:"absolute",top:0,height:"35px",opacity:r.opacity,display:r.alwaysVisible?"block":"none","border-radius":r.borderRadius,BorderRadius:r.borderRadius,MozBorderRadius:r.borderRadius,WebkitBorderRadius:r.borderRadius,zIndex:99}),ut=r.position=="right"?{right:r.distance}:{left:r.distance};s.css(ut),f.css(ut),u.wrap(rt),u.parent().append(f),u.parent().append(s),r.railDraggable&&f.bind("mousedown",function(i){var r=n(document);return p=!0,t=parseFloat(f.css("top")),pageY=i.pageY,r.bind("mousemove.slimscroll",function(n){currTop=t+n.pageY-pageY,f.css("top",currTop),h(0,f.position().top,!1)}),r.bind("mouseup.slimscroll",function(){p=!1,c(),r.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(n){return n.stopPropagation(),n.preventDefault(),!1}),s.hover(function(){nt()},function(){c()}),f.hover(function(){y=!0},function(){y=!1}),u.hover(function(){l=!0,nt(),c()},function(){l=!1,c()}),u.bind("touchstart",function(n){n.originalEvent.touches.length&&(w=n.originalEvent.touches[0].pageY)}),u.bind("touchmove",function(n){if(o||n.originalEvent.preventDefault(),n.originalEvent.touches.length){var t=(w-n.originalEvent.touches[0].pageY)/r.touchScrollStep;h(t,!0,!1,!0),w=n.originalEvent.touches[0].pageY}}),g(),r.start==="bottom"?(f.css({top:u.outerHeight()-f.outerHeight()}),h(0,!0)):r.start!=="top"&&(h(n(r.start).position().top,null,!0),r.alwaysVisible||f.hide()),et(this)}}),this}}),n.fn.extend({slimscroll:n.fn.slimScroll})}(jQuery),FAD_Tracking={device:"Desktop",pageURL:window.location.pathname,init:function(){$(".megamenu .fadcta, .headerContent .fadcta, .slides .fadcta, .variant-fad").submit(function(){FAD_Tracking.submit($(this).data("searchLocation"))}),$(".FAD-original").submit(function(){$(this).find("#ZipCode").val().length===5?FAD_Tracking.submit("Page - ZIP Code"):$(this).find("#State").val().length>0&&FAD_Tracking.submit("Page - State")}),$(".findDoctorResultPage").length>0&&FAD_Tracking.launch(decodeURI(location.search.split("SearchLocation=")[1]))},submit:function(n){var t=FAD_Tracking.pageURL+" | "+FAD_Tracking.device+" | "+n;_gaq.push(["_trackEvent","FAD - Search Location",t,"Start"])},launch:function(n){var t=FAD_Tracking.pageURL+" | "+FAD_Tracking.device+" | "+n;_gaq.push(["_trackEvent","FAD - Search Location",t,"Launch"])},agree:function(n){var t=FAD_Tracking.pageURL+" | "+FAD_Tracking.device+" | "+n;_gaq.push(["_trackEvent","FAD - Search Location",t,"Agree"])},cancel:function(n){var t=FAD_Tracking.pageURL+" | "+FAD_Tracking.device+" | "+n;_gaq.push(["_trackEvent","FAD - Search Location",t,"Cancel"])}},slideDeck=[],slideDeck[0]=[1,"/"],slideDeck[1]=[5,"understanding-opioid-dependence",!0],slideDeck[2]=[2,"treatment",!1],slideDeck[3]=[3,"treatment-plan",!1],slideDeck[4]=[4,"medical-treatment",!1],$(function(){var u,i,r,f,e,o,s,n,t,c,h;if(FAD_Tracking.init(),$.fn.scrollable=function(){function o(n){return(n.clientY-t.offset().top+$(window).scrollTop())/t.height()}function e(i,u){u.preventDefault(),i=Math.max(Math.min(i,1),0);var f=i*(t.height()-r.height());r.stop(!0,!0).animate({top:parseInt(f)}),n.stop(!0,!0).animate({scrollTop:i*(n.get(0).scrollHeight-n.height())})}var i=this.addClass("scrollable"),n=i.wrapInner("<div class='scrollablebody'><\/div>").find(".scrollablebody"),t=$("<div class='scrollablerail'><div class='scrollablehandle'><\/div><\/div>").prependTo(i),r=t.find(".scrollablehandle"),u=!1,f=!1;i.hover(function(){u=!0},function(){u=!1}),$(document).on("mousewheel DOMMouseScroll",function(t){if(u){var i=t.originalEvent.wheelDelta?-t.originalEvent.wheelDelta/120:t.originalEvent.detail/3,r=n.get(0).scrollTop/(n.get(0).scrollHeight-n.height());e(r+i/50,t)}}).mousedown(function(n){n.target==r.get(0)&&(f=!0)}).mouseup(function(){f=!1}).mousemove(function(n){f&&e(o(n),n)}),t.mousedown(function(n){e(o(n),n)})},screen.height<=768&&($("body").addClass("smallMonitor"),smallMonitor=!0,screen.width<=1024&&$("body").addClass("smallMonitorOld")),u=$("body").hasClass("isMobile"),u){$(".control").hide(),i=!0;for(r in slideDeck)f=new RegExp("/"+slideDeck[r][1]+"$","i"),window.location.href.match(f)!=null&&($("#page"+slideDeck[r][0]).css("display","block"),i=!1);i&&$("#page"+slideDeck[0][0]).css("display","block"),e=navigator.userAgent.toLowerCase(),o=e.indexOf("android")>-1,o&&$("body").addClass("isAndroid")}$(".ie7, .ie8").length&&(IE78=!0),$(".ie9").length&&(IE9=!0),s=function(){if(IE78){$("body").on("change",".customCheckbox",function(){$(this).is(":checked")?$(this).next("label").css("background-position","0 -33px"):$(this).next("label").css("background-position","0 9px")});$("body").on("change",".customRadio",function(){$(this).is(":checked")?($(".customRadio + label").css("background-position","0 9px"),$(this).next("label").css("background-position","0 -30px")):$(this).next("label").css("background-position","0 9px")})}},$('input[type="text"], textarea').placeholder(),runISIToggle(),init_tabs(),init_contentSlider(),runLeavingModal(),runSpanishModal(),s(),isiBannerStatus(),$(window).resize(Modal.resize),$(window).resize(function(){var t=$(window).scrollTop()+$(window).height(),i=$("#theIsi").offset().top;t>i+150?$("#isiBar").hide():$("#isiBar").show()}),$("#modalcloser, .modalcloser").click(Modal.close),$(".loginLink").click(function(){$("#loginLink").toggleClass("selected"),$("#loginContainer").toggleClass("hidden")}),$("a.share").click(function(){Modal.open({url:"../../../content/share.html",top:107,width:528,modalStyle:"sharemodal",params:{onComplete:function(){runShareModal()}}}),$(window).height()<685&&$("#modalmask").height("+=200"),$("#share #fillModal").removeClass("hidden"),$("#share #previewModal").addClass("hidden"),$("#share #successModal").addClass("hidden")}),$("#moduleMCD").click(function(){Modal.open({url:"/content/modules/making_conscious_decisions.html",width:810,top:1,modalStyle:"moduleMCDModal",params:{onComplete:function(){init_module_panel()}}})}),$(".accordionItem h4").click(function(){$(this).hasClass("active")?($(this).toggleClass("active"),$(this).next(".accordionContent").slideToggle("slow",function(){}),_gaq.push(["_trackEvent","Accordion Content","Collapse",getpath()+$(this).text()])):($(".accordionItem h4").removeClass("active"),$(".accordionContent").slideUp("slow"),$(this).toggleClass("active"),$(this).next(".accordionContent").slideToggle("slow",function(){var n=200,t=$(this).offset(),i=t.top-n;$("html, body").animate({scrollTop:i},1e3)}),_gaq.push(["_trackEvent","Accordion Content","Expand",getpath()+$(this).text()]))}),$(".faqItems").length==1&&($(".faqContent").slideToggle("slow"),$(".faqContent").show(),$("dd").hide(),$(".mainfaq").length==0&&$(".faqControl").hide(),$(".faqItems h2").css("background","transparent")),$(".faqItems dt").click(function(){clickedDt=$(this),clickedDt.hasClass("active")?(clickedDt.next("dd").slideUp("slow"),clickedDt.next("dd").each(function(){$(this).find("dt").removeClass("active"),$(this).find("div").removeClass("active"),$(this).find("dd").slideUp("slow")}),clickedDt.find("dt").removeClass("active"),clickedDt.removeClass("active"),clickedDt.parent("div").removeClass("active"),_gaq.push(["_trackEvent","Accordion Content","Collapse",getpath()+$(clickedDt).text()])):($(this).parent("div").siblings().each(function(){$(this).find("dt").removeClass("active"),$(this).find("div").removeClass("active"),$(this).find("dd").slideUp("slow")}),clickedDt.addClass("active"),clickedDt.parent("div").addClass("active"),clickedDt.next("dd").slideDown("slow",function(){var n=230,t=$(this).offset(),i=t.top-n;$("html, body").animate({scrollTop:i},1e3)}),_gaq.push(["_trackEvent","Accordion Content","Expand",getpath()+$(clickedDt).text()])),setTimeout(function(){n()},1100)}),$(".faqOpenAll").click(function(){$(".faqItems > .faqContent > div > dd").slideDown("slow"),$(".faqItems > .faqContent > div > dt").addClass("active"),$(".faqItems").hasClass("active")||_gaq.push(["_trackEvent","Accordion Content","Expand",getpath()+"All"])}),$(".faqCloseAll").click(function(){$(".faqItems > .faqContent > div ").each(function(){$(this).find("dt").removeClass("active"),$(this).find("div").removeClass("active"),$(this).find("dd").slideUp("slow")}),$(".faqItems").hasClass("active")&&_gaq.push(["_trackEvent","Accordion Content","Collapse",getpath()+"All"])}),$(".videomodal").click(function(){var t=$(this).attr("class").split(" vid-"),n=t[1];Modal.open({url:"../../../content/videohtml/"+n+".html",modalStyle:"videosModalContainer",width:636,params:{onComplete:function(){runvideo("videomodalvid",n)}},onClose:function(){_gaq.push(["_trackEvent","Videos","Video Close",getpath()+n+".mp4"])}})}),$(".patientsVideo").length>0&&videoPage(),$("#txtUsername").focus(function(){$(this).css("background-image","none")}),$("#txtUsername").blur(function(){$(this).val()==""&&$(this).css("background-image","url(../Images/label-username.gif)")}),$("#txtPassword").focus(function(){$(this).css("background-image","none")}),$("#txtPassword").blur(function(){$(this).val()==""&&$(this).css("background-image","url(../Images/label-password.gif)")}),$(".findDoctorResultPage .button.print").click(function(){$(".contentisi .isitext").attr("style","overflow: visible"),$(".scrollable").attr("style","overflow: visible !important"),$(".scrollablebody").attr("style","overflow: visible"),window.print(),$(".contentisi .isitext").removeAttr("style"),$(".scrollable").removeAttr("style"),$(".scrollablebody").removeAttr("style")}),$(".findDoctorResultPage .button.email").click(function(n){n.preventDefault(),Modal.open({contentEl:".formPopupContainer",title:"&nbsp;",width:"800",top:"0px",left:"120px",onClose:function(){signUpEmailSuccess!=!0&&_gaq.push(["_trackEvent","Form Submissions","Email Results to Me","Close"]),$("#modalcontent #formPopup").removeClass("hidden"),$("#modalcontent #successPopup").addClass("hidden")},onOpen:function(){_gaq.push(["_trackEvent","Form Submissions","Email Results to Me","Start"]),signUpEmailSuccess=!1}}),Modal.resize(),IE78&&$(".customCheckbox").each(function(){$(this).is(":checked")&&$(this).next("label").css("background-position","0 -33px")})});$(document).on("click","#formPopupSubmitBtn",function(){$(".FormField").removeClass("error");var n="FadSignUp";$.post(n,$("form.signUpEmail").serialize(),"json").done(function(n){if(n.success)return $("#modalcontent #formPopup").addClass("hidden"),$("#modalcontent #successPopup").removeClass("hidden"),$(window).scrollTop(0),$("#modalbody").css({top:50}),_gaq.push(["_trackEvent","Form Submissions","Email Results to Me","Complete"]),SetCrossixSrc("CrossixPixelOther","3"),__insp.push(["tagSession",{FADeCRM:"Complete"}]),signUpEmailSuccess=!0,n.chooseOne=="committed"?_gaq.push(["_trackEvent","Form Field Completion","Email Results to Me","Treatment for myself"]):n.chooseOne=="caretaker"&&_gaq.push(["_trackEvent","Form Field Completion","Email Results to Me","Treatment for someone else"]),n.EmailOptIn&&_gaq.push(["_trackEvent","Form Field Completion","Email Results to Me","Receive more information"]),!1;if(n.errorCode===501)for(var t=0;t<n.errors.length;t++)$("input[name="+n.errors[t]+"]").closest(".FormField").addClass("error"),_gaq.push(["_trackEvent","Validation Errors","Email Results to Me",n.errors[t]]);else alert(n.errorMessage)}).fail(function(){})});SetCrossixSrc("CrossixPixelAllPages","0"),$(".mhl a.showSteps").click(function(){$(".mhlIntro").hide(),$(".mhlAppAcquire").show()}),$("a.mhlSeeLess").click(function(){$(".mhlAppAcquire").hide(),$(".mhlIntro").show()}),n=function(n){var t=$(window).scrollTop()+$(window).height(),i=$("#theIsi").offset().top+150;(n!=undefined&&!n||t>i)&&$("#isiBar").fadeOut(300),(n||t<i)&&$("#isiBar").fadeIn(300)},$("#theIsi").length&&(t=10,$("body.landing").length?t=10:$("body.noSubmenu").length&&(t=10),$(window).scroll(function(){n()}),$(".isiJump").click(function(){$(".megamenu_container").addClass("hidden"),$("html, body").animate({scrollTop:$("#theIsi").offset().top-t},1e3)})),c=$("#subMenuRegion").position().top,h=$(".slidecontent").position().top+323,$(window).scroll(function(){var n=$(window).scrollTop(),t=$(document).height(),i=$(window).height();n>h?$(".mainnav").css({"background-color":"#fff"}):$(".mainnav").css({"background-color":"transparent"})});$(".hamburgerMenuIconRegion").on("click",function(){$(".megamenu_container").removeClass("hidden"),IE9&&$(".megamenu_container").find("input[name=ZipCode]").val("").focus().blur(),n(!0)});$(".megamenu .close").on("click",function(){$(".megamenu_container").addClass("hidden"),n()});if(IE9)$("a").on("click",function(){$('input[type="text"], textarea').each(function(){$(this).focus(),$(this).blur()})})});var isiBannerStatus=function(){$("#theIsi").length&&setTimeout(function(){var n=$(window).scrollTop()+$(window).height(),t=$("#theIsi").offset().top;n>t+150&&$("#isiBar").hide()},100)},runvideo=function(n,t){var e;$("#"+n).html("");var i,r,u=".mp4",f=!0,o="fill";$("body").hasClass("patientsVideo")?(i="444",r="790"):$(".homepage .slidepage1").length?(i="320",r="546",$("body").hasClass("isAndroid")?(f=!1,o="uniform"):f=!0):(i="320",r="546"),e=-1,jwplayer(n).setup({file:"/content/videos/"+t+u,height:i,width:r,image:"/Images/video/"+t+".jpg",mute:!1,modes:[{type:"html5"},{type:"flash",src:"/content/player.swf"},{type:"download"}],autostart:f,stretching:o,skin:"/content/videoskin/modieus.xml",events:{onPlay:function(){_gaq.push(["_trackEvent","Videos","Video Play",getpath()+t+u])},onComplete:function(){_gaq.push(["_trackEvent","Videos","Video Complete",getpath()+t+u])},onTime:function(){var n=parseInt(this.getPosition()/10)*10;n!=e&&(_gaq.push(["_trackEvent","Videos Engagement",getpath()+t+u,n.toString()]),e=n)}}}),setTimeout(function(){var t=document.getElementById(n+"_video");t&&t.paused&&t.play()},1e3)},introVideoClose=function(){Modal.close(),$(".slides").fadeIn(550),$.cookie("home_intro_video",1,{expires:365,path:"/"}),$("#modalmask").css({opacity:.3}),$(".modalcontent").fadeIn().css({height:"auto"})},videoPage=function(){$(".videoListItem .play").click(function(){var t=$(this).attr("class").split(" vid-"),n=t[1];Modal.open({url:"/treatment/patient-stories/Videos/"+n,modalStyle:"patientsVidModal",width:850,top:1,onClose:function(){jwplayer("patientVid").stop()},params:{onComplete:function(){runvideo("patientVid",n)}},onClose:function(){_gaq.push(["_trackEvent","Videos","Video Close",getpath()+n+".mp4"])}})})},runIntroVideo=function(){$.cookie("home_intro_video")!=1},runIntroVideoModal=function(){var n=107,i=n+75,t=$(window).height()-i;Modal.open({url:"../../../content/videohtml/homeintro.html",modalStyle:"homeIntroModalContainer",width:t*1.7,top:n,params:{onComplete:function(){$(".homeIntroModalContainer .modalmask").css({top:n+"px",height:t+"px"}),$(".homeIntroModalContainer .modalcontent").css({height:t+"px"});var i=function(){var n=$("#muteIntrovid").find("span");jwplayer().getMute()?n.html("Sound On"):n.html("Sound Off")},r=function(){runvideo("homeintrovid","homeintro"),$(".slides").fadeOut(100),$("#modalmask").css({opacity:1});$("#skipIntrovid").on("click",function(){introVideoClose(),_gaq.push(["_trackEvent","Videos","Video Close","/homeintro.mp4"])});$("#muteIntrovid").on("click",function(){var n=$(this).find("span");jwplayer().getMute()?(jwplayer().setMute(!1),n.html("Sound On")):(jwplayer().setMute(!0),n.html("Sound Off"))});$(document).on("submit","form",function(){introVideoClose()});jwplayer("homeintrovid").onMute(function(){i()});jwplayer("homeintrovid").onComplete(function(){introVideoClose()})};r();$("#homeintroModalClose, .mainnav ul").on("click",function(){introVideoClose()})}}})};var urlquery="",runISIToggle=function(){$(".scrollablerail").addClass("hidden");var n=!0;$(".moreisi").on("click",function(){var t=114,i=200;$(".isitext").scrollTop(0),n?($(this).addClass("lessisi").find("span").html("LESS"),$(".contentisi").css("height",t).fadeIn().animate({height:i+"px"}),$(".contentisi .isitext").css({height:"180px",overflow:"hidden"}),$(".scrollablerail").toggleClass("hidden")):($(this).removeClass("lessisi").find("span").html("MORE"),$(".contentisi").animate({height:t+"px"}),$(".contentisi .isitext").css({height:"85px",overflow:"hidden"}),$(".scrollablerail").addClass("hidden")),n=!n})},init_tabs=function(){$("ul.tabs").length&&($("div.tabContentWrap").each(function(){$(this).find("div.tabContent:first").show()}),$("ul.tabs a").click(function(){return $(this).hasClass("current")||($(this).addClass("current").parent("li").siblings("li").find("a.current").removeClass("current"),$($(this).attr("href")).show().siblings("div.tabContent").hide()),this.blur(),!1}))},init_contentSlider=function(){function f(){$("#slidesHolder").animate({marginLeft:t*-n})}function u(n){n==0?$("#slidecontrolLeft").hide():$("#slidecontrolLeft").show(),n==i-1?$("#slidecontrolRight").hide():$("#slidecontrolRight").show()}var n=0,t=870,r=$(".slideContent"),i=r.length,e,o=3e3;$(".slidecontrol").show(),r.wrapAll('<div id="slidesHolder"><\/div>'),r.css({float:"left"}),$("#slidesHolder").css("width",t*i),$("#slidesHolder").css("marginLeft")=="0px"&&$("#slidecontrolLeft").hide(),$(".slidecontrol").bind("click",function(){n=$(this).attr("id")=="slidecontrolRight"?n+1:n-1,u(n),$(".currentSlideNum").html(n+1),f()}),$("#watch_video_tab").click(function(){$(".slidecontrol").hide()}),$("#slide_show_tab").click(function(){$(".slidecontrol").show(),$("#slidesHolder").css("marginLeft")=="0px"&&$("#slidecontrolLeft").hide(),$("#slidesHolder").css("marginLeft")==-t*i+t+"px"&&$("#slidecontrolRight").hide()})},init_module_panel=function(){function r(n){$(".moduleProgressBar li").removeClass("active"),$(".moduleProgressBar li").eq(n).addClass("active")}function u(n){$(".panelListItem").removeClass("active"),$("#panel"+n).addClass("active"),n==1?t.hide():t.show(),n==f?i.hide():i.show()}var n=1,f=$(".panelListItem").length,t=$("#panelBack"),i=$("#panelNext");t.hide(),i.click(function(){n++,u(n),r(n-1)}),t.click(function(){n--,u(n),r(n-1)})},runLeavingModal=function(){$(document).on("click",'a[href^="http"], a[href^="https"]',function(n){var t=$(this).attr("href");$(this).hasClass("noLeavingModal")||(t.match(/https?:/i)!=null||$(this).hasClass("leaving-modal"))&&(n.preventDefault(),$(".homeIntroModalContainer").length?(introVideoClose(),leavingModal(t,this)):leavingModal(t,this))})},runSpanishModal=function(){$("#spanishModal").click(function(){$(".homeIntroModalContainer").length&&introVideoClose(),Modal.open({url:"../../../content/spanishpdf.html",width:640,modalStyle:"spanishModal",params:{onComplete:function(){$(".spanishPDF a").click(function(n){var i,t;n.preventDefault(),i=$(this).attr("href"),window.open(i),t=this.href.replace("//",""),t=t.substr(t.indexOf("/")),_gaq.push(["_trackEvent","File Downloads","Download",window.location.pathname+t])})}}})})},runShareModal=function(){$("#previewShare, #shareEdit").click(function(){$("#share #friendEmail, #share #shareEmail").parent().removeClass("error");var n=$("#share #friendEmail").val(),t=$("#share #shareEmail").val(),i=!0,r=n.match(/^([0-9a-zA-Z]+[-._'+&])*[_0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/i),u=t.match(/^([0-9a-zA-Z]+[-._'+&])*[_0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/i);n.toLowerCase()==t.toLowerCase()&&(i=!1,$("#share #shareEmail").parent().addClass("error").children("div").text("Email Addresses must be different.")),r||$("#share #friendEmail").parent().addClass("error"),u||$("#share #shareEmail").parent().addClass("error").children("div").text("A valid Email Address is required."),r&&u&&i?($("#fillModal").toggleClass("hidden"),$("#previewModal").toggleClass("hidden")):IE9&&$("#modalcontent").find("input[type=text], textarea").each(function(){$(this).focus().blur()})}),$("#shareEmail, #shareName").bind("keydown keyup keypress cut copy past blur change",function(){$("#"+$(this).attr("id")+"Input").text($(this).val())});$("form#share").on("submit",function(){return $.post("/default/share",{friendEmail:$("#share #friendEmail").val(),shareEmail:$("#share #shareEmail").val(),shareName:$("#share #shareName").val()},function(n){n.success=="true"?($(this).siblings("h2").remove(),$("#share #fillModal").addClass("hidden"),$("#share #previewModal").addClass("hidden"),$("#share #successModal").removeClass("hidden"),_gaq.push(["_trackEvent","Share","Click - Share",window.location.pathname])):alert(n.error)}),!1})},leavingModal=function(n,t){isCopay=$(t).attr("class")&&$(t).attr("class").indexOf("copaydownload")!=-1,Modal.open({url:"../../../content/leaving.html",modalStyle:"leaveModal",title:"You are about to leave Suboxone.com",width:635,params:{onComplete:function(){$("#modalcontainer").data("url",n),$(".leaveModal .leaveContinue").click(function(){$(".leavingContent").removeClass("hidden"),Modal.close(),isCopay?(_gaq.push(["_trackPageview",getpath()+"copay/download"]),__insp.push(["tagSession",{CopayDownload:"Complete"}])):_gaq.push(["_trackEvent","Exit Links","Click - Exit Link",getpath()+"/"+n]),window.open(n)}),$(".leaveModal .leaveCancel").click(function(){Modal.close()})}}})},Modal={onOpen:function(){},onClose:function(){},onResize:function(){},open:function(n){n=n||{};var f=n.title||"",t=n.url||"",e=n.trackUrl==null?t:n.trackUrl,i=n.params||{},r=n.contentEl||"",o=n.gotovid||"",u=i.onComplete||function(){};Modal.onOpen=n.onOpen||function(){},Modal.onClose=n.onClose||function(){},Modal.onResize=n.onResize||function(){},Modal.onTransferContent=n.onTransferContent||function(){},Modal.modalStyle=n.modalStyle||"",Modal.top=n.top||200,Modal.width=n.width||500,Modal.cleanUp(),i.onComplete=function(){$("#modalloader").remove(),u.apply(null,arguments),IE9&&($("#modalcontent").find("input[type=text], textarea").placeholder(),Modal.resize())},t!=""?($("#modalcontent").html("<div id='modalloader' class='modalloader'><\/div>"),Modal.updater=n.post&&typeof n.post=="object"?$("#modalcontent").load(t,n.post,i.onComplete):$("#modalcontent").load(t,i.onComplete)):r!=""&&(Modal.contentOrigin=$(r),Modal.transferContent(Modal.contentOrigin,"#modalcontent")),$("#modalcontainer").removeClass().addClass("modalcontainer "+Modal.modalStyle),Modal.resize(),Modal.onOpen()},close:function(){Modal.onClose(),Modal.cleanUp(),$("#modalcontainer").removeClass(Modal.modalStyle),$("#modalcontent").html("")},cleanUp:function(){Modal.contentOrigin&&(Modal.transferContent("#modalcontent",Modal.contentOrigin),Modal.contentOrigin=null),$("#modalcontent").html(""),$("#modalcontainer").removeClass(Modal.modalStyle).addClass("hidden")},resize:function(){var i=$("#modalbody").height(),n=document.documentElement.offsetWidth/2-Modal.width/2,t=$(window).height()>i+Modal.top?Modal.top:($(window).height()-i)/2,f=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),e=Math.max(document.documentElement.scrollTop,document.body.scrollTop),r,u;n=n>0?n:0,t=t>0?t:0,$("#modalbody").css({left:f+n+"px",top:e+t+"px"}),$("#modalbody").width(Modal.width+"px"),$("#modalmask").hide(),r=Math.max(document.body.scrollHeight,$(window).height()),u=Math.max(document.body.scrollWidth,$(window).width()),$("#modalmask").css({height:r+"px",width:u+"px"}),$("#modalmask").show(),Modal.onResize()},transferContent:function(n,t){$(t).html($(n)[0].innerHTML),$(n)[0].innerHTML="",Modal.onTransferContent()}};var SetCrossixSrcTryCount=0,SetCrossixSrc=function(n,t){var o=document.getElementById(n),s=$.cookie("__utmz"),c=$.cookie("__utma"),e,i,u,r,f,h;if(o&&s){for(SetCrossixSrcTryCount=0,e=s.split("|"),i={},u=0;u<e.length;u++)r=e[u].split("="),r[0]=r[0].replace(/.*(utm.+)/ig,"$1"),i[r[0]]=r[1];f=parseInt(c.split(".")[5]),f==NaN&&(f=0),h=i.utmgclid?!0:!1,$.get(window.location.protocol+"//"+window.location.host+"/crossix/getserverdate",{rnd:Math.random()}).done(function(n){var e=n.result,r=[],u;for(r.push("Timestamp="+e),r.push("RepeatVisitor="+(f>1?"Y":"N")),r.push("Domain="+gaDomain),r.push("DeviceType=desktop"),r.push("TrafficSource="+CrossixCleanValue(i.utmccn)),r.push("ReferralChannel="+(h?"cpc":CrossixCleanValue(i.utmcmd))),r.push("ReferralSource="+CrossixCleanValue(i.utmcsr)),r.push("SearchGroup="+CrossixCleanValue(i.utmctr)),u=1;u<8;u++)r.push("KeyAct"+u+"="+(u==t?1:0));o.src=location.protocol+"//di.rlcdn.com/"+CrossixTagID+".html?pdata="+encodeURIComponent(r.join(","))})}else SetCrossixSrcTryCount<5&&(SetCrossixSrcTryCount++,setTimeout(function(){SetCrossixSrc(n,t)},200))},CrossixDDGFiles=["talking_with_doctor-new.pdf","talking_with_doctor-switching.pdf","talking_with_doctor-back.pdf","doctor-discussion-guide.pdf"],CrossixCleanValue=function(n){return n?n.replace(/,/gi,""):"(not set)"},suboxoneExitSurveys=function(n,t){function r(t){function f(){for(var r,f,u,t=0;t<i.length;t++)for(r in i[t])if(i[t].hasOwnProperty(r)){f=n(r);for(u in i[t][r])i[t][r].hasOwnProperty(u)&&f.css(u,"")}i.length=0}var i=[],r,u=!1;return r=function(n){for(var r={},u=n.split(" "),t,i=0;i<u.length;i++){var f=u[i].split("-"),e=f[0],n=f[1].split(",");for(t=0;t<n.length;t++)n[t]=a[n[t]];r[e]=n}return r}(t),function(t){var o,e,s;if(f(),t==="error"?u=!0:u&&t==="optIn"&&(t="error"),!!r[t])for(o=r[t],e=0;e<o.length;e++)for(s in o[e])n(s).css(o[e][s]),i.push(o[e])}}function c(){for(var u={},e=t.location.search.substring(1),f=e.split("&"),r,i=0;i<f.length;i++)r=f[i].split("="),u[decodeURIComponent(r[0])]=decodeURIComponent(r[1]);return u}function s(i){var u,h;if(t.disable_exit_survey!==!0){var r=JSON.parse(n.cookie(e)||JSON.stringify({v:0,f:0,s:0})),f=n.cookie(o)||"0",s=+new Date;if(r.s!==1){if(u=/^armed-?/.test(f),h=parseInt((/(?:^|-)([0-9]+)$/.exec(f)||[0,0])[1]),s>=h)u=!1,r.v++;else if(u&&n("body.findDoctorResultPage").length===0){v(y(r)),n.removeCookie(o),n.cookie(e,JSON.stringify({s:1}),{expires:36525,path:"/"});return}i===!0?(r.f=1,u=!0):r.v>=2&&(u=!0),f=(u?"armed-":"")+(s+l),n.cookie(o,f,{path:"/"}),n.cookie(e,JSON.stringify(r),{expires:36525,path:"/"})}}}function v(t){function r(n){return i.find('input[name="'+n+'"]').closest(".surveyQuestionBlock")}function e(u){var e=n(u.currentTarget).closest(".surveyQuestionBlock"),c=e.find('input[type="checkbox"],input[type="radio"]').attr("name"),f=t.questions[c],o,s;if(e.find("input:checked").length===0){e.addClass("error"),!f.buggedCss||f.buggedCss("error");return}if(e.find(".surveyQuestion-email")&&e.find("input:checked").val()==="SurveyOptInYes"&&!/^(?:[0-9a-zA-Z]+[-._'+&])*[_0-9a-zA-Z]+@(?:[-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$/.test(e.find("input[name=Email]").val())){e.addClass("error"),!f.buggedCss||f.buggedCss("error");return}b(c),!f.buggedCss||f.buggedCss(null),f=typeof f.next=="function"?f.next(i):f.next,e.css("display",""),typeof f=="string"?(i.find(".js-first-question-only").css("display","none"),r(f).css("display","block"),i.find(".surveyProgressBarProgress").css("width",t.questions[f].progress*100+"%"),!t.questions[f].buggedCss||t.questions[f].buggedCss("normal")):(i.find(".js-question-ui,.js-first-question-only").css("display","none"),i.closest(".modalcontent").addClass("containsTerminationBlock"+f),o=i.find("form"),n.post(o.attr("action"),o.serialize()),s=i.find(".terminationBlock"+f),s.css("display","block"),Modal.width=parseInt(s.data("required-modal-width"),10),Modal.resize(),!t.buggedCssTerminations||!t.buggedCssTerminations[f]||t.buggedCssTerminations[f]("normal"),h=f,w())}if(t!==null){u=t.GAID,f=t.GAName,p();var i;Modal.open({url:"../../../content/exitsurveys.html",top:95,width:786,modalStyle:"surveyModal",params:{onComplete:function(){var u,f,o;for(n(".leaveModal .leaveCancel").click(function(){Modal.close()}),i=n("#surveyQuestionContainer"),u="."+t.notActiveContainerClasses[0],f=1;f<t.notActiveContainerClasses.length;f++)u=u+",."+t.notActiveContainerClasses[f];i.find(u).filter(":not(."+t.containerClass+")").remove(),o=i.find(".surveyQuestion-email");o.parent().find("input[name=SurveyOptIn]").on("click",function(){!t.questions.SurveyOptIn.buggedCss||t.questions.SurveyOptIn.buggedCss(null),n("input[name=SurveyOptIn]:checked").val()==="SurveyOptInYes"?(o.css("display","block"),!t.questions.SurveyOptIn.buggedCss||t.questions.SurveyOptIn.buggedCss("optIn")):(o.css("display","none"),!t.questions.SurveyOptIn.buggedCss||t.questions.SurveyOptIn.buggedCss("normal"))});i.on("click",".js-next button",e);r(t.start).css("display","block"),!t.questions[t.start].buggedCss||t.questions[t.start].buggedCss("normal")}}})}}function y(n){function f(){var n={containerClass:"first-session-fad",GAID:1,GAName:"FAD Complete",start:"FADSegment",questions:{FADSegment:{next:function(n){var t=n.find('input[type="radio"][name="FADSegment"]:checked').val();switch(t){case"FADSegmentCurrentlyInTreatment":case"FADSegmentPreviouslyInTreatment":return"FADTreatments";case"FADSegmentNeverTreated":case"FADSegmentConcernedFamilyOrFriend":return"FADFoundDoctor";default:return 1}},progress:0,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28")},FADTreatments:{next:"FADNewDoctorReason",progress:1/9,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28")},FADNewDoctorReason:{next:"FADFoundDoctor",progress:2/9,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28")},FADFoundDoctor:{next:function(t){return t.find('input[type="radio"][name="FADFoundDoctor"]:checked').val()==="FADFoundDoctorYes"?"FADVisitDoctorDelay":(n.termination=2,"SurveyOptIn")},progress:3/9,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28")},FADVisitDoctorDelay:{next:function(t){var i=t.find('input[type="radio"][name="FADVisitDoctorDelay"]:checked').val();return i==="FADVisitDoctorDelayNotReady"?"FADNotYetReadyToContactDoctorReasons":((i=="FADVisitDoctorDelayToday"||i=="FADVisitDoctorDelayOneWeek"||i=="FADVisitDoctorDelayOneMonth")&&SetCrossixSrc("CrossixPixelOther","7"),n.termination=3,"SurveyOptIn")},progress:4/9,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28")},FADNotYetReadyToContactDoctorReasons:{next:function(t){var i=t.find('input[type="checkbox"][name="FADNotYetReadyToContactDoctorReasons"][value="FADNotYetReadyToContactDoctorReasonsJustStarted"]:checked').length>0,r=t.find('input[type="checkbox"][name="FADNotYetReadyToContactDoctorReasons"][value="FADNotYetReadyToContactDoctorReasonsSuboxoneIsNotRight"]:checked').length>0;return i&&r?(n.suboxoneNotRight=!0,"FADHelpfulTools"):i?"FADHelpfulTools":r?"FADSuboxoneNotRightReasons":"SurveyOptIn"},progress:5/9},FADHelpfulTools:{next:function(){return n.suboxoneNotRight?"FADSuboxoneNotRightReasons":"SurveyOptIn"},progress:6/9,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28 error-surveyShadedBlockPadding28")},FADSuboxoneNotRightReasons:{next:"SurveyOptIn",progress:7/9,buggedCss:r("normal-modalContentLarger,surveyShadedBlockPadding28")},SurveyOptIn:{next:function(){return n.termination||4},progress:8/9,buggedCss:r("normal-modalContentUneven optIn-modalContentUneven,surveyShadedBlockPadding25")}}};return n}function e(){var n={containerClass:"not-first-session-nofad",GAID:2,GAName:"Returning Visitor 2",start:"FADSegment",buggedCssTerminations:{1:r("normal-modalContentUneven"),3:r("normal-modalContentUneven")},questions:{FADSegment:{next:function(n){var t=n.find('input[type="radio"][name="FADSegment"]:checked').val();switch(t){case"FADSegmentCurrentlyInTreatment":case"FADSegmentPreviouslyInTreatment":return"FADTreatments";case"FADSegmentNeverTreated":case"FADSegmentConcernedFamilyOrFriend":return"FADSuboxonePreviousFamiliarity";default:return 1}},progress:0},FADTreatments:{next:"FADSuboxonePreviousFamiliarity",progress:1/7},FADSuboxonePreviousFamiliarity:{next:"FADNotYetReadyToContactDoctorReasons",progress:2/7},FADNotYetReadyToContactDoctorReasons:{next:function(t){var i=t.find('input[type="checkbox"][name="FADNotYetReadyToContactDoctorReasons"][value="FADNotYetReadyToContactDoctorReasonsJustStarted"]:checked').length>0,r=t.find('input[type="checkbox"][name="FADNotYetReadyToContactDoctorReasons"][value="FADNotYetReadyToContactDoctorReasonsSuboxoneIsNotRight"]:checked').length>0;return i&&r?(n.suboxoneNotRight=!0,"FADHelpfulTools"):i?"FADHelpfulTools":r?"FADSuboxoneNotRightReasons":"FADSpeakToADoctorAboutConcerns"},progress:3/7},FADHelpfulTools:{next:function(){return n.suboxoneNotRight?"FADSuboxoneNotRightReasons":"SurveyOptIn"},progress:4/7,buggedCss:r("normal-surveyShadedBlockPadding28 error-surveyShadedBlockPadding28")},FADSuboxoneNotRightReasons:{next:"SurveyOptIn",progress:5/7},FADSpeakToADoctorAboutConcerns:{next:function(n){var t=n.find('input[name="FADSpeakToADoctorAboutConcerns"][value="FADSpeakToADoctorAboutConcernsYes"]:checked').length>0;return t?"FADVisitDoctorDelay":"SurveyOptIn"},progress:4/7,buggedCss:r("normal-surveyShadedBlockPadding28 error-surveyShadedBlockPadding28")},FADVisitDoctorDelay:{next:function(t){var i=t.find('input[type="radio"][name="FADVisitDoctorDelay"]:checked').val();return i==="FADVisitDoctorDelayNotReady"?"FADNotYetReadyToContactDoctorReasons":((i=="FADVisitDoctorDelayToday"||i=="FADVisitDoctorDelayOneWeek"||i=="FADVisitDoctorDelayOneMonth")&&SetCrossixSrc("CrossixPixelOther","7"),n.termination=3,"SurveyOptIn")},progress:5/7},SurveyOptIn:{next:function(){return n.termination||4},progress:6/7,buggedCss:r("normal-modalContentUneven optIn-modalContentUneven error-modalContentUneven")}}};return n}function o(){var n={containerClass:"not-first-session-fad",GAID:3,GAName:"Returning Visitor 3",start:"FADSegment",buggedCssTerminations:{1:r("normal-modalContentUneven"),2:r("normal-modalContentUneven"),3:r("normal-modalContentUneven")},questions:{FADSegment:{next:function(n){var t=n.find('input[type="radio"][name="FADSegment"]:checked').val();return t==="FADSegmentHCP"?1:"FADFoundDoctor"},progress:0},FADFoundDoctor:{next:function(n){var t=n.find('input[name="FADFoundDoctor"]:checked').val()==="FADFoundDoctorYes";return t?"FADSpokeWithDoctor":"FADNotYetReadyToContactDoctorReasons"},progress:1/7},FADSpokeWithDoctor:{next:function(t){var i=t.find("input[name=FADSpokeWithDoctor]:checked").val();switch(i){case"FADSpokeWithDoctorYesGotSuboxone":return n.termination=2,"SurveyOptIn";case"FADSpokeWithDoctorYesButNotSuboxone":return"FADDoctorDidNotWriteReason";case"FADSpokeWithDoctorNo":return"FADDidNotSpeakWithDoctorReason"}},progress:2/7},FADDoctorDidNotWriteReason:{next:function(n){var t=n.find('input[value="FADDoctorDidNotWriteReasonDifferentMedication"]:checked').length>0;return t?"FADTreatments":"FADSuboxoneVisitReason"},progress:3/6},FADDidNotSpeakWithDoctorReason:{next:"FADNotYetReadyToContactDoctorReasons",progress:3/7,buggedCss:r("normal-surveyShadedBlockPadding28 error-surveyShadedBlockPadding28")},FADNotYetReadyToContactDoctorReasons:{next:"FADSuboxoneVisitReason",progress:4/7},FADSuboxoneVisitReason:{next:"SurveyOptIn",progress:5/7},FADTreatments:{next:"SurveyOptIn",progress:4/6},SurveyOptIn:{next:function(){return n.termination||3},progress:6/7,buggedCss:r("normal-modalContentUneven optIn-modalContentUneven error-modalContentUneven")}}};return n}for(var i=[f,e,o],u,t=0;t<i.length;t++)i[t]=i[t]().containerClass;if(n.s===1)return null;for(n.v===1?u=f():n.v>1&&(u=n.f===1?o():e()),t=0;t<i.length;t++)if(i[t]===u.containerClass){i.splice(t,1);break}return u.notActiveContainerClasses=i,u}function p(){_gaq.push(["_setCustomVar","2","TypeOfSurvey",f,"1"]),_gaq.push(["_trackEvent","Site Feedback Survey Results","Load",f]);switch(u){case 1:__insp.push(["tagSession",{Survey1Load:"Complete"}]);break;case 2:__insp.push(["tagSession",{Survey2Load:"Complete"}]);break;case 3:__insp.push(["tagSession",{Survey3Load:"Complete"}])}}function w(){_gaq.push(["_trackEvent","Site Feedback Survey Results","Complete",f]),n(".terminationBlock").find("a").each(function(){n(this).on("click",function(){var i=n(this).attr("href"),r;return _gaq.push(["_trackEvent","Site Feedback Survey "+u+" Results","Termination "+h,i]),i=="/treatment-plan/savings-card"&&(_gaq.push(["_trackPageview","Copay/download"]),__insp.push(["tagSession",{CopayDownload:"Complete"}])),r=n(this).attr("target")=="_blank",!r&&!i.match(/^http/g)?(i.match(/[\.pdf]$/g)&&GaFileDownloadEvent(i),setTimeout(function(){t.location=i},500),!1):void 0})})}function b(t){var r=nt(u,t),e=n("input[name='"+t+"']").parent().siblings("h3").html().replace("&nbsp;"," ").replace(/<[^>]*>/ig,""),i=tt(t);u==2&&r==7?_gaq.push(["_setCustomVar","4","SpeakToDoctorAboutSuboxone",i,"1"]):u==3&&r==3&&_gaq.push(["_setCustomVar","5","PrescribedSuboxone",i,"1"]),t=="FADSegment"&&(_gaq.push(["_setCustomVar","3","UserType",i,"1"]),_gaq.push(["_trackEvent","Site Feedback Survey Results","Start",f])),_gaq.push(["_trackEvent","Site Feedback Survey "+u+" Results",r+" - "+e,i]),t=="SurveyOptIn"&&n("input[name="+t+"]:checked").val()=="SurveyOptInYes"&&_gaq.push(["_trackEvent","Site Feedback Survey "+u+" Results","Email Sign Up","Yes"])}function nt(n,t){var i=0;return n==1?i=k.indexOf(t)+1:n==2?i=d.indexOf(t)+1:n==3&&(i=g.indexOf(t)+1),i}function tt(t){var i=1,r=[];return n("input[name='"+t+"']").each(function(){n(this).is(":checked")&&r.push("c"+i),i++}),r.join("|")}var u=0,h=0,f="",e="suboxonesurveystate",o="suboxonesurveystate_v",l=(t.SITE_SURVEY_SESSION_EXPIRY_INTERVAL_MINS||30)*6e4,a={modalContentLarger:{".modalcontent":{"padding-left":"17px","padding-right":"17px"}},modalContentUneven:{".modalcontent":{padding:"0 35px 20px 25px"}},surveyShadedBlockPadding28:{".surveyShadedBlock":{"padding-left":"28px","padding-right":"28px"}},surveyShadedBlockPadding25:{".surveyShadedBlock":{"padding-left":"25px","padding-right":"25px"}}};t.SuboxoneExitsurveysPageChanged=s,t.SuboxoneExitsurveysFADAgreed=function(){c().sss_disable!=="1"&&s(!0)},n(function(){c().sss_disable!=="1"&&s()});var k=["FADSegment","FADTreatments","FADNewDoctorReason","FADFoundDoctor","FADVisitDoctorDelay","FADNotYetReadyToContactDoctorReasons","FADHelpfulTools","FADSuboxoneNotRightReasons","SurveyOptIn"],d=["FADSegment","FADTreatments","FADSuboxonePreviousFamiliarity","FADNotYetReadyToContactDoctorReasons","FADHelpfulTools","FADSuboxoneNotRightReasons","FADSpeakToADoctorAboutConcerns","FADVisitDoctorDelay","SurveyOptIn"],g=["FADSegment","FADFoundDoctor","FADSpokeWithDoctor","FADDoctorDidNotWriteReason","FADDidNotSpeakWithDoctorReason","FADNotYetReadyToContactDoctorReasons","FADSuboxoneVisitReason","FADTreatments","SurveyOptIn"];return{trigger:function(t){function i(t){n.cookie(e,JSON.stringify(t),{path:"/"}),n.cookie(o,"armed-"+(+new Date+6e5))}t===1?i({v:1}):t===2?i({v:2,f:0}):t===3&&i({v:2,f:1}),s()}}}(jQuery,this)