	$(window).load(function() {
	
		// Toggle Start
		$("#homecontent").hide(); 
		
		$("h2.trigger").click(function(){
			$(this).toggleClass("active").next().slideToggle("slow");
			return false; //Prevent the browser jump to the link anchor
		});
		// Toggle End
		
		// Nivo Slider Start
		$('#slider').nivoSlider({
			effect:'random', //Specify sets like: 'fold,fade,sliceDown'
			slices:15,
			animSpeed:1000, //Slide transition speed
			pauseTime:6000,
			startSlide:0, //Set starting Slide (0 index)
			directionNav:false, //Next & Prev
			directionNavHide:false, //Only show on hover
			controlNav:false, //1,2,3...
			controlNavThumbs:false, //Use thumbnails for Control Nav
			controlNavThumbsFromRel:false //Use image rel for thumbs
		});
		// Nivo Slider End
		
		// Carousel Start
			$(".carousel").jCarouselLite({
				btnNext: ".next",
				btnPrev: ".prev",
				auto: 8000,
				speed: 1600,
				visible: 5
			});
			
			$(".carousel ul li").bind("mouseenter",function() {
				$('.desc', this).animate({bottom:'0px'}, 200);
				}).bind("mouseleave",function(){
					$('.desc', this).animate({bottom:'-74px'}, 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(1000);
	
		next_promotion++;
	  }   
	  
	  rotate_promotions();
	  
	  setInterval(rotate_promotions, 8000);
	  
	  // HOME PAGE FLOATING PROMOTION ROTATOR END
		
		$("#searchbox form").jqTransform();


 $('#loader').fadeOut('slow');
 $('body').removeClass('loader');
 $('#wrapper').animate(1000).css("visibility","visible");
 //Cufon.refresh();


Cufon.replace('h1, h2, h3, h4, h5, h6, #menu > ul > li > a', { fontFamily: 'Albertus', hover: true });
	Cufon.replace('.phone, .twitter', { fontFamily: 'Albertus Medium' });
	Cufon.replace('#featured h2, , #featured h3, #slogan', { fontFamily: 'Albertus Medium', textShadow: '1px 1px rgba(0,0,0,0.5)' });

	});
