var hcwh = {
  
  txt: '&nbsp;',
    
  init: function()
  {
    if( $('hcwh_startup') ) 
    {
      Event.observe( 'hcwh_startup', 'mouseover', hcwh.over, false );
      Event.observe( 'hcwh_startup', 'mouseout',  hcwh.out, false  );
      if( $('hcwh_startup').className == 'high' )
      {
        hcwh.txt = '<b>Summary:</b> High growth start-ups and scalable micros, &pound;0-&pound;1m turnover';
      }
    }
    
    if( $('hcwh_small') ) 
    {
      Event.observe( 'hcwh_small', 'mouseover', hcwh.over, false );
      Event.observe( 'hcwh_small', 'mouseout',  hcwh.out, false  );
      if( $('hcwh_small').className == 'high' )
      {
        hcwh.txt = '<b>Summary:</b> Small to medium in size, &pound;1m+ turnover';
      }
    }
    
    if( $('hcwh_medium') ) 
    {
      Event.observe( 'hcwh_medium', 'mouseover', hcwh.over, false );
      Event.observe( 'hcwh_medium', 'mouseout',  hcwh.out, false  );
      if( $('hcwh_medium').className == 'high' )
      {
        hcwh.txt = '<b>Summary:</b> Medium to large, &pound;10m+ turnover';
      }
    }
    
    if( $('hcwh_large') ) 
    {
      Event.observe( 'hcwh_large', 'mouseover', hcwh.over, false );
      Event.observe( 'hcwh_large', 'mouseout',  hcwh.out, false  );
      if( $('hcwh_large').className == 'high' )
      {
        hcwh.txt = '<b>Summary:</b> Large corporations, &pound;100m+ turnover';
      }
    }
    
    if($('hcwh_summary')) $('hcwh_summary').innerHTML = hcwh.txt;
  },

  over: function(event)
  {
    var element = event.element();
    
    if( element.id == 'hcwh_startup')
    {
      $('hcwh_summary').innerHTML = '<b>Summary:</b> High growth start-ups and scalable micros, &pound;0-&pound;1m turnover';
    }
    
    if( element.id == 'hcwh_small')
    {
      $('hcwh_summary').innerHTML = '<b>Summary:</b> Small to medium in size, &pound;1m+ turnover';
    }
    
    if( element.id == 'hcwh_medium')
    {
      $('hcwh_summary').innerHTML = '<b>Summary:</b> Medium to large, &pound;10m+ turnover';
    }
    
    if( element.id == 'hcwh_large')
    {
      $('hcwh_summary').innerHTML = '<b>Summary:</b> Large corporations, &pound;100m+ turnover';
    }
  },
  
  out: function()
  {
    $('hcwh_summary').innerHTML = hcwh.txt;
  }  
    
}

document.observe( "dom:loaded", hcwh.init );