/** * Copyright (c) 2002 i-seven aps. * Hvidsværmervej 161, DK-2610 Rødovre, Denmark. * All rights reserved. * * This software is the confidential and proprietary information * of i-seven aps. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with i-seven aps. */ function getBrowser() { this.navigator=navigator; this.isIE=(navigator.appName=='Microsoft Internet Explorer'); this.isNS=(navigator.appName=='Netscape'); this.isOpera=(this.navigator.userAgent.indexOf("Opera")!=-1); this.isKonqueror=(this.navigator.userAgent.indexOf("Konqueror")!=-1); this.isMac=(navigator.appVersion.indexOf("Mac")!=-1); this.hasDOM=(document.getElementById) ? true : false; this.version=parseInt(navigator.appVersion); if (this.isIE) { this.ie4=(this.navigator.userAgent.indexOf('MSIE 4')>0); this.ie5=(this.navigator.userAgent.indexOf('MSIE 5')>0); this.ie6=(this.navigator.userAgent.indexOf('MSIE 6')>0); if (this.ie5) this.version=5; if (this.ie6) this.version=6; } if (this.isNS) { this.ns4=(this.version==4); this.ns6=(this.version==5); } } browser = new getBrowser();