/**************************************************************

	Script		: Mootools Multibox setup
	Version		: 1.0
	Author		: Peter Lewis - The Development Studio
	Desc			: Multibox callers
	Licence		: Copyright 2008 The Development Studio Ltd

**************************************************************/

var box = {};
var box2 = {};
var boxRegistered = {};
var boxRequest = {};
var boxLogin = {};
var boxLogout = {};
var boxResetPassword = {};
window.addEvent('domready', function(){
	box = new MultiBox('mb', {useOverlay: true, showControls: true, closeHotspot: true});
	box2 = new MultiBox('MultiBoxiFrame', {useOverlay: true, showControls: false, scrollable: 'no'});
	boxRegistered = new MultiBox('MultiBoxiFrameRegister', {useOverlay: true, showControls: false, scrollable: 'no', onClose: function() {window.location.assign('http://www.avabooks.ch/index.php/ava/news/');}});
	boxRequest = new MultiBox('MultiBoxiFrameRequest', {useOverlay: true, showControls: false, scrollable: 'no', onClose: function() {window.location.assign('http://www.avabooks.ch/index.php/ava/news/');}});
	boxLogin = new MultiBox('MultiBoxiFrameLogin', {useOverlay: true, showControls: false, scrollable: 'no', onClose: function() {window.location.assign('http://www.avabooks.ch/index.php/ava/bookrequest/');}});
	boxLogout = new MultiBox('MultiBoxiFrameLogout', {useOverlay: true, showControls: false, scrollable: 'no', onClose: function() {window.location.assign('http://www.avabooks.ch/index.php/ava/news/');}});
	boxResetPassword = new MultiBox('MultiBoxiFrameReset', {useOverlay: true, showControls: false, scrollable: 'no', onClose: function() {window.location.assign('http://www.avabooks.ch/index.php/ava/login/');}});
});