function MostrarVisor()
{
    var x=document.getElementsByTagName("div");

    for (var i=0; i<x.length; i++)
   { 
        if (x[i].className=="ocultar" ||  x[i].className=="controles ocultar")
           x[i].className="";
    }    
}
function getMensajes(incrementoVolumen,busquedaVideo,idioma)
{
	var mensajes;
	
	if (idioma=="es_ES" || idioma=="es")
		mensajes = getMensajes_Es(incrementoVolumen,busquedaVideo);
	else if (idioma=="en_US" || idioma=="en")
		mensajes = getMensajes_En(incrementoVolumen,busquedaVideo);
	else
		mensajes = getMensajes_Es(incrementoVolumen,busquedaVideo);
	
	
	return mensajes;
		
}
function getMensajes_Es(incrementoVolumen,busquedaVideo)
{
	var mensajes = new Array();
	mensajes['existe_sonido']  = "El vídeo ya tiene sonido";
	mensajes['volumen_maximo'] = "El vídeo ya se está reproduciendo al volumen máximo";
	mensajes['volumen_minimo'] = "El vídeo se está reproduciendo al volumen mínimo";
	mensajes['avance_maximo']  = "No se puede avanzar más, ya que si avanza supera la duración del vídeo";
	mensajes['avance_minimo']  = "No se puede retroceder más, está en el inicio del vídeo";
	mensajes['error'] = "Ha ocurrido un error";
	mensajes['tituloControles'] = "Controles";
	mensajes['reproducir'] = "Reproducir";
	mensajes['pausar'] = "Pausar";
	mensajes['parar'] = "Parar";
	mensajes['silenciar'] = "Silenciar";
	mensajes['sonido'] = "Sonido";
	mensajes['aumentarvolumen'] = "Aumentar volumen";
	mensajes['bajarvolumen'] = "Bajar volumen";
	mensajes['avanzar'] = "Avanzar";
	mensajes['retroceder'] = "Retroceder";
	mensajes['tituloInformacion']= "Información de la reproducción";
	mensajes['volumenactual']= "Volumen actual del vídeo:";
	mensajes['duraciontotal']= "Duración Total del vídeo:";
	mensajes['duraciontranscurrida'] = "Duración transcurrida:";
	mensajes['informacionAumentarVolumen'] = "Al pulsar sobre 'Aumentar volumen', el volumen aumentará en " +incrementoVolumen;
	mensajes['informacionBajarVolumen'] = "Al pulsar sobre 'Bajar volumen', el volumen bajará en " +incrementoVolumen;
	mensajes['informacionAvanzar'] = "Al pulsar sobre 'Avanzar', la reproducción del vídeo avanzará en " + busquedaVideo + " segundos";
	mensajes['informacionRetroceder'] = "Al pulsar sobre 'Retroceder', la reproducción del vídeo retrocerá en " + busquedaVideo + " segundos";
	
	
	mensajes['altReproducir'] = "Reproducir";
	mensajes['altPause'] = "Parar";
	mensajes['altFordward'] = "Avanzar";
	mensajes['altBack'] = "Retroceder";
	mensajes['altSound'] = "Volumen:";
	mensajes['altSubir'] = "Subir sonido en " + incrementoVolumen;
	mensajes['altBajar'] = "Bajar sonido en " + incrementoVolumen;
	mensajes['altMute']  = "Silenciar";
	mensajes['tiempoTranscurrido'] = "Tiempo transcurrido:";
	mensajes['tiempoTotal'] = "Tiempo total:" ;
	mensajes['segundos'] = " "+ busquedaVideo+ " segundos";
	mensajes['noavance'] = "No se puede avanzar ya que se supera la duración del vídeo";
	mensajes['noretroceso'] = "No se puede retroceder ya que se alcanza el principio del vídeo";
	mensajes['quitarsilencio'] = "Quitar silencio";
	mensajes['formato'] = "Formato tiempo hh:mm:ss";
	mensajes['avanzarDeshabilitado'] = "Avanzar Deshabilitado";
	mensajes['retrocederDeshabilitado'] = "Retroceder Deshabilitado";
	
	return mensajes;
}
function getMensajes_En(incrementoVolumen,busquedaVideo)
{
	var mensajes = new Array();
	mensajes['existe_sonido']  = "The video has sound";
	mensajes['volumen_maximo'] = "The video is already playing at maximum volume";
	mensajes['volumen_minimo'] = "The video is playing the minimum amount";
	mensajes['avance_maximo']  = "You can not go any further, because if it advances beyond the duration of the video";
	mensajes['avance_minimo']  = "You can not go back again, is at the beginning of the video";
	mensajes['error'] = "An error occurred";
	mensajes['tituloControles'] = "Controls";
	mensajes['reproducir'] = "Play";
	mensajes['pausar'] = "Pause";
	mensajes['parar'] = "Stop";
	mensajes['silenciar'] = "Mute";
	mensajes['sonido'] = "Sound";
	mensajes['aumentarvolumen'] = "Volume Up";
	mensajes['bajarvolumen'] = "Volume Down";
	mensajes['avanzar'] = "Forward";
	mensajes['retroceder'] = "Back";
	mensajes['tituloInformacion']= "Video information";
	mensajes['volumenactual']= "Current volume video:";
	mensajes['duraciontotal']= "Total Video Length:";
	mensajes['duraciontranscurrida'] = "Elapsed duration:";
	mensajes['informacionAumentarVolumen'] = "By clicking on 'Volume', volume increase in " +incrementoVolumen;
	mensajes['informacionBajarVolumen'] = "By clicking on 'Volume Down', the volume will in " +incrementoVolumen;
	mensajes['informacionAvanzar'] = "By clicking on 'Forward', the video playback will advance in " + busquedaVideo + " seconds";
	mensajes['informacionRetroceder'] = "By clicking on 'Back' video back  in " + busquedaVideo + " seconds";
	
	
	mensajes['altReproducir'] = "Play";
	mensajes['altPause'] = "Pause";
	mensajes['altFordward'] = "Fordward";
	mensajes['altBack'] = "Back";
	mensajes['altSound'] = "Volume:";
	mensajes['altSubir'] = "Volume Up";
	mensajes['altBajar'] = "Volume Down";
	mensajes['altMute']  = "Mute";
	mensajes['tiempoTranscurrido'] = "Time elapsed:";
	mensajes['tiempoTotal'] = "Total time:"
	mensajes['segundos'] =  " "+busquedaVideo+" seconds";
	mensajes['noavance'] = "You can not advance because it exceeds the length of video";
	mensajes['noretroceso'] = "You can not go back as it reaches the beginning of the video";
	mensajes['quitarsilencio'] = "Unmute";
	mensajes['formato'] = "Format time hh:mm:ss";
	
	mensajes['avanzarDeshabilitado'] = "Fordward Disabled";
	mensajes['retrocederDeshabilitado'] = "Back Disabled";
	
	return mensajes;
}

