var printflash_globalbol = false;
/**
* Gibt Flash aus, alternativ ein Bild.
* @parameter version     Mindestversion von Flash um den Flashfilm zu spielen
* @parameter flashfilm   relativer oder absoluter Pfad zum Flashfilm
* @parameter bgcolor     Hintergrundfarbe, hexadezimal
* @parameter width       Breite von Flashfilm / ALternativbild
* @parameter height      Höhe von Flashfilm / ALternativbild
* @parameter altpic      relativer oder absoluter Pfad zum ALternativbild
* @parameter alt         alt-Atribut des ALternativbildes
* @parameter picwidth    optional, Bildbreite
* @parameter picheight   optional, Bildhoehe
* @return    void
*/
function printflash(version, flashfilm, bgcolor, width, height, altpic, alt, picwidth, picheight, redaktion) {
	if (!picwidth) picwidth = width;
	if (!picheight) picheight = height;
	if (navigator.appVersion.indexOf("MSIE") != -1) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('printflash_globalbol = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.' + version + '"))) \n');
		document.write('</SCR' + 'IPT\> \n'); 
	} else {
		var navdesk = navigator.plugins["Shockwave Flash"].description;
		var navvers = parseInt(navdesk.charAt(navdesk.indexOf(".") - 1));
		if (navvers >= version) printflash_globalbol = true;
	}
	if (printflash_globalbol && !redaktion) {
		document.write('<object data="' + flashfilm + '" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '">');
		document.write('<param name="movie" value="' + flashfilm + '">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="bgcolor" value="' + bgcolor + '">');
		document.write('</object>');
	} else {
		document.write('<img src="' + altpic + '" width="' + picwidth + '" height="' + picheight + '" alt="' + alt + '">');
	}
}

function owe() {
	window.open("http://investimo.de/online-wertermittlung/start.php", "owe", "width=700px,height=550px");
}