/*******************************
*
* DhtmlUtils.js
* 
* Element Control class
* Ver = 2 - Utilizes prototype.js library - /js/extern/prototype.js
*
* Author: John Hutcheson, control.option
* References: DHTMLapi.js by Danny Goodman (http://www.dannyg.com) Release 2.0.
*
*******************************/



// Create DhtmlUtils class using prototype.js 
var BrowserDetect = Class.create();

// Add new methods to the DhtmlUtils class' prototype
BrowserDetect.prototype = {
	
	/* protype.js initialize - Constructor method
	* 
	* browser test properties initialized:
	* this.isWin
	* this.isMac
	* this.isCSS
	* this.isW3C
	* this.isIE
	* this.isIE6CSS
	* this.isIE7
	*
	*/
	
	initialize: function() { 
		if (document.images) {
			this.isWin = (navigator.platform=="Win32") ? true : false;
			this.isMac = (navigator.platform=="MacPPC") ? true : false;
			this.isCSS = (document.body && document.body.style) ? true : false;
			this.isW3C = (this.isCSS && document.getElementById) ? true : false;
			this.isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
			this.isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false;
			this.isIE7 = (document.documentElement && typeof document.documentElement.style.maxHeight!="undefined" && document.all) ? true : false;
		}
	}
	
	
};