//tealium universal tag - utag.loader ut4.0.201202201008, Copyright 2012 Tealium.com Inc. All Rights Reserved.
var utag_condload=false;

if (typeof utag == "undefined" && !utag_condload) {
  var utag = {
    sender: {},
    send: {},
    rpt: {
      ts: {
        a: new Date()
      }
    },
    dbi: [],
    loader: {
      q: [],
      lc: 0,
      f: {},
      p: 0,
      ol: 0,
      wq: [],
      ft: 0,
      rf: 0,
      ri: 0,
      rp: 0,
      rq: [],
      lh: function(a, b, c) {
        a = "" + location.hostname;
        b = a.split(".");
        c = (/\.co\.|\.com\./.test(a)) ? 3 : 2;
        return b.splice(b.length - c, c).join(".");
      },
      WQ: function(a, b, c, d) {
        utag.DB('WQ:' + utag.loader.wq.length);
        c = true;
        try {
          utag.loader.GET()
        } catch (e) {};
        var lq = [];
        for (a = 0; a < utag.loader.wq.length; a++) {
          b = utag.loader.wq[a];
          if (b.load > 0) {
            if (b.send) {
              c = false;
              utag.send[b.id] = b;
              this.f[b.id] = 0;
            }
            lq.push(b);
          }
        }
        if (c) {
          d = false;
          for (b in utag.loader.GV(utag.send)) d = true;
          if (c && d) this.LOAD('WAIT_FORCE');
        }
        this.wq = [];
        for (a = 0; a < lq.length; a++) {
          utag.DB('utag.loader.WAIT: loading ' + lq[a].id);
          utag.loader.AS(lq[a])
        }
      },
      AS: function(a, b, c, d) {
        utag.sender[a.id] = a;
        if (typeof a.src == 'undefined') {
          a.src = utag.cfg.path + ((typeof a.name != 'undefined') ? a.name : 'utag.' + a.id + '.js')
        }
        if (utag.cfg.v) a.src += (a.src.indexOf('?') > 0 ? '&' : '?') + 'utv=' + utag.cfg.v;
        utag.rpt['l_' + a.id] = a.src;
        b = document;
        if (a.load == 2) {
          b.write('<script id="' + a.id + '" src="' + a.src + '"></scr' + 'ipt>')
        } else {
          if (b.createElement) {
            c = a.id;
            if (!b.getElementById(c)) {
              if (a.load == 3) {
                d = b.createElement('iframe');
                d.setAttribute('height', '1');
                d.setAttribute('width', '1');
                d.setAttribute('style', 'display:none');
                d.setAttribute('src', a.src)
              } else {
                d = b.createElement('script');
                d.language = 'javascript';
                d.type = 'text/javascript';
                d.src = a.src
              }
              d.id = c;
              b.getElementsByTagName('head')[0].appendChild(d)
            }
          }
        }
      },
      GV: function(a, b, c) {
        b = {};
        for (c in a) {
          if (typeof a[c] != "function") b[c] = a[c];
        }
        return b
      },
      RD: function(o, a, b, c, d, e, f, g) {
        a = document.getElementsByTagName("meta");
        for (b = 0; b < a.length; b++) {
          if (a[b].name && a[b].name != "") o["meta." + a[b].name.toLowerCase()] = a[b].content.toLowerCase();
        }
        a = location.search.toLowerCase();
        if (a.length > 1) {
          b = a.substring(1).split('&');
          for (a = 0; a < b.length; a++) {
            c = b[a].split("=");
            o["qp." + c[0]] = unescape(c[1])
          }
        }
        a = (new Date()).getTime();
        b = utag.loader.RC();
        c = a + parseInt(utag.cfg.session_timeout);
        d = a + (Math.ceil(Math.random() * 1000000));
        if ((b.utag_main && (typeof b.utag_main._st == "undefined" || (typeof b.utag_main._st != "undefined" && parseInt(b.utag_main._st) < a))) || !b.utag_main) {
          if (b.utag_main) {
            b.utag_main._st = c;
            b.utag_main.ses_id = d;
          } else {
            b.utag_main = {
              _st: c,
              ses_id: d
            }
          }
          utag.loader.SC("utag_main", {
            "_st": c,
            "ses_id": d + ";exp-session"
          });
        } else {
          utag.loader.SC("utag_main", {
            "_st": c
          })
        }
        for (d in b) {
          if (d.match(/utag_(.*)/)) {
            for (c in utag.loader.GV(b[d])) {
              o["cp.utag_" + RegExp.$1 + "_" + c] = b[d][c];
            }
          }
        }
        for (c in utag.loader.GV((utag.cl && !utag.cl['_all_']) ? utag.cl : b)) {
          if (c.indexOf("utag_") < 0 && typeof b[c] != "undefined") o["cp." + c] = b[c];
        }
        o["dom.referrer"] = eval("document." + "referrer");
        o["dom.title"] = "" + document.title;
        o["dom.domain"] = "" + location.hostname;
        o["dom.query_string"] = "" + (location.search).substring(1);
        o["dom.url"] = "" + document.URL;
        o["dom.pathname"] = "" + location.pathname;
      },
      RC: function(a, x, b, c, d, e, f, g, h, i, j, k, l, m, n, o, v, ck, cv) {
        o = {};
        b = ("" + document.cookie != "") ? (document.cookie).split("; ") : [];
        for (c = 0; c < b.length; c++) {
          if (b[c].match(/^(.*?)=(.*)$/)) {
            ck = RegExp.$1;
            cv = RegExp.$2;
          }
          e = unescape(cv);
          if (ck.indexOf("ulog") == 0 || ck.indexOf("utag_") == 0) {
            e = e.split("$");
            g = [];
            j = {};
            for (f = 0; f < e.length; f++) {
              g = e[f].split(":");
              if (g.length > 2) {
                g[1] = g.slice(1).join(":");
              }
              v = "";
              if (("" + g[1]).indexOf("~") == 0) {
                h = g[1].substring(1).split("|");
                for (i = 0; i < h.length; i++) h[i] = unescape(h[i]);
                v = h
              } else v = unescape(g[1]);
              j[g[0]] = v
            }
            o[ck] = {};
            e = (new Date()).getTime();
            for (f in utag.loader.GV(j)) {
              if (j[f] instanceof Array) {
                n = [];
                for (m = 0; m < j[f].length; m++) {
                  if (j[f][m].match(/^(.*);exp-(.*)$/)) {
                    k = (RegExp.$2 == "session") ? (typeof j._st != "undefined" ? j._st : e - 1) : parseInt(RegExp.$2);
                    if (k > e) n[m] = (x == 0) ? j[f][m] : RegExp.$1;
                  }
                }
                j[f] = n.join("|");
              } else {
                j[f] = "" + j[f];
                if (j[f].match(/^(.*);exp-(.*)$/)) {
                  k = (RegExp.$2 == "session") ? (typeof j._st != "undefined" ? j._st : e - 1) : parseInt(RegExp.$2);
                  j[f] = (k < e) ? null : (x == 0 ? j[f] : RegExp.$1);
                }
              }
              if (j[f]) o[ck][f] = j[f];
            }
          } else if (utag.cl[ck] || utag.cl['_all_']) {
            o[ck] = e
          }
        }
        return (a) ? (o[a] ? o[a] : {}) : o;
      },
      SC: function(a, b, c, d, e, f, g, h, i, j, k, x, v) {
        if (!a) return 0;
        v = "";
        x = "Thu, 31 Dec 2099 00:00:00 GMT";
        if (c && c == "da") {
          x = "Thu, 31 Dec 2009 00:00:00 GMT";
        } else if (a.indexOf("utag_") != 0 && a.indexOf("ulog") != 0) {
          if (typeof b != "object") {
            v = b
          }
        } else {
          d = utag.loader.RC(a, 0);
          for (e in utag.loader.GV(b)) {
            f = "" + b[e];
            if (f.match(/^(.*);exp-(\d+)(\w)$/)) {
              g = (new Date()).getTime() + parseInt(RegExp.$2) * ((RegExp.$3 == "h") ? 3600000 : 86400000);
              f = RegExp.$1 + ";exp-" + g;
            }
            if (c == "i") {
              if (d[e] == null) d[e] = f;
            } else if (c == "d") delete d[e];
            else if (c == "a") d[e] = (d[e] != null) ? (f - 0) + (d[e] - 0) : f;
            else if (c == "ap" || c == "au") {
              if (d[e] == null) d[e] = f;
              else {
                if (d[e].indexOf("|") > 0) {
                  d[e] = d[e].split("|")
                }
                g = (d[e] instanceof Array) ? d[e] : [d[e]];
                g.push(f);
                if (c == "au") {
                  h = {};
                  k = {};
                  for (i = 0; i < g.length; i++) {
                    if (g[i].match(/^(.*);exp-(.*)$/)) {
                      j = RegExp.$1;
                    }
                    if (typeof k[j] == "undefined") {
                      k[j] = 1;
                      h[g[i]] = 1;
                    }
                  }
                  g = [];
                  for (i in utag.loader.GV(h)) {
                    g.push(i);
                  }
                }
                d[e] = g
              }
            } else d[e] = f;
          }
          h = new Array();
          for (g in utag.loader.GV(d)) {
            if (d[g] instanceof Array) {
              for (c = 0; c < d[g].length; c++) {
                d[g][c] = escape(d[g][c])
              }
              h.push(g + ":~" + d[g].join("|"))
            } else h.push(g + ":" + escape(d[g]))
          };
          if (h.length == 0) {
            h.push("");
            x = ""
          }
          v = (h.join("$"));
        }
        document.cookie = a + "=" + v + ";path=/;domain=" + utag.cfg.domain + ";expires=" + x;
        return 1
      },
      LOAD: function(a, b, c, d) {
        utag.DB('utag.loader.LOAD:' + a);
        if (this.f[a] == 0) {
          utag.DB('utag.loader.LOAD:add sender-' + a);
          this.f[a] = 1;
          if (utag.loader.wq.length > 0) return;
          for (b in utag.loader.GV(this.f)) {
            if (this.f[b] == 0) return
          };
          utag.DB('CLEAR FORCE');
          clearTimeout(utag.loader.ft);
          utag.DB('utag.handler.INIT');
          utag.handler.INIT()
        }
      },
      EV: function(a, b, c, d) {
        if (b == "ready") {
          if (document.readyState === "complete") setTimeout(c, 1);
          else {
            var RH;
            if (document.addEventListener) {
              RH = function() {
                document.removeEventListener("DOMContentLoaded", RH, false);
                c()
              };
              document.addEventListener("DOMContentLoaded", RH, false);
              window.addEventListener("load", c, false);
            } else if (document.attachEvent) {
              RH = function() {
                if (document.readyState === "complete") {
                  document.detachEvent("onreadystatechange", RH);
                  c()
                }
              }
              document.attachEvent("onreadystatechange", RH);
              window.attachEvent("onload", c);
            }
          }
        } else {
          if (a.addEventListener) {
            a.addEventListener(b, c, false)
          } else if (a.attachEvent) {
            a.attachEvent(((d == 1) ? "" : "on") + b, c)
          }
        }
      }
    },
    DB: function(a, b) {
      try {
        b = document.cookie;
        if (b.indexOf('utagdb=true') >= 0) console.log(a)
      } catch (e) {}
    },
    RP: function(a, b, c) {
      if (typeof a != 'undefined' && typeof a.src != 'undefined' && a.src != '') {
        b = [];
        for (c in utag.loader.GV(a)) {
          if (c != 'src') b.push(c + '=' + escape(a[c]));
        }
        this.dbi.push((new Image()).src = a.src + '?utv=' + utag.cfg.v + '&utid=' + utag.cfg.utid + '&' + (b.join('&')));
      }
    },
    view: function(a) {
      this.handler.trigger('view', a)
    },
    link: function(a) {
      this.handler.trigger('link', a)
    },
    handler: {
      base: "site_catalyst_page_name,path,site_catalyst_page_name_save",
      df: {},
      o: {},
      send: {},
      iflag: 0,
      INIT: function(a, b, c) {
        this.iflag = 1;
        a = utag.loader.q.length;
        if (a > 0) {
          for (b = 0; b < a; b++) {
            c = utag.loader.q[b];
            utag.handler.trigger(c.a, c.b)
          }
        }
        utag.handler.trigger('view', utag.data)
      },
      test: function() {
        return 1
      },
      trigger: function(a, b, c, d) {
        b = b || {};
        if (!this.iflag) {
          utag.loader.q.push({
            a: a,
            b: b
          });
          return;
        }
        for (c in utag.loader.GV(this.df)) {
          if (typeof this.df[c] != "function" && typeof b[c] == "undefined") b[c] = this.df[c]
        }
        for (c = 0; c < this.extend.length; c++) {
          try {
            this.extend[c](a, b);
            utag.rpt['ex_' + c] = 0
          } catch (e) {
            utag.rpt['ex_' + c] = 1
          }
        };
        for (c in utag.loader.GV(utag.send)) {
          if (typeof utag.sender[c] != "undefined") {
            try {
              utag.sender[c].send(a, utag.handler.C(b));
              utag.rpt['s_' + c] = 0
            } catch (e) {
              utag.rpt['s_' + c] = 1
            };
            utag.rpt.ts['s'] = new Date();
            utag.RP(utag.rpt);
          }
        }
        c = this.base.split(",");
        for (d = 0; d < c.length; d++) {
          if (typeof b[c[d]] != "undefined") this.df[c[d]] = b[c[d]]
        }
        this.o = b
      },
      C: function(a, b, c, d) {
        b = {};
        for (c in utag.loader.GV(a)) {
          if (typeof a[c] != "function") b[c] = a[c]
        }
        return b
      }
    }
  };
  utag.cfg = {
    v: "ut4.0.201202201008",
    session_timeout: 1800000,
    readywait: 0,
    noload: 0,
    forcetimeout: 3000,
    domain: utag.loader.lh(),
    path: "//tealium.hs.llnwd.net/o43/utag/newsinternational/thesun/prod/",
    utid: "newsinternational/thesun/201202101629"
  };try{var _gaq=_gaq || [];var pageTracker=pageTracker || {_trackEvent:function(c,d,e,f,g){g={ga_eventCat:c,ga_eventAction:d,ga_eventLabel:e,ga_eventValue:f};utag.link(g);},_trackPageview:function(c){_gaq.push(['_trackPageview',c?c:null]);}}}catch(e){};utag.cond={7:0,8:0,5:0};
utag.pre=function(){utag.data=(typeof utag_data!='undefined')?utag_data:{};try{utag.loader.RD(utag.data);try{utag.cond[8]|=(utag.data['site']=='page3'&&utag.data['type']=='ARTICLE')||(utag.data['site']=='page3'&&utag.data['type']=='INDEX')}catch(e){};try{utag.cond[7]|=(/sun$/.test(utag.data['site'])&&utag.data['type']=='ARTICLE')||(/sun$/.test(utag.data['site'])&&utag.data['type']=='INDEX')||(/sun$/.test(utag.data['site'])&&utag.data['type']=='SEARCH')}catch(e){};try{utag.cond[5]|=(utag.data['type']=='ARTICLE')||(utag.data['type']=='INDEX')||(utag.data['type']=='SEARCH')||(utag.data['type']=='WEB')||(utag.data['type']=='FACEBOOK')}catch(e){};}catch(e){}};
utag.loader.GET=function(){utag.cl={'_all_':1};utag.pre();
  utag.handler.extend=[function(a,b){if(b['site']=='page3'){b['__Google_Analytics_Local_Pixel_Url']='http://s3-eu-west-1.amazonaws.com/newsint.co.uk-analytics-docroot/page3/dev/__ni.gif'}},function(a,b){if(b['site']=='sun'||b['site'].indexOf('scotsun')>-1){b['__Google_Analytics_Account']='UA-26159996-1'}},function(a,b){if(b['site']=='fabulous'){b['__Google_Analytics_Account']='UA-26940812-1'}},function(a,b){if (b.site == 'sol') {
    b.site = 'sun';
} else if (b.site == 'fabulous') {
    b.site = 'notw';
}},function(a,b){if((typeof b['byline']!='undefined'&&b['byline']==''&&b['site']=='notw')){b['byline']='NewsoftheWorld'}},function(a,b){if (typeof b.title != 'undefined') {
  if (b.site != 'notw') {
    b.title = b.title.split("&rsquo;").join("");    
    b.title = b.title.split("&lsquo;").join("");   
    b.title = b.title.split("&#39;").join("");  
    b.title = b.title.split("&amp;").join("and"); 
    b.title = b.title.split("&#163;").join(""); 
    b.title = b.title.split("&ndash;").join(""); 
    b.title = b.title.split("&#x00A3;").join(""); 
    b.title = b.title.split("/").join("");  
    b.title = b.title.split("<").join("");  
    b.title = b.title.split(">").join("");
    b.title = b.title.split(".").join("");
    b.title = b.title.split(":").join("");
    b.title = b.title.split(",").join("");
    b.title = b.title.split("'").join("");

    b.title = b.title.split("?").join("");  
  } else {
    b.title = b.title.split("&").join("");     
    b.title = b.title.split("!").join(""); 
  }
  b.title = b.title.split(";").join("");
  b.title = b.title.split("'").join("");
  b.title = b.title.split("  ").join(" ");
  b.title = b.title.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
if (typeof b.byline != 'undefined' && b.byline != '') {
  if (b.site != 'notw') {
    b.byline = b.byline.split("&rsquo;").join("");    
    b.byline = b.byline.split("&lsquo;").join("");   
    b.byline = b.byline.split("&#39;").join("");  
    b.byline = b.byline.split("&amp;").join("and");
    b.byline = b.byline.split("&#163;").join("");
    b.byline = b.byline.split("&ndash;").join("");
    b.byline = b.byline.split("&#x00A3;").join(""); 
    b.byline = b.byline.split("/").join("");  
    b.byline = b.byline.split("<").join("");  
    b.byline = b.byline.split(">").join("");
    b.byline = b.byline.split(".").join("");
    b.byline = b.byline.split(":").join("");
    b.byline = b.byline.split(",").join("");
    b.byline = b.byline.split("?").join("");
  } else {
    b.byline = b.byline.split("&").join("");
    b.byline = b.byline.split("!").join(""); 
  }
  b.byline = b.byline.split(";").join("");
  b.byline = b.byline.split("'").join("");
  b.byline = b.byline.split("  ").join(" ");
  b.byline = b.byline.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}},function(a,b){  if (b.site == "fabulous" || b.site == "notw") {
    b.path = b.path.split("_").join("+");    
  }

  b.path.replace('_',' ');  
  seg = b.path.split('/');
  nPath = '';
  i = 0;
  while (i < seg.length) { 
    if (seg[i] != '') {
      nPath += '/' + seg[i];
    }
    i++;
  }

  b.path = nPath;

  seg = b.path.split('/');
  nPath = '';
  i = 0 ;
  while (i < seg.length) { 
    if (seg[i] == 'homepage') {
      if (i+1 == seg.length) {
	seg[i] = 'home'; 
      } else {
        seg[i] = ''; 
      }
    } 
    if (seg[i] != '') {
      nPath += '/' + seg[i];
    }
    i++;
  }
  b.path = nPath;

  b.path = b.path.split("-").join(" ");
  b.path = b.path.split("_").join(" ");

  seg = b.path_names.split('/');
  nPath = '';
  i = 0;
  while (i < seg.length) { 
    if (seg[i] == 'Home' && i+1 != seg.length) {
      seg[i] = ''; 
    }
    if (seg[i] != '') {
      nPath += '/' + seg[i];
    }
    i++;
  }
  b.path_names = nPath;

},function(a,b){if (typeof b.publication_date != 'undefined') {
  y = b.publication_date.substring(0,4);  
  m = b.publication_date.substring(4,6);  
  d = b.publication_date.substring(6,8);
  b.publication_date = d + m + y;
}},function(a,b){if((b['type']=='ARTICLE'&&typeof b['headline']=='undefined')||(b['type']=='POPUP'&&typeof b['headline']=='undefined')){b['headline']=b['title']}},function(a,b){if(b['type']=='SEARCH'){b['path']='/search';b['path_names']='/Search'}},function(a,b,c,d){if(1){c=[b['type'],b['action']];b['event_action']=c.join('|')}},function(a,b){if(typeof b['revenue_science_customer_id']=='undefined'||typeof b['revenue_science_customer_id']!='undefined'&&b['revenue_science_customer_id']==''){b['revenue_science_customer_id']='J05530'}},function(a,b){if(1){b['revenue_science_site_name']='Sun Online'}},function(a,b){if(b['site']=='notw'||b['site'].indexOf('fabulous')>-1){b['revenue_science_site_name']='News of the World'}},function(a,b){if(b['site'].indexOf('fabulous')>-1||b['site'].indexOf('notw')>-1){b['revenue_science_network']='NOTW'}},function(a,b){if(b['site']=='page3'){try{b['site_catalyst_page_name']='page3'+document.location.pathname}catch(e){}}},function(a,b){if(b['site']=='page3'){b['site_catalyst_source']='PAGE3'}},function(a,b){
if (typeof b.site_catalyst_type == 'undefined') {
  if ( b.type == 'ARTICLE') {
    b.site_catalyst_type = 'ARTK';
  } else if (b.type == 'INDEX' || b.type == 'SECTION') {
    b.type = 'INDEX' ;
    b.site_catalyst_type = 'INDX';
  } else if (b.type == 'SEARCH') {
    b.site_catalyst_type = 'SRCH';
  } else if (b.type == 'SLIDESHOW') {
    b.site_catalyst_type = 'SLDE';
  } else if (b.type == 'POPUP') {
    b.site_catalyst_type = b.sub;
  } 
}
 },function(a,b){
if (b['type'] != 'EVENT') {
  seg = b.path.split('/');

  b['site_catalyst_common_section'] = seg[1];
  b['site_catalyst_site_section'] = b['site'] + "/" 
                                               + b['site_catalyst_common_section'];
  b['site_catalyst_channel'] = b['site'] + b['path'];
  
  b['site_catalyst_site_common_sub'] = b['site_catalyst_site_section']; 
  
  if (seg.length >= 3 && seg[2] != '') {
       b['site_catalyst_site_common_sub'] += '/' + seg[2]; 
  } 
    
  b['site_catalyst_site_common_sub2'] = b['site_catalyst_site_common_sub']; 
  if (seg.length >= 4 && seg[3] != '') {
       b['site_catalyst_site_common_sub2'] += '/' + seg[3]; 
  } 
}
},function(a,b){if ((b.type != 'EVENT' && b.type != 'SLIDESHOW') && typeof b.site_catalyst_page_name == 'undefined') {
  b.site_catalyst_page_name = b.site + '/' + b.site_catalyst_common_section ;
  if (b.type == 'INDEX') {
    if (b.site == 'notw') {
      b.site_catalyst_page_name += ' ' + b.site_catalyst_type.toLowerCase() + '_' + b.section_id;
    } else {
      b.site_catalyst_page_name += ' ' + b.site_catalyst_type.toLowerCase() + '-' + b.section_id;
    }
  } else if (b.type == 'ARTICLE' || b.type == 'POPUP') {
    b.site_catalyst_page_name += ' ' + b.headline.toLowerCase();
  } else if (b.type == 'WEB') {
    b.site_catalyst_page_name = b.site + '/' + b.path ;
  } else if (b.type == 'FACEBOOK') {
    b.site_catalyst_page_name += ' ' + b.title;
  } else {
    b.site_catalyst_page_name += ' ' + b.site + '_' + b.site_catalyst_type;    
    b.site_catalyst_page_name = b.site_catalyst_page_name.toLowerCase();
    
  }
}
},function(a,b){if ((b.type == 'ARTICLE' || b.type == 'POPUP' ||  b.type == 'SLIDESHOW' )  && typeof b.site_catalyst_source == 'undefined') {
    b.site_catalyst_source = 'SOL';
    if (typeof b.source != 'undefined') {
      if (b.source.toLowerCase() == 'sunprint' || b.source.toLowerCase() == 'spt' ) {
        b.site_catalyst_source = 'SPT';
      } 
    }
}
},function(a,b){if(b['site']=='notw'){b['site_catalyst_source']='FABULOUS'}},function(a,b){if (b['type'] != 'EVENT') {
  var names = b['path_names'];
  seg = names.split('/');
  if (b['type'] == 'INDEX' & typeof b['title'] !='undefined') {
    b['chartbeat_section']  = b['title'];
  } else  {
    b['chartbeat_section'] = seg[seg.length - 1];
  }
  
  if (typeof b['byline'] !='undefined') {
    b['chartbeat_author'] = b['byline'];
  }
  
  if (b.type == 'INDEX') {
    if (typeof b['title'] !='undefined') {
      b['chartbeat_title'] = b['title'];
    } else {
      b['chartbeat_title']  = b['chartbeat_section'];
    }
  } else if (b['type'] == 'ARTICLE' || b['type'] == 'POPUP') {
    b['chartbeat_title'] = b['title'];
  }
  b['chartbeat_title'] += ' - ' + b['type'];
}
    },function(a,b){if(1){b['tealium']='TEALIUM Prod 1.3.9'}},function(a,b){var parts = [];
if (typeof b['cp.nipra_connected_providers'] != "undefined" && typeof b['cp.nipra_registration_type'] != "undefined") {
  var connectedProviders = b['cp.nipra_connected_providers'] ? eval("("+b['cp.nipra_connected_providers']+")") : [];
  var registrationType = b['cp.nipra_registration_type'];
  // registration type - "what type of registration do they hold?"
  parts.push('sun');
  // standard reg? - "Did they register directly for this (ie no use facebook connect or twitter)"

  if (registrationType.indexOf('sun') !== -1 || registrationType.indexOf('None') !== -1) {
    parts.push('yes');
  } else {
    parts.push('no');  
  }

  // facebook connection? - "Have they connected with their facebook account?"
  parts.push( ( connectedProviders.indexOf('facebook') !== -1) ? 'yes' : 'no' );
  // twitter connection? - "Have they connected with their twitter account?"
  parts.push( ( connectedProviders.indexOf('twitter') !== -1) ? 'yes' : 'no' );
  // sunperks - "Are they connected with livefyre commenting?"
  parts.push( (b['cp.nipra_uuid']) ? 'yes' : 'no' ); 
  b['registration_types'] = parts.join(':');
}},function(a,b){if (b.type == "EVENT") {
  if (b.action == "ENGAGEMENT") {
    b.linkTrackVars = "pageName,channel,events,prop1,prop2,prop3,prop5,prop6,prop11,prop12,prop19,prop23,prop52,prop53,prop54,prop69,prop70,eVar1,eVar2,eVar3,eVar5,eVar6,eVar13,eVar19,eVar22,eVar23,eVar35,eVar45,eVar46";
    b.linkTrackEvents = "event22";
    
  } else if (b.action == "COMMENTED" || b.action == "COMMENTCLICK") {
    b.linkTrackVars = "pageName,channel,events,prop1,prop2,prop3,prop5,prop6,prop11,prop12,prop19,prop23,prop52,prop53,prop54,prop69,prop70,eVar1,eVar2,eVar3,eVar5,eVar6,eVar13,eVar19,eVar22,eVar23,eVar35,eVar45,eVar46";
    b.linkTrackEvents = "event7,event6,event22"
  }
}}];
  utag.loader.cfg={"3":{load:2,send:1,wait:0},"4":{load:utag.cond[5],send:1,wait:0},"10":{load:utag.cond[7],send:1,wait:0},"11":{load:utag.cond[8],send:1,wait:0},"5":{load:2,send:1,wait:0},"13":{load:1,send:1,wait:0},"16":{load:1,send:1,wait:0},"17":{load:1,send:1,wait:0}};
}

  utag.loader.SETFORCE = function(a) {
    utag.DB('SETFORCE:' + a);
    if (utag.loader.ft > 0) clearTimeout(utag.loader.ft);
    utag.loader.ft = (utag.cfg.forcetimeout != 0) ? setTimeout(utag.loader.FORCE, utag.cfg.forcetimeout) : 0
  }
  utag.loader.FORCE = function(a, b, c, d) {
    a = utag.sender;
    b = utag.loader.f;
    utag.DB('FORCE');
    for (c in utag.loader.GV(b)) {
      d = a[c].id;
      if (typeof b[c] != 'undefined' && b[c] == 0) {
        utag.DB('FORCEERROR:' + d);
        utag.rpt['f_' + d] = 1;
        delete utag.sender[d];
        delete utag.send[d];
        utag.loader.LOAD(d)
      }
    }
  }
  utag.loader.INIT = function(a, b, c, d) {
    if (this.ol == 1) return -1;
    else this.ol = 1;
    utag.rpt.ts['i'] = new Date();
    if (!utag.cfg.noload) {
      try {
        this.GET()
      } catch (e) {};
      var lq = [];
      for (a in this.GV(this.cfg)) {
        b = this.cfg[a];
        b.id = a;
        if (b.wait == 1) {
          this.wq.push(b)
        } else if (b.load > 0) {
          if (b.send) {
            utag.send[b.id] = b;
            this.f[b.id] = 0
          }
          lq.push(b);
        }
      }
      for (a = 0; a < lq.length; a++) {
        utag.DB('utag.loader.INIT: loading ' + b.id);
        utag.loader.AS(lq[a])
      }
      if (utag.loader.wq.length > 0) utag.loader.EV('', 'ready', function(a) {
        utag.loader.WQ();
        utag.loader.SETFORCE('WAIT')
      });
      else utag.loader.SETFORCE('INIT')
    }
    return 1
  };
  utag.cfg.readywait ? utag.loader.EV('', 'ready', function(a) {
    utag.DB('READY');
    utag.loader.INIT()
  }) : utag.loader.INIT();
}
