function writeFrontpageFlash(height,flashUrl,gifUrl,bannerFullFlashDirUrl) {
	// It is really a bit stupid to declare global variables used by the Presentation Object
	// at this point. But we cannot make the presentation object output the flash as it needs
	// to be generated by document.write, and the presentation object cannot be initialized
	// until the html have been generated, while the flash should be generated inside the 
	// presentation html element, which ofcourse is before the element is fully loaded.
	flashHeight = height;
	usingFlash = flashInstalled();
	
	if (usingFlash) {
		document.write('<object type="application/x-shockwave-flash" style="height: ' + height + 'px" data="' + flashUrl + '" />');
		document.write('<param name="movie" value="' + flashUrl + '" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="wmode" value="transparent" />');
		document.write('<param name="menu" />');
		document.write('<param name="salign" value="t" />');
		document.write('<param name="base" value="' + bannerFullFlashDirUrl + '" />');
		document.write('</object>');
	} else {
		document.write('<img src="' + gifUrl + '" alt="" />');
	}
}