var params = {
	bgcolor: '#000000'
};

$(document).ready(function() {
	if ($('#montageImages').length > 0) {		
		if ($('#montageImages').children().length > 1) {		
			// 	get the list of large images at the top of the page, randomise and reduce to 5 images and then rotate through the gallery 
			var arr = $.makeArray($('#montageImages li'));
			arr.sort(function() {return 0.5 - Math.random()})
			arr.splice(0, 5);
			$('#montageImages')
				.empty()
				.append(arr)
				.innerfade({
					speed: 'slow',
					timeout: 10000,
					type: 'sequence',
					containerheight: '270px' 
				})
			;
		} else  {
			$('#montageImages').children(0).show();
		}
	}	
	
	$('img[@src$=.png]').ifixpng();		
	
});

