(function(a){for(var b=["Width","Height"],c;c=b.pop();)(function(b,c){a.fn[b]=b in new Image?function(){return this[0][b]}:function(){var a=this[0],b;"img"===a.tagName.toLowerCase()&&(b=new Image,b.src=a.src,b=b[c]);return b}})("natural"+c,c.toLowerCase())})(jQuery);
(function(a){a.fn.rwdImageMaps=function(){var b=this,c=parseFloat(a.fn.jquery);a(window).resize(function(){b.each(function(){if("undefined"!=typeof a(this).attr("usemap")){var b=this,e=a(b);a("").load(function(){var f,g;1.6>c?(f=b.getAttribute("width"),g=b.getAttribute("height")):(f=e.attr("width"),g=e.attr("height"));if(!f||!g){var h=new Image;h.src=e.attr("src");f||(f=h.width);g||(g=h.height)}var j=e.width()/100,k=e.height()/100,h=e.attr("usemap").replace("#","");a('map[name="'+h+'"]').find("area").each(function(){var b=
a(this);b.data("coords")||b.data("coords",b.attr("coords"));for(var c=b.data("coords").split(","),d=Array(c.length),e=0;eW.version()?(w=a(u)[0]).text="document.getElementById('"+l.id+"')."+
q+"()":l[f]=f,Z&&(l.htmlFor=l.id,l.event=p),l[t]=l[q]=l[x]=function(a){if(!l[E]||!/i/.test(l[E])){try{l[p]&&l[p]()}catch(b){}a=F;F=0;a?L(a[0]):G(j)}},l.src=n,A=function(){K&&clearTimeout(K);l[x]=l[t]=l[q]=null;y[s](l);w&&y[s](w)},y[k](l,C=y.firstChild),w&&y[k](w,C),K=0",N="success",P="timeout",
V=window,U=a.Deferred,y=a("head")[0]||document.documentElement,H={},Y=0,F,Q={callback:m,url:location.href},W=V.opera,Z=!!a("").html("<\!--[if IE]>
").find("i").length;e.setup=function(b){a.extend(Q,b)};a.jsonp=e})(jQuery);function SSBandInteraction(a){this.config=a;this._init()}
SSBandInteraction.prototype._init=function(){var a=this,b=this.config.container,c=this.config.linksDisabled;b.bind("mousedown",function(d){if(1===d.which){var e=$(this).offset();a.startX=d.pageX-e.left;b.bind("mouseup",function(a){var d,a=a.target,e=a.tagName.toUpperCase();if(c)d=!1;else if("SPAN"===e&&"A"===a.parentNode.tagName.toUpperCase())d=a.parentNode;else if("A"===e||"AREA"===e)d=a;d&&(a=parseInt(d.attributes.href.value,10),isNaN(a)&&window.open(d.href),$.slideshareEventManager.trackOutboundClick(d.href));
b.unbind("mouseup")})}});$(b).bind("click",function(a){a.preventDefault()});$(this).bind("bandclick",function(b){b.preventDefault();var b=b.ssData.x,c=a.config.width/3;b2*c&&$(a).trigger("bandnext")});$(".leftpoint").click(function(){$(a).trigger("bandprevious")});$(".rightpoint").click(function(){$(a).trigger("bandnext")})};
SSBandInteraction.prototype.activate=function(){$(this).bind("bandprevious",function(){$.slideshareEventManager.trigger("previous",{source:"band"})});$(this).bind("bandnext",function(){$.slideshareEventManager.trigger("next",{source:"band"})})};SSBandInteraction.prototype.deactivate=function(){$(this).unbind("bandprevious");$(this).unbind("bandnext")};SSBandInteraction.prototype.destroy=function(){};
"undefined"===typeof window.cookie&&(window.cookie=function(a,b,c){if("undefined"!=typeof b){c=c||{};null===b&&(b="",c.expires=-1);var d="";if(c.expires&&("number"==typeof c.expires||c.expires.toUTCString))"number"==typeof c.expires?(d=new Date,d.setTime(d.getTime()+864E5*c.expires)):d=c.expires,d="; expires="+d.toUTCString();var e=c.path?"; path="+c.path:"",f=c.domain?"; domain="+c.domain:"",c=c.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(b),d,e,f,c].join("")}else{b=null;if(document.cookie&&
""!==document.cookie){c=document.cookie.split(";");for(d=0;dd-1&&b.lastSlideReached(),"ytube_video"===f.config.slideMode&&f._pauseVideo(),c===d&&"undefined"===typeof new_mobile_player?this.trigger("showlastscreen"):(c+=1,b.play(c,!1,a&&a.source),b.config.has_audio&&this.trigger("slidecastseekslide",{index:c}),a&&a.source&&$.slideshareEventManager.trackEvent(a.source+
"_"+c)))},previous:function(a){var b=this.controller,c=b.currentPosition,d=c-1,e=a&&a.source;b.slides[c].stop();b.play(d,!1,e);b.config.has_audio&&this.trigger("slidecastseekslide",{index:d});a&&a.source&&$.slideshareEventManager.trackEvent(a.source+"_"+d)},mobileScrollPlayingMode:function(a){this.controller.playingMode=a},gotolastslide:function(){var a=this.controller;a.play(a.slideCount)},document_touch_scroll:function(a){this.controller.currentComponentSet.slidedisplayer.manualScroll(a.delta)},
toggleaudio:function(){var a=this.controller;a.multimediaResource&&a.multimediaResource.togglePlay()},audioplayed:function(){this.controller.currentComponentSet.toolbar.updateAudioInteraction({audioPlaying:!0})},audiopaused:function(){this.controller.currentComponentSet.toolbar.updateAudioInteraction({audioPlaying:!1})},videoready:function(a){var b=this.controller;b.initVideoPlayer(a.mode);b.currentComponentSet.videobar._bindEvents();a.nonIosMobile&&((a=document.getElementsByTagName("video")[0])&&
a.play(),a.addEventListener("canplaythrough",function(){b.currentComponentSet.videobar.playReady=!0;b.currentComponentSet.videobar.addVideoListeners()}))},gotoslide:function(a){this.controller.play(a.index);$.slideshareEventManager.trackEvent("jumptoslide_"+a.index)},viewonss:function(){window.open(this.controller.config.slideview_url,"viewer")},viewfullscreen:function(){var a=this.controller,b=a.currentComponentSet;"nativefullscreen"==a.currentViewMode||"fullscreen"==a.currentViewMode||("document"===
a.config.player_type&&b.slidedisplayer.setZoom(0),b.videobar&&(a.disableLeadForFullscreenVideo(!0),b.slidedisplayer.adjustSpinnerPosition(!0)),a.isNativeFullScreenSupported?("undefined"!==typeof SSDocumentDisplayer&&a.currentComponentSet.slidedisplayer instanceof SSDocumentDisplayer&&this.trigger("gotoslide",{index:1}),b.container.addClass("fullscreen"),a.switchNativeView("nativefullscreen")):"video"===a.config.player_type?(b.container.addClass("fullscreen"),a.goHtmlFullscreenForVideo()):a.config.inpage_full_screen?
(b.container.addClass("fullscreen"),a.switchView("fullscreen")):("undefined"!==typeof SSVideoEmbedSlide&&(a.currentPosition&&a.slides[a.currentPosition]instanceof SSVideoEmbedSlide)&&a.slides[a.currentPosition].stop(),window.open(a.getFullScreenUrl(),"viewer","width="+screen.width+",height="+screen.height+",location=no")))},leavefullscreen:function(){var a=this.controller;"normal"!=a.currentViewMode&&(a.currentComponentSet.container.removeClass("fullscreen"),a.leaveFullScreen())},zoomin:function(){this.controller.currentComponentSet.slidedisplayer.zoomin()},
zoomout:function(){this.controller.currentComponentSet.slidedisplayer.zoomout()},playersearch:function(){},playershare:function(){if("slideview"===this.hostedIn)try{share_form_click()}catch(a){}else this.controller.displayShareScreen()},metadataloaded:function(a){var b=this.controller,c=a.type;b._metaDataHandlers()[c].success.call(b,a.json)},metadataloadfailed:function(a){var b=this.controller,a=a.type;b._metaDataHandlers()[a].failure.call(b);this.trackRawEvent("jsplayer_debug",a+"_metadataloadfailed",
void 0,!0)},slidechanged:function(a){var b=a.index,c=this.controller;if(c.currentPosition!==b||a.force)c.updateCurrentPosition(b),b===c.config.start_slide&&c.config.show_image_player?c._load(b,!0):c._load(b),a.alreadyInPosition||c.currentComponentSet.slidedisplayer._scrollTo(b),2===b?$.slideshareEventManager.trackEvent("slidechange_2"):b===c.slideCount&&$.slideshareEventManager.trackEvent("slidechange_last"),c.has_lead&&(!this.controller.checkLeadFilledForAuthor()&&b===c.config.form_after_slide_no)&&
this.trigger("showleadform"),this.trackSlideTransitionTime(),$(window).trigger("resize")},slidescrolled:function(a){(this.controller.currentPosition!==a.index||a.force)&&this.trigger("slidechanged",a)},handlemultimedia:function(){var a=this.controller;a.multimediaResource&&(a.wasPlaying=a.multimediaResource.isPlaying(),a.multimediaResource.pause())},showleadform:function(){this.controller.leadShownAndDisabled||(this.trigger("handlemultimedia"),this.controller.currentComponentSet.leadForm.toggle(),
this.controller.currentComponentSet.leadForm.isVisible()&&this.controller.deactivateToolbar())},showleadforvideo:function(){this.controller.has_lead&&!this.controller.checkLeadFilledForAuthor()&&this.trigger("showleadform")},showleadcta:function(){this.controller.config.show_lead_cta&&this.controller.currentComponentSet.leadcta.show()},leadformloaded:function(a){this.trigger("showleadcta");a&&(this.controller.config.leadFormHtml=a.leadFormHtml)},leadcreated:function(){this.controller.leadShownAndDisabled=
!0;this.controller.setLeadFilledForAuthor();this.controller.currentComponentSet.leadcta&&this.controller.currentComponentSet.leadcta.hide();this.controller.activateToolbar()},screenoverlayclosed:function(){this.controller.multimediaResource&&this.controller.wasPlaying&&this.controller.multimediaResource.play()},showvideospinner:function(){var a=this.controller;a.currentComponentSet.slidedisplayer.videoSpinner.css("z-index",a.VIDEO_FULLSCREEN_ZINDEX).show()},hidevideospinner:function(){this.controller.currentComponentSet.slidedisplayer.videoSpinner.css("z-index",
"auto").hide()},toolbarshown:function(){$(".toolbar").css("z-index",$(".slideDisplayer").css("z-index"))},leadcancelled:function(){this.controller.leadShownAndDisabled=!0;this.controller.currentComponentSet.leadcta&&this.controller.currentComponentSet.leadcta.hide();this.controller.activateToolbar()},currentversionloaded:function(a){this.controller.slides[a.index].updateRenderedResourceVersion(a.resourceKey)},resourceloaded:function(a){var b=this.controller.slides[a.index];b.updateResource(a.resourceKey,
{status:"cached"});if("failed"!==b.status){var c=b.resources,d;for(d in c)if(!0===c[d].cacheable&&"cached"!==c[d].status)return;b.status="cached";this.trigger("slideloaded",{index:a.index})}},resourceloadfailed:function(a){var b=this.controller.slides[a.index],c=a.resourceKey;b.updateResource(c,{status:"failed"});!0===b.resources[c].isCritical&&(b.status="failed",this.trigger("slideloadfailed",{index:a.index}));this.trackRawEvent("jsplayer_debug",c+"_resourceloadfailed",void 0,!0)},fontresourceloaded:function(a){var b=
this.controller;b.config.use_ssl&&-1!==a.style.indexOf(".eot")&&(a.style=a.style.replace(/http:\/\//g,"https://"));$("").appendTo(b.currentComponentSet.container)},slideloaded:function(a){var b=this.controller,a=a.index,c=b.slides[a];c.currentViewMode.rendered&&("undefined"!==typeof new_mobile_player&&b.resetSlideShowHeight(a),c.paint());$("#playerFacade").hide();b.startSlide===a&&(window._jspl&&_jspl.pageInitTime)&&(c=(new Date).getTime()-_jspl.pageInitTime,window._ssPageMetrics&&
(window._ssPageMetrics.first_slide_time=c));b.preloadMoreIfIdle(a)},slideloadfailed:function(a){controller=this.controller;var b=controller.slides[a.index];$("#playerFacade").hide();b.currentViewMode.rendered&&b.displayError(controller.generateErrorDom("slide_error_template",{width:b.currentViewMode.width,height:b.currentViewMode.height}));controller.preloadMoreIfIdle(a.index);this.trackRawEvent("jsplayer_debug","slideloadfailed",this.controller.config.id+"_slide_"+a.index,!0)},videoloadfailed:function(){this.trackRawEvent("jsplayer_debug",
"videoloadfailed",void 0,!0)},slideloading:function(a){var b=this.controller,c=b.slides[a.index];-1===b.loadingSlides.indexOf(a.index)&&b.loadingSlides.push(a.index);c.currentViewMode.rendered&&c.displayLoading();b.currentPosition===a.index&&this.trackRawEvent("jsplayer_debug","current_slide_loading",void 0,!0)},audioloaded:function(){var a=this.controller,b=a.multimediaResource;b&&b.triggerPlayProgress();b.soundLoadHandler=function(){};a.currentComponentSet.toolbar.updateAudioInteraction({audioReady:!0})},
audiometaloaded:function(a){var b=this.controller,c=b.multimediaResource;c.slidePositions=a.transitions||{};c.metaDataReady=!0;c._trySoundCreation();b.currentComponentSet.toolbar.updateAudioInteraction({audioMetaReady:!0});(a=b.currentComponentSet.audiobar)&&(a.resource=c)&&a.renderSeekBar();0d.indexOf("?")?"?":"&")+$.param(a)};"complete"===document.readyState?e(a):window.addEventListener?window.addEventListener("load",function(){e(a)},!1):window.attachEvent&&window.attachEvent("onload",function(){e(a)});window.cookie("_uv_id",this.stats.viewer_id,{expires:730,path:"/"})}},getController:function(){return this.controller},getCurrentPosition:function(){return this.controller.currentPosition}}});
function SSLastScreen(a){this.config=a;this.html=a.settings.html;this.related=this.config.settings.related;this.relatedPerScreen=2;this.relatedScreenIndex=0;this._init()}SSLastScreen.prototype._init=function(){};SSLastScreen.prototype.exitFullScreenIfIdle=function(){var a=setTimeout(function(){$(".lastScreen").is(":visible")&&($.browser.mozilla||$(".btnLeaveFullScreen").trigger("click"))},5E3);$(".lastScreen").on("click",function(){clearTimeout(a)})};
SSLastScreen.prototype.mailBody=function(){var a="mailto:?subject=I think you will find this "+config.player_type+" useful.",b="&body=www.slideshare.net"+config.slideview_url;$("#sharebyemail").attr("href",a+b)};
SSLastScreen.prototype.show=function(a,b){if(void 0===this.overlay){this.overlay=$("").addClass("jsplLastScreenOverlay").appendTo(this.config.renderTo);var c="lastScreenContainer";isMobile()&&(c+=" mobile");this.lastScreen=$("").addClass(c).html(this.html).appendTo(this.config.renderTo);this.setDimensions(a);this.populateTemplate();b&&this.exitFullScreenIfIdle();this.bindEvents()}};
SSLastScreen.prototype.populateTemplate=function(){this.lastScreen.find(".lastScreenEmbedCode").val(this.config.embed_code);this.lastScreen.find(".lastScreenSSUrl").val(this.config.settings.url);$.fn.tooltip&&this.lastScreen.find(".j-tooltip").tooltip();this.config.disableRelated?(this.lastScreen.find(".lastScreen").addClass("j-disable-related"),this.config.disableShare&&this.lastScreen.find(".lastScreen").addClass("j-disable-share"),this.populateShareOptions(),this.isProLastScreen=!0):(this.populateRelated(0,
this.lastScreen.find(".relatedPresentation ul>li.relatedContent")),this.isProLastScreen=!1);"undefined"!==typeof config&&this.mailBody()};SSLastScreen.prototype.populateShareOptions=function(){this.shareOptions=new SSShareOptions({renderTo:this.lastScreen.find(".pro-overlay"),html:this.config.shareOptions.html,linkedinShare:this.config.shareOptions.linkedin_share,twitterShare:this.config.shareOptions.twitter_share,facebookLike:this.config.shareOptions.facebook_like_button});this.shareOptions.show()};
SSLastScreen.prototype.populateRelated=function(a,b){var c,d,e,f,g,h=function(){$.slideshareEventManager.trackEvent("lastscreen_relatedclick")};c=this.relatedPerScreen*a;if(!(c>this.related.length)){e=c+this.relatedPerScreen-1;this.relatedScreenIndex=a;for(d=0;c<=e;c++,d++)g=this.related[c],f=$(b[d]),"undefined"===typeof g?f.hide():(f.show(),f.find(".relatedThumb img").attr("src",g.thumbnail),f.find(".relatedThumb").attr("href",g.url),f.find(".relatedTitle").text(g.title).attr("href",g.url),f.find(".relatedAuthor").text(g.author).attr("href",
"/"+g.author_login),f.find(".relatedViews").text(g.views),"slideview"!==this.config.hostedIn&&f.find(".relatedAuthor, .relatedTitle, .relatedThumb").attr("target","_blank"),f.unbind("click"),f.bind("click",h));this.rebindRotateTimeout()}};
SSLastScreen.prototype.rotateRelated=function(a){var b=this.lastScreen.find(".relatedPresentation ul>li.relatedContent");"back"===a?(a=this.relatedScreenIndex-1,0>a&&(a=parseInt((this.related.length-1)/this.relatedPerScreen,10))):(a=this.relatedScreenIndex+1,a>parseInt((this.related.length-1)/this.relatedPerScreen,10)&&(a=0));this.populateRelated(a,b)};
SSLastScreen.prototype.rebindRotateTimeout=function(){var a=this;this.rotateIntervalId&&clearTimeout(this.rotateIntervalId);this.rotateIntervalId=setTimeout(function(){a.rotateRelated("front")},3E3)};SSLastScreen.prototype.destroy=function(){this.rotateIntervalId&&clearTimeout(this.rotateIntervalId);this.overlay&&(this.overlay.remove(),delete this.overlay);this.lastScreen&&(this.lastScreen.remove(),delete this.lastScreen)};
SSLastScreen.prototype.bindEvents=function(){var a=this;this.lastScreen.find(".close,.close-btn").bind("click",function(b){b.preventDefault();a.destroy();$.slideshareEventManager.trigger("toolbarshown")});this.lastScreen.find("input[type=text]").bind("focus",function(){$(this).hasClass("lastScreenEmbedCode")&&$.slideshareEventManager.trackEvent("lastscreen_embedclick")});this.lastScreen.find(".lastScreenEmailShare").bind("click",function(b){$.fn.tooltip&&a.lastScreen.find(".j-tooltip").tooltip("hide");
var c=$(".btnLeaveFullScreen");c.is(":visible")&&c.trigger("click");b.preventDefault();a.destroy();$.slideshareEventManager.trigger("playershare");$.slideshareEventManager.trackEvent("lastscreen_share")});this.lastScreen.find(".lastScreenReplay").bind("click",function(b){$.fn.tooltip&&a.lastScreen.find(".j-tooltip").tooltip("hide");b.preventDefault();a.destroy();$.slideshareEventManager.trigger("gotofirstslide");$.slideshareEventManager.trackEvent("lastscreen_replay")});this.lastScreen.find(".lastScreenNext").bind("click",
function(b){b.preventDefault();a.rotateRelated("front")});this.lastScreen.find(".lastScreenPrev").bind("click",function(b){b.preventDefault();a.rotateRelated("back")});this.lastScreen.find("input[type=text]").bind("click",function(){this.select()});this.shareOptions&&(this.shareOptions.twitter.bind("click",function(){_gaq.push(["_trackEvent","bigfoot_slideview","proLastscreenTwitterShare"])}),this.shareOptions.linkedIn.bind("click",function(){_gaq.push(["_trackEvent","bigfoot_slideview","proLastscreenLinkedInShare"])}),
this.shareOptions.fbLike.bind("click",function(){_gaq.push(["_trackEvent","bigfoot_slideview","proLastscreenFBLike"])}))};SSLastScreen.prototype.setDimensions=function(a){void 0!==this.lastScreen&&(this.config.lastScreenClass&&this.lastScreen.find(".lastScreen").addClass(this.config.lastScreenClass),this.lastScreen.css({height:a.height,width:a.width}))};function SSLeadCTA(a){this.config=a;this.image_width=103;this._init()}
SSLeadCTA.prototype._init=function(){this.lead_cta_div=$("").html(this.config.html).appendTo(this.config.renderTo);this.cta_link=$("#lead_cta",this.lead_cta_div);this.setDimensions();this.deactivate()};SSLeadCTA.prototype.setDimensions=function(){this.lead_cta_div.addClass("lead_cta_div").css({left:"50%","margin-left":-this.image_width/2+"px"});this.config.has_audio&&this.lead_cta_div.addClass("slide_cast")};
SSLeadCTA.prototype._bindEvents=function(){this.cta_link.unbind("click").bind("click",function(a){a.preventDefault();a.stopPropagation();$.slideshareEventManager.trigger("showleadform")})};SSLeadCTA.prototype._unbindEvents=function(){this.cta_link.unbind("click").bind("click",function(a){a.preventDefault();a.stopPropagation()})};SSLeadCTA.prototype.deactivate=function(){this._unbindEvents()};SSLeadCTA.prototype.activate=function(){this._bindEvents()};
SSLeadCTA.prototype.hide=function(){$(".lead_cta_div").hide();$.slideshareEventManager.trigger("screenoverlayclosed")};SSLeadCTA.prototype.show=function(){this.lead_cta_div.show()};SSLeadCTA.prototype.destroy=function(){this._unbindEvents();this.lead_cta_div.remove()};function SSLeadForm(a){this.config=a;this.config.showLeadForm=!0;this._init()}
SSLeadForm.prototype._init=function(){var a=this;""===this.config.leadFormHtml?$.ajax({url:this.config.lead_form_url,data:{},dataType:"html",cache:!1,type:"GET",success:function(b){a.config.leadFormHtml=b;$.slideshareEventManager.trigger("leadformloaded",{leadFormHtml:b})},failure:function(){}}):$.slideshareEventManager.trigger("leadformloaded")};
SSLeadForm.prototype.toggle=function(){null===document.getElementById("leadsform-placeholder-new")&&($(this.config.leadFormHtml).insertBefore(this.config.renderTo),this.config.show_skip_button||$(".j-lead-cancel").remove());$(".lead-overlay").fadeToggle(1E3,"linear")};
SSLeadForm.prototype._bindEvents=function(){$(".player").on("submit",".lead-overlay form",function(a){a.preventDefault();a.stopPropagation();var c=$(".lead-overlay #leadsform-placeholder-new"),d=$(".lead-overlay .progress"),e=$(".lead-overlay .progress_done"),f=$(".lead-overlay .progress_error");c.form=$("form",c);try{c.form[0].validate_formfields()&&(c.css({height:"120px"}),d.show(),c.form.hide(),$.slideshareEventManager.trackEvent("bigfoot_leadsform","sent"),$.ajax({url:c.form[0].action,data:"mechanism=Sidebar&"+
c.form.serialize(),type:"POST",cache:!1,success:function(){e.show();d.hide();$(".lead-overlay").fadeOut(3E3,"linear");$.slideshareEventManager.trigger("leadcreated");c.html(''+e.html()+"
")},error:function(){d.hide();f.show();$(".lead-overlay").fadeOut(2E3,"linear");setTimeout(function(){f.hide();c.form.show()},2E3)}}))}catch(g){}});if(this.config.show_skip_button){var a=this;$(this.config.renderTo).parent().on("click",".j-lead-cancel",function(b){b.preventDefault();
b.stopPropagation();$.slideshareEventManager.trigger("leadcancelled");a.hide()})}else $(".j-lead-cancel").remove()};SSLeadForm.prototype._unbindEvents=function(){$(".j-lead-cancel").off("click");$(".player").off("submit",".lead-overlay form")};SSLeadForm.prototype.deactivate=function(){this._unbindEvents();$(".lead-overlay").remove()};SSLeadForm.prototype.activate=function(){this._unbindEvents();this._bindEvents()};SSLeadForm.prototype.hide=function(){$(".lead-overlay").hide()};
SSLeadForm.prototype.show=function(){$(".lead-overlay").show()};SSLeadForm.prototype.isVisible=function(){return $(".lead-overlay").is(":visible")};SSLeadForm.prototype.destroy=function(){$(".lead-overlay").remove()};function SSReplayScreen(a){this.config=a;this.html=a.settings.html;this._init()}SSReplayScreen.prototype._init=function(){};
SSReplayScreen.prototype.show=function(a){void 0===this.overlay&&(this.overlay=$("").css({width:"100%",height:"100%","background-color":"black",opacity:0.75,position:"absolute",top:0,left:0}).appendTo(this.config.renderTo),this.lastScreen=$("").css({position:"absolute"}).html(this.html).appendTo(this.config.renderTo),this.setDimensions(a),this.bindEvents())};
SSReplayScreen.prototype.destroy=function(){this.overlay&&(this.overlay.remove(),delete this.overlay);this.lastScreen&&(this.lastScreen.remove(),delete this.lastScreen)};SSReplayScreen.prototype.bindEvents=function(){var a=this;this.lastScreen.find(".replayScreenReplay").bind("click",function(b){b.preventDefault();a.destroy();$.slideshareEventManager.trigger("gotofirstslide");$.slideshareEventManager.trackEvent("lastscreen_replay")})};
SSReplayScreen.prototype.setDimensions=function(a){if(void 0!==this.lastScreen){var b;b=(a.height-25)/2;a=(a.width-93)/2;b=0>b?0:parseInt(b,10);a=0>a?0:parseInt(a,10);this.lastScreen.css({top:b,left:a})}};function SSResource(a){"undefined"!==typeof a&&(this.TIMEOUT_LIMIT=1E5,this.RETRY_WAIT_TIME=3E3,this.config=a,this.resourceKey=a.resourceKey,this._init())}SSResource.prototype._init=function(){this._initResourceConfig();this.status="initialized"};
SSResource.prototype.reset=function(){this.status="initialized";this.retries=0;if(this.suffixes){var a,b;for(a in this.suffixes)b=this.suffixes[a],b.status="initialized",delete b.startTime,b.retries=2}};SSResource.prototype.load=function(){this.status="loading";this.loadBlocked||(this.startTime=(new Date).getTime(),this._tryLoad())};
SSResource.prototype.update=function(a){var b,c;for(b in a)c=a[b],"image"===this.resourceKey&&"sizes"===b?this.delayedInitialize&&this.delayedInitialize(c):"image"===this.resourceKey&&"linkData"===b?this.addLinks(c):this[b]=c};
SSResource.prototype.resourceErrorInternalHandler=function(){var a=this;return function(){var b=a.startTime,b=(new Date).getTime()-b,c=a.retries;0").html(this.config.html).appendTo(this.config.renderTo).addClass("share_cta");this.bindEvents()};SSShareCta.prototype.bindEvents=function(){that=this;this.container.bind("click",function(a){a.preventDefault();a.stopPropagation();that.config.sharescreen&&(_sstq.push(["track","player_share_cta","share_cta_clicked"]),that.config.sharescreen.show())});this.config.bindTo.bind("mousemove",this.mousemoveHandler)};
SSShareCta.prototype.mousemoveHandler=function(){that.visible||that.show();that.hideTimeout&&window.clearTimeout(that.hideTimeout);that.hideTimeout=window.setTimeout(function(){that.hide()},2E3)};SSShareCta.prototype.show=function(){this.container.fadeIn(100);return this.visible=!0};SSShareCta.prototype.hide=function(){this.visible=!1;return this.container.fadeOut(100)&&!1};function SSShareOptions(a){this.config=a;this.renderTo=a.renderTo;this.html=this.config.html;this._init()}
SSShareOptions.prototype._init=function(){};
SSShareOptions.prototype.show=function(){var a=this;this.shareOptions=$("").html(this.html).appendTo(this.renderTo);this.setShareObjects();$.each({".thirdPartyShare a.Twitter":this.config.twitterShare,".thirdPartyShare a.Linkedin":this.config.linkedinShare},function(b,c){a.shareOptions.find(b).bind("click",function(a){a.preventDefault();window.open(c,"ss_share","width=660,height=490,toolbar=no,resizable=fixed,status=no,scrollbars=no,menubar=no,screenX=0,screenY=0").focus()})});this.fbLike.replaceWith(this.config.facebookLike)};
SSShareOptions.prototype.setShareObjects=function(){this.twitter=this.shareOptions.find(".Twitter");this.linkedIn=this.shareOptions.find(".Linkedin");this.fbLike=this.shareOptions.find(".fb-like")};function SSShareScreen(a){this.config=a;this.html=a.settings.html;this._init()}SSShareScreen.prototype._init=function(){};
SSShareScreen.prototype.show=function(a){void 0===this.overlay&&(this.overlay=$("").addClass("jsplShareScreenOverlay").appendTo(this.config.renderTo),this.shareScreen=$("").addClass("jsplShareScreenContainer").html(this.html).appendTo(this.config.renderTo),this.setDimensions(a),this.populateTemplate(),this.bindEvents())};
SSShareScreen.prototype.populateTemplate=function(){this.shareScreen.find(".shareScreenEmbedCode").val(this.config.embed_code);this.shareScreen.find(".shareScreenSSUrl").val(this.config.settings.url);this.shareScreen.find(".shareScreenFromName").val(this.config.settings.user_name);this.populateShareOptions()};
SSShareScreen.prototype.populateShareOptions=function(){this.shareOptions=new SSShareOptions({renderTo:this.shareScreen.find(".shareScreen"),html:this.config.shareOptions.html,linkedinShare:this.config.shareOptions.linkedin_share,twitterShare:this.config.shareOptions.twitter_share,facebookLike:this.config.shareOptions.facebook_like_button});this.shareOptions.show()};SSShareScreen.prototype.destroy=function(){this.overlay.remove();delete this.overlay;this.shareScreen.remove();delete this.shareScreen};
SSShareScreen.prototype.bindEvents=function(){var a=this;this.shareScreen.find(".close").bind("click",function(b){b.preventDefault();a.destroy();$.slideshareEventManager.trigger("screenoverlayclosed")});this.shareScreen.find("input[type=text]").bind("click",function(){this.select()});var b=this.shareScreen.find("input[type=submit]");this.shareScreen.find("form").bind("submit",function(a){a.preventDefault()});b.bind("click",function(c){c.preventDefault();var c=a.shareScreen.find(".shareScreenFromName").val(),
d=a.shareScreen.find(".shareScreenMailID").val(),e=a.shareScreen.find(".shareDefaultMessage").val();0===c.length||0===d.length||("undefined"!==typeof a.emailProgress&&a.emailProgress.remove(),a.emailProgress=$("").text("sending..."),b.parent().prepend(a.emailProgress),$.ajax({url:"/share/contacts/"+a.config.settings.slideshow_id,type:"POST",data:{"message[body]":e,"message[from]":c,"message[to]":d},dataType:"json",success:function(b){!0===b.success?a.emailProgress.text("Sent"):a.emailProgress.text("Sending failed")},
error:function(){a.emailProgress.text("Sending failed")}}))})};SSShareScreen.prototype.setDimensions=function(a){if(void 0!==this.shareScreen){this.config.shareScreenClass&&this.shareScreen.find(".shareScreen").addClass(this.config.shareScreenClass);var b=$(this.shareScreen).width(),c=$(this.shareScreen).height(),c=(a.height-c)/2,a=(a.width-b)/2,c=0>c?0:parseInt(c,10),a=0>a?0:parseInt(a,10);this.shareScreen.css({top:c,left:a})}};
function SSSlide(a){"undefined"!==typeof a&&(this.index=a.index,this.realIndex=a.realIndex,this.setContentDimensions(a.contentWidth,a.contentHeight),delete a.contentWidth,delete a.contentHeight,this.config=a,this._init())}SSSlide.prototype.setContentDimensions=function(a,b){this.contentWidth=a;this.contentHeight=b};
SSSlide.prototype._init=function(){this.status="initialized";this.controller=$.slideshareEventManager.getController();this.playerContainer="#"+this.controller.config.container;this.$stage=$(this.playerContainer+" .stage");this.$slide=this.$stage.find(".slide").eq(this.index-1);this.$imageEle=this.$slide.children(".slide_image");this.viewModes={};this.resources={};this._createResources();this._bindEvents()};SSSlide.prototype.stop=function(){};
SSSlide.prototype._createResources=function(){"undefined"===typeof this.config.timestamp&&(this.config.timestamp=(new Date).getTime());switch(this.config.slideMode){case "image":this.resources.image=new SSFallbackImageResource({baseUrl:this.config.bucketLocation,timestamp:this.config.timestamp,resourceKey:"image",indexGenerator:this.config.indexGenerator,playerWidth:this.config.playerWidth,slideIndex:this.index,realIndex:this.realIndex,is_private:this.config.is_private,signatures:{},availableSizes:this.config.availableSizes,
contentWidth:this.contentWidth,privateImageSignatures:this.config.privateImageSignatures,conversionVersion:this.config.conversionVersion,isFullscreen:this.isFullscreen(),show_image_player:this.config.show_image_player});break;case "html":this.resources.image=new SSBgImageResource({baseUrl:this.config.bucketLocation,availableSizes:this.config.availableSizes,timestamp:this.config.timestamp,resourceKey:"image",indexGenerator:this.config.indexGenerator,playerWidth:this.config.playerWidth,slideIndex:this.index,
realIndex:this.realIndex,is_private:this.config.is_private,contentWidth:this.contentWidth,conversionVersion:this.config.conversionVersion,privateImageSignatures:this.config.privateImageSignatures}),this.resources.html=new SSHtmlResource({baseUrl:this.config.bucketLocation,timestamp:this.config.timestamp,resourceKey:"html",indexGenerator:this.config.indexGenerator,slideIndex:this.index,realIndex:this.realIndex,is_private:this.config.is_private,conversionVersion:this.config.conversionVersion,signature:this.config.htmlResourceSignature})}delete this.config.availableSizes};
SSSlide.prototype.reset=function(){this.status="initialized";for(var a in this.resources)resource=this.resources[a].reset()};
SSSlide.prototype.load=function(){if("cached"===this.status)this._getNewResourceVersions(this.currentViewMode.wrapperWidth),$.slideshareEventManager.trigger("slideloaded",{index:this.index});else if("loading"===this.status)$.slideshareEventManager.trigger("slideloading",{index:this.index});else if("failed"===this.status)$.slideshareEventManager.trigger("slideloadfailed",{index:this.index});else{this.status="loading";$.slideshareEventManager.trigger("slideloading",{index:this.index});for(var a in this.resources)resource=
this.resources[a],resource.status="loading",resource.load()}};SSSlide.prototype.updateResource=function(a,b){"undefined"!==typeof this.resources[a]&&this.resources[a].update(b)};SSSlide.prototype.displayError=function(a,b){this.empty();a.appendTo(this.currentViewMode.wrapper);var c=this,d=a.find("input");b?d.hide():d.bind("click",function(a){a.preventDefault();a.stopPropagation();c.reset();c.load()})};
SSSlide.prototype.paint=function(){"undefined"===typeof this.currentViewMode.imageElement&&this.render();this.currentViewMode.imageElement.css({width:this.currentViewMode.width});if("html"===this.config.slideMode){var a;a=Modernizr.csstransforms?{"-moz-transform":"scale("+this.currentViewMode.contentScale+")","-webkit-transform":"scale("+this.currentViewMode.contentScale+")","-o-transform":"scale("+this.currentViewMode.contentScale+")",msTransform:"scale("+this.currentViewMode.contentScale+")","-moz-transform-origin":"0 0",
"-webkit-transform-origin":"0 0","-o-transform-origin":"0 0",msTransformOrigin:"0 0"}:{zoom:this.currentViewMode.contentScale};this.currentViewMode.contentElement.css({width:this.currentViewMode.width,height:this.currentViewMode.height});this.currentViewMode.contentElement.children(".ssml_div").css(a)}else"image"===this.config.slideMode&&!0!==this.config.show_image_player&&this._updateLinks()};SSSlide.prototype.isFullscreen=function(){return"fullscreen"===this.currentMode||"nativefullscreen"===this.currentMode};
SSSlide.prototype.render=function(){this.empty();var a,b,c=this;$.slideshareEventManager.getCurrentPosition();this.config.show_image_player?(a=this.$imageEle,b=this.isFullscreen()||638=this.$stage.width()?this.$imageEle.data("small"):this.$imageEle.data("normal")):(a=$("").css({height:"auto",position:"absolute",top:0,left:0,margin:0,padding:0}),b=this.resources.image.getContent());if("undefined"!==typeof b){this.imageEle=a;this.currentViewMode.imageElement=
a;var d=new Image;d.onload=function(){var a=c.controller.currentPosition,d=c.$slide.height(),g=c.$stage.scrollTop();c.$slide.css("min-height",0);c.controller.firstLoad="undefined"===typeof c.controller.firstLoad?!0:!1;c.currentViewMode.imageElement.attr({src:b});"infographic"===c.config.playerType&&c.addScrollIfNeeded();"document"===c.config.playerType&&(d=c.$slide.height()-d,c.controller.firstLoad&&!(c.controller.currentComponentSet.slidedisplayer instanceof SSMobileDocumentDisplayer)&&(c.controller.currentComponentSet.slidedisplayer.$slides.css("min-height",
c.$slide.height()),g+=d*(a-2)),c.index"+this.resources.html.getContent().style+"",$(a).appendTo(this.currentViewMode.wrapper),
this.currentViewMode.contentElement=$("").css({position:"absolute",overflow:"hidden"}).html(this.resources.html.getContent().html),this.currentViewMode.contentElement.appendTo(this.currentViewMode.wrapper))}};SSSlide.prototype.addScrollIfNeeded=function(){this.$imageEle.height()>this.$slide.height()+15&&this.$slide.css("overflow-y","auto")};
SSSlide.prototype.loadLinks=function(){var a=this;!0===a.controller.linksLoaded?this.renderLinksForSlide():$.jsonp({url:a.config.bucketLocation+"/meta.js?"+this.config.timestamp,callback:"slideshare_jsonp_meta_hook_trigger",cache:!0,timeout:1E4,success:function(b){a.controller.links=b.links;a.controller.linksLoaded=!0;a.renderLinksForSlide();a.controller.slideAspectRatio=b.sizes[1].height/b.sizes[1].width}})};
SSSlide.prototype.renderLinksForSlide=function(){var a="#"+this.controller.config.container,b=this.index-this.config.linkOffset,c=!1;"undefined"!==typeof slideshare_object&&(c=slideshare_object.user.su);if(!("undefined"===typeof this.controller.links||"undefined"===typeof this.controller.links[b]||-1!==$.inArray(this.index,[1,2,3])&&!c)){var c=this.imageEle,d=c.naturalWidth(),e=c.naturalHeight(),b=this.controller.links[b].links,f=b.length,g,h,j,k="image_map_"+this.index+"_"+(new Date).getTime();void 0!==
this.currentViewMode.imageMapId&&$("#"+this.currentViewMode.imageMapId).remove();this.currentViewMode.imageMapId=k;var m='").appendTo(a+" .image_maps");c.attr("usemap","#"+k);c.rwdImageMaps();$("map area").click(function(a){$.slideshareEventManager.trackOutboundClick(a.target.href)})}};
SSSlide.prototype._updateLinks=function(){void 0!==this.currentViewMode.imageMapId&&$("#"+this.currentViewMode.imageMapId).remove();this._renderLinks()};
SSSlide.prototype._renderLinks=function(){var a=this.resources.image.links;if(void 0!==a){var b=this.currentViewMode.width,c=this.currentViewMode.height,d=a.length,e,f,g,h="image_map_"+this.currentMode+"_"+this.index+parseInt(2500*Math.random(),10),j='").appendTo(this.currentViewMode.wrapper);this.currentViewMode.imageElement.attr("usemap","#"+h);this.currentViewMode.imageMapId=h}};SSSlide.prototype._getNewResourceVersions=function(){this.resources.image._tryLoad(this.currentViewMode.wrapperWidth)};SSSlide.prototype.updateRenderedResourceVersion=function(a){this.currentViewMode.rendered&&"image"===a&&void 0!==this.currentViewMode.imageElement&&this.currentViewMode.imageElement.attr({src:this.resources.image.getContent()})};
SSSlide.prototype._bindEvents=function(){};function SSSlideDisplayer(a){"undefined"!==typeof a&&(this.config=a,this.slideOffsets=[],this.playerBgColor=a.playerBgColor||"jsplBgColorCCC",this.state="initialized",this.zoomIndex=0,this._init())}SSSlideDisplayer.prototype._init=function(){this.config.show_image_player?this.container=$(".stage"):(this.container=$("").addClass("slideDisplayer "+this.playerBgColor).appendTo(this.config.renderTo),this.showInitializer())};
SSSlideDisplayer.prototype.hideInitializer=function(){!this.config.show_image_player&&this.container.empty()};SSSlideDisplayer.prototype.error=function(a){this.hideInitializer();a.appendTo(this.container)};SSSlideDisplayer.prototype.zoomin=function(){var a=this.zoomIndex+1;a!==this.zoomLevels.length&&(this.zoomIndex=a,this.setZoom(a),$(this).trigger("zoomchanged"))};SSSlideDisplayer.prototype.zoomout=function(){0!==this.zoomIndex&&(this.zoomIndex-=1,this.setZoom(this.zoomIndex),$(this).trigger("zoomchanged"))};
SSSlideDisplayer.prototype.activate=function(){};SSSlideDisplayer.prototype.deactivate=function(){};SSSlideDisplayer.prototype.destroy=function(){this.container.remove()};SSSlideDisplayer.prototype._bindEvents=function(){};SSSlideDisplayer.prototype.refresh=function(a){var b=this;$.each(a,function(a,d){b.config[a]&&(b.config[a]=d)})};function SSsocialShareScreen(a){this.config=a;this.init()}
SSsocialShareScreen.prototype.init=function(){this.load();if(this.config.widgetType.script_widgets){var a=this;$(window).load(function(){a.loadScriptWidgets();a.scriptWidgetsLoaded=!0})}};SSsocialShareScreen.prototype.bindEvents=function(){var a=this;this.container.find(".close-btn").bind("click",function(b){b.preventDefault();a.destroy();$.slideshareEventManager.trigger("toolbarshown");_sstq.push(["track","player_share_cta","social_sharescreen_closed"])})};
SSsocialShareScreen.prototype.show=function(){void 0===this.overlay&&(this.overlay=$("").addClass("socialScreenOverlay").appendTo(this.config.renderTo),this.showShareOptions(),this.container.show(),_sstq.push(["track","player_share_cta","social_sharescreen_shown"]))};
SSsocialShareScreen.prototype.load=function(){this.container=$(".socialShareScreenContainer");this.container.length||(this.container=$("").html(this.config.html).addClass("socialShareScreenContainer hide").appendTo(this.config.renderTo),this.bindEvents())};
SSsocialShareScreen.prototype.showShareOptions=function(){var a=this;this.config.widgetType.script_widgets?(this.container.find(".j-social-share-screen.share-widgets").show(),this.scriptWidgetsLoaded||(this.container.find(".j-loading-widgets").show(),this.container.find("ul.share-list-widgets").hide(),a.loadScriptWidgets(),window.setTimeout(function(){a.container.find(".j-loading-widgets").hide();a.container.find("ul.share-list-widgets").show();a.scriptWidgetsLoaded=!0},3E3))):(this.loadCustomWidgets(),
this.container.find(".j-social-share-screen.custom-widgets").show())};
SSsocialShareScreen.prototype.loadCustomWidgets=function(){this.container.find("li.facebook a").bind("click",function(a){a.preventDefault();a.stopPropagation();a="https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(location.href);window.open(a,"facebook-share-dialog","width=626,height=436");_sstq.push(["track","player_share_cta","custom_widget_fb_share_open"])});this.container.find("li.linkedin a").bind("click",function(a){a.preventDefault();a.stopPropagation();a="https://www.linkedin.com/cws/share?"+
$.param($(this).data());window.open(a,"linkedin-share-dialog","width=626,height=436");_sstq.push(["track","player_share_cta","custom_widget_li_share_open"])});this.container.find("li.twitter a").bind("click",function(a){a.preventDefault();a.stopPropagation();a="https://twitter.com/share?"+$.param($(this).data());window.open(a,"twitter-share-dialog","width=600,height=300");_sstq.push(["track","player_share_cta","custom_widget_tw_share_open"])});this.container.find("li.googleplus a").bind("click",function(a){a.preventDefault();
a.stopPropagation();a="https://plus.google.com/share?"+$.param($(this).data());window.open(a,"gplus-share-dialog","width=600,height=440");_sstq.push(["track","player_share_cta","custom_widget_gp_share_open"])});this.container.find("li.pinterest a").bind("click",function(a){a.preventDefault();a.stopPropagation();a="http://pinterest.com/pin/create/button/?"+$.param($(this).data());window.open(a,"pinterest-share-dialog","width=600,height=600");_sstq.push(["track","player_share_cta","custom_widget_pi_share_open"])})};
SSsocialShareScreen.prototype.loadScriptWidgets=function(){this.loadFBWidget();this.loadTwWidget();this.loadLIwidget();this.loadGplusWidget();this.loadPinItWidget()};
SSsocialShareScreen.prototype.loadTwWidget=function(){var a=window,b;var c,d=document.getElementsByTagName("script")[0];document.getElementById("twitter-wjs")?b=void 0:(b=document.createElement("script"),b.id="twitter-wjs",b.src="//platform.twitter.com/widgets.js",d.parentNode.insertBefore(b,d),b=window.twttr||(c={_e:[],ready:function(a){c._e.push(a)}}));a.twttr=b;twttr.ready(function(a){a.events.bind("tweet",function(a){a&&window._sstq&&_sstq.push(["track","player_share_cta","viralsharetwitter"])});
a.events.bind("click",function(){window._sstq&&_sstq.push(["track","player_share_cta","viralsharetwitter_click"])})})};
SSsocialShareScreen.prototype.loadFBWidget=function(){var a,b=document.getElementsByTagName("script")[0];document.getElementById("facebook-jssdk")||(a=document.createElement("script"),a.id="facebook-jssdk",a.src="//connect.facebook.net/en_US/all.js",b.parentNode.insertBefore(a,b));var c=function(){_sstq.push(["track","player_share_cta","social_screen_fb_share"])},d={appId:2490221586,status:!0,cookie:!0,xfbml:!0,oauth:!0,channelUrl:NaN};"object"===typeof FB?window.setTimeout(function(){FB.XFBML.parse();
FB.Event.subscribe("edge.create",c)},50):window.fbAsyncInit=function(){FB.init(d);FB.Event.subscribe("edge.create",c)}};
SSsocialShareScreen.prototype.loadLIwidget=function(){var a=document.location.protocol+"//platform.linkedin.com/in.js?async=true";"undefined"===typeof IN?$.getScript(a,function(){IN&&IN.init({api_key:"y4wa9oe4c6nu",credentials_cookie:!0,authorize:!0,entropy:Math.floor(1E4*Math.random())})}):IN.parse(document);window.socialScreenLinkedInSuccess=function(){_sstq.push(["track","player_share_cta","social_screen_LI_share"])}};
SSsocialShareScreen.prototype.loadGplusWidget=function(){window.___gcfg={lang:"en-US"};var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);window.socialScreenPlusOneSuccess=function(){_sstq.push(["track","player_share_cta","social_screen_GPlus_share"])}};
SSsocialShareScreen.prototype.loadPinItWidget=function(){var a=document.getElementsByTagName("SCRIPT")[0],b=document.createElement("SCRIPT");b.type="text/javascript";b.async=!0;b.src="//assets.pinterest.com/js/pinit.js";a.parentNode.insertBefore(b,a);this.container.find(".pinit-btn").click(function(){_sstq.push(["track","player_share_cta","social_screen_pinit_share"])})};SSsocialShareScreen.prototype.destroy=function(){this.overlay.remove();delete this.overlay;this.container.hide()};
function SSTouchInteraction(a){this.config=a;this._init()}SSTouchInteraction.prototype._init=function(){this.touch={active:!1};this._bindEvents()};SSTouchInteraction.prototype.scrollVariables=function(){this.slideHeight=$(".verticalStack").height();this.scrollBottomOffset=2*this.slideHeight};SSTouchInteraction.prototype.loadNextSlides=function(a){var a=a.data.touch,b=$(window).scrollTop();if($(".slideShow").height()-ba;a++)$.slideshareEventManager.trigger("next",{source:"scroll_next"})};
SSTouchInteraction.prototype.loadNextSlide=function(a){a=$(a.target);a.hasClass(".verticalStack")||(a=a.closest(".verticalStack"));var b=parseInt(a.attr("touchCount"),10),c=parseInt(a.attr("slideNumber"),10);isNaN(c)&&(c=parseInt($("div[touchcount]").last().attr("slidenumber"),10));isNaN(b)?(a.attr("touchCount",1),$.slideshareEventManager.trigger("next",{source:"scroll_next",touchedSlideNo:c}),window._gaq.push(["_trackEvent","jsplayer","slideTouched",config.player_type])):3>b&&(a.attr("touchCount",
b+1),$.slideshareEventManager.trigger("next",{source:"scroll_next",touchedSlideNo:c}));1===c&&1").addClass(".jsplInitializer").css({width:this.container.width()-10,height:this.container.height()-20}).html("Loading...").appendTo(this.container)};SSInfographicDisplayer.prototype._scrollTo=function(a){if(this.config.show_image_player){var b=this.slidesContainer.children();b.removeClass("show");b.eq(a-1).addClass("show")}};function SSInfographicSlide(a){SSSlide.call(this,a);this.padding=5}
SSInfographicSlide.prototype=new SSSlide;SSInfographicSlide.prototype.empty=function(){};SSInfographicSlide.prototype.setContainer=function(a){var b=a.mode;void 0===this.viewModes[b]&&(this.viewModes[b]={rendered:!1,bgColor:a.bgColor||"jsplBgColorCCC",container:a.container,wrapper:$("")});this.viewModes[b].container.css({position:"relative"});this.currentViewMode=this.viewModes[b];this.currentViewMode.wrapper.removeClass("hide");this.currentMode=a.mode};
SSInfographicSlide.prototype.show=function(a){if(!this.currentViewMode.rendered||a)this.currentViewMode.rendered=!0,this.load()};SSInfographicSlide.prototype.hide=function(){this.$slide.hide()};SSInfographicSlide.prototype.displayLoading=function(){};function SSPresentationDisplayer(a){"undefined"!==typeof a&&(SSSlideDisplayer.call(this,a),this.zoomLevels=[1],this.prerenderedSlides=[],!a.isTouch&&this.initPointlyFinger())}SSPresentationDisplayer.prototype=new SSSlideDisplayer;
SSPresentationDisplayer.prototype.initPointlyFinger=function(){this.rightbandInteraction=$("").attr({"class":"rightpoint pointly"}).insertAfter(this.container);this.leftbandInteraction=$("").attr({"class":"leftpoint pointly"}).insertAfter(this.container)};
SSPresentationDisplayer.prototype._scrollTo=function(a){if("playing"===this.state)if(this.config.show_image_player){var b=this.slidesContainer.children();b.removeClass("show");b.eq(a-1).addClass("show")}else"function"==typeof isIos&&isIos(),this.slidesContainer.css("margin-left",-1*this.slideOffsets[a])};
SSPresentationDisplayer.prototype.start=function(a){var b,c;void 0===this.slideContainers&&(this.slideContainers=[]);var d=this.slideContainers;if(void 0===this.slides){this.slides=a.slides;this.state="playing";this.hideInitializer();this.slidesContainer=this.config.show_image_player?$(".slide_container"):$("").appendTo(this.container);for(b=1;b<=this.config.slideCount;b++)d[b]=this.config.show_image_player?$(".slide").eq(b-1):$("").appendTo(this.slidesContainer)}!this.config.show_image_player&&
this.slidesContainer.removeClass(this.playerBgColor).addClass("slidesContainer "+a.playerBgColor);a.playerBgColor&&(this.playerBgColor=a.playerBgColor);for(b=1;b<=this.config.slideCount;b++)c=this.slides[b],c.setContainer({mode:a.mode,container:d[b],bgColor:this.playerBgColor,slideNumber:b})};
SSPresentationDisplayer.prototype.showInitializer=function(){var a,b;a=this.container.height()/2-16;b=this.container.width()/2-16;$("").attr({src:this.config.spinnerUrl,"class":"jsplInitializer"}).css({width:32,height:32,top:a,left:b}).appendTo(this.container)};
SSPresentationDisplayer.prototype.setDimensions=function(a){"object"===typeof a&&(this.config.width=a.width,this.config.height=a.height);a=a&&a.partial;!this.config.show_image_player&&this.container.css({height:this.config.height,width:this.config.width});if(!a&&"playing"===this.state){this.panelWidth=0;var b,c;c=0;for(a=1;a<=this.config.slideCount;a++)b=this.slides[a],!this.config.show_image_player&&b.setDimensions({parentHeight:this.config.height,parentWidth:this.config.width}),this.slideOffsets[a]=
c,c+=b.wrapperOffset();this.slidesContainer.width(c);this.width=c}};SSPresentationDisplayer.prototype.setPrerenderedSlides=function(a){var b;for(b=a.start;b<=a.end;b++)-1===$.inArray(b,this.prerenderedSlides)&&this.prerenderedSlides.push(b)};SSPresentationDisplayer.prototype.emptySlides=function(){for(var a in this.slides){var b=this.slides;b.hasOwnProperty(a)&&b[a].hide()}this.prerenderedSlides=[]};function SSPresentationSlide(a){SSSlide.call(this,a);this.PADDING=0}
SSPresentationSlide.prototype=new SSSlide;SSPresentationSlide.prototype.wrapperOffset=function(){return this.currentViewMode.wrapperWidth};SSPresentationSlide.prototype.empty=function(){"undefined"!==typeof this.currentViewMode.wrapper&&this.currentViewMode.wrapper.empty()};
SSPresentationSlide.prototype.displayLoading=function(){var a,b;a=this.currentViewMode.height/2-16;b=this.currentViewMode.width/2-16;this.empty();this.spinnerUrl=this.isFullscreen()?this.config.spinnerUrlFullscreen:this.config.spinnerUrl;$("").attr({src:this.spinnerUrl}).css({width:32,height:32,top:a,left:b,position:"absolute"}).appendTo(this.currentViewMode.wrapper)};
SSPresentationSlide.prototype.setDimensions=function(a){var b,c,d,e,f=a.parentWidth,g=a.parentHeight,h=f/g;void 0===this.contentWidth||void 0===this.contentHeight?(b=f,c=g,e=d=h,$.slideshareEventManager.trackRawEvent("jsplayer_debug","no_content_meta_info","st_"+this.config.stripped_title)):(b=this.contentWidth,c=this.contentHeight,d=b/c,e=b/(c-20));var j;e>h?(b=f/b,c=16*b,e=f,j=h/d,h=0,d=100*((1-j)/2)+"%",a=j*a.parentHeight):(b=g/c,c=16*b,j=d/h,d=0,h=100*((1-j)/2)+"%",e=j*a.parentWidth,a=g);e=parseInt(e,
10);a=parseInt(a,10);this.currentViewMode.container.css({width:f,height:g});!this.config.show_image_player&&this.currentViewMode.wrapper.css({width:e,height:a,top:d,left:h,position:"absolute",padding:this.PADDING,overflow:"hidden"});this.currentViewMode.wrapperWidth=f;this.currentViewMode.wrapperHeight=g;this.currentViewMode.top=d;this.currentViewMode.left=h;this.currentViewMode.contentScale=b;this.currentViewMode.fontscale=c;this.currentViewMode.width=e;this.currentViewMode.height=a};
SSPresentationSlide.prototype.hide=function(){this.currentViewMode.rendered&&(this.empty(),delete this.currentViewMode.contentElement,delete this.currentViewMode.imageElement,this.currentViewMode.rendered=!1)};SSPresentationSlide.prototype.show=function(a){if(!this.currentViewMode.rendered||a)this.currentViewMode.rendered=!0,this.load()};SSPresentationSlide.prototype.play=function(){this.show()};
SSPresentationSlide.prototype.setContainer=function(a){var b=a.mode,c=this.viewModes[b],d=!1;this.config.isStartSlide&&this.config.show_image_player&&(d=!0);d={rendered:d,container:a.container};void 0===c?(this.config.show_image_player||(d.wrapper=$("").appendTo(a.container)),c=d):"nativefullscreen"==b&&(this.config.show_image_player||(d.wrapper=this.currentViewMode.wrapper),c=d);this.config.show_image_player||(c.container.removeClass(),d=a.bgColor||"jsplBgColorEEE",d="undefined"===typeof new_mobile_player?
d+" horizontalStack":d+" verticalStack",c.container.addClass(d));(d=a.slideNumber)&&c.container.attr("slideNumber",d);this.currentViewMode=this.viewModes[b]=c;this.currentMode=a.mode};
function SSToolbar(a){this.config=a;this.GA_EVENTS={viewonss:"toolbar_viewonss",zoomin:"toolbar_zoomin",zoomout:"toolbar_zoomout",viewfullscreen:"toolbar_fullscreen",leavefullscreen:"toolbar_leavefullscreen"};this.GA_EVENTS_SRC={previous:"toolbar_prev",next:"toolbar_next"};this._init();this._ELEMENTS=this.getElements(a.elementOverrides);this._ELEMENT_PRIORITIES={1:["nav"],5:["viewOnSS"],2:["fullScreen","leaveFullScreen"],3:["share"],4:["goToSlide"],6:["zoomButtons"]};this._BUTTONS=this.getButtons({btnFirst:".btnFirst",
btnPrevious:".btnPrevious",btnNext:".btnNext",btnLast:".btnLast",btnSS:".btnSS",btnViewOnSS:".btnViewOnSS",btnFullScreen:".btnFullScreen",btnLeaveFullScreen:".btnLeaveFullScreen",btnZoomOut:".btnZoomOut",btnZoomIn:".btnZoomIn",btnFind:".btnFind",btnShare:".btnShare",btnAudio:".btnAudio",btnVolume:".btnVolume"},a.buttonOverrides);this._ELEMENT_VISIBILITY={share:!this.config.disableShare,fullScreen:!this.config.disableFullScreen&&!this.config.isFullScreen,leaveFullScreen:!this.config.disableLeaveFullScreen&&
this.config.isFullScreen,viewOnSS:this.config.enableViewSS,zoomButtons:this.config.enableZoomButtons||!1,nav:!this.config.disableNav,goToSlide:!this.config.disableGoToSlide};this._ELEMENT_SECTION={nav:"one",share:"two",fullScreen:"two",leaveFullScreen:"two",goToSlide:"two",viewOnSS:"one",zoomButtons:"two"};a={small:29,normal:88};"document"==this.config.playerType||"infographic"===this.config.playerType?(this._ELEMENT_WIDTHS={nav:30,share:72,fullScreen:24,leaveFullScreen:24,goToSlide:57,viewOnSS:a[this.config.toolbarClass],
zoomButtons:56},this._ELEMENT_SECTION.share="one"):this._ELEMENT_WIDTHS={nav:57,share:35,fullScreen:24,leaveFullScreen:24,goToSlide:57,viewOnSS:a[this.config.toolbarClass]};this.config.toolbarPadding=6}
SSToolbar.prototype._init=function(){var a=this.container=this.config.show_image_player?$(".toolbar"):$("").attr({"class":"toolbar"}).css({height:this.config.height}).html(this.config.html).appendTo(this.config.renderTo);this.config.toolbarClass=this._getToolbarClass();this.container.addClass(this.config.toolbarClass);this.config.disableShare&&a.find(".btnShare").hide();this.config.enableViewSS&&a.find(".btnViewOnSS").show();this.config.isFullScreen&&(a.find(".btnFullScreen").hide(),a.find(".btnLeaveFullScreen").show());
if(this.config.hasAudio||"video"===this.config.playerType)this.volumeControl=new SSVolumeControl({container:a.find(".jspl_volume_control"),renderTo:a,trigger:a.find(".btnVolume"),player:this.config.renderTo}),this.audioActive=!0;a.find(".goToSlideLabel>span").html("/"+this.config.totalSlideCount)};
SSToolbar.prototype._initForNativeFullScreen=function(){this._ELEMENT_VISIBILITY.fullScreen=!this.config.disableFullScreen&&!this.config.isFullScreen;this._ELEMENT_VISIBILITY.leaveFullScreen=!this.config.disableLeaveFullScreen&&this.config.isFullScreen};SSToolbar.prototype._getToolbarClass=function(){var a="";return a=400>this.config.width?"small":"normal"};SSToolbar.prototype.resetButtons=function(a){this._unbindButtonHandler(a);this._bindButtonHandler(a)};
SSToolbar.prototype.getElements=function(a){var b=this.container,c={};$.each({nav:".nav",share:".btnShare",fullScreen:".btnFullScreen",leaveFullScreen:".btnLeaveFullScreen",viewOnSS:".btnViewOnSS",goToSlide:".goToSlideLabel",zoomButtons:".docActions"},function(d,e){c[d]=a&&a[d]?$(a[d]):b.find(e)});return c};SSToolbar.prototype.getButtons=function(a,b){var c=this,d={};$.each(a,function(a,f){d[a]=b&&b[a]?$(b[a]):c.container.find(f)});return d};
SSToolbar.prototype.deactivate=function(){$.each(this._BUTTONS,function(a,b){b.unbind("click")});this._unbindButtonHandler(this._BUTTONS);this.container.find(".goToSlideLabel>input[type=text]").attr("disabled",!0);this.active=!1;this.config.hasAudio&&this.updateAudioInteraction();"video"===this.config.playerType&&this._activateAudio()};
SSToolbar.prototype.activate=function(){this._bindButtonHandler({btnViewOnSS:"viewonss",btnFirst:"gotofirstslide",btnSS:"viewonss",btnPrevious:"previous",btnNext:"next",btnLast:"gotolastslide",btnFullScreen:"viewfullscreen",btnLeaveFullScreen:"leavefullscreen",btnZoomOut:"zoomout",btnZoomIn:"zoomin",btnFind:"playersearch",btnShare:"playershare"});var a=this.container.find(".goToSlideLabel>input[type=text]");a.attr("disabled",!1);a.bind("keyup",function(a){a.stopPropagation();13===a.keyCode&&(a=$(a.target).val(),
isNaN(a)||(a=parseInt(a,10),$.slideshareEventManager.trigger("gotoslide",{index:a})))});a.bind("focus",function(a){$(a.target).select()});this.active=!0;this.config.hasAudio&&this.updateAudioInteraction();"video"===this.config.playerType&&this._activateAudio()};
SSToolbar.prototype.updateAudioInteraction=function(a){for(var b in a)this[b]=a[b];"video"===this.config.playerType?this._activateAudio():this.active&&this.audioReady&&this.audioMetaReady?(!this.audioActive&&this._activateAudio(),this._updateAudioDisplay()):this.audioActive&&this._deactivateAudio()};
SSToolbar.prototype._activateAudio=function(){this.container.find(".btnAudio,.btnVolume").removeClass("disabled");this._bindButtonHandler({btnAudio:"toggleaudio",btnVolume:"showvolumecontrol"});this.audioActive=!0};SSToolbar.prototype._deactivateAudio=function(){this.container.find(".btnAudio,.btnVolume").addClass("disabled");this._unbindButtonHandler({btnAudio:null,btnVolume:null});this.audioActive=!1};
SSToolbar.prototype._updateAudioDisplay=function(){this.audioPlaying?this.container.find(".btnAudio").removeClass("btnAudioPlay").addClass("btnAudioPause").attr("title","Pause"):this.container.find(".btnAudio").removeClass("btnAudioPause").addClass("btnAudioPlay").attr("title","Play")};
SSToolbar.prototype._bindButtonHandler=function(a){var b=this;$.each(a,function(a,d){var e=b._BUTTONS[a];e&&(e.unbind(),e.bind("click",function(a){$.slideshareEventManager.trigger(d,{source:b.GA_EVENTS_SRC[d]});a.preventDefault();a.stopPropagation();(a=b.GA_EVENTS[d])&&$.slideshareEventManager.trackEvent(a)}))})};SSToolbar.prototype._unbindButtonHandler=function(a){var b=this;$.each(a,function(a){a=b._BUTTONS[a];a.unbind();a.bind("click",function(a){a.preventDefault();a.stopPropagation()})})};
SSToolbar.prototype.setDimensions=function(a){var b=this,a=a.width/2-b.config.toolbarPadding-b._ELEMENT_WIDTHS[b._ELEMENT_PRIORITIES[1][0]],c={one:a,two:a},d,e,f,g;$.each(this._ELEMENT_PRIORITIES,function(a,j){d=j.length;for(var k=0;kf;1==a||g?(b._ELEMENTS[e].show(),1!=a&&(c[m]-=f)):b._ELEMENTS[e].hide()}})};SSToolbar.prototype.updateCurrentPosition=function(a){this.container.find(".goToSlideLabel>input[type=text]").val(a)};
SSToolbar.prototype.destroy=function(){this.container.remove()};function SSVideoEmbedSlide(a){SSPresentationSlide.call(this,a);this.config=a;this.PLAYER_UNINITIALIZED=-1;this.PLAYER_AUTOHIDE=2;this.ENABLE_JS_API=1;this.PADDING=0;this.playerReady=!1;this._initVideoSlidesLoading()}SSVideoEmbedSlide.prototype=new SSPresentationSlide;
SSVideoEmbedSlide.prototype._initVideoSlidesLoading=function(){"function"!==typeof window.onYouTubePlayerAPIReady&&(window.onYouTubePlayerAPIReady=function(){$(window.video_slides||[]).each(function(a,b){b.playerReady=!0})});window.video_slides||(window.video_slides=[]);window.video_slides.push(this)};SSVideoEmbedSlide.prototype._videoReady=function(a){this.ytube_player=a.target};
SSVideoEmbedSlide.prototype._playVideo=function(){if(this.ytube_player.getPlayerState)this.ytube_player.getPlayerState()===this.PLAYER_UNINITIALIZED&&this.ytube_player.playVideo();else{var a=this;setTimeout(function(){a._playVideo()},1E3)}};SSVideoEmbedSlide.prototype._pauseVideo=function(){this.ytube_player.pauseVideo&&this.ytube_player.pauseVideo()};SSVideoEmbedSlide.prototype._videoLoadFailed=function(){$.slideshareEventManager.trigger("videoloadfailed")};
SSVideoEmbedSlide.prototype._tryPlayerLoad=function(){var a="ytube_player"+this.config.current_video_count,b="100%";navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(b="80%");if(!this.ytube_player){var c=this;this.ytube_player=new YT.Player(a,{videoId:this.config.video_id,playerVars:{autohide:this.PLAYER_AUTOHIDE,enablejsapi:this.ENABLE_JS_API,origin:"http://www.slideshare.net",theme:"light"},width:b,height:"100%",events:{onReady:function(a){c._videoReady(a)},onError:this._videoLoadFailed}})}};
SSVideoEmbedSlide.prototype.retryPlayerLoad=function(){clearTimeout(this.retrying);if(this.playerReady)this._tryPlayerLoad();else{var a=this;this.retrying=setTimeout(function(){a.retryPlayerLoad()},1E3)}};SSVideoEmbedSlide.prototype.removeLoading=function(){var a=this.currentViewMode.wrapper;$("#ytube_player"+this.config.current_video_count,a).show();$(".ytube_message",a).remove()};
SSVideoEmbedSlide.prototype.showLoading=function(){var a=this.currentViewMode.wrapper;$(this.config.loading_message_partial).appendTo(a);this.hideLoadingMessage=!0};SSVideoEmbedSlide.prototype.show=function(){this.currentViewMode.rendered=!0;this.load();this.painted&&this.showMessage()};
SSVideoEmbedSlide.prototype.showMessage=function(){if(this.hideLoadingMessage)$("#ytube_player"+this.config.current_video_count).show();else{this.showLoading();clearTimeout(this.removeLoadingTimeout);var a=this;if(void 0===this.hideLoadingMessage||this.hideLoadingMessage)this.removeLoadingTimeout=setTimeout(function(){a.removeLoading()},3E3)}};
SSVideoEmbedSlide.prototype.emptySlide=function(){this.currentViewMode.contentElement=null;this.painted=this.currentViewMode.rendered=!1;this.ytube_player=null};SSVideoEmbedSlide.prototype.stop=function(){this._pauseVideo()};SSVideoEmbedSlide.prototype.load=function(){$.slideshareEventManager.trigger("slideloaded",{index:this.index})};
SSVideoEmbedSlide.prototype.paint=function(){var a="ytube_player"+this.config.current_video_count;this.config.show_image_player?0===this.$slide.find(".ytube-container").length&&(this.currentViewMode.contentElement=$("").css({overflow:"hidden"}),this.currentViewMode.contentElement.appendTo($("").addClass("ytube-container").css({height:this.$stage.height()||this.contentHeight}).appendTo(this.$slide)),this.playerReady?this._tryPlayerLoad():this.retryPlayerLoad()):(this.currentViewMode.contentElement=
$("").css({position:"absolute",overflow:"hidden",display:"none"}),this.currentViewMode.contentElement.appendTo(this.currentViewMode.wrapper),this.playerReady?this._tryPlayerLoad():this.retryPlayerLoad())};SSVideoEmbedSlide.prototype._getNewResourceVersions=function(){};
function SSPlayerController(a){"undefined"!==typeof a&&(this.config=a,this.slideCount=this.realSlideCount=this.config.slide_count,this.config.has_video&&(this.slideCount+=this.config.video_slides_count),delete this.config.slide_count,this.mode=this.config.show_image_player?"image":this.config.mode,this.config.disable_meta=this.config.show_image_player?!0:!1,delete this.config.mode,this.currentPosition=0,this.loadingSlides=[],this.loadedSlides=[],this.slideModes={},this.availableBgSizes={},this.availableFallbackSizes=
{},this.config.has_lead&&(this.has_lead=!0,this.leadShownAndDisabled=!1,this.config.form_after_slide_no===this.slideCount?this.config.form_after_slide_no=this.slideCount-1:0<=this.config.form_after_slide_no&&(this.config.form_after_slide_no+=1)),this.PRELOAD_PRE_LIMIT=2,this.PRELOAD_POST_LIMIT=5,this.FONT_BATCH_COUNT=10,this.DEFAULT_ERROR_SCORE=0,this.AUTOVERIFICATION_ERROR_THRESHOLD=0.0010,this.AUTOVERIFICATION_THRESHOLDS={"bad v1.0":0.0010,"bad v1.1":1E-4,"bad v2.0":1E-4},this.MAX_PERCENTAGE_FAILING=
{"bad v1.0":100,"bad v1.1":20,"bad v2.0":20},this.TOOLBAR_HEIGHT=30,this.TOOLBAR_PADDING=8,this.MULTIMEDIABAR_HEIGHT=25,this.config.show_image_player&&(this.MULTIMEDIABAR_HEIGHT=29),this.initialized=!1,this.PRERENDER_COUNT=1,this._init(),this.startSlide=parseInt(this.config.start_slide||1,10),this.play(this.startSlide))}
SSPlayerController.prototype._init=function(){var a;$.slideshareEventManager.registerController(this);$.slideshareEventManager.registerEnvironment(this.config.hosted_in);this.cachedDomElements={};this.componentSets={};a=this._isFullScreen()?"fullscreen":"normal";this._createComponentSet(a);this.isNativeFullScreenSupported=this._isNativeFullScreenSupported();this._bindEvents();this.exitFullScreenHandler=this.exitFullScreenHandlerFactory();"video"!==this.mode?(!this.config.disable_meta||!this.config.show_image_player?
(this._initMetadata(),this._loadMetadata()):(this.conversionVersion=2,this.slideSizes={},this.slideLinks={},this.postInitialize()),this.config.has_audio&&!this.config.touch&&this._loadAudioMetadata()):(this.VIDEO_FULLSCREEN_ZINDEX=this.VIDEO_REINITIALISE_TIME=100,this._loadVideoMeta());$.slideshareEventManager.trackEvent("player_initialized",!0);$.slideshareEventManager.trackEvent(this.config.player_type,!0);$.slideshareEventManager.trackUniqueViewer();$.slideshareEventManager.trackEvent(this.mode+
"_mode",!0)};SSPlayerController.prototype._loadVideoMeta=function(){this.config.is_private&&this._getHtmlSignatures();this.initialized=!0};
SSPlayerController.prototype._initMetadata=function(){if("html"===this.mode)this.config.is_private&&this._getHtmlSignatures(),this._initFontResources(),this._initHtmlMetadata(),this.config.image_ready&&this._initImageMetadata(!0);else if("image"===this.mode)this._initImageMetadata();else throw window._gaq&&_gaq.push(["_trackEvent","jsplayer","invalidplayermode",this.config.id]),"Unknown player mode";};
SSPlayerController.prototype._loadMetadata=function(){if("html"===this.mode)this.metaResource.load(),this.config.image_ready&&this.imageMetaResource.load();else if("image"===this.mode)this.imageMetaResource.load();else throw"Unknown player mode";};SSPlayerController.prototype._initHtmlMetadata=function(a){this.metaResource=new SSMetaResource({url:this.config.bucket_location+"meta.js",timestamp:this.config.timestamp,type:"html",is_private:this.config.is_private,signature:a})};
SSPlayerController.prototype._initImageMetadata=function(a){this.imageMetaResource=new SSMetaResource({url:this.config.image_bucket_location+"/meta.js",timestamp:this.config.timestamp,type:a?"imagefallback":"imageprimary"})};
SSPlayerController.prototype._initFontResources=function(a,b){var c=navigator.userAgent.toLowerCase();fontBatchNum=b?Math.ceil(this.slideCount/b):Math.ceil(this.slideCount/this.FONT_BATCH_COUNT);var c=/msie/.test(c)&&!/opera/.test(c)?this.config.html_eotfont_url_suffix:this.config.html_ttffont_url_suffix,d;this.fontResources=[];for(d=1;d<=fontBatchNum;d++)this.fontResources[d]=new SSFontResource({baseUrl:this.config.bucket_location,indexString:this._getIndexString(d,0),timestamp:this.config.timestamp,
suffix:c})};SSPlayerController.prototype._loadAudioMetadata=function(){this.multimediaResource=new SSAudioResource({url:this.config.audio_bucket_location+".js",timestamp:this.config.audio_timestamp,slideCount:this.slideCount,audioDuration:this.config.audio_duration,audioUrl:this.config.audio_url,audioTransition:this.config.audio_transition,flashRoot:this.config.sound_manager_flash_component_root,assetId:this.config.sound_manager_asset_id});this.multimediaResource.load()};
SSPlayerController.prototype.setLeadFilledForAuthor=function(){if(window.localStorage){var a=localStorage.getItem("leadFormFilled");a?0>a.split(",").indexOf(""+this.config.author_id)&&(a+=","+this.config.author_id,localStorage.setItem("leadFormFilled",a)):localStorage.setItem("leadFormFilled",this.config.author_id)}};
SSPlayerController.prototype.checkLeadFilledForAuthor=function(){return"undefined"===typeof localStorage?!1:(v=localStorage.getItem("leadFormFilled"))&&0<=$.inArray(""+this.config.author_id,v.split(","))};
SSPlayerController.prototype.getImagePrivateSignatures=function(a,b){var c=this;$.ajax({url:c.config.images_signature_request_route,data:{id:c.config.id,key:c.config.secret_key,mode:b,images_sizes:a,version:c.conversionVersion,password_hash:c.config.password_hash,slidetracking_hash:c.config.slidetracking_hash,authenticity_token:window._auth_token},dataType:"json",cache:!1,type:"POST",success:function(a){"html"===b?c.privateImageSignatures=a:"image"===b&&(c.privateFallBackImageSignatures=a);if("html"===
b||"image"===b)c.postInitialize();else if(c.slidesCreated){var e=c.slideModes.image.length,f,g;for(i=0;i"+(a.global_styles_css||"a.ssml_a {text-decoration:none;color:inherit;vertical-align:top;} \n.ssml_div span {position:absolute; white-space:pre; vertical-align:top;} \n.ssml_div div {position:absolute;}")+
c+"").appendTo(this.currentComponentSet.container);a.pages_per_fontfile&&(this.FONT_BATCH_COUNT=a.pages_per_fontfile,this._initFontResources());this.config.is_private?this.getImagePrivateSignatures(this.availableBgSizes,"html"):this.postInitialize()},failure:a},imagefallback:{success:function(a){this.config.disable_links&&(a.links={});this.slidesCreated?this.fallbackMetaHandler(a):this.fallbackMetaData=a},failure:function(){var a=this.slideModes.image.length,c,d,e,f;for(c=0;c").addClass("jsplInpageFullScreen").appendTo($("body")),
$("body, html").css({overflow:"hidden"}));var c=this._isFullScreen(a),d=this._getPlayerBgColor(a);b.navigators=[];d={renderTo:b.container,spinnerUrl:this.config.spinner_url,errorImageUrl:this.config.error_image_url,mode:this.mode,slideCount:this.slideCount,playerType:this.config.player_type,playerBgColor:d,hosted_in:this.config.hosted_in,show_image_player:this.config.show_image_player};this._isFullScreen(a)&&(d.spinnerUrl=this.config.spinner_url_fullscreen);"document"===this.config.player_type?b.slidedisplayer=
"undefined"!==typeof new_mobile_player?new SSMobileDocumentDisplayer(d):new SSDocumentDisplayer(d):"video"===this.config.player_type?(this.videoSpecialSettings=this.getSpecialSettingsForVideo(),d.videoBucket=this.config.video_bucket,d.pptLocation=this.config.ppt_location,d.screenMode=a,d.videoSpinner=this.config.video_spinner_location,d.playerDomName=this.config.container,d.videoExtension=this.config.video_extension,d.useDefaultToolbar=this.videoSpecialSettings.defaultToolbar,d.ieAndLessThan8=this.videoSpecialSettings.ieLT8,
d.swfLocation=this.config.swf_location,d.playIcon=this.config.video_play_icon,d.posterImage=this.config.poster_img_url,d.embedOnIe=this.isEmbedAndIE(),d.isEmbed="embed"===this.config.hosted_in,this.hasToolbar=!this.videoSpecialSettings.defaultToolbar,d.isMobileDevice=this.config.touch,d.isMobileAndNonIos=this.config.touch&&!navigator.userAgent.match(/(iPhone|iPad|iPod)/i),b.slidedisplayer=new SSVideoDisplayer(d)):"infographic"===this.config.player_type?b.slidedisplayer=new SSInfographicDisplayer(d):
(d.isTouch=this.config.touch,b.slidedisplayer="undefined"!==typeof new_mobile_player?new NewMobilePresentationDisplayer(d):new SSPresentationDisplayer(d));this.hasToolbar=!this.config.touch||"mobile_slideview"!==this.config.hosted_in;b.navigators.push(b.slidedisplayer);this.setDimensions();a=this.currentComponentSet.width;d=this.currentComponentSet.height;this.config.shareScreenClass="";this.config.lastScreenClass="";this.config.showProLastScreen=!0;"mobile_slideview"!==this.config.hosted_in&&(this.config.disable_share||
(this.config.shareScreenClass=this._getShareScreenClass(a,d),this.config.shareScreenClass||(this.config.disable_share=!0)),this.config.disable_lastscreen||(this.config.lastScreenClass=this._getLastScreenClass(a,d),this.config.disable_lastscreen=null===this.config.lastScreenClass),this.config.showProLastScreen=this.canShowProLastScreen(a,d));this.config.touch?(b.touchInteraction=new SSTouchInteraction({container:b.slidedisplayer.container,playerType:this.config.player_type,hostedIn:this.config.hosted_in}),
b.navigators.push(b.touchInteraction)):"document"!==this.config.player_type&&("video"!==this.config.player_type&&"infographic"!==this.config.player_type)&&(b.bandInteraction=new SSBandInteraction({container:b.slidedisplayer.container,width:b.width,linksDisabled:this.config.disable_links}),b.navigators.push(b.bandInteraction));this.config.has_lead&&(!this.leadShownAndDisabled&&!this.checkLeadFilledForAuthor())&&(this.config.show_lead_cta&&(b.leadcta=new SSLeadCTA({renderTo:b.container,html:this.config.lead_form_cta_html,
has_audio:this.config.has_audio}),b.navigators.push(b.leadcta)),b.leadForm=new SSLeadForm({leadFormHtml:this.config.leadFormHtml||"",renderTo:b.slidedisplayer.container,lead_form_url:this.config.lead_form_url,show_skip_button:this.config.show_skip_button,width:this.currentComponentSet.width,height:this.currentComponentSet.height}),b.navigators.push(b.leadForm));this.hasToolbar&&(c={width:b.width,height:this.TOOLBAR_HEIGHT,html:this.config.toolbar_html,renderTo:b.container,totalSlideCount:this.slideCount,
primaryResourceType:this.config.primaryResourceType,disableShare:this.config.disable_share,enableViewSS:this.config.enable_viewSS,isFullScreen:c,playerType:this.config.player_type,hasAudio:this.config.has_audio,enableZoomButtons:"document"==this.config.player_type,show_image_player:this.config.show_image_player},"infographic"===this.config.player_type&&(a={disableNav:!0,disableGoToSlide:!0,disableShare:!1,enableViewSS:!0,enableZoomButtons:!1,disableFullScreen:!1,disableLeaveFullScreen:!1,buttonOverrides:{btnLeaveFullScreen:".infographic_player a.j-exit-fullscreen"},
elementOverrides:{leaveFullScreen:".infographic_player a.exit-fullscreen"}},"slideview"==this.config.hosted_in&&(a.enableViewSS=!1,a.disableShare=!0,a.disableFullScreen=!1,a.disableLeaveFullScreen=!1,a.enableZoomButtons=!1,a.buttonOverrides.btnFullScreen="li a.btnFullScreen",a.elementOverrides.fullScreen="li a.btnFullScreen"),"slideshare"==this.config.hosted_in&&(a.enableViewSS=!1),$.extend(c,a)),b.toolbar=new SSToolbar(c),b.navigators.push(b.toolbar));this.config.has_audio&&!this.config.touch&&(c=
b.container,this.config.show_image_player&&(c=b.container.find(".toolbar_wrapper")),b.audiobar=new SSAudioBar({renderTo:c,slideCount:this.slideCount,height:this.MULTIMEDIABAR_HEIGHT,html:this.config.multimediabar_html,resource:this.multimediaResource,css2ConfettiUrl:this.config.css2_confetti_url,show_image_player:this.config.show_image_player}),b.navigators.push(b.audiobar));"video"===this.config.player_type&&(b.toolbar||(b.toolbar=$("")),b.videobar=new SSVideoBar({renderTo:b.toolbar.container,
height:this.MULTIMEDIABAR_HEIGHT,html:this.config.multimediabar_html,showLead:this.config.has_lead,leadFormTime:this.config.form_after_slide_no,isMobileDevice:this.config.touch}),b.navigators.push(b.videobar),this.multimediaResource=b.videobar);this.config.has_video&&(b.videoConfetti=$("").attr({src:this.config.confetti_url}).css({position:"absolute",top:"-1px",left:"-1px"}).appendTo(b.container));this.config.socialshare_screen&&(b.socialShareScreen=new SSsocialShareScreen({renderTo:b.container,
html:this.config.socialshare_screen.html,widgetType:this.config.player_share_cta}));this.config.socialshare_screen&&this.config.share_cta&&(b.share_cta=new SSShareCta({renderTo:b.container,bindTo:b.slidedisplayer.container,html:this.config.share_cta.html,sharescreen:b.socialShareScreen}));"video"!==this.mode&&this._bindComponentSetEvents()};
SSPlayerController.prototype.configureComponentsForNativeMode=function(a){var b=this.currentComponentSet;b.slidedisplayer.refresh({spinnerUrl:this.config.spinner_url_fullscreen});b.toolbar.config.isFullScreen=this._isFullScreen(a);b.toolbar._initForNativeFullScreen(a)};SSPlayerController.prototype._isFullScreen=function(a){return"fullscreen"===a||"nativefullscreen"===a||this.config.is_fullscreen};
SSPlayerController.prototype._getPlayerBgColor=function(a){var b="jsplBgColorCCC";return b=this._isFullScreen(a)?this.config.fullscreen_bgcolor:this.config.player_bgcolor};SSPlayerController.prototype._getShareScreenClass=function(a,b){var c=null;360a||142>b?!1:!0};
SSPlayerController.prototype._getLastScreenClass=function(a,b){var c=null;512<=a&&421<=b?c="":427<=a&&356<=b?c="normal":342<=a&&291<=b&&(c="small");return c};
SSPlayerController.prototype._destroyComponentSet=function(a){var b=this.componentSets[a];$.each(b.navigators,function(a,b){b.destroy()});delete this.componentSets[a].navigators;delete this.componentSets[a].slidedisplayer;"fullscreen"===a&&(b.container.remove(),$("body, html").css({overflow:"auto"}));for(var c=1;c<=this.slideCount;c++)b=this.slides[c],b.viewModes[a].container.remove(),delete b.viewModes[a];delete this.componentSets[a].container;delete this.componentSets[a]};
SSPlayerController.prototype._mapIndexes=function(){for(var a=this.config.video_hash,b=1,c=this.slideCount,d={},e={},f=1;f<=c;f++)a&&a[f]?d[f]=null:(d[f]=b,e[b]=f,b++);this.config.has_video&&(a=document.createElement("script"),a.src=(this.config.use_ssl?"https://":"http://")+"www.youtube.com/player_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b));this.indexToRealIndex=d;this.realIndexToIndex=e};
SSPlayerController.prototype._percentageFailing=function(a){var b=0,c;for(c in this.errorScores)this.errorScores[c]>a&&b++;return 0===this.slideCount?0:parseInt(100*(b/this.slideCount),10)};
SSPlayerController.prototype._initSlides=function(){this.slides=[];this.slideModes.image=[];this.slideModes.html=[];var a,b,c,d=!1,e,f=0,g=this.config.video_hash;this._mapIndexes();var h=this.indexToRealIndex,j=this.AUTOVERIFICATION_ERROR_THRESHOLD,k=0,m=100;2===this.conversionVersion&&"undefined"!==typeof this.AUTOVERIFICATION_THRESHOLDS[this.algo]&&(j=this.AUTOVERIFICATION_THRESHOLDS[this.algo],k=this._percentageFailing(j));2===this.conversionVersion&&"undefined"!==typeof this.MAX_PERCENTAGE_FAILING[this.algo]&&
(m=this.MAX_PERCENTAGE_FAILING[this.algo]);for(a in h)h.hasOwnProperty(a)&&(a=parseInt(a,10),e=h[a],null===h[a]?(b="ytube_video",f++):1===a&&this.config.image_ready?(b="image",d=!0):"html"===this.mode&&!this.config.image_ready?b="html":"image"===this.mode?b="image":2===this.conversionVersion&&k>m?(b="image",this.disableLoadingFonts=d=!0):(b=parseFloat(this.errorScores[a]),isNaN(b)&&(b=this.DEFAULT_ERROR_SCORE),b>j?(b="image",d=!0):b="html"),null===e&&(e=g[a].parent),c=this.slideSizes[e]||{},"html"===
b?this.slideModes.html.push(e):"image"===b&&this.slideModes.image.push(e),c={ssid:this.config.id,realIndex:e,index:a,type:this.mode,linkOffset:f,slideMode:b,indexGenerator:this._getIndexString,contentWidth:parseInt(c.width,10)||638,contentHeight:parseInt(c.height,10)||479,playerWidth:this.currentComponentSet.width,errorImageUrl:this.config.error_image_url,spinnerUrl:this.config.spinner_url,spinnerUrlFullscreen:this.config.spinner_url_fullscreen,playerType:this.config.player_type,stripped_title:this.config.stripped_title,
timestamp:this.config.timestamp,ppt_location:this.config.ppt_location,is_private:this.config.is_private,conversionVersion:this.conversionVersion||1,hosted_in:this.config.hosted_in,show_image_player:this.config.show_image_player,isStartSlide:this.config.start_slide===a},"html"===b?(c.bucketLocation=this.config.bucket_location,c.availableSizes=this.availableBgSizes[e]):"image"===b&&(c.bucketLocation=this.config.image_bucket_location,c.availableSizes=this.config.disable_meta?{1024:[95]}:this.availableFallbackSizes[e]),
this.config.is_private&&("html"==b?(this.htmlResourceSignatures&&this.htmlResourceSignatures[e]&&(c.htmlResourceSignature=this.htmlResourceSignatures[e].url),c.privateImageSignatures=this.privateImageSignatures[e]):"image"==b&&this.privateFallBackImageSignatures&&(c.privateImageSignatures=this.privateFallBackImageSignatures[e])),"document"===this.config.player_type?b="undefined"!==typeof new_mobile_player?new MobileDocumentSlide(c):new SSDocumentSlide(c):"infographic"===this.config.player_type?b=
new SSInfographicSlide(c):"ytube_video"!==b?b="undefined"!==typeof new_mobile_player?new SlideshareMobileSlide(c):new SSPresentationSlide(c):(c.video_id=g[a].video_id,c.current_video_count=f,c.loading_message_partial=this.config.loading_message_partial,1===a&&(c.contentWidth=728,c.contentHeight=542),b=new SSVideoEmbedSlide(c)),"image"===this.mode&&void 0!==this.slideLinks[e]&&b.updateResource("image",{linkData:this.slideLinks[e]||{}}),this.slides[a]=b,delete this.availableFallbackSizes[e]);!0===d&&
(this.slidesCreated=!0,this.fallbackMetaData&&this.fallbackMetaHandler(this.fallbackMetaData))};SSPlayerController.prototype._getIndexString=function(a,b){var c=""+a,d=c.length,e;for(e=0;edocument.documentMode,c={ieLT8:a},d=!1;"video"===this.config.player_type?b&&!document.mozFullScreenEnabled?d=!0:a&&this.isEmbedAndIE()&&(d=!0):d=!1;c.defaultToolbar=d;return c};
SSPlayerController.prototype.repaint=function(a){var b=navigator.userAgent.toLowerCase(),b=/msie/.test(b)&&!/opera/.test(b);if(!(void 0===this.currentComponentSet.slidedisplayer||"video"===this.config.player_type&&b&&this.currentComponentSet.videobar.fullscreen)){this.setDimensions(!0);this.setDimensions(!1,a);this._repaintPrerenderedSlides();if(this.config.has_video){var c=this;setTimeout(function(){c.resizeVideoEmbeds()},250)}this.config.show_image_player||this.currentComponentSet.slidedisplayer._scrollTo(this.currentPosition)}};
SSPlayerController.prototype._repaintPrerenderedSlides=function(){var a=this.currentComponentSet.slidedisplayer.prerenderedSlides,b;if(a&&0b&&(b=1);a+=this.PRERENDER_COUNT;a>this.slideCount&&(a=this.slideCount);return[b,a]};
SSPlayerController.prototype._load=function(a,b){var c=navigator.userAgent.toLowerCase(),d=/msie/.test(c)&&!/opera/.test(c);if("video"!==this.config.player_type){var a=a||this.config.start_slide,e,f,g=this;this.loadFonts(Math.ceil(a/this.FONT_BATCH_COUNT));if(!b){e=this.getPrerenderSlideIndices(a,b);var c=e[0],h=e[1];for(e=c;e<=h;e++)this.config.show_image_player&&this.slides[e].render(),this.slides[e].show(),this.loadedSlides[e]=!0;if((d||"function"===typeof isIos&&isIos())&&"undefined"===typeof new_mobile_player){d=
this.currentComponentSet.slidedisplayer.prerenderedSlides;for(e=0;eh)f=this.slides[f],f.hide();this.currentComponentSet.slidedisplayer.prerenderedSlides=[]}this.currentComponentSet.slidedisplayer.setPrerenderedSlides({start:c,end:h})}this.config.disable_eagerload&&a===this.config.start_slide||(c=this.preloadAnchorIndex,this.preloadAnchorIndex=a,e=function(){g.preloadSlides()},this.config.preload_after_pageload&&!this.pageLoadFired?c||$(window).bind("load",e):(clearTimeout(this.preloadTimeoutId),
this.preloadTimeoutId=setTimeout(e,2E3)))}};
SSPlayerController.prototype.preloadSlides=function(){if(this.preloadAnchorIndex){var a=this.PRELOAD_PRE_LIMIT+this.PRELOAD_POST_LIMIT+1,b=this.preloadAnchorIndex-this.PRELOAD_PRE_LIMIT;1>b&&(b=1);a=b+a-1;a>this.slideCount&&(a=this.slideCount);var c=Math.ceil(b/this.FONT_BATCH_COUNT),d=Math.ceil(a/this.FONT_BATCH_COUNT);for(i=c;i<=d;i++)this.loadFonts(i);for(i=b;i<=a;i++)this.loadedSlides[i]||(slide=this.slides[i],this.config.show_image_player&&slide.render(),slide.load(),this.loadedSlides[i]=!0);
delete this.preloadAnchorIndex}};SSPlayerController.prototype.preloadMoreIfIdle=function(a){if(!this.config.disable_eagerload){var b=this.loadingSlides,a=b.indexOf(a);-1b.length){var c=this.loadedSlides.length+1;if(!(c>this.realSlideCount)){var d=this;setTimeout(function(){d._load(c,!0)},0)}}}};
SSPlayerController.prototype.play=function(a,b,c){if(this.initialized){if(void 0===a&&("undefined"!==typeof this.playQueue?(a=this.playQueue,delete this.playQueue):a=1),1>a&&(a=1),a>this.slideCount&&(a=this.slideCount),this.currentPosition!==a||b)"video"===this.config.player_type?this.currentComponentSet.slidedisplayer.start():$.slideshareEventManager.trigger("slidechanged",{index:a,force:b,source:c})}else this.playQueue=a||1};
SSPlayerController.prototype._enableVideoReloading=function(){var a=this.slides,b;for(b in a)a.hasOwnProperty(b)&&a[b]&&"ytube_video"===a[b].config.slideMode&&a[b].emptySlide()};
SSPlayerController.prototype.switchNativeView=function(a){if("nativefullscreen"==a){var b=this.currentComponentSet.container;b.length&&this.nativeFullScreen.request(b[0])}else this.nativeFullScreen.cancel();void 0===this.componentSets[a]&&(this.componentSets[a]=this.componentSets[this.currentViewMode]);this.currentComponentSet=this.componentSets[a];this.currentViewMode=a;this.currentComponentSet.slidedisplayer.emptySlides();this.configureComponentsForNativeMode(a);this._setModeForSlides(a);this._load(this.currentPosition);
this.updateCurrentPosition(this.currentPosition)};SSPlayerController.prototype._nativeFullScreenHandler=function(){var a=this;this.nativeFullScreen.isFullScreen()?this.currentViewMode="nativefullscreen":$.slideshareEventManager.trigger("leavefullscreen");window.setTimeout(function(){a.repaint.call(a)},500)};
SSPlayerController.prototype.nativeFullScreen={request:function(a){document.webkitFullscreenEnabled?Element&&Element.ALLOW_KEYBOARD_INPUT?a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):a.webkitRequestFullScreen():document.mozFullScreenEnabled&&a.mozRequestFullScreen()},cancel:function(){document.webkitFullscreenEnabled?document.webkitCancelFullScreen():document.mozFullScreenEnabled&&document.mozCancelFullScreen()},fullScreenChangeEventName:function(){if(document.webkitFullscreenEnabled)return"webkitfullscreenchange";
if(document.mozFullScreenEnabled)return"mozfullscreenchange"},isFullScreen:function(){return document.webkitIsFullScreen||document.mozFullScreen}};SSPlayerController.prototype._isNativeFullScreenSupported=function(){return(document.webkitFullscreenEnabled||document.mozFullScreenEnabled)&&(/Chrome/.test(navigator.userAgent)||/Firefox/.test(navigator.userAgent))};
SSPlayerController.prototype.leaveFullScreen=function(){this.currentComponentSet.videobar&&(this.disableLeadForFullscreenVideo(!1),this.currentComponentSet.slidedisplayer.adjustSpinnerPosition(!1));this.currentComponentSet.lastscreen&&this.currentComponentSet.lastscreen.hide();if("nativefullscreen"===this.currentViewMode&&this.isNativeFullScreenSupported)this.switchNativeView("normal");else if("video"===this.config.player_type)this.returnFromFullscreenForVideo();else if(this.config.inpage_full_screen)this.switchView("normal");
else try{window.close()}catch(a){}};
SSPlayerController.prototype.switchView=function(a){this.config.show_image_player?("fullscreen"==a?(this.currentViewMode="nativefullscreen",this.currentComponentSet.container.addClass("non-native-fullscreen")):"normal"==a&&(this.currentViewMode="normal",this.currentComponentSet.container.removeClass("non-native-fullscreen"),this.switchNativeView(this.currentViewMode)),this.configureComponentsForNativeMode(a),this.repaint(),$(window).trigger("resize")):a!==this.currentViewMode&&(this.config.has_video&&
(this._enableVideoReloading(),$("[id*=ytube_player]").remove()),this._deactivateComponentSet(this.currentViewMode),void 0===this.componentSets[a]&&this._createComponentSet(a),this._activateComponentSet(a),this._setModeForSlides(a),this.setDimensions(),this.play(this.currentPosition,!0),this._load(this.currentPosition),this.updateCurrentPosition(this.currentPosition))};
SSPlayerController.prototype._activateComponentSet=function(a){var b=this.componentSets[a],c=b.navigators;this.currentComponentSet=b;this.currentViewMode=a;$.each(c,function(a,b){b.activate()});"fullscreen"===a||this.config.is_fullscreen?($(document).bind("keyup",this.exitFullScreenHandler),$(window).scrollTop(0)):($(document).unbind("keyup",this.exitFullScreenHandler),this.normalModeScrollPosition&&$(window).scrollTop(this.normalModeScrollPosition))};
SSPlayerController.prototype.exitFullScreenHandlerFactory=function(){return function(a){if(27===a.keyCode)try{$.slideshareEventManager.trigger("leavefullscreen")}catch(b){}}};SSPlayerController.prototype._deactivateComponentSet=function(a){$.each(this.componentSets[a].navigators,function(a,c){c.deactivate()});"fullscreen"===a&&this._destroyComponentSet("fullscreen");this.currentViewMode=this.currentComponentSet=null};
SSPlayerController.prototype._setModeForSlides=function(a){"video"!==this.config.player_type&&this.currentComponentSet.slidedisplayer.start({slides:this.slides,mode:a,playerBgColor:this._getPlayerBgColor(a)});this.currentComponentSet.slidedisplayer._bindEvents()};SSPlayerController.prototype.getFullScreenUrl=function(){return this.config.fullscreen_url?this.config.fullscreen_url+"/"+this.currentPosition:document.location};
SSPlayerController.prototype.generateErrorDom=function(a,b){var c=a+"_"+b.width+"_"+b.height,d=this.cachedDomElements[c];if(void 0===d){var d=b.width,e=b.height,f=e/3,f=f>d/4?d/4:f,g=parseInt(f/20,10),h=(e-f)/("document"===this.config.player_type?4:2),j=d/25,k=f-14,d=$(this.config[a]);d.css({height:e-h,padding:h+"px 14px 0"});e=d.children("div");e.css({"-moz-border-radius":g,"-webkit-border-radius":g,"-o-border-radius":g,"-ms-border-radius":g,"border-radius":g,height:f});e.children("img").css({margin:7,
height:k,width:k});e.children("div").css({left:k+14,padding:"14px 0 0 7px","font-size":j});this.cachedDomElements[c]=d}return $(d).clone()};SSPlayerController.prototype.disableLeadForFullscreenVideo=function(a){(this.currentComponentSet.videobar.fullscreen=a)?this.currentComponentSet.leadcta&&this.currentComponentSet.leadcta.hide():!this.leadShownAndDisabled&&this.currentComponentSet.leadcta&&this.currentComponentSet.leadcta.show()};
SSPlayerController.prototype.goHtmlFullscreenForVideo=function(){this.currentComponentSet.slidedisplayer.container.addClass("inPageFullscreen");var a=this.multimediaResource.videoPlayer,b=$(a.getContainer()),c=$(b.parent());this.normalPosition=b.css("position");this.normalZindex=b.css("z-index");this.normalLeft=b.css("left");this.normalTop=b.css("top");this.normalPlayerWidth=c.width();this.normalPlayerHeight=c.height();this.toolbarPaddingLeft=parseInt($(".toolbar").css("padding-left"),10);this.toolbarPadingRight=
parseInt($(".toolbar").css("padding-right"),10);this.fullscreenHeight=$(window).height()-this.TOOLBAR_HEIGHT;this.fullscreenWidth=$(window).width();c.css({position:"fixed",width:"100%",height:"100%",left:0,top:0,"z-index":this.VIDEO_FULLSCREEN_ZINDEX});a.resize(this.fullscreenWidth,this.fullscreenHeight);this.normalPlayerContainer=this.currentComponentSet.container;this.currentComponentSet.container=c;$(this.currentComponentSet.toolbar.container).css({"z-index":this.VIDEO_FULLSCREEN_ZINDEX,width:this.fullscreenWidth-
(this.toolbarPaddingLeft+this.toolbarPadingRight),position:"fixed",left:0,bottom:0});$(this.currentComponentSet.toolbar.volumeControl.container).css({"z-index":this.VIDEO_FULLSCREEN_ZINDEX,position:"fixed",bottom:0});$(this.currentComponentSet.videobar.container).css({"z-index":this.VIDEO_FULLSCREEN_ZINDEX,width:"100%",position:"relative",left:0,bottom:0});this.currentComponentSet.videobar.setDimensions({height:this.fullscreenHeight,width:this.fullscreenWidth,fullscreen:!0});b=this.currentComponentSet.toolbar.getElements();
b.fullScreen.hide();b.leaveFullScreen.show();a.fullscreen=!0;setTimeout(function(){"PLAYING"===a.getState()&&a.play(!0)},this.VIDEO_REINITIALISE_TIME)};
SSPlayerController.prototype.returnFromFullscreenForVideo=function(){this.currentComponentSet.slidedisplayer.container.removeClass("inPageFullscreen");var a=this.multimediaResource.videoPlayer,b=$(a.getContainer());$(b.parent()).css({position:"relative",height:this.normalPlayerHeight,width:this.normalPlayerWidth,"z-index":this.normalZindex,left:this.normalLeft,top:this.normalTop});a.resize(this.normalPlayerWidth,this.normalPlayerHeight);this.currentComponentSet.container=this.normalPlayerContainer;
b=this.currentComponentSet.toolbar.getElements();b.leaveFullScreen.hide();b.fullScreen.show();$(this.currentComponentSet.toolbar.container).css({position:"relative",height:this.TOOLBAR_HEIGHT,width:this.normalPlayerWidth-(this.toolbarPaddingLeft+this.toolbarPadingRight),"z-index":this.normalZindex,left:this.normalLeft,top:this.normalTop,bottom:0});$(this.currentComponentSet.toolbar.volumeControl.container).css({position:"relative","z-index":this.normalZindex});$(this.currentComponentSet.videobar.container).css({position:"relative",
height:this.MULTIMEDIABAR_HEIGHT,width:this.normalPlayerWidth,"z-index":this.normalZindex});this.currentComponentSet.videobar.setDimensions({height:this.normalPlayerHeight,width:this.normalPlayerWidth});a.fullscreen=!1;setTimeout(function(){"PLAYING"===a.getState()&&a.play(!0)},this.VIDEO_REINITIALISE_TIME)};SSPlayerController.prototype.isEmbedAndIE=function(){var a=navigator.userAgent.toLowerCase();return/msie/.test(a)&&!/opera/.test(a)&&"slideview"!==this.config.hosted_in};
SSPlayerController.prototype.deactivateToolbar=function(){this.currentComponentSet.toolbar.deactivate()};SSPlayerController.prototype.activateToolbar=function(){this.currentComponentSet.toolbar.activate()};SSPlayerController.prototype.isToolbarActive=function(){return this.currentComponentSet.toolbar.active};
SSPlayerController.prototype.resizeVideoEmbeds=function(){if(this.currentComponentSet&&this.currentComponentSet.slidedisplayer&&this.currentComponentSet.slidedisplayer.container){var a=this.currentComponentSet.slidedisplayer.container,b=a.find(".ytube-container");0",a,""].join("");h.id="modernizr";h.innerHTML+=
d;f.appendChild(h);a=c(h,a);h.parentNode.removeChild(h);return!!a},p,q={}.hasOwnProperty,t;typeof q!==c&&typeof q.call!==c?t=function(a,b){return q.call(a,b)}:t=function(a,b){return b in a&&typeof a.constructor.prototype[b]===c};var x=[,"touch"],E=[,["@media (",j.join("touch-enabled),("),"modernizr){#touch{top:9px;position:absolute}}"].join("")].join(""),s=x.length;m(E,function(b){for(var b=b.childNodes,c={};s--;)c[b[s].id]=b[s];e.touch="ontouchstart"in a||9===c.touch.offsetTop},s,x);g.touch=function(){return e.touch};
g.csstransforms=function(){return!!d(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};for(var u in g)t(g,u)&&(p=u.toLowerCase(),e[p]=g[u](),k.push((e[p]?"":"no-")+p));h.cssText="";g=null;e._version="2.0.6";e._prefixes=j;e.testProp=function(a){return d([a])};e.testStyles=m;return e}(this,this.document);var isMobile=function(){return navigator.userAgent.match(/iPhone|iPad|iPod|Android|BlackBerry|IEMobile|webOS|Mobile|Windows Phone/i)};
Array.prototype.indexOf||(Array.prototype.indexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;0=c)return-1;for(d=0<=d?d:Math.max(c-Math.abs(d),0);df?(e.removeClass("wide_img"),e.addClass("tall_img")):(e.removeClass("tall_img"),e.addClass("wide_img")))}}else $.slideshareEventManager.trigger("repaint",{mobile:b.config.touch});a&&"document"===this.config.player_type&&
($(window).unbind("resize",c),setTimeout(function(){$(window).bind("resize",c)},1E3))};"undefined"===typeof new_mobile_player&&$(window).bind("resize",c)};SSPlayer.prototype.play=function(a){this.controller.play(a||1)};SSPlayer.prototype.gotoCurrent=function(){this.controller.play(this.controller.currentPosition,!0)};