function ReadCookie(cookieName) {
    var theCookie=""+document.cookie;
    var ind=theCookie.indexOf(cookieName);
    if (ind==-1 || cookieName=="") return ""; 
    var ind1=theCookie.indexOf(';',ind);
    if (ind1==-1) ind1=theCookie.length; 
    return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
}


function DD()
{
var n = new Date();
var sTimezone = n.getTimezoneOffset();
var sWidth=screen.width;
var sHeight=screen.height;
var sApp=navigator.appName;
var sReferrer=""+escape(document.referrer);
var sLocation=""+escape(document.URL);

var _sLocation = unescape(sLocation);
_sLocation = _sLocation.replace(/[?]rnd=[^&]*&/, "?");
_sLocation = _sLocation.replace(/[?]rnd=[^&]*/, "");
_sLocation = _sLocation.replace(/[&]rnd=[^&]*/, "");
sLocation = escape(_sLocation);

var sColor=0;
if (sApp!="Netscape") sColor=screen.colorDepth;
else sColor=screen.pixelDepth;
var sImgUrl = "http://www.domodomain.com/Domodomain/Sensor/DDWebSensor.aspx";
var sThisPage = ''+window.location;
if (sThisPage.match('^https'))
	sImgUrl = 'https'+sImgUrl.substring(4);
document.write(
	"<div id=\"Layer2\" style=\"position:absolute;\"><img src=\""+sImgUrl+"?id=1d04043f-3c73-45bf-ad9b-a0bfa5e49c3d&keywords="+
	"&rnd="+Math.random()+
	"&location="+sLocation+
	"&referrer="+sReferrer+
	"&cookie="+ReadCookie('DDCookie')+
	"&color="+sColor+
	"&width="+sWidth+
	"&height="+sHeight+
	"&timezone="+sTimezone+
	"\" width=\"1\" height=\"1\" ></div>"); 
}

function DD2()
{
var n = new Date();
var sTimezone = n.getTimezoneOffset();
var sWidth=screen.width;
var sHeight=screen.height;
var sApp=navigator.appName;
var sReferrer=""+escape(document.referrer);
var sLocation=""+escape(document.URL);
var sColor=0;
if (sApp!="Netscape") sColor=screen.colorDepth;
else sColor=screen.pixelDepth;
var sImgUrl = "xXx";
var sThisPage = ''+window.location;
if (sThisPage.match('^https'))
	sImgUrl = 'https'+sImgUrl.substring(4);
document.write(
	"<div id=\"Layer2\" style=\"position:absolute;\"><img src=\""+sImgUrl+"?id=1d04043f-3c73-45bf-ad9b-a0bfa5e49c3d&keywords="+
	"&rnd="+Math.random()+
	"&location="+sLocation+
	"&referrer="+sReferrer+
	"&cookie="+ReadCookie('DDCookie')+	
	"&color="+sColor+
	"&width="+sWidth+
	"&height="+sHeight+
	"&timezone="+sTimezone+
	"\" width=\"1\" height=\"1\" ></div>"); 
}

DD();
// DD2();