﻿// eliminate the "click to activate" problem with flash objects
// for internet explorer

if (navigator.appVersion.indexOf("MSIE")!=-1)
{
    var str=navigator.appVersion; // "4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
    var oper_sys=str.split(";")[2]; // " Windows NT 5.1"
    var oper_sys_final=oper_sys.split(")")[0]; // " Windows NT 5.1"
    oper_sys_final= oper_sys_final.slice(1); // "Windows NT 5.1"

    if (oper_sys_final=="Windows NT 5.1")
    {
	    //find all object elements and activate them
        var theObjects = document.getElementsByTagName("object"); 
        for (var i = 0; i < theObjects.length; i++) 
        { 
            theObjects[i].outerHTML = theObjects[i].outerHTML; 
        }
    }
}

