
    function ShowHeader(srcFile, altImg) {
        //This removes the grey border around an <OBJECT> tag
        //which shows up in Internet Explorer
        /*
        theObjects = document.getElementsByTagName("OBJECT");
        for (var i = 0; i < theObjects.length; i++) {
            theObjects[i].outerHTML = theObjects[i].outerHTML;        
        }
        
        */
        
                    //show flash header if plugin available, else show image
                //    if (navigator.plugins && navigator.plugins["application/x-shockwave-flash"]){
                //        document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' border='0'");
                //        document.write("    codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0'' ");
                //        document.write("    WIDTH='768' HEIGHT='218' id='myMovieName'> ");
                //        document.write("    <PARAM NAME=movie VALUE='img/header3NY.swf'> ");
                //        document.write("    <PARAM NAME=quality VALUE=high> ");
                //        document.write("    <PARAM NAME=bgcolor VALUE=#FFFFFF> ");
                //        document.write("    <EMBED src='img/header3.swf' quality=high bgcolor=#FFFFFF WIDTH='768' HEIGHT='218' ");
                //        document.write("    NAME='myMovieName' ALIGN='' TYPE='application/x-shockwave-flash' ");
                //        document.write("    PLUGINSPAGE='https://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'> ");
                //        document.write("    </EMBED> ");
                //        document.write("    </OBJECT> ");     
                //    
                //    }
                //    else {
                //    
                //        document.write('<a href="Default.aspx" border="0"><IMG SRC="img/company.gif" ALT="Non-Shockwave Welcome" border="0" width="768" height="218"></a>');
                //    
                //    }

    // Globals
    // Major version of Flash required
    var requiredMajorVersion = 9;
    // Minor version of Flash required
    var requiredMinorVersion = 0;
    // Minor version of Flash required
    var requiredRevision = 0;

    var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

    // Check to see if the version meets the requirements for playback
    if (hasReqestedVersion) {
	    // if we've detected an acceptable version
	    // embed the Flash Content SWF when all tests are passed
	    AC_FL_RunContent(
				    "src", srcFile,
				    "width", "768",
				    "height", "218",
				    "align", "left",
				    "id", "AilHeader",
				    "quality", "high",
				    "bgcolor", "#FFFFFF",
				    "name", "AilHeader",
				    "allowScriptAccess","sameDomain",
				    "type", "application/x-shockwave-flash",
				    'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				    "pluginspage", "http://www.adobe.com/go/getflashplayer"
	    );
    } else {  // flash is too old or we can't detect the plugin
        //	var alternateContent = 'Alternate HTML content should be placed here.<BR>'
        //	+ 'This content requires the Adobe Flash Player. '
        //	+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
        //	document.write(alternateContent);  // insert non-flash content
        document.write('<IMG SRC="' + altImg + '" ALT="Non-Shockwave Welcome" border="0" width="768" height="218">');
    }
}