// JavaScript Document

function aleatorio(inferior,superior){

		

		numPosibilidades = superior - inferior

		aleat = Math.random() * numPosibilidades

		return Math.round(parseInt(inferior) + aleat)

	}



	numero=aleatorio(1,3);


if((numero==1))
{
document.write('<a href="ciudadanos/enfLesiones/enfTransmisibles/sida/prevencion/hombres/home.htm"/>');
document.write('<img src="diseno/img/foto_inicio'+numero+'.jpg" alt="Access to the campaign HSH 2008. Do the test, for me and for yourself." />');
document.write('</a>');
}
else if (numero==2)
{
document.write('<a href="campannas/campanas08/bucoDental/index.html">');
document.write('<img src="diseno/img/foto_inicio'+numero+'.jpg" alt="Access to Mouth and Teeth Health Plan." />');
document.write('</a>');
}
else 
{
document.write('<a href="http://www.compraconcriterio.es/" target="_blank">');
document.write('<img src="diseno/img/foto_inicio'+numero+'.jpg" alt="Access to the campaign Shop sensibly in the sales. Will open in a new window" />');
document.write('</a>');
}

