
sURL = document.URL;
sPageTitle = document.title;
sReferrer = document.referrer;
sIPAddress = '38.107.191.109';
bFirstVisit = false;

if( null == ( sT_ID = GetCookie("T_ID") ) )
{
	dNever = new Date();
	dNever.setFullYear(2037,12,31);
	
	sT_ID = sIPAddress + '~' + '3516620332';
	bFirstVisit = true;
	SetCookie( "T_ID", sT_ID, dNever, '/', 'www.southafricanartists.com' );
}

dVisitTermination = new Date( new Date().getTime() + (10 * 60 * 1000) );

if( null == ( sT_VID = GetCookie("T_VID") ) )
	sT_VID = '3516620332';

SetCookie( "T_VID", sT_VID, dVisitTermination, '/', 'www.southafricanartists.com' );

oImage = new Image(1,1);

oImage.src = 'http://tracker.ubiservers.net/SiteTracker.aspx'
	+ '?'
	+ 'IPAddress=' + escape( sIPAddress )
	+ '&'
	+ 'T_ID=' + escape( sT_ID )
	+ '&'
	+ 'T_VID=' + escape( sT_VID )
	+ '&'
	+ 'URL=' + escape( sURL )
	+ '&'
	+ 'PageTitle=' + escape( sPageTitle )
	+ '&'
	+ 'Referrer=' + escape( sReferrer )
	;
	
function SetCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function GetCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}
