// 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){
	TfotoEN = new Array();

	TfotoEN[1] = 'Informative panels';
	TfotoEN[2] = 'Sensors and Indicators';
	TfotoEN[3] = 'Entry Counter';
	TfotoEN[4] = 'Management Software';
	TfotoEN[5] = 'Informative Panels';
	TfotoEN[6] = 'Sensor, indicator and entry counter';
	TfotoEN[7] = 'Why choose ParkHelp';
	TfotoEN[8] = '';
	TfotoEN[9] = '';
	TfotoEN[10] = '';
	TfotoEN[12] = '';
	TfotoEN[13] = '';
	TfotoEN[14] = '';
	TfotoEN[15] = '';
	TfotoEN[16] = '';
	TfotoEN[17] = '';
	TfotoEN[18] = '';
	TfotoEN[19] = '';
	TfotoEN[20] = '';
	TfotoEN[21] = '';
	
	document.write(TfotoEN[sec]);
}

function pDfoto(numfot,lang){
	DfotoEN = new Array();
	DTfotoEN = new Array();

DTfotoEN[1] = 'TERMINAL 4 AT BARAJAS AIRPORT (MADRID-SPAIN): ';	
	DfotoEN[1] = 'External view of the car park and informative panels.';

DTfotoEN[2] = 'GUIDE PANEL: ';		
	DfotoEN[2] = 'with information about the number of available spaces in a specific direction.';

DTfotoEN[3] = 'MODULE PANEL: ';		
	DfotoEN[3] = 'with information on the state of each car park module.';

DTfotoEN[4] = 'INFORMATIVE PANEL IN THE CAR PARK ENTRANCE: ';
	DfotoEN[4] = 'with the number of available spaces on each floor and their status (“libre=free” in orange instead of green indicate that there are only a few free spaces, “cerrado” means the floor is closed or “complete” that there are no available spaces).';

DTfotoEN[5] = '';
	DfotoEN[5] = '';

DTfotoEN[6] = 'GENERAL VIEW OF A PARKHELP CARPARK: ';
	DfotoEN[6] = 'car park lights, the green indicators show free spaces and the red ones show occupied spaces.';

DTfotoEN[7] = 'VIEW OF SPACES IN A PARKHELP CAR PARK';
	DfotoEN[7] = '&nbsp;';

DTfotoEN[8] = 'ULTRASOUND SENSORS: ';
	DfotoEN[8] = 'records the status of a space.';

DTfotoEN[9] = 'ILLUMINATED INDICATOR: ';
	DfotoEN[9] = 'provides visual information on the space status via colour coding.';

DTfotoEN[10] = '';
	DfotoEN[10] = '';

DTfotoEN[11] = 'ENTRY COUNTER: ';
	DfotoEN[11] = 'counts the number of vehicles that enter and exit the floor, the module or car park.';

DTfotoEN[12] = '';
	DfotoEN[12] = '';

DTfotoEN[13] = '';
	DfotoEN[13] = '';

DTfotoEN[14] = '';
	DfotoEN[14] = '';

DTfotoEN[15] = '';
	DfotoEN[15] = '';

DTfotoEN[16] = 'STATUS OF PARKING SPACES: ';
	DfotoEN[16] = 'provides information about the level of occupation, remotely and in real time. ';

DTfotoEN[17] = 'STATISTIC MANAGEMENT: ';
	DfotoEN[17] = 'useful tool that can be used by the car park operator in order to optimize management. The graphics can be present to the desired degree according to the type of information that is needed.';

DTfotoEN[18] = 'GENERAL CAR PARK STATE: ';
	DfotoEN[18] = 'visualizes the level of occupation of the different module and floors of the car park.';

DTfotoEN[19] = 'THERMAL FLOOR MAP: ';
	DfotoEN[19] = 'controls the differences in temperature that can occur.';

DTfotoEN[20] = '';
	DfotoEN[20] = '';

DTfotoEN[21] = 'DUAL PANEL: ';
	DfotoEN[21] = 'indicates the number of free spaces that there are to the right.';
	
DTfotoEN[22] = DTfotoEN[2];
	DfotoEN[22] = DfotoEN[2];

DTfotoEN[23] = DTfotoEN[1];
	DfotoEN[23] = DfotoEN[1];
	
DTfotoEN[26] = DTfotoEN[2];
	DfotoEN[26] = DfotoEN[2];
	
DTfotoEN[27] = DTfotoEN[7];
	DfotoEN[27] = DfotoEN[7];
	
DTfotoEN[28] = 'ILLUMINATED INDICATOR: ';
	DfotoEN[28] = '&nbsp;';

DTfotoEN[29] = 'SENSOR:';
	DfotoEN[29] = 'using ultrasound, it detects the presence of vehicles in a parking space.';

DTfotoEN[31] = '3D VIEW ';
	DfotoEN[31] = 'of one of the ParkHelp projects carried out to see previous results.';

DTfotoEN[32] = DTfotoEN[31];
	DfotoEN[32] = DfotoEN[31];

DTfotoEN[33] = DTfotoEN[31];
	DfotoEN[33] = DfotoEN[31];

DTfotoEN[34] = DTfotoEN[31];
	DfotoEN[34] = DfotoEN[31];

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