﻿// Archivo JScript
function Centrado(){
    var height=window.innerHeight;//Firefox
    if (document.body.clientHeight)
    {
        height=window.screen.availHeight;//IE
    }
    if (height - 637 > 0)
    {
        document.getElementById("tblFondo").style.height=parseInt(height - ((height - 637)/2))+"px";
    }
    else
    {
        document.getElementById("tblFondo").style.height=637;
    }
}
 
function Enlace(a) {
	visor = navigator.appName;
	if (visor == "Microsoft Internet Explorer"){
        a.style.cursor='hand';
    } else {
        a.style.cursor='pointer';
    }
}

function Noticia(id){
    var pane = window.parent.RadSplitter1.GetPaneById('contentPane');
    pane.SetContentUrl('/contenido/noticias.aspx?id='+id);
}

function Detalle(detalle){
    var pane = window.parent.RadSplitter1.GetPaneById('contentPane');
    pane.SetContentUrl('/contenido/detalle.aspx?detalle='+detalle);
}

function Ventana(url){
    window.open(url ,"TSAD");
}

function AbrirAviso(){
    window.open('/contenido/aviso.htm' ,"TSAD","top=250,left=400,width=500,height=335,location=no, status=no, help=no, unadorned=no") //500x385
}
