function aprifincent(theURL, Name, popW, popH, scroll) { var winleft = (screen.width - popW) / 2; var winUp = (screen.height - popH) / 2; winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll Win = window.open(theURL, Name, winProp) } function showmap(a,b,c,w,h) { var obj = document.getElementById(a); var iframeObj = document.getElementById(b); if( obj.className == "show" ) { obj.className = "hide"; iframeObj.src = ''; } else { obj.className = "show"; iframeObj.src = c; iframeObj.width=w; iframeObj.height=h; } } function refreshcombo(selezionata,num){ ar_BA=new Array(); ar_BR=new Array(); ar_FG=new Array(); ar_LE=new Array(); ar_TA=new Array(); ar_BA[0]=new Option(''); ar_BR[0]=new Option(''); ar_FG[0]=new Option(''); ar_LE[0]=new Option(''); ar_TA[0]=new Option(''); if(selezionata=="BA")array_rif=ar_BA; if(selezionata=="BR")array_rif=ar_BR; if(selezionata=="FG")array_rif=ar_FG; if(selezionata=="LE")array_rif=ar_LE; if(selezionata=="TA")array_rif=ar_TA; if(num==1) { document.formricercavacanze.comunecerca1.options.length = 0; for(i=0;i $(document).ready(function() { $('#myForm').ajaxForm({ target : '#log', success: function() { $('#log').fadeIn('slow'); } }); //Fancybox $("a.img").fancybox({ 'overlayShow': true }); $("a#svideo").fancybox({ 'overlayShow': true, 'hideOnContentClick': false }); /* $('#home a') .css( {backgroundPosition: "0 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(0 -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:200, complete:function(){ }}) }); $('#chisiamo a') .css( {backgroundPosition: "-93px 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(-93px -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(-93px 0)"}, {duration:200, complete:function(){ }}) }); $('#produzioni a') .css( {backgroundPosition: "-232px 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(-232px -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(-232px 0)"}, {duration:200, complete:function(){ }}) }); $('#stagioni a') .css( {backgroundPosition: "-386px 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(-386px -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(-386px 0)"}, {duration:200, complete:function(){ }}) }); $('#laboratori a') .css( {backgroundPosition: "-521px 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(-521px -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(-521px 0)"}, {duration:200, complete:function(){ }}) }); $('#contatti a') .css( {backgroundPosition: "-671px 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(-671px -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(-671px 0)"}, {duration:200, complete:function(){ }}) }); $('#links a') .css( {backgroundPosition: "-812px 0"} ) .mouseover(function(){ $(this).stop().animate({backgroundPosition:"(-812px -42px)"}, {duration:200}) }) .mouseout(function(){ $(this).stop().animate({backgroundPosition:"(-812px 0)"}, {duration:200, complete:function(){ }}) }); */ });