(function(jQuery) {
// replace 'pluginName' with the name of your plugin
    jQuery.fn.mtabs = function(options) {
    	
		// plugin default options
        var defaults = {
        	tabId:'#tabs'
        };

// extends defaults with options provided
        if (options) {
			jQuery.extend(defaults, options);
		}
		
		var tabs = jQuery(options.tabId).find("li a"),
			tabsContainers = jQuery("#tabsContent");
			
		jQuery("#tabsContent .first").addClass("show");
		
		
		tabs.click(
			function(e){
				e.preventDefault();
				var hash = jQuery(this).attr("href")
				tabs.removeClass('selected');
				jQuery(this).addClass('selected');
				jQuery(".container").removeClass("show");
				jQuery(hash).addClass('show');
			}
		);
		
	
// iterate over matched elements
        return this.each(function() {
            // implementations
        });
        

    };

// public functions definition
//jQuery.fn.pluginName.functionName = function(foo) {
//return this;
//};

// private functions definition
//function foobar() {}

})(jQuery);


