/*
* jQuery Simply Countable plugin
* Provides a character counter for any text input or textarea
*
* @version 0.3
* @homepage http://github.com/aaronrussell/jquery-simply-countable/
* @author Aaron Russell (http://www.aaronrussell.co.uk)
*
* Copyright (c) 2009 Aaron Russell (aaron@gc4.co.uk)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* counter - A jQuery selector to match the 'counter' element. Defaults to #counter.
* countable - Select whether to count characters or words. Defaults to characters.
* maxCount - The maximum character (or word) count of the text input or textarea. Defaults to 140.
* strictMax - Prevents the user from being able to exceed the maxCount. Defaults to false.
* countDirection - Select whether to count down or up. Defaults to down.
* safeClass - The CSS class applied to the counter element when it is within the maxCount figure. Defaults to safe.
* overClass - The CSS class applied to the counter element when it exceeds the maxCount figure. Defaults to over.
* thousandSeparator - The separator for multiples of 1,000. Set to false to disable. Defaults to ,.
*
*/

(function($)
	{
 	$.fn.simpleTabs = function(options)
		{
		var defaults = 
			{  
			tabs					: 'ul',
			tabContents				: '.simpleTabsContents',
			selectedClass 			: 'selected',
			forceSelected 			: 'li:first'
			};  
			
		var options = $.extend(defaults, options); 
		
		$(this).click
			(
			function() 
				{
				alert("x" + tabs);
				$(tabContents).hide();
				$(tabContents).filter(this.hash).show();
				$(tabs + 'li').removeClass(selectedClass);
				$(this).parent().addClass(selectedClass);
				return false;
				}
			);
		
		$(tabs + " " + forceSelected, this).addClass(selectedClass);
		
		};
	}
)(jQuery);
