/**
 * lh.js
 * @author Lewis Howles (Boilerplate)
 *
 * One part default niceties, one part scripting goodness...
 */

var lh = {
	// Initialisation function.
	init : function() {
		$('#carousel').orbit({
			animation: 'horizontal-slide',  // fade, horizontal-slide, vertical-slide, horizontal-push
			pauseOnHover: true, // if you hover pauses the slider
			startClockOnMouseOut: true, // if clock should start on MouseOut
			captions: false, // do you want captions?
			bullets: true, // true or false to activate the bullet navigation
			directionalNav: false,
		});

		$('a[href^="http://www.youtube.com/"]').colorbox({
			width : '60%',
			height : '80%',
			iframe : 'true'
		});
	},

	// Set target blank on external links
	externalLinks : function() {
		$('a[rel~="external"]').attr('target', '_blank');
	}
}

$(window).load(function() {
	$(lh.init());
});

