// VividSilver BV - Cornelis Geellaan 43 - 2406 JE - Alphen aan den Rijn
// (+31) 172 - 47 99 00  vividlibrary1.2@vividsilver.com
//
// Library-versie:	1.2 (20030303)
//
// Copyright (C) 2002 - VividSilver BV  -  All rights reserved.
//
//
// Version history:
// - 1.2
//   - added support for Netscape/7 compatible browsers


function detectSize() {
	if (navigator.appName.indexOf("scape")>0) {
		nBrowsWidth = window.innerWidth;
		nBrowsHeight = window.innerHeight;
//		alert(navigator.userAgent);
		if (navigator.userAgent.indexOf("Netscape6") != -1) {
			nBrowsHeight = nBrowsHeight - 6;
		}
		if (navigator.userAgent.indexOf("Netscape/7") != -1) {
			nBrowsHeight = nBrowsHeight - 6;
		}
	}
	else {
		if (((navigator.userAgent.indexOf("MSIE 5") != -1) || (navigator.userAgent.indexOf("MSIE 6") != -1)) && (navigator.userAgent.indexOf("Opera") == -1))  {
			nBrowsWidth = document.body.clientWidth;
			nBrowsHeight = document.body.clientHeight;

			if (navigator.userAgent.indexOf("MSIE 5.0") != -1) {
				nBrowsWidth = nBrowsWidth - 20;
			}
		}
	}

}

//detectSize()