
$(document).ready(function () {
    $("#tabla1 .tabla1cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla1 .tabla1cont").load("tabla1prom.php");
    $('.prome').css('backgroundColor','red');
    $('.temp1').css('backgroundColor','green');
    $('.temp2').css('backgroundColor','green');
    $('.temp3').css('backgroundColor','green');
    $('.total').css('backgroundColor','green');
});

$(document).ready(function () {
   $(".prome").click(function () {
    $("#tabla1 .tabla1cont").empty();
    $("#tabla1 .tabla1cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla1 .tabla1cont").load("tabla1prom.php");
    $('.prome').css('backgroundColor','red');
    $('.temp1').css('backgroundColor','green');
    $('.temp2').css('backgroundColor','green');
    $('.temp3').css('backgroundColor','green');
    $('.total').css('backgroundColor','green');
   });
   }); 

$(document).ready(function () {
   $(".temp1").click(function () {
    $("#tabla1 .tabla1cont").empty();
    $("#tabla1 .tabla1cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla1 .tabla1cont").load("tabla1temp1.php");
    $('.temp1').css('backgroundColor','red');
    $('.prome').css('backgroundColor','green');
    $('.temp2').css('backgroundColor','green');
    $('.temp3').css('backgroundColor','green');
    $('.total').css('backgroundColor','green');
   });
   });  
   
   $(document).ready(function () {
   $(".temp2").click(function () {
    $("#tabla1 .tabla1cont").empty();
    $("#tabla1 .tabla1cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla1 .tabla1cont").load("tabla1temp2.php");
    $('.temp2').css('backgroundColor','red');
    $('.prome').css('backgroundColor','green');
    $('.temp1').css('backgroundColor','green');
    $('.temp3').css('backgroundColor','green');
    $('.total').css('backgroundColor','green');
   });
   });
   
   $(document).ready(function () {
   $(".temp3").click(function () {
    $("#tabla1 .tabla1cont").empty();
    $("#tabla1 .tabla1cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla1 .tabla1cont").load("tabla1temp3.php");
    $('.temp3').css('backgroundColor','red');
    $('.prome').css('backgroundColor','green');
    $('.temp1').css('backgroundColor','green');
    $('.temp2').css('backgroundColor','green');
    $('.total').css('backgroundColor','green');
   });
   });    
   
$(document).ready(function () {
   $(".total").click(function () {
    $("#tabla1 .tabla1cont").empty();
    $("#tabla1 .tabla1cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla1 .tabla1cont").load("tabla1total.php");
    $('.total').css('backgroundColor','red');
    $('.prome').css('backgroundColor','green');
    $('.temp1').css('backgroundColor','green');
    $('.temp3').css('backgroundColor','green');
    $('.temp2').css('backgroundColor','green');
   });
   });  
   
   $(document).ready(function () {
    $("#tabla2 .tabla2cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla2 .tabla2cont").load("tabla2prom.php");
    $('.promeb').css('backgroundColor','red');
    $('.temp2b').css('backgroundColor','green');
    $('.temp3b').css('backgroundColor','green');
    $('.totalb').css('backgroundColor','green');
});
   
$(document).ready(function () {
   $(".promeb").click(function () {
    $("#tabla2 .tabla2cont").empty();
    $("#tabla2 .tabla2cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla2 .tabla2cont").load("tabla2prom.php");
    $('.promeb').css('backgroundColor','red');
    $('.temp2b').css('backgroundColor','green');
    $('.temp3b').css('backgroundColor','green');
    $('.totalb').css('backgroundColor','green');
   });
   }); 
   
   $(document).ready(function () {
   $(".temp2b").click(function () {
    $("#tabla2 .tabla2cont").empty();
    $("#tabla2 .tabla2cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla2 .tabla2cont").load("tabla2temp2.php");
    $('.temp2b').css('backgroundColor','red');
    $('.promeb').css('backgroundColor','green');
    $('.temp3b').css('backgroundColor','green');
    $('.totalb').css('backgroundColor','green');
   });
   });
   
   $(document).ready(function () {
   $(".temp3b").click(function () {
    $("#tabla2 .tabla2cont").empty();
    $("#tabla2 .tabla2cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla2 .tabla2cont").load("tabla2temp3.php");
    $('.temp3b').css('backgroundColor','red');
    $('.promeb').css('backgroundColor','green');
    $('.temp2b').css('backgroundColor','green');
    $('.totalb').css('backgroundColor','green');
   });
   });    
   
$(document).ready(function () {
   $(".totalb").click(function () {
    $("#tabla2 .tabla2cont").empty();
    $("#tabla2 .tabla2cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#tabla2 .tabla2cont").load("tabla2total.php");
    $('.totalb').css('backgroundColor','red');
    $('.promeb').css('backgroundColor','green');
    $('.temp2b').css('backgroundColor','green');
    $('.temp3b').css('backgroundColor','green');
   });
   });  
   
$(document).ready(function () {
    $('.temp1').mouseover(function () {
       $('.temp1ventana').show(); 
    });
});
$(document).ready(function () {
    $('.temp1').mouseout(function () {
       $('.temp1ventana').hide(); 
    });
});
$(document).ready(function () {
    $('.temp2').mouseover(function () {
       $('.temp2ventana').show(); 
    });
});
$(document).ready(function () {
    $('.temp2').mouseout(function () {
       $('.temp2ventana').hide(); 
    });
});
$(document).ready(function () {
    $('.temp3').mouseover(function () {
       $('.temp3ventana').show(); 
    });
});
$(document).ready(function () {
    $('.temp3').mouseout(function () {
       $('.temp3ventana').hide(); 
    });
});
$(document).ready(function () {
    $('.total').mouseover(function () {
       $('.totalventana').show(); 
    });
});
$(document).ready(function () {
    $('.total').mouseout(function () {
       $('.totalventana').hide(); 
    });
});
$(document).ready(function () {
    $('.prome').mouseover(function () {
       $('.promeventana').show(); 
    });
});
$(document).ready(function () {
    $('.prome').mouseout(function () {
       $('.promeventana').hide(); 
    });
});

$(document).ready(function () {
    $('.temp2b').mouseover(function () {
       $('.temp2bventana').show(); 
    });
});
$(document).ready(function () {
    $('.temp2b').mouseout(function () {
       $('.temp2bventana').hide(); 
    });
});
$(document).ready(function () {
    $('.temp3b').mouseover(function () {
       $('.temp3bventana').show(); 
    });
});
$(document).ready(function () {
    $('.temp3b').mouseout(function () {
       $('.temp3bventana').hide(); 
    });
});
$(document).ready(function () {
    $('.totalb').mouseover(function () {
       $('.totalbventana').show(); 
    });
});
$(document).ready(function () {
    $('.totalb').mouseout(function () {
       $('.totalbventana').hide(); 
    });
});
$(document).ready(function () {
    $('.promeb').mouseover(function () {
       $('.promebventana').show(); 
    });
});
$(document).ready(function () {
    $('.promeb').mouseout(function () {
       $('.promebventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4a').mouseover(function () {
       $('.tabla4aventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4a').mouseout(function () {
       $('.tabla4aventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4c').mouseover(function () {
       $('.tabla4cventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4c').mouseout(function () {
       $('.tabla4cventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4d').mouseover(function () {
       $('.tabla4dventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4d').mouseout(function () {
       $('.tabla4dventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4e').mouseover(function () {
       $('.tabla4eventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4e').mouseout(function () {
       $('.tabla4eventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4f').mouseover(function () {
       $('.tabla4fventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4f').mouseout(function () {
       $('.tabla4fventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4g').mouseover(function () {
       $('.tabla4gventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4g').mouseout(function () {
       $('.tabla4gventana').hide(); 
    });
});
$(document).ready(function () {
    $('.tabla4h').mouseover(function () {
       $('.tabla4hventana').show(); 
    });
});
$(document).ready(function () {
    $('.tabla4h').mouseout(function () {
       $('.tabla4hventana').hide(); 
    });
});


$(document).ready(function () {
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4pts.php");
    $('.tabla4a').css('backgroundColor','red');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
    /* $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
});

$(document).ready(function () {
   $(".tabla4a").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4pts.php");
    $('.tabla4a').css('backgroundColor','red');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
    /*    $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   });  
   
$(document).ready(function () {
   $(".tabla4c").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4pg.php");
    $('.tabla4c').css('backgroundColor','red');
    $('.tabla4a').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
   /* $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   }); 
   
$(document).ready(function () {
   $(".tabla4d").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4pe.php");
    $('.tabla4d').css('backgroundColor','red');
    $('.tabla4a').css('backgroundColor','green');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
     /*   $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   }); 
   
$(document).ready(function () {
   $(".tabla4e").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4pp.php");
    $('.tabla4e').css('backgroundColor','red');
    $('.tabla4a').css('backgroundColor','green');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
     /*   $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   }); 

$(document).ready(function () {
   $(".tabla4f").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4gf.php");
    $('.tabla4f').css('backgroundColor','red');
    $('.tabla4a').css('backgroundColor','green');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
     /*   $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   }); 
   
$(document).ready(function () {
   $(".tabla4g").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4gc.php");
    $('.tabla4g').css('backgroundColor','red');
    $('.tabla4a').css('backgroundColor','green');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4h').css('backgroundColor','green');
     /*   $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   }); 
   
$(document).ready(function () {
   $(".tabla4h").click(function () {
    $(".tabla4cont").empty();
    $(".tabla4cont").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $(".tabla4cont").load("tabla4dg.php");
    $('.tabla4h').css('backgroundColor','red');
    $('.tabla4a').css('backgroundColor','green');
    $('.tabla4c').css('backgroundColor','green');
    $('.tabla4d').css('backgroundColor','green');
    $('.tabla4e').css('backgroundColor','green');
    $('.tabla4f').css('backgroundColor','green');
    $('.tabla4g').css('backgroundColor','green');
      /*  $('.tabla4atotal').css('backgroundColor','green');
    $('.tabla4ctotal').css('backgroundColor','green');
    $('.tabla4dtotal').css('backgroundColor','green');
    $('.tabla4etotal').css('backgroundColor','green');
    $('.tabla4ftotal').css('backgroundColor','green');
    $('.tabla4gtotal').css('backgroundColor','green');
    $('.tabla4itotal').css('backgroundColor','green'); */
   });
   }); 
   
$(document).ready(function () {
    $(".cuadrito").click(function () {
        $(this).select()
});
});

/*         Fecha Actual                      */
$(document).ready(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha5.php"); });
    
$(document).ready(function () {
    $(".f1").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha1.php");}) });
    
$(document).ready(function () {
    $(".f2").click(function  () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha2.php");}) });

$(document).ready(function () {
    $(".f3").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha3.php");}) });
    
$(document).ready(function () {
    $(".f4").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha4.php");}) });
    
$(document).ready(function () {
    $(".f5").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha5.php");}) });
    
$(document).ready(function () {
    $(".f6").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha6.php");}) });
    
$(document).ready(function () {
    $(".f7").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha7.php");}) });
    
$(document).ready(function () {
    $(".f8").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha8.php");}) });
    
$(document).ready(function () {
    $(".f9").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha9.php");}) });
    
$(document).ready(function () {
    $(".f10").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha10.php");}) });
    
$(document).ready(function () {
    $(".f11").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha11.php");}) });
    
$(document).ready(function () {
    $(".f12").click(function  () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha12.php");}) });

$(document).ready(function () {
    $(".f13").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha13.php");}) });
    
$(document).ready(function () {
    $(".f14").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha14.php");}) });
    
$(document).ready(function () {
    $(".f15").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha15.php");}) });
    
$(document).ready(function () {
    $(".f16").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha16.php");}) });
    
$(document).ready(function () {
    $(".f17").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha17.php");}) });
    
$(document).ready(function () {
    $(".f18").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha18.php");}) });
    
$(document).ready(function () {
    $(".f19").click(function () {
    $("#fechas").empty();
    $("#fechas").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#fechas").load("fechas/fecha19.php");}) });
    
$(document).ready(function () {
    $(".aleat").click(function () {
    $("#calculador2").empty();
    $("#calculador2").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#calculador2").load("aleat.php");}) });
    
$(document).ready(function () {
    $(".media").click(function () {
    $("#calculador2").empty();
    $("#calculador2").html("<br /> <div align='center'><img src='fulbo.gif' /><br />Cargando...</div>");
    $("#calculador2").load("calculador2.php");}) });
    