var Site = {
  Common: {
    init: function(e) {
      $('body').addClass('js');
    },
    hoverClass: function(e) {
      // add a "hover" class while hovered. Used for dropdowns
      $(e).hover(function() {
        $(this).addClass('hover');
      },
      function() {
        $(this).removeClass('hover');
      });
    },
    ie6pngFix: function(e) {
      if (typeof DD_belatedPNG != 'undefined') {
        DD_belatedPNG.fix('#wrapper .box a.read-more');
      }
    }
  },
  Homepage: {
    init: function(e) {
      $('body.home a.mottotoggler').hover(function() {
        current = $(this).attr('href');
        $('.mottotoggler').removeClass('current');
        $(this).addClass('current');
        $('.motto').hide();
        $(current).show();
      })
    }
  }
};

$(document).ready(function() {
  Site.Common.init();
  Site.Common.hoverClass($('#navigation > ul.menu > li, body.home #branding .mottotoggler'));
  Site.Common.ie6pngFix();  
  Site.Homepage.init();
});
