document
		.observe(
				'dom:loaded',
				function() {
					// proper layler-ad closing
					window
							.setTimeout(
									function() {
										var closeButton = $$('img[src="http://ads.bartime.de/www/images/layerstyles/simple/close.gif"]');
										if (closeButton[0] != undefined) {
											var adContainer = closeButton[0]
													.up('div');
											var flash = $('layerad').down(
													'object');
											if (adContainer.down('object') == undefined) {
												adContainer.down('tr', 2).down(
														'td')
														.appendChild(flash);
												$('layerad').up().appendChild(
														adContainer);
												$('layerad').remove();
											}

											closeButton[0].observe('click',
													function() {
														closeButton[0]
																.up('div')
																.hide();
													});

											$('layerad').show();
										}
									}, 800);
				});

function ads_setBackground(NeueFarbe) {
	new Effect.Morph(document.body, {
		style : 'background-color:'+NeueFarbe+';', // CSS Properties
		duration : 1.5
	// Core Effect properties
	});
	$('container').setStyle( {
		backgroundImage : 'none'
	});
}

