
// write image html
document.write("<div style='display:block'><img id='mdbStatisticsImage' name='mdbStatisticsImage' width=1 height=1 vspace=0 hspace=0></div>");
// collect function
function mdbStatisticsStart(siteKey, siteSessionId)
{
	var imageUrl = "http://www.twenty-twenty.net/mdb/statistics;jsessionid=a6E6JMdnG-ad";
	imageUrl+="?";
	imageUrl+="siteSession="+escape(siteSessionId)+"&";
	imageUrl+="siteKey="+escape(siteKey)+"&";
	imageUrl+="referrer="+escape(document.location.href)+"&";
	return imageUrl;
}
function mdbStatisticsAdd(imageUrl, statName, statValue)
{
	imageUrl+= trim(statName) + "=" + escape(statValue) + "&";
	return imageUrl;
}
function mdbStatisticsFinish(imageUrl)
{
	imageUrl+="random.key="+escape(Math.random());
	var img;
	if(document.getElementById)
	{
		img = document.getElementById("mdbStatisticsImage");
	} else if(document.all)
	{
		img = document.all.mdbStatisticsImage;
	} else if(document.images)
	{
		img = document.images["mdbStatisticsImage"];
	}

	img.src = imageUrl;
}
function trim(str)
{
	return str.replace(/^\s+|\s+$/g,'');
}


