$(document).ready(function() {

Cufon.replace('#top_nav a');
Cufon.replace('#bottom_nav span', {
  color: '#fff'
});
Cufon.now();

Shadowbox.init();

$("#top_nav li").hover(function() {
  $(this).children("ul").slideDown("fast");
}, function() {
  $(this).children("ul").stop(true, true).slideUp("fast");
});

$("#bottom_nav li").mouseover(function(evt) {
  evt.stopPropagation();
  $(this).siblings().children("ul").slideUp("fast");
  $(this).children("ul").stop(true, true).slideDown("fast");

});

$("#footer").click(function() {
  $(this).children().children().children().children().children().children().children("ul").slideUp("fast");
});

if (location.hash.indexOf('career_') != -1) {
  location.hash = '';
}

/*$(".career").click(function() {
  var id = $(this).attr("id");
  //$("#career_details"+id).css('display', 'block');
  $("#"+id+"_details").slideToggle('slow', function() {
    if(document.getElementById('mycustomscroll').scrollUpdate) document.getElementById('mycustomscroll').scrollUpdate();
  });
});*/

});
