Advertisement
anatolionobre

INTRO

Jan 29th, 2013
657
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <img src="%%VIEW_URL_UNESC%%" width="1" height="1" style="display:none"/>
  3.  
  4. <script type="text/javascript">
  5.  
  6. if(typeof DFP_intro === "undefined"){
  7. var DFP_intro =   {
  8.  
  9.  
  10.                 timerAutoClose: "20", //Segundos até fechar automaticamente
  11.                 width: "800", //largura da layer
  12.                 height: "600", //altura da layer
  13.                 tempoDelayFechar: 4, //tempo de delay do botão de fechar, em segundos
  14.                                 clickoverlay: false, //true para gerar layer de click por cima do flash
  15.                                 vidID: "0", //no caso de ser Intro Video, colocar o id do video que consta no BO IOL
  16.                                 iframe: false, //true no caso de ser indicado um url/iframe no material a servir
  17.                                 imagem: false, //true no caso de ser servida uma imagem, tem de ser incluída a imagem no campo fallback, abaixo
  18.                                 material: "%%FILE:SWF1%%",
  19.                                 fallback: "",
  20.                
  21.                 mode: "transparent", //alterar por transparent, se desejado
  22.                 distanciaTopo: "80", //distância desde o topo da janela
  23.                 distanciaLeft: "0", //Posição horizontal 0 = centrado
  24.                
  25.                
  26.                destUrl: "%%CLICK_URL_ESC%%%%DEST_URL%%",
  27.                                
  28.                                 dynamicUrl: false, //ativa a substituição dinâmica da string tvi pelo site onde passa a pub
  29.                                
  30.                                 getDynamicUrl: function(){
  31.                                         var hostDfp = String(window.location.host).replace('www.', '');
  32.                                         if (hostDfp.indexOf("iol") >-1) {
  33.                                                 //Tem dominio IOL
  34.                                                 //é o IOl.pt?
  35.                                                 if(hostDfp.split(".")[0] ==="iol") {
  36.                                                         return "iol.pt";
  37.                                                 }else{
  38.                                                         return hostDfp.split(".")[0];
  39.                                                 }
  40.                                         }else {
  41.                                         //fora do domínio IOL -> retorna dominio
  42.                                                 return hostDfp.split(".")[0];
  43.                                         };
  44.                                 },
  45.                                
  46.                                 click: function () {
  47.                                         if(DFP_intro.dynamicUrl){
  48.                                          return DFP_intro.destUrl.replace(/tvi/gi,DFP_intro.getDynamicUrl());
  49.                                         }else{
  50.                                         return "%%CLICK_URL_ESC%%%%DEST_URL%%";
  51.                                         }
  52.                                
  53.                                 },
  54.                                
  55.                                
  56.                 utm_campaign_value: 'qem', //nome da campanha, promoção, produto etc
  57.                 utm: false, //alterar para false se não queremos por algum motivo usar utm
  58.                 utm_medium_value: 'display', //nome do veículo/medium (banner, email, ppc, etc)
  59.                 dfpmacro: "%%CLICK_URL_ESC%%",
  60.                 pre_utm_build: function () {if(this.click.indexOf('?') > -1){return '%26';}else{return '?'}},  
  61.                 utm_content_value: function(){return this.width+'x'+this.height}, //nome/variação do ad
  62.                 utm_source_value: document.domain, //default is document value
  63.                 utm_build: function(){return this.pre_utm_build()+'utm_source%3D'+this.utm_source_value+'%26utm_medium%3D'+this.utm_medium_value+'%26utm_content%3D'+this.utm_content_value()+'%26utm_campaign%3D'+this.utm_campaign_value+''},
  64.                 zclk: function(){if(this.utm){return this.dfpmacro+this.click+this.utm_build()}else{return this.click}},
  65.                 debug: function(m){try{console.log("ADSERVER DEBUG POS: "+m)}catch(e){}},
  66.                 swfOurl: "http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",
  67.                 validate: function (param, default_value){
  68.                         if (param == ""){param = default_value}
  69.                         return param;
  70.                 },
  71.                 getEl: function (i){return document.getElementById(i)},
  72.                 pixel: function(p) {
  73.                         if(p){
  74.                                 img = new Image(1,1)
  75.                                 img.src = DFP_intro.srcMacro(p);
  76.                                 img.style.display="none";
  77.                                 return img;
  78.                         }
  79.                 },
  80.                 Image: function(file, selector, w, h, click){
  81.                         if(!click){click = unescape(DFP_intro.zclk())}
  82.                         DFP_intro.getEl(selector).innerHTML='<a href="'+DFP_intro.click()+'" target="_blank"><img src="'+file+'" alt="" width="'+w+'" height="'+h+'" border="0" /></a>';
  83.                 },
  84.  
  85.                 iframeScript3rd: function(container, src, w, h, beacon){
  86.                         var t;
  87.                         src.indexOf("bs.serving-sys.com")>-1 ? t = DFP_intro.ebIfrm : t= DFP_intro.Ifrm3rd;
  88.                         DFP_intro.iframeGen(DFP_intro.srcMacro(t+escape(src)), container, w, h);
  89.                 },
  90.                 iframeGen: function(src, container, w, h) {
  91.                         var zcont='<IFRAME SRC="'+src+'" WIDTH="'+w+'" HEIGHT="'+h+'" MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no"></iframe>';
  92.                         if (document.getElementById(container)){
  93.                                 document.getElementById(container).innerHTML = zcont;
  94.                         }else{try{console.log("Adserver_Error: I'm trying to append content to an inexistent container: tag id: 223");}catch(e){};}
  95.                 },
  96.                 Banner: function(file, selector, w1, h1, mode, click){
  97.                         var r=Math.floor(Math.random()*110);
  98.                         DFP_intro.domSwf("temp"+r, selector);
  99.                         DFP_intro.gen(file, "temp"+r, w1, h1, mode, click);
  100.                 },
  101.                
  102.                
  103.                 FecharBtn: function () {
  104.                         DFP_intro.debug("[DFP] - Intro Close Button init");
  105.                                                
  106.                                                 dad = document.getElementById("IntroWrapper223");
  107.                                                 son = document.createElement("div");
  108.                                                 son.innerHTML = "<div id='intro_close' style='width: 100%; height: 50px;  margin: 2px auto; text-align:center'><div style='  width: 230px; height:50px; cursor:pointer; margin:0px 0px 0px auto;'><img alt='close' src='http://newsl.iol.pt//pub/resources/introv1/generico_c.png' /></div></div>";
  109.                                                 dad.insertBefore(son, dad.firstChild);
  110.                                                
  111.      
  112.                                                 document.getElementById('intro_close').onclick = function(e){
  113.                                                         DFP_intro.mycounter('IntroWrapper', 'destroy');
  114.                                                         e.stopPropagation();
  115.                                                 };
  116.          
  117.  
  118.                
  119.                 },
  120.                
  121.        
  122.        
  123.                         preventDefault: function (e) {
  124.                                   e = e || window.event;
  125.                                 if (e.preventDefault)
  126.                                   e.preventDefault();
  127.                                 e.returnValue = false;  
  128.                         },
  129.                
  130.                
  131.                 wheel: function (e) {
  132.                                 DFP_intro.preventDefault(e);
  133.                
  134.                         },
  135.                
  136.                 DisableScroll: function (){
  137.                         document.body.style.overflow = 'hidden';
  138.                         document.getElementsByTagName("html")[0].style.overflow ='hidden';
  139.                         window.scrollTo(0, 0);
  140.  
  141.                        
  142.                         if (typeof jwplayer != "undefined") {
  143.                                 if (typeof jwplayer() === "object") {
  144.                                         if (jwplayer().hasOwnProperty("setVolume") ) {
  145.                                         jwplayer().setVolume("0")
  146.                                         }
  147.                                 };    
  148.                         };
  149.                        
  150.                        
  151.                                   if (window.addEventListener) {
  152.                                           window.addEventListener('DOMMouseScroll', this.wheel, false);
  153.                                   }
  154.                                   window.onmousewheel = document.onmousewheel = this.wheel;
  155.                                   document.ontouchmove = function(e){
  156.                                                 e.preventDefault();
  157.                                    };
  158.  
  159.                 },
  160.        
  161.  
  162.                 EnableScroll: function (){
  163.                         document.body.style.overflow = 'visible';
  164.                         document.getElementsByTagName("html")[0].style.overflow ='visible';
  165.                          
  166.                                 if (typeof jwplayer != "undefined") {
  167.                                         if (typeof jwplayer() === "object") {
  168.                                                 if (jwplayer().hasOwnProperty("setVolume") ) {
  169.                                                 jwplayer().setVolume("25")
  170.                                                 }
  171.                                         };    
  172.                                 };
  173.                          
  174.                                 if (window.removeEventListener) {
  175.                                 window.removeEventListener('DOMMouseScroll', this.wheel, false);
  176.                         }
  177.                         window.onmousewheel = document.onmousewheel = document.onkeydown = null;  
  178.                          document.ontouchmove = function(e){
  179.                          return true;
  180.                    }
  181.                        
  182.  
  183.                 },
  184.                
  185.        
  186. Layer: function(who, w1, h1, top, left, counter){
  187.                                                
  188.                                                 if(document.getElementById("MPU1"))document.getElementById("MPU1").style.display ='none';
  189.                                                 if(document.getElementById("LDB1"))document.getElementById("LDB1").style.display ='none';
  190.                                                 DFP_intro.DisableScroll();
  191.                         DFP_intro.domSwf("IntroWrapper", who, "first", "100%", "100%");
  192.                         var a = DFP_intro.getEl("IntroWrapper");
  193.                         a.style.margin = "auto";
  194.                         a.style.width = "100%";
  195.                         a.style.height = "100%";
  196.                         a.style.top = "0px";
  197.                                                 a.style.left = "0px";
  198.                         a.style.position = "fixed";
  199.                         a.style.zIndex= "10000";
  200.                         a.style.overflow = "visible";
  201.                         a.style.backgroundColor = "#fff";
  202.                         DFP_intro.domSwf("IntroWrapper223", "IntroWrapper", "first", w1, "0");
  203.                         var a = DFP_intro.getEl("IntroWrapper223");
  204.                         a.style.margin = "auto";
  205.                         a.style.width = w1+"px";
  206.                         a.style.position = "relative";
  207.                         a.style.zIndex= "9999";
  208.                         a.style.overflow = "visible";
  209.                         DFP_intro.domSwf("IntroDiv", "IntroWrapper223", "first", w1, h1);
  210.                         var b = document.getElementById("IntroDiv");
  211.                         b.style.position = "absolute";
  212.                         b.style.top = top+"px";
  213.                         b.style.left = left+"px";
  214.                         b.style.zIndex = "9998";
  215.                         b.style.overflow = "visible";
  216.                         DFP_intro.domSwf("zahirLayer2223", "IntroDiv", "first", w1, h1);
  217.  
  218.                         setTimeout (function check_barraIOL () {
  219.                                                
  220.                                                         if (document.getElementById("barraIOL")) {
  221.                                                                         document.getElementById("barraIOL").style.display = 'none';
  222.                                                                 }else {
  223.                                                                         setTimeout (check_barraIOL, 300);
  224.                                                           }  
  225.                                                         },
  226.                                                 300);
  227.                                                                        
  228.                         setTimeout("DFP_intro.FecharBtn()", DFP_intro.tempoDelayFechar * 1000);
  229.                        
  230.                        
  231.                        
  232.                         if(counter){
  233.                         counter= counter * 1000;
  234.                         setTimeout("DFP_intro.mycounter('IntroWrapper', 'destroy')", counter);
  235.                         }
  236.                                                
  237.                                                
  238.                                         if ((DFP_intro.clickoverlay) && (document.getElementById("IntroDiv"))){
  239.                                                
  240.                                                                
  241.                                                 dad = document.getElementById("IntroDiv");
  242.                                                 son = document.createElement("div");
  243.                                                 son.innerHTML = "<div id='overlay_click' style='cursor:pointer; position:absolute; top: 0px; right: 0px; z-index 10001; width: 800px; cursor:pointer; height:600px'><img src='http://s0.2mdn.net/dot.gif' height='600' width='800'/></div>";
  244.                                                 dad.insertBefore(son, dad.firstChild);
  245.                                                
  246.                                                 document.getElementById('overlay_click').onclick = function(e){
  247.                                                         window.open(DFP_intro.click());
  248.                                                         e.stopPropagation();
  249.                                                 }
  250.  
  251.                                         };
  252.                                                
  253.                                                
  254.                 },
  255.                 domSwf: function(el, who, where, w, h ){
  256.                         var newEl = document.createElement("div");
  257.                         newEl.id = el;
  258.                         if (who == "body"){
  259.                                 var y = document.getElementsByTagName('body')[0];
  260.                         }else{
  261.                                 var y = document.getElementById (who);
  262.                         }
  263.                         if(where == "first"){
  264.                                 y.insertBefore(newEl, y.firstChild);
  265.                         }else{
  266.                                 y.appendChild(newEl);
  267.                         }
  268.                 },
  269.                                
  270.                 getAd: function(file, selector, w1, h1, mode, click){
  271.                                         DFP_intro.Layer("body", DFP_intro.width, DFP_intro.height, DFP_intro.distanciaTopo, DFP_intro.distanciaLeft , DFP_intro.timerAutoClose);
  272.                                                
  273.                         var t = setInterval(function() {
  274.                                 if (typeof swfobject != "undefined") {
  275.                                                                             clearInterval(t);
  276.                                         t = null;
  277.                                                                          
  278.                                         if (swfobject.hasFlashPlayerVersion("8.0.0")) {
  279.                                                                                 DFP_intro.debug("[DFP_intro] - Has flash -> getAd()")
  280.                                                                                
  281.                                                 if(!click){click = DFP_intro.click()}
  282.                                                                                                
  283.                                                 var flashvars = {
  284.                                                         ad: "DFP_intro.AS2JS223",
  285.                                                                                                                 vidID: DFP_intro.vidID,
  286.                                                         clickTag: click,
  287.                                                         clickTAG: click,
  288.                                                         clicktag: click
  289.                                                 }
  290.                                                 var params = {
  291.                                                         menu: "false",
  292.                                                         quality: "high",
  293.                                                         wmode: mode,
  294.                                                         AllowScriptAccess: "always"
  295.                                                 }
  296.                                                 var attributes = {id: selector}
  297.                                                 swfobject.embedSWF(file, selector, w1, h1, "8.0.0", "", flashvars, params, attributes);
  298.                                         }else{
  299.                                                                                                 DFP_intro.debug("[DFP_intro] - No flash -> getAd()");
  300.                                                                                 }
  301.  
  302.                                 }
  303.                         }, 250);
  304.                 },
  305.                 load: function (what) {
  306.                         var head = document.getElementsByTagName("head")[0];
  307.                         var script = document.createElement("script");
  308.                         script.type = "text/javascript";
  309.                         script.src = what;
  310.                         head.appendChild(script);
  311.                 },
  312.                 gen: function(file, selector, w1, h1, mode, click){
  313.                                
  314.                                 if (DFP_intro.iframe) {
  315.                                         DFP_intro.Layer("body", DFP_intro.width, DFP_intro.height, DFP_intro.distanciaTopo, DFP_intro.distanciaLeft , DFP_intro.timerAutoClose);
  316.                                         DFP_intro.iframeGen(file, "IntroDiv", DFP_intro.width, DFP_intro.height);
  317.                                
  318.                                 }else{
  319.                                
  320.                                         if (!DFP_intro.isMobile()) {
  321.  
  322.                                                 if((DFP_intro.fallback != "") && (DFP_intro.fallback)){
  323.                                                         DFP_intro.Layer("body", DFP_intro.width, DFP_intro.height, DFP_intro.distanciaTopo, DFP_intro.distanciaLeft , DFP_intro.timerAutoClose);
  324.                                                         DFP_intro.Image(DFP_intro.fallback, "zahirLayer2223", DFP_intro.width, DFP_intro.height);
  325.                                                 }else {
  326.                                                         if (typeof swfobject != "undefined") {
  327.                                                                         DFP_intro.getAd(file, selector, w1, h1, mode, click);
  328.                                                         }else{
  329.                                                                         DFP_intro.load(DFP_intro.swfOurl);
  330.                                                                         DFP_intro.getAd(file, selector, w1, h1, mode, click);
  331.                                                         };
  332.                                                 }      
  333.                                        
  334.                                         }else{ //mobile
  335.                                                
  336.                                                 if(DFP_intro.fallback != ""){
  337.                                                         DFP_intro.Layer("body", DFP_intro.width, DFP_intro.height, DFP_intro.distanciaTopo, DFP_intro.distanciaLeft , DFP_intro.timerAutoClose);
  338.                                                         DFP_intro.Image(DFP_intro.fallback, "zahirLayer2223", DFP_intro.width, DFP_intro.height);
  339.                                                 };
  340.                                        
  341.                                         }
  342.                                
  343.  
  344.                                         };
  345.                 },
  346.                 srcMacro: function (src){
  347.                         var ord=Math.floor(Math.random()*10001)
  348.                         if(src.indexOf("rand")>-1){src= src.replace(/rand/gi, ord);}
  349.                         //if(src.indexOf("click")>-1){src= src.replace(/click/gi, DFP_intro.zclk());}
  350.                         return src;
  351.                 },    
  352.                                
  353.                 mycounter: function(who, what){
  354.                 if (document.getElementById(who)){
  355.                                 switch(what){
  356.                                         case "destroy":
  357.                                                                                         var el = document.getElementById(who);
  358.                                                                                         el.parentNode.removeChild(el);
  359.                                                                                         document.getElementsByTagName("html")[0].style.overflow ='visible';
  360.                                                                                         DFP_intro.EnableScroll();      
  361.                                                                                         if(document.getElementById("MPU1"))document.getElementById("MPU1").style.display ='block';
  362.                                                                                         if(document.getElementById("LDB1"))document.getElementById("LDB1").style.display ='table';    
  363.                                                                                         if(document.getElementById("barraIOL"))document.getElementById("barraIOL").style.display ='block';
  364.                                                                                        
  365.                                                                                         //tvi24 hack
  366.                                                                                          var host = String(window.location.host).replace('www.', '')
  367.                                                                                         if ((host === "tvi24.iol.pt") || ((host === "lux.iol.pt"))){
  368.                                                                                        
  369.                                                                                        
  370.                                                                                                                 var elems = document.getElementsByTagName('*'), i;
  371.                                                                                                                 for (i in elems) {
  372.                                                                                                                         if((' ' + elems[i].className + ' ').indexOf(' ' + "mrec" + ' ')
  373.                                                                                                                                         > -1) {
  374.                                                                                                                         elems[i].style.float = "none"  
  375.                                                                                                                                
  376.                                                                                                                         };
  377.                                                                                                                 };
  378.                                                                                                
  379.                                                                                                
  380.                                                                                         };
  381.                                                                                        
  382.                                                                                         if (host === "lux.iol.pt"){
  383.                                                                                                 $('.manchetes, #media_gal, #media_gal_2, .lookdodia').iosSlider('update');
  384.                                                                                         };
  385.                                                                                        
  386.                                                                                
  387.                                                                                 break;
  388.                                         case "hide":
  389.                                                 var el = document.getElementById(who);
  390.                                                 el.style.display = "none";
  391.                                         break;
  392.                                         case "empty":
  393.                                                 var el = document.getElementById(who);
  394.                                                 while (el.hasChildNodes()){
  395.                                                         el.removeChild(el.lastChild);
  396.                                                 };
  397.                                         break;
  398.                                         case "reload":
  399.                                                 if(reloadAd){
  400.                                                 var el = document.getElementById(who);
  401.                                                 el.parentNode.removeChild(el);
  402.                                                 reloadAd(223);
  403.                                                 }
  404.                                         break;
  405.                                         default:
  406.                                                 var el = document.getElementById(who);
  407.                                                 el.parentNode.removeChild(el);
  408.                                 };
  409.                                                         };
  410.                 },
  411.                 //event control from actionscript
  412.                 AS2JS223: function (what) {
  413.                         if(what == "close"){
  414.                                 try{console.log("close");}catch(e){};
  415.                                         DFP_intro.mycounter("IntroWrapper223", "destroy");
  416.                         }else if(what == "open"){
  417.                                 try{console.log("open");}catch(e){};
  418.  
  419.                         }
  420.                 },
  421.                                
  422.                                
  423.                                 isMobile: function () {
  424.                                         var userAgent = navigator.userAgent||navigator.vendor||window.opera;
  425.                                         if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|android|ipad|playbook|silk|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(userAgent.substr(0,4)))
  426.                                                 return true;
  427.                                         else
  428.                                                 return false;
  429.                                 },
  430.                                
  431.                                 isIOS: function () {
  432.                                         var userAgent = navigator.userAgent||navigator.vendor||window.opera;
  433.                                         if(/ip(hone|od|ad)/i.test(userAgent))
  434.                                                 return true;
  435.                                         else
  436.                                                 return false;
  437.                                 }
  438.                                
  439.                                
  440.                                
  441. }
  442.         //init
  443.                 if(!document.getElementById("IntroWrapper"))  { //avoid more than one instance of an intro
  444.                         DFP_intro.gen(DFP_intro.material, "zahirLayer2223", DFP_intro.width, DFP_intro.height, DFP_intro.mode);
  445.  
  446.                 };
  447.                
  448.        
  449. };
  450. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement