jQuery(function () { var dropopen = false; jQuery(".dropDownMenu").siblings("select").find("option").each(function () { jQuery(".dropDownMenu").siblings(".dropDownWindowWrapper").find(".dropDownWindowInner").append('<div class="dropDownListItem" value="' + jQuery(this).val() + '">' + jQuery(this).html() + "</div>") }); jQuery(".dropDownMenu").click(function () { var wndHeight = jQuery(this).siblings(".dropDownWindowWrapper").find(".dropDownListItem").outerHeight() * jQuery(this).siblings(".dropDownWindowWrapper").find(".dropDownListItem").size() + 5 + 10; var wnd = jQuery(this).siblings(".dropDownWindowWrapper").stop().animate({ height: wndHeight }, 600, "swing", function () { dropopen = true }) }); jQuery(".dropDownListItem").click(function () { jQuery(this).parents(".dropDownWindowWrapper").siblings(".dropDownMenu").html(jQuery(this).html()); jQuery(this).parents(".dropDownWindowWrapper").siblings('input[type="hidden"]').val(jQuery(this).html()); jQuery(this).parents(".dropDownWindowWrapper").siblings("select").val(jQuery(this).attr("value")); console.log(jQuery(this).attr("value")) }); jQuery(document).click(function () { if (dropopen == true) { jQuery(".dropDownWindowWrapper").stop().animate({ height: 0 }, 600) } dropopen = false }) }); jQuery(function () { jQuery("input.inDate").datepicker(); jQuery("input.outDate").datepicker(); jQuery("img.inDate").click(function () { jQuery("input.inDate").datepicker("show") }); jQuery("img.outDate").click(function () { jQuery("input.outDate").datepicker("show") }) }); jQuery(function () { var dropopens = false; jQuery(".dropDownMenuSmall").click(function () { var wndHeight = jQuery(this).siblings(".dropDownWindowWrapperSmall").find(".dropDownListItemSmall").outerHeight() * jQuery(this).siblings(".dropDownWindowWrapperSmall").find(".dropDownListItemSmall").size() + 5 + 10; var wnd = jQuery(this).siblings(".dropDownWindowWrapperSmall").stop().animate({ height: wndHeight }, 600, "swing", function () { dropopens = true }) }); jQuery(".dropDownListItemSmall").click(function () { jQuery(this).parents(".dropDownWindowWrapperSmall").siblings(".dropDownMenuSmall").html(jQuery(this).html()); jQuery(this).parents(".dropDownWindowWrapperSmall").siblings('input[type="hidden"]').val(jQuery(this).html()) }); jQuery(document).click(function () { if (dropopens == true) { jQuery(".dropDownWindowWrapperSmall").stop().animate({ height: 0 }, 600) } dropopens = false }) }); jQuery(function () { var dropopens = false; jQuery(".dropDownMonthMenu").click(function () { var wndHeight = jQuery(this).siblings(".dropDownWindowWrapper").find(".dropDownListItem").outerHeight() * jQuery(this).siblings(".dropDownWindowWrapper").find(".dropDownListItem").size() + 5 + 10; var wnd = jQuery(this).siblings(".dropDownWindowWrapper").stop().animate({ height: wndHeight }, 600, "swing", function () { dropopens = true }) }); jQuery(".dropDownListItem").click(function () { jQuery(this).parents(".dropDownWindowWrapper").siblings(".dropDownMenu").html(jQuery(this).html()); jQuery(this).parents(".dropDownWindowWrapper").siblings('input[type="hidden"]').val(jQuery(this).html()) }); jQuery(document).click(function () { if (dropopens == true) { jQuery(".dropDownWindowWrapper").stop().animate({ height: 0 }, 600) } dropopens = false }) }); function initScroller() { var scrollBar = jQuery(".bigHighlightBox .tableWrapper .right"); var viewport = jQuery(".bigHighlightBox .tableWrapper .left"); var content = jQuery(".bigHighlightBox .tableWrapper .left table"); var dragKnob = jQuery(".bigHighlightBox .tableWrapper .right .knob"); var dragArea = jQuery(".bigHighlightBox .tableWrapper .left"); if (content.outerHeight() < viewport.outerHeight()) { scrollBar.css("display", "none") } else { scrollBar.css("display", "block"); var viewportHeight = viewport.outerHeight(); var contentHeight = content.outerHeight(); var cst; if (jQuery.browser.safari) { cst = (contentHeight - viewportHeight) / 110 } else { cst = (contentHeight - viewportHeight) / 110 } dragKnob.draggable("destroy"); dragKnob.draggable({ axis: "y", containment: "parent", drag: function (event, ui) { viewport.scrollTop(cst * ui.position.top) }, refreshPositions: true }); viewport.unbind(); viewport.mwheelIntent(function (event, delta) { viewport.stop(); dragKnob.stop(); if (delta > 0) { var knobPos = dragKnob.offset().top - dragArea.offset().top; knobPos -= 25; if (knobPos < 0) { knobPos = 0 } dragKnob.animate({ top: knobPos }, 50, function () { viewport.scrollTop(cst * knobPos) }) } else { var knobPos = dragKnob.offset().top - dragArea.offset().top; knobPos += 25; if (knobPos > 110) { knobPos = 110 } dragKnob.animate({ top: knobPos }, 50, function () { viewport.scrollTop(cst * knobPos) }) } }); var knobPos = dragKnob.offset().top - dragArea.offset().top; dragKnob.animate({ top: knobPos }, 50, function () { viewport.scrollTop(cst * knobPos) }) } } var isTimerEnabled = true; var homepageSSIndex = 0; var hompageSSMaxIndex = jQuery(".hphighlight .imgWrapper img").size(); var highlightSSIndex = 0; var highlightSSMaxIndex = jQuery(".bigHighlightBox .container .sliderWrapper .center .viewport img").size(); function timerHPSSChange() { var navWrapper = jQuery(".hphighlight .navWrapper"); homepageSSIndex++; if (homepageSSIndex > hompageSSMaxIndex) { homepageSSIndex = 0 } jQuery(navWrapper.find(".navItem").get(homepageSSIndex)).click() } function timerHPHHChange() { jQuery(".bigHighlightBox .container .sliderWrapper .right .rightArrow").click() } function switchSlideshowTimer(isEnable) { var navWrapper = jQuery(".hphighlight .navWrapper"); var counterDisplay = jQuery(".bigHighlightBox .container .counterContainer"); isTimerEnabled = isEnable; if (isTimerEnabled == true) { navWrapper.everyTime("7s", "slideTimer", timerHPSSChange, 0); counterDisplay.everyTime("5s", "highlightSlideTimer", timerHPHHChange, 0) } else { navWrapper.stopTime(); counterDisplay.stopTime() } } function SetUpHomepageSlideshow() { var images = jQuery(".hphighlight .imgWrapper img"); var texts = jQuery(".hphighlight .hlTextWrapper .left .container"); var links = jQuery(".hphighlight .hlTextWrapper .right .container"); var navWrapper = jQuery(".hphighlight .navWrapper"); homepageSSIndex = 0; hompageSSMaxIndex = images.size() - 1; images.not(jQuery(images.get(0))).css("opacity", 0); texts.not(jQuery(texts.get(0))).css("opacity", 0); links.not(jQuery(links.get(0))).css("opacity", 0); images.css("display", "block"); for (var i = 1; i <= images.size(); i++) { jQuery('<div class="navItem navItemDefault">' + i + "</div>").insertBefore(navWrapper.find(".clearBoth")) } if (images.size() <= 1) { navWrapper.hide() } navWrapper.find(".navItem").click(function () { var img = jQuery(images.get(0)); var imgtmpheight = img.height(); if (imgtmpheight == 0) { imgtmpheight = 427 } jQuery(".hphighlight .imgWrapper").height(imgtmpheight); jQuery(".hphighlight").height(imgtmpheight); navWrapper.stopTime(); if (isTimerEnabled == true) { navWrapper.everyTime("7s", "slideTimer", timerHPSSChange, 0) } var currentIndex = homepageSSIndex = navWrapper.find(".navItem").index(jQuery(this)); navWrapper.find(".navItem").not(jQuery(navWrapper.find(".navItem").get(currentIndex))).removeClass("navItemActive").addClass("navItemDefault"); jQuery(navWrapper.find(".navItem").get(currentIndex)).removeClass("navItemDefault").addClass("navItemActive"); images.not(jQuery(images.get(currentIndex))).stop().animate({ opacity: 0 }, 1500, "swing"); jQuery(images.get(currentIndex)).animate({ opacity: 1 }, 1500, "swing"); texts.not(jQuery(texts.get(currentIndex))).css("opacity", 0); if (jQuery(texts.get(currentIndex)).attr("dohidden") == "true") { texts.css("display", "none").siblings(".overlay").css("display", "none") } else { texts.css("display", "block").siblings(".overlay").css("display", "block") } jQuery(texts.get(currentIndex)).css("opacity", 1); links.not(jQuery(links.get(currentIndex))).css("opacity", 0).css("display", "none"); jQuery(links.get(currentIndex)).css("display", "block"); var lleft = jQuery(links.get(currentIndex)).find(".left"); var lsep = jQuery(links.get(currentIndex)).find(".sep"); var lright = jQuery(links.get(currentIndex)).find(".right"); if (lleft.attr("dohidden") == "true" && lright.attr("dohidden") == "true") { lleft.css("display", "none"); lsep.css("display", "none"); lright.css("display", "none"); links.css("display", "none").siblings(".overlay").css("display", "none"); links.parents(".hlTextWrapper").width(254); links.parents(".right").width(0) } else { if (lleft.attr("dohidden") == "true") { links.parents(".right").width(195); lleft.css("display", "none"); lsep.css("display", "none"); lright.css("display", "block"); links.css("display", "none").siblings(".overlay").css("display", "block"); jQuery(links.get(currentIndex)).css("display", "block"); lright.parents(".container").width(92).siblings(".overlay").width(102).parents(".right").width(102); lright.parents(".container").parents(".hlTextWrapper").width(361) } else { if (lright.attr("dohidden") == "true") { links.parents(".right").width(195); lleft.css("display", "block"); lright.css("display", "none"); lsep.css("display", "none"); links.css("display", "none").siblings(".overlay").css("display", "block"); jQuery(links.get(currentIndex)).css("display", "block"); lleft.parents(".container").width(92).siblings(".overlay").width(102).parents(".right").width(102); lleft.parents(".container").parents(".hlTextWrapper").width(361) } else { lleft.css("display", "block"); lsep.css("display", "block"); lright.css("display", "block"); links.css("display", "block").siblings(".overlay").css("display", "block"); jQuery(links.get(currentIndex)).width(185).siblings(".overlay").width(195).parents(".right").width(195); links.parents(".hlTextWrapper").width(453) } } } jQuery(links.css("display", "none").get(currentIndex)).css({ opacity: 1, display: "block" }) }); jQuery(navWrapper.find(".navItem").get(0)).click() } function SetUpHighlightSlideshow() { var images = jQuery(".bigHighlightBox .container .sliderWrapper .center .viewport img"); var titles = jQuery(".bigHighlightBox .container .titleContainer .slideShowTitle"); var texts = jQuery(".bigHighlightBox .container .sliderWrapper .center .textViewport .textContainer"); var links = jQuery(".bigHighlightBox .container .linkContainerGhost"); var leftArrow = jQuery(".bigHighlightBox .container .sliderWrapper .left .leftArrow"); var rightArrow = jQuery(".bigHighlightBox .container .sliderWrapper .right .rightArrow"); var counterDisplay = jQuery(".bigHighlightBox .container .counterContainer"); var linkButton = jQuery(".bigHighlightBox .container .dynamicLink"); var highlightSSIndex = -1; var highlightSSMaxIndex = images.size() - 1; images.not(jQuery(images.get(0))).css("opacity", 0); titles.not(jQuery(titles.get(0))).css("opacity", 0); texts.not(jQuery(texts.get(0))).css("opacity", 0); counterDisplay.html("1/" + (highlightSSMaxIndex + 1)); images.each(function () { jQuery(this).css({ top: 0 }) }); titles.css("display", "block"); texts.css("display", "block"); images.css("display", "block"); leftArrow.click(function () { counterDisplay.stopTime(); if (isTimerEnabled == true) { counterDisplay.everyTime("5s", "highlightSlideTimer", timerHPHHChange, 0) } jQuery(images.get(highlightSSIndex)).stop().animate({ opacity: 0 }, 1500, "swing"); jQuery(titles.get(highlightSSIndex)).css("opacity", 0); jQuery(texts.get(highlightSSIndex)).css("opacity", 0); highlightSSIndex--; if (highlightSSIndex < 0) { highlightSSIndex = highlightSSMaxIndex } jQuery(images.get(highlightSSIndex)).stop().animate({ opacity: 1 }, 1500, "swing"); jQuery(titles.get(highlightSSIndex)).css("opacity", 1); jQuery(texts.get(highlightSSIndex)).css("opacity", 1); linkButton.attr("href", jQuery(links.get(highlightSSIndex)).html()); counterDisplay.html((highlightSSIndex + 1) + "/" + (highlightSSMaxIndex + 1)) }); rightArrow.click(function () { counterDisplay.stopTime(); if (isTimerEnabled == true) { counterDisplay.everyTime("5s", "highlightSlideTimer", timerHPHHChange, 0) } jQuery(images.get(highlightSSIndex)).stop().animate({ opacity: 0 }, 1500, "swing"); jQuery(titles.get(highlightSSIndex)).css("opacity", 0); jQuery(texts.get(highlightSSIndex)).css("opacity", 0); highlightSSIndex++; if (highlightSSIndex > highlightSSMaxIndex) { highlightSSIndex = 0 } jQuery(images.get(highlightSSIndex)).stop().animate({ opacity: 1 }, 1500, "swing"); jQuery(titles.get(highlightSSIndex)).css("opacity", 1); jQuery(texts.get(highlightSSIndex)).css("opacity", 1); linkButton.attr("href", jQuery(links.get(highlightSSIndex)).html()); counterDisplay.html((highlightSSIndex + 1) + "/" + (highlightSSMaxIndex + 1)) }); rightArrow.click() } function SetUpHotelSummaryPhotos(id) { var jitem = jQuery("#" + id); var images = jitem.find(".hotelSliderWrapper .hotelSliderCenter .hotelSliderViewport div"); var leftArrow = jitem.find(".hotelSliderWrapper .hotelSliderLeft"); var rightArrow = jitem.find(".hotelSliderWrapper .hotelSliderRight"); var currentIndex = -1; var maxIndex = images.size() - 1; images.not(jQuery(images.get(0))).css("opacity", 0); images.css("display", "block"); leftArrow.click(function () { jQuery(images.get(currentIndex)).stop().animate({ opacity: 0 }, 1500, "swing"); currentIndex--; if (currentIndex < 0) { currentIndex = maxIndex } jQuery(images.get(currentIndex)).stop().animate({ opacity: 1 }, 1500, "swing") }); rightArrow.click(function () { jQuery(images.get(currentIndex)).stop().animate({ opacity: 0 }, 1500, "swing"); currentIndex++; if (currentIndex > maxIndex) { currentIndex = 0 } jQuery(images.get(currentIndex)).stop().animate({ opacity: 1 }, 1500, "swing") }); rightArrow.click() } function InitMessagePopups() { jQuery(".contactInfoPopUp").css({ opacity: 0, display: "none" }); jQuery(".contactInfoWrapper").hover(function () { jQuery(this).parents(".pousadaItem").find(".contactInfoPopUp").stop().animate({ opacity: 1 }, 750, "swing").css("display", "inline-block") }, function () { jQuery(this).parents(".pousadaItem").find(".contactInfoPopUp").stop().animate({ opacity: 0 }, 250, "swing", function () { jQuery(this).css("display", "none") }) }); jQuery(".contactInfoPopUp").hover(function () { jQuery(this).stop().animate({ opacity: 1 }, 550, "swing").css("display", "inline-block") }, function () { jQuery(this).stop().animate({ opacity: 0 }, 250, "swing", function () { jQuery(this).css("display", "none") }) }) } function SetUpPriceTablePopups() { jQuery(".priceTable .popupWrapper .popUpItem").css({ opacity: 0, display: "none" }); jQuery(".priceTable .popupWrapper img").hover(function () { jQuery(this).parent().find(".popUpItem").css("display", "block").stop().animate({ opacity: 1 }, 550, "swing") }, function () { jQuery(this).parent().find(".popUpItem").stop().animate({ opacity: 0 }, 250, "swing", function () { jQuery(this).css("display", "none") }) }) } jQuery(function () { jQuery(".priceBlackBoxWrapper").click(function () { if (jQuery(this).find("a").attr("target") == "_blank") { window.open(jQuery(this).find("a").attr("href")) } else { window.location = jQuery(this).find("a").attr("href") } }).hover(function () { jQuery(this).find(".priceBlackBoxLeft").css("background-image", "url('/sitecollectionimages/backgrounds/priceorangeboxbtnlefthover.png')"); jQuery(this).find(".priceBlackBoxRight").css("background-image", "url('/sitecollectionimages/backgrounds/priceorangeboxbtnrighthover.png')"); jQuery(this).find(".priceBlackBoxInner").css("background-image", "url('/sitecollectionimages/backgrounds/priceorangeboxbtnrepeathover.png')") }, function () { jQuery(this).find(".priceBlackBoxLeft").css("background-image", "url('/sitecollectionimages/backgrounds/priceorangeboxbtnleft.png')"); jQuery(this).find(".priceBlackBoxRight").css("background-image", "url('/sitecollectionimages/backgrounds/priceorangeboxbtnright.png')"); jQuery(this).find(".priceBlackBoxInner").css("background-image", "url('/sitecollectionimages/backgrounds/priceorangeboxbtnrepeat.png')") }).each(function () { jQuery(this).find(".priceBlackBoxInner").width(jQuery(this).find(".left").outerWidth() + jQuery(this).find(".right").outerWidth() + 5) }) }); jQuery(function () { jQuery(".priceDisplay").each(function () { var pWidth = jQuery(this).find(".left").outerWidth() + jQuery(this).find(".right").outerWidth() + 10; jQuery(this).find(".BGinner").width(pWidth); var parent = jQuery(this).parent(".resumeWrapper"); var table = parent.find(".resumeTableWrapper"); table.width(parent.width() - pWidth - 10) }) }); jQuery(function () { jQuery(".okServicosBtnWrapper").hover(function () { jQuery(this).find(".okServicosBtnLeft").css("background-image", "url('/sitecollectionimages/backgrounds/okbtnlefthover.png')"); jQuery(this).find(".okServicosBtnRight").css("background-image", "url('/sitecollectionimages/backgrounds/okbtnrighthover.png')"); jQuery(this).find(".okServicosBtnInner").css("background-image", "url('/sitecollectionimages/backgrounds/okbtnrepeathover.png')") }, function () { jQuery(this).find(".okServicosBtnLeft").css("background-image", "url('/sitecollectionimages/backgrounds/okbtnleft.png')"); jQuery(this).find(".okServicosBtnRight").css("background-image", "url('/sitecollectionimages/backgrounds/okbtnright.png')"); jQuery(this).find(".okServicosBtnInner").css("background-image", "url('/sitecollectionimages/backgrounds/okbtnrepeat.png')") }) }); jQuery(function () { if (window.Shadowbox != undefined) { Shadowbox.path = "_layouts/pousadas/js/shadowbox/"; Shadowbox.init({ modal: true, initialWidth: 0, initialHeight: 1, overlayOpacity: 0.9, animSequence: "wh", displayNav: false, viewportPadding: 1 }) } }); function DisplayErrorWindow(url) { jQuery(document).oneTime("100ms", function () { if (document.getElementById("sb-container") == null) { return DisplayErrorWindow(url) } Shadowbox.open({ content: url, player: "iframe", width: 600, height: 300 }) }) } jQuery(function () { jQuery(".servicosListWrapper").css({ opacity: 0, display: "none" }); jQuery(".servicosGroupWrapper").css({ opacity: 0, display: "none" }); jQuery(".escolherServicosButton").click(function () { jQuery(this).siblings(".servicosGroupWrapper").css("display", "block").stop().animate({ opacity: 1 }, 750, "swing") }); jQuery(".fecharServicosBtn").click(function () { jQuery(this).parents(".servicosGroupWrapper").stop().animate({ opacity: 0 }, 450, "swing", function () { jQuery(this).css("display", "none") }) }); jQuery(".servicosGroup").click(function () { jQuery(".servicosGroup").not(jQuery(this)).removeClass("servicosGroupHover"); jQuery(".servicosListWrapper").not(jQuery(this).parent().find(".servicosListWrapper")).css({ opacity: 0, display: "none" }); jQuery(this).addClass("servicosGroupHover").parent().find(".servicosListWrapper").css("display", "block").stop().animate({ opacity: 1 }, 750, "swing") }); jQuery(".okServicosBtnWrapper").click(function () { jQuery(this).parents(".servicosListWrapper").css({ opacity: 0, display: "none" }).parent().find(".servicosGroup").removeClass("servicosGroupHover") }) }); jQuery(function () { var loginBoxOpened = false; jQuery(".wrap-login .loginBoxWrapper").css({ opacity: 0, display: "none" }); jQuery(".wrap-login a.login-popup-button").click(function (e) { if (loginBoxOpened == false) { jQuery(this).next(".loginBoxWrapper").stop().css("display", "block").animate({ opacity: 1 }, 750, "swing", function () { loginBoxOpened = true }) } e.preventDefault() }); jQuery(".wrap-login .loginBoxWrapper .fecharBtnWrapper").click(function () { jQuery(this).parents(".loginBoxWrapper").stop().animate({ opacity: 0 }, 250, "swing", function () { jQuery(this).css("display", "none"); loginBoxOpened = false }) }) }); jQuery(function () { jQuery(".parceiroItem").click(function () { Shadowbox.open({ content: jQuery(this).find("a").attr("href"), player: ["iframe"], width: 700, height: 520 }) }) }); jQuery(function () { jQuery('input[type="image"].okButtonItem').hover(function () { jQuery(this).attr("src", "/sitecollectionimages/buttons/okbuttonhover.png") }, function () { jQuery(this).attr("src", "/sitecollectionimages/buttons/okbutton.png") }) }); jQuery(function () { jQuery(".promoHighlightSection").each(function () { var section = jQuery(this); var viewport = section.find(".viewport"); var scroller = section.find(".scroller"); var leftClicker = section.find(".left img"); var rightClicker = section.find(".right img"); var promos = scroller.find(".promoHighlightWrapper"); var spacers = scroller.find(".promoHighlightSpacer"); var index = 0; var maxIndex = promos.size() - 3; scroller.width(promos.width() * promos.size() + spacers.width() * spacers.size()); if (scroller.width() <= viewport.width()) { leftClicker.css("opacity", 0).css("display", "none"); rightClicker.css("opacity", 0).css("display", "none") } leftClicker.click(function () { index--; if (index < 0) { index = 0 } scroller.stop().animate({ left: -((promos.width() + spacers.width()) * index) }, 400, "swing") }); rightClicker.click(function () { index++; if (index > maxIndex) { index = maxIndex } scroller.stop().animate({ left: -((promos.width() + spacers.width()) * index) }, 400, "swing") }) }) }); jQuery(function () { var box = jQuery(".promoBigWrapper .msgBoxWrapper"); var overlay = box.find(".overlay"); if (box.width() != null && box.height() != null) { overlay.width(box.width()).height(box.height()) } jQuery(".infoBox .left img").css("opacity", 1) }); function ShowLoginWindow1(loginWindow1Height) { jQuery("#lw1continue input[type=radio]").removeAttr("checked"); jQuery("#lw1login input[type=radio]").attr("checked", "checked"); jQuery(".loginWindow2Wrapper").stop().animate({ height: loginWindow1Height }, 500, "swing") } function HideLoginWindows() { jQuery("#lw1login input[type=radio]").removeAttr("checked"); jQuery("#lw1continue input[type=radio]").attr("checked", "checked"); jQuery(".loginWindow2Wrapper").stop().animate({ height: 0 }, 500, "swing") } jQuery(function () { var loginWindow1Height = jQuery(".loginWindow2").outerHeight(); jQuery(".loginWindow2Wrapper").height(0); if (jQuery("#lw1login input[type=radio][checked]").val() != undefined) { ShowLoginWindow1(loginWindow1Height) } else { if (jQuery("#lw1continue input[type=radio][checked]").val() != undefined) { HideLoginWindows() } } jQuery("#lw1login input").click(function () { ShowLoginWindow1(loginWindow1Height) }); jQuery("#lw1continue input").click(function () { HideLoginWindows() }) }); jQuery(function () { jQuery(".errorMessagePopup").css("opacity", 0).css("display", "none"); var icon = jQuery(".errorWrapper .smallIcon"); icon.hover(function () { var popup = jQuery(this).siblings(".errorMessagePopup"); popup.css("display", "block").animate({ opacity: 1 }, 750, "swing") }, function () { var popup = jQuery(this).siblings(".errorMessagePopup"); popup.animate({ opacity: 0 }, 250, "swing", function () { popup.css("display", "none") }) }) }); jQuery(function () { jQuery(".condicoesWrapper").hide(); jQuery(".codicoesButton").hover(function () { jQuery(this).find(".condicoesWrapper").show() }, function () { jQuery(this).find(".condicoesWrapper").hide() }) }); jQuery(function () { jQuery(".disclaimer-wrapper").hide(); jQuery(".disclaimer-button").hover(function () { jQuery(this).find(".disclaimer-wrapper").show() }, function () { jQuery(this).find(".disclaimer-wrapper").hide() }) }); jQuery(function () { jQuery(".bt-active-lang").click(function (e) { jQuery(".wrap-langs").slideToggle(); e.preventDefault() }) }); jQuery(function () { var accordionheader = jQuery(".accordionheader"); jQuery.each(accordionheader, function (index, item) { var clicker = jQuery(item).find("h2"), toggler = jQuery(item).siblings(".accordiontoggler"), wrapper = toggler.find(".accordionwrapper"); if (toggler.height() == 0) { toggler.data("status", "closed"); clicker.css("background-position", "right 3px") } else { toggler.data("status", "opened"); clicker.css("background-position", "right -16px") } clicker.click(function () { if (toggler.data("status") == "closed") { toggler.data("status", "opened"); clicker.css("background-position", "right -16px"); toggler.stop().animate({ height: wrapper.outerHeight(true) }, 1000) } else { toggler.data("status", "closed"); clicker.css("background-position", "right 3px"); toggler.stop().animate({ height: 0 }, 1000) } }) }) });
