// JavaScript Document

function fuFlash(SwifHolder, MOVIE, WIDTH, HEIGHT, CODEBASE, BGCOLOR) {
	
	var CONTAINER = document.getElementById(SwifHolder);
	
	var flash_tag = '';
	flash_tag+= '<object style="page-break-after: avoid;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+CODEBASE+',0,0,0" width="'+WIDTH+'" height="'+HEIGHT+'" align="middle">';
	flash_tag+= '<param name="allowScriptAccess" value="sameDomain" />';
	flash_tag+= '<param name="movie" value="'+MOVIE+'" />';
	flash_tag+= '<param name="quality" value="high" />';
	flash_tag+= '<param name="wmode" value="transparent" />';
	flash_tag+= '<param name="bgcolor" value="#'+BGCOLOR+'" />';
	flash_tag+= '<embed src="'+MOVIE+'" wmode="transparent" autostart="true" quality="high" bgcolor="#'+BGCOLOR+'" width="'+WIDTH+'" height="'+HEIGHT+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flash_tag+= '</object>';
	
	CONTAINER.innerHTML = flash_tag;
	return;
	
	/*
	var object = document.createElement('object');
	object.setAttribute('classid','clsid:d27cdb6e-ae6d-11cf-96b8-444553540000');
	object.setAttribute('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+_codebase+',0,0,0');
	object.setAttribute('width',_width);
	object.setAttribute('height',_height);
	object.setAttribute('align','middle');
	//object.setAttribute('standby','loading movie...');
	
	param = document.createElement('param');
	param.setAttribute('name','movie');
	param.setAttribute('value',MOVIE);
	object.appendChild(param);

	param = document.createElement('param');
	param.setAttribute('name','allowScriptAccess');
	param.setAttribute('value','sameDomain');
	object.appendChild(param);

	param = document.createElement('param');
	param.setAttribute('name','quality');
	param.setAttribute('value','high');
	object.appendChild(param);
	
	param = document.createElement('param');
	param.setAttribute('name','bgcolor');
	param.setAttribute('value',BGCOLOR);
	object.appendChild(param);
	
	param = document.createElement('param');
	param.setAttribute('name','wmode');
	param.setAttribute('value','transparent');
	object.appendChild(param);
	
	
	param = document.createElement('embed');
	param.setAttribute('src',MOVIE);
	param.setAttribute('quality','high');
	param.setAttribute('width', _width);
	param.setAttribute('height', _height);
	param.setAttribute('bgcolor', BGCOLOR);
	param.setAttribute('autostart','true');
	param.setAttribute('align','middle');
	param.setAttribute('allowScriptAccess','sameDomain');
	param.setAttribute('wmode','transparent');
	param.setAttribute('type','application/x-shockwave-flash');
	param.setAttribute('pluginspage','http://www.macromedia.com/go/getflashplayer');
	object.appendChild(param);
	*/
	CONTAINER.appendChild(object);
	
}