
 function financialsSubs() {
 
   b1 = document.getElementById("Banner1");
   b2 = document.getElementById("Banner2");
   
   b1.style.display = "none";
   b2.style.display = "block";
 
 } // end function
 

 function SiteLayout() {
 
    $(".SubMenuTd1").hover(
      function () {
        tid = $(this).attr('id');
        $(this).css({'backgroundImage': 'url(graphics/smenu_hbg.jpg)'});
        $('#' + tid + ' a:first').css({'color':'#FFFFFF'});
      }, 
      function () {
        tid = $(this).attr('id');
        $(this).css({'backgroundImage': 'url(graphics/smenu_bg.jpg)'});
        $('#' + tid + ' a:first').css({'color':'#291B64'});
      }
    );
 
    $(".SubMenuTd2").hover(
      function () {
        tid = $(this).attr('id');
        $(this).css({'backgroundImage': 'url(graphics/smenu_bg.jpg)'});
        $('#' + tid + ' a:first').css({'color':'#291B64'});
      }, 
      function () {
        tid = $(this).attr('id');
        $(this).css({'backgroundImage': 'url(graphics/smenu_hbg.jpg)'});
        $('#' + tid + ' a:first').css({'color':'#FFFFFF'});
      }
    );
 
 } // end function


 function TablesLayout() {

    $('.TbListing tr').addStyles1();
    
    $('.RowHeader td').addClass('TdHeader'); 
    
    $('.RowSubHeader td').addStyles2();
 
    $('.RowInner td').addStyles3();

    tbn = $('.TbListing').length;
    
    for(t=0;t<tbn;t++) {
     
      trn = $('.TbListing:eq('+t+') tr.RowInner').length;
      
      for(i=0;i<trn;i++) {
        $('.TbListing:eq('+t+') tr.RowInner:eq('+i+') td').TdsEvents(t, i, 1);
      }
      
    } // end for

 } // end function


 $.fn.TdsEvents = function(t, i, v) {
  this.each(function() {

    if($(this).hasClass("TdBottomDottedBorder")) {

       $(this).attr('id', t + '.' + i + '.' + v);

       $(this).hover(
         function () {
            tdvars = $(this).attr('id');
            tdvars_arr = tdvars.split(".");
            tbi = parseFloat(tdvars_arr[0]);
            roi = parseFloat(tdvars_arr[1]);
            tdi = parseFloat(tdvars_arr[2]);
            $('.TbListing:eq('+tbi+') tr.RowInner:eq('+roi+') td').css({'background-color': '#efefef'});
            $('.TbListing:eq('+tbi+') tr.RowInner td:nth-child('+tdi+')').css({'background-color': '#efefef'});
            $(this).css({'background-color': '#cccccc'});
         }, 
         function () {
            tdvars = $(this).attr('id');
            tdvars_arr = tdvars.split(".");
            tbi = parseFloat(tdvars_arr[0]);
            roi = parseFloat(tdvars_arr[1]);
            tdi = parseFloat(tdvars_arr[2]);
            $('.TbListing:eq('+tbi+') tr.RowInner:eq('+roi+') td').css({'background-color': ''});
            $('.TbListing:eq('+tbi+') tr.RowInner td:nth-child('+tdi+')').css({'background-color': ''});
         }
       );    

    } // end if

    v++;

  });

 };
 
 
 $.fn.addStyles1 = function() {
  this.each(function() {

    rclass = $(this).attr('class');

    if(rclass == "") {
       $(this).addClass('RowInner');
    }
    
  });
  
 };
 

 $.fn.addStyles2 = function() {
  this.each(function() {

    tdconts = $(this).html();
    tdconts = $.trim(tdconts);

    if(tdconts != "&nbsp;" && tdconts != "") {
       $(this).addClass('TdBottomDottedBorder');
    }
    
  });
  
 };


 $.fn.addStyles3 = function() {

 this.each(function() {

    tdconts = $(this).html();
    tdconts = $.trim(tdconts);

    if(tdconts != "&nbsp;" && tdconts != "") {
       $(this).addClass('TdBottomDottedBorder');
    }

  });

 };

