window.addEvent('domready', function() {
			var gallery1 = new slideGallery($$("div.gallery")[0], {
				steps: 1,
				speed: 800,
				duration: 5000,
				transition: Fx.Transitions.Sine.easeInOut,
				autoplay: true,
				mode: "circle"
			});
			var gallery2 = new fadeGallery($$("div.gallery")[1], {
				speed: 800,
				paging: false,
				autoplay: true,
				duration: 3000,
				onStart: function(current, visible, length) {
					$$("span.info")[1].innerHTML = parseInt(current+1) + " from " + length;
				},
				onPlay: function(current, visible, length) {
					$$("span.info")[1].innerHTML = parseInt(current+1) + " from " + length;
				}
			});
		});
