d = document;

/////////////////////////////////////////////////////////////////////////////////////
//	GET THE USER-ID
/////////////////////////////////////////////////////////////////////////////////////

function GetID(TheID)
    {
UserID	= "";
Key 	= "";

	for(q = 0; q < TheID.length; q += 2)
		{
	UserID = parseInt(TheID.substr(q,[2])) + 23;
	UserID = unescape('%' + UserID.toString(16));
	Key += UserID;
		}

UserID = unescape(Key);
return UserID;
	}

UserID1 = GetID('77869224958292829376889487932476808224938286789123898189');
UserID2 = GetID('778692249582928293768894879324768082247688948793789123898189');
UserID3 = GetID('77869224958292829376889487932476808224929374939923898189');

/////////////////////////////////////////////////////////////////////////////////////
//	(ALWAYS) WRITE THE TIMER-COUNTER IMAGE
/////////////////////////////////////////////////////////////////////////////////////

function WriteCountt()
	{
d.write('<img src="" width="1" height="1" alt="" style="display:block;position:absolute;margin:-1px;" id="Timer" />');
	}

function Timerr(TimerBook)
	{
d.getElementById("Timer").src = UserID1+"?b="+TimerBook+"&i="+(new Date()).getTime();
TheTimerBook = TimerBook;setTimeout('Timerr(TheTimerBook)',30000); // refresh after 30 secs
	}

/////////////////////////////////////////////////////////////////////////////////////
//	(ALWAYS) WRITE THE PAGE-COUNTER IMAGE
/////////////////////////////////////////////////////////////////////////////////////

function Countt(CounterBook,VisitType,VisitActive)
	{
TheString = 'b='+CounterBook+'&t='+VisitType+'&a='+VisitActive;
d.write('<img src="'+UserID2+'?'+TheString+'" width="1" height="1" alt="" style="display:block;position:absolute;margin:-1px;" id="PageCount" />');
	}
	
/////////////////////////////////////////////////////////////////////////////////////
//	(ONCE) WRITE THE UNIQUE-VISITORS-COUNTER IMAGE
/////////////////////////////////////////////////////////////////////////////////////

function Coundt()
	{
/////////////////////////////////////////////////////////////////////////////////////
//	GET SCREEN-SETTINGS
/////////////////////////////////////////////////////////////////////////////////////

	ScreenColor  = window.screen.colorDepth;
	ScreenWidth  = screen.width;
	ScreenHeight = screen.height;

/////////////////////////////////////////////////////////////////////////////////////
//	GET THE REFERRER-PAGE
/////////////////////////////////////////////////////////////////////////////////////

	Referrer = d.referrer;if(Referrer == null || Referrer == '')Referrer = 0;
	
	for(qq = 0; qq < Referrer.length; qq ++)
		{
	Referrer = Referrer.replace('?', '^^^');
	Referrer = Referrer.replace('&', '~~~');
	Referrer = Referrer.replace('"', '|||');
	Referrer = Referrer.replace(' ', '%20');
		}

TheString = 's='+ScreenWidth+'x'+ScreenHeight+'&c='+ScreenColor+'&r='+Referrer;
d.write('<img src="'+UserID3+'?'+TheString+'" width="1" height="1" alt="" style="display:block;position:absolute;margin:-1px;" id="UniqueCount" />');
	}