'); //move controls if( $('#hp-slideshow .rs-photo-gallery-control').length > 0 ){ $('#hp-slideshow .rs-photo-gallery-container > .rs-photo-gallery-control').appendTo('#hp-slideshow .rs-gallery-control-cont'); } //add title if( $('#hp-slideshow .rs-photo-gallery-title').length > 0 ){ $('#hp-slideshow .rs-photo-gallery-title').appendTo('#hp-slideshow .rs-gallery-desc-inner'); }else{ $('#hp-slideshow').attr('data-title', 'no'); } //add caption if( $('#hp-slideshow .rs-photo-gallery-caption').length > 0 ){ $('#hp-slideshow .rs-photo-gallery-caption').appendTo('#hp-slideshow .rs-gallery-desc-inner'); }else{ $('#hp-slideshow').attr('data-caption', 'no'); } //add read more if( $('#hp-slideshow .rs-photo-gallery-desc-more-link').length > 0 ){ $('#hp-slideshow .rs-photo-gallery-desc-more-link').appendTo('#hp-slideshow .rs-gallery-desc-inner'); } $(".rs-photo-gallery-control.play-pause").prependTo(".rs-photo-gallery-container"); } }); } } if( !true ){ $('body').addClass("no-slideshow"); } } function logoWidth() { if($("#gb-logo-container img").length ) { var imgWidth = $("#gb-logo img").width(); $("#gb-logo-outer").width(imgWidth); } } function logoWidth480() { if($("#gb-logo-container img").length) { var imgWidth = $("#gb-logo img").width()*.75; $("#gb-logo-outer, #gb-logo-container img").width(imgWidth); } } function appView(){ if($(".ui-widget-header").hasClass("ui-helper-hidden") || jQuery.trim($(".ui-widget-header h1").text()) == "") { $(this).addClass("no-header"); }else{ if( $('.ui-widget-header h1 .accordion-handle').length <= 0 && $('.hp').length > 0){ $('.ui-widget-header h1').append(''); } } //DOC make homepage apps collapsible for small mobile devices if(!$("div.ui-widget.app.active").length){ $("#hp-content div.ui-widget.app:first").addClass("active"); $('.app.active .accordion-handle').toggleClass('point-up').toggleClass('point-down'); } $("div.ui-hp div.ui-widget-header").off('click') //these needs to be here to remove click events when mobile devices scroll (which causes a screen resize event) .click(function(){ if( $(this).parent().hasClass("active") ){ //If they click the same header again it will hide $(this).parent().removeClass("active"); $('.accordion-handle', this).toggleClass('point-up').toggleClass('point-down'); }else{ var clickedApp = $(this).parent().parent().attr("id"); $('.app.active .accordion-handle').toggleClass('point-up').toggleClass('point-down'); $("div.ui-widget.app.active").removeClass("active"); $(this).parent().addClass("active"); $('.accordion-handle', this).toggleClass('point-up').toggleClass('point-down'); smoothScroll("#" + clickedApp, 3); } }); }	function useChannelForSection(){ //DOC use channel name for pagelistnavigation header if one is not present if(!$("div.sp.column.one .ui-widget-header h1").length > 0) { $("div.sp.column.one .ui-widget-header").append("