/**
 * Bootstrap.js - Bootstrap for all Javascript functionality
 * 
 * @author  Webstores <info at webstores dot nl>
 *           Copyright (c) Webstores internet totaalbureau <http://www.webstores.nl/>
 */

var albumLightWindow;

WS.Event.addEvent(window, 'load', function() {
	
	albumLightWindow = new lightwindow({
		contentOffset: {
			width: 18,
			height: 6
		},
		dimensions: {
			image: { height: 250, width: 250 },
			page: { height: 250, width: 250 },
			inline: { height: 250, width: 250 },
			media: { height: 250, width: 250 },
			external: { height: 250, width: 250 },
			titleHeight: 26
		},
		viewportPadding: 0
	});
	
	$$('.album-thumb').each(function(el) {
		el.observe('click', function(e) {
			Event.stop(e);
			albumLightWindow.activateWindow({
				href: this.href,
				width: 776,
				height: 400,
				type: 'external'
			});
		});
	});
	
});

