// JavaScript Document /** * SWFObject light v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formarly known as FlashObject. The name was changed for * legal reasons. */ function InitPage(){ // eliminazione flick dai link con sfondo if(navigator.userAgent.indexOf('MSIE')!=-1){ var ArrayPropCssContainer= new Array("position","display","width","top","left","right","height","bottom","margin","backgroundImage","backgroundPositionX","backgroundRepeat","backgroundPositionY") //var ArrayPropCssContent= new Array("height","display") var ArrayA= document.getElementById("BoxFotoGallery").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) } } } } } // ie css bug aggiunta pipe a link in basso if(navigator.userAgent.indexOf('MSIE')!=-1){ var UlInPagina=document.getElementsByTagName('ul') for(i=0; i" } } } } } if(typeof deconcept=="undefined"){var deconcept=new Object();} if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();} deconcept.SWFObjectUtil.getPlayerVersion = function(_23,_24){ var _25=new deconcept.PlayerVersion([0,0,0]); if(navigator.plugins&&navigator.mimeTypes.length){ var x=navigator.plugins["Shockwave Flash"]; if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));} } else { try { var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); for(var i=3;axo!=null;i++){ axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); _25=new deconcept.PlayerVersion([i,0,0]); } } catch(e) {} if(_23&&_25.major>_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; _nameArray[numberAdv]="manchette";