// JavaScript Document

function cambiarEnlace(idselected){

    ids = document.getElementsByTagName("a");
    
                for (i = 0;i < ids.length; i++) {
                    if(ids[i].id.substring(0,10) == "id_seccion"){
                        //document.getElementById(ids[i].id).style.height = "40px"; //deselecciona todos

                        if(idselected == ids[i].id){
                               $(document).ready(function(){
                                 //alert(idselected);
                               
                                 $("#"+idselected).height(18)
                                     .css({cursor:"auto", backgroundColor:"green"});
                                 alert($("#"+idselected).height());
                              });
                             
                           // document.getElementById(idselected).style.height="18px"; //baja el alto del enlace
                           
                         }


                    }
                  }


		
}


function openPage(href){
    window.location.href = href;

}


function esconde_anuncio(divId)
{ if (document.layers) document.layers[divId].visibility = 'hide';
else if (document.all) document.all[divId].style.visibility = 'hidden';
else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
}
function mostrar_anuncio(divId)
{ state=typeof topPos;
if(state=='undefined') topPos=-260;
if(topPos < 75)
{ topPos+=3;
if (document.layers) document.layers[divId].top = topPos;
else if (document.all) document.all[divId].style.top = topPos;
else if (document.getElementById) document.getElementById(divId).style.top = topPos;

setTimeout("mostrar_anuncio('pop');",5);
}
}




function abrirVentana(url, ancho, alto)
{
var sHeight, sWidth;
sHeight = screen.height;
sWidth = screen.width;
var sLeft, sTop;
sLeft=(screen.width - ancho) / 2;
sTop=(screen.height - alto) / 2;
window.open(url, '_blank','top='+sTop+', left='+sLeft+', height='+alto+', width='+ancho+', status=no, menubar=no, resizable=no, scrollbars=no, toolbar=no, location=no, directories=no');
}
