// Make jQuery play nice with other scripting libraries.
jQuery.noConflict();

// Enable "$" to be used within jQuery functions, without conflicting with other possible uses.
jQuery(document).ready(function($) {
	
	// Slideshow image preloading
	$.preload(".slideshow ol li a", {
		placeholder:"/css/blank.gif",
		notFound:"/css/blank.gif"
	});
		
	// Slideshow effects for individual portfolio pages.
	$(".slideshow ol li a").click(function() {
		var slidePath = $(this).attr("href");
		var slideCaption = $(this).text();
		$(".slideshow ol li a").removeClass("current");
		$(this).addClass("current");
		$(".slideshow img").fadeOut("fast", function() {
			$(this).attr({ src: slidePath, alt: slideCaption }).fadeIn("fast");
		});
		return false;
	});
	
});