// JavaScript Document

// make divs clickable

$(document).ready(function(){
						   
	$(".dropdown").each(function () {
		$(this).parent().eq(0).hoverIntent({
			timeout: 100,
			over: function () {
				var current = $(".dropdown:eq(0)", this);
				current.slideDown(100);
				},
			out: function () {
				var current = $(".dropdown:eq(0)", this);
				current.fadeOut(200);
				}
	});

	$(".team").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
	$(".plan").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
	$(".donate").click(function(){
	  window.location=$(this).find("a").attr("href"); return false;
	});
	
	// equal height 
	
	$('.gray').equalHeight();
	$('.white').equalHeight();
	
	//$(".navbar a").each(function() {
     //   if (this.href == document.location.href) $(this).addClass
//("currentPage");
 //   });
	
	// innerfade
	
	$('#heroSlide').innerfade({ 
						 speed: '4000', 
						 timeout: '4000', 
						 type: 'sequence', 
						 containerheight: '408px' 
						}); 
	
	// identify current page
	
	

	
	}); 
		});

