// This is added as a hotfix to prevent another deployment
// Ideally the calling of all cufon replaces should be moved to
// LanguageClientResources.ascx in the rolls royce extensions
// and only declared when needed
try {
  Cufon.replace('h2');
  Cufon.replace('h3', {
    fontFamily: 'GillAltOneMT'
  });
  Cufon.replace('h4', {
    fontFamily: 'GillAltOneMT'
  });
  Cufon.replace('h5', {
    fontFamily: 'GillAltOneMT'
  });
  Cufon.replace('.navOn', {
    hover: true,
    fontFamily: 'GillAltOneLightMT'
  });
  Cufon.replace('.navOff', {
    hover: true,
    fontFamily: 'GillAltOneMT'
  });
  Cufon.replace('.homepageModule', {
      hover: true
  });
  
  Cufon.replace('.firstLevelContainer li', {
    hover: true,
    fontFamily: 'GillAltOneMT'
  });
}
catch (error)
{
  // Nothing to do here. Cufon is not defined, so we're obviously in non-latin language territory
}

$(document).ready(function(){
  $('.headerNavigation li').mouseover(function() {
      $(this).contents().find('.navOn').stop().hide();
      $(this).contents().find('.navOff').stop().show();
  });
  $('.headerNavigation li').mouseout(function() {
      $(this).contents().find('.navOff').stop().hide();
      $(this).contents().find('.navOn').stop().show();
  });
});

