
//Flash Plugintest 
var ShockMode = 0;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin&& parseInt(plugin.description.substring(plugin.description.indexOf(".")-2)) >= 7)
{ShockMode = 1;}
else if ((navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0))
{document.write('<scr' + 'ipt language="VBScript"> \n');
document.write('on error resume next \n');
document.write('ShockMode = (Isobject(Createobject("ShockwaveFlash.ShockwaveFlash.7")))\n');
document.write('<\/scr' + 'ipt>\n');}




//Banner Ausgabe
function bp_bannerPrint(myURL,myGif,myFlash,myWidth,myHeight,myTarget){ //myURL = clickTag
	//Standardwerte setzen, falls keine angegeben werden
	if(myWidth=="") myWidth = '300';
	if(myHeight=="") myHeight = '250';
	if(myTarget=="") myTarget = '_self';

	if (ShockMode && myFlash!="") {
		flObj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="banner" width="'+myWidth+'" height="'+myHeight+'">';
		flObj+= '<param name="movie" value="'+myFlash+'?clickTag='+myURL+'&target='+myTarget+'" />';
		flObj+= '<param name="Quality" value="high" />';
		flObj+= '<param name="wmode" value="transparent" />';
		flObj+= '<param name="allowScriptAccess" value="always" />';
		flObj+= '<embed wmode="transparent" src="'+myFlash+'?clickTag='+myURL+'&target='+myTarget+'" swLiveConnect="TRUE" width="'+myWidth+'" height="'+myHeight+'" type="application/x-shockwave-flash" pluginspage="' + document.protocol + '//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" allowScriptAccess="always"><\/embed>';
		flObj+= '<\/object>';
	} else if(myGif!="") {
		flObj = '<a href="'+unescape(myURL)+'" target="_blank"><img src="'+myGif+'" border="0" width="'+myWidth+'" height="'+myHeight+'" alt="Hier klicken!" galleryimg="no" /><\/a>';
	}
	document.write(flObj);
}