jQuery(document).ready(
	
	//top banner image rotator
	function(){
		$('ul#banner').innerfade({
			speed: 1000,
			timeout: 5000,
			type: 'sequence',
			containerheight: '220px'
		});
			
		$('.fade').innerfade({
			speed: 1000,
			timeout: 6000,
			type: 'random_start',
			containerheight: '1.5em'
		});
		
	//lazy load function
	$(function() {
	   $("img").lazyload({
	      effect : "fadeIn"
        });
	});
	/*
	//make toggle happen
	$(function() {
		//run the currently selected effect
		function runEffect(){
			//get effect type from 
			var selectedEffect = $('blind');
			//run the effect
			$(".moreInfo").toggle(selectedEffect,options,500);
		};
		
		//set effect from select menu value
		$(".toggler").click(function() {
			runEffect();
			return false;
		});

	});	
	*/
	
	$(function() {
		var $elementHeight = 235;//$(".moreInfo").height();
		//Hide (Collapse) the toggle containers on load
		$(".moreInfo").hide(); 

		//Switch the "Open" and "Close" state per click
		$(".toggle").toggle(function(){
			$(this).addClass("active");
			}, function () {
			$(this).removeClass("active");
		});

		//Slide up and down on click
		$(".toggle").click(function(){
			$(".moreInfo").css({height: $elementHeight});
		    $(this).next(".moreInfo").slideToggle(690);
	    	return false;
		});
	});
		
		
	/*
	$(function() {
		var $div = $('.moreInfo');
		var height = $div.height();
		
		$div.hide().css({ height : 0 });
		
		$('.toggle').click(function () {
			if ( $div.is(':visible') ) {
   				$div.animate({ height: 0 }, { duration: 2500, complete: function () {
		        	$div.hide();
				} 
			});
		  } else {
		    $div.show().animate({ height : height }, { duration: 2500 });
		  }
    
		  return false;
		});
	});*/

	});

/*
	// regular toggle with speed of 'slow'
	$('#toggleSlow').click(function(){
		$(this).siblings('.moreInfo').toggle('slow');
	});

	// fade in and out
	$('#fadeInOut').toggle(function() {
		$(this).siblings('.moreInfo').fadeIn('slow');
		}, function() {
			$(this).siblings('.moreInfo').fadeOut('slow');
		});

		//animate
	$('#animate').click(function() {
		$(this).siblings('.moreInfo')
		.slideDown(5500).fadeOut(7300);
	});
});*/