	var net = new Object ();
	net.RSU=0;
	net.RSLI=1;
	net.RSLO=2;
	net.RSI=3;
	net.RSC=4;
	
	net.ContentLoader = function (url, display_location, s_timeout) {

		this.display_location = display_location;	
		this.url = url;
		this.mTimer = null;
		this.s_timeout = s_timeout;
		this.req = null;
		this.onload = this.default_onload;
		this.onerror = this.defaultError;
		this.onwait = this.defaultWait;
		this.onremove = this.defaultRemove;
		this.loadDoc (url);

	}
	
	net.ContentLoader.prototype = {
		loadDoc:function (url) {
			if (window.XMLHttpRequest) {
				this.req = new XMLHttpRequest ();
			} else if (window.ActiveXObject) {
				//added by shaun
				try {
					this.req = new ActiveXObject("MSXML2.XMLHTTP");
				} catch (exception1) {
					this.req = new ActiveXObject ("Microsoft.XMLHTTP");
				}
			}
			if (this.req) {
				try {
					var loader = this;
					this.req.onreadystatechange = function () {
						loader.onReadyState.call (loader);
					}
					this.req.open ('GET', url, true);
					this.req.send (null);
				} catch (err) {
					this.onerror.call (this);
				}
			}
		}, 
		onReadyState: function () {
			
			var req = this.req;
			var ready = req.readyState;
			if (ready == net.RSC) {
				
				var httpStatus = req.status;
				if (httpStatus == 200 || httpStatus == 0) {
					this.onload.call (this);
				} else {
					this.onerror.call (this);
				}
			} else {
				this.onwait.call (this);
			}
		}, 
		defaultError:function () {
			this.display_location.innerHTML = this.req.responseText;
		},
		defaultWait:function () {
			this.display_location.innerHTML = "<center><object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='150' height='20' id='circlePreloaderAnim' align='middle'> <param name='allowScriptAccess' value='sameDomain' /> <param name='movie' value='../images/circlePreloaderAnim.swf' /> <param name='quality' value='high' /> <param name='bgcolor' value='#ffffff' /> <embed src='../images/circlePreloaderAnim.swf' quality='high' bgcolor='#ffffff' width='150' height='20' name='circlePreloaderAnim' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object></center>";
		},
		default_onload:function () {
			this.display_location.innerHTML = this.req.responseText;
			if (this.s_timeout) {
				this.start_timer.call(this);
			}
		},
		defaultRemove:function () {
			//alert ("IN");
			//clearInterval(this.mTimer);
			//this.display_location.innerHTML = "";
		},
		start_timer:function () {
			//this.mTimer = setTimeout (function() {this.defaultRemove.call(this)}, 1000);
		}
	}
