function mycarousel_initCallback(carousel) {
    jQuery('#nav li a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).attr('id')));
        if (jQuery(this).attr('href') == "#videos")
          {
            if (jQuery('#youtube a img').hasClass('spin') == false)
                {
                  setTimeout(function() {
                    jQuery('#youtube a img').addClass('spin');
                  }, 1600);
                }
                else
                {
                  jQuery('#youtube a img').css('-webkit-animation-name', 'none');
                  setTimeout(function() {
                    jQuery('#youtube a img').css('-webkit-animation-name', 'spins');
                  }, 0);
                }
          }
        return false;
    });

  jQuery('#jetty_rae_logo map area').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).attr('id')));
        return false;
    });

  jQuery('a.section_link').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).attr('id')));
        return false;
    });
};
 
// Ride the carousel...
jQuery(document).ready(function() {
    jQuery("#carousel_content").jcarousel({
        scroll: 1,
    easing: 'easeOutBack', 
    animation: 1500,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });

  $("a.image_link").fancybox({
      'transitionIn'  :  'elastic',
      'transitionOut'  :  'elastic',
      'speedIn'    :  600, 
      'speedOut'    :  200, 
      'overlayShow'  :  false
    });
  
  if (navigator.appName=="Microsoft Internet Explorer"){
    alert("Well this is embarassing... my site doesn't work in Internet Explorer (your browser). I'll send you to my Facebook page, which has much of the same information. If you want the full Jetty Rae experience, please come back when you're using either Safari, Firefox, or Google Chrome.");
	window.location="http://facebook.com/jettyrae";
  }
});
