fotodato = new Array(20);
mensaje= new Array(20);
url="images/banner/";	//almacena el url de la carpeta contenedora de las fotos
url_in="../images/banner/";
urleven_prin="images/eventos/"; //almacena el url de la carpeta contenedora de las fotos
urleven_prin_in="../images/eventos/";
url_popup="../images/popup/";
urlfotobanda="../images/banda/";
urlfotoartista="../images/artista/";
urlfotocasas="../images/casas/";
urlfotobiblio="../images/biblio/";
urlfotoorg="../images/org/";
urlfotohist="../images/historia/";
urlfotositios="../images/sitios/";
urlfotoaloja="../images/alojamientos/";
urlfotogastro="../images/gastronomia/";
urlfotogaltur="../images/galturis/";
numfotosbann_en=15;//almacena el numero de fotos contenidas en la carpeta
numfotosbann=15;//almacena el numero de fotos contenidas en la carpeta
numfotoseprin=5;//almacena el numero de fotos contenidas en la carpeta
nfotosp=10;
nfotobanda=2;
nf=1;
nfdesc=2;
nfh=3;
nf_casas=13;
nf_biblio=9;


function get_random(maxNum)
{
 if (Math.random && Math.round)
 {
  var ranNum= Math.round(Math.random()*(maxNum-1));
  ranNum+=1;
  return ranNum;
 }
  alert(ranNum);
}

function cambiafotobanner_en()
{
	strfoto=get_random(numfotosbann_en);
	document.write("<img alt='Mi Manizales del Alma' border='0' usemap='#Map' src=\""+url+"cabezote_en_"+strfoto+".jpg\">");
	return;
}

function cambiafotobannerin_en()
{
	strfoto=get_random(numfotosbann_en);
	document.write("<img alt='Mi Manizales del Alma' border='0' usemap='#Map' src=\""+url_in+"cabezote_en_"+strfoto+".jpg\">");
	return;
}

function cambiafotobanner()
{
	strfoto=get_random(numfotosbann);
	document.write("<img alt='Mi Manizales del Alma' border='0' usemap='#Map' src=\""+url+"cabezote_"+strfoto+".jpg\">");
	return;
}

function cambiafotobannerin()
{
	strfoto=get_random(numfotosbann);
	document.write("<img alt='Mi Manizales del Alma' border='0' usemap='#Map' src=\""+url_in+"cabezote_"+strfoto+".jpg\">");
	return;
}

function cambiafotoeven_prin()
{
	strfoto=get_random(numfotoseprin);
	document.write("<img alt='Eventos' border='0' src=\""+urleven_prin+"evenprin_"+strfoto+".jpg\">");
	return;
}

function cambiafotoeven_prin_in()
{
	strfoto=get_random(numfotoseprin);
	document.write("<img alt='Eventos' border='0' src=\""+urleven_prin_in+"evenprin_"+strfoto+".jpg\">");
	return;
}

function cambiafotopopup()
{
	strfoto=get_random(nfotosp);
	document.write("<img alt='Instituto de Cultura y Turismo' border='0' src=\""+url_popup+"popup1_"+strfoto+".jpg\">");
	return;
}

function cambiafotoopcbanda()
{
	strfoto=get_random(nfotobanda);
	document.write("<img alt='Banda Municipal' border='0' src=\""+urlfotobanda+"banda_"+strfoto+".jpg\">");
	return;
}

function cambiafotobann_banda()
{
    strfoto=get_random(nf);
	document.write("<img alt='Banda Municipal' border='0' src=\""+urlfotobanda+"banner_"+strfoto+".jpg\">");
	return;
}
function cambiafotoopcartista()
{
	strfoto=get_random(nf);
	document.getElementById('img_artista_ale').style.backgroundImage = 'url('+urlfotoartista+'artista_'+strfoto+'.jpg)';

	return;
}

function cambiafototituhist()
{
    strfoto=get_random(nfh);
	document.getElementById('img_history').style.backgroundImage = 'url('+urlfotohist+'historia_'+strfoto+'.jpg)';

	return;
}

function cambiafotoopccasas()
{
    strfoto=get_random(nf_casas);
	document.getElementById('img_casas_cult').style.backgroundImage = 'url('+urlfotocasas+'casa_'+strfoto+'.jpg)';

	return;
}

function cambiafotoopcbiblio()
{
    strfoto=get_random(nf_biblio);
	document.getElementById('img_biblio_cult').style.backgroundImage = 'url('+urlfotobiblio+'biblio_'+strfoto+'.jpg)';

	return;
}

function cambiafotoopcorganiz()
{
    strfoto=get_random(nf);
	document.getElementById('img_organiz_cult').style.backgroundImage = 'url('+urlfotoorg+'org_'+strfoto+'.jpg)';

	return;
}

function cambiafondositios_es()
{
	strfoto=get_random(nf);
	document.getElementById('img_sitios').style.backgroundImage = 'url('+urlfotositios+'sitios_es_'+strfoto+'.jpg)';

	return;
}

function cambiafondositios_en()
{
	strfoto=get_random(nf);
	document.getElementById('img_sitios').style.backgroundImage = 'url('+urlfotositios+'sitios_en_'+strfoto+'.jpg)';

	return;
}

function cambiafondoaloja_es()
{
	strfoto=get_random(nf);
	document.getElementById('img_aloja').style.backgroundImage = 'url('+urlfotoaloja+'aloja_es_'+strfoto+'.jpg)';

	return;
}

function cambiafondoaloja_en()
{
	strfoto=get_random(nf);
	document.getElementById('img_aloja').style.backgroundImage = 'url('+urlfotoaloja+'aloja_en_'+strfoto+'.jpg)';

	return;
}

function cambiafondogastro_es()
{
	strfoto=get_random(nf);
	document.getElementById('img_gastro').style.backgroundImage = 'url('+urlfotogastro+'gastro_es_'+strfoto+'.jpg)';

	return;
}

function cambiafondogastro_en()
{
	strfoto=get_random(nf);
	document.getElementById('img_gastro').style.backgroundImage = 'url('+urlfotogastro+'gastro_en_'+strfoto+'.jpg)';

	return;
}

function cambiafondoopera_es()
{
	document.getElementById('img_opera').style.backgroundImage = 'url(../images/opera_es.jpg)';

	return;
}

function cambiafondoopera_en()
{
	document.getElementById('img_opera').style.backgroundImage = 'url(../images/opera_en.jpg)';

	return;
}

function cambiafondoacti_es()
{
	document.getElementById('img_acti').style.backgroundImage = 'url(../images/acti_es.jpg)';

	return;
}

function cambiafondoacti_en()
{
	document.getElementById('img_acti').style.backgroundImage = 'url(../images/acti_en.jpg)';

	return;
}

function cambiafondofiesta_es()
{
	document.getElementById('img_fiesta').style.backgroundImage = 'url(../images/fiestas/fiestas_es.jpg)';

	return;
}

function cambiafondofiesta_en()
{
	document.getElementById('img_fiesta').style.backgroundImage = 'url(../images/fiestas/fiestas_en.jpg)';

	return;
}

function cambiafotobarraturism_es()
{
	document.getElementById('img_barra').style.backgroundImage = 'url(../images/img_barra_turismo.jpg)';

	return;
}

function cambiafotobarraturism_en()
{
	document.getElementById('img_barra').style.backgroundImage = 'url(../images/img_barra_turismo_en.jpg)';

	return;
}

function cambiafondooperador_es()
{
	document.getElementById('fondo_opera').style.backgroundImage = 'url(../images/bg_det_operadores_es.jpg)';

	return;
}

function cambiafondooperador_en()
{
	document.getElementById('fondo_opera').style.backgroundImage = 'url(../images/bg_det_operadores_en.jpg)';

	return;
}

function cambiafondonoti_es()
{
	document.getElementById('img_fondonoti').style.backgroundImage = 'url(../images/bg_noti_es.jpg)';

	return;
}

function cambiafondonoti_en()
{
	document.getElementById('img_fondonoti').style.backgroundImage = 'url(../images/bg_noti_en.jpg)';

	return;
}

function cambiafbotondescargas()
{
    strfoto=get_random(nfdesc);
	document.getElementById('ibtn_descargas').src = '../images/img_desc_'+strfoto+'.png';

	return;
}

function cambiafbotondesc()
{
    strfoto=get_random(nfdesc);
	document.getElementById('ibtn_descargas').src = '../images/img_wallpaper_'+strfoto+'.png';

	return;
}

function cambiafototitugal()
{
    strfoto=get_random(nfh);
	document.getElementById('img_galeria').style.backgroundImage = 'url('+urlfotogaltur+'galrutis_'+strfoto+'.jpg)';

	return;
}
