window.addEvent('domready', function(){

	oSlideshow = new gallery($('myGallery'), {
		timed: true,
		delay:7000,
		showArrows: false,
		imageSelector: 'img',
		slideInfoZoneOpacity: 0.8,
		textShowCarousel: 'Pictures'
	});

	if(oSlideshow.options != null && window.ie6) {
		oSlideshow.nextItem();
	}

	oSlideshow1 = new gallery($('myGallery1'), {
                timed: true,
                delay:7000,
                showArrows: false,
                imageSelector: 'img',
                slideInfoZoneOpacity: 0.8,
                textShowCarousel: 'Pictures'
        });

        if(oSlideshow1.options != null && window.ie6) {
                oSlideshow1.nextItem();
        }


	oSlideshow2 = new gallery($('myGallery2'), {
		timed: true,
		delay:7000,
		showArrows: false,
		imageSelector: 'img',
		slideInfoZoneOpacity: 0.8,
		textShowCarousel: 'Pictures'
	});

	if(oSlideshow2.options != null && window.ie6) {
		oSlideshow2.nextItem();
	}

	oSlideshow3 = new gallery($('myGallery3'), {
		timed: true,
		delay:7000,
		showArrows: false,
		imageSelector: 'img',
		slideInfoZoneOpacity: 0.8,
		textShowCarousel: 'Pictures'
	});

	if(oSlideshow3.options != null && window.ie6) {
		oSlideshow3.nextItem();
	}

	oSlideshow4 = new gallery($('myGallery4'), {
		timed: true,
		delay:7000,
		showArrows: false,
		imageSelector: 'img',
		slideInfoZoneOpacity: 0.8,
		textShowCarousel: 'Pictures'	
	});
	
	if(oSlideshow4.options != null && window.ie6) {
		oSlideshow4.nextItem();	
	}
});

