(function($) {

	/**
	* @param options
	*/
	$.fn.mainnav = function(options) {

		var settings = {
			hover: "hover",
			selector: "#mainnav",
			itemSelector: "li"
		};

		var options = $.extend(settings, options);

		return this.each(function(i, e) {
			return new MainNav(e, options);
		});
	};

	/**
	* 
	*/
	function MainNav(ele, settings) {
		this.e = ele;
		this.$e = $(ele);
		this.settings = settings;

		// Don't need to initialize anything
		// init.call(this);

		registerEvents.call(this);
	}

	/**
	* 
	*/
	function init() {
		var obj = this;
	}

	/**
	* 
	*/
	function registerEvents() {
		var obj = this;

		// Hover events
		$(document).delegate(obj.settings.selector + " " + obj.settings.itemSelector, "mouseover", function() {
			$(this).addClass(obj.settings.hover);
		});
		$(document).delegate(obj.settings.selector + " " + obj.settings.itemSelector, "mouseout", function() {
			$(this).removeClass(obj.settings.hover);
		});
	}
})(jQuery);
