var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function a2_DoFSCommand(command, args) {
	setTimeout('openWindow('+command+');',400);
}

function openWindow(command){
	var nombreVentana="ventana";
	var opciones="statusbar=0,toolbar=0,locationbar=0,directories=0,menubar=0,resizable=0,width=380,height=100,titlebar=0,personalbar=0";
	var URL = "reproductor.htm?v=" + command;
	window.open(URL,nombreVentana,opciones);
}

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 a2_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call a2_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
