// ------------------------------------------------------------------------------------- //// Vormo Library Definition// ------------------------------------------------------------------------------------- //// General Library object. This section defines an object so that we can//	a) Create a fake namesapce so that variables don't conflict with other scripts//	b) House properties and functions that will be general to a number of different classes//	c) Put in a shameless plug for me.//Defines the object in which we can collect all a bunch of properties and functions//that our universal to our library (which, at present consists in its entirety//of one tooltip class).VormoApp = function() {	//Detect Internet Explorer and/or Firefox	this.isMac = false;	this.isIE = false;	this.isIE7 = false;	this.isFirefox = false;	this.isOpera = false;	this.isSafari = false;	if (navigator.platform.indexOf("Mac")>-1) this.isMac = true;	if (navigator.appName.indexOf("Explorer")>-1 & navigator.userAgent.indexOf('Opera')==-1) this.isIE = true;	if (navigator.userAgent.indexOf("Firefox")>-1) this.isFirefox = true;	if (navigator.userAgent.indexOf('Opera')>-1) this.isOpera = true;	if (navigator.userAgent.indexOf("Safari")>-1) this.isSafari = true;	if (this.isIE) {		var tmp=navigator.appVersion.split("MSIE")		var browserVersion=parseFloat(tmp[1])		if (browserVersion>=7) {			//this.isIE = false;			this.isIE7 = true;		}	}        		var vormoapp = this;		//Functions for getting coordinates given a supplied event object	this.GetMouseX = function(e) {		if (!e) e = window.event; //If no event was passed (it's only passed for FireFox), then set it to the last window.event		var coord = -1;		if (vormoapp.isIE) { //Internet explorer			coord = event.clientX + document.body.scrollLeft;		} else { //Everything else			coord = e.pageX;		}		return coord;	}	this.GetMouseY = function(e) {		if (!e) e = window.event; //If no event was passed (it's only passed for FireFox), then set it to the last window.event		var coord = -1;		if (vormoapp.isIE) { //Internet explorer			coord = event.clientY + document.body.scrollTop;		} else { //Everything else			coord = e.pageY;		}		return coord;	}	this.GetRelativeMouseX = function(e) {		if (!e) e = window.event; //If no event was passed (it's only passed for FireFox), then set it to the last window.event		var coord = -1;		if (vormoapp.isIE) { //Internet explorer			coord = e.offsetX;		} else { //Everything else			coord = e.layerX;		}		return coord;	}	this.GetRelativeMouseY = function(e) {		if (!e) e = window.event; //If no event was passed (it's only passed for FireFox), then set it to the last window.event		var coord = -1;		if (vormoapp.isIE) { //Internet explorer			coord = e.offsetY;		} else { //Everything else			coord = e.layerY;		}		return coord;	}	this.PageHeight = function() {		var coord = -1;		if (vormoapp.isIE) { //Internet explorer			coord = document.body.offsetHeight + document.body.scrollTop;		} else { //Everything else			coord = document.body.offsetHeight;		}		return coord;	}	this.PageWidth = function() {		var coord = -1;		if (vormoapp.isIE) { //Internet explorer			coord = document.body.offsetWidth + document.body.scrollLeft;		} else { //Everything else			coord = document.body.offsetWidth;		}		return coord;	}	this.parseDateTime = function(str) {		var datePart = str.split(' ')[0];		var timePart = str.split(' ')[1];				var year = datePart.split('-')[0]*1;		var month = datePart.split('-')[1]*1-1;		var date = datePart.split('-')[2]*1;				var hour = timePart.split(':')[0]*1;		var minute = timePart.split(':')[1]*1;		var second = timePart.split(':')[2]*1;				var date = new Date(year, month, date, hour, minute, second)		return date;	}}VormoApp.prototype.integerizePos = function(str) {	var tmp = str;	if (str.indexOf("px") > -1) {		tmp = str.substring(0,str.indexOf("px"));	}	return tmp*1;};VormoApp.prototype.AttatchCSS = function(url) {	var cssLink = document.createElement('link');	cssLink.setAttribute('rel','stylesheet');	cssLink.setAttribute('type','text/css');	cssLink.setAttribute('href',url);	document.getElementsByTagName("head")[0].appendChild(cssLink);}VormoApp.prototype.setImageSrc = function(imgObj, strSrc, scale) {	imgObj.src = strSrc;	if (this.isIE && !this.isIE7 (strSrc.indexOf(".png") > -1)) {		var scaleStr = '';		if (scale) scaleStr = ", sizingMethod='scale'";		imgObj.src = 'images/dot_tran.gif';		imgObj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + strSrc + "'" + scaleStr + ");";	}};//Invoke the class above. All other classes will be subs of this object.var Vormo = new VormoApp();// ------------------------------------------------------------------------------------- //// END Vormo Library Definition// ------------------------------------------------------------------------------------- //// Set a nonsense trace function in case the Vormo.Debug is not activetrace = function() {	return;}