$(document).ready(function() {  

//Bio Toggle
$("#bio:nth-child(-n+6)").wrap("<div class='bio'></div>");
 
$('.bio').hide(); 
$('a.show-bio').hover(function() { 
     $(this).next().slideToggle()
        // alert(id); 
     return false; 
     }); 
     
//Toggler
		
		$(".search-tog").click(function () {
		$("#email").slideUp(125, 'swing');
		   $('#togg').removeClass('open');
  		$("#search").delay(125).slideToggle(125, 'swing');
			});

		$(".email-tog").click(function () {
		$("#search").slideUp(125, 'swing');
  		$("#email").delay(125).slideToggle(125, 'swing');
	 	$('#togg').addClass('open');  		
			});


//Fading
$(".donate a").fadeTo(0, 0.8);
			$(".donate a").hover(function(){
			$(this).fadeTo(100, 1);
			},function(){
   			$(this).fadeTo(0, 0.8);
			});

$(".video a").fadeTo(0, 0.8);
			$(".video a").hover(function(){
			$(this).fadeTo(100, 1);
			},function(){
   			$(this).fadeTo(0, 0.8);
			});
			
// starting the script on page load

	$('.eventful a').aToolTip({   fixed: false,                   // Set true to activate fixed position  
        clickIt: false,                 // set to true for click activated tooltip  
        inSpeed: 200,                   // Speed tooltip fades in  
        outSpeed: 100,                  // Speed tooltip fades out  
        tipContent: '',                 // Pass in content or it will use objects 'title' attribute  
        toolTipClass: 'defaultTheme',   // Set class name for custom theme/styles  
        xOffset: 5,                     // x position  
        yOffset: 5,                     // y position  
        onShow: null,                   // callback function that fires after atooltip has shown  
        onHide: null                    // callback function that fires after atooltip has faded out      
    }); 
			
//Jquery No Follow
$('a[href^="http"]').attr('rel','nofollow');
	 
});

//Jquery Blank Target

jQuery(function ($) {
$("a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
}).attr('target', '_blank');
});
