// JAVASCRIPT LIBRARY v0.9.5
// Make sure this file is always included first!
// Watch out for the "__debug"-var below (deactivate after testing)!
// Supported browsers: Netscape 4+, IE 4+, Opera 5+, Mozilla 1+
// View the readme.txt for more infos...
var __DEBUG=false;
var _ns4=false;
var _ns6=false;
var _ie4=false;
var _ie5=false;
var _ie6=false;
var _ie=false;
var _opera5=false;
var _opera6=false;
var _opera=false;
var _other=false;
__identify();
function __identify() {  
  var n=navigator.appName;
  var v=navigator.appVersion;   
  if((navigator.userAgent.match("Opera")&&v.match("MSIE 5")) || (n.match("Opera")&&v.match("5."))) _opera5=true;
  else if((navigator.userAgent.match("Opera") && v.match("MSIE 6")) || (n.match("Opera") && v.match("6."))) _opera6=true;
  else if(n.match("Netscape") && v.match("4.")) _ns4=true;
  else if(n.match("Netscape") && v.match("5.")) _ns6=true;
  else if(n.match("Microsoft") && v.match("MSIE 4")) _ie4=true;
  else if(n.match("Microsoft") && v.match("MSIE 5")) _ie5=true;
  else if(n.match("Microsoft") && v.match("MSIE 6")) _ie6=true;
  else {
    _other=true;
    __debugm("jslib.js","__identify","I don't know this browser\n("+navigator.userAgent+")!");
  }    
  if(_ie4||_ie5||_ie6) _ie=true;
  if(_opera5||_opera6) _opera=true;
}
function _getIdentifiedBrowser() {
  var browser="";
  if(_ns4) { browser="Netscape 4.x"; }
  else if(_ns6) { browser="Netscape 6.x"; }  
  else if(_ie4) { browser="Internet Explorer 4.x"; }
  else if(_ie5) { browser="Internet Explorer 5.x"; }
  else if(_ie6) { browser="Internet Explorer 6.x"; }
  else if(_opera5) { browser="Opera 5.x"; }
  else if(_opera6) { browser="Opera 6.x"; }
  else if(_other) { browser="Unknown (and unsupported) browser (\""+navigator.userAgent+"\")"; }
  return browser;
}
function __debugm(mod,func,msg) {
  if(__DEBUG) {
    var str="";
    str+="** DEBUG message from jslib **\n\n";
    str+="MODULE: "+mod+"\n";
    str+="FUNCTION: "+func+"\n";
    str+="MESSAGE: "+msg; 
    alert(str);
  }
}
// EOF