function Pop(elementname, xpos, ypos, width, height, relative)
{
	if (document.layers)
	{	document.all = document.layers; }
	
	this.elementname = elementname;
	this.element = document.all[elementname];

	this.xpos = xpos || 0;
	this.ypos = ypos || 0;
	this.relative = relative;	
	this.visible = false;

	this.width = width || 100;
	this.height = height || 150;
}

Pop.prototype.showMe = Pop_showMe;
Pop.prototype.hideMe = Pop_hideMe;

function Pop_showMe()
{
	var htmlobj = this.element;
	
	if (is_nav4)
	{
		var i = this.xpos;
		
		if (this.relative)
		{	i = i + this.relative.x; }
		
		htmlobj.left = i;
		
		var i = this.ypos;
		
		if (this.relative)
		{	i = i + this.relative.y; }
		
		htmlobj.top = i;
	}
	else
	{
		var i = this.xpos;
		
		if (this.relative)
		{	i = i + ie4realLeft(this.relative); }
		
		if (is_nav5up)
		{	i = i + "px"; }
		
		htmlobj.style.left = i;
		
		var i = this.ypos;
		
		if (this.relative)
		{	i = i + ie4realTop(this.relative); }
		
		if (is_nav5up)
		{	i = i + "px"; }
		
		htmlobj.style.top = i;
		
		htmlobj.style.width = this.width;
	}
	
	if (is_nav4)
	{	htmlobj.visibility = "show"; }
	else
	{	htmlobj.style.visibility = "visible"; }

	this.visible = true;
}

function ie4realLeft(obj)
{
	var x = obj.offsetLeft;
	var e = obj.offsetParent;
	while (e != null)
	{
		x += e.offsetLeft;
		e = e.offsetParent;
	}
	
	return x;
}


function ie4realTop(obj)
{
	var y = obj.offsetTop;
	var e = obj.offsetParent;
	while (e != null)
	{
		y += e.offsetTop;
		e = e.offsetParent;
	}

	return y;
}

function Pop_hideMe()
{
	if (!this.visible)
	{	return; }

	var htmlobj = this.element;
	
	if (is_nav4)
	{	htmlobj.visibility = "hide"; }
	else
	{	htmlobj.style.visibility = "hidden"; }

	this.visible = false;
}
