alert(command);
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function Principal_DoFSCommand(command, args) {
	var PrincipalObj = InternetExplorer ? Principal : document.Principal;
	if (command == "anyade_linea") {
		$$('.lateral_derecho').each(function(s,index) {
			s.addClassName('lateral_derecho_linea');
		});
	}
	else {
		if (command == "quita_linea") {
			$$('.lateral_derecho').each(function(s,index) {
				s.removeClassName('lateral_derecho_linea');
			});
		}
	}
	if (command == "pie_en") {
		$('pie_en').style.display = '';
		$('pie_cs').style.display = 'none';
		$('pie_fr').style.display = 'none';
	}
	else {
		if (command == "pie_cs") {
			$('pie_cs').style.display = '';
			$('pie_en').style.display = 'none';
			$('pie_fr').style.display = 'none';
		}
		else {
			if (command == "pie_fr") {
				$('pie_fr').style.display = '';
				$('pie_cs').style.display = 'none';
				$('pie_en').style.display = 'none';
			}
		}
	}
}

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 Principal_FSCommand(ByVal command, ByVal args)\n');
	document.write(' call Principal_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}
