//671


//document.write("<IE:HOMEPAGE ID='oHomePage' />");
var st_iu=st_rs=st_cd=st_rf=st_us=st_hn=st_qs=st_ce="";
var d=document; 
var l=location;
var n=navigator; 
st_ce=n.cookieEnabled;

st_qs=escape(l.search.substring(1)); 
st_us=escape(l.pathname);
st_hn=l.host;
st_rf=escape(d.referrer);
if(st_v==1.2) { 
	var s=screen;
	st_rs=escape(s.width+"x"+s.height);
	st_cd=s.colorDepth;
}
var st_pgtitle=escape(d.title);
var st_pgi = escape(";pgti="+st_pgtitle);
//var compHomePage = "http://www.sagemetrics.com/";
var brHome = "";
//search_hp();

st_pgi = st_pgi+escape(";hp="+brHome);


//by sxie, 7/28/2003, to test whether we can combine
//logs for d003 and d005 into logs for d004

if (st_di=="d003" || st_di=="d005") {
        st_di="d004";
}

//by sxie, 7/28/2003, this is the same as the above.
//but switch statements is impleted only in javascript 1.2
//switch (st_di) {
//   case "d003" || "d005": st_di="d004";
//   break;
//}

proto = "http:";
if (location.protocol == "https:") { 
	proto = "https:";
}
st_ai = escape(st_ai);
st_iu=proto+"//"+st_dd+"/" + (new Date()).getTime() + "/JS?ci="+st_ci+"&di="+st_di+"&pg="+st_pg+"&us="+st_us+"&qs="
+st_qs+"&rf="+st_rf+"&rs="+st_rs+"&cd="+st_cd+"&hn="+st_hn+"&ce="+st_ce+"&jv="+st_v+"&tai="+st_tai+"&ai="+st_ai+st_pgi;

var iXz=new Image(); iXz.src=st_iu;


function search_hp() {

	var a = new Array (
		'/','/index.html','/index.htm','/index.asp',
		'/index.jsp','/index.php','/index.shtml'
	);


	if (thp("http://"+st_hn+l.pathname)) return;
	for (var i=0; i < a.length; i++) {
		if (thp("http://"+st_hn+a[i])) break;
	}
	for (var i=0; i < st_hpsrch.length; i++) {
		if (thp("http://"+st_hn+st_hpsrch[i])) break;
	}

}

function thp(hp) {
	if (oHomePage.isHomePage(hp)) {
		brHome = escape(hp);
		return true;
	} else return false;
}

function sage_ev(ev) {
st_ce=n.cookieEnabled;

st_qs=escape(l.search.substring(1)); 
st_us=escape(l.pathname);
st_hn=l.host;
st_rf=escape(d.referrer);
var st_aif = escape(",ev:"+ev);
if(st_v==1.2) { 
	var s=screen;
	st_rs=escape(s.width+"x"+s.height);
	st_cd=s.colorDepth;
}

//by sxie, 7/28/2003, to test whether we can combine
//logs for d003 and d005 into logs for d004

if (st_di=="d003" || st_di=="d005") {
        st_di="d004";
}

//by sxie, 7/28/2003, this is the same as the above.
//but switch statements is impleted only in javascript 1.2
//switch (st_di) {
//   case "d003" || "d005": st_di="d004";
//   break;
//}

proto = "http:";
if (location.protocol == "https:") { 
	proto = "https:";
}
st_iu=proto+"//"+st_dd+"/" + (new Date()).getTime() + "/JS?ci="+st_ci+"&di="+st_di+"&pg="+st_pg+"&us="+st_us+"&qs="
+st_qs+"&rf="+st_rf+"&rs="+st_rs+"&cd="+st_cd+"&hn="+st_hn+"&ce="+st_ce+"&jv="+st_v+"&tai="+st_tai+"&ai="+st_ai+st_aif;
//alert(st_iu);

var iXz2=new Image(); iXz2.src=st_iu;
}

function sage_amp(type, cpid) {
sage_ev("amp=("+type+","+cpid+")");
}

