// ClientSnifferJr.js
// ClientSnifferJr Object Constructor.
// This is a simplified version of the Client Sniffer code found at
// http://www.mozilla.org/docs/web-developer/sniffer/browser_type_oo.html
//
// Michael Foster, December 8, 2000
// mfoster@cybrtyme.com
// http://lineoflight.com/
// http://www.mikefoster.f2s.com/


function ClientSnifferJr()
{
  this.ua = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);
  this.nav   = (
    (this.ua.indexOf('mozilla')!=-1)
    && ((this.ua.indexOf('spoofer')==-1)
    && (this.ua.indexOf('compatible') == -1))
  );
  this.nav4  = (this.nav && (this.major == 4));
  this.nav4up= (this.nav && (this.major >= 4));
  this.nav5up= (this.nav && (this.major >= 5));
  this.gecko = (this.ua.indexOf('gecko') != -1); 
  this.ie    = (this.ua.indexOf("msie") != -1);
  this.ie3   = (this.ie && (this.major == 2));
  this.ie4   = (
    this.ie && (this.major == 4)
    && (this.ua.indexOf("msie 5.0")==-1)
  );
  this.ie4up = (this.ie  && (this.major >= 4));
  this.ie5up = (this.ie && !this.ie3 && !this.ie4);
  this.opera = (this.ua.indexOf("opera") != -1);
  this.hotjava = (this.ua.indexOf("hotjava") != -1); 
  this.webtv = (this.ua.indexOf("webtv") != -1);
  this.aol   = (this.ua.indexOf("aol") != -1); 
}

var is = new ClientSnifferJr();


// Added By IDSi, July 2002



function nrc(e) {

bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

/*
function noRightClick(e) {

  var bV  = parseInt(navigator.appVersion);
  var bNS = navigator.appName=="Netscape";
  var bIE = navigator.appName=="Microsoft Internet Explorer"
  //alert('www.idsigis.com S ' + e.button);
  
   
  if (bNS && (e.which > 1)) {
            
           //window.onmousedown= noRightClick;
            alert('www.idsigis.com');
            return false;
  } 
    
    else if ((event.button>1) && bIE) {      
       alert('www.idsigis.com');
             return false;
            
  }
  
}
*/
