;(function($) {
	$(document).ready(function() {  		

		// base definitions
		jQuery.easing.def = "easeOutExpo";

		//if ($("#features").length) {
			// base definitions
			//$("#features dd p").css({opacity: 0});
			
	//		$('#features dt').entwine({
	//			expand: function() {
	//				this.next().stop().slideDown("slow");
	//				this.next().find("p").animate({opacity:1});
	//				this.addClass('current');
	//			},
	//			collapseall: function() {
	//				this.parent().find("p").animate({opacity:0});
	//				this.parent().find("dd").slideUp("slow");
	//				this.parent().find("dt").removeClass('current');
	//			},
	//			onclick: function(){
	//				this.collapseall();
	//				this.expand();
	//			}
	//		});
			// init
	//		$('#features dt:first').next().show();
	//		$('#features dt:first').next().find("p").css({opacity:1});
	//		$('#features dt:first').addClass('current');
		//};

        $("#features div > p").css({opacity: 1});
        $('#features').accordion({
            header: 'h2',
            animated: 'fade'
            
        });
		// nav animation
		// $("#nav a").entwine({
		// 	onmouseover: function() {
		// 		if (this.parent().hasClass('current') || this.parent().hasClass('section')) {				
		// 
		// 		}else{
		// 			this.stop().animate({color:'#fff',backgroundPositionY:"-60px"}).parent().addClass("hover");					
		// 		}
		// 	},
		// 	onmouseout: function() {
		// 		if (this.parent().hasClass('current') || this.parent().hasClass('section')) {
		// 			
		// 		}else{
		// 			this.stop().animate({color:'#333',backgroundPositionY:"0"}).parent().removeClass("hover");
		// 		}
		// 	}
		// });


		// subnav animation
		$("#lvl2menu a").css({marginTop:"-40px"});
		
		$("#lvl2menu a").each(function(i){
			$(this).delay(500).animate({marginTop:"0"},200*i);
		})
				
	})
})(jQuery);
