function lp_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;
  }
}

function lp_DOMWindowGetXScroll() {
  if (document.all)            return document.body.scrollLeft;
  else if (document.getElementById)  return window.pageXOffset;
}

function lp_DOMElementSetLeftPos(o,val) {
  if (document.getElementById) o.style.left = val;
  else if (document.all)       o.style.left = val;
}

function lp_DOMWindowGetInnerWidth() {
  if (document.all)           return document.body.clientWidth;
  else if (document.getElementById)   return window.innerWidth;
}

function lp_DOMElementGetWidth(o) {
  if (document.all)                 return o.obj.clientWidth;
  else if (document.getElementById) return parseInt(o.obj.offsetWidth);
}

function popOffset() {
  var o = new lp_getObj('popcallout');
  if (o) {
    lp_DOMElementSetLeftPos(o, lp_DOMWindowGetXScroll() + lp_DOMWindowGetInnerWidth() - lp_DOMElementGetWidth(o) - 20);
    setTimeout('popOffset()',10);
  }
}