function swfGen () {
    
	swfParams=swfGen.arguments;
	swfWidth = '';
	swfHeight = '';
	swfId = '';
	swfName = '';
	swfAlign = '';
	
	for(i=0; i<swfParams.length; i+=2) {
	    if (swfParams[i].match(/^width$/i)) {
		    swfWidth = swfParams[i+1];
		}else if (swfParams[i].match(/^height$/i)) {
		    swfHeight = swfParams[i+1];
		}else if (swfParams[i].match(/^id$/i)) {
		    swfId = swfParams[i+1];
		}else if (swfParams[i].match(/^name$/i)) {
		    swfName = swfParams[i+1];
		}else if (swfParams[i].match(/^align$/i)) {
		    swfAlign = swfParams[i+1];
		}
	}
    
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"'
	+ ' width="'+swfWidth+'" height="'+swfHeight+'" id="'+swfId+'" name="'+swfName+'" align="'+swfAlign+'">';
	
	for(i=0; i<swfParams.length; i+=2) {
		oeTags += '<param name="'+swfParams[i]+'" value="'+swfParams[i+1]+'" />';
	}
	
    oeTags += '<embed'
	
	for(i=0; i<swfParams.length; i+=2) {
		oeTags += ' '+swfParams[i]+'="'+swfParams[i+1]+'"';
	}
	
    oeTags += ' type="application/x-shockwave-flash"'
    + ' pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
}
