/**
 * jp.js
 * @author Jonathan Pilling @ Internet Solutions Services Limited (Of the default code in this file)
 *
 * One part default niceties, one part scripting goodness...
 */

var jp = {
	// Initialisation function.
	init : function() {
		jp.externalLinks();

		// Form Functions
		$('.gallery').length && jp.colorbox();
	},

	// Set target blank on external links
	externalLinks : function() {
		$('a[rel~="external"]').attr('target', '_blank');
	},

	colorbox : function () {
		$('.gallery li a').colorbox({
			transition: 'elastic'
		});
	},
}

// Initialise
$(jp.init());
