function cms_flash_init_video(aFile, w, h, t, params, aId) {
	// NOTE: This code is shared with WSNLinks
	if (hasFlash() == true){
	    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" align="middle" title="'+t+'"');
	    if (aId) document.write(' id="'+aId+'"');
	    document.write('>');
	    document.write('<param name="allowScriptAccess" value="sameDomain">');
	    document.write('<param name="movie" value="'+aFile+'">');
	    document.write('<param name="quality" value="high">');
	    document.write('<param name="allowFullScreen" value="true">');
	    document.write('<embed src="'+aFile+'" quality="high" width="'+w+'" height="'+h+'" name="ploneskin" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowFullScreen="true">');
	    document.write('</object>');
    }else{
        document.write('<p style="color:red;font-weight:bold;text-align:center;">Um dieses Video zu sehen, m&uuml;ssen Sie das Adobe Flash Plugin, das Sie <a href="http://www.adobe.com/go/getflashplayer/">hier herunterladen</a> k&ouml;nnen installieren.</p>');
    } 
       
}

function hasFlash() {
    try{
       var tmp = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
       delete tmp;
       return true;
    }catch(ex){
        if (navigator.mimeTypes && 
        navigator.mimeTypes["application/x-shockwave-flash"] && 
        navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
            return true;
        }
    }
    return false;
} 
