
// Matts browser checking variables

//first bit - can use for dhtml such as it checks for the Document Object Model:   if (ns4) or if (ie4)
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

// just to keep things neat, here's one to get Netscape 3... if (ns3)...
var ns3 = (navigator.appName.indexOf('Netscape')>=0 && parseInt(navigator.appVersion)<=3)? true:false

// can't have one for ie3 as it doesn't understand linking to a js file!!!

//second bit - returns straight 1 figure browser version
var vs = parseInt(navigator.appVersion)


//third bit - use like: if (ns&&v4) or if (ie&&v4) etc, or use for generic version or browser specific code...

var ns = navigator.appName.indexOf('Netscape')>=0? true:false
var ie = navigator.appName.indexOf('Microsoft')>=0? true:false
var v4 = parseInt(navigator.appVersion)>=4? true:false

