﻿function cambiaFotoInd(dir) {
  	if(dir==0){
		if(fotoInd+1>fotosInd.length){
			fotoInd=1;
		}else{
			fotoInd++;	
		}		
	}else{
		if(fotoInd-1<1){
			fotoInd=fotosInd.length;
		}else{
			fotoInd--;	
		}	
	}
	document.getElementById('foto-ind').src="/cross/uploads/galeria/thmb/"+fotosInd[fotoInd-1];
	document.getElementById('num-foto-ind-ampliar').href="/cross/uploads/galeria/"+fotosInd[fotoInd-1];
	document.getElementById('num-foto-ind').innerHTML=fotoInd;
	return false;
}

function cambiaFotoSui(dir) {
  	if(dir==0){
		if(fotoGr+1>fotosGr.length){
			fotoGr=1;
		}else{
			fotoGr++;	
		}		
	}else{
		if(fotoGr-1<1){
			fotoGr=fotosGr.length;
		}else{
			fotoGr--;	
		}	
	}
	document.getElementById('foto-sui').src="/cross/uploads/galeria/thmb/"+fotosGr[fotoGr-1];
	document.getElementById('num-foto-sui-ampliar').href="/cross/uploads/galeria/"+fotosGr[fotoGr-1];
	document.getElementById('num-foto-sui').innerHTML=fotoGr;
	return false;
}

function cambiaFotoSa(dir) {
  	if(dir==0){
		if(fotoSa+1>fotosSa.length){
			fotoSa=1;
		}else{
			fotoSa++;	
		}		
	}else{
		if(fotoSa-1<1){
			fotoSa=fotosSa.length;
		}else{
			fotoSa--;	
		}	
	}
	document.getElementById('foto-sui').src="/cross/uploads/galeria/thmb/"+fotosSa[fotoSa-1];
	document.getElementById('num-foto-sui-ampliar').href="/cross/uploads/galeria/"+fotosSa[fotoSa-1];
	document.getElementById('num-foto-sui').innerHTML=fotoSa;
	return false;
}

function cambiaFotoSa2(dir) {
  	if(dir==0){
		if(fotoSa2+1>fotosSa2.length){
			fotoSa2=1;
		}else{
			fotoSa2++;	
		}		
	}else{
		if(fotoSa2-1<1){
			fotoSa2=fotosSa2.length;
		}else{
			fotoSa2--;	
		}	
	}
	document.getElementById('foto-sui2').src="/cross/uploads/galeria/thmb/"+fotosSa2[fotoSa2-1];
	document.getElementById('num-foto-sui-ampliar2').href="/cross/uploads/galeria/"+fotosSa2[fotoSa2-1];
	document.getElementById('num-foto-sui2').innerHTML=fotoSa2;
	return false;
}


fotosInd = ["doble-1.jpg","doble-2.jpg","doble-3.jpg","individual-1.jpg","individual-2.jpg"];
fotosGr = ["suite-1.jpg","suite-2.jpg","suite-3.jpg","suite-4.jpg"];
fotosSa = ["reuniones-1.jpg","reuniones-2.jpg","reuniones-3.jpg","reuniones-4.jpg","reuniones-5.jpg"];
fotosSa2 = ["reuniones-6.jpg","reuniones-7.jpg"];

var fotoInd = 1;
var fotoGr = 1;
var fotoSa = 1;
var fotoSa2 = 1;

