/*
 *
 **/

// Console utility, just in case.
if(typeof console === "undefined") var console = { log: function(){}, info: function(){}, warn: function() {}, error: function () {} };

Cufon.replace("#navigation a, h1, .archive-navigation a em");

$(function () {
	
	// Do slideshow if present
	var slideshow = $("#slideshow-images");
	if(slideshow.length > 0) {
		slideshow.cycle({
			fx: 'scrollHorz',
			pager: '.pager',
			timeout: 8000,
			speed: 750,
			next: 'a.next',
			prev: 'a.prev'
		});
		
		// Also, while we're at it, if we have slides, attach some smooth fade in/-out effects to the next/prev buttons.
		$(".pagers .next, .pagers .prev")
			.hover(
				function() { $(this).animate({ opacity: 0.8 }, 200); },
				function() { $(this).animate({ opacity: 0.2 }, 200); });
	}
	

});



