document.observe("dom:loaded",function(){$$(".accordion").each(function(a){new accordion(a.identify(),"li",{selected:0,size:{totalWidth:512,totalHeight:130,minPanelWidth:58,maxPanelWidth:280}})});$$("a").each(function(a){a.observe("click",function(e){var b=this,c=b.readAttribute("rel"),d=b.href.split(window.location.hostname).length>1||b.readAttribute("onClick")!=undefined||b.href.search("javascript")>-1||b.href.search("mailto:")>-1?true:false;if(c=="hs"||c!="go"&&d==false){Event.stop(e);hs.htmlExpand(a,{contentId:"highslide-html"});$("prosegui").href=a}})});new Widget.Fader("foto-mese",pictures.pluck("src"),{beforeFade:displayTitle,fadeInDuration:1,fadeOutDuration:1,displayDuration:5});listPlusObserver();captionObserver();formUtils.init();mapsInitialize()});function listPlusObserver(){$$(".smart-list-plus>a").invoke("observe","click",function(){$(this).next("ul").toggle()})}function captionObserver(){var d="absolute",b=true,a=".caption",c="box-image";if(!$(c))return;$(c).observe("mouseenter",function(){new Effect.Parallel([new Effect.Move(this.down(a),{sync:b,x:0,y:0,mode:d}),new Effect.Opacity(this.down(a),{sync:b,from:1,to:.8})],{duration:.5,queue:{position:"end",scope:"caption",limit:2}})});$(c).observe("mouseleave",function(){new Effect.Parallel([new Effect.Move(this.down(a),{sync:b,x:0,y:258,mode:d}),new Effect.Opacity(this.down(a),{sync:b,from:.8,to:1})],{duration:.2,queue:{position:"end",scope:"caption",limit:2}})})}function mapsInitialize(){var b="mappa-container";if($(b)&&GBrowserIsCompatible()){var a=new GMap2($(b));a.setCenter(new GLatLng(44.1164,10.4092),10);a.setMapType(G_PHYSICAL_MAP);a.setUIToDefault()}}function displayTitle(d,c){var a="foto-descr";if(c){var b=pictures.find(function(a){return d.src.slice(-a.src.length)==a.src});if(b)$(a).update(b.title);else $(a).update("")}};
