
/**
 * Gets browser info for traffic
 * -------------------------------------
 * Copyright Plum Digital Media Ltd, 2004. Nick Nettleton 2003. 
 * All rights reserved.
 * 3.3.0
 */

try{

var traffic_base_url ;
var agt = navigator.userAgent.toLowerCase() ;
function traffic_detect_plugin(ie_name, ns_name, mimetype)
{
	if(ie_name && agt.indexOf('msie') != -1 && agt.indexOf('win') != -1){
		detect_result = false;
		execScript('on error resume next: detect_result = IsObject(CreateObject("' + ie_name + '"))','VBScript');
		return detect_result ? 1:0 ;
	}
	var n = navigator ;
	if(ns_name && n.plugins && n.plugins.length && n.plugins[ns_name]){
		return true ;
	}
	if(mimetype && n.mimeTypes && n.mimeTypes.length && n.mimeTypes[mimetype]){
		return true ;
	}
	return false ;
}

function traffic_flash_version()
{
	var n = navigator ;
	if(n.plugins && n.plugins.length && n.plugins['Shockwave Flash']){
		var desc = n.plugins['Shockwave Flash'].description ;
		if(desc) return desc.charAt(desc.indexOf('.')-1);
	}
	if(!document.all) return 0 ;
	flash_version_result = false ;
	for(var i = 15; i >= 3 ; i--){
		execScript('on error resume next: flash_version_result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
		if(flash_version_result) return i ;
	}
	return 0 ;
}

var url	= traffic_base_url + '&'
	+ 'javascript=1&'
	+ 'cookies=' + (document.cookie ? 1:0) + '&'
	+ 'frames=' + (window.frames ? 1:0) + '&'
	+ 'screen_size=' + (screen.width) + '+x+' + (screen.height) + '&'
	+ 'screen_available_size=' + (screen.availWidth) + '+x+' + (screen.availHeight) + '&'
	+ 'screen_colour_depth=' + ((navigator.appName == 'Netscape') ? screen.pixelDepth : screen.colorDepth) + '&'
	+ 'java=' + (navigator.javaEnabled() ? 1:0) + '&'
	+ 'flash_version=' + traffic_flash_version() + '&'
	// these are causing nasty messages in some browsers, ugh
	// + 'shockwave=' + detect_plugin('SWCtl.SWCtl.1', '', 'application/x-director') + '&'
	// + 'quicktime=' + traffic_detect_plugin('QuickTimeCheckObject.QuickTimeCheck.1', '', 'video/quicktime') + '&'
	// + 'windowsmedia=' + traffic_detect_plugin('MediaPlayer.MediaPlayer.1', '', 'application/x-mplayer2') + '&'
	// + 'pdf=' + detect_plugin('PDF.PdfCtrl.4', '', 'application/pdf') + '&'
	;
document.write('<img src="' + url + '" alt="" width="1" height="1" />') ;

}catch(e){}