function switchColors(element, color, name) {
    links = document.getElementsByTagName("a");
    for (var i = 0; i < links.length; i++)
        links.item(i).style.color = '#8e8675';
    element.style.color = color;
}
function prende() {
anclas=document.getElementsByTagName("a").length;
for (i=0;i<anclas;i++)
document.getElementsByTagName("a").item(i).onfocus=new Function("if(this.blur)this.blur()")
}
function InitHeightDiv() {
    var _contentHeight = document.getElementById('divContent').offsetHeight;
    parent.document.getElementById("frame_home").style.height = (_contentHeight.toString() - 0) + 'px';
    parent.document.getElementById("frame_home").style.marginBottom = (0) + 'px';
}
function InitHeightDivNovedades() {
    var _contentHeight = document.getElementById('divContent').offsetHeight;
    parent.document.getElementById("frame_home").style.height = (_contentHeight.toString() - 0) + 'px';
    parent.document.getElementById("frame_home").style.marginBottom = (50) + 'px';
}
function mostrardiv() {
    div = document.getElementById('flotante');
    div.style.display = "";
}
function cerrar() {
    div = document.getElementById('flotante');
    div.style.display = 'none';
    divp = document.getElementById('popup');
    divp.style.top = ""
}

