
function imgon(thisImg) {
    document.getElementById(thisImg).src = "images/home/" + thisImg + "-on.gif";
}

function imgoff(thisImg) {
    document.getElementById(thisImg).src = "images/home/" + thisImg + "-off.gif";
}


function buildFlash() {
    //begin the OBJECT tag, which will be understood by ActiveX-capable browsers
    document.write('<object id="swflash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="894" height="507" />');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="gap5.swf" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="bgcolor" value="#ffffff" />');

    //If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
    var plugin = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
    if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4){
        //...write out the following <EMBED> tag into the document.
        document.write('<embed src="gap5.swf" wmode="transparent" quality="high" bgcolor="#ffffff" width="894" height="507" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    }
    //Otherwise,...
    else {
       //...write out the following <IMG> tag into the document. The image does
       //not need to be the same size as the Flash Player movie, but it may help you lay out the
       //page if you can predict the size of the object reliably.
       document.write('<img src="images/home/gap-splash.gif" width="894" height="507" alt="Global Automation Partners" />');
    }

    //Close the OBJECT tag.
     document.write('</object>');

     //if swflash is not installed
    if( !document.swflash ){
        document.write('<img src="images/home/gap-splash.gif" width="894" height="507" alt="Global Automation Partners" />');
    }
}