Cufon.replace('h1', {fontFamily: 'futuralight'}); // Page title
Cufon.replace('h2', {fontFamily: 'futuralight'}); // Section title
Cufon.replace('h3', {fontFamily: 'futuraextrabold'}); // Internal menu title
// Cufon.replace('li', {fontFamily: 'Futura-Book'});
Cufon.replace('h4', {fontFamily: 'futuramedium'});

/* rollover start */
$(function() {
	$('.rollover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('hover'));
		$(this).attr('hover', currentImg);
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('hover'));
		$(this).attr('hover', currentImg);
	});
});
/* rollover end */

$(document).ready(function() {
  $("li.h1").hoverIntent({
          interval: 70,
          over: function()  {
	      $(this).next("li.sublist").show('slow').siblings('li.sublist').hide('slow');
  }, 
          out: function () {}
  });
  $('li.h1').hover(function () {
      $(this).find('div.dink img').show();
  }, function () {
      $(this).find('div.dink img').hide();
  });

  $('#pagemenu li img').css('opacity', 0);
  $('#pagemenu li').hover(function () {
     $(this).find('div.dink img').fadeTo(100, 1);
  }, function () {
     $(this).find('div.dink img').fadeTo(100, 0);
  });

  // Give embedded maps a class to style them with.
  $('div[id^=gmap]').addClass('gmap');

  $('#pagemenu ul li a').click(function () {
      var anchor = $(this).attr('href'); // .split('#')[1];
      $.scrollTo(anchor,800);
      return false;
  });

  // Position internal navigation.
  if ($('#pagemenu').length && $('#pagemenuspacer').length) {
      $(window).resize(function () {
        $('#pagemenu').css('left', $('#pagemenuspacer').offset().left - 9);
        $('#bookonline').css('left', $('#pagemenuspacer').offset().left + 2);
      }).resize();
  }
});


