// Onload When Document Ready
$j(document).ready(function() {
  $j('a[rel=external]').attr('target', '_blank');

  $j('.equalize').equalHeights('true');
  $j("img[src$=png],.pngfix").pngfix();

  $j('ul.sf-menu').superfish({
    autoArrows:  false,
    delay: 500,
    dropShadows: false
  });

  $j('#rotate').cycle({
    fx: 'fade',
    timeout: 6500,
    speed: 500
  });
  
  $j('ul li:nth-child(even)').addClass('zeb');
  
  $j("a.faqHeader").click(function() {
    $j(this).parent().next().toggle();
    return false;
  }).parent().next().hide();

  $j('a.launchCoupon').fancybox({             // Only used for the coupon.
    'width'           : 'auto',
    'height'          : 'auto',
    'transitionIn'    : 'none',
    'transitionOut'   : 'none'
  });
  
  if ($j('a.shopbox').length) {
    $j("a.shopbox").each(function() {
      $j(this).fancybox({
        'height'   : 400,
        'width'    : 600,
        'type'     : 'iframe',
        'hideOnOverlayClick': false,
        'hideOnContentClick': false
      });
    });
  }
  
});

function addBookmark(title,url) {
  if (window.sidebar) {
    window.sidebar.addPanel(title, url,"");
  } else if( document.all ) {
    window.external.AddFavorite( url, title);
  } else if( window.opera && window.print ) {
    return true;
  }
}



