window.addEvent("domready", function() {
 

var p = new Element('ul');
p.setStyle('list-style-type','none');
var h = new Element('div',{'class':'holder'});
h.setStyle('height',200);
h.setStyle('overflow','hidden');
p.inject(h);
h.inject($('gallery'));


$('gallery').getElements('img').each(
function(item,index)
{
	var l = new Element('li');
	l.adopt(item);
	l.inject(p,'bottom');
}
);

var maxitemheight = 0;

      var gallery = new slideGallery($("gallery"), {
		steps: 3,
		autoplay: true,
		duration: 3000,
		mode: "circle",
		direction: "vertical"
	});

 });