with(document) 
{
	var counter_url = 'http://count1.gimbo.de/rycounter.php';

	script_tags = document.getElementsByTagName("script");
	n_script_tags = script_tags.length;
	for (i = 0; i < n_script_tags; i++)
	{
	   script_tag = script_tags.item(i);
	   src_attr = script_tag.getAttribute("src");
	   
	   if(src_attr != null)
	   {
		   if(src_attr.indexOf( 'counter.js?') != -1 )
		   {
		   		var attr = src_attr;
		   		break;
		   }
	   }
	}

    var channel_id = attr.split('?', '2');
    channel_id = channel_id[1];	

    var str = "referrer=" + encodeURIComponent(document.referrer) + "&user_agent=" + encodeURIComponent(navigator.userAgent) + "&location_href=" + encodeURIComponent(location.href) + '&js';
	if(channel_id != undefined)
	{
		str = 'id=' + channel_id + '&' + str;
	}

    write('<img src="' + counter_url + '?' + str + '" width="1" height="1" alt="" border="0">');
}
