// Do not change the indices of the arrays - links depend upon them!;
// The order does not matter;
var extSite = new Array;
var pc_Site = new Array;
var wb;
var nwb = 0;
var nsrvr = 0;
if (typeof alerts == "undefined") alerts = 0;
localroot = "File://C:/j/moffst/d/ibm/HTMLPRojects/Inputs/all_sites/";
localhost = "http://localhost/";

underCon = "moffattfamily.org.uk/htm/freeserve/seftonhall/underconstructionindex.htm";

extSite[0]  = "http://" + underCon + "                                         |../../" + underCon ;
extSite[1]  = "http://aa.purechocolate.org.uk                                  |http://www.andersen.com/                             |../../../putneyevan.church/andersen/andersen.htm                  |http://freespace.virgin.net/putneyevan.church/andersen/andersen.htm|http://www.arthurandersen.com/|http://www.awo.com/|http://www.qcenter.com/|http://www.corbisimages.com/|";
extSite[2]  = "http://de.purechocolate.org.uk                                  |http://www.arthurandersen.de/                              |../../../putneyevan.church/andersen/arthurandersen_de_modified.htm|http://freespace.virgin.net/putneyevan.church/andersen/arthurandersen_de_modified.htm|http://www.arthurandersen.de/|../../new/index_aa_de.htm|";
extSite[3]  = "http://purechocolate.org.uk                                     |../../../pure.chocolate/index.htm                    |http://www.purechocolate.org.uk";
extSite[4]  = "http://freespace.virgin.net/pure.chocolate/new/index.htm        |../../../pure.chocolate/new/index.htm                |";
extSite[5]  = "http://freespace.virgin.net/pure.chocolate/htm/pclmusic.htm     |../../../pure.chocolate/htm/pclmusic.htm             |";
extSite[51] = "http://www.moffattfamily.org.uk/htm/events/CDJL/Carolyn_and_DJ_files/acimusic.htm|../../../moffattfamily.org.uk/htm/events/CDJL/Carolyn_and_DJ_files/acimusic.htm|";
extSite[52] = "http://www.moffattfamily.org.uk/htm/events/ttf/TTF_files/acimusic.htm            |../../../moffattfamily.org.uk/htm/events/ttf/TTF_files/acimusic.htm            |";
extSite[53] = "http://www.moffattfamily.org.uk/htm/events/Carmen_und_Mario/dateien/music.htm    |../../../moffattfamily.org.uk/htm/events/Carmen_und_Mario/dateien/music.htm    |";
extSite[54] = "http://www.moffattfamily.org.uk/htm/events/S_D/S_D_files/acimusic.htm            |../../../moffattfamily.org.uk/htm/events/S_D/S_D_files/acimusic.htm            |";
extSite[55] = "http://freespace.virgin.net/moffatt.family/home/fammus.htm                       |../../../moffatt.family/home/fammus.htm                                        |";
extSite[56] = "http://www.moffattfamily.org.uk/htm/netscape/index2.htm                          |../../../moffattfamily.org.uk/htm/netscape/index2.htm                          |";
extSite[57]  = "http://freespace.virgin.net/pure.chocolate/music_other/pecmus.htm               |../../../pure.chocolate/music_other/pecmus.htm                                |";

extSite[6]  = "http://www.usdoj.gov/opa/pr/2001/July/345ag.htm                 |../../../putneyevan.church/andersen/DOJ.htm          |http://freespace.virgin.net/putneyevan.church/andersen/DOJ.htm     ";
extSite[7]  = "http://news.bbc.co.uk/                                          |http://news.bbc.co.uk/1/hi/business/4596949.stm      |../../../putneyevan.church/bbc/index.htm                 |http://freespace.virgin.net/putneyevan.church/bbc/index.htm";
extSite[8]  = "http://themoffatts.org.uk                                       |../../../moffatt.family/index.htm                    |../../../moffatt.family/home/index.htm                   |http://freespace.virgin.net/moffatt.family/index.htm ";
extSite[9]  = "http://www.clsg.demon.co.uk                                     |";
extSite[10] = "http://www.hebrondowlais.org.uk/                                |../../thechurch.htm";
extSite[101]= "http://freespace.virgin.net/moffatt.family/stuartmoffatt/HomePage.htm   |../../../moffatt.family/stuartmoffatt/HomePage.htm   |";
extSite[102]= "http://freespace.virgin.net/moffatt.family/christinemoffatt/HomePage.htm|../../../moffatt.family/christinemoffatt/HomePage.htm|";
extSite[103]= "http://freespace.virgin.net/moffatt.family/johnpmoffatt/homepage.htm    |../../../moffatt.family/johnpmoffatt/homepage.htm    |http://www.geocities.com/miszt009/index.html|http://soundcloud.com/5meo ";
extSite[104]= "http://freespace.virgin.net/moffatt.family/katiemoffatt/yippeeektmoffmoff.htm|../../../moffatt.family/katiemoffatt/yippeeektmoffmoff.htm|";
extSite[105]= "http://www.moffattfamily.org.uk/htm/events/theparty/dchocolate.htm      |../../../moffattfamily.org.uk/htm/events/theparty/dchocolate.htm|";
extSite[106]= "http://www.moffattfamily.org.uk/htm/chocolate/gmx/blue_pc.htm           |../../../moffattfamily.org.uk/htm/chocolate/gmx/blue_pc.htm|";
extSite[107]= "http://acklamhall.org                                                   |http://www.moffattfamily.org.uk/htm/events/ahgs/ahgs.htm                               |../../../moffattfamily.org.uk/htm/events/ahgs/ahgs.htm|";

extSite[12] = "http://www.ewma.org/                                            |http://www.legulcerforum.org/   |http://www.lymphoedema.org/bls/|http://www.lymphoedema.org/lsn/default.htm  |http://www.wandsworth-pct.nhs.uk/";
extSite[13] = "http://www.ic.ac.uk/                                            |http://homepages.ic4life.net/users/stuart.moffatt/   |http://www.lon.ac.uk/                   |http://www.hhnt.org/  |http://www.goldsmiths.ac.uk/|http://www.stgeorges.nhs.uk/|http://www.hhnt.org/about/charing_profile.htm";
extSite[14] = "http://www.lympho.org                                           |http://www.lymphontario.ca/                          |http://2011-ilf-conference.ettend.com?119";
extSite[15] = "http://abacus.purechocolate.org.uk/                             |http://www.abacus.deloitte.co.uk/                    |http://thomsonreuters.com/products_services/taxacct/united_kingdom/abacus_enterprise/|";
extSite[16] = "http://www.guysandstthomas.nhs.uk/services/therapies/physio.aspx|";
extSite[17] = "http://news.bbc.co.uk/1/hi/talking_point/3684041.stm            |../../../putneyevan.church/bbc/eurovision.htm        |http://freespace.virgin.net/putneyevan.church/bbc/eurovision.htm   ";
extSite[18] = "http://www.ntworthy.com                                         |http://nwc-scriptorium.org/class4.html#Moffatt";
extSite[19] = "http://www.seftonhall.org.uk                                    |http://seftonhall.org.uk                             |http://zpt.org.uk         |../../../zpt.org.uk/index.htm|http://freespace.virgin.net/putneyevan.church/library/gallery.htm |../../../putneyevan.church/library/gallery2.htm|../../../putneyevan.church/library/gallery.htm|";
extSite[20] = "http://www.tvu.ac.uk/                                           |http://www.Wolfson.tvu.ac.uk/";
extSite[21] = "http://en.wikipedia.org/wiki/Christine_Moffatt                  |http://de.wikipedia.org/wiki/Die_Gedanken_sind_frei  |";
extSite[22] = "http://cricp.org.uk/index.htm                                   |http://www.cricp.org.uk/index.htm                    |../../../cricp.org.uk/index.htm                                                      |";
extSite[23] = "http://get.adobe.com/flashplayer/                               |http://www.adobe.de/products/acrobat/readermain.html |http://www.adobe.com/";
extSite[24] = "http://homepages.wmich.edu/~k0kavana/specialwords.html          |../../putneyevan.church/wmichkkavana/specialwords.htm|http://freespace.virgin.net/putneyevan.church/wmichkkavana/specialwords.html|http://www.stumbleupon.com/url/homepages.wmich.edu/~k0kavana/specialwords.html|http://www.stumbleupon.com/stumbler/johnshaven/review/26874842/|";
extSite[241] = "http://dla.library.upenn.edu/dla/archives/search.html?q=muybridge%20animal%20locomotion,%20plate&rows=25";
extSite[25] = "http://www.farese.com/rbcd/rbcd.htm                             |";
extSite[26] = "http://ingeb.org/refer/diegedan.MP3                             |http://ingeb.org/Lieder/diegedan.html                |";
extSite[27] = "http://free.acklamhall.org.uk                                   |http://www.freeparking.co.uk                         |";
extSite[28] = "http://www.prbc.org/                                            |http://www.putneyevangelicalchurch.org.uk            |http://www.hebrondowlais.org.uk/                                |";
extSite[29] = "http://service.gmx.net/de/cgi/login?AREA=3&amp;sid              |";
extSite[30] = "http://www.google.com/pacman/                                   |";
extSite[31] = "http://www.alumni.net/                                          |";
extSite[32] = "http://www.deloitte.com/                                        |http://deloitte2.purechocolate.org.uk                |http://deloitte.purechocolate.org.uk|";
extSite[33] = "http://www.de.ey.com                                            |http://www.ey.com/global/content.nsf/Germany/Dienstleistungen_-_Home|http://www.jobportal.de.ey.com|http://www.de.ey.com/Karriere|http://www.ey.com/global/content.nsf/Germany/Branchen|https://eyglobal.alumniprogram.com/jsp/Front/login_de_aa.jsp|";
extSite[33] = "http://www.tesco.com                                            |";
extSite[34] = "http://zpt.org.uk                                               |../../../zpt.org.uk/index.htm";
// Used to here


temploc = location.toString();
if (temploc.indexOf("file:") > -1  )
{
  htmrt = location;
  nwb = 1;
// Chrome and Firefox get into here;
}
else
{
  htmrt = top.location;
}

function extLink(i,j,k)
{
  htmroot_toString = location.href.toString();
  if ( htmroot_toString.indexOf("file:") > -1 || htmroot_toString.indexOf("localhost") > -1  ) nwb = 1;
  if ( htmroot_toString.indexOf("file:") > -1 ) nsrvr = 1;
  // i extSite array item - never zero;
  // j external site;
  // k 'local' copy of the external site or to the underconstruction page;
  // extLink(i,j,0) goes to the j or to the underconstruction page;
  // extLink(i,j,k) goes to the j or to k (a local copy of j);
  // extLink(i,1,0) goes to 1 on the web and underconstruction off;
  // extLink(i,1,2) goes to 1 on the web and 2 off;
  // extLink(i,2,2) always goes to 2;
  extRef = extSite[i].split("|");
  location_href = (nwb? (( nsrvr?  localroot: localhost ) + (k? extRef[k]: underCon)): (j? extRef[j]:extRef[j]) );
  imgWindow = window.open(location_href);
}
