").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 { $(".hp-content-outer.one").addClass("no-slideshow"); } } }, "MMGPlugin": function() { // FOR SCOPE var _this = this; var clickablePhoto; if(false) { clickablePhoto = "['image']"; } else { clickablePhoto = "[]"; } var imgWidth, imgHeight; if($(window).width() >= 1024 && $(window).width() <= 1199) { imgWidth = 660; imgHeight = 330; $("#hp-slideshow-outer, #gb-icons-outer").addClass("small-slideshow"); } else { imgWidth = 960; imgHeight = 480; $("#hp-slideshow-outer, #gb-icons-outer").removeClass("small-slideshow"); } $(window).resize(function() { if($(window).width() >= 1024 && $(window).width() <= 1199) { imgWidth = 660; imgHeight = 330; $("#hp-slideshow-outer, #gb-icons-outer").addClass("small-slideshow"); } else { imgWidth = 960; imgHeight = 480; $("#hp-slideshow-outer, #gb-icons-outer").removeClass("small-slideshow"); } }); var mmg = eval("multimediaGallery" + $("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery:first").attr("data-pmi")); mmg.props.defaultGallery = false; $("#sw-content-container10.ui-hp .ui-widget.app.multimedia-gallery:first").csMultimediaGallery({ "efficientLoad" : true, "imageWidth" : imgWidth, "imageHeight" : imgHeight, "mobileDescriptionContainer": [960, 768, 640, 480, 320], // [960, 768, 640, 480, 320] "galleryOverlay" : false, "linkedElement" : clickablePhoto, // ["image", "title", "overlay"] "playPauseControl" : true, "backNextControls" : true, "bullets" : false, "thumbnails" : false, "thumbnailViewerNum": [3, 4, 3, 3, 2], // NUMERICAL - [960 view, 768 view, 640 view, 480 view, 320 view] "autoRotate" : true, "hoverPause" : true, "transitionType" : "slide", "transitionSpeed" : 2, "transitionDelay" : 6, "fullScreenRotator" : false, "fullScreenBreakpoints" : [960], // NUMERICAL - [960, 768, 640, 480, 320] "onImageLoad" : function(props) {}, // props.element, props.recordIndex, props.mmgRecords "allImagesLoaded" : function(props) {}, // props.element, props.mmgRecords "onTransitionStart" : function(props) { $("#hp-slideshow-inner-inner-inner > .mmg-description-outer").remove(); $("#hp-slideshow .mmg-description-outer").clone().appendTo("#hp-slideshow-inner-inner-inner"); if($("#hp-slideshow-inner .mmg-description-link.watch-video").length) { $("#hp-slideshow-inner .mmg-description-outer .mmg-description .mmg-description-link.watch-video").click(function(e) { e.preventDefault(); $("#hp-slideshow .mmg-container .mmg-description-outer .mmg-description .mmg-description-links").find(".mmg-description-link.watch-video").click(); }); } }, // props.element, props.currentRecordIndex, props.currentGalleryIndex, props.nextRecordIndex, props.nextGalleryIndex, props.mmgRecords "onTransitionEnd" : function(props) {}, // props.element, props.currentRecordIndex, props.currentGalleryIndex, props.mmgRecords "allLoaded" : function(props) { $("