﻿//var IsMobileBrowser = true;
var IsMobileBrowser;

if (querySt('nonMobileVer') == 'true')
    IsMobileBrowser = false;

//debugger;

if ((screen.width < 800 && screen.height < 600) || (IsMobileBrowser)) {
    if (window.location.pathname.indexOf("/mobile")==-1)
        window.location = "/mobile" + window.location.pathname + window.location.search;
}

function querySt(ji) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == ji) {
            return ft[1];
        }
    }
}