//acmTraffic

function acm_getFlashVersion(){
 // ie
 try {
	try {

 var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
 try { axo.AllowScriptAccess = 'always'; }
 catch(e) { return '6,0,0'; }
 } catch(e) {}
 return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];
 // other browsers
 } catch(e) {
 try {
 if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
 return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];
 }
 } catch(e) {}
 }
 return '0,0,0';
} 

function acm_ParamGenerate() {
	
	var url_param = '';
	if (screen) {
		url_param+='&screenWidth='+screen.width+'&screenHeight='+screen.height+'&colDepth='+screen.colorDepth;
	}
	if (document.referrer) { 
		url_param+='&ref='+escape(document.referrer.substring(0,300));
	}
	url_param+='&href='+escape(document.location.href.substring(0,300))+'&timezone='+(new Date()).getTimezoneOffset()+'&flashver='+acm_getFlashVersion();
	
	return url_param;
}



function acm_RequestGenerate(acm_id) {

if (new String(acm_id).length > 0 ) {
	var acm_protocol;
	if(document.location.protocol) {
		
		if(document.location.protocol=='https:'){ acm_protocol='https:';}
		else { acm_protocol='http:';}	
		
		} else {
		acm_protocol = 'http:';
		}
	var acm_url = acm_protocol+'//traffic.corevide.pl/acmView.aspx?t='+(new Date()).getTime()+'&id='+acm_id+acm_ParamGenerate();

	       var acm_img=new Image();
	        acm_img.src = acm_url;

}
}

