function Browser() { var ua, s, i; ua = navigator.userAgent; if (document.getElementById) this.isCompliant = true; s = "Mac"; if ((i = ua.indexOf(s)) >= 0) this.isMac = true; s = "MSIE"; if ((i = ua.indexOf(s)) >= 0) { this.isIE = true; this.version = parseFloat(ua.substr(i + s.length)); return; } s = "Netscape6/"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = parseFloat(ua.substr(i + s.length)); return; } s = "Gecko"; if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = 6.1; return; } } Browser.prototype.isIE = false; Browser.prototype.isNS = false; Browser.prototype.version = null; Browser.prototype.isCompliant = false; Browser.prototype.isMac = false; /* Browser.prototype.load_js = function() { if (this.isIE) { script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'menu.js'; document.getElementsByTagName('head')[0].appendChild(script); } else if (this.isMac) { script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'menu.js'; document.getElementsByTagName('head')[0].appendChild(script); } else (this.isNS) { script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'menu.js'; document.getElementsByTagName('head')[0].appendChild(script); } } */ 
