"); } else if(!$(".sw-special-mode-bar").length && !$("#sw-content-container10.ui-hp div.ui-widget.app.gallery.json").length) { $(".hp-content-outer.one").addClass("no-slideshow"); } 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"); } }); //$("#hp-slideshow-outer").addClass("small-slideshow"); // PHOTO GALLERY ROTATOR $("#sw-content-container10.ui-hp div.ui-widget.app.gallery.json").creativeGalleryRotate({ "imageWidth" : imgWidth, "imageHeight" : imgHeight, "efficientLoad" : "yes", "appHeader" : "no", "titles" : "yes", "captions" : "yes", "playPause" : "yes", "mainControls" : "yes", "galleryOverlay" : "no", "linkedElement" : ["all"], // ["image", "title", "overlay", "all"] "contMoreLink" : "no", "contMoreLinkText" : "Read More", "descMoreLink" : "yes", "descMoreLinkText" : "READ MORE", "bullets" : "no", "bulletControls" : "no", "thumbnails" : "no", "thumbnailWidth" : 122, "thumbnailHeight" : 53, "thumbnailSlideDirection" : "horizontal", // horizontal or vertical "hoverPause" : "yes", "fullScreenRotator" : "no", // image dimensions work well at 1500x915 "fullScreenBreakpoints" : ["960", "768", "640", "480", "320"], // OPTIONS ARE ["960", "768", "640", "480", "320"] "autoRotate" : "yes", "transitionType" : "slide", // fade or slide "transitionSpeed" : 2, "onImageLoad" : function() { }, "allImagesLoaded" : function() { }, "onThumbnailLoad" : function() { }, "allThumbnailsLoaded" : function() { }, "onTransitionStart" : function() { $("#hp-slideshow-inner").fadeOut(); $("#hp-slideshow-inner-inner-inner .rs-photo-gallery-desc").remove(); }, "onTransitionEnd" : function() { $("#hp-slideshow .rs-photo-gallery-container .rs-photo-gallery-desc").delay(100).clone().appendTo("#hp-slideshow-inner-inner-inner"); $("#hp-slideshow-inner").fadeIn(); }, "allLoaded" : function() { //MOVE PLAY/PAUSE, BACK, AND NEXT BUTTONS INTO ONE CONTAINER $("