/**
	CC is the global namespace container
	@requires jQuery.js
	@namespace
*/

var CC = (function($) {

	var templateURL = '';

	/**
		Blah blah blah
		@name general
		@memberOf CC
		@namespace
	*/
	var general = {
		/**
			Set site globals
			@private
		*/
		init: function() {
			general.setGlobals();
		},
		/**
			Set site globals
			@private
		*/
		setGlobals: function() {
			$('a[rel=external]').attr('target','_blank');
		}
	};

	/**
		@name subnav
		@memberOf CC
		@namespace
	*/
	var subnav = {
		/**
			Initialize subnav
			@private
		*/
		init: function() {
			subnav.fix();
		},
		/**
			Apply 'first' class to first element in subnav.
			@private
		*/
		fix: function() {
			$('.nav-sub li:first').addClass('first');
		}
	};
	
	/**
		return for public functions
	*/
	return {
		
		init: function( url ) {
			general.init();
			subnav.init();
		}
	
	}

	

})(jQuery);
