//liveManager v2.1, Copyright 2010 Tealium.com Inc. All Rights Reserved.
var Lm={q:{},l:[],f:{},p:0,o:0,A:function(a,b,c,d){if(a.c)this.l.push(a);b=document;if(b.createElement){c="Lm_"+a.a;if(!b.getElementById(c)){try{eval(a.e)}catch(e){};
d=b.createElement('script');d.language='javascript';d.type='text/javascript';d.src=a.b;d.id=c;b.getElementsByTagName("head")[0].appendChild(d)}}},LOAD:function(a,b,c,d){
this.f[a]=0;c=this.l.length;for(b=this.p;b<c;b++){d=this.l[b];if(this.f[d.a]==0){this.f[d.a]=++this.p;try{eval(d.d);}catch(e){}}else return;}if(this.p==c&&this.o==0)this.o=1},
EV:function(a,b,c,d){if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent(((d==1)?"":"on")+b,c)}}}

var domainUrl = document.getElementById('gaAcct').value=='UA-8799666-1'&&location.protocol!='https:'?'http://s.cmcdn.com/graphics':'/graphics';

Lm.config={
    domain:".classmates.com",
    ga_acct:document.getElementById('gaAcct').value,
    ga2_acct:document.getElementById('gaAcct').value=='UA-8799666-1'?'UA-15966400-1':'UA-15985624-1',
    dop_sensor:document.getElementById('dopSensor').value,
    sc_acct:document.getElementById('cmoAcct').value,
    ywa_acct:document.getElementById('gaAcct').value=='UA-8799666-1'?'10002117471695':'1000869616291',
    send:{ga:true,dop:true,s_code:true,ywa:true},
    ywa_src:domainUrl+"/js/omniture/ywa.js",
    dop_src:domainUrl+"/js/omniture/dop.js",
    ga_src:domainUrl+"/js/omniture/ga.js",
    s_code_src:domainUrl+"/js/omniture/s_code.js",
    trackevent_src:domainUrl+"/js/omniture/trackEvent.js"
}

Lm.syncload=0;
if(location.pathname=="/checkout/checkOut"){
    Lm.syncload=1;
}

Lm.lc="20100427";

if(Lm.syncload){
    Lm.la=["ywa_src","dop_src","ga_src","s_code_src","trackevent_src"];
    for(var b=0;b<Lm.la.length;b++){
        document.write("<scr"+"ipt src='"+Lm.config[Lm.la[b]]+"?v="+Lm.lc+"'></scr"+"ipt>");        
    }
}else{
    Lm.A({a:"dop",b:Lm.config.dop_src+"?v="+Lm.lc,c:1,d:"Lm.dop.INIT()"});
    Lm.A({a:"ywa",b:Lm.config.ywa_src+"?v="+Lm.lc,c:1});
    Lm.A({a:"ga",b:Lm.config.ga_src+"?v="+Lm.lc,c:1});
    Lm.A({a:"s_code",b:Lm.config.s_code_src+"?v="+Lm.lc,c:1});
    Lm.A({a:"trackEvent",b:Lm.config.trackevent_src+"?v="+Lm.lc,c:1,d:"trackEvent.INIT()",e:"trackEvent={event:function(a,b){Lm.q['trackEvent']={a:a,b:b}}}"});
}

Lm.ONLOAD=function(){if(Lm.o==0&&Lm.l.length>0){setTimeout("Lm.ONLOAD()",500);return}}
Lm.ONERROR=function(a,b,c){if(Lm.erf!=1){Lm.error=(typeof a=="string")?(a+"-"+c):"Unknown";Lm.erf=1}}
Lm.EV(window,"error",Lm.ONERROR);
Lm.EV(window,"load",Lm.ONLOAD);