// A heavily hacked version of iWeb's openSlideShowWindow.js that will call a modified lightbox.js
//
// Author: Peter Timofejew <peter@timofejew.com>
// Date:   August 19, 2006

function Slide(url, height, width, caption)
{
	this.url = url.replace(/^\.\.\//, '');		// iWeb will begin each URL with '../' which we want to remove
	this.height = height;
	this.width = width;
	this.caption = caption;
}

// force adding of the lightbox scripts
document.write('<script type="text/javascript" src="SlideShow_assets/prototype.js"></script>');
document.write('<script type="text/javascript" src="SlideShow_assets/scriptaculous.js?load=effects"></script>');
document.write('<script type="text/javascript" src="SlideShow_assets/iweb_lightbox.js"></script>');
document.write('<link rel="stylesheet" type="text/css" media="screen" href="SlideShow_assets/iweb_lightbox.css" />');

// call hacked lightbox directly
function openSlideShow(initialIndex) {
	myLightbox.start(initialIndex);
}
function openSlideShow2(initialIndex, language) {
	myLightbox.start(initialIndex);
}

