

var imgs;
var imgsGallery = new Array();

function setOnMouseClick() {
var elements = document.getElementsByTagName("a");
for (var i = 0; i < elements.length; i++) {
switch(elements[i].className) {
case "next":
elements[i].onclick = function() {
imgs.move('next');
return false;
}
break;
case "prev":
elements[i].onclick = function() {
imgs.move('prev');
return false;
}
break;
}
}
}

function initShift() {
setOnMouseClick();

	imgsGallery[0] = new Object();
imgsGallery[0].width=600;
imgsGallery[0].title = "";
imgsGallery[0].caption = "";
	imgsGallery[1] = new Object();
imgsGallery[1].width=600;
imgsGallery[1].title = "";
imgsGallery[1].caption = "";
	imgsGallery[2] = new Object();
imgsGallery[2].width=600;
imgsGallery[2].title = "";
imgsGallery[2].caption = "";
	imgsGallery[3] = new Object();
imgsGallery[3].width=600;
imgsGallery[3].title = "";
imgsGallery[3].caption = "";
	imgsGallery[4] = new Object();
imgsGallery[4].width=600;
imgsGallery[4].title = "";
imgsGallery[4].caption = "";
	imgsGallery[5] = new Object();
imgsGallery[5].width=600;
imgsGallery[5].title = "";
imgsGallery[5].caption = "";
	imgsGallery[6] = new Object();
imgsGallery[6].width=600;
imgsGallery[6].title = "";
imgsGallery[6].caption = "";
	imgsGallery[7] = new Object();
imgsGallery[7].width=600;
imgsGallery[7].title = "";
imgsGallery[7].caption = "";
	imgsGallery[8] = new Object();
imgsGallery[8].width=600;
imgsGallery[8].title = "";
imgsGallery[8].caption = "";
	imgsGallery[9] = new Object();
imgsGallery[9].width=600;
imgsGallery[9].title = "";
imgsGallery[9].caption = "";
	imgsGallery[10] = new Object();
imgsGallery[10].width=600;
imgsGallery[10].title = "";
imgsGallery[10].caption = "";
	imgsGallery[11] = new Object();
imgsGallery[11].width=600;
imgsGallery[11].title = "";
imgsGallery[11].caption = "";

	imgs = new MudShiftContent('imgs', imgsGallery);
	if ($('imgs_title')) $('imgs_title').innerHTML = imgsGallery[0].title;
if ($('imgs_caption')) $('imgs_caption').innerHTML = imgsGallery[0].caption;
}
Event.observe(window, 'load', initShift);
