// JavaScript Document
 function checkBrowser()
 { 
  this.ver = navigator.appVersion ;
  this.dom = document.getElementById?1:0 ;
  this.ie6 = (this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
  this.ie5 = (this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
  this.ie4 = (document.all && !this.dom)?1:0; 
  this.ns4 = (document.layers && !this.dom)?1:0; 
	this.ns5 = (this.dom && parseInt(this.ver) >= 5) ?1:0; 
	
  this.bw  = (this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5);
  return this;
 } 
 bw = new checkBrowser();
 function hideIt(div)
 {
  if(bw.bw)
	{
   div = "divLoadCont" ;
   obj = bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?document[div]:0; 
   obj.visibility = 'hidden';
  } 
 }
/*
function detectBrowserVersion()
{
var userAgent = navigator.userAgent.toLowerCase();
$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
var version = 0;

// Is this a version of IE?
if($.browser.msie){
userAgent = $.browser.version;
userAgent = userAgent.substring(0,userAgent.indexOf('.'));	
version = userAgent;
}

// Is this a version of Chrome?
if($.browser.chrome){
userAgent = userAgent.substring(userAgent.indexOf('chrome/') +7);
userAgent = userAgent.substring(0,userAgent.indexOf('.'));	
version = userAgent;
// If it is chrome then jQuery thinks it's safari so we have to tell it it isn't
$.browser.safari = false;
}

// Is this a version of Safari?
if($.browser.safari){
userAgent = userAgent.substring(userAgent.indexOf('safari/') +7);	
userAgent = userAgent.substring(0,userAgent.indexOf('.'));
version = userAgent;	
}

// Is this a version of Mozilla?
if($.browser.mozilla){
//Is it Firefox?
if(navigator.userAgent.toLowerCase().indexOf('firefox') != -1){
userAgent = userAgent.substring(userAgent.indexOf('firefox/') +8);
userAgent = userAgent.substring(0,userAgent.indexOf('.'));
version = userAgent;
}
// If not then it must be another Mozilla
else{
}
}

// Is this a version of Opera?
if($.browser.opera){
userAgent = userAgent.substring(userAgent.indexOf('version/') +8);
userAgent = userAgent.substring(0,userAgent.indexOf('.'));
version = userAgent;
}
return version;
}
 */
