	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}
	MM_reloadPage(true);

	function abrirFlash2() {		
		window.open("/flash/demo/demo.php", "popWindow", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=812, height=694")	
	}
	function abrirFlash() {			
		window.open("/flash/demo.php", "popWindow", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=812, height=694")	 }
	function borraCampoLogin(){
		if( document.getElementById('login_name').value=='login' ){ document.getElementById('login_name').value=''; };
	}	
	function borraCampoPass(){
		if( document.getElementById('login_pass').value=='password' ){ document.getElementById('login_pass').value=''; };
	}			

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function cabeceraSWF_DoFSCommand(command, args) {
	if ( command == "abrirflashwd" ) {
		abrirFlash();
	}
	if ( command == "abrirflashtv" ) {
		abrirFlash2();
	}	
}

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 cabeceraSWF_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call cabeceraSWF_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}