﻿// javascript flashInjector / active content workaround for ie
// by danilo sandner - www.danilosandner.de
function injectFlash(src, width, height, flashVersion, furtherParams){
	var paramsNode = "";
	var embedParamsNode = "";
	for(var item in furtherParams) {
		paramsNode += '<param name="'+ item +'" value="'+ furtherParams[item] +'">';
		embedParamsNode += item +'="'+ furtherParams[item] +'" ';
		}
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flashVersion+'" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+src+'">');
	document.write(paramsNode);
	document.write('<embed src="'+src+'" '+embedParamsNode+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>');
}

