"); //MOVE CONTROLS $("#hp-slideshow .mmg-control-wrapper.mmg").appendTo("#hp-slideshow .mmg-container"); //DETERMINE THE NUMBER OF LINKS FOR VERTICAL SPACING if($("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links").length){ var numMMGLinks = $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links .mmg-description-link").length; $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer").attr("data-link-number",numMMGLinks); } }, // props.element, props.mmgRecords "onWindowResize": function(props) { //DETERMINE THE NUMBER OF LINKS FOR VERTICAL SPACING if($("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links").length){ var numMMGLinks = $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links .mmg-description-link").length; $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer").attr("data-link-number",numMMGLinks); } } // props.element, props.mmgRecords }); } else if(galleryType == "Full Screen Multimedia Gallery"){ 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" : mmgWidth, "imageHeight" : mmgHeight, "mobileDescriptionContainer": [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" : "fade", "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) { //DETERMINE THE NUMBER OF LINKS FOR VERTICAL SPACING if($("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links").length){ var numMMGLinks = $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer .mmg-description-links .mmg-description-link").length; $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-description-outer").attr("data-link-number",numMMGLinks); } }, "onTransitionEnd" : function(props) { //WHOLE IMAGE CLICKABLE if($(".mmg-slide.active .mmg-description-link.read-more", props.element).length && "false" == "true" ) { var getPhotoLink = $(".mmg-slide.active .mmg-description-link.read-more", props.element).attr("href"); if(!$(".mmg-slide.active .mmg-image > a", props.element).length) { $(".mmg-slides .mmg-slide.active img", props.element).wrap(""); } } }, // props.element, props.currentRecordIndex, props.currentGalleryIndex, props.mmgRecords "allLoaded" : function(props) { //WRAP CONTROLS $("#mmg-container-"+mmg.props.pageModuleInstanceId+" .mmg-control").wrapAll("