Costa Rica Condos for Sale, Hermosa Beach, Punta Leona, Los

div div.active’); if ( $active.length == 0 ) $active = $(‘#slideshow IMG:last’); if ( $activeListing.length == 0 ) $activeListing = $(‘#slideshow-overlay > div div:last’); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : $(‘#slideshow IMG:first’); var $nextListing = $activeListing.next().length ? $activeListing.next() : $(‘#slideshow-overlay > div.slide div:first’); // uncomment the 3 lines below to pull the images in random order // var $sibs = $active.siblings(); // var rndNum = Math.floor(Math.random() * $sibs.length ); // var $next = $( $sibs[ rndNum ] ); $active.addClass(‘last-active’); $activeListing.addClass(‘last-active’); $nextListing.css({opacity: 0.0}) .addClass(‘active’) .animate({opacity: 1.0}, 1000, function() { $activeListing.removeClass(‘active last-active’); }); $next.css({opacity: 0.0}) .addClass(‘active’) .animate({opacity: 1.0}, 1000, function() { $active.removeClass(‘active last-active’); }); } $(function() { if(document.location == “https://www.costaricaprofessionalrealestate.com/” || document.location == “file:///Users/steve/Documents/Work/CyberKazoo/2018/07-robert-arcand/template.html” || document.location == “https://www.costaricaprofessionalrealestate.com/Santa_Teresa_Office/page_2689682.html” || document.location == “file:///Users/bookair12/Documents/Work/CostaRicaProfesionals.html” || document.location == “#”) { $(“#header”).addClass(“home-page”); $(“#search-box-wrapper”).addClass(“home-page”); $(“#slideshow-wrapper”).addClass(“home-page”); $(“#slideshow-overlay”).addClass(“home-page”); } else { $(“#slideshow-wrapper”).addClass(“interior-page”); $(“#search-box-sidebar”).addClass(“interior-page”); $(“#drivers-sidebar”).addClass(“interior-page”); } var $x = readCookie(‘langPref’) if ($x==”ES”) { $(“.spanish”).each(function() { $(this).show(); $(“#slideshow-overlay .spanish”).css(‘display’,’flex’) $(“#slideshow-overlay .spanish”).addClass(‘slide’); $(“#slideshow-overlay .spanish > div:first”).addClass(‘active’) $(“.flexnav.spanish”).addClass(‘mobile’) $(“.flexnav.spanish”).css(‘display’,’flex’) $(“.drivers.spanish”).css(‘display’,’flex’) }); } else { $(“.english”).each(function() { $(this).show(); $(“#slideshow-overlay .english”).css(‘display’,’flex’) $(“#slideshow-overlay .english”).addClass(‘slide’) $(“#slideshow-overlay .english > div:first”).addClass(‘active’) $(“.flexnav.english”).addClass(‘mobile’) $(“.flexnav.english”).css(‘display’,’flex’) $(“.drivers.english”).css(‘display’,’flex’) }); } setInterval( “slideSwitch()”, 5000 ); }); ]]>li”),f=d.length,h=100/f,g=h+”%”),c.data(“breakpoint”)&&(e=c.data(“breakpoint”)),l=function(){return c.hasClass(“lg-screen”)===!0&&k.hover===!0?k.transitionOpacity===!0?a(this).find(“>ul”).addClass(“flexnav-show”).stop(!0,!0).animate({height:[“toggle”,”swing”],opacity:”toggle”},k.animationSpeed):a(this).find(“>ul”).addClass(“flexnav-show”).stop(!0,!0).animate({height:[“toggle”,”swing”]},k.animationSpeed):void 0},i=function(){return c.hasClass(“lg-screen”)===!0&&a(this).find(“>ul”).hasClass(“flexnav-show”)===!0&&k.hover===!0?k.transitionOpacity===!0?a(this).find(“>ul”).removeClass(“flexnav-show”).stop(!0,!0).animate({height:[“toggle”,”swing”],opacity:”toggle”},k.animationSpeed):a(this).find(“>ul”).removeClass(“flexnav-show”).stop(!0,!0).animate({height:[“toggle”,”swing”]},k.animationSpeed):void 0},j=function(){var b;if(a(window).width()e){if(c.removeClass(“sm-screen”).addClass(“lg-screen”),k.calcItemWidths===!0&&d.css(“width”,g),c.removeClass(“flexnav-show”).find(“.item-with-ul”).on(),a(“.item-with-ul”).find(“ul”).removeClass(“flexnav-show”),i(),k.hoverIntent===!0)return a(“.item-with-ul”).hoverIntent({over:l,out:i,timeout:k.hoverIntentTimeout});if(k.hoverIntent===!1)$(‘.item-with-ul’).unbind(‘mouseenter’).unbind(‘mouseleave’);return a(“.item-with-ul”).on(“mouseenter”,l).on(“mouseleave”,i)}},a(k.buttonSelector).data(“navEl”,c),n=”.item-with-ul, “+k.buttonSelector,a(n).append(‘▼’),m=k.buttonSelector+”, “+k.buttonSelector+” .touch-button”,a(m).on(“click”,function(b){var c,d,e;return a(m).toggleClass(“active”),b.preventDefault(),b.stopPropagation(),e=k.buttonSelector,c=a(this).is(e)?a(this):a(this).parent(e),d=c.data(“navEl”),d.toggleClass(“flexnav-show”)}),a(“.touch-button”).on(“click”,function(){var b,d;return b=a(this).parent(“.item-with-ul”).find(“>ul”),d=a(this).parent(“.item-with-ul”).find(“>span.touch-button”),c.hasClass(“lg-screen”)===!0&&a(this).parent(“.item-with-ul”).siblings().find(“ul.flexnav-show”).removeClass(“flexnav-show”).hide(),b.hasClass(“flexnav-show”)===!0?(b.removeClass(“flexnav-show”).slideUp(k.animationSpeed),d.removeClass(“active”)):b.hasClass(“flexnav-show”)===!1?(b.addClass(“flexnav-show”).slideDown(k.animationSpeed),d.addClass(“active”)):void 0}),c.find(“.item-with-ul *”).focus(function(){return a(this).parent(“.item-with-ul”).parent().find(“.open”).not(this).removeClass(“open”).hide(),a(this).parent(“.item-with-ul”).find(“>ul”).addClass(“open”).show()}),j(),a(window).on(“resize”,j)}}.call(this); ]]>
Source

Leave a Reply

Your email address will not be published. Required fields are marked *