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 /** * @author Alexander Farkas * v. 1.02 */ (function($) { $.extend($.fx.step,{ backgroundPosition: function(fx) { if (fx.state === 0 && typeof fx.end == 'string') { var start = $.curCSS(fx.elem,'backgroundPosition'); start = toArray(start); fx.start = [start[0],start[2]]; var end = toArray(fx.end); fx.end = [end[0],end[2]]; fx.unit = [end[1],end[3]]; } var nowPosX = []; nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0]; nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1]; fx.elem.style.backgroundPosition = nowPosX[0]+' '+nowPosX[1]; function toArray(strg){ strg = strg.replace(/left|top/g,'0px'); strg = strg.replace(/right|bottom/g,'100%'); strg = strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2"); var res = strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/); return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]]; } } }); })(jQuery);