var dire = "./images/trevinca" //directorio o ruta donde est�n las im�genes

//galeria 1
var imagenesgal1=new Array()
imagenesgal1[0]="trevinca_1.jpg"
imagenesgal1[1]="trevinca_2.jpg"
imagenesgal1[2]="trevinca_3.jpg"
imagenesgal1[3]="trevinca_4.jpg"
imagenesgal1[4]="trevinca_5.jpg"
imagenesgal1[5]="trevinca_6.jpg"
imagenesgal1[6]="trevinca_7.jpg"
imagenesgal1[7]="trevinca_8.jpg"
imagenesgal1[8]="trevinca_9.jpg"
imagenesgal1[9]="trevinca_10.jpg"
imagenesgal1[10]="trevinca_11.jpg"
imagenesgal1[11]="trevinca_12.jpg"


if(dire != "" && dire.charAt(dire.length-1) != "/")
{dire = dire + "/"}

contgal1=0;
function pasaremp(igal1)
{
	if(igal1==1)
	{
		if (contgal1 < imagenesgal1.length-1)
			{contgal1 ++}
		else
			{contgal1=0}
		document.getElementById("emp").src= dire + imagenesgal1[contgal1];
		document.getElementById("aemp").href= dire + "g" + imagenesgal1[contgal1];
	}
	if (igal1==0)
	{
		if (contgal1 != 0)
			{contgal1 --}
		else
			{contgal1 = imagenesgal1.length-1}
		document.getElementById("emp").src= dire + imagenesgal1[contgal1];
		document.getElementById("aemp").href= dire + "g" + imagenesgal1[contgal1];
	}
}


/* ************************* */

var dire2 = "./images/baiona" //directorio o ruta donde est�n las im�genes
//galeria prueba de Baiona
var imagenesgal2=new Array();
imagenesgal2[0]="baiona_1.jpg";
imagenesgal2[1]="baiona_2.jpg";
imagenesgal2[2]="baiona_3.jpg";
imagenesgal2[3]="baiona_4.jpg";
imagenesgal2[4]="baiona_5.jpg";
imagenesgal2[5]="baiona_6.jpg";
imagenesgal2[6]="baiona_7.jpg";
imagenesgal2[7]="baiona_8.jpg";
imagenesgal2[8]="baiona_9.jpg";
imagenesgal2[9]="baiona_10.jpg";
imagenesgal2[10]="baiona_11.jpg";
imagenesgal2[11]="baiona_12.jpg";
imagenesgal2[12]="baiona_13.jpg";
imagenesgal2[13]="baiona_14.jpg";

var comentariobai=new Array();
comentariobai[0]="Eloy como siempre atento en el grupo de cabez despu&eacute;s del alto de Belesar";
comentariobai[1]="Jhony y Eloy concentrandose antes de la salida";
comentariobai[2]="Nespe recogiendo avituallamiento del coche";
comentariobai[3]="Modesto trazando una curva sencilla";
comentariobai[4]="Juan Carlos organizando la grupeta";
comentariobai[5]="Manuel protegi&eacute;ndose del viento en direcci&oacute;n a Oia";
comentariobai[6]="Nespe sufriendo por la costa";
comentariobai[7]="Gonzalo recuperando fuerzas";
comentariobai[8]="Jhony en tierra de nadie intentando coger el grupo de cabeza";
comentariobai[9]="Manuel en una grupeta";
comentariobai[10]="Manuel en primer plano y Modesto por delante, saliendo en direcci&oacute;n a Belesar";
comentariobai[11]="Modesto pidiendo relevo";
comentariobai[12]="Nespe en el podio 2&ordm; y Pen&iacute;n recogiendo el trofeo de Alfonso (3&ordm;)";
comentariobai[13]="Julio Marti&ntilde;&aacute; ganador de M-50"


if(dire2 != "" && dire2.charAt(dire2.length-1) != "/")
{dire2 = dire2 + "/"}

contgal2=0;
function pasarbai(igal2)
{
	if(igal2==1)
	{
		if (contgal2 < imagenesgal2.length-1)
			{contgal2 ++}
		else
			{contgal2=0}
		document.getElementById("bai").src= dire2 + imagenesgal2[contgal2];
		document.getElementById("abai").href= dire2 + "g" + imagenesgal2[contgal2];
		document.getElementById("comentbai").innerHTML= comentariobai[contgal2];
	}
	if (igal2==0)
	{
		if (contgal2 != 0)
			{contgal2 --}
		else
			{contgal2 = imagenesgal2.length-1}
		document.getElementById("bai").src= dire2 + imagenesgal2[contgal2];
		document.getElementById("abai").href= dire2 + "g" + imagenesgal2[contgal2];
		document.getElementById("comentbai").innerHTML= comentariobai[contgal2];		
	}
}

/* ************************* */

var dire3 = "./images/ourense" //directorio o ruta donde est�n las im�genes
//galeria prueba de Ourense
var imagenesgal3=new Array();
imagenesgal3[0]="ourense_1.jpg";
imagenesgal3[1]="ourense_2.jpg";
imagenesgal3[2]="ourense_3.jpg";
imagenesgal3[3]="ourense_4.jpg";
imagenesgal3[4]="ourense_5.jpg";
imagenesgal3[5]="ourense_6.jpg";
imagenesgal3[6]="ourense_7.jpg";
imagenesgal3[7]="ourense_8.jpg";
imagenesgal3[8]="ourense_9.jpg";
imagenesgal3[9]="ourense_10.jpg";
imagenesgal3[10]="ourense_11.jpg";
imagenesgal3[11]="ourense_12.jpg";
imagenesgal3[12]="ourense_13.jpg";
imagenesgal3[13]="ourense_14.jpg";
imagenesgal3[14]="ourense_15.jpg";
imagenesgal3[15]="ourense_16.jpg";
imagenesgal3[16]="ourense_17.jpg";
imagenesgal3[17]="ourense_18.jpg";
imagenesgal3[18]="ourense_19.jpg";
imagenesgal3[19]="ourense_21.jpg";
imagenesgal3[20]="ourense_20.jpg";
imagenesgal3[21]="ourense_22.jpg";
imagenesgal3[22]="ourense_23.jpg";
imagenesgal3[23]="ourense_24.jpg";
imagenesgal3[24]="ourense_25.jpg";

var comentarioou=new Array();
comentarioou[0]="Concentraci&oacute;n antes de la salida";
comentarioou[1]="El equipo t&eacute;cnico al frente de la prueba";
comentarioou[2]="Salida neutralizada";
comentarioou[3]="Jes&uacute;s Amandio ganador de la carrera";
comentarioou[4]="Jes&uacute;s Rodr&iacute;guez y Ubaldo Rodr&iacute;guez, 2&ordm; y 3&ordm;";
comentarioou[5]="Ricardo Neves, cuarto clasificado";
comentarioou[6]="Paulo Valente y Jes&uacute;s Ayo, 5&ordm; y 6&ordm;";
comentarioou[7]="";
comentarioou[8]="Miguel Suarez, 7&ordm; clasificado";
comentarioou[9]="Jorge con cara de pocos amigos";
comentarioou[10]="Jorge en la &uacute;ltima curva";
comentarioou[11]="";
comentarioou[12]="";
comentarioou[13]="";
comentarioou[14]="";
comentarioou[15]="El actual campe&oacute;n gallego, Abel G&oacute;mez no tuvo su mejor d&iacute;a";
comentarioou[16]="Manuel";
comentarioou[17]="Gonzalo";
comentarioou[18]="";
comentarioou[19]="";
comentarioou[20]="Modesto finalizando";
comentarioou[21]="Nespe en el pelot&oacute;n";
comentarioou[22]="Juan Carlos finalizando";
comentarioou[23]="Julio Marti&ntilde;&aacute; ganador en M-50";
comentarioou[24]="Nespe recogiendo el trofeo";

if(dire3 != "" && dire3.charAt(dire3.length-1) != "/")
{dire3 = dire3 + "/"}

contgal3=0;
function pasarou(igal3)
{
	if(igal3==1)
	{
		if (contgal3 < imagenesgal3.length-1)
			{contgal3 ++}
		else
			{contgal3=0}
		document.getElementById("ou").src= dire3 + imagenesgal3[contgal3];
		document.getElementById("aou").href= dire3 + "g" + imagenesgal3[contgal3];
		document.getElementById("comentou").innerHTML= comentarioou[contgal3];
	}
	if (igal3==0)
	{
		if (contgal3 != 0)
			{contgal3 --}
		else
			{contgal3 = imagenesgal3.length-1}
		document.getElementById("ou").src= dire3 + imagenesgal3[contgal3];
		document.getElementById("aou").href= dire3 + "g" + imagenesgal3[contgal3];
		document.getElementById("comentou").innerHTML= comentarioou[contgal3];		
	}
}

/* ************************* */

var dire4 = "./images/avila" //directorio o ruta donde est�n las im�genes
//galeria prueba de Avila
var imagenesgal4=new Array();
imagenesgal4[0]="avila_1.jpg";
imagenesgal4[1]="avila_2.jpg";
imagenesgal4[2]="avila_3.jpg";
imagenesgal4[3]="avila_4.jpg";
imagenesgal4[4]="avila_5.jpg";
imagenesgal4[5]="avila_6.jpg";
imagenesgal4[6]="avila_7.jpg";
imagenesgal4[7]="avila_8.jpg";
imagenesgal4[8]="avila_9.jpg";
imagenesgal4[9]="avila_10.jpg";
imagenesgal4[10]="avila_11.jpg";
imagenesgal4[11]="avila_12.jpg";
imagenesgal4[12]="avila_13.jpg";
imagenesgal4[13]="avila_14.jpg";
imagenesgal4[14]="avila_15.jpg";
imagenesgal4[15]="avila_16.jpg";
imagenesgal4[16]="avila_17.jpg";
imagenesgal4[17]="avila_18.jpg";
imagenesgal4[18]="avila_19.jpg";
imagenesgal4[19]="avila_20.jpg";
imagenesgal4[20]="avila_21.jpg";
imagenesgal4[21]="avila_22.jpg";
imagenesgal4[22]="avila_23.jpg";
imagenesgal4[23]="avila_24.jpg";
imagenesgal4[24]="avila_25.jpg";
imagenesgal4[25]="avila_26.jpg";

var comentarioav=new Array();
comentarioav[0]="Gonzalo embistiendo";
comentarioav[1]="Manuel con sue&ntilde;o";
comentarioav[2]="Gonzalo";
comentarioav[3]="Jorge y Eloy";
comentarioav[4]="Manuel";
comentarioav[5]="Nespe en la salida";
comentarioav[6]="Eloy y Jorge marcando el ritmo";
comentarioav[7]="Los 4 en la cima de Serranillos";
comentarioav[8]="Jhony y Eloy sufriendo";
comentarioav[9]="Nespe";
comentarioav[10]="Que frio";
comentarioav[11]="Manuel en Mijares";
comentarioav[12]="Cima de Mijares";
comentarioav[13]="Gonzalo no se si antes o despues de estralar";
comentarioav[14]="El mas chulo de todos";
comentarioav[15]="Gonzalo empezando Panamera";
comentarioav[16]="en que pensara";
comentarioav[17]="Manuel en pleno esfuerzo";
comentarioav[18]="Pero que guapito sale Manuel";
comentarioav[19]="Gonzalo soplando";
comentarioav[20]="Cara de pocos amigos";
comentarioav[21]="Sonriendo para la foto";
comentarioav[22]="Que planta";
comentarioav[23]="Que planta II";
comentarioav[24]="Gonzalo en las ultimas rampas";
comentarioav[25]="Otra de Gonzalo";




if(dire4 != "" && dire4.charAt(dire4.length-1) != "/")
{dire4 = dire4 + "/"}

contgal4=0;
function pasarav(igal4)
{
	if(igal4==1)
	{
		if (contgal4 < imagenesgal4.length-1)
			{contgal4 ++}
		else
			{contgal4=0}
		document.getElementById("av").src= dire4 + imagenesgal4[contgal4];
		document.getElementById("aav").href= dire4 + "g" + imagenesgal4[contgal4];
		document.getElementById("comentav").innerHTML= comentarioav[contgal4];
	}
	if (igal4==0)
	{
		if (contgal4 != 0)
			{contgal4 --}
		else
			{contgal4 = imagenesgal4.length-1}
		document.getElementById("av").src= dire4 + imagenesgal4[contgal4];
		document.getElementById("aav").href= dire4 + "g" + imagenesgal4[contgal4];
		document.getElementById("comentav").innerHTML= comentarioav[contgal4];		
	}
}

/* ************************* */

var dire5 = "./images/redondela" //directorio o ruta donde est�n las im�genes
//galeria prueba de Redondela
var imagenesgal5=new Array();
imagenesgal5[0]="redondela_1.jpg";
imagenesgal5[1]="redondela_2.jpg";
imagenesgal5[2]="redondela_3.jpg";
imagenesgal5[3]="redondela_4.jpg";
imagenesgal5[4]="redondela_5.jpg";
imagenesgal5[5]="redondela_6.jpg";
imagenesgal5[6]="redondela_7.jpg";
imagenesgal5[7]="redondela_8.jpg";

if(dire5 != "" && dire5.charAt(dire5.length-1) != "/")
{dire5 = dire5 + "/"}

contgal5=0;
function pasarre(igal5)
{
	if(igal5==1)
	{
		if (contgal5 < imagenesgal5.length-1)
			{contgal5 ++}
		else
			{contgal5=0}
		document.getElementById("re").src= dire5 + imagenesgal5[contgal5];
	}
	if (igal5==0)
	{
		if (contgal5 != 0)
			{contgal5 --}
		else
			{contgal5 = imagenesgal5.length-1}
		document.getElementById("re").src= dire5 + imagenesgal5[contgal5];
	}
}

/* ******************************************* */
/* ************************* */

var dire6 = "./images/lagos" //directorio o ruta donde est�n las im�genes
//galeria prueba de Lagos de Covadonga
var imagenesgal6=new Array();
imagenesgal6[0]="lagos_1.jpg";
imagenesgal6[1]="lagos_2.jpg";
imagenesgal6[2]="lagos_3.jpg";
imagenesgal6[3]="lagos_4.jpg";
imagenesgal6[4]="lagos_5.jpg";


var comentariolag=new Array();
comentariolag[0]="Impresionante despliegue de Specialized";
comentariolag[1]="Las bicis ganadoras de Paris Roubaix (Boonen) y Flandes (Devolder)";
comentariolag[2]="Los profesionales y los invitados (Nespe al lado de Bobby Julich)";
comentariolag[3]="Nespe en el segundo grupo";
comentariolag[4]="Ivan Santurce (ganador de la prueba)";


if(dire6 != "" && dire6.charAt(dire6.length-1) != "/")
{dire6 = dire6 + "/"}

contgal6=0;
function pasarlag(igal6)
{
	if(igal6==1)
	{
		if (contgal6 < imagenesgal6.length-1)
			{contgal6 ++}
		else
			{contgal6=0}
		document.getElementById("lag").src= dire6 + imagenesgal6[contgal6];
		document.getElementById("alag").href= dire6 + "g" + imagenesgal6[contgal6];
		document.getElementById("comentlag").innerHTML= comentariolag[contgal6];
	}
	if (igal6==0)
	{
		if (contgal6 != 0)
			{contgal6 --}
		else
			{contgal6 = imagenesgal6.length-1}
		document.getElementById("lag").src= dire6 + imagenesgal6[contgal6];
		document.getElementById("alag").href= dire6 + "g" + imagenesgal6[contgal6];
		document.getElementById("comentlag").innerHTML= comentariolag[contgal6];		
	}
}

/* ************************* */

var dire7 = "./images/quebrantahuesos" //directorio o ruta donde est�n las im�genes
//galeria prueba de Quebrantahuesos
var imagenesgal7=new Array();
imagenesgal7[0]="quebrantahuesos_1.jpg";
imagenesgal7[1]="quebrantahuesos_2.jpg";
imagenesgal7[2]="quebrantahuesos_3.jpg";
imagenesgal7[3]="quebrantahuesos_4.jpg";
imagenesgal7[4]="quebrantahuesos_5.jpg";
imagenesgal7[5]="quebrantahuesos_6.jpg";
imagenesgal7[6]="quebrantahuesos_7.jpg";
imagenesgal7[7]="quebrantahuesos_8.jpg";
imagenesgal7[8]="quebrantahuesos_9.jpg";
imagenesgal7[9]="quebrantahuesos_10.jpg";
imagenesgal7[10]="quebrantahuesos_11.jpg";

var comentarioqh=new Array();
comentarioqh[0]="Eloy en solitario";
comentarioqh[1]="Eloy, en fuga y a lo loco!!";
comentarioqh[2]="Esos dientes mister";
comentarioqh[3]="Gonzalo concestrado";
comentarioqh[4]="Manuel";
comentarioqh[5]="Manuel";
comentarioqh[6]="La cosa se ponia dura...";
comentarioqh[7]="Terminator, las maquinas no sufren!!";
comentarioqh[8]="The boss";
comentarioqh[9]="Eloi marie blanque";
comentarioqh[10]="Gonzalo en marie blanque";

if(dire7 != "" && dire7.charAt(dire7.length-1) != "/")
{dire7 = dire7 + "/"}

contgal7=0;
function pasarqh(igal7)
{
	if(igal7==1)
	{
		if (contgal7 < imagenesgal7.length-1)
			{contgal7 ++}
		else
			{contgal7=0}
		document.getElementById("qh").src= dire7 + imagenesgal7[contgal7];
		document.getElementById("aqh").href= dire7 + "g" + imagenesgal7[contgal7];
		document.getElementById("comentqh").innerHTML= comentarioqh[contgal7];
	}
	if (igal7==0)
	{
		if (contgal7 != 0)
			{contgal7 --}
		else
			{contgal7 = imagenesgal7.length-1}
		document.getElementById("qh").src= dire7 + imagenesgal7[contgal7];
		document.getElementById("aqh").href= dire7 + "g" + imagenesgal7[contgal7];
		document.getElementById("comentqh").innerHTML= comentarioqh[contgal7];		
	}
}

/* ************************* */

var dire8 = "./images/larrau" //directorio o ruta donde estan las imagenes
//galeria de Larrau
var imagenesgal8=new Array();
imagenesgal8[0]="larrau_1.jpg";
imagenesgal8[1]="larrau_2.jpg";
imagenesgal8[2]="larrau_3.jpg";
imagenesgal8[3]="larrau_4.jpg";
imagenesgal8[4]="larrau_5.jpg";
imagenesgal8[5]="larrau_6.jpg";
imagenesgal8[6]="larrau_7.jpg";
imagenesgal8[7]="larrau_8.jpg";
imagenesgal8[8]="larrau_9.jpg";
imagenesgal8[9]="larrau_10.jpg";

var comentariolr=new Array();
comentariolr[0]="Eloy en Larrau";
comentariolr[1]="Jorge en Larrau";
comentariolr[2]="Jonhny en Larrau";
comentariolr[3]="Larra-Larrau";
comentariolr[4]="Larrau";
comentariolr[5]="Nespe sobrado en Larrau";
comentariolr[6]="Pechi en Larrau";
comentariolr[7]="Pechi y Jonhny en Larrau";
comentariolr[8]="Pierre Ede Saint Martin";
comentariolr[9]="Puerto de Pierra de Saint Martin";

if(dire8 != "" && dire8.charAt(dire8.length-1) != "/")
{dire8 = dire8 + "/"}

contgal8=0;
function pasarlr(igal8)
{
	if(igal8==1)
	{
		if (contgal8 < imagenesgal8.length-1)
			{contgal8 ++}
		else
			{contgal8=0}
		document.getElementById("lr").src= dire8 + imagenesgal8[contgal8];
		document.getElementById("alr").href= dire8 + "g" + imagenesgal8[contgal8];
		document.getElementById("comentlr").innerHTML= comentariolr[contgal8];
	}
	if (igal8==0)
	{
		if (contgal8 != 0)
			{contgal8 --}
		else
			{contgal8 = imagenesgal8.length-1}
		document.getElementById("lr").src= dire8 + imagenesgal8[contgal8];
		document.getElementById("alr").href= dire8 + "g" + imagenesgal8[contgal8];
		document.getElementById("comentlr").innerHTML= comentariolr[contgal8];		
	}
}

/***************************************/

/* ************************* */

var dire9 = "./images/bueu" //directorio o ruta donde estan las imagenes
//galeria de Bueu y Bembrive
var imagenesgal9=new Array();
imagenesgal9[0]="bueu_1.jpg";
imagenesgal9[1]="bueu_2.jpg";
imagenesgal9[2]="bueu_3.jpg";
imagenesgal9[3]="bueu_4.jpg";
imagenesgal9[4]="bueu_5.jpg";
imagenesgal9[5]="bueu_6.jpg";
imagenesgal9[6]="bueu_7.jpg";
imagenesgal9[7]="bueu_8.jpg";
imagenesgal9[8]="bueu_9.jpg";


var comentariobu=new Array();
comentariobu[0]="Natan en Bueu.";
comentariobu[1]="Entrada en meta de Natan en Bueu";
comentariobu[2]="Entrada en meta de Eloy en Bueu";
comentariobu[3]="Nespe en Bueu";
comentariobu[4]="Jorge tirando de la escabada en Bembrive";
comentariobu[5]="Nespe tirando en un repecho en Bembrive";
comentariobu[6]="Pelotón con los Trevinca en cabeza en Bembrive";
comentariobu[7]="Escapados al primer paso por meta en Bembrive";
comentariobu[8]="Eloy controlando a los alborotados";


if(dire9 != "" && dire9.charAt(dire9.length-1) != "/")
{dire9 = dire9 + "/"}

contgal9=0;
function pasarbu(igal9)
{
	if(igal9==1)
	{
		if (contgal9 < imagenesgal9.length-1)
			{contgal9 ++}
		else
			{contgal9=0}
		document.getElementById("bu").src= dire9 + imagenesgal9[contgal9];
		document.getElementById("abu").href= dire9 + "g" + imagenesgal9[contgal9];
		document.getElementById("comentbu").innerHTML= comentariobu[contgal9];
	}
	if (igal9==0)
	{
		if (contgal9 != 0)
			{contgal9 --}
		else
			{contgal9 = imagenesgal9.length-1}
		document.getElementById("bu").src= dire9 + imagenesgal9[contgal9];
		document.getElementById("abu").href= dire9 + "g" + imagenesgal9[contgal9];
		document.getElementById("comentbu").innerHTML= comentariobu[contgal9];		
	}
}

/***************************************/


/* ************************* */

var dire10 = "./images/redondela_10" //directorio o ruta donde estan las imagenes
//galeria de Redondela
var imagenesgal10=new Array();
imagenesgal10[0]="redondela_1.jpg";
imagenesgal10[1]="redondela_2.jpg";
imagenesgal10[2]="redondela_3.jpg";
imagenesgal10[3]="redondela_4.jpg";
imagenesgal10[4]="redondela_5.jpg";
imagenesgal10[5]="redondela_6.jpg";
imagenesgal10[6]="redondela_7.jpg";
imagenesgal10[7]="redondela_8.jpg";
imagenesgal10[8]="redondela_9.jpg";
imagenesgal10[9]="redondela_10.jpg";
imagenesgal10[10]="redondela_11.jpg";
imagenesgal10[11]="redondela_12.jpg";
imagenesgal10[12]="redondela_13.jpg";
imagenesgal10[13]="redondela_14.jpg";
imagenesgal10[14]="redondela_15.jpg";

var comentariore=new Array();
comentariore[0]="";


if(dire10 != "" && dire10.charAt(dire10.length-1) != "/")
{dire10 = dire10 + "/"}

contgal10=0;
function pasarre(igal10)
{
	if(igal10==1)
	{
		if (contgal10 < imagenesgal10.length-1)
			{contgal10 ++}
		else
			{contgal10=0}
		document.getElementById("re").src= dire10 + imagenesgal10[contgal10];
		document.getElementById("are").href= dire10 + "g" + imagenesgal10[contgal10];
		document.getElementById("comentre").innerHTML= comentariore[contgal10];
	}
	if (igal10==0)
	{
		if (contgal10 != 0)
			{contgal10 --}
		else
			{contgal10 = imagenesgal10.length-1}
		document.getElementById("re").src= dire10 + imagenesgal10[contgal10];
		document.getElementById("are").href= dire10 + "g" + imagenesgal10[contgal10];
		document.getElementById("comentre").innerHTML= comentariore[contgal10];		
	}
}




/* ************************* */

var dire11 = "./images/avila_10" //directorio o ruta donde estan las imagenes
//galeria de Bueu y Bembrive
var imagenesgal11=new Array();
imagenesgal11[0]="avila_1.jpg";
imagenesgal11[1]="avila_2.jpg";
imagenesgal11[2]="avila_3.jpg";
imagenesgal11[3]="avila_4.jpg";


var comentarioav=new Array();
comentarioav[0]="";


if(dire11 != "" && dire11.charAt(dire11.length-1) != "/")
{dire11 = dire11 + "/"}

contgal11=0;
function pasarav(igal11)
{
	if(igal11==1)
	{
		if (contgal11 < imagenesgal11.length-1)
			{contgal11 ++}
		else
			{contgal11=0}
		document.getElementById("av").src= dire11 + imagenesgal11[contgal11];
		document.getElementById("aav").href= dire11 + "g" + imagenesgal11[contgal11];
		document.getElementById("comentav").innerHTML= comentarioav[contgal11];
	}
	if (igal11==0)
	{
		if (contgal11 != 0)
			{contgal11 --}
		else
			{contgal11 = imagenesgal11.length-1}
		document.getElementById("av").src= dire11 + imagenesgal11[contgal11];
		document.getElementById("aav").href= dire11 + "g" + imagenesgal11[contgal11];
		document.getElementById("comentav").innerHTML= comentarioav[contgal11];
	}
}



/* ************************* */

var dire12 = "./images/iberico" //directorio o ruta donde estan las imagenes
//galeria de Bueu y Bembrive
var imagenesgal12=new Array();
imagenesgal12[0]="iberico_1.JPG";
imagenesgal12[1]="iberico_2.JPG";
imagenesgal12[2]="iberico_3.JPG";
imagenesgal12[3]="iberico_4.JPG";
imagenesgal12[4]="iberico_5.JPG";
imagenesgal12[5]="iberico_6.JPG";
imagenesgal12[6]="iberico_7.JPG";
imagenesgal12[7]="iberico_8.JPG";
imagenesgal12[8]="iberico_9.JPG";
imagenesgal12[9]="iberico_10.JPG";
imagenesgal12[10]="iberico_11.JPG";
imagenesgal12[11]="iberico_12.JPG";
imagenesgal12[12]="iberico_13.JPG";
imagenesgal12[13]="iberico_14.JPG";
imagenesgal12[14]="iberico_15.JPG";
imagenesgal12[15]="iberico_16.JPG";
imagenesgal12[16]="iberico_17.JPG";
imagenesgal12[17]="iberico_18.JPG";
imagenesgal12[18]="iberico_19.JPG";
imagenesgal12[19]="iberico_20.JPG";
imagenesgal12[20]="iberico_21.JPG";
imagenesgal12[21]="iberico_22.JPG";
imagenesgal12[22]="iberico_23.JPG";
imagenesgal12[23]="iberico_24.JPG";
imagenesgal12[24]="iberico_25.JPG";
imagenesgal12[25]="iberico_26.JPG";
imagenesgal12[26]="iberico_27.JPG";
imagenesgal12[27]="iberico_28.JPG";
imagenesgal12[28]="iberico_29.JPG";
imagenesgal12[29]="iberico_30.JPG";
imagenesgal12[30]="iberico_31.JPG";
imagenesgal12[31]="iberico_32.JPG";
imagenesgal12[32]="iberico_33.JPG";
imagenesgal12[33]="iberico_34.JPG";
imagenesgal12[34]="iberico_35.JPG";
imagenesgal12[35]="iberico_36.JPG";
imagenesgal12[36]="iberico_37.JPG";
imagenesgal12[37]="iberico_38.JPG";
imagenesgal12[38]="iberico_39.JPG";
imagenesgal12[39]="iberico_40.JPG";
imagenesgal12[40]="iberico_41.JPG";
imagenesgal12[41]="iberico_42.JPG";
imagenesgal12[42]="iberico_43.JPG";
imagenesgal12[43]="iberico_44.JPG";
imagenesgal12[44]="iberico_45.JPG";
imagenesgal12[45]="iberico_46.JPG";
imagenesgal12[46]="iberico_47.JPG";
imagenesgal12[47]="iberico_48.JPG";
imagenesgal12[48]="iberico_49.JPG";
imagenesgal12[49]="iberico_50.JPG";
imagenesgal12[50]="iberico_51.JPG";
imagenesgal12[51]="iberico_52.JPG";
imagenesgal12[52]="iberico_53.JPG";
imagenesgal12[53]="iberico_54.JPG";
imagenesgal12[54]="iberico_55.JPG";
imagenesgal12[55]="iberico_56.JPG";
imagenesgal12[56]="iberico_57.JPG";
imagenesgal12[57]="iberico_58.JPG";


var comentarioib=new Array();
comentarioib[0]="";


if(dire12 != "" && dire12.charAt(dire12.length-1) != "/")
{dire12 = dire12 + "/"}

contgal12=0;
function pasarib(igal12)
{
	if(igal12==1)
	{
		if (contgal12 < imagenesgal12.length-1)
			{contgal12 ++}
		else
			{contgal12=0}
		document.getElementById("ib").src= dire12 + imagenesgal12[contgal12];
		document.getElementById("aib").href= dire12 + "g" + imagenesgal12[contgal12];
/*		document.getElementById("comentib").innerHTML= comentarioib[contgal12]; */
	}
	if (igal12==0)
	{
		if (contgal12 != 0)
			{contgal12 --}
		else
			{contgal12 = imagenesgal12.length-1}
		document.getElementById("ib").src= dire12 + imagenesgal12[contgal12];
		document.getElementById("aib").href= dire12 + "g" + imagenesgal12[contgal12];
/*		document.getElementById("comentib").innerHTML= comentarioav[contgal12]; */
	}
}



/* ****************************************************************************************************  */

var dire13 = "./images/lagunadelospeces" //directorio o ruta donde estan las imagenes
//galeria de Redondela
var imagenesgal13=new Array();
imagenesgal13[0]="lagunadelospeces_1.jpg";
imagenesgal13[1]="lagunadelospeces_2.jpg";
imagenesgal13[2]="lagunadelospeces_3.jpg";
imagenesgal13[3]="lagunadelospeces_4.jpg";
imagenesgal13[4]="lagunadelospeces_5.jpg";
imagenesgal13[5]="lagunadelospeces_6.jpg";
imagenesgal13[6]="lagunadelospeces_7.jpg";
imagenesgal13[7]="lagunadelospeces_8.jpg";
imagenesgal13[8]="lagunadelospeces_9.jpg";
imagenesgal13[9]="lagunadelospeces_10.jpg";
imagenesgal13[10]="lagunadelospeces_11.jpg";
imagenesgal13[11]="lagunadelospeces_12.jpg";
imagenesgal13[12]="lagunadelospeces_13.jpg";
imagenesgal13[13]="lagunadelospeces_14.jpg";
imagenesgal13[14]="lagunadelospeces_15.jpg";
imagenesgal13[15]="lagunadelospeces_16.jpg";
imagenesgal13[16]="lagunadelospeces_17.jpg";
imagenesgal13[17]="lagunadelospeces_18.jpg";
imagenesgal13[18]="lagunadelospeces_19.jpg";
imagenesgal13[19]="lagunadelospeces_20.jpg";
imagenesgal13[20]="lagunadelospeces_21.jpg";
imagenesgal13[21]="lagunadelospeces_22.jpg";
imagenesgal13[22]="lagunadelospeces_23.jpg";
imagenesgal13[23]="lagunadelospeces_24.jpg";


var comentariolag=new Array();
comentariolag[0]="";


if(dire13 != "" && dire13.charAt(dire13.length-1) != "/")
{dire13 = dire13 + "/"}

contgal13=0;
function pasarlagu(igal13)
{
	if(igal13==1)
	{
		if (contgal13 < imagenesgal13.length-1)
			{contgal13 ++}
		else
			{contgal13=0}
		document.getElementById("lag").src= dire13 + imagenesgal13[contgal13];
		document.getElementById("alag").href= dire13 + "g" + imagenesgal13[contgal13];

	}
	if (igal13==0)
	{
		if (contgal13 != 0)
			{contgal13 --}
		else
			{contgal13 = imagenesgal13.length-1}
		document.getElementById("lag").src= dire13 + imagenesgal13[contgal13];
		document.getElementById("alag").href= dire13 + "g" + imagenesgal13[contgal13];
	}
}

