function LiquidPositioner() {
	//...
	this.xOffset = 0;
	this.yOffset = 0;
}

// for this function to work properly, there must be an image somewhere on the page with the correct name and id attributes. The name attribute is for netscape, unfortunately, and the id attribute is for everything else. so if you had an id attribute of 'myName', and a name attribute of 'nsmyName',  you'd pass in 'myName' as the first argument to setMenuPosition. 
// the second argument to menuPosition is the name of the menu you want to position to this image. Such as "menu4".
LiquidPositioner.prototype.setOffset = function(intX, intY) {
	this.xOffset = intX;
	this.yOffset = intY;
}

LiquidPositioner.prototype.setPosition = function(imgId, menuName) {
	var xPos=0;
	var yPos=0;
	var elem=null;

	if (objBrowser.ns4) {
		elem= eval(document.images["ns"+imgId]);
		xPos = elem.x;
		yPos = elem.y;
	}
	else {
		if (objBrowser.ie4 && objBrowser.mac) {	
			elem = document.all[imgId];		
		} 
		else if (objBrowser.ie4) {
			elem = imgId;
		}
		else {
			// Everything else, ie5 and up, ns6 and up, opera.
			elem = document.getElementById(imgId);
		}
		//add up offsets to get actual pixel location of default image
		while (elem.offsetParent != null) {
			xPos += elem.offsetLeft;
			yPos += elem.offsetTop;
			elem = elem.offsetParent;
		}
		xPos += elem.offsetLeft;
		yPos += elem.offsetTop;
		
		xPos += this.xOffset;
		yPos += this.yOffset;

	// uncomment this for Ie5 mac if the body margin is set to anything other than zero
		if ((objBrowser.mac)&&(objBrowser.ie5)) {
	//		xPos += 0;  // put leftmargin here
	//		yPos += 0;  // put topmargin here.
		}

		if (objBrowser.opera) {
			//xPos += 0;  // put leftmargin here
			//yPos += 10;  // put topmargin here.
		}

	
	}
	var menu1 = new LyrObj(menuName);
	var contentMenuName = menuName;
	var menu2 = new LyrObj(contentMenuName);
	
	// for menus that scroll UP, the menu has to start at the y position of :: the top of the 'dontremove' image, MINUS the height of the menu, therefore the following line applies. Uncomment the following if the menus all open downward, and vice versa
//	alert("placing object at : " + xPos + " x " + yPos);
	menu1.moveLayerTo(xPos, yPos);
	menu1.updateLayer();
}

//instantiate for global use
var objLiquidPositioner = new LiquidPositioner();
