$(document).ready(function(){
  new initFlowText('flowtext');

  $("#nav>li").hoverIntent(
    function() { $("ul",this).slideDown("slow"); },
    function() { $("ul",this).slideUp("fast"); }
  );
  
  $("table#parcoauto table.noactive").hover(
    function() { $(this).css('background-color','#f2f0ee'); $(this).css('cursor','pointer'); },
    function() { $(this).css('background-color','#fff'); }
  );
});
function addOrSubtract(el,pr,pr2,id_grp)  {
  var tweb = parseFloat($('#tweb' + id_grp).text());
  var tloco = parseFloat($('#tloco' + id_grp).text());
    if($('#' + el.id + ':checked').val() == 'on')  {
       $('#tweb' + id_grp).text((tweb + pr).toFixed(2));
       $('#tloco' + id_grp).text((tloco + pr2).toFixed(2));
       }
    else  {
       $('#tweb' + id_grp).text((tweb - pr).toFixed(2));
       $('#tloco' + id_grp).text((tloco - pr2).toFixed(2));
       }
  }