/*
 * Super-simple tabs in jQuery.
 *
 * @version   20080619
 * @since     2008-06-19
 * @docs      http://jquery.glyphix.com/
 * @copyright Copyright (c) 2008 Glyphix, Inc. http://www.glyphix.com
 * @author    Brad Brizendine <brizbane@gmail.com>
 * @license   MIT http://www.opensource.org/licenses/mit-license.php
 * @requires  >= jQuery 1.2.6
 */
(function($){$.fn.tabby=function(f){f=f||{};var g=$.extend({passClick:false},f);return this.each(function(){var d=this;d.tabs=$('> ul',d);d.tabs.addClass('tabby-tabs');d.select=function(a){$('li',d.tabs).removeClass('tabby-here');$(a.target).parent().addClass('tabby-here');$('> div',d).hide();var i=$('a',d.tabs).index(a.target);var b=$('> div:eq('+i+')',d)[0];$(b).show();var c={};c.index=i;c.tab=a.target;c.content=b;$(d).triggerHandler('tabby.switch',[c]);if(g.passClick){return true}return false};$('li a',d.tabs).click(d.select);var e=$('li',d.tabs).filter('.tabby-here');if(!e[0]){e=$('li:eq(0)',d.tabs)}$('a',e).trigger('click')})}})(jQuery);
