").appendTo("#hp-slideshow .rs-photo-gallery-container"); $("#hp-slideshow .rs-photo-gallery-container > .rs-photo-gallery-control.next").prependTo(".cs-gallery-controls-cont"); $("#hp-slideshow .rs-photo-gallery-container > .rs-photo-gallery-control.play-pause").appendTo(".cs-gallery-controls-cont"); $("#hp-slideshow .rs-photo-gallery-container > .rs-photo-gallery-control.back").prependTo(".cs-gallery-controls-cont"); //MOVE DESCRIPTION $("#hp-slideshow .rs-photo-gallery-container .rs-photo-gallery-desc").clone().appendTo("#hp-slideshow-inner-inner-inner"); $("#hp-slideshow-inner").fadeIn(); if($(window).width() > 1023) { var windowWidth = $(window).width(); var imgLeft = $(".image.active").offset(); imgLeft = imgLeft.left; var descLeft = $("#hp-slideshow-inner-inner").offset(); descLeft = descLeft.left; var descWidth = imgLeft - descLeft; descWidth = descWidth - 50; $("#hp-slideshow-inner-inner-inner").width(descWidth); } $(window).resize(function() { if($(window).width() > 1023) { var windowWidth = $(window).width(); var imgLeft = $(".image.active").offset(); imgLeft = imgLeft.left; var descLeft = $("#hp-slideshow-inner-inner").offset(); descLeft = descLeft.left; var descWidth = imgLeft - descLeft; descWidth = descWidth - 50; $("#hp-slideshow-inner-inner-inner").width(descWidth); } }); if($(window).width() < 1024) { $("#hp-slideshow").after($("#hp-slideshow-inner")); } $(window).resize(function() { if($(window).width() < 1024) { $("#hp-slideshow").after($("#hp-slideshow-inner")); } }); } }); } } else if($("#sw-content-container10.ui-hp div.ui-widget.app.multimedia-gallery").length) { $("#hp-slideshow-inner").addClass("cs-mmg-app"); this.MMGPlugin(); } else { /*if($(".sw-special-mode-bar").length) { $.csMultimediaGalleryDefault({ "contentRegion" : "#sw-content-container10.ui-hp", "defaultImageSrc" : "/cms/lib/NJ02226462/Centricity/Template/12/defaults/slideshow-default-one.jpg", "allLoaded": function() { _this.MMGPlugin(); } }); }*/ if($(".sw-special-mode-bar").length) { $("#sw-content-container10.ui-hp").html("