(function() {

	var body = document.getElementsByTagName('body')[0];
	var slideshowContainer = document.getElementById('slsCnt');
		
	function restorePage()
	{
		body.className = '';
		body.removeChild(slideshowContainer);
	}
	
	document.getElementById("slsCloseTop").onclick = restorePage; 
	document.getElementById("slsCloseBottom").onclick = restorePage; 
	setTimeout(restorePage, 208000);
	
	swfobject.embedSWF(
		"/gallery/slideshow/Flip.swf", 
		"slsObj", 
		"100%", "810px", 
		"10.0.0", 
		false, 
		{
			xmlfile: "/gallery/slideshow/Flip.xml", 
			loaderColor: "0xCCCCCC",
		},
		{
			wmode: "transparent"
		},
    {}
	);
	
	swfobject.embedSWF(
		"/gallery/slideshow/VSPlayer.swf", 
		"slsSndObj", 
		"1px", "1px", 
		"9.0.0", 
		false, 
		{
			soundURL: "/gallery/slideshow/bgsound.mp3"
		},
		{
			wmode: "transparent"
		},
    {}
	);
	
	body.className = 'sls';

})();

