﻿$(document).ready(function() {
    /*var tallest = 0;
    var match = $("#Approach,#TrueStories,#Services");
    match.each(function() {
        var test = $(this).height();
        if (test > tallest)
            tallest = test;
    });
    match.height(tallest);*/
    
    var slideshow = function () { 
    		var currentSlide  = $(".slideshow:visible") ;
    		var nextSlide = currentSlide.next();
    		if(nextSlide.length == 0)
    		{
    			nextSlide = $(".slideshow:eq(0)");
    		}
    		currentSlide.fadeOut(2000);
    		nextSlide.fadeIn(2000);
    	}
    setInterval(slideshow,8000);
});
