var offSec="http://eitb24.ojdinteractiva.com/cgi-bin/ivw/CP/flash";
var offSec2="http://eitbglobal.ojdinteractiva.com/cgi-bin/ivw/CP/flash";
var imagennielsen="//secure-uk.imrworldwide.com/cgi-bin/m?ci=es-eitb&amp;cg=0&amp;cc=1";

function crearFuncionesOJDFlash(sIdFlash){
	// Hook for Internet Explorer
	if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
		navigator.userAgent.indexOf("Windows") != -1 && 
		navigator.userAgent.indexOf("Windows 3.1") == -1) {
			document.write('<script language=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('Sub '+sIdFlash+'_FSCommand(ByVal command, ByVal args)\n');
			document.write(' call '+sIdFlash+'_DoFSCommand(command, args)\n');
			document.write('end sub\n');
			document.write('</script\> \n');
		}
	
	document.write('<script language="JavaScript"\> \n');
	document.write('function '+sIdFlash+'_DoFSCommand(command, args){\n');
	document.write('runDoFSCommand(command, args);}\n');
	document.write('</script\> \n');
			
}

// Handle all the the FSCommand messages in a Flash movie
function runDoFSCommand(command, args) {
	//alert("command=" & command);
	if(command == "pageOpend") {
		img 		= new Image();
		img2 		= new Image();
		img.src		= offSec+"/"+args;
		img2.src	= offSec2+"/"+args;
		
			//modificar nielsen
		pixelnielsen = new Image(); 
 		pixelnielsen.src = imagennielsen; 
		//alert(img.src);
		//alert(img2.src);
	}
}
