var dscdata = Array();
function keepPop() {
  xVisibility("popdescriptionid", true);
}
function popLayer(id){
 titledata = xGetElementById(id).title;
 if ( titledata ) {
  dscdata[id] = titledata;
	xGetElementById(id).title = '';
 }
 html = dscdata[id];
 if ( !html ) {
  html = xGetElementById(id).innerHTML;
 }
 html = html.replace(/&amp;/g,"&");
 html = html.replace(/&quot;/g,"\"");
 html = html.replace(/&#039;/g,"'");
 html = html.replace(/&lt;/g,"<");
 html = html.replace(/&gt;/g,">");
 xGetElementById("popdescriptionid").innerHTML = html;
 id = id.replace(/dsc/, "item_a");
 // calculate horizontal position
 var xposition;
 if ( xPageX(id)+xWidth(id)+xWidth("popdescriptionid") > xClientWidth()+xScrollLeft() && xPageX(id)-xWidth("popdescriptionid") > xScrollLeft() ) {
  xposition = xPageX(id)-xWidth("popdescriptionid")+5;
 } else {
  xposition = xPageX(id)+xWidth(id)-5;
 }
 // calculate vertical position
 var yposition;
 if ( xPageY(id)+xHeight("popdescriptionid") > xClientHeight()+xScrollTop() && xPageY(id)+xHeight(id)-xHeight("popdescriptionid") > xScrollTop() ) {
  yposition = xPageY(id)+xHeight(id)-xHeight("popdescriptionid")+5;
 } else {
  yposition = xPageY(id)-5;
 }
 xLeft("popdescriptionid", xposition);
 xTop("popdescriptionid", yposition);
 xVisibility("popdescriptionid", true);
}
function hideLayer(){
 xVisibility("popdescriptionid", false);
}
