isShow=true;function hideSlideShow(){if(isShow){$("#barraslider").hide("slow");isShow=false}}function showSlideShow(){if(!isShow){$("#barraslider").show(2000);isShow=true}}function servicos(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/servicos.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function guiaHotel(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/guiaHotel.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function promocoes(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/promocoes.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function index(){showSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/index.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function nossoMonte(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/nossoMonte.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function alojamento(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/alojamento.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function actividades(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/actividades.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function precario(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/precario.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function comoChegar(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/comoChegar.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})}function contactos(){hideSlideShow();$("#hideShow").hide("slow",function(){$("#hideShow").load("views/contactos.php?lang="+$("#lang").attr("value"),function(){$("#hideShow").show(2000)})})};window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var a=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,a):console.log.apply(console,a))}};(function(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=g.pop();){e[f]=e[f]||h}})((function(){try{console.log();return window.console}catch(a){return window.console={}}})());function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}};$(document).ready(function(){runInicio();if($.browser.msie){$("#notCompatible").attr("style","visibility:visible")}});$(window).load(function(){MM_preloadImages("img/menu_monte_c.png","img/menu_tree_c.png")});function runInicio(){$("#header").load("views/header.php?lang="+$("#lang").attr("value"),function(){$("#topmenu").load("views/topmenu.php?lang="+$("#lang").attr("value"))});$("#logox").load("views/logox.php?lang="+$("#lang").attr("value"),function(){$("#yourSliderId").DDSlider({nextSlide:".slider_arrow_right",prevSlide:".slider_arrow_left",selector:".slider_selector"})});$("#contact_front").load("views/contact_front.php?lang="+$("#lang").attr("value"),function(){$("#promo_pic").load("views/promo_pic.php?lang="+$("#lang").attr("value"))});$("#content_b1").load("views/content_b1.php?lang="+$("#lang").attr("value"));$("#content_b2").load("views/content_b2.php?lang="+$("#lang").attr("value"),function(){$("#datepicker").datepicker({dateFormat:"dd-mm-yy",minDate:new Date()})});$("#hideShow").load("views/index.php?lang="+$("#lang").attr("value"));$("#content_drt").load("views/content_drt.php?lang="+$("#lang").attr("value"));$("#footer_centro").load("views/footer_centro.php?lang="+$("#lang").attr("value"));$("#content_esq").load("views/content_esq.php?lang="+$("#lang").attr("value"))}function langSelect(a){$("#lang").attr("value",a);index();runInicio()}function onlineBooking(){if($("#datepicker").attr("value")!=""){if($("#nnights_input").attr("value")!=""){$("#content_b2").load("views/content_b2.1.php?lang="+$("#lang").attr("value")+"&data="+$("#datepicker").attr("value")+"&ndias="+$("#nnights_input").attr("value"))}else{}}else{}}function onlineBooking2(){if($("#data").attr("value")!=""){if($("#ndias").attr("value")!=""){if($("#nadultos_input").attr("value")!=""&&$("#ncrianca_input").attr("value")!=""){$("#content_b2").load("views/content_b2.2.php?lang="+$("#lang").attr("value")+"&data="+$("#data").attr("value")+"&ndias="+$("#ndias").attr("value")+"&nadultos="+$("#nadultos_input").attr("value")+"&ncrianca="+$("#ncrianca_input").attr("value")+"&tipologia="+$("#tipologia_input :selected").attr("value"))}else{}}else{}}else{}}function onlineBookingFinal(){post_content={emailCliente:$("input#email").attr("value"),dataInicio:$("input#data").attr("value"),nDias:$("input#ndias").attr("value"),nAdultos:$("input#nadultos").attr("value"),nCrianca:$("input#ncrianca").attr("value"),tipologia:$("input#tipologia").attr("value")};$("#content_b2").load("controlers/sendmail.php",post_content)}function newsletter(){$("#news_error").load("controlers/newsletter.php?lang="+$("#lang").attr("value")+"&email="+$("#subsemail").attr("value"))}function hideNotCompatible(){$("#notCompatible").attr("style","visibility:hidden")};
