
//******************************* Begin Browser Check ******************************************//

function browsercheck () {
	var agt=navigator.userAgent.toLowerCase();

	this.major 	= parseInt(navigator.appVersion);
	this.minor 	= parseFloat(navigator.appVersion);
	this.mac 	= (agt.indexOf("mac")!=-1);
	this.ns 	= ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('hotjava')==-1));
	this.ns4 	= (this.ns && (this.major == 4));
	this.ns6 	= (this.ns && (this.major >= 5));
	this.ie  	= ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	this.ie4	= (this.ie && (this.major == 4) && (agt.indexOf("msie 5")==-1));
	this.ie5	= (this.ie && this.major==4 && ((agt.indexOf("msie 5.0")!=-1) || (agt.indexOf("msie 5.5")!=-1)) );

	this.slowbrowser = (this.mac && this.ie5)
	this.supported = ( (this.mac && this.ie5) || (!this.mac && this.ie && this.major >= 4) || (this.ns && this.minor >= 4.7) );
	
}
var is  = new browsercheck();

var docObj          	= '';
if (is.ie)	docObj		= 'document.all.';
else	docObj          = (is.ns6)? 'document.getElementById(' : 'document.';

var styleObj        	= '';
if (is.ie)	styleObj	= '.style';
else	styleObj        = (is.ns6)? ').style' : '';

var divWidth        	= '';
if (is.ie)	divWidth	= (is.ie4)? '.style.pixelWidth' : '.clientWidth';
else	divWidth        = (is.ns6)? '.offsetWidth' : '.clip.width';
var dynWidth			= (is.ie4)? '.scrollWidth' : divWidth;

var divHeight       	= '';
if (is.ie)	divHeight	= (is.ie4)? '.style.pixelHeight' : '.clientHeight';
else	divHeight       = (is.ns6)? '.offsetHeight' : '.clip.height';
var dynHeight			= (is.ie4)? '.scrollHeight' : divHeight;


var innerObj        	= '';
if (is.ie)	innerObj	= '.';
else	innerObj 		= (is.ns6)? ').' : '.document.';

var divObj				= (is.ns6)? ')' : '';
var q                   = (is.ns6)?     '"' : '';

var visible             = (is.ns4)? '"show"' : 'visible';
var hidden              = (is.ns4)? '"hide"' : 'hidden';
var windowWidth         = (is.ns)? eval(self.innerWidth) : 'document.body.clientWidth';
var windowHeight    	= (is.ns)? eval(self.innerHeight) : 'document.body.clientHeight';
var layerLeft           = (is.ns)? '.left' : '.pixelLeft';
var layerTop            = (is.ns)? '.top' : '.pixelTop';

var absLayerLeft 		= (is.ns4)? '.pageX' : '.offsetLeft';
var absLayerTop         = (is.ns4)? '.pageY' : '.offsetTop';
