/** * Raindrops javascript actions * * @package Raindrops */ (function(){  jQuery(function(){   jQuery("blockquote").each(function(){ var cite = jQuery(this).attr("cite"); if( cite ){ jQuery(this).append("

cite:" + cite + "

"); } }); jQuery("#month_list ul li:last-child").css({border:"none"}); jQuery(".widget ul li:last-child").css({border:"none"}); jQuery('a').removeAttr("title"); /** Toggle * * * @package Raindrops * @since Raindrop 0.922 */ jQuery('.raindrops-toggle').hide().css("width","90%"); jQuery('.raindrops-toggle.raindrops-toggle-title').show().css({"width":"90%","list-style":"none","font-weight":"bold","margin":"0 0 0 -1em"}).prepend("+ "); jQuery('.raindrops-toggle.raindrops-toggle-title').css("cursor","pointer").click(function(){ jQuery(this).siblings().toggle("slow"); var v = jQuery(this).html().substring( 0, 1 ); if ( v == "+" ){ jQuery(this).html( "-" + jQuery(this).html().substring( 1 ) ); }else if ( v == "-" ){ jQuery(this).html( "+" + jQuery(this).html().substring( 1 ) ); } });  }); })(jQuery); /** Tab Controll * * * @package Raindrops * @since Raindrop 0.922 */ (function(){ jQuery(function(){ var element = ".raindrops-tab-content h3"; var prefix = "raindrops-tab-page-"; jQuery(element).each(function(i){ var fragment = prefix + i; var title = "
  • " + jQuery(element).eq(i).html() + "
  • " ; jQuery(this).parents(':eq(1)').prev().append(title); jQuery(this).parent().attr("id", fragment ); }); jQuery(".raindrops-tab-list li.dummy").remove(); //Default Action jQuery(".raindrops-tab-page").hide(); //Hide all content jQuery(".raindrops-tab-list li:first").addClass("active").show(); //Activate first tab jQuery(".raindrops-tab-page:first").show(); //Show first tab content //On Click Event jQuery(".raindrops-tab-list li").click(function() { jQuery(".raindrops-tab-list li").removeClass("active"); //Remove any "active" class jQuery(this).addClass("active"); //Add "active" class to selected tab jQuery(".raindrops-tab-page").hide(); //Hide all tab content var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content jQuery(activeTab).fadeIn(); //Fade in the active content return false; }); jQuery(".raindrops-tab-list").css({"margin": "auto"}); jQuery(".raindrops-tab-list li").css({"float":"left","list-style":"none"}); jQuery(".raindrops-tab-list li a").css({"display":"block","padding":"10px","text-decoration":"none","margin-right":"1px" }); }); })(jQuery);