//-- Tracking module v0.0.8
//-- Copyright 2007 zoo, All Rights Reserved.
function ztc(){
	ref = document.referrer; 
	src = document.domain;
	nom = document.title;
	scX = screen.width;
	scY = screen.height;
	scC = screen.colorDepth;
	nav = navigator.userAgent;
	navL = navigator.language;
	
	//deteccio versio flash
	if (navigator.plugins && navigator.plugins.length){
		x = navigator.plugins["Shockwave Flash"];
		fls = x.description;
	} else if (navigator.mimeTypes && navigator.mimeTypes.length){
			x = navigator.mimeTypes['application/x-shockwave-flash'];
			if (x && x.enabledPlugin){
				fls = "Flash enabled";
			}else{
				fls = "Flash not enabled";
			}
	}  else {
			MSDetect = "true";
			navL = navigator.systemLanguage
	}
	 document.write(
		'<SCRIPT LANGUAGE="VBScript">' + '\n' +
		'on error resume next' + '\n' +
		'If MSDetect = "true" Then' + '\n' +
		'	For i = 2 to 10' + '\n' +
		'		If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then' + '\n' +
		'		Else' + '\n' +
		'			flashinstalled = 2' + '\n' +
		'			fls = i' + '\n' +
		'		End If' + '\n' +
		'	Next' + '\n' +
		'End If' + '\n' +
		'If flashinstalled = 0 Then' + '\n' +
		'	flashinstalled = 1' + '\n' +
		'End If' + '\n' +
		'<\/SCRIPT>'
  );
	
	// sortida info
	sortida = 	"?zac="+escape(zac)
	sortida += 	"&ref="+escape(ref)
	sortida += 	"&src="+src
	sortida += 	"&scX="+scX
	sortida += 	"&scY="+scY
	sortida += 	"&scC="+scC
	sortida += 	"&nom="+escape(nom)
	sortida += 	"&nav="+escape(nav)
	sortida += 	"&navL="+navL
	sortida += 	"&fls="+escape(fls)
	
	// pel desenvolupament	
	// alert(typeof dev)
	if(typeof( window[ 'dev' ] ) != "undefined" ){
		sortida += "&dev=true"
		document.write(sortida+"<br>");
		
	}
	//info server 
	img="http://www.zoodns.net/oc/imatge.php"
	imgHtml = "<img src='"+img+sortida+"'>";

	document.write(imgHtml)
	
}
