var theOffset = 220;
var theWidth = '610px';

function trueheight() {
	if (window.innerHeight) {
		return window.innerHeight;
	} else if (document.body && document.body.offsetHeight) {
		return document.body.offsetHeight;
	} else {
		return 0;
	}
}

function anpassen() {
	var fhoehe = trueheight() - theOffset;
	try {
		$('theiframe').setStyle({
			'height' : fhoehe + 'px',
			'width' : theWidth
		});
	} catch(err) {
		void(0);
	}
}

function fadeout() {
	new Effect.Opacity('bannerimage', { from: 1.0, to: 0.7, duration: 0.3 });
}

function fadein() {
	new Effect.Opacity('bannerimage', { from: 0.7, to: 1.0, duration: 0.3 });
}

