/**
* <script>
*
* EasyGUI Browser Detection Functions
*
* @author 		Gaetan Lauff	<glauff@plansoft.de>
* @copyright	Plan Software GmbH, 2001 - 2004
* @package 		Base
*
* This is not free software.
*/
function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isOP = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
}

var browser = new Browser();

var startidx 		= 0;
var initFunctions 	= '';
var enhancedCombos	= new Array();
var multipleCombos 	= new Array();
var enhancedCombosInit;

var op6 = window.opera && !document.createComment;
var op7 = window.opera && document.createComment;
var ns6 = !document.all && document.getElementById;
var ie5 = document.all && !document.fireEvent && !window.opera;
var ie55= document.all && document.fireEvent && !document.createComment;
var ie6 = document.all && document.fireEvent && document.createComment;

var agt=navigator.userAgent.toLowerCase();

var is_winxp = ((agt.indexOf("windows nt 5.1")!=-1));

if (ns6) {
	startidx = 1;
}

if (!ie5 && !ie55 && !ie6 && !ns6) {
	alert('ATTENTION !\r\nYOUR BROWSER IS INCOMPATIBLE TO EasyGUI SYSTEM !\nStarting with perhaps reduced functionality !\r\nPlease contact Plan Software for further information !');
}