/**
 * Joseph Hawes
 * Joseph Hawes Web Development
 * http://www.josephhawes.co.uk
 * 05/08/11
 */
$(document).ready(function() {
	//Process carousel
	var opts = $('div#process-carousel')
	.after('<div class="carousel-nav">')			
	.cycle({
	  speed: 1000,
	  timeout: 5000,
	  next:	'#slide-next',
	  prev:	'#slide-prev',	  
	  pager: 'div.carousel-nav',
	  onPagerEvent: function() { 
	    opts.timeout = 0
		}
	})
	.data('cycle.opts');
	
	//Pub carousel
	var opts = $('div#pub-carousel')
	.cycle({
	  speed: 1000,
	  timeout: 5000,
	  onPagerEvent: function() { 
	    opts.timeout = 0
		}
	})
	.data('cycle.opts');
	
	//Clear footer input
	$('input.clear-input').focus(function() {
		$(this).val('');
	});
	
	//Add white border div to images
	$('div#main-content img.white-border').each(function() {
		$(this).wrap('<div class="white-border" />');
	});
	
	//Add > to secondary nav
	$('ul.secondary-nav li.current_page_item a, ul.secondary-nav li.current_page_parent a').append(' <span>&gt;</span>');	
});

//Recaptcha
var RecaptchaOptions = {
   theme: 'white',
   lang: 'en'
};
