function favoritos() { if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { window.external.AddFavorite ("http://www.medioambientecantabria.com","Medioambientecantabria.com"); } else { var msg = "¡Para añadirnos a tus favoritos pulsa Ctrl + D!"; if(navigator.appName == "Netscape") msg += " (CTRL-D)"; alert(msg); } } function ini() { if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage('http://www.medioambientecantabria.com'); } else { if(navigator.appName == "Netscape") alert("Su navegador no acepta esta opción automática."); } } function subWin(loc, titulo, ancho, alto) { options="toolbar=0,Status=0,menubar=0,scrollbars,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto; window.open(loc,titulo,options); } function cambia_color(Objeto,color) { Objeto.style.background = '#'+color; } function devuelve_color(Objeto,color) { Objeto.style.background = '#'+color; } function clicks(id_banner,ventana) { if (ventana == 0) { options="toolbar=1,Status=1,menubar=1,scrollbars,resizable=1,location=1,directories=1,width=800,height=600"; window.open("/clicks.php?Id_banner="+id_banner,'',options); } else { window.location=("/clicks.php?Id_banner="+id_banner); } } function saca_contenidos(indice) { document.write("
| ");
document.write(Menugeneral[indice][i])
document.write("<\/td><\/tr>")
}
document.write("<\/table>");
}
function imagenes(cual,cual2,cual3,pie,nombre,url)
{
destino="/imagenes_contenidos/"+cual+"_"+cual2+"."+nombre;
document.getElementById('Grande').src=destino;
if(url!=''){
document.getElementById('UrlGrande').href=url;
}
else{
document.getElementById('UrlGrande').href='#imagenes';
}
document.getElementById('Piefoto').innerHTML=pie;
}
function sacar_fecha()
{
var Matriz_mes=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]
var f= new Date();
var d= f.getDate();
var mes= f.getMonth();
var ano= f.getYear();
if (ano<1000) ano=ano+1900;
document.write(d+" - "+Matriz_mes[mes]+" - "+ano);
}
function Mostrar2(cual)
{
obj=document.getElementById(cual);
obj.style.display='';
}
function grl(imgElem)
{
xPos = document.getElementById(imgElem).offsetLeft;
tempEl = document.getElementById(imgElem).offsetParent;
//xPos = eval(imgElem).offsetLeft;
//tempEl = eval(imgElem).offsetParent;
while (tempEl != null)
{
xPos += tempEl.offsetLeft;
tempEl = tempEl.offsetParent;
}
return xPos;
}
function desplegar(capa)
{
var tmpx=capa.substr(4,1);
if (tmpx==5){
var tmpoff=-130;
}else{
var tmpoff=17;
}
var px_x=grl('img'+tmpx)+tmpoff;
if (document.getElementById(capa).style.display!='block'){
accion='mostrar';
}else {
accion='';
}
for (i=1;i |