isFunction = false;
submitterName = null;
validate = false;
function rtSubmit(e) {
    if (validate) {
        if (!e) {
            if (window.event) {
                e = window.event
            } else {
                return
            }
        }
        if (typeof e.which === 'number') {
            e = e.which
        } else if (typeof e.keyCode === 'number') {
            e = e.keyCode
        } else if (typeof e.charCode === 'number') {
            e = e.charCode
        } else {
            return
        }
        if (submitterName) {
            if (e === 13) {
                if (isFunction) {
                    if (submitterName.charAt(submitterName.length - 1) === ")") {
                        eval(submitterName)
                    }
                } else {
                    eval("document.forms['" + submitterName + "'].submit")
                }
            }
        }
    }
}
document.onkeypress = rtSubmit;
function t(e) {
    var a = document.getElementById(e);
    a.className = (a.className === 'ac') ? 'ina' : 'ac'
}
function m3(n) {
    var a, arrowImg, par;
    a = document.getElementById("mnu" + n);
    par = document.getElementById("mpar" + n);
    if (a.style.display === 'block') {
        a.style.display = 'none';
        par.className = 'm3pD'
    } else {
        var b = document.getElementsByTagName("div");
        var c = document.getElementsByTagName("a");
        for (var i = 0; i < b.length; i++) {
            if (b[i].id.indexOf("mnu") >= 0) {
                b[i].style.display = 'none'
            }
        }
        for (var j = 0; j < c.length; j++) {
            if (c[j].id.indexOf("mpar") >= 0) {
                c[j].className = 'm3pD'
            }
        }
        i = 1;
        while (n.length >= i) {
            a = document.getElementById("mnu" + n.substring(0, i));
            par = document.getElementById("mpar" + n.substring(0, i));
            a.style.display = "block";
            par.className = 'm3pA';
            i += 1
        }
    }
}
function updateMenu(n, a, b) {
    var c;
    c = document.getElementById("mnu" + n);
    if (c.style.display !== 'none') {
        c.style.display = 'none';
        b.className = 'm3pD'
    } else {
        c.style.display = 'block';
        b.className = 'm3pD';
        location.href = a
    }
}
function toggleFAQ(a) {
    var b = document.getElementById(a + 'A');
    var c = document.getElementById(a + 'T');
    if (b.style.display === 'none') {
        b.style.display = '';
        c.firstChild.data = 'Hide Answer'
    } else {
        b.style.display = 'none';
        c.firstChild.data = 'Show Answer'
    }
}
function getPrintWindowParams() {
    return "width=664,menubar=yes,status=yes,scrollbars=yes,resizable=yes,top=20,left=20"
}
function searchSubmit() {
    if ((document.getElementById("QueryText").value === '') || (document.getElementById("QueryText").value === 'Search...')) {
        alert('Please enter a search term.');
        return
    }
    var a = "http://www.optus.com.au/portal/site/oca/menuitem.43cc470fed4d9ee33109002b8c8ac7a0/?vgnextoid=0b116c499f632010VgnVCM100000c8a87c0aRCRD&Page=1&Paging=true&QuerySubmit=true";
    var b = "QueryText=" + escape(document.getElementById("QueryText").value);
    document.location.href = a + "&" + b
}
function ie5PrimaryNavFix(a) {
    if (is_ie && navigator.userAgent.indexOf("MSIE 5.01") !== -1 && navigator.userAgent.toLowerCase().indexOf("mac") === -1) {
        document.location.href = a.href
    }
}
function drop(a, b, c) {
    for (i = 0; i < document.getElementsByTagName(a).length; i++) {
        var d = document.getElementsByTagName(a)[i];
        if ((d.id !== c) && (d.className === b)) {
            d.style.display = "none"
        }
        if ((d.id === c) && (d.className === b)) {
            d.style.display = "block"
        }
    }
}
function redirect(a) {
    if (a) {
        if ((a.indexOf('/portal/site/') === -1) && (a.indexOf('my.optus.com.au') === -1)) {
            window.open(a, "_blank")
        } else {
            window.open(a, "_parent")
        }
    }
}
document.write("<style type=\"text/css\">");
if (!is_ff && navigator.userAgent.toLowerCase().indexOf("mac") !== -1) {
    document.write("#section-header{float:left;}");
    document.write("#result-heading{clear:right;border:#ffffff solid 2px;width:589px;}");
    document.write("#home-region-d{height: 74px}");
    document.write("div.sec-space{height: 15px;}");
    document.write("#home-region-b-col1,#home-region-b-col2{height: 187px;}");
    if (is_ie) {
        if (navigator.userAgent.indexOf("MSIE 5") !== -1) {
            document.write("#home-col-c,#home-region-e{width:151px;}");
            document.write("#global-qLinks select{width:155px;}");
            document.write("#global-search .go,#global-qLinks .go{position:static;}")
        }
        if (navigator.userAgent.indexOf("MSIE 5.23") !== -1) {
            document.write("#home-region-d {height: 74px}");
            document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
            document.write("div.sec-space {height: 15px;}")
        }
    }
    if (is_opera) {
        document.write("#result-summary{overflow:auto;}");
        document.write("#home-region-d {height: 74px}");
        document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
        document.write("div.sec-space {height: 15px;}")
    }
} else if (is_nav && (navigator.vendorSub.substring(0, 1) === "6")) {
    document.write("#content{float:none;display:table;}");
    document.write("#content-full{float:none;position:relative}");
    document.write("#content-full form{position:relative;}");
    document.write("#content-main, #content-main-full, #content-generic, #content-generic-full{display:table;}");
    document.write("#float-tank{float:none;background-color:#ffffff;}");
    document.write("#float-tank-inner{float:none;}");
    document.write("#ln{clear:none;}");
    document.write("#control{margin-bottom:10px}");
    document.write("#control div{display:table;left:-30px;}");
    document.write("#home-region-a-col4{height:148px;}");
    document.write("#logo{height:43px;}");
    document.write("#home-region-c-col2{height:92px;}");
    document.write("#home-region-d{height:75px;}");
    document.write("#home-region-e{height:223px;}");
    if (navigator.vendorSub === "6.2.3") {
        document.write("#col-e{display:table;}");
        document.write("#home-region-d{height:76px;}");
        document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
        document.write("#home-region-e{height:228px;}");
        document.write("div.sec-space {HEIGHT: 15px;}")
    }
} else if (is_ie) {
    document.write("#home-region-d{height:73px;}");
    document.write("#home-region-d-inner1,#home-region-d-inner2{height:32px;}");
    if (navigator.userAgent.indexOf("MSIE 5") !== -1) {
        document.write("div.faq-question span.faq-question-label-full{width:460px;}");
        document.write("div.rhs-promo-border,div.highlight-border{width:138px;}");
        document.write("#global-qLinks,#global-search{padding-top:0px;font-size:11px;height:48px;vertical-align:middle;}")
    }
    if (navigator.userAgent.indexOf("MSIE 5.01") !== -1) {
        document.write("#float-tank{width:auto;}");
        document.write("#float-tank-inner{width:auto;}")
    }
    if (navigator.userAgent.indexOf("MSIE 7.") !== -1) {
        document.write("#home-region-d{height: 74px}");
        document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
        document.write("div.sec-space{height: 15px;}");
        document.write("#home-col-a{height: 225px;}");
        document.write("#home-region-b-col1,#home-region-b-col2{height: 187px;}")
    }
} else if (is_ff) {
    document.write("#home-region-d{height: 74px}");
    document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
    document.write("div.sec-space{height: 15px;}");
    document.write("#home-col-a{height: 225px;}");
    document.write("#home-region-b-col1,#home-region-b-col2{height: 187px;}")
} else if (is_moz) {
    document.write("div.faq-answer-rhs-active{border-top:1px solid #c8e6ea;clear:both;background-color:#FFF3BF;visibility:visible;display:block;border-left:1px solid #c8e6ea;border-right:1px solid #c8e6ea;padding:3px;width:441px}");
    document.write("#formStyle{display:block;font-size:11px;height:350px;width:728px;background-color:#dce6ec;border:#046684 solid 1px;padding:10px;margin-top:10px; margin-bottom:10px}");
    if (navigator.userAgent.indexOf("1.1") !== -1 || navigator.userAgent.indexOf("1.2") !== -1) {
        document.write("#home-region-a-col4{height:148px;}");
        document.write("#home-region-c-col2{height:92px;}")
    }
} else if (is_nav7up) {
    document.write("div.faq-answer-rhs-active{border-top:1px solid #c8e6ea;clear:both;background-color:#FFF3BF;visibility:visible;display:block;border-left:1px solid #c8e6ea;border-right:1px solid #c8e6ea;padding:3px;width:442px}");
    document.write("#formStyle{display:block;font-size:11px;height:350px;width:728px;background-color:#dce6ec;border:#046684 solid 1px;padding:10px;margin-top:10px; margin-bottom:10px}");
    if (navigator.userAgent.indexOf("7.0") !== -1 || navigator.userAgent.indexOf("7.01") !== -1) {
        document.write("#home-region-a-col4{height:148px;}");
        document.write("#home-region-c-col2{height:92px;}")
    }
    if (navigator.userAgent.indexOf("7.2") !== -1) {
        document.write("#home-region-d {height: 74px}");
        document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
        document.write("div.sec-space {height: 15px;}")
    }
} else if (is_opera) {
    document.write("#result-summary{overflow:auto;}");
    document.write("#home-region-d {height: 74px}");
    document.write("#home-region-d-inner1,#home-region-d-inner2{height:33px;}");
    document.write("div.sec-space {height: 15px;}")
}
if (!(is_nav && (navigator.vendorSub.substring(0, 1) === "6"))) {
    document.write("#search-content{float:left;}")
}
document.write("html { min-height: 100%; margin-bottom: 1px; }");
document.write("</style>");
var sslEntrustSecuritySealConfig = {
    elementId: "footer_entrust",
    domainPatterns: {
        "personal.optus.com.au": "personal\\.optus\\.com\\.au$",
        "smb.optus.com.au": "smb\\.optus\\.com\\.au$",
        "optusbusiness.com.au": "^(www\\.)?optusbusiness\\.com\\.au$",
        "my.optus.com.au": "my\\.optus\\.com\\.au",
        "www.optus.com.au": "\\.*"
    },
    entrustURLPrefix: "https://www.entrust.net/customer/profile.cfm"
};
function modifySSLUrl() {
    var a = window.location.hostname,
    domainPatterns = sslEntrustSecuritySealConfig.domainPatterns,
    targetElement = document.getElementById && document.getElementById(sslEntrustSecuritySealConfig.elementId),
    regexp;
    if (targetElement) {
        for (var b in domainPatterns) {
            regexp = new RegExp(domainPatterns[b]);
            if (regexp.test(a)) {
                targetElement.setAttribute("href", sslEntrustSecuritySealConfig.entrustURLPrefix + "?domain=" + b);
                break
            }
        }
    }
}
window.onload = function(a) {
    return function() {
        if (a) {
            a.apply(this, arguments)
        }
        modifySSLUrl()
    }
} (window.onload);
