<!--
//Navigation rollovers with respective animation
imgarrayGlobal = new Array();
function imgCatch(imgsrc){
	imgarrayGlobal[imgarrayGlobal.length] = new Image();
	imgarrayGlobal[imgarrayGlobal.length-1].src = imgsrc;
}


function globalNav(bImageName,bImageNumber,aImageName,aImageNumber,aSec){
	document.images[bImageName].src = imgarrayGlobal[bImageNumber].src;
	document.images[aImageName].src = imgarrayGlobal[aImageNumber].src;
}
//Academias
imgCatch("fotos/but_academias_on.gif"); //0
imgCatch("fotos/but_academias_off.gif"); //1
imgCatch("fotos/anm_academias_off.gif"); //2
imgCatch("fotos/anm_academias_on.gif"); //3
//situaciones
imgCatch("fotos/but_situaciones_on.gif"); //4
imgCatch("fotos/but_situaciones_off.gif"); //5
imgCatch("fotos/anm_situaciones_on.gif"); //6
imgCatch("fotos/anm_situaciones_off.gif"); //7
//Curiosidades
imgCatch("fotos/but_curiosidades_on.gif"); //8
imgCatch("fotos/but_curiosidades_off.gif"); //9
imgCatch("fotos/anm_curiosidades_on.gif"); //10
imgCatch("fotos/anm_curiosidades_off.gif"); //11
//mcd text
imgCatch("fotos/but_telefonos_on.gif"); //12
imgCatch("fotos/but_telefonos_off.gif"); //13
imgCatch("fotos/anm_telefonos_on.gif"); //14
imgCatch("fotos/anm_telefonos_off.gif"); //15
//aeropuertos
imgCatch("fotos/but_aeropuertos_on.gif"); //16
imgCatch("fotos/but_aeropuertos_off.gif"); //17
imgCatch("fotos/anm_aeropuertos_on.gif"); //18
imgCatch("fotos/anm_aeropuertos_off.gif"); //19
//bigbag
imgCatch("fotos/but_bigbag_on.gif"); //20
imgCatch("fotos/but_bigbag_off.gif"); //21
imgCatch("fotos/anm_bigbag_on.gif"); //22
imgCatch("fotos/anm_bigbag_off.gif"); //23
//tarifas
imgCatch("fotos/but_tarifas_on.gif"); //24
imgCatch("fotos/but_tarifas_off.gif"); //25
imgCatch("fotos/anm_tarifas_on.gif"); //26
imgCatch("fotos/anm_tarifas_off.gif"); //27
//metro
imgCatch("fotos/but_metro_on.gif"); //28
imgCatch("fotos/but_metro_off.gif"); //29
imgCatch("fotos/anm_metro_on.gif"); //30
imgCatch("fotos/anm_metro_off.gif"); //31

//blank for other sections
imgCatch("fotos/img_homenav_curve.gif"); //32
imgCatch("fotos/but_trabajos_on.gif"); //33
imgCatch("fotos/but_trabajos_off.gif"); //34
imgCatch("fotos/anm_trabajos_on.gif"); //35
imgCatch("fotos/anm_trabajos_off.gif"); //36

//Sidenavigation
menu = new Image();
menu.src = "fotos/menu_ON.gif";
menu2 = new Image();
menu2.src = "fotos/menu_OFF.gif";

function menuOn(menu) {
		if (document.getElementById) document.getElementById(menu).style.backgroundImage = 'url(fotos/menu_ON.gif)';
}
function menuOut(menu) {
//var activeSubSec = document.hid_activeSec.hid_subNavFunc.value;
	if(activeSubSec == menu){
		if (document.getElementById) document.getElementById(menu).style.backgroundImage = 'url(fotos/menu_ON.gif)';
	} else{
		if(document.getElementById) document.getElementById(menu).style.backgroundImage = 'url(fotos/menu_OFF.gif)';
	}
}

//setting Sidenavigation text position on Browser resolution
function sideNavPos(layerID,xPos,vPos){
//detecting situaciones Platform
var pFormsituaciones = navigator.platform;
var psituaciones = pFormsituaciones.substring(0,3);
if(psituaciones == "situaciones"){
	situaciones = "1"
}
else{
situaciones = "0"
}
//browser detection
var ns = (document.layers)? 1:0
var ie = (document.all && !document.getElementById)? 1:0
var ie5 = (document.all && document.getElementById)? 1:0
var ns6 = (!document.all && document.getElementById)? 1:0

//window resolution
if(ie || ie5) var winWidth = document.body.scrollWidth;
if(ns || ns6) var winWidth = window.innerWidth;

//	alert(winWidth)

//Layer old X position
hoPos = parseInt(xPos)

//setting layer position
var sideNavWidth = Math.round((parseInt(winWidth)-745)/2);

//Moving text on to it's buttons
if(ns)document.layers[layerID].xpos = sideNavWidth+hoPos;
if(situaciones == "1"){
	if(ie5)document.all[layerID].style.left = hoPos;
	if(ie5)document.all[layerID].style.top = vPos;
}
else{
	if(ie5){document.all[layerID].style.left = sideNavWidth+hoPos;
	}
}
if(ns6)document.getElementById(layerID).style.left = sideNavWidth+hoPos;
}
function layerCall(){
//this is a blank function
}
//pdf for Academias
function nutrition(){
myWindow = window.open("","windowRef","width=620,height=420,resizable=yes");
myWindow.location.href = "/academias/img/NutritionOct02.pdf";
if (!myWindow.opener) myWindow.opener = self;
function donothing() {;}
}
//--!>


//NNNNNNNNNNNNNNNNNNNN apartir de aqui son todas mias NNNNNNNNNNNNNNNNNNNNNN


function OpenCouncilTax() 
{ 
myWindow = window.open("http://www.voa.gov.uk/council_tax/", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
} 

function OpenYell() 
{ 
myWindow = window.open("http://www.yell.com/ucs/UcsSearchAction.do?ssm=0&scrambleSeed=26630010&keywords=english+school&companyName=&location=oxford+street&x=0&y=0&M=0", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
} 


function OpenCallan() 
{ 
myWindow = window.open("http://www.callan.co.uk/contact_school.html", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
} 


function OpenEuropa15() 
{ 
myWindow = window.open("http://www.telefonicaonline.com/on/onTOFichaProducto/0,,v_segmento%2BAHOG%2Bv_idioma%2Bes%2Bv_producto%2B23440%2Bv_correspondencia%2BAHOG%2Bv_procede%2Bqgo,00.html", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenOrange() 
{ 
myWindow = window.open("http://www.orange.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenTMobile() 
{ 
myWindow = window.open("http://www.t-mobile.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenVodafone() 
{ 
myWindow = window.open("http://www.vodafone.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenO2() 
{ 
myWindow = window.open("http://www.o2.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenThree() 
{ 
myWindow = window.open("http://www.three.co.uk/Mobile_Broadband/Pay_As_You_Go", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenCRight() 
{ 
myWindow = window.open("http://www.tulondres.com/cright.htm", "window", "width=512,height=450,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  
  

function OpenMeridian() 
{ 
myWindow = window.open("http://www.meridiancollege.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenEngCollege() 
{ 
myWindow = window.open("http://www.englishcollegelondon.com", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenOxford() 
{ 
myWindow = window.open("http://www.1stoxfordcollege.com", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenCityColl() 
{ 
myWindow = window.open("http://www.londoncitycollege.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenWillamColl() 
{ 
myWindow = window.open("http://www.williamscollege.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenVictoriaColle() 
{ 
myWindow = window.open("http://www.victoriacollege.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenEdenColle() 
{ 
myWindow = window.open("http://www.edenhouse.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  

function OpenMayfairColl() 
{ 
myWindow = window.open("http://www.mayfairschool.co.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}  


function OpenMetro() 
{ 
myWindow = window.open("http://www.thetube.com", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenBus() 
{ 
myWindow = window.open("http://www.transportforlondon.gov.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}


function OpenNus() 
{ 
myWindow = window.open("http://www.nus.org.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}



function OpenNHS() 
{ 
myWindow = window.open("http://www.nhs.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenSueldos() 
{ 
myWindow = window.open("http://www.berr.gov.uk/files/file48128.pdf", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenJobCentrePlus() 
{ 
myWindow = window.open("http://www.jobcentreplus.gov.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}


function OpenInlandRevenue() 
{ 
myWindow = window.open("http://www.inlandrevenue.gov.uk", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}


function OpenLevelhotel() 
{ 
myWindow = window.open("http://www.levelhotel.com", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenEInicio() 
{ 
myWindow = window.open("http://www.einicio.com", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}

function OpenEltiempo() 
{ 
myWindow = window.open("http://news.bbc.co.uk/weather/forecast/8d", "window", "width=512,height=384,location=yes,menubar=yes,personalbar=yes,resizable=yes,scrollbars=yes,toolbar=yes"); 
myWindow.focus(); 
}



// ZOOM DEL PLANO DE METRO


var zoomfactor=0.05 //Enter factor (0.05=5%)

function zoomhelper(){
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}

function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
whatcache.style.width=originalW
whatcache.style.height=originalH
if (state=="restore")
return
}
else{
zoomhelper()
}
beginzoom=setInterval("zoomhelper()",100)
}

function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}


function janelanimada(endereco) {
var velocidadev = 5; 
var topo =0;
var esquerda =0;
var velocidadeh = 8;
if (document.all) {
var tamlar = window.screen.availHeight - topo;
var tamjan = window.screen.availWidth - esquerda;
var tamanho = window.open("","","left=" + esquerda + ",top=" + topo + ",width=1,height=1,scrollbars=yes");
for (sizeheight = 1; sizeheight < tamlar; sizeheight += velocidadev) {
tamanho.resizeTo("1",sizeheight );}
for (sizewidth = 1; sizewidth < tamjan; sizewidth += velocidadeh) {
tamanho.resizeTo(sizewidth+6,sizeheight );}
tamanho.location = endereco;}
else
window.location = endereco;}




