﻿ $(document).ready(function() {
    $("dd:not(:first)").hide();
    $("dt a").click(function(){
	    $("dd:visible").slideUp("slow");
	    $(this).parent().next().slideDown("slow");
	    return false;
    });
   $('#topbar').html(tbl_top);
   $('#main_baner').html(baner_principal);
   if(paquete != ""){
   $('#'+paquete).addClass("menu_bar_sel");
   }
 });
 function carga_datos(url,img){
     	$.ajax({
        url: url,
		cache: false,
        async:true,
        beforeSend: function(objeto){
        $("#datos").html(loading); 
         },
        complete: function(objeto, exito){
         },
        dataType: "html",
        global: true,
        ifModified: false,
        processData:true,
        success: function(data){
        show_data(data);
		$('#main_baner').html('<img src="'+ img +'" border="0" />');
        //$("#datos").html(data);
        },
        timeout: 40000,
        type: "GET"
        });
}

function show_data(data){
$("#datos").fadeOut(400, function() {
    $("#datos").html(data);
    $("#datos").fadeIn("slow");
});
}
function link(url){
document.location = url;
}


