//
// Alper A. Kerman - May 09, 2005
//
// MCI Portal and Web Services
// Email: c-Alper.Kerman@MCI.com
//
//
// Globals
var mci_flash_HTML_code = "";

function MCI_Flash_Handler(	target_flash_file,
							target_flash_width,
							target_flash_height	) {
	
    // Check for netscape
    if (navigator.plugins && navigator.mimeTypes.length) {
        mci_flash_HTML_code += '<embed type="application/x-shockwave-flash"'
								+ ' src="' + target_flash_file + '"'
								+ ' width="' + target_flash_width + '"'
								+ ' height="' + target_flash_height + '"'
								+ ' quality="high"'
								+ ' type="application/x-shockwave-flash"'
								+ ' pluginspage="http://www.macromedia.com/go/getflashplayer"'
								+ ' WMode="Transparent"></embed>';
    } else {
	// Check for IE
        mci_flash_HTML_code += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
								+ ' width="' + target_flash_width + '"'
								+ ' height="' + target_flash_height + '">'
								+ '<param name="Src" value="' + target_flash_file + '">'
								+ '<param name="WMode" value="Transparent">'
								+ '<param name="Quality" value="High"></object>';
    }
}

function MCI_Flash_Writer( target_ID ) {
	document.getElementById(target_ID).innerHTML = mci_flash_HTML_code;
}
