<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function btOpenSpace_DoFSCommand(command, args) {
	var btOpenSpaceObj = isInternetExplorer ? document.all.btOpenSpace : document.btOpenSpace;
	fncSigue(command, args);
}

// 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 btOpenSpace_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call btOpenSpace_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
function button_hp_DoFSCommand(command, args) {
	var movieName ;
	var button_hpObj = isInternetExplorer ? document.all.button_hp : document.button_hp;
	fncSigue(command, args);
}
function fncSigue(command, args){
	if (args==2) {
			videoName="video"+args;
			movieName = "avisoDiv2";
		}else{
			videoName="video";
			movieName = "avisoDiv";
			}	
	if(command=='play' || command=='stop') {
		if (document.getElementById(videoName).style.display=='none'){
			document.getElementById(videoName).style.display='block';
			if(isInternetExplorer) playmovie(movieName);
		}else{
			if(isInternetExplorer) stopmovie(movieName);
			document.getElementById(videoName).style.display='none';
			}
		}
	//
}
// 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 button_hp_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call button_hp_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}


function thisMovie(nombreVideo) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.	
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[nombreVideo]
  } else {
    return document[nombreVideo]
  }
}

function playmovie(nombreVideo) {
    if (movieIsLoaded(thisMovie(nombreVideo))) {
		    thisMovie(nombreVideo).Play();
  }
}
function stopmovie(nombreVideo) {
	if (movieIsLoaded(thisMovie(nombreVideo))) {
		thisMovie(nombreVideo).StopPlay();
	}
}

function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    // If the movie isn't defined, it's not loaded.
    return false;
  }
}

//-->
