//test
var overContinue = false;
var SLVersion = "1.0";
var OS = "Unsupported";
var Browser = "Unsupported";

function detectUserAgent() {
    var a = window.navigator.userAgent;
    
    if (a.indexOf("Windows NT 5.1") >= 0) {
        OS = "Windows XP";
    }
    else if (a.indexOf("WOW64") >= 0) {
        OS = "Windows Vista 64";
    }
    else if (a.indexOf("Win64; x64;") >= 0) {
        OS = "Windows Vista 64";
    }
    else if (a.indexOf("Windows NT 6.0") >= 0) {
        OS = "Windows Vista";
    }    
    else if (a.indexOf("PPC Mac OS X") >= 0) {
        OS = "MacPPC";
    }
    else if (a.indexOf("Intel Mac OS X") >= 0) {
        OS = "MacIntel";
    }
    if (OS != "Unsupported") {
        if (a.indexOf("MSIE") >= 0) {
            if (a.indexOf("Win64") == -1) {
                if (parseInt(a.split("MSIE")[1]) >= 6) {
                    Browser = "MSIE";
                }
            }
        }
        else if (a.indexOf("Firefox") >= 0) {
            var b = a.split("Firefox/")[1].split("."), c = parseInt(b[0]);
            if (c >= 2) {
                Browser = "Firefox";
            }
            else {
                var d = parseInt(b[1]);
                if (c == 1 && d >= 5) {
                    Browser = "Firefox";
                }
            }
        }
        else if (a.indexOf("Safari") >= 0) {
            if (OS != "Windows") {
                Browser = "Safari";
            }
        }
    }
}


            function GetDownloadURL() {
                detectUserAgent();
                if (OS == "Windows XP") {
                    return "http://view.atdmt.com/action/mrtpcu_FY09IE8UpgradeInstallAll3NowXP1_1";
                }
                else if (OS == "Windows Vista") {
                    return "http://view.atdmt.com/action/mrtpcu_FY09IE8UpgradeInstallAll3NowVista321_1";
                }
                else if (OS == "Windows Vista 64") {
                    return "http://view.atdmt.com/action/mrtpcu_FY09IE8UpgradeInstallAll3NowVista641_1";
                }
                else return "support.htm";
            }        
            








