var NS4 = (document.layers);
var IE4 = (document.all);

if (IE4)
 var objColl = "document.all";
else
 var objColl = "document.layers";

function sorry()
{
 alert("Sorry. The link you are requesting is still under construction.");
}

function getRefToDiv(divID) {
 if( document.layers ) { 
  return document.layers[divID]; }
 if( document.getElementById ) { 
  return document.getElementById(divID); }
 if( document.all ) {
  return document.all[divID]; }
 if( document[divID] ) { 
  return document[divID]; }
 return false;
}

function gpf_Click()
{
 var objSub;
 var obj = event.srcElement;
 if (obj.id.indexOf("main") == 0)
 {
  //var objSub = eval(objColl+".sub"+obj.id.substring(obj.id.length-1,obj.id.length));
  var objSub = getRefToDiv("sub"+obj.id.substring(obj.id.length-1,obj.id.length));
  if(objSub.style.display=="block")
   objSub.style.display="none";
  else 
  {
   objSub.style.left = event.x-50;
   objSub.style.top = event.y+10;
   objSub.style.display="block";
  }
  hideSubs(objSub);
 }
}

function hideSubs(obj)
{
 for (i=1; i <= 7; i++)
 {
  objTemp = getRefToDiv("sub"+i);
  if (objTemp != obj)
   objTemp.style.display="none";
 }
}


