isWin7 = window.navigator.userAgent.indexOf("Windows NT 6.1") != -1; isVista = window.navigator.userAgent.indexOf("Windows NT 6.0") != -1; isXP = !_isWin7 && !_isVista && window.navigator.userAgent.indexOf("Windows") != -1;