$(document).ready(function(){$("#linkLogin").click(function(){$("#slide_panel").slideToggle("slow");$(this).toggleClass("active");return false;});$("#recupera_password").click(function(){$.prettyPhoto.open('/RichiestaPassword.aspx?iframe=true&width=400&height=130');});});$(document).ready(function(){$(".tab_content").hide();$("ul.booking li").addClass("sprite");$("ul.booking li").each(function(){if($(this).hasClass('active')){var activeTab=$(this).attr("rel");$(".tab_container ."+activeTab).fadeIn('fast');}});$("ul.booking li").click(function(el){var activeTab=$(this).attr("rel");$("ul.booking li").each(function(){$(this).removeClass();var tab_id=$(this).attr("rel").split("tab");if($(this).attr("rel")==activeTab){$(this).addClass("sprite active_"+tab_id[1]+"_sel").addClass("sprite active");}else{$(this).addClass("sprite active_"+tab_id[1]);}});$(".tab_container .tab_content").hide();$(".tab_container ."+activeTab).fadeIn('fast');return false;});});$(document).ready(function(){$(".tab_content_bottom").hide();$("ul#tab_bottom li:first").addClass("active_1_sel").show();$("#tab_bottom_container .tab_content_bottom:first").show();$("ul.tab_bottom li").click(function(el){var activeTab=$(this).find("a").attr("rel");$("ul.tab_bottom li").removeClass();if(activeTab=="#tab_perchects"){$("ul.tab_bottom li").each(function(){var valore_tab=$(this).find("a").attr("rel");if(valore_tab=="#tab_perchects")
$(this).addClass("active_1_sel sprite");if(valore_tab=="#tab_twitter")
$(this).addClass("active_2 sprite");if(valore_tab=="#tab_facebook")
$(this).addClass("active_3 sprite");});}else if(activeTab=="#tab_twitter"){$("ul.tab_bottom li").each(function(){var valore_tab=$(this).find("a").attr("rel");if(valore_tab=="#tab_perchects")
$(this).addClass("active_1 sprite");if(valore_tab=="#tab_twitter")
$(this).addClass("active_2_sel sprite");if(valore_tab=="#tab_facebook")
$(this).addClass("active_3 sprite");});}else if(activeTab=="#tab_facebook"){$("ul.tab_bottom li").each(function(){var valore_tab=$(this).find("a").attr("rel");if(valore_tab=="#tab_perchects")
$(this).addClass("active_1 sprite");if(valore_tab=="#tab_twitter")
$(this).addClass("active_2 sprite");if(valore_tab=="#tab_facebook")
$(this).addClass("active_3_sel sprite");});}
$("#tab_bottom_container .tab_content_bottom").hide();$("#tab_bottom_container "+activeTab).fadeIn('fast');return false;});});$(function(){$('.datepicker').datepicker({showOn:'button',buttonImage:'/img/calendar.gif',buttonImageOnly:true,buttonText:'Scegli',prevText:'&#x3c;Prec',nextText:'Succ&#x3e;',currentText:'Oggi',monthNames:['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],monthNamesShort:['Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','Set','Ott','Nov','Dic'],dayNames:['Domenica','Luned&#236','Marted&#236','Mercoled&#236','Gioved&#236','Venerd&#236','Sabato'],dayNamesShort:['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],dayNamesMin:['Do','Lu','Ma','Me','Gi','Ve','Sa'],weekHeader:'Sm',dateFormat:'dd-mm-yy',firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:''});});$(document).ready(function(){$('.acc_container').hide();$('.acc_trigger:first').addClass('active').next().show();$('.acc_trigger').click(function(){if($(this).next().is(':hidden')){$('.acc_trigger').removeClass('active').next().slideUp();$(this).toggleClass('active').next().slideDown();}
return false;});});$(document).ready(function(){$(".punti_interesse a[title], .box_eventi a[title]").tooltip({position:['top','center'],offset:[-10,0],effect:"fade",opacity:1.0});});var checkboxHeight="25";var radioHeight="25";var selectWidth="95";document.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: '+selectWidth+'px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>');var Custom={init:function(){var inputs=document.getElementsByTagName("input"),span=Array(),textnode,option,active;for(t=0;t<inputs.length;t++){if((inputs[t].type=="checkbox"||inputs[t].type=="radio")&&inputs[t].className&&inputs[t].className=="styled"){span[t]=document.createElement("span");span[t].className=inputs[t].type;if(inputs[t].checked==true){if(inputs[t].type=="checkbox"){position="0 -"+(checkboxHeight*2)+"px";span[t].style.backgroundPosition=position;}else{position="0 -"+(radioHeight*2)+"px";span[t].style.backgroundPosition=position;}}
inputs[t].parentNode.insertBefore(span[t],inputs[t]);inputs[t].onchange=Custom.clear;if(!inputs[t].getAttribute("disabled")){span[t].onmousedown=Custom.pushed;span[t].onmouseup=Custom.check;}else{span[t].className=span[t].className+=" disabled";}}}
inputs=document.getElementsByTagName("select");for(t=0;t<inputs.length;t++){if(inputs[t].className=="styled"){option=inputs[t].getElementsByTagName("option");active=option[0].childNodes[0].nodeValue;textnode=document.createTextNode(active);for(b=0;b<option.length;b++){if(option[b].selected==true){textnode=document.createTextNode(option[b].childNodes[0].nodeValue);}}
span[t]=document.createElement("span");span[t].className="select";span[t].id="select"+inputs[t].name;span[t].appendChild(textnode);inputs[t].parentNode.insertBefore(span[t],inputs[t]);if(!inputs[t].getAttribute("disabled")){inputs[t].onchange=Custom.choose;}else{inputs[t].onchange=Custom.choose;inputs[t].previousSibling.className=inputs[t].previousSibling.className+=" disabled";}}}
document.onmouseup=Custom.clear;},pushed:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*3+"px";}else if(element.checked==true&&element.type=="radio"){this.style.backgroundPosition="0 -"+radioHeight*3+"px";}else if(element.checked!=true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight+"px";}else{this.style.backgroundPosition="0 -"+radioHeight+"px";}},check:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 0";element.checked=false;}else{if(element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*2+"px";}else{this.style.backgroundPosition="0 -"+radioHeight*2+"px";group=this.nextSibling.name;inputs=document.getElementsByTagName("input");for(t=0;t<inputs.length;t++){if(inputs[t].name==group&&inputs[a]!=this.nextSibling){inputs[t].previousSibling.style.backgroundPosition="0 0";}}}
element.checked=true;}},clear:function(){inputs=document.getElementsByTagName("input");for(var b=0;b<inputs.length;b++){if(inputs[b].type=="checkbox"&&inputs[b].checked==true&&inputs[b].className=="styled"){inputs[b].previousSibling.style.backgroundPosition="0 -"+checkboxHeight*2+"px";}else if(inputs[b].type=="checkbox"&&inputs[b].className=="styled"){inputs[b].previousSibling.style.backgroundPosition="0 0";}else if(inputs[b].type=="radio"&&inputs[b].checked==true&&inputs[b].className=="styled"){inputs[b].previousSibling.style.backgroundPosition="0 -"+radioHeight*2+"px";}else if(inputs[b].type=="radio"&&inputs[b].className=="styled"){inputs[b].previousSibling.style.backgroundPosition="0 0";}}},choose:function(){option=this.getElementsByTagName("option");for(d=0;d<option.length;d++){if(option[d].selected==true){document.getElementById("select"+this.name).childNodes[0].nodeValue=option[d].childNodes[0].nodeValue;}}}}
window.onload=Custom.init;jQuery(document).ready(function(){if(jQuery("#scroll ul li").size()>0){jQuery("#scroll ul").jcarousel({scroll:4});}else{jQuery("#scroll").hide();}});function mycarousel_initCallback(carousel){carousel.buttonNext.bind('click',function(){carousel.startAuto(1);});carousel.buttonPrev.bind('click',function(){carousel.startAuto(0);});carousel.clip.hover(function(){carousel.stopAuto();},function(){carousel.startAuto();});};jQuery(document).ready(function(){jQuery('#testo_int').jcarousel({easing:'easeOutBounce',animation:1000,auto:3,wrap:'last',initCallback:mycarousel_initCallback,scroll:1});});
