
// replace fonts
  Cufon.replace('p', {autoDetect: true});
  Cufon.replace('h2', {autoDetect: true});
  Cufon.replace('a', {autoDetect: true});

$(document).ready(function() {

$('#container, #spot').hide();

// fadein page onload
  $('#box').hide().fadeIn(400);

// fadeoutpage on unload
  $('a').click(function() {
    var target = $(this).attr('href');
      $('#box').fadeOut(300, function() {
        window.location = target;
        });
      return false;
  });

// menu settings
  $('#menu ul li').hover(function() {
        $(this).children('a').stop().animate({
          color: "#fff"
        }, 450);
          $(this).children('.second-level').stop().animate(
            {height: '100px'}, {duration: 500}
          );
    }, function() {
        $(this).children('a').stop().animate({
          color: "#4f4c4d"
        }, 450);
          $(this).children('.second-level').stop().animate(
            {height: '0'}, {duration: 500}
          );

    });

})

