ns=false;
W3C=false;
ie=false;

browser=navigator.appName;
version=navigator.appVersion;
Vmajor=parseInt(navigator.appVersion);
Vminor=parseFloat(navigator.appVersion);

if (browser=="Netscape") {
	if (Vmajor==4)
	{
		ns=true; doc=document.layers; style=''; px='';
		if (Vminor > 4.08 ) window.captureEvents(Event.RESIZE);
	}
	else if (Vmajor==5)	W3C=true;
}
else if (browser=="Microsoft Internet Explorer") {
	
	if ( version.indexOf('MSIE 5.0; Macintosh;') != -1 )  {
		ie=true; doc = document.all; style = '.style'; px = 'px';
	}
	// IE 4 to 6 return v4
	else if ( (Vmajor==4) ) {
		ie=true; doc = document.all; style = '.style'; px = 'px';
	}
	
}
