Cufon.replace('h1,h2,h3,h4,h5,h6', {
  fontFamily: 'Cambria',
  textShadow: '1px 1px rgba(255,255,255,0.4)'
});
Cufon.replace('.slogan', {
  fontFamily: 'FlemishScript BT',
  textShadow: '2px 2px rgba(0,0,0,0.5)'
});
Cufon.replace('nav > ul > li > a', {
  fontFamily: 'Arial',
  textShadow: '1px 1px rgba(0,0,0,0.5)'
});
Cufon.replace('.featured h1', {
  fontFamily: 'Cambria',
  textShadow: '1px 1px rgba(0,0,0,0.5)',
  color: '-linear-gradient(#efc1ea, #c89ac4)'
});
Cufon.replace('.featured h2', {
  fontFamily: 'Cambria',
  textShadow: '1px 1px rgba(0,0,0,0.5)',
  color: '-linear-gradient(#fff, #cdcdcd)'
});

$(document).ready(function() {
  $('.slider ul').innerfade({
		speed: 1000,
		timeout: 8000,
		type: 'sequence',
		containerheight: '500px'
	});

  // Carousel Start
  $(".carousel").jCarouselLite({
    btnNext: ".next",
    btnPrev: ".prev",
    auto: 6000,
    speed: 2000,
    visible: 3
  });

  $(".carousel ul li").bind("mouseenter",
          function() {
            $('.desc', this).animate({bottom:'0px'}, 200);
          }).bind("mouseleave", function() {
            $('.desc', this).animate({bottom:'-66px'}, 200);
          });
  // Carousel End

  // HOME PAGE FLOATING PROMOTION ROTATOR
  var promotions_qty = $('.featured ul li').size();
  var next_promotion = 0;

  var rotate_promotions = function() {
    if (next_promotion == promotions_qty) {
      next_promotion = 0
    }

    $('.featured ul li').hide();
    $('.featured ul li').eq(next_promotion).fadeIn(500);

    next_promotion++;
  };

  rotate_promotions();

  setInterval(rotate_promotions, 8000);

  // HOME PAGE FLOATING PROMOTION ROTATOR END

  $('.scroll').jScrollPane({showArrows:true});


  $('#weather_feed').weatherfeed(['EIXX0036']);
});

