﻿// This next section sets up the fading images for the Sponsors section on the sidebar. 
// SPEED: In milliseconds - how long the transition should take.
// TYPE: Type of slideshow: 'sequence', 'random' or 'random_start'
// CONTAINERHEIGHT: The height of the div that is calling the innerfade method.


$(function() {
    $('div#featured').innerfade({
        speed: 1000,
        timeout: 5000,
        type: 'sequence',
        containerheight: '226px'
    });
	
	
	
//	var counter = 0,
  //     divs = $('.fspeak');

  //function showDiv () {
    //divs.hide() // hide all divs
		//.filter(function (index) { return index == counter % 20; }) // figure out correct div to show
		//.show('slow'); // and show it
		
		

   //counter++;
//}; // function to loop through divs and show correct div

//showDiv(); // show first div    

//setInterval(function () {
  // showDiv(); // show next div
//}, 8 * 1000); // do this every 8 seconds 
	
	$('#fspeaker').innerfade({
				speed: '1000',
				timeout: 5000,
				type: 'random',
				containerheight: '70px'
			});
	
});