
    /*
        DESCRIPTION:    Find all flash files, strip and re-write for IE7
        DEVELOPED BY:   Jeremiah La Bresh
    */
    
    
    
    function ieFlashFix777(){
        //
        // create an object for all "object" tags in the document
        var allObjects = document.getElementsByTagName('object');
        //
        // get the number of object tags on the page 
        var totalObjs = allObjects.length;
        //
        // now for the fun part!
        //
        // step 1 -- go through the object tags
        for(var i=0; i<totalObjs; i++){
            //
            // step 2 -- create a variable to hold the current obj
            var curObj = allObjects[i];
            //
            // step 3 -- create a new element to put the NEW object data group into
            var holder = document.createElement("div");
            //
            // step 4 -- create a new object tag
            var newObj = document.createElement("object");
            //
            // step 5 -- check which browser we are in
            //           -- if the browser is IE -- lets use an object tag
            if(is_ie){
                //
                // step 6 -- go through the current object tag, create a new object tag with same attributes
                var objectAttrs = curObj.attributes;
                var objectAttrN = objectAttrs.length;
                
                for(var k=0; k<objectAttrN; k++){
                    newObj.setAttribute(objectAttrs[k].nodeName,objectAttrs[k].nodeValue);
                }
                
                var objectChildNodes = curObj.childNodes;
                var objectChildNodeN = objectChildNodes.length;
                
                for(var k=0; k<objectChildNodeN; k++){
                    var paramObject = document.createElement("param");
                    paramObject.setAttribute("name",objectChildNodes[k]["name"]);
                    paramObject.setAttribute("value",objectChildNodes[k]["value"]);
                    newObj.appendChild(paramObject);
                }
                
            }
            //
            //           --  if it is not IE -- lets use an embed tag
            if(!is_ie){
                //
                // step 6 -- go through the current embed tag, create a new embed tag with same attributes
                var embedObject = document.createElement("embed");
                var embedAttrs = curObj.getElementsByTagName("embed")[0].attributes;
                var embedAttrN = embedAttrs.length;
                
                for(var k=0; k<embedAttrN; k++){
                    embedObject.setAttribute(embedAttrs[k].nodeName,embedAttrs[k].nodeValue);
                }
                newObj.appendChild(embedObject);
            }
            //
            // step 7 -- attach newObj to holder
            holder.appendChild(newObj);
            //
            // step 8 -- create an empty div
            var tempParent = document.createElement("div");
            //
            // step 9 -- Create an ID variable for our empty div
            var TPID = "tmpParent" + i + "";
            //
            // step 10 -- put some text in the empty div as a place holder (should not been seen by anyone -- yes that temporary)
            var tempText = document.createTextNode("Flash goes here.");
            //
            // step 11 -- attach the text node
            tempParent.appendChild(tempText);
            //
            // step 12 -- attach the empty div (tempParent) to the body
            var attachedParent = document.body.appendChild(tempParent);
            //
            // step 13 -- assign the empty div an ID
                   attachedParent.id = TPID;
            //
            // step 14 -- replace our current flash with the empty div
            var temp = curObj.parentNode.replaceChild(attachedParent,curObj);
            //
            // step 15 -- replace our empty div with the new flash
            attachedParent.innerHTML = holder.innerHTML;
            //
            //step 16 -- Be glad.
        }
    }
    
    
    
     