function CreateArray(n)
 {
 this.length = n;
 for (var i=1; i <= n; i++)
  {
  this[i] = new Section();
  }
 return this;
 }

function Section()
 {
 this.sURL = null;
 this.sName = null;
 this.sImage = null;
 this.nImageWidth = null;
 this.nImageHeight= null;
 this.nSectionId = null;
 this.pChild = null;
 }
 
function SwapImage(sName, sAltImage)
 {
 var nCount = 0;
 document.aSource = new Array;
 if (document[sName] != null)
  {
  document.aSource[nCount++] = document[sName];
  if(null == document[sName].sOldSrc)
   {
   document[sName].sOldSrc = document[sName].src;
   }
  document[sName].src = sAltImage;
  }
 }

function RestoreImage()
 {
 var nCount, aSource = document.aSource;
 if (aSource != null)
  {
  for(nCount=0; nCount < aSource.length; nCount++)
   {
   if ((aSource[nCount] != null) && (aSource[nCount].sOldSrc != null))
    {
    aSource[nCount].src = aSource[nCount].sOldSrc;
    }
   }
  }
 }

function PreloadImages()
 {
 if(document.images)
  {
  if(!document.Preloaded)
   {
   document.Preloaded = new Array();
   }
  var nCounter , nLen = document.Preloaded.length, saArguments = PreloadImages.arguments;
  for(nCounter = 0; nCounter < saArguments.length; nCounter++)
   {
   document.Preloaded[nLen] = new Image;
   document.Preloaded[nLen++].src = saArguments[nCounter];
   }
    }
 }
 
function ShowPopUp(sUrl, nWidth, nHeight)
   {  
 window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
 }
