$(document).ready(function(){
  /* Accordeon jQuery effects */
  $('#accordeon li:first-child').css("width", 200);
  $('#accordeon li:first-child h1').show();
  $('#accordeon li:first-child p').show();
  $('#accordeon li:first-child a').show();
  $('#accordeon li').mouseover(function(){
    if($(this).css('width') == '30px')
    {
      $('#accordeon li').animate( { width: "30px" }, { queue: false, duration: 400, easing: 'swing' });
      $('#accordeon h1').hide();
      $('#accordeon p').hide();
      $('#accordeon a').hide();
      $(this).animate( { width: "200px" }, { queue: false, duration: 400, easing: 'swing' });
      $(this).find('h1').fadeIn(500);
      $(this).find('p').fadeIn(500);
      $(this).find('a').fadeIn(500);
    }
  });

  /* Resize first column, depending on highest available other column */
  var left_column = $(".bg_left_column").height();
  var center_column = $(".center_column").height();
  var right_column = $(".right_column").height();
  if(left_column < center_column || left_column < right_column)
  {
    if(right_column > center_column)
    {
      $(".left_column").css("height", right_column);
    }
    else
    {
      $(".left_column").css("height", center_column);
    }
  }
});


