var domReady = function(handler) {
	domReadyEvent.add(handler);
};
domReadyEvent.init();

/* Create ImageFlow instances when the DOM structure has been loaded */
domReady(function() {
	hs.graphicsDir = 'fileadmin/templates/js/highslide/graphics/';

	var instanceOne = new ImageFlow();
	var instanceTwo = new ImageFlow();

	new ImageFlow().init({
		ImageFlowID : 'goh_images_2011',
		buttons : true,
		reflections : false,
		captions : false,
		reflectionP : 0.0,
		imageCursor : 'pointer',
		startID : 44,
		reflectionGET : '&bgc=ffffff&fade_start=20%',
		onClick : function() {
			return hs.expand(this, {
				src : this.getAttribute('src'),
				outlineType : 'rounded-white',
				fadeInOut : true
			});

		}
	});

	instanceOne.init({
		ImageFlowID : 'goh_images_2010',
		buttons : true,
		reflections : false,
		captions : false,
		reflectionP : 0.0,
		imageCursor : 'pointer',
		startID : 44,
		reflectionGET : '&bgc=ffffff&fade_start=20%',
		onClick : function() {
			return hs.expand(this, {
				src : this.getAttribute('longdesc'),
				outlineType : 'rounded-white',
				fadeInOut : true
			});

		}
	});

	instanceTwo.init({
		ImageFlowID : 'goh_images_2009',
		buttons : true,
		reflections : false,
		captions : false,
		reflectionP : 0.0,
		imageCursor : 'pointer',
		startID : 42,
		reflectionGET : '&bgc=ffffff&fade_start=20%',
		onClick : function() {
			return hs.expand(this, {
				src : this.getAttribute('longdesc'),
				outlineType : 'rounded-white',
				fadeInOut : true
			});

		}
	});
});

