
Cufon.replace('.searchbox h2, .tab h1', {
	color: '-linear-gradient(#fff, #999)',
	fontFamily:'Trajan Pro',
	textShadow: '1px 1px rgba(0, 0, 0, 0.8)',
	hover: true
});

Cufon.replace('.nav > ul > li > a', {
	fontFamily:'Minion Pro',
	hover: true
});




$(document).ready(function() {

$('#triggerclick').click(function() {

  if($('#trigger').hasClass('active')){
	//$('#trigger').css("top","244px");
	$('#trigger').animate({bottom: "-238px"}, 1000);   
// $('#panel').slideToggle();
		$('#arrow-img').attr("src", "/wp-content/themes/netaffinity-hotel/images/arrow-down.jpg");
		$('#trigger').removeClass("active");
		//Cufon.refresh();
//$('#featureoffer').fadeOut();
  }
  else {
	$('#trigger').animate({bottom: "-38px"}, 1000);
//$('#trigger').css("top","144px");		
//$('#panel').slideToggle();
		$('#arrow-img').attr("src", "/wp-content/themes/netaffinity-hotel/images/arrow-up.jpg");
		$('#trigger').addClass("active");
		//$('#featureoffer').fadeIn(2000);
  }
    return false;
  });


$(".lhs .special").jCarouselLite({
    btnNext: ".next",
    btnPrev: ".prev",
	visible: 1,
	auto: 1400,
    speed: 2500,
	start: 0
});

$(".rhs .special").jCarouselLite({
    btnNext: ".next",
    btnPrev: ".prev",
	visible: 1,
	auto: 1400,
    speed: 2500,
	start: 1
});

$('.banner ul').innerfade({
						speed: 1000,
						timeout: 5000,
						type: 'sequence',
						containerheight: '511px'
					});



	var promotions_qty = $('.featured').size();
var next_promotion = 0;
var rotate_promotions = function() {
if (next_promotion == promotions_qty) { next_promotion = 0 }
$('.featured').hide();
$('.featured').eq(next_promotion).fadeIn(500);
next_promotion++;
};
//rotate_promotions();
$('.featured').hide();
setInterval(rotate_promotions, 6000); 


// FLOATING BANNER START
	$.get('/floating-banner.htm', function(data) {
		$('#f_banner_wrapper').html($(data).filter('#fl_banner'));

			jQuery("#fl_banner").animate({
			top: jQuery(window).height()/2 - jQuery("#fl_banner").height()/2,
			left: jQuery(window).width()/2 - jQuery("#fl_banner").width()/2
		  }, 2500 );
		jQuery("#fl_banner").bind("mouseenter",function(){
			jQuery(".closer", this).fadeIn("fast");
		}).bind("mouseleave",function(){
			jQuery(".closer", this).fadeOut("fast");
		});
		jQuery("#fl_banner").click(function () {
		  jQuery(this).fadeOut("slow");
		});
	});
// FLOATING BANNER END

});
