//SPLASH REYCOMOTOR Reyco2.htm
//Hide from old browsers - Ocultar en los browsers más antiguos
//Define global variables - Definición variables globales del programa script
//
var timID = null;
var timerRunning = false;
var DataBrowser = 0;
var indexSp = -1;
//
//Check for a java-enhanced browser - Verificación de browser de java-mejorado
//Check User's Navigator Version - Revisar versión Navegador usuario
//El browser solamente se activará en Navegadores ;; Netscape >=3 ;; Microsoft Internet Explorer >=4 ;;
//En caso que el Navegador sea admisible para efectuar browser, se validará la var browserOK
var navName = navigator.appName;
var version = parseInt(navigator.appVersion);
var browserOk = (((navName == "Netscape") && (version >= 3)) || ((navName == "Microsoft Internet Explorer") && (version >= 4)));
var NetsBrows = (navName == "Netscape");
MssgA = "Configuración actual: " + "Current configuration: " + screen.Width + " x " + screen.Height + " pixels"; 
Mssg1 = "Para visualizar correctamente el Sitio Web REYCOMOTOR, se requiere una resolución mín. de pantalla de 800 x 600 pixels.";
Mssg2 = "To visualize adequately the REYCOMOTOR Web Site, a min. display resolution of 800 x 600 pixels is required.";
Mssg3 = "Para visualizar correctamente las aplicaciones REYCOMOTOR, se recomienda maximizar la ventana del navegador Internet.";
Mssg4 = "To visualize adequately the REYCOMOTOR applications, is recommended maximize the active window of Internet navigator.";
MssgB = "Navegador actual: " + "Current Navigator: " + navName + " " + version;
Mssg5 = "Las aplicaciones del Sitio Web REYCOMOTOR han sido optimizadas para la utilización de navegador Microsoft Internet Explorer versión 4.0 o sup.";
Mssg6 = "The applications of the REYCOMOTOR Web Site have been optimized for the use of Microsoft Internet Explorer navigator version 4.0 or sup.";
MssgC = "Configuración actual: " + "Current configuration: " + screen.colorDepth + " bits-per-pixel"; 
Mssg7 = "Para visualizar correctamente las aplicaciones REYCOMOTOR, se recomienda configurar la pantalla con color de alta densidad 16 bits-por-pixel.";
Mssg8 = "To visualize adequately the REYCOMOTOR applications, is recommended configure the screen with high density color 16 bits-per-pixel.";
//

if (browserOk) {
	//Se ha detectado un Navegador adecuado
	DataBrowser = 1;
}

if (screen.Width < 800) {
	window.alert(MssgA + "\n" + "\n" + Mssg1 + "\n" + "\n" + Mssg2);
}

if (screen.colorDepth < 16) {
	window.alert(MssgC + "\n" + "\n" + Mssg7 + "\n" + "\n" + Mssg8);
}

function GetIE(theURL,winName,features) { //v2.0 
	window.open(theURL,winName,features);
}

if (DataBrowser == 0) {
	//Se ha detectado un Navegador no adecuado
	window.alert(MssgB + "\n" + "\n" + Mssg5 + "\n" + "\n" + Mssg6);
	GetIE('Getie.htm','IntExpl','scrollbars=no,toolbar=no,menubar=no,status=no,width=320,height=242,top=179px,left=240px');
}

function doINI() {
	if (browserOk) {
		if (document.body.clientWidth < 780) {
			//Si la anchura de la ventana activa de Internet es inferior a 780px
			//se muestra mensaje recomendando maximizar la ventana
			window.alert(Mssg3 + "\n" + "\n" + Mssg4);
		}
		if (NetsBrows) {
			//Se ha detectado navegador Netscape
			window.alert(MssgB + "\n" + "\n" + Mssg5 + "\n" + "\n" + Mssg6);
		}
	document.all.Bars.style.visibility = 'visible';
	document.all.Bars1.style.visibility = 'visible';
	timerRunning = true;
	timID = window.setTimeout("playAnim()",1000);
	}
}

function playAnim() {
	clearTimeout(timID);
	document.all.Splash.filters[0].Apply();
	document.all.Splash.style.visibility = 'visible';
	document.all.Splash.filters[0].Play();
	timID = window.setTimeout("openAnim()",3500);
}

function openAnim() {
	clearTimeout(timID);
	timerRunning = false;
	document.all.Button1.style.visibility = 'visible';
	//Ejecuta función declarada en Geomet/Reyco2.js
	AnimaData();
}

function startAppl() {
	parent.Frame1.location.href = 'Reyco1.htm';
	parent.Frame2.location.href='Reyco.htm';
}

function stopTimer() {
	// Stop the clock - Parar el reloj
	if (timerRunning) {
		clearTimeout(timID);
		timerRunning = false;
	}
}

function OverBtn() {
	document.all.Button1.src = "Images/Btnmenu2.gif";
}

function OutBtn() {
	document.all.Button1.src = "Images/Btnmenu1.gif";
}

// End Script

// Copyright © 2004 TAESAVision Multimedia - Carlos Baztán
// Copyright © 2004 REYCOMOTOR