	var client = new IdentifyClient();
	

	// Check client browser & platform specifics
	function IdentifyClient() {
		this.agent = navigator.userAgent.toLowerCase();
		this.name = navigator.appName.toLowerCase();
		this.version = parseFloat(navigator.appVersion.slice(0, navigator.appVersion.indexOf(' ')));
		
		this.ie = (this.name.indexOf('microsoft internet explorer') >= 0);
		this.ns = (this.name.indexOf('netscape') >= 0);
		this.mac = (this.name.indexOf('mac') >= 0);
		this.dom = (document.getElementById);
		
		if (this.agent.indexOf('msie') >= 0) { this.version = parseFloat(this.agent.slice(this.agent.indexOf('msie') + 5, this.agent.indexOf(';', this.agent.indexOf('msie') + 5))); }
		
		return this;
	}



	// Launch pop-up window
	// Requires:	IdentifyClient
	function LaunchWindow( psWindowURL, psWindowName, piWidth, piHeight, pbResizable, pbScrollbars, pbMenubar, pbToolbar, pbLocation, pbStatus ) {
		if (client.mac) {
			if (client.ie && client.version >= 4 && client.version < 5) piHeight = parseInt(piHeight + 17);
		}
		var windowAttribs = 'width=' + piWidth + ',height=' + piHeight + ',resizable=' + Number(pbResizable) + ',scrollbars=' + Number(pbScrollbars) + ',menubar=' + Number(pbMenubar) + ',toolbar=' + Number(pbToolbar) + ',location=' + Number(pbLocation) + ',status=' + Number(pbStatus);
		var win = window.open(psWindowURL, psWindowName, windowAttribs);
		if (win != null) {
			if (win.opener == null) win.opener = self;
		}
		win.focus();
		
		return win;
	}


	// Loads image into object variable
	// Requires:	IdentifyClient
	function LoadImage( psVariableName, psImageURL ) {
		if (client.dom) {
			var img = document.createElement("img");
			img.src = psImageURL;
			img.id = psVariableName;
			img.style.visibility = 'hidden';
			img.style.position = 'absolute';
			img.style.top = 0;
			document.body.appendChild(img);
		} else {
			eval('var ' + psVariableName + ' = new Image()');
			eval(psVariableName + '.src = "' + psImageURL + '"');
		}
	}


	// Changes the image source
	// Requires:	IdentifyClient
	function ChangeImage( psImageRef, psImageVariable ) {
		var loImg = (client.dom) ? document.getElementById(psImageRef) : document.images[psImageRef];
		if (client.dom) {
			var loImageElement = document.getElementById(psImageVariable);
			if (loImg && loImageElement) loImg.setAttribute("src", loImageElement.getAttribute("src"));
		} else { loImg.src = eval(psImageVariable + ".src"); }
	}


