/* 
Slideshow include, originally by DC:
Requires jQuery + 
<script type="text/javascript" src="/javascript/jquery/jquery.scrollTo-1.4.0-min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.serialScroll-1.2.1-min.js"></script>
<script type="text/javascript" src="/javascript/jquery/jquery.ifixpng.js"></script> 
*/

	jQuery(function(){
		
		var maxHeight = 0; //tallest
		var maxWidth = 0; //all widths + 2
		
		jQuery('.slideshow-slide img').each(function () {
			var thisheight = jQuery(this).height();
			var thiswidth = jQuery(this).width();
			
			if ( thisheight > maxHeight){
				maxHeight = thisheight;
			};
			maxWidth += thiswidth + 2;
		});
		
		jQuery('.slideshow ul').css({"width": maxWidth+"px"});
		jQuery('.slideshow-wrapper .slideshow-control').css("height", maxHeight+"px");
		jQuery('.slideshow-wrapper .slideshow-control a').ifixpng();
		jQuery('.slideshow').serialScroll({
			items:'li',
			prev:'.slideshow-wrapper .previous',
			next:'.slideshow-wrapper .next'
		});
		
	});
