//775 - tag #2
//** SageTrack
function sageTrack(st_ci,st_ai){
var st_obj = new sageTrack_setVariable();
if (st_ai !=''){st_obj.st_ai = st_ai;}else{st_obj.st_ai=""} 
if (st_ci !=''){st_obj.st_ci = st_ci;}
if (typeof(sageamp) != 'undefined' && st_obj.st_ai.indexOf('tg:') == -1) { 
var st_ampai=sageamp; st_ampai=st_ampai.replace(/\|/g,'%257C'); st_obj.st_ai+=',tg:'+st_ampai; }
var st_iu=st_obj.st_proto+"//"+st_obj.st_dd+"/" + (new Date()).getTime() + "/JS?ci="+st_obj.st_ci+"&di="+st_obj.st_di+"&pg="+st_obj.st_pgtitle+"&us="+st_obj.st_us+"&qs="+st_obj.st_qs+"&rf="+st_obj.st_rf+"&rs="+st_obj.st_rs+"&cd="+st_obj.st_cd+"&hn="+st_obj.st_hn+"&ce="+st_obj.st_ce+"&jv="+st_obj.st_jsv+"&tai="+st_obj.st_tai+"&ai="+st_obj.st_ai;
st_iXz=new Image(); st_iXz.src=st_iu;
}


//** SageTrack Detail
function sageTrack_detail(st_ci,st_di,st_pgi,st_ai){
var st_obj = new sageTrack_setVariable();
if (st_ai !=''){st_obj.st_ai = st_ai;}else{st_obj.st_ai=""}
if (st_ci !=''){st_obj.st_ci = st_ci;}
if (st_di !=''){st_obj.st_di = st_di;}
if (st_pgi !=''){st_obj.st_pgi = st_pgi;}

if (typeof(sageamp) != 'undefined' && st_ai.indexOf('tg:') == -1) { 
var st_ampai=sageamp; st_ampai=st_ampai.replace(/\|/g,'%257C'); st_ai+=',tg:'+st_ampai; }
var st_iu=st_obj.st_proto+"//"+st_obj.st_dd+"/" + (new Date()).getTime() + "/JS?ci="+st_obj.st_ci+"&di="+st_obj.st_di+"&pg="+st_obj.st_pgi+"&us="+st_obj.st_us+"&qs="+st_obj.st_qs+"&rf="+st_obj.st_rf+"&rs="+st_obj.st_rs+"&cd="+st_obj.st_cd+"&hn="+st_obj.st_hn+"&ce="+st_obj.st_ce+"&jv="+st_obj.st_jsv+"&tai="+st_obj.st_tai+"&ai="+st_obj.st_ai;
st_iXz=new Image(); st_iXz.src=st_iu;
}

//** Sage Event
function sageTrack_ev(st_ci,st_di,st_type,st_evt,st_ai) {
	var st_evt = "ev"+st_type+":"+st_evt;
	if (st_ai != ''){st_evt += "||" + st_ai;}
        st_evt = st_evt+",";
        sageTrack_event(st_ci,st_di,st_evt);

}

function sageTrack_event(st_ci,st_di,st_evt){
var st_obj = new sageTrack_setVariable();
if (st_ci !=''){st_obj.st_ci = st_ci;}
if (st_di !=''){st_obj.st_di = st_di;}
st_obj.st_ai=escape(st_evt);
if (typeof(sageamp) != 'undefined' && st_obj.st_ai.indexOf('tg:') == -1) { 
var st_ampai=sageamp; st_ampai=st_ampai.replace(/\|/g,'%257C'); st_obj.st_ai+=',tg:'+st_ampai; }
st_iu=st_obj.st_proto+"//"+st_obj.st_dd+"/" + (new Date()).getTime() + "/JS?ci="+st_obj.st_ci+"&di="+st_obj.st_di+"&pg="+st_obj.st_pgi+"&us="+st_obj.st_us+"&qs="+st_obj.st_qs+"&rf="+st_obj.st_rf+"&rs="+st_obj.st_rs+"&cd="+st_obj.st_cd+"&hn="+st_obj.st_hn+"&ce="+st_obj.st_ce+"&jv="+st_obj.st_jsv+"&tai="+st_obj.st_tai+"&ai="+st_obj.st_ai;
var st_iXz=new Image(); st_iXz.src=st_iu;
(navigator.userAgent.toLowerCase().indexOf("firefox")!= -1) ? st_obj.foxlive(0.3):(st_iXz.onload=function() {st_void();});
}


//** Sage Flash
function sageTrack_flash(st_ci,st_di,st_swfname,st_event,st_ai){
var st_obj = new sageTrack_setVariable();
 if (st_ai !=''){st_obj.st_ai = escape(st_ai+"||");}else{st_obj.st_ai="";}
if (st_ci !=''){st_obj.st_ci = st_ci;}
if (st_di !=''){st_obj.st_di = st_di;}
var st_ai_flash=',swf:'+escape(st_swfname)+',ev:'+st_event;
st_obj.st_ai +=st_ai_flash.replace(/\+/g,'%2b');
if (typeof(sageamp) != 'undefined' && st_obj.st_ai.indexOf('tg:') == -1) { 
var st_ampai=sageamp; st_ampai=st_ampai.replace(/\|/g,'%257C'); st_obj.st_ai+=',tg:'+st_ampai; }
var st_iu=st_obj.st_proto+"//"+st_obj.st_dd+"/" + (new Date()).getTime() + "/JS?ci="+st_obj.st_ci+"&di="+st_obj.st_di+"&pg="+st_obj.st_pgi+"&us="+st_obj.st_us+"&qs="+st_obj.st_qs+"&rf="+st_obj.st_rf+"&rs="+st_obj.st_rs+"&cd="+st_obj.st_cd+"&hn="+st_obj.st_hn+"&ce="+st_obj.st_ce+"&jv="+st_obj.st_jsv+"&tai="+st_obj.st_tai+"&ai="+st_obj.st_ai;
st_iXz=new Image(); st_iXz.src=st_iu;
}

//sageTrack_setVariable 
function sageTrack_setVariable(){ 
this.st_di ="d001";
this.st_dd="su.sageanalyst.net";  			
this.st_tai="v:1.2.5"; 
this.st_iu,this.st_rs,this.st_cd,this.st_rf,this.st_us,this.st_hn,this.st_qs,this.st_ce,this.st_ai="";
this.st_d=document; 
this.st_l=location;
this.st_n=navigator; 
this.st_ce=this.st_n.cookieEnabled;
this.st_ai=this.st_ai.replace(/\+/g,'%2b');
this.st_ai=this.st_ai.replace(/;/g,'%3b');
this.st_proto = "http:";
if (this.st_l.protocol == "https:") {this.st_proto = "https:";}
this.st_qs=escape(this.st_l.search.substring(1)); 
this.st_us=escape(this.st_l.pathname);
this.st_hn=this.st_l.host;
this.st_rf=escape(this.st_d.referrer);
this.st_jsv ="";
this.st_s=screen;
this.st_rs=escape(this.st_s.width+"x"+this.st_s.height);
this.st_cd=this.st_s.colorDepth;
this.st_pgtitle=escape(this.st_d.title);
this.st_pgi = escape("pgti="+this.st_pgtitle+";");
this.foxlive = function foxlive(nt){nt = nt * 1000;var sl = true;var now = new Date();var al;var sMS = now.getTime();
while(sl){al = new Date();aMS = al.getTime();if(aMS - sMS > nt){ sl = false; }
}
}
}

function st_void() {return;}
