// JavaScript Document

var popupLinkConfig = new Array;

// popupLinkConfig["classname"] = new Array ( "targetname", "width=550,height=350,scrollbars=yes,resizable=yes,status=yes,toolbar=yes,location=yes,menubar=yes");
popupLinkConfig["popup"]    = new Array ( "", "width=350,height=450,scrollbar=yes,menubar=yes");
popupLinkConfig["glossary"] = new Array ( "help", "width=550,height=350,resizable=yes");

popupLinkConfig["lookinside"] = new Array ( "", "width=860,height=510,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["lookinside730"] = new Array ( "", "width=730,height=510,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["spreads"] = new Array ( "", "width=650,height=520");
popupLinkConfig["spread650400"] = new Array ( "", "width=650,height=400,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650425"] = new Array ( "", "width=650,height=425,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650450"] = new Array ( "", "width=650,height=450,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650475"] = new Array ( "", "width=650,height=475,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650500"] = new Array ( "", "width=650,height=500,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650525"] = new Array ( "", "width=650,height=525,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650550"] = new Array ( "", "width=650,height=550,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650575"] = new Array ( "", "width=650,height=575,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread650600"] = new Array ( "", "width=650,height=600,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["spread425300"] = new Array ( "", "width=425,height=300,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["se_maps"] = new Array ( "", "width=470,height=340,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["se_mapsgghc"] = new Array ( "", "width=700,height=460,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["se_popvert"] = new Array ( "", "width=367,height=550,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["se_pophoriz"] = new Array ( "", "width=550,height=367,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["radio_mp3"] = new Array ( "", "width=350,height=100,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["pic_horiz"] = new Array ( "", "width=550,height=470,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["pic_vert"] = new Array ( "", "width=377,height=633,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["pic_horizsmall"] = new Array ( "", "width=220,height=270,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["pic_vertsmall"] = new Array ( "", "width=151,height=350,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["iss"] = new Array ( "", "width=320,height=240,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["motherearth"] = new Array ( "", "width=500,height=400,scrollbars=yes,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["motherearthgal"] = new Array ( "", "width=480,height=590,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["ham"] = new Array ( "", "width=721,height=295,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["childrens"] = new Array ( "", "width=450,height=470,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no");
popupLinkConfig["motherearth"] = new Array ( "", "width=618,height=600,scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no");
popupLinkConfig["sos_pop"] = new Array ( "", "width=450,height=300,scrollbars=no,resizable=yes,status=no,toolbar=no,menubar=no");

// ==========================================================================
window.onload = initPage;  
// Note: Make sure that no other javscripts assign a fuction to window.onload
// There can be only one function tied to window.onload at a time.

function initPage() {
  initPopupLinks();
  // place here any other code you wish to run when the page loads.
}

function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++) 
  {
    if (((pageLinks[i].className != null) && 
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) && 
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig) 
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].settings = popupLinkConfig[theKey][1];
          pageLinks[i].onclick = popUp;
        }
      }
    }
  }
  return true;
}

function popUp()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}

