function uh_pageViewReport( https, domain, params )
{	
    var protocol = (https ? "https" : "http");
    document.write( "<img src=\""+ protocol +":\/\/"+ domain +"/c.png?"+ Math.random() + params +"\"></img>" );
}

function uh_isHttps()
{
    var rx = /(http[s]?)/;
    var res = rx.exec( document.URL );
    if( res == null || res[1] == "http" )
    {
        return false;
    }
    else
    {
        return true;
    }
}

function uh_capturePageView( tag )
{
	if( window.uh_key )
	{
		var params = "&uh_key="+ escape(window.uh_key) +"&referrer="+ escape(document.referrer) +"&url="+ escape(document.URL);
		var domain = 't1.userheat.co.uk';
		if( window.uh_domain ) domain = window.uh_domain;
		uh_pageViewReport( uh_isHttps(), domain, params );
	}
}

uh_capturePageView( null );

