// source --> https://www.cloudbasemayhem.com/wp-content/themes/storyteller/js/scripts.js?ver=1.0 
jQuery(document).ready(function($){

	// Generic show and hide wrapper class
  $(".wrap").hover(function(){
      $(".hide", this).fadeTo(300, 1.0); // This sets 100% on hover
      $(".fade", this).fadeTo(300, 0.7); // This sets 70% on hover
      $(".show", this).fadeTo(300, 0.2); // This sets 100% on hover
  },function(){
      $(".hide", this).fadeTo(300, 0); // This should set the opacity back to 0% on mouseout
      $(".fade", this).fadeTo(300, 1.0); // This sets 80% on hover
      $(".show", this).fadeTo(300, 1.0); // This should set the opacity back to 0% on mouseout
  });

  // Zebra stipes for tables
  $(".half:nth-child(2n+2)").addClass("end");
  $(".third:nth-child(3n+3)").addClass("end");
  $("td:odd").addClass("odd");

  var $blog_grid_posts = jQuery(".blog-grid article");  

if (!($blog_grid_posts.length == 0)) {
	$blog_grid_posts.each(function (index, domEle) {
	// domEle == this
	if ((index+1)%3 == 0) jQuery(domEle).addClass("last").after("<div class='clear'></div>");
	});
}



});