var xPos = 0;
var theWidth = 511;
var maxWidth = 511;
theURL = 'none';

function layerWrite(what, text) 
{
 document.getElementById('memberScope').innerHTML = '';
 document.getElementById(what).innerHTML = text;
}

function uncoverIt()
{
 var blackLine = document.getElementById('blackLine');
 var theCover = document.getElementById('theCover');
 xPos = blackLine.offsetParent.offsetParent.offsetLeft + blackLine.offsetParent.offsetLeft;
 yPos = blackLine.offsetParent.offsetParent.offsetTop + blackLine.offsetParent.offsetTop;
 if (navigator.userAgent.indexOf('MSIE') != -1)
 {
  yPos += blackLine.offsetTop;
  if (navigator.platform.indexOf('Mac') != -1)
  {
   xPos += blackLine.offsetParent.offsetParent.offsetParent.offsetLeft;
   yPos += blackLine.offsetParent.offsetParent.offsetParent.offsetTop;
  }
 }

 xPos -= 511;
 theCover.style.left = xPos + 'px';
 theCover.style.width = '511px';
 theCover.style.top = yPos + 'px';
 theCover.style.visibility = 'visible';

 newHeight = document.getElementById('mainText').offsetHeight + 40;
 if (navigator.userAgent.indexOf('Firefox') != -1)
  newHeight += 20;

 if (newHeight < 450)
  newHeight = 450;

 theCover.style.height = newHeight + 'px';
 document.getElementById('mainText').style.visibility = 'visible';
 setTimeout('unmoveIt()', 100);
}

function unmoveIt()
{
 var theCover = document.getElementById('theCover');
 if (theWidth > 0)
 {
  addIt = Math.ceil(theWidth/15);
  xPos += addIt;
  theWidth -= addIt;
  theCover.style.width = theWidth + 'px';
  theCover.style.left = xPos + 'px';
  setTimeout('unmoveIt()', 10);
 } else {
  document.getElementById('blackLine').style.height = theCover.style.height;
  document.getElementById('blackLine').style.background = '#564e4c';
  theCover.style.visibility = 'hidden';
  convertLinks();
  if (navigator.userAgent.indexOf('Firefox') != -1)
  {
   document.getElementById('mainText').style.top = "1px";
   document.getElementById('mainText').style.top = "0px";
  }
 }
}

function getLink(what)
{
 theURL = what;
 var blackLine = document.getElementById('blackLine');
 var theCover = document.getElementById('theCover');
 xPos = blackLine.offsetParent.offsetParent.offsetLeft + blackLine.offsetParent.offsetLeft;
 yPos = blackLine.offsetParent.offsetParent.offsetTop + blackLine.offsetParent.offsetTop;
 if (navigator.userAgent.indexOf('MSIE') != -1)
 {
  yPos += blackLine.offsetTop;
  if (navigator.platform.indexOf('Mac') != -1)
  {
   xPos += blackLine.offsetParent.offsetParent.offsetParent.offsetLeft;
   yPos += blackLine.offsetParent.offsetParent.offsetParent.offsetTop;
  }
 }

 theCover.style.left = xPos + 'px';
 theCover.style.top = yPos + 'px';
 theCover.style.height = document.getElementById('blackLine').style.height;
 theCover.style.visibility = 'visible';
 moveIt();
}

function moveIt()
{
 if (theWidth < 511)
 {
  addIt = Math.ceil((maxWidth - theWidth)/10);
  xPos -= addIt;
  theWidth += addIt;
  document.getElementById('theCover').style.width = theWidth + 'px';
  document.getElementById('theCover').style.left = xPos + 'px';

  setTimeout('moveIt()', 20);
 } else {
  document.getElementById('theCover').innerHTML = '<form method="GET" action="' + theURL + '"><input type="hidden" name="" value=""></form>';
  document.forms[0].submit();
 }
}

function unloadIt()
{
 document.getElementById('theCover').style.visibility = 'hidden';
}

function convertLinks()
{
 for (i=0;i<document.links.length;i++)
   document.links[i].href = "javascript:getLink('" + document.links[i].href + "')";
}