// JavaScript Document
function MM_openBrWindow2(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_abreFoto(numfoto,lengua,ancho,alto,seccion){

	MM_openBrWindow2('../fotos/photo.html?lang='+lengua+'&foto='+numfoto+'&sec='+seccion,'photo','width='+ancho+',height='+alto);
}

function gup( name )
{
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}

function buscaArrayN(numfoto){
	nofotonext = new Array(4,9,11,19,23,29,34);
	var numFound = false;
	var i = 0;
	for(i=0;i<=7;i++){	if (nofotonext[i] == numfoto){	numFound = true;	}	}
	return numFound;
}

function fotoNext(numfoto,lengua,seccion){
	var fotonumero = parseInt(numfoto);
	var nextfot = fotonumero + 1 ;
	if (buscaArrayN(fotonumero) == false){
		document.write('<a href="photo.html?lang='+lengua+'&foto='+nextfot+'&sec='+seccion+'"><img src="jpgs/flechita.gif" width="30" height="30" border="0" /></a>');
	}
}

function buscaArrayB(numfoto){
	nofotoback = new Array(1,6,11,16,21,26,31);
	var numFound = false;
	var i = 0;
	for(i=0;i<=7;i++){	if (nofotoback[i] == numfoto){	numFound = true;	}	}
	return numFound;
}


function fotoBack(numfoto,lengua,seccion){
	var fotonumero = parseInt(numfoto);
	var backfot = fotonumero - 1 ;
	if (buscaArrayB(fotonumero) == false){
		document.write('<a href="photo.html?lang='+lengua+'&foto='+backfot+'&sec='+seccion+'"><img src="jpgs/flechita2.gif" width="30" height="30" border="0" /></a>');
		}
}

function pfoto(numfot){
	linkfoto = 'foto'+numfot+'.jpg';
	document.write('<img src="jpgs/'+linkfoto+'" class="zoom"/>')
}

function pTfoto(sec){
	TfotoES = new Array();

	TfotoES[1] = 'Paneles informativos';
	TfotoES[2] = 'Sensores e indicadores';
	TfotoES[3] = 'Contador de paso';
	TfotoES[4] = 'Software de Gestión';
	TfotoES[5] = 'Paneles informativos';
	TfotoES[6] = 'Sensor, indicador y contador de paso';
	TfotoES[7] = 'Por qué elegir ParkHelp';
	TfotoES[8] = '';
	
	document.write(TfotoES[sec]);
}

function pDfoto(numfot,lang){
	DfotoES = new Array();
	DTfotoES = new Array();

DTfotoES[1] = 'TERMINAL 4 DEL AEROPUERTO DE BARAJAS (MADRID): ';	
	DfotoES[1] = 'Vista exterior del parking y los paneles informativos.';

DTfotoES[2] = 'PANEL DE GUIADO: ';		
	DfotoES[2] = 'con información de número de plazas disponibles en determinada dirección.';

DTfotoES[3] = 'PANEL DE MODULOS: ';		
	DfotoES[3] = 'con información del estado de cada uno de los módulos del Parking.';

DTfotoES[4] = 'PANEL INFORMATIVO EN LA ENTRADA DEL PARKING: ';
	DfotoES[4] = 'con el número de plazas disponibles por planta y su estado (libre está en naranja en lugar de en verde porque tiene muy pocas plazas libres, la planta o está cerrada, por lo que no hay disponibilidad de plazas).';

DTfotoES[5] = '';
	DfotoES[5] = '';

DTfotoES[6] = 'VISTA GENERAL DE UN PARKING PARKHELP: ';
	DfotoES[6] = 'luminosos del parking, los indicadores verdes muestran las plazas libres y las rojas las ocupadas.';

DTfotoES[7] = 'VISTA DE PLAZAS DE UN PARKING PARKHELP';
	DfotoES[7] = '&nbsp;';

DTfotoES[8] = 'SENSOR DE ULTRASONIDOS: ';
	DfotoES[8] = 'recoge el estado de la plaza.';

DTfotoES[9] = 'INDICADOR LUMINOSO: ';
	DfotoES[9] = 'proporciona información visual sobre el estado de la plaza mediante un código de colores.';

DTfotoES[10] = '';
	DfotoES[10] = '';

DTfotoES[11] = 'CONTADOR DE PASO: ';
	DfotoES[11] = 'contabiliza el número de vehículos que entran y salen del módulo  o del parking,';

DTfotoES[12] = '';
	DfotoES[12] = '';

DTfotoES[13] = '';
	DfotoES[13] = '';

DTfotoES[14] = '';
	DfotoES[14] = '';

DTfotoES[15] = '';
	DfotoES[15] = '';

DTfotoES[16] = 'ESTADO DE PLAZAS DEL PARKING: ';
	DfotoES[16] = 'proporciona en remoto, en tiempo real,  el nivel de  ocupación. ';

DTfotoES[17] = 'GESTION DE ESTADISTICAS: ';
	DfotoES[17] = 'herramienta muy útil con la que el operador del parking puede optimizar su gestión. Los gráficos pueden ser preestablecidos o configurados a medida según la información que se desee obtener.';

DTfotoES[18] = 'ESTADO GENERAL DEL PARKING: ';
	DfotoES[18] = 'visualiza el nivel de ocupación de los distintos módulos, y plantas del parking.';

DTfotoES[19] = 'MAPA TERMICO DE UNA PLANTA: ';
	DfotoES[19] = 'controla las diferencias de temperatura que puedan producirse.';

DTfotoES[20] = '';
	DfotoES[20] = '';

DTfotoES[21] = 'PANEL DUAL: ';
	DfotoES[21] = 'indica el número de plazas libres que hay hacia la derecha.';
	
DTfotoES[22] = DTfotoES[2];
	DfotoES[22] = DfotoES[2];

DTfotoES[23] = DTfotoES[1];
	DfotoES[23] = DfotoES[1];
	
DTfotoES[26] = DTfotoES[2];
	DfotoES[26] = DfotoES[2];
	
DTfotoES[27] = DTfotoES[7];
	DfotoES[27] = DfotoES[7];
	
DTfotoES[28] = 'INDICADOR LUMINOSO';
	DfotoES[28] = '&nbsp;';

DTfotoES[29] = 'SENSOR: ';
	DfotoES[29] = 'mediante ultrasonidos, detecta la presencia de vehículos en la plaza.';

DTfotoES[31] = 'VISTA 3D ';
	DfotoES[31] = 'de uno de los proyectos de ParkHelp realizado para ver el resultado a priori.';

DTfotoES[32] = DTfotoES[31];
	DfotoES[32] = DfotoES[31];

DTfotoES[33] = DTfotoES[31];
	DfotoES[33] = DfotoES[31];

DTfotoES[34] = DTfotoES[31];
	DfotoES[34] = DfotoES[31];

document.write('<span class="textoNormalAzul"><b>');
document.write(DTfotoES[numfot]);
document.write('</span></b>');
document.write(DfotoES[numfot]);
}
