(function(){var positionIds=['BACKGROUND_advadagio','WIDELEADERBOARD1_advadagio','WIDELEADERBOARD2_advadagio','HALFPAGE1_advadagio','HALFPAGE2_advadagio'] /**fmt_edidomus_async - v. 2.2 */ if (positionIds.length > 1){ _edidomus.divIdToScale = []; _edidomus.mapContainerWidth = new Map(); _edidomus.mapContentContainer = new Map(); for (var i = 0; i < positionIds.length; i++) { if (document.getElementById(positionIds[i]) !== null) { _edidomus.mapContainerWidth.set(positionIds[i], document.getElementById(positionIds[i]).clientWidth); } } } adagioNOPrint = true; var hostname = document.location.hostname; _edidomus.isScaleToApply = (hostname === "staging.quattroruote.it" || hostname === "www.quattroruote.it"); adagioNOPrint = true; var adagioBCode = '', adagioFormatIndex = 0, async = false, formatAppend = true; var isMpopOverlay = false; // ISTR_ADD var isPopOverlay = false; adagioBCode = ''; adagioContentId = ''; try { /*background*/ isMpopOverlay = isMpopOverlay || ("background" == "mpopoverlay"); // ISTR_ADD isPopOverlay = isPopOverlay || ("background" == "popoverlay"); // ISTR_ADD async = false; formatAppend = true; try{ if ("background" != "background"){ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } } catch(e){} var str = location.href; var patt = new RegExp("//www.montagna.tv/"); var resAutoU = patt.test(str); if(resAutoU) document.getElementById("wrapper").style.marginTop="0px"; if (adagioContentId != ''){ _edidomus.mapContentContainer.set(adagioContentId, positionIds[adagioFormatIndex]); _edidomus.divIdToScale.push(adagioContentId); } }catch(e){console.log("ce "+positionIds[adagioFormatIndex] + " A");} try { if ((positionIds[adagioFormatIndex] != "@BODY") && formatAppend){ if(typeof(async)!='undefined' && async) document.getElementById(positionIds[adagioFormatIndex]).appendChild(adagioBCode); else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML += adagioBCode; } } }catch(e){ console.log("ce: "+positionIds[adagioFormatIndex] + " B");} adagioFormatIndex++; adagioBCode = ''; adagioContentId = ''; try { /*wideleaderboard1*/ isMpopOverlay = isMpopOverlay || ("wideleaderboard1" == "mpopoverlay"); // ISTR_ADD isPopOverlay = isPopOverlay || ("wideleaderboard1" == "popoverlay"); // ISTR_ADD async = false; formatAppend = true; try{ if ("wideleaderboard1" != "background"){ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } } catch(e){} /** Standard Image Banner - v. 1.1 * 669829 */ var adagioContentId="adagioStdImg_669829_1722845795779"; var adagioPath = "//ac.neodatagroup.com/img_uploads/829/88_669829_1_4R_noleggio_auto_960x250.gif".replace("//","//"); var adagioBCode = '
' + '' + 'Clicca!' + '
'; adagioBCode += ''; if (typeof(adagioNOPrint) == "undefined" || adagioNOPrint==null || adagioNOPrint == false) { document.write(adagioBCode); } else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } function waitForElement_669829(adagioContentId){ if(document.getElementById(adagioContentId) != null){ objName=window.activeCheckViewability(669829, 467907, 514803, 50, 1, 88, adagioContentId); } else{ setTimeout(function(){ waitForElement_669829(adagioContentId); },250); } } waitForElement_669829(adagioContentId); if (adagioContentId != ''){ _edidomus.mapContentContainer.set(adagioContentId, positionIds[adagioFormatIndex]); _edidomus.divIdToScale.push(adagioContentId); } }catch(e){console.log("ce "+positionIds[adagioFormatIndex] + " A");} try { if ((positionIds[adagioFormatIndex] != "@BODY") && formatAppend){ if(typeof(async)!='undefined' && async) document.getElementById(positionIds[adagioFormatIndex]).appendChild(adagioBCode); else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML += adagioBCode; } } }catch(e){ console.log("ce: "+positionIds[adagioFormatIndex] + " B");} adagioFormatIndex++; adagioBCode = ''; adagioContentId = ''; try { /*wideleaderboard2*/ isMpopOverlay = isMpopOverlay || ("wideleaderboard2" == "mpopoverlay"); // ISTR_ADD isPopOverlay = isPopOverlay || ("wideleaderboard2" == "popoverlay"); // ISTR_ADD async = false; formatAppend = true; try{ if ("wideleaderboard2" != "background"){ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } } catch(e){} /** Standard Image Banner - v. 1.1 * 670905 */ var adagioContentId="adagioStdImg_670905_1722845795789"; var adagioPath = "//ac.neodatagroup.com/img_uploads/905/88_670905_1_4R_quotazioni_960x250.gif".replace("//","//"); var adagioBCode = '
' + '' + 'Clicca!' + '
'; adagioBCode += ''; if (typeof(adagioNOPrint) == "undefined" || adagioNOPrint==null || adagioNOPrint == false) { document.write(adagioBCode); } else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } function waitForElement_670905(adagioContentId){ if(document.getElementById(adagioContentId) != null){ objName=window.activeCheckViewability(670905, 467907, 514805, 50, 1, 88, adagioContentId); } else{ setTimeout(function(){ waitForElement_670905(adagioContentId); },250); } } waitForElement_670905(adagioContentId); if (adagioContentId != ''){ _edidomus.mapContentContainer.set(adagioContentId, positionIds[adagioFormatIndex]); _edidomus.divIdToScale.push(adagioContentId); } }catch(e){console.log("ce "+positionIds[adagioFormatIndex] + " A");} try { if ((positionIds[adagioFormatIndex] != "@BODY") && formatAppend){ if(typeof(async)!='undefined' && async) document.getElementById(positionIds[adagioFormatIndex]).appendChild(adagioBCode); else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML += adagioBCode; } } }catch(e){ console.log("ce: "+positionIds[adagioFormatIndex] + " B");} adagioFormatIndex++; adagioBCode = ''; adagioContentId = ''; try { /*halfpage1*/ isMpopOverlay = isMpopOverlay || ("halfpage1" == "mpopoverlay"); // ISTR_ADD isPopOverlay = isPopOverlay || ("halfpage1" == "popoverlay"); // ISTR_ADD async = false; formatAppend = true; try{ if ("halfpage1" != "background"){ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } } catch(e){} /** Standard Image Banner - v. 1.1 * 676484 */ var adagioContentId="adagioStdImg_676484_1722845795793"; var adagioPath = "//ac.neodatagroup.com/img_uploads/484/88_676484_1_QRT_300X600_72DPI.gif".replace("//","//"); var adagioBCode = '
' + '' + 'Clicca!' + '
'; adagioBCode += ''; if (typeof(adagioNOPrint) == "undefined" || adagioNOPrint==null || adagioNOPrint == false) { document.write(adagioBCode); } else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } function waitForElement_676484(adagioContentId){ if(document.getElementById(adagioContentId) != null){ objName=window.activeCheckViewability(676484, 467907, 519175, 50, 1, 88, adagioContentId); } else{ setTimeout(function(){ waitForElement_676484(adagioContentId); },250); } } waitForElement_676484(adagioContentId); if (adagioContentId != ''){ _edidomus.mapContentContainer.set(adagioContentId, positionIds[adagioFormatIndex]); _edidomus.divIdToScale.push(adagioContentId); } }catch(e){console.log("ce "+positionIds[adagioFormatIndex] + " A");} try { if ((positionIds[adagioFormatIndex] != "@BODY") && formatAppend){ if(typeof(async)!='undefined' && async) document.getElementById(positionIds[adagioFormatIndex]).appendChild(adagioBCode); else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML += adagioBCode; } } }catch(e){ console.log("ce: "+positionIds[adagioFormatIndex] + " B");} adagioFormatIndex++; adagioBCode = ''; adagioContentId = ''; try { /*halfpage2*/ isMpopOverlay = isMpopOverlay || ("halfpage2" == "mpopoverlay"); // ISTR_ADD isPopOverlay = isPopOverlay || ("halfpage2" == "popoverlay"); // ISTR_ADD async = false; formatAppend = true; try{ if ("halfpage2" != "background"){ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } } catch(e){} /** Standard Image Banner - v. 1.1 * 670051 */ var adagioContentId="adagioStdImg_670051_1722845795800"; var adagioPath = "//ac.neodatagroup.com/img_uploads/51/88_670051_1_BANNER_DRT_USATO_GI_02.gif".replace("//","//"); var adagioBCode = '
' + '' + 'Clicca!' + '
'; adagioBCode += ''; if (typeof(adagioNOPrint) == "undefined" || adagioNOPrint==null || adagioNOPrint == false) { document.write(adagioBCode); } else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML = ""; } function waitForElement_670051(adagioContentId){ if(document.getElementById(adagioContentId) != null){ objName=window.activeCheckViewability(670051, 467907, 519177, 50, 1, 88, adagioContentId); } else{ setTimeout(function(){ waitForElement_670051(adagioContentId); },250); } } waitForElement_670051(adagioContentId); if (adagioContentId != ''){ _edidomus.mapContentContainer.set(adagioContentId, positionIds[adagioFormatIndex]); _edidomus.divIdToScale.push(adagioContentId); } }catch(e){console.log("ce "+positionIds[adagioFormatIndex] + " A");} try { if ((positionIds[adagioFormatIndex] != "@BODY") && formatAppend){ if(typeof(async)!='undefined' && async) document.getElementById(positionIds[adagioFormatIndex]).appendChild(adagioBCode); else{ document.getElementById(positionIds[adagioFormatIndex]).innerHTML += adagioBCode; } } }catch(e){ console.log("ce: "+positionIds[adagioFormatIndex] + " B");} adagioFormatIndex++; if(!isMpopOverlay && !isPopOverlay){ // ISTR_ADD var event = document.createEvent("Event"); event.initEvent('noAdvMpopoverlay',true,false); document.dispatchEvent(event); } if (_edidomus.isScaleToApply && positionIds.length > 1){ _edidomus.applyScale(); window.addEventListener("resize", _edidomus.scalingResizeHandler); } })()