function loadVideo(playerUrl,autoplay){swfobject.embedSWF(playerUrl+'&rel=1&border=0&fs=1&autoplay='+(autoplay?1:0),'player','600','286','8.0.0',false,false,{allowfullscreen:'true'})}function showMyVideos(data){var feed=data.feed;var entries=feed.entry||[];var html=[''];for(var i=0;i<entries.length;i++){var entry=entries[i];var title=entry.title.$t;var thumbnailUrl=entries[i].media$group.media$thumbnail[0].url;var playerUrl=entries[i].media$group.media$content[0].url;var playerDuration=entries[i].media$group.yt$duration.seconds;var playerDescription=entries[i].media$group.media$description.$t.substr(0,80);html.push('<div onclick="loadVideo(\'',playerUrl,'\', true)"><div class="ContenidoHolderBoxInside_video"><div class="ContenidoBoxInside_video_130"><img src="',thumbnailUrl,'" width="130" height="97"/></div><div class="ContenidoBoxInside_right_video">','<strong>',title,'</strong>','<br />Duration: ',playerDuration,'<br /> Description: ',playerDescription,'<br /> </div></div></div><br>')}html.push('');document.getElementById('videos').innerHTML=html.join('');if(entries.length>0){loadVideo(entries[0].media$group.media$content[0].url,false)}}function convalidacontatti(){if(document.contatti.nome.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO NOME !");document.contatti.nome.focus();return false}document.contatti.nome.value=document.contatti.nome.value.toUpperCase();if(document.contatti.cognome.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO COGNOME !");document.contatti.cognome.focus();return false}document.contatti.cognome.value=document.contatti.cognome.value.toUpperCase();if(document.contatti.professione.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO PROFESSIONE !");document.contatti.professione.focus();return false}document.contatti.professione.value=document.contatti.professione.value.toUpperCase();if(document.contatti.via.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO VIA !");document.contatti.via.focus();return false}document.contatti.via.value=document.contatti.via.value.toUpperCase();if(document.contatti.postcode.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO CAP !");document.contatti.postcode.focus();return false}document.contatti.postcode.value=document.contatti.postcode.value.toUpperCase();if(document.contatti.citta.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO CITTA !");document.contatti.citta.focus();return false}document.contatti.citta.value=document.contatti.citta.value.toUpperCase();if(document.contatti.regione.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO REGIONE !");document.contatti.regione.focus();return false}document.contatti.regione.value=document.contatti.regione.value.toUpperCase();if(document.contatti.email.value.length==false){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO EMAIL !");document.contatti.email.focus();return false}else{document.contatti.email.value=document.contatti.email.value.toLowerCase();var espression=/^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/;var mail=document.contatti.email.value;if(!espression.test(mail)){alert("FORMA EMAIL INSERITA NON VALIDA !");document.contatti.email.focus();return false}}document.contatti.email.value=document.contatti.email.value.toLowerCase();var espression=/^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@email-masking.com/;var espression_due=/^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@uggsrock.com/;var espression_tre=/^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@owlpic.com/;var mail=document.contatti.email.value;if(espression.test(mail)){alert("SUFFISSO EMAIL INSERITA NON VALIDO !");document.contatti.email.focus();return false}if(espression_due.test(mail)){alert("SUFFISSO EMAIL INSERITA NON VALIDO !");document.contatti.email.focus();return false}if(espression_tre.test(mail)){alert("SUFFISSO EMAIL INSERITA NON VALIDO !");document.contatti.email.focus();return false}if(document.contatti.oggetto.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO OGGETTO !");document.contatti.oggetto.focus();return false}document.contatti.oggetto.value=document.contatti.oggetto.value.toUpperCase();if(document.contatti.richiesta.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO RICHIESTA !");document.contatti.richiesta.focus();return false}document.contatti.richiesta.value=document.contatti.richiesta.value.toUpperCase();if(document.contatti.messaggio.value.length==0){alert("ATTENZIONE ! NON HAI COMPILATO IL CAMPO TELEFONO !");document.contatti.messaggio.focus();return false}document.contatti.messaggio.value=document.contatti.messaggio.value.toUpperCase();alert("Grazie per averci contattato, ricevera al piu presto una risposta alla vostra richiesta.")}if(typeof com=="undefined")var com=new Object();if(typeof com.deconcept=="undefined")com.deconcept=new Object();if(typeof com.deconcept.util=="undefined")com.deconcept.util=new Object();if(typeof com.deconcept.FlashObjectUtil=="undefined")com.deconcept.FlashObjectUtil=new Object();com.deconcept.FlashObject=function(swf,id,w,h,ver,c,useExpressInstall,quality,redirectUrl,detectKey){this.DETECT_KEY=detectKey?detectKey:'detectflash';this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(swf)this.setAttribute('swf',swf);if(id)this.setAttribute('id',id);if(w)this.setAttribute('width',w);if(h)this.setAttribute('height',h);if(ver)this.setAttribute('version',new com.deconcept.PlayerVersion(ver.toString().split(".")));if(c)this.addParam('bgcolor',c);var q=quality?quality:'high';this.addParam('quality',q);this.setAttribute('redirectUrl','');if(redirectUrl)this.setAttribute('redirectUrl',redirectUrl);if(useExpressInstall){var expressInstallReqVer=new com.deconcept.PlayerVersion([6,0,65]);var installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion();if(installedVer.versionIsValid(expressInstallReqVer)&&!installedVer.versionIsValid(this.getAttribute('version'))){this.setAttribute('doExpressInstall',true)}}else{this.setAttribute('doExpressInstall',false)}}com.deconcept.FlashObject.prototype.setAttribute=function(name,value){this.attributes[name]=value}com.deconcept.FlashObject.prototype.getAttribute=function(name){return this.attributes[name]}com.deconcept.FlashObject.prototype.getAttributes=function(){return this.attributes}com.deconcept.FlashObject.prototype.addParam=function(name,value){this.params[name]=value}com.deconcept.FlashObject.prototype.getParams=function(){return this.params}com.deconcept.FlashObject.prototype.getParam=function(name){return this.params[name]}com.deconcept.FlashObject.prototype.addVariable=function(name,value){this.variables[name]=value}com.deconcept.FlashObject.prototype.getVariable=function(name){return this.variables[name]}com.deconcept.FlashObject.prototype.getVariables=function(){return this.variables}com.deconcept.FlashObject.prototype.getParamTags=function(){var paramTags="";var key;var params=this.getParams();for(key in params){paramTags+='<param name="'+key+'" value="'+params[key]+'" />'}return paramTags}com.deconcept.FlashObject.prototype.getVariablePairs=function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key])}return variablePairs}com.deconcept.FlashObject.prototype.getHTML=function(){var flashHTML="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}flashHTML+='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'"';var params=this.getParams();for(var key in params){flashHTML+=' '+key+'="'+params[key]+'"'}pairs=this.getVariablePairs().join("&");if(pairs.length>0){flashHTML+=' flashvars="'+pairs+'"'}flashHTML+='></embed>'}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}flashHTML+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'" id="'+this.getAttribute('id')+'">';flashHTML+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var tags=this.getParamTags();if(tags.length>0){flashHTML+=tags}var pairs=this.getVariablePairs().join("&");if(pairs.length>0){flashHTML+='<param name="flashvars" value="'+pairs+'" />'}flashHTML+='</object>'}return flashHTML}com.deconcept.FlashObject.prototype.write=function(elementId){if(this.skipDetect||this.getAttribute('doExpressInstall')||com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute('version'))){if(document.getElementById){if(this.getAttribute('doExpressInstall')){this.addVariable("MMredirectURL",escape(window.location));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}document.getElementById(elementId).innerHTML=this.getHTML()}}else{if(this.getAttribute('redirectUrl')!=""){document.location.replace(this.getAttribute('redirectUrl'))}}}com.deconcept.FlashObjectUtil.getPlayerVersion=function(){var PlayerVersion=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else if(window.ActiveXObject){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");PlayerVersion=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","))}catch(e){}}return PlayerVersion}com.deconcept.PlayerVersion=function(arrVersion){this.major=parseInt(arrVersion[0])||0;this.minor=parseInt(arrVersion[1])||0;this.rev=parseInt(arrVersion[2])||0}com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major)return false;if(this.major>fv.major)return true;if(this.minor<fv.minor)return false;if(this.minor>fv.minor)return true;if(this.rev<fv.rev)return false;return true}com.deconcept.util.getRequestParameter=function(param){var q=document.location.search||document.location.href.hash;if(q){var startIndex=q.indexOf(param+"=");var endIndex=(q.indexOf("&",startIndex)>-1)?q.indexOf("&",startIndex):q.length;if(q.length>1&&startIndex>-1){return q.substring(q.indexOf("=",startIndex)+1,endIndex)}}return""}if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length}}var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;function loadVideo(playerUrl,autoplay){swfobject.embedSWF(playerUrl+'&rel=1&border=0&fs=1&autoplay='+(autoplay?1:0),'player','600','286','8.0.0',false,false,{allowfullscreen:'true'})}function showMyVideos(data){var feed=data.feed;var entries=feed.entry||[];var html=[''];for(var i=0;i<entries.length;i++){var entry=entries[i];var title=entry.title.$t;var thumbnailUrl=entries[i].media$group.media$thumbnail[0].url;var playerUrl=entries[i].media$group.media$content[0].url;var playerDuration=entries[i].media$group.yt$duration.seconds;var playerDescription=entries[i].media$group.media$description.$t.substr(0,80);html.push('<div onclick="loadVideo(\'',playerUrl,'\', true)"><div class="ContenidoHolderBoxInside_video"><div class="ContenidoBoxInside_video_130"><img src="',thumbnailUrl,'" width="130" height="97"/></div><div class="ContenidoBoxInside_right_video">','<strong>',title,'</strong>','<br />Duration: ',playerDuration,'<br /> Description: ',playerDescription,'<br /> </div></div></div><br>')}html.push('');document.getElementById('videos').innerHTML=html.join('');if(entries.length>0){loadVideo(entries[0].media$group.media$content[0].url,false)}}function flickrshow(i,g){if(!(this instanceof flickrshow))return new flickrshow(i,g);var a=this;a.addEvent=function(b,c,d){if(b.addEventListener)b.addEventListener(c,d,false);else if(b.attachEvent){b["e"+c+d]=d;b[c+d]=function(){b["e"+c+d](window.event)};b.attachEvent("on"+c,b[c+d])}};a.addUrl=function(){var b={api_key:"6cb7449543a9595800bc0c365223a4e8",extras:"url_s,url_m,url_z,url_l",format:"json",jsoncallback:"flickrshow_jsonp_"+a.constants.random,license:"1,2,3,4,5,6,7",page:a.settings.page,per_page:a.settings.per_page};if(a.settings.gallery){b.method="flickr.galleries.getPhotos";b.gallery_id=a.settings.gallery}else if(a.settings.group){b.method="flickr.groups.pools.getPhotos";b.group_id=a.settings.group}else if(a.settings.set){b.method="flickr.photosets.getPhotos";b.photoset_id=a.settings.set}else if(a.settings.person){b.method="flickr.people.getPhotosOf";b.user_id=a.settings.person}else if(a.settings.tags||a.settings.user){b.method="flickr.photos.search";if(a.settings.tags)b.tags=a.settings.tags;if(a.settings.user)b.user_id=a.settings.user}else b.method="flickr.photos.getRecent";var c="http://api.flickr.com/services/rest/?";for(var d in b)c+=d+"="+b[d]+"&";return c};a.animate=function(b,c,d,e,f){"undefined"!==typeof a.constants.intervals[f]&&window.clearInterval(a.constants.intervals[f]);a.constants.intervals[f]=window.setInterval(function(){var h=Math.round(b.style[c].replace(/([a-zA-Z]{2})$/,"")),j=Math.round(d-h);if(Math.abs(j)>1)b.style[c]=Math.floor(h+j/2)+"px";else{b.style[c]=d+"px";window.clearInterval(a.constants.intervals[f])}},e/1.5)};a.onClickLeft=function(){if(a.constants.isLoading!==true){a.constants.imageCurrent=a.constants.imageCurrent-1<0?a.constants.imageTotal-1:a.constants.imageCurrent-1;a.animate(a.elements.images,"left","-"+a.constants.imageCurrent*a.elements.target.offsetWidth,a.constants.speed,"i");a.showTitle();typeof a.settings.onMove=="function"&&a.settings.onMove(a.elements.images.childNodes[a.constants.imageCurrent].childNodes[0])}};a.onClickPlay=function(){if(a.constants.isPlaying===false){a.constants.isPlaying=true;a.elements.buttons.childNodes[2].style.backgroundImage="url("+a.constants.base_url+"static/images/is.png)";a.constants.intervals.playing=window.setInterval(function(){a.onClickRight()},a.settings.interval);typeof a.settings.onPlay=="function"&&a.settings.onPlay()}else{a.constants.isPlaying=false;a.elements.buttons.childNodes[2].style.backgroundImage="url("+a.constants.base_url+"static/images/ip.png)";window.clearInterval(a.constants.intervals.playing);typeof a.settings.onPause=="function"&&a.settings.onPause(a.elements.images.childNodes[a.constants.imageCurrent].childNodes[0])}};a.onClickRight=function(){if(a.constants.isLoading!==true){a.constants.imageCurrent=a.constants.imageCurrent+2>a.constants.imageTotal?0:a.constants.imageCurrent+1;a.animate(a.elements.images,"left","-"+a.constants.imageCurrent*a.elements.target.offsetWidth,a.constants.speed,"i");a.showTitle();typeof a.settings.onMove=="function"&&a.settings.onMove(a.elements.images.childNodes[a.constants.imageCurrent].childNodes[0])}};a.onLoadImage=function(b){b=b.srcElement||b.target;var c=b.offsetHeight,d=b.offsetWidth,e=0,f=0;if(d>c){f=Math.ceil(a.elements.target.offsetWidth+a.elements.target.offsetHeight/100);e=Math.ceil(f/d*c)}else{e=Math.ceil(a.elements.target.offsetHeight+a.elements.target.offsetHeight/100);f=Math.ceil(e/c*d)}try{b.style.height=e+"px";b.style.left=Math.round((a.elements.target.offsetWidth-f)/2)+"px";b.style.position="absolute";b.style.top=Math.round((a.elements.target.offsetHeight-e)/2)+"px";b.style.width=f+"px"}catch(h){}a.constants.imageLoaded++;b=Math.round(a.constants.imageLoaded/a.constants.imageTotal*240);a.animate(a.elements.loading.childNodes[0],"width",b<=36?36:b,"loading");if(a.constants.imageLoaded===a.constants.imageTotal){a.showTitle();a.elements.container.removeChild(a.elements.loading);a.elements.images.style.visibility="visible";a.constants.isLoading=false;a.settings.autoplay===true&&a.onClickPlay();typeof a.settings.onLoad=="function"&&a.settings.onLoad()}};a.onLoadJson=function(b){a.elements.script.parentNode.removeChild(a.elements.script);if(b.photoset)b.photos=b.photoset;if(b.stat&&b.stat=="fail"||!b.photos)throw"Flickrshow: "+(b.message||"There was an unknown error with the data returned by Flickr");a.constants.imageTotal=b.photos.photo.length;for(var c in b.photos.photo){var d=document.createElement("img");d.setAttribute("data-flickr-title",b.photos.photo[c].title);d.setAttribute("data-flickr-photo_id",b.photos.photo[c].id);d.setAttribute("data-flickr-user_id",b.photos.photo[c].owner);d.setAttribute("rel",c);d.style.cursor="pointer";d.style.display="block";d.style.margin="0";d.style.padding="0";var e=a.elements.target.offsetHeight*a.elements.target.offsetWidth,f=b.photos.photo[c].height_m*b.photos.photo[c].width_m,h=b.photos.photo[c].height_s*b.photos.photo[c].width_s,j=b.photos.photo[c].height_z*b.photos.photo[c].width_z;if(!b.photos.photo[c].url_s)b.photos.photo[c].url_s=b.photos.photo[c].url_z;if(!b.photos.photo[c].url_m)b.photos.photo[c].url_m=b.photos.photo[c].url_s;if(!b.photos.photo[c].url_l)b.photos.photo[c].url_l=b.photos.photo[c].url_m;d.src=e>f?b.photos.photo[c].url_l+"?"+a.constants.random:e>h?b.photos[c].url_m+"?"+a.constants.random:e>j?b.photos[c].url_s+"?"+a.constants.random:b.photos[c].src_z+"?"+a.constants.random;e=document.createElement("li");e.style.left=c*a.elements.target.offsetWidth+"px";e.style.height=a.elements.target.offsetHeight+"px";e.style.margin="0";e.style.overflow="hidden";e.style.padding="0";e.style.position="absolute";e.style.top="0";e.style.width=a.elements.target.offsetWidth+"px";e.appendChild(d);a.elements.images.appendChild(e);a.addEvent(d,"load",a.onLoadImage)}};a.onLoadWindow=function(){a.elements.target=typeof a.elements.target==="string"?document.getElementById(a.elements.target):a.elements.target;a.elements.target.innerHTML='<div class="flickrshow-container" style="background:transparent;height:'+a.elements.target.offsetHeight+"px;margin:0;overflow:hidden;padding:0;position:relative;width:"+a.elements.target.offsetWidth+'px"><div class="flickrshow-loading" style="background:transparent url('+a.constants.base_url+'static/images/bg.png);border-radius:12px;height:24px;left:50%;margin:-12px 0 0 -120px;overflow:hidden;padding:0;position:absolute;top:50%;width:240px;-moz-border-radius:12px;-webkit-border-radius:12px"><div class="flickrshow-loading-bar" style="background:#000;border-radius:12px;height:24px;left:0;margin:0;padding:0;position:absolute;top:0;width:0;-moz-border-radius:12px;-webkit-border-radius:12px"></div></div><ul class="flickrshow-images" style="background:transparent;height:'+a.elements.target.offsetHeight+"px;left:0;list-style:none;margin:0;padding:0;position:absolute;top:0;visibility:hidden;width:"+a.elements.target.offsetWidth+'px"></ul><div class="flickrshow-buttons" style="background:transparent url('+a.constants.base_url+"static/images/bg.png);height:40px;margin:0;padding:0;position:absolute;top:"+a.elements.target.offsetHeight+"px;width:"+a.elements.target.offsetWidth+'px"><div class="flickrshow-buttons-left" style="background:#000 url('+a.constants.base_url+'static/images/il.png) 50% 50% no-repeat;border-radius:12px;cursor:pointer;height:24px;left:auto;margin:0;padding:0;position:absolute;right:40px;top:8px;width:24px;-moz-border-radius:12px;-webkit-border-radius:12px"></div><div class="flickrshow-buttons-right" style="background:#000 url('+a.constants.base_url+'static/images/ir.png) 50% 50% no-repeat;border-radius:12px;cursor:pointer;height:24px;left:auto;margin:0;padding:0;position:absolute;right:8px;top:8px;width:24px;-moz-border-radius:12px;-webkit-border-radius:12px"></div><div class="flickrshow-buttons-play" style="background:#000 url('+a.constants.base_url+'static/images/ip.png) 50% 50% no-repeat;border-radius:12px;cursor:pointer;height:24px;left:8px;margin:0;padding:0;position:absolute;right:auto;top:8px;width:24px;-moz-border-radius:12px;-webkit-border-radius:12px"></div><p class="flickrshow-buttons-title" style="background:#000;border-radius:12px;color:#FFF;cursor:pointer;font:normal normal 600 11px/24px helvetica,arial,sans-serif;height:24px;left:40px;margin:0;overflow:hidden;padding:0 0;position:absolute;right:auto;text-align:center;text-shadow:none;text-transform:capitalize;top:8px;width:'+(a.elements.target.offsetWidth-112)+'px;-moz-border-radius:12px;-webkit-border-radius:12px">&nbsp;</p></div></div>';a.elements.container=a.elements.target.childNodes[0];a.elements.buttons=a.elements.target.childNodes[0].childNodes[2];a.elements.images=a.elements.target.childNodes[0].childNodes[1];a.elements.loading=a.elements.target.childNodes[0].childNodes[0];if(false===a.settings.hide_buttons){a.addEvent(a.elements.images,"click",a.toggleButtons);a.addEvent(a.elements.container,"mouseover",a.showButtons);a.addEvent(a.elements.container,"mouseout",a.hideButtons);a.addEvent(a.elements.buttons.childNodes[0],"click",a.onClickLeft);a.addEvent(a.elements.buttons.childNodes[1],"click",a.onClickRight);a.addEvent(a.elements.buttons.childNodes[2],"click",a.onClickPlay);a.addEvent(a.elements.buttons.childNodes[3],"click",a.showFlickr)}window["flickrshow_jsonp_"+a.constants.random]=a.onLoadJson;a.elements.script=document.createElement("script");a.elements.script.async=true;a.elements.script.src=a.addUrl("flickrshow_jsonp_"+a.constants.random);(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a.elements.script)};a.hideButtons=function(){if(!(a.constants.isLoading===true||a.constants.isButtonsOpen===false)){a.constants.isButtonsOpen=false;a.animate(a.elements.buttons,"top",a.elements.target.offsetHeight,a.constants.speed,"buttons")}};a.showButtons=function(){if(!(a.constants.isLoading===true||a.constants.isButtonsOpen===true)){a.constants.isButtonsOpen=true;a.animate(a.elements.buttons,"top",a.elements.target.offsetHeight-40,a.constants.speed,"buttons")}};a.toggleButtons=function(){a.constants.isButtonsOpen===true?a.hideButtons():a.showButtons()};a.showFlickr=function(){var b=a.elements.images.childNodes[a.constants.imageCurrent].childNodes[0];if("undefined"!==typeof b)window.location="http://www.flickr.com/photos/"+b.getAttribute("data-flickr-user_id")+"/"+b.getAttribute("data-flickr-photo_id")+"/"};a.showTitle=function(){var b=a.elements.images.childNodes[a.constants.imageCurrent].childNodes[0];if("undefined"!==typeof b)a.elements.buttons.childNodes[3].innerHTML=a.constants.imageCurrent+1+"/"+a.constants.imageTotal+" - "+b.getAttribute("data-flickr-title")};a.constants={base_url:"http://www.flickrshow.com/",intervals:[],imageCurrent:0,imageLoaded:0,imageTotal:0,isButtonsOpen:false,isLoading:true,isPlaying:false,random:Math.floor(Math.random()*999999999999),speed:100};a.elements={buttons:null,button1:null,button2:null,button3:null,button4:null,container:null,images:null,loading:null,script:null,target:null};a.settings={autoplay:false,gallery:null,group:null,hide_buttons:false,interval:3000,onLoad:null,onMove:null,onPlay:null,onPause:null,page:"1",person:null,per_page:"50",set:null,tags:null,user:null};a.elements.target=i;for(var k in a.settings)if("undefined"!==typeof g[k])a.settings[k]=g[k];if("undefined"!==typeof g.flickr_group)a.settings.group=g.flickr_group;if("undefined"!==typeof g.flickr_photoset)a.settings.set=g.flickr_photoset;if("undefined"!==typeof g.flickr_tags)a.settings.tags=g.flickr_tags;if("undefined"!==typeof g.flickr_user)a.settings.user=g.flickr_user;a.addEvent(window,"load",a.onLoadWindow);return{left:a.onClickLeft,right:a.onClickRight,play:a.onClickPlay}}if(typeof window.jQuery!="undefined")window.jQuery.fn.flickrshow=function(i){return new flickrshow(window.jQuery(this)[0],i)};var myfont_face="Verdana";var myfont_size="10";var myfont_color="#000000";var myback_color="#FFFFFF";var mypre_text="Ore: ";var mywidth=300;var my12_hour=0;var myupdate=1;var DisplayDate=1;var ie4=document.all var ns4=document.layers var ns6=document.getElementById&&!document.all var dn="";var mn="";var old="";var DaysOfWeek=new Array(7);DaysOfWeek[0]="Domenica";DaysOfWeek[1]="Lunedi";DaysOfWeek[2]="Martedi";DaysOfWeek[3]="Mercoledi";DaysOfWeek[4]="Giovedi";DaysOfWeek[5]="Venerdi";DaysOfWeek[6]="Sabato";var MonthsOfYear=new Array(12);MonthsOfYear[0]="Gennaio";MonthsOfYear[1]="Febbraio";MonthsOfYear[2]="Marzo";MonthsOfYear[3]="Aprile";MonthsOfYear[4]="Maggio";MonthsOfYear[5]="Giugno";MonthsOfYear[6]="Luglio";MonthsOfYear[7]="Agosto";MonthsOfYear[8]="Settembre";MonthsOfYear[9]="Ottobre";MonthsOfYear[10]="Novembre";MonthsOfYear[11]="Dicembre";var ClockUpdate=new Array(3);ClockUpdate[0]=0;ClockUpdate[1]=1000;ClockUpdate[2]=60000;if(ie4||ns6){document.write('<span id="LiveClockIE" style="width:'+mywidth+'px; background-color:'+myback_color+'"></span>')}else if(document.layers){document.write('<ilayer bgColor="'+myback_color+'" id="ClockPosNS" visibility="hide"><layer width="'+mywidth+'" id="LiveClockNS"></layer></ilayer>')}else{old="true";show_clock()}function show_clock(){if(old=="die"){return}if(ns4)document.ClockPosNS.visibility="show"var Digital=new Date();var day=Digital.getDay();var mday=Digital.getDate();var month=Digital.getMonth();var hours=Digital.getHours();var minutes=Digital.getMinutes();var seconds=Digital.getSeconds();if(mday==1){mn="st"}else if(mday==2){mn="nd"}else if(mday==3){mn="rd"}else if(mday==21){mn="st"}else if(mday==22){mn="nd"}else if(mday==23){mn="rd"}else if(mday==31){mn="st"}if(my12_hour){dn="AM";if(hours>12){dn="PM";hours=hours-12}if(hours==0){hours=12}}else{dn=""}if(minutes<=9){minutes="0"+minutes}if(seconds<=9){seconds="0"+seconds}myclock='';myclock+='<font style="color:'+myfont_color+'; font-family:'+myfont_face+'; font-size:'+myfont_size+'pt;">';myclock+=mypre_text;myclock+=hours+':'+minutes;if((myupdate<2)||(myupdate==0)){myclock+=':'+seconds}myclock+=' '+dn;if(DisplayDate){myclock+=' del '+DaysOfWeek[day]+', '+mday+mn+' '+MonthsOfYear[month]+' 2010'}myclock+='</font>';if(old=="true"){document.write(myclock);old="die";return}if(ns4){clockpos=document.ClockPosNS;liveclock=clockpos.document.LiveClockNS;liveclock.document.write(myclock);liveclock.document.close()}else if(ie4){LiveClockIE.innerHTML=myclock}else if(ns6){document.getElementById("LiveClockIE").innerHTML=myclock}if(myupdate!=0){setTimeout("show_clock()",ClockUpdate[myupdate])}}var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return!a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();TICKER_CONTENT=document.getElementById("TICKER").innerHTML;TICKER_RIGHTTOLEFT=false;TICKER_SPEED=2;TICKER_STYLE="font-family:Arial; font-size:12px; color:#444444";TICKER_PAUSED=false;ticker_start();function ticker_start(){var tickerSupported=false;TICKER_WIDTH=document.getElementById("TICKER").style.width;var img="<img src=ticker_space.gif width="+TICKER_WIDTH+" height=0>";if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("Safari")!=-1){document.getElementById("TICKER").innerHTML="<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'>&nbsp;</SPAN>"+img+"</TD></TR></TABLE>";tickerSupported=true}if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Opera")==-1){document.getElementById("TICKER").innerHTML="<DIV nowrap='nowrap' style='width:100%;'>"+img+"<SPAN style='"+TICKER_STYLE+"' ID='TICKER_BODY' width='100%'></SPAN>"+img+"</DIV>";tickerSupported=true}if(!tickerSupported)document.getElementById("TICKER").outerHTML="";else{document.getElementById("TICKER").scrollLeft=TICKER_RIGHTTOLEFT?document.getElementById("TICKER").scrollWidth-document.getElementById("TICKER").offsetWidth:0;document.getElementById("TICKER_BODY").innerHTML=TICKER_CONTENT;document.getElementById("TICKER").style.display="block";TICKER_tick()}}function TICKER_tick(){if(!TICKER_PAUSED)document.getElementById("TICKER").scrollLeft+=TICKER_SPEED*(TICKER_RIGHTTOLEFT?-1:1);if(TICKER_RIGHTTOLEFT&&document.getElementById("TICKER").scrollLeft<=0)document.getElementById("TICKER").scrollLeft=document.getElementById("TICKER").scrollWidth-document.getElementById("TICKER").offsetWidth;if(!TICKER_RIGHTTOLEFT&&document.getElementById("TICKER").scrollLeft>=document.getElementById("TICKER").scrollWidth-document.getElementById("TICKER").offsetWidth)document.getElementById("TICKER").scrollLeft=0;window.setTimeout("TICKER_tick()",30)}
