$(document).ready(function(){

	$(".footer ul li:not(.footer ul li:last)").after(" <span class=\"separator\">|</span> ");
	$(".navigation ul li a:first").addClass("first-li");
	$(".featured .post .more-link").before("<br /><br />");
	
	$('.slideshow .images').cycle({
		fx: 'fade',
		pause: 0,
		speed: 1000,
		timeout: 4000, 
		pager:  '.pager',
		pagerAnchorBuilder: function(idx, slide) { 
			return '<a href="#">'+ (idx+1) +'</a>'; 
		},
		next:   '#next', 
		prev:   '#prev' 
	});
	
	var isPaused = false;
	
	$("#pause").click(function() {
		if (isPaused) {
			$('.slideshow .images').cycle('resume');
			$(this).removeClass("activeSlide");
			isPaused = false;
		} else {
			$('.slideshow .images').cycle('pause');
			$(this).addClass("activeSlide");
			isPaused = true;
		}
	});
	
	Cufon.replace('.navigation ul li a', { textShadow: '0px 0px #fff' });
	Cufon.replace('.header .right .navigation-top .contact p.line1');
	Cufon.replace('.header .right .navigation-top .contact p.line2', { textShadow: '-1px 0px #3a3a3a' });
		
	Cufon.now();
	
});
