// ACTIVEX FLASH EMBED

// For All Flash Movies (SWF)
// FLASH VERSION CREATED: 8,0,0,0  2006-04-28

// MEDIENKONTROLLZENTRUM.de
// Author: Mark Perleberg
// (C) 2006 Berlin

// N O   W A R R A N T Y   I F   U S E D   W I T H O U T   A   L I C E N C E .
// 
// L I C E N C E - C O D E : 



// USE THIS CODE TO EMBED FLASH SWF INTO HTML
//
// WILL FORCE "MS INTERNET EXPLORER" TO DIRECTLY PLAY SWF FILES WITHOUT CONVERMATION

// HTML HEAD incude:
/* <script src="thePathTo/activex_flash.js" language="JavaScript" type="text/javascript"></script>	*/

// HTML BODY include:
/* <script language="JavaScript" type="text/javascript" >activex_flash('name','path','width','height','');</script> */

// Function VARIABLES e.g.
//      activex_flash_name: film
//      activex_flash_path: thePathTo/film.swf
//      activex_flash_width: 550
//      activex_flash_height: 450
//      activex_flash_vars: ?x=1&y=2 (LET BLANK '' WHEN NOT USED)



/*** BASIC FLASH SETTINGS - Adjust as needed... ***/

// SET_1
// CONFIRM ACTIVATION

/* flash plugin version: 8,0,0,0 */
var activex_flash_version="6,0,0,0";

/* align: middle */
var activex_flash_align="";

/* salign: 1 */
var activex_flash_salign="1";

/* menu: true, false (Default: false) */
var activex_flash_menu="false";

/* allowScriptAccess: sameDomain */
var activex_flash_allowScriptAccess="sameDomain";

/* play: true, false */
var activex_flash_play="true";

/* loop: true, false (Default: true) */
var activex_flash_loop="true";

/* quality: autohigh, high, low */
var activex_flash_quality="high";

/* scale: noscale, noborder */
var activex_flash_scale="noborder";

/* wmode: transparent, opaque, window (Default: window) */
var activex_flash_wmode="transparent";

/*devicefont: true, false (Default: false) */
var activex_flash_devicefont="false";

/* swLiveConnect: true, false (Default: false) !Netscape Only! */
var activex_flash_swLiveConnect="false";

/* bgcolor: HEX Code (Default: #FFFFFF) */
var activex_flash_bgcolor="#ffffff";

// END SET_1



// CODE

function activex_flash(activex_flash_name,activex_flash_path,activex_flash_width,activex_flash_height,activex_flash_vars){

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
	document.write(' codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+activex_flash_version+'"');
	document.write(' width="'+activex_flash_width+'" height="'+activex_flash_height+'" id="'+activex_flash_name+'" align="'+activex_flash_align+'">');
	document.write('<param name="allowScriptAccess" value="'+activex_flash_allowScriptAccess+'" />');
	document.write('<param name="movie" value="'+activex_flash_path+activex_flash_vars+'" />');
	document.write('<param name="play" value="'+activex_flash_play+'" />');
	document.write('<param name="loop" value="'+activex_flash_loop+'" />');
	document.write('<param name="menu" value="'+activex_flash_menu+'" />');
	document.write('<param name="quality" value="'+activex_flash_quality+'" />');
	document.write('<param name="scale" value="'+activex_flash_scale+'" />');
	document.write('<param name="salign" value="'+activex_flash_salign+'" />');
	document.write('<param name="wmode" value="'+activex_flash_wmode+'" />');
	document.write('<param name="devicefont" value="'+activex_flash_devicefont+'" />');
	document.write('<param name="bgcolor" value="'+activex_flash_bgcolor+'" />');
	document.write('<embed src="'+activex_flash_path+activex_flash_vars+'"');
	document.write(' play="'+activex_flash_play+'"');
	document.write(' loop="'+activex_flash_loop+'"');
	document.write(' menu="'+activex_flash_menu+'"');
	document.write(' quality="'+activex_flash_quality+'"');
	document.write(' scale="'+activex_flash_scale+'"');
	document.write(' salign="'+activex_flash_salign+'"');
	document.write(' wmode="'+activex_flash_wmode+'"');
	document.write(' devicefont="'+activex_flash_devicefont+'"');
	document.write(' bgcolor="'+activex_flash_bgcolor+'"');
	document.write(' width="'+activex_flash_width+'"');
	document.write(' height="'+activex_flash_height+'"');
	document.write(' name="'+activex_flash_name+'"');
	document.write(' align="'+activex_flash_align+'"');
	document.write(' allowScriptAccess="'+activex_flash_allowScriptAccess+'"');
	document.write(' swLiveConnect="'+activex_flash_swLiveConnect+'"');
	document.write(' type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	
}// end function

// END CODE


// MEDIENKONTROLLZENTRUM
// Postfach 610744
// D 10938 BERLIN

// +4930. 2900 2700
// medienkontrollzentrum.de

// (C) 2006-04-28 MEDIENKONTROLLZENTRUM TM, Berlin
// SUBJECT TO OUR GENERAL TERMS AND CONDITIONS
// AUTHORIZED ASSISTANCE ADVISED

// END ACTIVEX FLASH EMBED                  

