$(function(){
	$("#home-slideshow, #case-study-slideshow").before('<div class="slideshow-nav">');
	$("#home-slideshow, #case-study-slideshow").after('<span class="arrow back"><a href="#"></a></span><span class="arrow forward"><a href="#"></a></span>');
	$("#home-slideshow, #case-study-slideshow").cycle({
		speed: 1000, 
		timeout: 8000,
		pager: ".slideshow-nav",
		next: ".arrow.forward",
		prev: ".arrow.back",
		pause: true
	});
	$('.what-we-do-list a').bind('click',function(event) {
		event.preventDefault();
		$('html, body').stop().animate({scrollTop: $($(this).attr('href')).offset().top + 24}, 750);
	});
	$('.anchor').bind('click',function(event) {
		event.preventDefault();
		$('html, body').stop().animate({scrollTop: $($(this).attr('href')).offset().top}, 750);
	});
});
