
/* =FONT
 ----------------------------------------------------*/

 Cufon.replace('h1, h2, h3, h4, #menu li .top, #footermenu li a', {fontFamily: 'Myriad Pro', hover: 'true',});
 Cufon.replace('#submenu a', {fontFamily: 'MyriadProLight' , hover: 'true'});
 Cufon('#subheader h2, #slideshow h2', {fontFamily: 'Myriad Pro', textShadow: '1px 1px black'});


 $(function() {
      $('.button').each(function(){
          $(this).after(unescape('%3Cspan class="button"%3Eaa%3C/span%3E'));
          $(this).hide();
          $(this).next('span.button').text($(this).val()).click(function(){
              $(this).prev('input.button').click();
          });
      });
      Cufon.replace('.button'); 
  });
 
/* =SLIDESHOW
 ----------------------------------------------------*/ 
 $(function(){     
    $('#slideshow ul').cycle({
     timeout: 7000,           // milliseconds between slide transitions (0 to disable auto advance)
     fx:      'fade',         // choose your transition type, ex: fade, scrollUp, shuffle, etc...            
     pager:   '#pager',       // selector for element to use as pager container
     pause:   0,              // true to enable "pause on hover"
     pauseOnPagerHover: 0     // true to pause when hovering over pager link
    });
 });
 
/* =SPECIALS
 ----------------------------------------------------*/ 
  $(function(){     
    $('.specials ul').cycle({
     timeout: 5000,
     fx:      'fade',
     pager:   '#special',
     pause:   0,
     pauseOnPagerHover: 0
    });
 });
 
 /* =FANCYBOX
 ----------------------------------------------------*/ 
  $(document).ready(function() {
    $("a.group").fancybox({
      'speedIn':    300,
      'speedOut':  300,
      'overlayColor':  '#000',
      'overlayOpacity':  0.7
    });
  });


