﻿function checkWraper(IE, isWD, LI) {
    //alert(IE + "," + isWD + "," + LI);
    if (IE) {
        if (window.external.verifyApp) {
            if (LI)
                document.location = "/action/doAppLogin.aspx?" + window.external.getDownloadKey();
            if (isWD)
                document.location = "/action/doAppDL.aspx";
        }
        else if (!isWD)
            document.location = "/action/doWDL.aspx";
    }
    else {
        if (!isWD) 
        {
            document.location = "/action/doWDLOther.aspx";
        }
    }
}
function testDLK() {
    document.location = "/action/doAppLogin.aspx?" + window.external.getDownloadKey();
}
try {
    $(document).ready(function() {
        $('#ctl00_txt_Search').keypress(function(e) { //Chris
            if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
                window.location = "javascript:__doPostBack('ctl00$btn_Search','')";
            }
        });
    });
}
catch (Error) { }

function isHighslideOpen() { //Chris
    return hs.getExpander();
}