//===============================================
// get an object/embed tag set for a Flash movie

	function getFlashObject(params){
		
		var flash_vars          = (params.flash_vars)? 'FlashVars="' + params.flash_vars + '" ' : "";
		var flash_vars_param	= (params.flash_vars)? '<param NAME=FlashVars VALUE="' + params.flash_vars + '">' : "";

                var wmode               = (params.transparent)? 'wmode="transparent" ' : "";
                var wmode_param         = (params.transparent)? '<param name="wmode" value="transparent"/> ' : "";

		var object_html	=	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' +
								'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ' +
								'width="' + params.obj_width + '" height="' + params.obj_height + '" id="' + params.obj_id + '" >' +
								'<param name="allowScriptAccess" value="sameDomain" />' +
								'<param name="movie" value="' + params.flash_src + ' " />' +
								'<param name="loop" value="false" />' +
								'<param name="menu" value="false" />' +
								'<param name="quality" value="high" />' +
								'<param name="scale" value="noscale" />' +
								'<param name="salign" value="lt" />' +
								'<param name="bgcolor" value="' + params.obj_bkgcolor + '" />' +
                                                                wmode_param +
								flash_vars_param +
								'<embed src="' + params.flash_src + '" ' + 
									flash_vars + 
									'loop="false" ' + 
									'menu="false" ' + 
									'quality="high" ' +
									'scale="noscale" ' +
									'salign="lt" ' +
									'bgcolor="' + params.obj_bkgcolor + '" ' + 
                                                                        wmode +
									'width="' + params.obj_width + '" ' + 
									'height="' + params.obj_height + '" ' + 
									'name="' + params.obj_id + '" ' + 
									'swLiveConnect="true" ' +
									'allowScriptAccess="sameDomain" ' + 
									'type="application/x-shockwave-flash" ' + 
									'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" />' +
							'</object>';	
		return object_html;
									
	}//function getFlashObject(){
	
//===============================================
// get info about the flash plugin

    var MM_FlashControlInstalled = false;
    var MM_FlashControlVersion = 0;

    //browsers that can't run this will ignore it
    document.write('<scr' + 'ipt language=VBScript\> \n');
    document.write('Private i, x \n');
    document.write('On Error Resume Next \n');
    document.write('MM_FlashControlInstalled = false \n');
    document.write('For i = 9 To 1 Step -1 \n');
    document.write('Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n');
    document.write('MM_FlashControlInstalled = IsObject(x) \n');
    document.write('If MM_FlashControlInstalled Then \n');
    document.write('MM_FlashControlVersion = CStr(i) \n');
    document.write('Exit For \n');
    document.write('End If \n');
    document.write('Next \n');
    document.write('<\/scr' + 'ipt\> \n'); // break up end tag so it doesn't end the script

    function getFlashInfo(){

        var info = new Object();
        info.installed = false;
        info.version = 0;

        if(navigator.plugins && navigator.plugins.length > 0){

            info.implementation = "Plug-in";
            info.autoInstallable = false;	// until Netscape SmartUpdate supported

            // Check whether the plug-in is installed:
            if(navigator.plugins["Shockwave Flash"]){

                info.installed = true;

                // Get the plug-in version and revision:
                var words = navigator.plugins["Shockwave Flash"].description.split(" ");

                for(var i = 0; i < words.length; ++i){

                    if (isNaN(parseInt(words[i])))
                        continue;

                    info.version = parseInt(words[i]);
                    info.revision = parseInt(words[i + 1].substring(1));
                }
            }else{
                info.installed = false;
            }
        }else if(MM_FlashControlInstalled){
            info.installed = MM_FlashControlInstalled;
            info.version = parseInt(MM_FlashControlVersion);
        }
//info.installed = true;
//info.version = 7;
        return info;

    }//function getFlashInfo(){
    
//===============================================
// get a message about missing flash player

    function noFlash(params){
        
        var message =   '<div style="display:table; height:' + params.obj_height + 'px; width:' + params.obj_width + 'px; _position:relative; background-color:#ffffff;">' +
                        '<div style=" _position:absolute; _top:50%; _left:50%; _width:' + params.obj_width + 'px; display:table-cell; vertical-align:middle; text-align:center;">' +
                        '<div style=" _position:relative; _top:-50%; _left:-50%; padding:4px;">' +
                        '<span style="font-family:arial, san-serif; font-size:9px;">' +
                        '<p>This component requires the Flash plugin. Please install it from <a href="http://www.macromedia.com/go/getflashplayer" target="_new">Macromedia</a> then return to this page.</p>' +
                        '</span>' +
                        '</div></div></div>';
        
        return message;
        
    }//function noFlash(){