/*
 *  Lightbox Slideshow
 */

function getObject(objectId)
{
	if(document.getElementById && document.getElementById(objectId)){
		return document.getElementById(objectId);
	}
	else if (document.all && document.all(objectId)){
		return document.all(objectId);
	}
	else if (document.layers && document.layers[objectId]){
		return document.layers[objectId];
	}
	else {
		return false;
	}
}

function initLightbox(id)  {
	var startImg	= getObject(id);

	if (!startImg) {
		return;
	}

	var lbStringsDE = { closeLink:'end',loadingMsg:'loading',nextLink:'next &raquo;',prevLink:'&laquo; previous',startSlideshow:'start Slideshow',stopSlideshow : 'STOP Slideshow',numDisplayPrefix:'picture',numDisplaySeparator:'of'};
	Lightbox.initialize( { strings:lbStringsDE,borderSize:27,showGroupName:false,autoPlay:true,slideTime:2,overlayOpacity:.7 } );
	Lightbox.start(startImg);
	return false;
}


