function osCheck() {
	this.userAgent = navigator.userAgent;
	this.isWindows = this.userAgent.indexOf("Win") != -1;
	this.isMac = this.userAgent.indexOf("Mac") != -1;
	this.isOther = !this.isWindows && !this.isMac;
}

var os = new osCheck; 