<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// JavaScript Document

hex.Window  = {
	 Version	: "1.2.1.0"
	,ID			: "Window"
	,Width		: null
	,Height		: null
	,ActualWidth 	: null
	,ActualHeight 	: null
	,FullWidth		: null
	,FullHeight		: null
	,blnIE		: null
	,Initialise	: function () {
		hex.Log.Add("Window","Initialising: ID = '[$" + this.ID + "$]', Version: [$" + this.Version + "$]");
		hex.Versions.Add(this.ID,this.Version)
		this.blnIE = (window.innerWidth &gt; 0) ? false : true
		this.Refresh()
		hex.WindowEvent.Add("resize",hex.Window.Refresh)
	}
	,GetWidth		: function (blnIngnoreContents) {
		if (blnIngnoreContents == null) {blnIngnoreContents = false}
		var intWinWidth = (this.blnIE) ? document.documentElement.clientWidth : window.innerWidth
		var intBodyWidth = (this.blnIE) ? document.body.scrollWidth : document.body.scrollWidth
		this.Width = (!blnIngnoreContents &amp;&amp; (intBodyWidth &gt; intWinWidth)) ? intBodyWidth : intWinWidth
		this.ActualWidth = intWinWidth
		this.FullWidth	 = intBodyWidth
		hex.Log.Add("Window","Getting Window Width: [$" + this.Width + "$]");
		return this.Width
	 }
	,GetHeight		: function (blnIngnoreContents) {
		if (blnIngnoreContents == null) {blnIngnoreContents = false}
		var intWinHeight = (this.blnIE) ? document.documentElement.clientHeight : window.innerHeight
		var intBodyHeight = (this.blnIE) ? document.documentElement.scrollHeight : document.body.scrollHeight
		this.Height = (!blnIngnoreContents &amp;&amp; (intBodyHeight &gt; intWinHeight)) ? intBodyHeight : intWinHeight
		this.ActualHeight = intWinHeight
		this.FullHeight	 = intBodyHeight
		hex.Log.Add("Window","Getting Window Height: [$" + this.Height + "$]");
		return this.Height
		
	}
	,ScreenCentreX	: function () {
		var intX = (this.blnIE) ? document.documentElement.clientWidth : window.innerWidth
		intX = intX/2 + ((document.documentElement) ?  document.documentElement.scrollLeft : document.body.scrollLeft)
		return intX
	}
	,ScreenCentreY	: function () {
		var intY = (this.blnIE) ? document.documentElement.clientHeight : window.innerHeight
		intY = intY/2 + ((document.documentElement) ?  document.documentElement.scrollTop : document.body.scrollTop)
		return intY
	}
	,ScreenCentre	: function (strDim) {
		return (strDim != null) ? ((strDim == "X") ? this.ScreenCentreX() : ((strDim == "Y") ? this.ScreenCentreY() : null)) : new Array(this.ScreenCentreX(),this.ScreenCentreY())
	}
	,Refresh		: function () {
		hex.Window.GetWidth()
		hex.Window.GetHeight()
	}
	
}


</pre></body></html>