

function change_lan(i,s,p)
{
if (s==0)
{ document.location.href="index.php?lan="+i+"&s="+s+"&p="+p;	 }
else 
{ document.location.href="indexnav.php?lan="+i+"&s="+s+"&p="+p;	 }
}


// Script to create a drop-down menu effect using layers.
//(c)Copyright Daren Craddock 2002
//You may use this code in any application, no limits,
//provided that you acknowledge Daren Craddock as the originator.
// big() makes selected layer longer (height property)

function big(lyr) {
document.all[lyr].style.height='90px';
document.all[lyr].style.border='1px solid #FFFFFF';

 }

/* small() makes selected layer shorter (height property)*/

function small(lyr) {
document.all[lyr].style.height='32px';
document.all[lyr].style.border='none';
document.link2.src='img/txt/t2_off.gif';
}

/* start() makes all layers short to start with (height property)*/

function start() {

document.all.Layer1.style.height='32px'; }

function show_phone(i)
{
document.myForm.telefono.value=i;
}


function preload(imgObj,imgSrc) {
	eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
}

// donde: 
//
// imgObj - el nombre del objeto asociado con la imagen 
// imgSrc - la fuente nombre del fichero (url) de la imagen 
// Ejemplos: 
//
// preload('imageA','imageA.gif')
// preload('imageB','imageB.gif')

function aleatorio(inferior,superior){ 
    numPosibilidades = superior - inferior 
    aleat = Math.random() * numPosibilidades 
    aleat = Math.round(aleat) 
    return parseInt(inferior) + aleat 
} 





