/*
*
*	This fix is for new IE Browsers only.
*	It works in all other browsers but is manditory
*	for generating ActiveX content that is
*	pre-activated in IE. *FUCK MICROSOFT*
*
*/

function create_activeX( mod, file, width, height, transparent)
{
	if(mod != null) var extra_param = 'sel='+mod;
	else extra_param = '';
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="includes/flash/'+file+'.swf?'+extra_param+'" />');
	document.write('<param name="quality" value="high" />');

	// for transparent flash objects, and not
	if(transparent)
	{
		document.write('<param name="wmode" value="transparent" />');	
		document.write('<embed src="includes/flash/'+file+'.swf?'+extra_param+'" quality="high" wmode="transparent" width="'+width+'" height="'+height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
	else document.write('<embed src="includes/flash/'+file+'.swf?'+extra_param+'" quality="high" width="'+width+'" height="'+height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}


function create_activeX_generic( file, extra, width, height, transparent)
{	
	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="'+width+'" height="'+height+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="includes/flash/'+file+'.swf'+extra+'" />');
	document.write('<param name="quality" value="high" />');

	// for transparent flash objects, and not
	if(transparent)
	{
		document.write('<param name="wmode" value="transparent" />');	
		document.write('<embed src="includes/flash/'+file+'.swf'+extra+'" quality="high" wmode="transparent" width="'+width+'" height="'+height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
	else document.write('<embed src="includes/flash/'+file+'.swf'+extra+'" quality="high" width="'+width+'" height="'+height+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}