/*
	$Header:   //Nm-filestore/Archives/Releases/Recruitment/archives/src/webroot/icnetwork/js/browserDetect.js-arc   1.2   Jul 06 2006 15:21:18   twoodwark  $

	Author: 	Toby Woodwark
	Date:		2005-07-14
	Name: 		browserDetect.js
	Desciption: set boolean globals for various browsers.  This is because
				sometimes capability testing isn't enough

				b_safari - if true this is Safari or a likely equivalent
				b_ie	 - if true this is IE
				b_iemac	 - if true this is IE/Mac 5+
				b_gecko	 - if true this is Moz
				b_opera	 - if true this is Opera 5+
				b_w3c_dom	 - if true we have a capable browser such as IE5+/Moz/Opera7+/Safari

	$Log:   //Nm-filestore/Archives/Releases/Recruitment/archives/src/webroot/icnetwork/js/browserDetect.js-arc  $

   Rev 1.2   Jul 06 2006 15:21:18   twoodwark
more

   Rev 1.1   Jul 05 2006 17:54:08   twoodwark
attempted fixes for outrageous layout hax; safari

   Rev 1.0   Jul 14 2005 15:36:34   twoodwark
Initial revision.

*/
var uAgent = navigator.userAgent.toLowerCase();
var b_safari = (uAgent.indexOf('applewebkit/') == -1)?false:true;
var b_ie = (document.all)?true:false;
var b_iemac  = (b_safari || uAgent.indexOf('msie 5.') == -1 || uAgent.indexOf('mac') == -1 )?false:true;
var b_iewin  = (b_ie && !b_iemac);
var b_gecko  = (navigator.product && navigator.product.match(/gecko/i))?true:false; //NB. check navigator.productSub if this gets 'fixed'
var b_opera  = (window.opera)?true:false; 
var b_w3c_dom  = (document.getElementById && document.createElement)?true:false; 
