$(function () {
	var s = null,
	
	ValueFirst = {
		settings : {
			featured: $("#featured"),
			nav: $("#primary-nav")
		},
		
		init: function() {
			s = this.settings;

			this.featured();
			this.nav();
		},
		
		nav: function() {
			s = this.settings;
			
			s.nav.find("ul.group li.page_item").hover(function() {
				var $child = $(this).find('ul.children');
				$child.css({"visibility":"visible"}).show(268);
				$(this).addClass("child-hover");
			}, function() {
				var $child = $(this).find('ul.children');
				$child.css({"visibility":"hidden","display":"none"});
				$(this).removeClass("child-hover");
			});
			
		},
		
		featured: function() {
			s = this.settings;
			
			s.featured.cycle({
				fx:     'fade',
		    speed:  5000,
				slideExpr: 'div'
		  });
		}
	};
	
	ValueFirst.init();
});
