
  var loc = escape(location.pathname);
      var path = loc.substring(1).split('/');
      if (location.protocol == 'https:') 
        { sitezone='P4542.TAA/ssl'; var http='https:'; } 
      else 
        { var http='http:'; }

      function writeDart(sz, pos, tagType, rfrsh) {
        if (typeof(sz) == 'undefined') { return; }
        if (typeof(pos) != 'undefined' && pos.length > 0) { pos = ';pos='+pos; } 
        else { pos = ''; }
        if (typeof(tagType) == 'undefined') { tagType = 'js'; }
        if (tagType == 'iframe') { 
          if (typeof(rfrsh) == 'undefined') { rfrsh = '0'; }
          maxSizes = getMaxSizes(sz);
          uName = sz +'-'+ pos;
          document.write('<iframe id="'+uName+'" name="'+uName+'"'+
            ' src="'+http+'//ad.uk.doubleclick.net/adi/'+sitezone);
          dfpInfo(sz, pos, rfrsh);
          document.write('" framespacing="0" frameborder="no" scrolling="no"'+
            ' width="'+maxSizes[0]+'" height="'+maxSizes[1]+'"');
          document.write('></iframe>');
        }
        else {
          // Default is JavaScript
          document.write('<scr'+'ipt language="JavaScript" '+
            'type="text/javascript" '+
            'src="'+http+'//ad.uk.doubleclick.net/adj/'+sitezone);
          dfpInfo(sz, pos, 0);
          document.write('"></scr'+'ipt>');
        }
      }
      function dfpInfo(sz, pos, rfrsh) {
        if (typeof(document.dfp_ord) == 'undefined') 
          { document.dfp_ord = Math.floor(Math.random()*999999999); }
        if (typeof(document.dfp_tile) == 'undefined') {
            document.dfp_tile = 1; 
            var dfp_dcopt = ';dcopt=ist';
        } 
        else { 
          document.dfp_tile++; 
          var dfp_dcopt = '';
        }
        document.write(';kw='+path.join(',')+';'+
          'tile='+document.dfp_tile+dfp_dcopt+';true=1;'+
          kv.replace(/%3D/g,'=').replace(/%3B/g,';')+';'+
          pos+';sz='+sz+';')
        if (rfrsh > 0) { document.write('refresh='+rfrsh+';'); }
        document.write('ord='+document.dfp_ord);
      }
      function getMaxSizes(sz) {
        allSizes = sz.split(",");
        maxSizes = Array(0,0);
        for (i = 0; i < allSizes.length; i++) {
          curSize = allSizes[i].split("x");
          if (curSize[0] > maxSizes[0]) { maxSizes[0] = curSize[0]; }
          if (curSize[1] > maxSizes[1]) { maxSizes[1] = curSize[1]; }
        }
        return maxSizes;
      }