var imgVet = new Array()

imgVet['andar1'] = new Image()
imgVet['andar1'].src = "imagens/andar1_hover.png"
imgVet['andar2'] = new Image()
imgVet['andar2'].src = "imagens/andar2_hover.png"
imgVet['andar3'] = new Image()
imgVet['andar3'].src = "imagens/andar3_hover.png"
imgVet['andar4'] = new Image()
imgVet['andar4'].src = "imagens/andar4_hover.png"
imgVet['andar5'] = new Image()
imgVet['andar5'].src = "imagens/andar5_hover.png"


function efeitohover(nome){
	document.getElementById(nome).style.backgroundColor = '#EFE69B'
}

function normal(nome){
	document.getElementById(nome).style.backgroundColor = ''
}

function andar_hover(nome){
	document.getElementById(nome).style.backgroundImage = ''
}

function cobertura(){
	document.getElementById('andar1').style.backgroundImage = 'url(imagens/andar1.png)'
}

function cobertura_hover(){
	document.getElementById('andar1').style.backgroundImage = 'url(imagens/andar1_hover.png)'
}

function pav1(){
	document.getElementById('andar2').style.backgroundImage = 'url(imagens/andar2.png)'
}

function pav1_hover(){
	document.getElementById('andar2').style.backgroundImage = 'url(imagens/andar2_hover.png)'
}


function pavinf(){
	document.getElementById('andar3').style.backgroundImage = 'url(imagens/andar3.png)'
}

function pavinf_hover(){
	document.getElementById('andar3').style.backgroundImage = 'url(imagens/andar3_hover.png)'
}


function pavsup(){
	document.getElementById('andar4').style.backgroundImage = 'url(imagens/andar4.png)'
}

function pavsup_hover(){
	document.getElementById('andar4').style.backgroundImage = 'url(imagens/andar4_hover.png)'
}


function ter(){
	document.getElementById('andar5').style.backgroundImage = 'url(imagens/andar5.png)'
}

function ter_hover(){
	document.getElementById('andar5').style.backgroundImage = 'url(imagens/andar5_hover.png)'
}

faixa = new Image(211,18)
faixa.src = "imagens/faixa.png"

function planta(num, ident){
	for(var i = 1; i<=5; i++){
		document.getElementById('andar'+i).style.backgroundImage = 'url(imagens/andar'+i+'.png)'
		document.getElementById('floor'+i).style.backgroundImage = ''
	}
	document.planta.src = 'imagens/plantas/'+num+'.jpg'
	document.getElementById(ident).style.backgroundImage = 'url(imagens/'+ident+'_hover.png)'
	document.getElementById('floor'+num).style.backgroundImage = 'url('+faixa.src+')'
}
