function InitPage(){ // eliminazione flick dai link con sfondo se non è fotogallery if((navigator.userAgent.indexOf('MSIE')!=-1)&&(document.location.href.indexOf("/foto/")==-1)){ var ArrayPropCssContainer= new Array("position","display","width","top","left","right","height","bottom","margin","background") //var ArrayPropCssContent= new Array("height","display") var ArrayA= document.getElementsByTagName('a'); //controllo che il metodo sia supportato if(ArrayA[0].currentStyle){ for(i=0;i"+OldNode.currentStyle[ArrayPropCssContainer[CounterStyle]]) if(OldNode.currentStyle[ArrayPropCssContainer[CounterStyle]]){ NewNodeContainer.style[ArrayPropCssContainer[CounterStyle]]=OldNode.currentStyle[ArrayPropCssContainer[CounterStyle]] } } OldNode.parentNode.insertBefore(NewNodeContainer,OldNode) OldNode.style.position="static" OldNode.style.margin="auto" NewNodeContainer.appendChild(OldNode) } } } } } } function SwapBoxTag(IdElemento,IdContainer,NewContainerClass,HiddenTag){ //Path dell'iframe per il conteggio delle pagine var IframePath='/js/PageCounter.html' var ArrayP= document.getElementById(IdContainer).getElementsByTagName('p'); for(i=0;i_23.major){return _25;} if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){ try { _25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); } catch(e) {} } } return _25; }; deconcept.PlayerVersion = function(_29){ this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0; this.minor=parseInt(_29[1])||0; this.rev=parseInt(_29[2])||0; }; // funzione per visualizzare e nascondere due elementi block tramite id function showHide(targetShow,targetHide) { document.getElementById(targetShow).style.display = "block"; document.getElementById(targetHide).style.display = "none"; } // funzione per visualizzare flash senza bordo su ie /*function includeSwf(width,height,src) { document.write ( '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ ''); } */ // funzione per visualizzare flash senza bordo su ie function includeSwf(movie,qs,width,height,img) { var version = deconcept.SWFObjectUtil.getPlayerVersion(); if (version['major'] > 6) { document.write ( '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ ''); } else { document.write ( ''+ ''); } } var _POPUP_FEATURES = 'resizable=yes,location=0,statusbar=0,menubar=0,width=800,height=600,scrollbars=yes'; function raw_popup(url, target, features) { // pops up a window containing url optionally named target, optionally having features if (isUndefined(features)) features = _POPUP_FEATURES; if (isUndefined(target )) target = '_blank'; var theWindow = window.open(url, target, features); theWindow.focus(); return theWindow; } function link_popup(src, features) { // to be used in an html event handler as in: Y) { Z = screen.width / Wf; } else { Z = screen.height / Hf; } document.getElementById("foto").width = Z * Wf - marginW; document.getElementById("foto").height = Z * Hf - marginH; } Wf = document.getElementById("foto").width; Hf = document.getElementById("foto").height; document.getElementById("contenuto").style.width=Wf+4+'px'; document.getElementById("btChiudi").style.left=Wf+'px'; window.moveTo(0,0); window.resizeTo(Wf+52,Hf+136); } /*fine funzioni per animazione NEWS*/ var numberAdv=7; var _nameArray=new Array(); for(var i=1; i<=numberAdv; i++) _nameArray[i-1]="adv"+i; function apriScheda(URL) { if (winPopupScheda && winPopupScheda.open()) //esiste già la finestra popup: gli passo l'URL e gli do il fuoco { winPopupScheda.location=URL; winPopupScheda.focus(); } else { var winPopupScheda; winPopupScheda=window.open(URL,"winPopupScheda","toolbar=no,menubar=no,scrollbars=yes,status=yes,top=50,left=50,height=450,width=700"); winPopupScheda.focus(); } } function gogetit(paese) { if (paese == "") { alert ("Attenzione: seleziona una destinazione.") } else if (paese != "") { document.location.href = paese } }