(function() {
	var glow;
	
	if (typeof(gloader) == 'undefined') { // throw "Glow not defined"
		return; // exit peacefully
	}
	
	gloader.load(
	["glow", "1", "glow.dom", "glow.events"],
	{
		async: false,
		onLoad: function(fetchedGlow) {
			glow = fetchedGlow;
			glow.ready(init);
		}
	});
	
function init() {
	var nspf = "ski_jump"; // same as id inside inc
	var ssize = 466; // 226, 416, 466, 786
	var stotal = 4; // total number of slides
	
	// nothing below needs modifying
	
	if (typeof(bbc.fmtj.csd.DhtmlSlideshow) == 'undefined') { // throw "Slideshow jsapp not included"
		return; // exit peacefully
	}
	
	var slideshow = new bbc.fmtj.csd.DhtmlSlideshow.Master(glow);
	
	slideshow.inject({namespace: nspf, size: ssize, total: stotal});
}

})();