	var rimPath = null;
	var rjsPath = null;
	var rPath2Root = null;

	// Initialization function
	//
	function InitRelCode() {
		var iImg;
		var jImg;
		var tObj;

		if(!document.layers) {
			iImg = document.images['DMBImgFiles'];
			jImg = document.images['DMBJSCode'];
			tObj = jImg;
		} else {
			tObj = document.layers['DMBRI'];
			if(tObj) {
				iImg = tObj.document.images['DMBImgFiles'];
				jImg = tObj.document.images['DMBJSCode'];
			}
		}
		if(!tObj) {
			window.setTimeout("InitRelCode()", 1500);
			return false;
		}

		rimPath = _gp(iImg.src);
		rjsPath = _gp(jImg.src);
		rPath2Root = rjsPath + "../";

		return true;
	}

	// Function to replace all occurences of %%REP%% with the rPath2Root variable (set up above), 	and relace all occurences of \ with /.
	//
	function _purl(u) {
		return xrep(xrep(u, "%%REP%%", rPath2Root), "\\", "/");
	}

		// Function to replace %%REL%% in the passed parameter with the correct path
	//
	function _fip(img) {

		if(img.src.indexOf("%%REL%%")!=-1)
			img.src = rimPath + img.src.split("%%REL%%")[1];
		return img.src;
	}

	// Function to get the directory address from the path of a filename
	//
	function _gp(p) {
		return p.substr(0,p.lastIndexOf("/")+1);
	}

	// Function to replace occurrences of %%REL%% with a UNIX path
	//
	function FixImages() {
		var h = null;

		if(typeof(hStyle)!="undefined") h = hStyle;
		if(typeof(hS)!="undefined") h = hS;
		if(h)
			for(var i=0; i<h.length; i++)
				h[i] = xrep(h[i], "%%REL%%", rimPath);
	}

	// Function to replace all occurrences of f in s with n
	//
	function xrep(s, f, n) {
		return s.split(f).join(n);
	}

	InitRelCode();

	// Load menu system for appropriate browsers
	function LoadMenus() {
		if(!rjsPath){window.setTimeout("LoadMenus()", 10);
			return false;
		}
		var navVer = navigator.appVersion;
	}
LoadMenus();