
$(document).ready(function() {
	
	$(".ImageSlider").each(function(index,el) {
		var ImageSlide = new ImageSlider(el, 1.1);
		ImageSlide.loadNextImage();
		$(el).click(function(e) {
            document.location.href = $(el).find('a').attr('href');
        });
	});
	
	$(".ImageCanvas").each(function(index,el) {
		var ImageCanvasA = new ImageCanvas(el, 1.1);
		$(el).click(function(e) {
            document.location.href = $(el).find('a').attr('href');
        });
	});
	
});
hs.graphicsDir = 'http://js.x0s.org/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
//hs.dimmingOpacity = 0.75;

// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: 0.75,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});
