var loadbackground = Class.create();
	loadbackground.prototype = {
		background: false,
		bodyelm: false,
		initialize: function( options ) {
			this.bodyelm = $$('body').first();
			this.background = this.bodyelm.getStyle('background-image');
			
			var re = new RegExp(/url\((.*[^)])\)/);
			var m = re.exec(this.background);
			if (m) {
				this.bodyelm.insert({
					top: new Element('div', {id: 'stretch_image'})
					.insert(new Element('img', {src: m.last().gsub('"','') }))
				});
				this.bodyelm.setStyle({backgroundImage: 'none'});
			}
		}
	}
document.observe('dom:loaded', function(){
	loadbackground = new loadbackground();
});
