function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function showP(p,el)
{
    //var attimg=new getObj('attimg');
    p.style.top=findPosY(el);
    p.style.left=findPosX(el)+el.width;
    //att.style.top = .style.top;
    //att.style.left = attimg.style.left;
    p.style.display = 'inline';
}

function hideP(p)
{
    p.style.display = 'none';
}

function virtualtour(page)
{
    window.open(page,'tour', 'height=510,width=500,scrollbars=no,menubar=no,resizable=no,toolbar=no,location=no,status=no');
    return null;
}
