var slideshow = new Class({
						 
	Implements: [Options, Events],
	
	bg: null,
	
	requestOk: false,

	zindex: 10,
	initialize: function(options)
	{
		this.setOptions(options);
		new Asset.css('css/fix-js.css');
		window.addEvent('domready', function()
		{
			this.bg.start();
		}.bind(this));
		window.addEvent('load', function()
		{
			this.fireEvent('start');
		}.bind(this));
	}, 
	setUpBackground: function(bgs)
	{
      	if(this.bg == null)
       	{
       	    this.bg = new SimpleLoopPages('photos', bgs);
		}else{
		    this.bg.changeImages(bgs);
		}
	}
});


