// 00:45 25/09/2005 23:03 25/11/2004 
// add seizmichenge to fsdni see upfsdni recent view by date
//
// CALLED FROM:  jsgetest.htm, dicegejs.htm dglights.htm
//
// CONTENTS:
//   function bannerDG()
//   function bannerSC() 
//   function dicewindow() 28oct2000
//   function dw(s)
//   function frameCheck(v){ 
//   function getCookieVal(offset) (internal)
//   function getCookie(name) 
//   function gwinfra()
//   function message(m) 
//   function oxoframe()
//   function swinfra()
//   function tailDG()
//   function tailerDG()
//   function tailerSC()
//   function tailSC()
//   function 
//
// VARIABLES:
//   jsgeorgeOK  set to true at the end
//   diceOK read often
//   js11OK read???
///// from 0jsgemov.js 19:36 06/12/01 ////
// begin jsgeorge.js dicegeorge.com(c)2001
// 
// alert('jsgeorge.js - testing') 
// ERROR imlist is not defined
zf=true // debug flag on
// 
zf=false // debug flag off
sh='sh .. ' //string of hrefs????

// local?
if (document.location.protocol=='file:') local=true; else local=false
// local=true // PATCH LOCAL FOR TESTING// local=false // PATCH LOCAL FOR TESTING



if (zf) alert('local= '+local)
// local path ??
localpath='../' // here at gstulip
localpath='../' // here at phreak1st/phreak/psb/
//hrfsdni is used in several webpages
hrfsdni=localpath+'fsdn/fsdni/'
if (!local)  hrfsdni= 'http://www.dicenews.freeserve.co.uk/fsdni/'


// alert('below alters ramgen stuff if local...')

for(var i=0; i<document.links.length; i++){
  dlih=document.links[i].href
  // dstr+= '<li>'+dlih
  if (dlih.indexOf('http://www2.phreak.co.uk:8080/ramgen/stonehenge/')==0){
   dlihs=dlih.substring(48,document.links[i].href.length)
  //  dstr+=' '+dlihs
  document.links[i].href='../../mmedia/rmedia2/'+dlihs
  }

}

//  BEGIN functions

// BEGIN FUNCTION 
function dwb(s){
  if (zf) document.write('<br> '+s)
} // end dwb

/////////////


// BEGIN FUNCTION 
function imRecord(l,h,i){ // define custom object constructor
  this.local=l
  this.http=h
  this.imgs=i
} // end imRecord


// BEGIN FUNCTION 
// function imListInit(){ // begin
  imList = new Array

  k=0

// FIRST 


  imList[k]=new imRecord
  imList[k].local=localpath+'phreak1st/phreak/'
  imList[k].http='http://www.phreak.co.uk/stonehenge/'

  imList[k].imgs=',ar-down.gif,ar-left.gif,ar-right.gif,ar-up.gif,'
  imList[k].imgs+= ',dicenews.gif,heathens.jpg,melon.gif,phreak.gif,s-smile.jpg,stonephr.jpg,sv-flyer.gif,txt-scam.gif,'  //circmove.gif@wpb ok

// SECOND  fsdni 
 k+=1
  imList[k]=new imRecord
  imList[k].local=localpath+'fsdn/fsdni/'
  imList[k].http='http://www.dicenews.freeserve.co.uk/fsdni/'
  imList[k].imgs=',aleph.gif,alig320.jpg,alison-hands.gif,alison-hands.jpg,arrow_m-red.gif,ash-ggia-bus200007.jpg,ash-ggia-roof200007.jpg,'
  imList[k].imgs+= ',ar-down2.gif,ar-left2.gif,ar-righ2.gif,ar-up2.gif,'
  imList[k].imgs+= ',at-gs9.gif,at-here.gif,beanfi-2.gif,badge.gif,beanfi-3.gif,'
  imList[k].imgs+= ',bgg2000exhibition.jpg,bgg2000exhib-tent.jpg,bgg2000fire.jpg,'
  imList[k].imgs+= ',bgg2000front.jpg,bgg2000-george-by-elsa1.gif,bgg2000-george-by-elsa1.jpg,bgg2000roof.jpg,'
  imList[k].imgs+= ',bigben-r.gif,bikejj99.gif,bikejj99.jpg,'
  imList[k].imgs+= ',birds.jpg,birds1.jpg,birds2.jpg,brian-ian-rotherhithe.jpg,brian-rotherhithe.jpg,bubg20031029b.jpg,bubtoys20031030.jpg,bugbear.gif,bugbears.gif,'
  imList[k].imgs+= ',cathstone.gif,chicleaf.gif,chrissydruid1999.jpg,cleargif.gif,ciavalon.gif,ciavalon.jpg,circlin1.gif,circlin2.gif,circlin3.gif,clives.gif,cranks.gif,'
  imList[k].imgs+= ',davidvickerspic.jpg,dglslibr.jpg,dglstofu.jpg,dicegeo2.gif,dicegeo9.gif,dicegeog.gif,dicegeor.gif,dicegeor.jpg,dicenew2.gif,dicenew9.gif,dicenews.gif,do-or-die.gif,donotpanic.jpg,dragonbug.gif,drumming.jpg,'
 imList[k].imgs+= ',ecl-anim.gif,ehlogo99.gif,ehpress20000511.gif,eveshamr.jpg,'
 imList[k].imgs+= ',fe2000front.jpg,fe2001cover.jpg,fe99fro2.jpg,fecovers.jpg,fehead98.gif,felight.jpg,fe-rain4.jpg,fishmouth.gif,flaxley2003begin.jpg,flaxley2003silver2.jpg,freefest95.gif,fulham-k.jpg,'
  imList[k].imgs+= ',g-at-bgg2000-by-luke.jpg,g-at-bgg2000-by-luke-thumb.jpg,g-cm20-3.gif,g-cm20-3.jpg,geocicon.gif,george200401hatfieldburner.jpg,g-johnp5.jpg,gary-truck.gif,geoc-fhp.gif,gk84kids.jpg,gk85wins.jpg,gk-engin.jpg,'
  imList[k].imgs+= ',gk-evewh.jpg,gk-jd-ba.jpg,gk-jd-fr.jpg,gkstg-h!.jpg,g-pilto.jpg,g-w-kenn.jpg,'
  imList[k].imgs+= ',gk-hele6.jpg,gk-hele7.jpg,g-sketch.gif,glastass.gif,glastone.gif,google-logo40wht.gif,grace1.gif,gradstock100.gif,gregsams-june2000.jpg,gsol2001.jpg,g-svlos.jpg,grouchomansmoke.gif,gs9map.gif,guinkill.gif,guinkill.jpg,guinrubb.jpg,'

  imList[k].imgs+= ',heathens.jpg,hengist.gif,here-txt.gif,hiho1viv.jpg,hiho2gwh.jpg,jeremysandford.jpg,jeremys-rokkering.jpg,jeremys-cathy.jpg,jestone.jpg,jj-rocks2000may.jpg,jj-rocks2000may-close.jpg,horse2.jpg,invocate.jpg,jayinsid.jpg,jayrinky.jpg,jaysits.jpg,jblain200206jng.jpg,'
  imList[k].imgs+= ',jeremyathousezoom400.jpg,jeremyteabreak400.jpg,jeremyplaying1-400.jpg,jeremyplaying2-600.jpg,jeremyplaying3-600.jpg,jeremyprocession600.jpg,jk2000with-flowers.jpg,jkfl00.jpg,jkfl01.jpg,jkfl02.jpg,jkfl03.jpg,jkgstromb.jpg,'


  imList[k].imgs+= ',jksunr06.jpg,jksunr08.jpg,jksunr09.jpg,jksunr10.jpg,jksunr11.jpg,jksunr12.jpg,'
  imList[k].imgs+= ',jksunr13.jpg,jksunr14.jpg,jksunr15.jpg,jksunr16.jpg,jksunr17.jpg,jksunr18.jpg,'
  imList[k].imgs+= ',jksunr19.jpg,jksunr20.jpg,jksunrise20010621.jpg,jksunrise20010621dark.jpg,'
  imList[k].imgs+= ',jksunr01.jpg,jksunr02.jpg,jksunr03.jpg,jksunr04.jpg,jksunr05.jpg,'
  imList[k].imgs+= ',johnpen6.jpg,'
  imList[k].imgs+= ',k-diff-broke-jan2001.jpg,k-doris.jpgk-halecombe-autumn2000boys.jpg,k-halecombe-dec2000snow.jpg,'
  imList[k].imgs+= ',k-marys.jpg,k-strack.jpg,k-westbu.jpg,kdwbrd99.jpg,kids2004hattersfive.jpg,klayby99.jpg,ksnow99l.gif,ksnow99l.jpg,ksnow99r.jpg,ksprings.jpg,'
  imList[k].imgs+= ',ksprings20011025a.jpg,ksprings20011025b.jpg,ksprings20011025c.jpg,ksprings20011025d.jpg,ksprings20011025e.jpg,'

  imList[k].imgs+= ',kstop99.jpg,kwindark.jpg,kwthames.jpg,'

  imList[k].imgs+= ',legohenge.jpg,lightsho.gif,lisp-c13.gif,lukebface.jpg,lukebhard.jpg,lukebrip.jpg,'
  imList[k].imgs+= ',moonshad.jpg,motorw-1.jpg,motorw-2.jpg,motorw22.jpg,motorw23.jpg,motorw25.jpg,'
  imList[k].imgs+= ',ok.gif,onlytime.gif,open.gif,osmaps.gif,osnunney.gif,osouthgb.gif,ostone1.gif,ostone2.gif,ostone3.gif,'
  imList[k].imgs+= ',parent.gif,patapat.jpg,p-dn127.gif,pipesine.gif,psquare-angel-sunch.jpg,psquare-left.jpg,psquare-right.jpg,question.gif,'
  imList[k].imgs+= ',raver.gif,rctipi.gif,richybondandmandyportobello.jpg,ringnext.jpg,ringsoho.jpg,robin-i.jpg,robin-k.jpg,rollo-phone.jpg,rollo-phone.gif,rory-millenium.jpg'

  imList[k].imgs+= ',romanas1.jpg,romanas2.jpg,romanas2.jpg,romanas3.jpg,romanas4.jpg,romanas5.jpg,romans-small.gif,run-in-2.jpg,'
  imList[k].imgs+= ',sc200009bird.jpg,sc200009southbank.jpg,sc200009westbank.jpg,sc33x150.jpg,scam-160.gif,schnews.gif,scn200312andyh.jpg,scna103banner.gif,sf76taps.jpg,sfl-fr01.gif,sfree82.gif,'
  imList[k].imgs+= ',sgm1999.gif,sgm2000.gif,sgm2000b.gif,sgm2000thu.gif,sgm2001.gif,'
  imList[k].imgs+= ',sgm2001banner.gif,sgm2001thu.gif,sgm2002.gif,sgm2002b.gif,sgm2003b.gif,sgm2003.gif,sgm97.gif,sgm99thu.gif,shepbabe.jpg,shepbush.jpg,'
  imList[k].imgs+= ',sgm2002b.gif,signpixie.gif,skipwilliamson-smashthestate.gif,smiral.gif,solsticecard.jpg,somewhere2001.gif,speace.gif,spiderstruck.jpg,sstage81.jpg,st9912jj.jpg,st9912zs.jpg,srlogo.gif,srnext.gif,sstage81.jpg,stevec-rainbow.gif,'
  imList[k].imgs+= ',stevec5.jpg,stoneban.gif,stonefl3.gif,stonefl4.gif,stoneflg.gif,stoneflp.gif,stonegeo.gif,stoneh2003guilfin.jpg,stonelizabeth.jpg,sunnyspiral.gif,sunnysuper.gif,'
    imList[k].imgs+= ',sunzoom.gif,sv-fltop.jpg,sv-flyer.gif,sv-folk.jpg,'
  imList[k].imgs+= 'sv-hands.gif,sv-insid.jpg,sv-jul00.gif,sv-pigg3.gif,sv-pigg4.jpg,sv-run4.gif,'
  imList[k].imgs+= ',svbmay11.gif,svbmay12.gif,'
  imList[k].imgs+= ',svbmay13.gif,svbmay14.gif,svbmay15.gif,svbmay16.gif,'
  imList[k].imgs+= ',svbmay26.gif,sveday-u.gif,'
  imList[k].imgs+= ',svlocol.gif,svloc11.gif,svlocol.jpg,svlou-sc.gif,svrunbac.jpg,svrunjpg.jpg,svu01fen.jpg,svu10whr.jpg,'
  imList[k].imgs+= ',svu11sun.jpg,svu12on2.jpg,svu16fl1.jpg,'

  imList[k].imgs+= ',sw2000avebury.jpg,sw2000batt.jpg,sw2000breakfast-kids.jpg,'
  imList[k].imgs+= ',sw2000breakfast-smiles.gif,sw2000breakfast-smiles.jpg,sw2000breakfast-trombone.jpg,'
  imList[k].imgs+= ',sw2000breakfast-tromboning.gif,sw2000breakfast-tromboning.jpg,sw2000buggy.jpg,'
  imList[k].imgs+= ',sw2000donkey.jpg,sw2000donnard.jpg,sw2000fence.jpg,sw2000ford.gif,'
  imList[k].imgs+= ',sw2000ford.jpg,sw2000george.jpg,sw2000helen.jpg,sw2000helicopter.jpg,'
  imList[k].imgs+= ',sw2000jes.jpg,sw2000pinky.jpg,sw2000redflag.jpg,sw2000redlion.jpg,'
  imList[k].imgs+= ',sw2000robbie.jpg,sw2000shanti.jpg,sw2000smug2.jpg,sw2000smugs.jpg,'
  imList[k].imgs+= ',sw2000sticks.jpg,sw2000sunch.jpg,sw2000tank.jpg,sw2000tents.jpg,'
  imList[k].imgs+= ',tash9812.jpg,tashlogo.gif,tlio.gif,toby-dawn4.jpg,'
  imList[k].imgs+= ',toby-dawnheelstone.jpg,toby-morrisdancers.jpg,top.gif,top9909.gif,top-geoc.gif,tribadelica.jpg,'
  imList[k].imgs+= ',trombwfr.jpg,trombwsi.jpg,tunnel.jpg,tvbanner.jpg,tvoices.gif,txt-here.gif,txt-at.gif,'
  imList[k].imgs+= ',universe.jpg,ve07half.gif,ve08half.gif,ve-dark-inside.gif,ve-dark-inside.jpg,'
  imList[k].imgs+= ',ve-star0.gif,vestone.jpg,vestone7.jpg,'
  imList[k].imgs+= ',vid-back.gif,wellshor.jpg,wellsktb.jpg,wellsktf.jpg,wellsrun.jpg,wellstop.jpg,'
  imList[k].imgs+= ',wesaltar200106-06w.jpg,,wesfly200106-44w.jpg,,weshands200106-08w.jpg,'
  imList[k].imgs+= ',,wesheel200106-28w.jpg,weshould200106-04.jpg,weshould640.jpg,weshould640background.jpg,wess2002c.jpg,wess2002d.jpg,'
  imList[k].imgs+= ',willy-walk-by-luke.jpg,winston-punk-1may2000.gif,winston-punk-1may2000.jpg,wint-sun.jpg,winterrizla.gif,'
  imList[k].imgs+= ',wpb.gif,wpb-dice.gif,wq-3boys.jpg,wq-5cops.jpg,w-qflag.jpg,'
  imList[k].imgs+= ',wq-boot.jpg,wq-deadw.gif,wq-hedge.jpg,wq-james.jpg,wq-maria.jpg,wq-snowf.jpg,'
  imList[k].imgs+= ',wq-snowk.jpg,wq-snowt.jpg,wqcastle.jpg,wqkgbrid.jpg,wqpulley.jpg,'
  imList[k].imgs+= ',ww-br-john.jpg,ww-br-poppy.jpg,ww-court.jpg,ww-nar-6.jpg,ww2000may.jpg,'
  imList[k].imgs+= ',wwrh-charlie.gif,wwrh-charlie.jpg,wwrh-from-inside.gif,'
  imList[k].imgs+= ',wwrh-from-inside.jpg,wwrh-linda.gif,wxspace.gif,'
  imList[k].imgs+= ',zonk-dog.jpg,zonkshop.jpg,zonksign.jpg,'





//  NOW fsdn/shaneve
k+=1
  imList[k]=new imRecord
  imList[k].local=localpath+'fsdn/shaneve/'  //???
  imList[k].http='http://www.dicenews.freeserve.co.uk/shaneve/'
  imList[k].imgs=',shaglast.jpg,shain198.jpg,'



//  NOW wpb /images
k+=1
  imList[k]=new imRecord
  imList[k].local=localpath+'wpb/images/'  //???
  imList[k].http='http://www.algroup.co.uk/wpb/images/'
  imList[k].imgs=',deromance.gif,flagmove.gif,'
  imList[k].imgs+= ',g-w-kennet.jpg,guilfins.gif,lisp9611.gif,'
  imList[k].imgs+= ',romans.gif,romans86.gif,smile.gif,squall.gif,stg-icon.gif,'
  imList[k].imgs+= ',stoneait.gif,stonewpb.gif,support.gif,wpb.gif,wpblogo1.gif,'


//  NOW wpb /stg
  k+=1
  imList[k]=new imRecord
  imList[k].local=localpath+'wpb/stg/'
  imList[k].http='http://www.algroup.co.uk/wpb/stg/'
  imList[k].imgs=',andyh-92.gif,beanfi-1.gif,beanfi-2.gif,beanfi-3.gif,'
  imList[k].imgs+= ',bulldoze.gif,circlin1.gif,circlin2.gif,circlin3.gif,circmove.gif,'
  imList[k].imgs+= ',conch.gif,dicegeor.gif,guilfin.gif,horsmove.gif,kingsway.gif,kiss.gif,'
  imList[k].imgs+= ',mc-solst.gif,news-ban.gif,polyta13.gif,sf76tipi.jpg,'
  imList[k].imgs+= ',stoneait.gif,stonecam.gif,stonekis.gif,stonewpb.gif,'
  imList[k].imgs+= ',svlocol.jpg,svlou-sc.gif,svrunjpg.jpg,tashlogo.gif,w-qflag.jpg,wpb-dice.gif,'
 // ignore svbmay*.gif 
  //missing sv-pigg3.gif  sv-pigg4.jpg


  k+=1
//  NOW phreak2/stonehenge ????
  imList[k]=new imRecord
  imList[k].local=localpath+'phreak1st/dn/stonehenge'
  imList[k].http='http://www.dicenews.com/stonehenge/'
  imList[k].imgs=',hengebus.gif,hengeinvite.gif,hengeufo.gif,romans-small.gif,'
  imList[k].imgs+= ',salisbury-rts1998.jpg,walk1999andcar.jpgwalk1999avebury.jpg,weshould640background.jpg,wxspace.gif,'

//  NOW tvgc/images wont work onlin e at yahoo 
  k+=1
  imList[k]=new imRecord
  imList[k].local=localpath+'tvgc/tvimages/'
  imList[k].http='http://www.geocities.com/tribalvoices/tvimages/'
  imList[k].imgs=',altered.gifdinner.gif,dinner.jpg,johnp-by-ajohnstone.jpg,'
  imList[k].imgs+= ',tvbanner.jpg,'

// also rbcpics?




//  NOW psb/run
  k+=1
  imList[k]=new imRecord
  imList[k].local=localpath+'psb/run/'  
  imList[k].http='http://www.phreak.co.uk/stonehenge/psb/run/'
  imList[k].imgs+= ',run-al01.jpg,run-al02.jpg,run-al03.jpg,run-al04.jpg,run-al05.jpg,run-al06.jpg,'
  imList[k].imgs+= ',run-al07.jpg,run-al08.jpg,run-al09.jpg,run-al10.jpg,'
  imList[k].imgs+= ',run-al11.jpg,run-al12.jpg,run-al13.jpg,run-al14.jpg,'
  imList[k].imgs+= ',run-al15.jpg,run-al16.jpg,run-al17.jpg,run-al18.jpg,run-al19.jpg,'
  imList[k].imgs+= ',run-al20.jpg,run-al21.jpg,run-al22.jpg,'



//   NOW TLIO
//  k+=1
//  imList[k]=new imRecord
//  imList[k].local=localpath+'tlio/stonehenge/'
//  imList[k].http='http://www.oneworld.org/tlio/stonehenge/xxx/'  // deleted february 2002ish
//  imList[k].imgs=',ar-down.gif,ar-left.gif,ar-right.gif,ar-up.gif,'
//  imList[k].imgs+= ',chrissy2.gif,circ2gif.gif,'
//  imList[k].imgs+= ',circ2jpg.jpg,circlin4.gif,circlin5.gif,'
//  imList[k].imgs+= ',clives.gif,dglslibr.jpg,dicegeor.gif,drumming.jpg,fulham-k.jpg,gk-evewh.jpg,goats-04.jpg,'
//  imList[k].imgs+= ',gs9guide.jpg,heathens.jpg,hengeft.gif,hiho1viv.jpg,hiho2gwh.jpg,'
//  imList[k].imgs+= ',horse2.jpg,invocate.jpg,k-strack.jpg,ksprings.jpg,'
//  imList[k].imgs+= ',motorw-1.jpg,motorw-2.jpg,motorw22.jpg,motorw23.jpg,motorw25.jpg,'
//  imList[k].imgs+= ',noframes.gif,parent-l.gif,patapat.jpg,'
//  imList[k].imgs+= ',romanas1.jpg,romanas2.jpg,romanas3.jpg,romanas4.jpg,romanas5.jpg,'
//  imList[k].imgs+= ',run-al01.jpg,run-al02.jpg,run-al03.jpg,run-al04.jpg,run-al05.jpg,run-al06.jpg,'
//  imList[k].imgs+= ',run-al07.jpg,run-al08.jpg,run-al09.jpg,run-al10.jpg,'
//  imList[k].imgs+= ',run-al11.jpg,run-al12.jpg,run-al13.jpg,run-al14.jpg,'
//  imList[k].imgs+= ',run-al15.jpg,run-al16.jpg,run-al17.jpg,run-al18.jpg,run-al19.jpg,'
//  imList[k].imgs+= ',run-al20.jpg,run-al21.jpg,run-al22.jpg,run-all.gif,run-in-2.jpg,run-in.gif,'
//  imList[k].imgs+= ',s-11-bot.gif,s-11-ea.jpg,s-11-nor.jpg,s-11-top.gif,sf76taps.jpg,'
//  imList[k].imgs+= ',shacamer.jpg,shacome1.jpg,shacome2.jpg,shacome3.jpg,shacome4.jpg,shacome5.jpg,shacome6.jpg,'
//  imList[k].imgs+= ',shadijfr.jpg,shaflagq.jpg,shafront.jpg,shaglast.jpg,shahele2.jpg,shahelen.jpg,'
//  imList[k].imgs+= ',shain180.jpg,shain190.jpg,shain198.gif,shain198.jpg,shain199.jpg,'
//  imList[k].imgs+= ',shain280.jpg,shain298.gif,shain298.jpg,shain380.jpg,shain480.jpg,shain5.jpg,shain580.jpg,'
//  imList[k].imgs+= ',shalhand.jpg,shamaya.jpg,shand01.jpg,shand02.jpg,shand03.jpg,shand04.jpg,shand1.jpg,'
//  imList[k].imgs+= ',shand2.jpg,shand3.jpg,shand4.jpg,shand5.jpg,shand6.jpg,'
//  imList[k].imgs+= ',shandys.jpg,shapaula.jpg,shaquoll.jpg,sharosie.jpg,shasun.jpg,shaweddi.jpg,'
//  imList[k].imgs+= ',shawhir2.jpg,shawhir3.jpg,shawhir4.jpg,shawhirl.jpg,'
//  imList[k].imgs+= ',shepbabe.jpg,shepbush.jpg,sherwood.gif,stoneait.gif,stoneban.gif,'
//  imList[k].imgs+= ',stonelio.gif,stonelio.jpg,stonemap.gif,stonewpb.gif,'
//  imList[k].imgs+= ',sunzoom.gif,sv-fltop.jpg,sv-flyer.gif,sv-folk.jpg,'
//  imList[k].imgs+= 'sv-hands.gif,sv-insid.jpg,sv-jul00.gif,sv-run4.gif,'
//  imList[k].imgs+= ',svbmay07.gif,svbmay08.gif,svbmay09.gif,svbmay10.gif,svbmay11.gif,svbmay12.gif,'
//  imList[k].imgs+= ',svbmay13.gif,svbmay14.gif,svbmay15.gif,svbmay16.gif,svbmay17.gif,svbmay18.gif,svbmay22.gif,'
//  imList[k].imgs+= ',svbmay26.gif,svbmay27.gif,svbmay28.gif,svbmay29.gif,svbmay78.gif,svbmay78.gif,sveday-u.gif,'
//  imList[k].imgs+= ',svloc11.gif,svlocol.jpg,svrunbac.jpg,svu01fen.jpg,svu10whr.jpg,'
//  imList[k].imgs+= ',svu11sun.jpg,svu12on2.jpg,svu16fl1.jpg,tashlogo.gif,top-l.gif,txt-scam.gif,'
//  imList[k].imgs+= ',universe.jpg,ve-star0.gif,vestone.jpg,vid-back.gif,wint-sun.jpg,wq-3boys.jpg,'
//  imList[k].imgs+= ',wq-5cops.jpg,wq-boot.jpg,wq-hedge.jpg,wq-james.jpg,wq-maria.jpg,wq-snowf.jpg,'
//  imList[k].imgs+= ',wq-snowk.jpg,wq-snowt.jpg,wqcastle.jpg,wqkgbrid.jpg,wqpulley.jpg,stoneflg.gif,' ///gggg



// } // end imListInit()
//imListInit() //new




// BEGIN FUNCTION 
function imListSearch(isrc){ // from 
  isrc=','+isrc+','
// @@@@   alert('@@@isrc= ['+isrc+']')
 //  alert('imList.length= '+imList.length)
  for (k=0;k<imList.length;k++){
  //  alert('imList[ '+k +'].imgs ' + imList[k].imgs)
    if (imList[k].imgs.indexOf(isrc)>=0){
    //@@@  alert('imlistsearch found k= '+k+' isrc= '+isrc)   
      return k
      }
  } // end for
return -1
} // end imListSearch()

  
// BEGIN FUNCTION 
function imgFind(iname){
  if (iname.substring(0,2)=='i/') iname=iname.substring(2,iname.length)
   //alert('imgFind[ '+iname)
   if (iname=='http'){
       // alert('http')
        return 'http'  // ignore it
      }
  r=imListSearch(iname) //  '''200201
   // 
//alert('r= '+r)
  if (r<0) {
    // alert('r<0 iname= '+iname)
    if (local) alert('imgFind not found: '+iname)    // @@@dec26
    return 'i/'+iname
  }
  if (local) return imList[r].local+iname
  return imList[r].http+iname
} //end imgFind()


///////////////

// BEGIN FUNCTION 
function imageSwap(im){ // from imageSwapAll()
  dwb('imageSwap ~ im.src=<br> '+im +im.src + '<br>name= '+im.name)
  //if (im.name.substring(0,2)=='@@') alert ('hurray @@ found in imageSwap()')
  // if (im.src.indexOf('cleargif.gif')<0) return // not cleargif.gif  //@@@jan2002
  if (im.name.substring(0,2)!='@@') return
  // alert('imgSwap() im,name= '+im.name) // translate it george
  ans= imgFind(im.name.substring(2,im.name.length)) // more here ggggg 
  // alert('imgFind= '+ans)
   if (ans=='http') return  // from http 
  im.src=ans 
} // end imageSwap()

// BEGIN FUNCTION 
function imageSwapAll(){ // from loadedMost()
  di=document.images
  dwb('di.length= '+di.length)
  for (dij=0; dij<di.length; dij++){
    imageSwap(di[dij])
  }
} // end imageSwapAll()


// hello@@@@

// BEGIN FUNCTION 
function loadedMost(){
  //  alert('loadedMost')
  imageSwapAll()
} // end loadedMost()


////////////
// now stuff from  testimjs.js
// end from  testimjs.js


// BEGIN FUNCTION 
function bannerDG(){  // use by  document.write(bannerDG())
                    // see gbanner.htm for original html code
gbs='<img src="'+hrfsdni+'gs9map.gif" ismap usemap="#gs9banmap" width=468 height=60 border=0 alt="DiceGeorge banner imagemap">'
gbs+= '<map name="gs9banmap">'
gbs0='<area shape="RECT" href="'
gbs+=gbs0+'dicegeor.htm"  coords="0,0,244,25">'
gbs+=gbs0+'dgflutes.htm"  coords="0,26,50,59">'
gbs+=gbs0+'stoneday.htm"  coords="51,26,139,44">'
gbs+=gbs0+'../"  coords="51,45,244,59">' <!--geocities-->
gbs+=gbs0+'scwalks.htm"  coords="140,26,170,45">'
gbs+=gbs0+'stonecam.htm"  coords="171,26,244,44">'
gbs+=gbs0+'stonegeo.htm"  coords="245,0,325,59" target="_top">'
gbs+=gbs0+'dglights.htm"  coords="326,0,394,44">'
gbs+=gbs0+'../"  coords="326,45,380,59">' <!--soho-->
gbs+=gbs0+'index.html"  coords="381,45,442,59" target="_top">'
gbs+=gbs0+'dicegeor.htm#copy"  coords="395,0,427,44">'
gbs+=gbs0+'dicenews.htm"  coords="428,0,467,24">'
gbs+=gbs0+'dicepubl.htm"  coords="428,25,467,37">'
gbs+=gbs0+'stoneweb.htm"  coords="428,38,467,59">'
gbs+=gbs0+'stoneweb.htm"  coords="446,40 ,467,89">'
//  default is last on list
gbs+= '</map>'
return gbs
} // end bannerDG()

// BEGIN FUNCTION 
function bannerSC(){  // use by  document.write(bannerSC())
                    // see scbanner.htm for original html code
sbs='<img border=3 src="'+hrfsdni+'stoneban.gif" ismap usemap="#scbanmap" width=468 height=90 alt="stonehenge banner imagemap" align=center>'
sbs0='<area shape="RECT" href="'
sbs+= '<!-- x1 y1 x2 y2 ??? these should all have alts -->'
sbs+= '<map name="scbanmap">'
sbs+=sbs0+'http://homepages.tcp.co.uk/~ait/stonehenge.html" coords="0,00,   54,53" alt="stonehenge2">'
sbs+=sbs0+'stonecam.htm"  coords="0,54, 49,89" alt="home">'
sbs+=sbs0+'scintro.htm"  coords="50,55 ,104,72" alt="introduction"> '
sbs+=sbs0+'stonews.htm"  coords="50,73 ,104,89" alt="newsletters"> '
sbs+=sbs0+'stonecam.htm"  coords="55,00 ,104,53" alt="home"> '
sbs+=sbs0+'http://homepages.tcp.co.uk/~ait/cal.html"  coords="105,55 ,169,72" alt="calendar"> '
sbs+=sbs0+'stoneday.htm#now"  coords="106,72 ,160,89" alt="datelist"> ' //now
sbs+=sbs0+'http://www.phreak.co.uk/stonehenge/psb/stonecam.htm"  coords="120,00   ,288,10" alt="home"> ' // url  
sbs+=sbs0+'stonefin.htm"  coords="170,55, 240,72" alt="findex"> ' // findex 
sbs+=sbs0+'http://homepages.tcp.co.uk/~ait/cont.html"  coords="170,75 ,240,89" alt="contacts"> ' //  cont 
sbs+=sbs0+'vedaygeo.htm"  coords="250,16 ,287,81" alt="veday">' //  veday  -->
sbs+=sbs0+'stonepic.htm"  coords="287,70 ,354,89" alt="pictures"> ' //  pics 
sbs+=sbs0+'http://www.dicenews.freeserve.co.uk/vedaylio.htm"  coords="289,00, 314,65" alt="veday@tlio"> ' //  was wpb  oct2000 changed
sbs+=sbs0+'dicenews.htm"  coords="320,0 ,373,60" alt="dicenews hotlinks"> ' // was tash  now dn
sbs+=sbs0+'stonevid.htm"  coords="355,62, 399,89" alt="videos"> ' //  vids
sbs+=sbs0+'stonecam.htm#form"  coords="400,0 ,459,15" alt="feedback form"> ' //  feedback
sbs+=sbs0+'http://www.phreak.co.uk/stonehenge/psb/dicegeor.htm#copyright"  coords="403,76 ,445,89" alt="&copy;dicegeorge"> ' // copy 
sbs+=sbs0+'stoneweb.htm"  coords="446,40 ,459,89" alt="bookmarks"> ' //  weblinks 
sbs+=sbs0+'http://www.dicenews.com"  coords="460,0 ,467,90" alt="dicenews hotlinks"> ' // 29oct2000

//  default is last on list
sbs+= '</map>'
return sbs
} // end bannerSC()




// BEGIN FUNCTION 
/// 28oct2000 from message
function dicewindow(t,m){ // 
   //    alert('message m=' + m)
   // line193 error in next line or two
    winVar=window.open("","dicewindow","width=500,height=300,scrollbars=yes,resizable=yes,status=yes,menubar=yes,location=yes");  
    winVar.document.open()
    var ws='<html><head><title> dicewindow:' + t+ ' </title><body>'
    ws+=m
    ws+= '</body></html>'
    winVar.document.write(ws)
    winVar.document.close()
} // end message()


// BEGIN FUNCTION 
 function dw(s){
    document.write(s)
}
//



// BEGIN FUNCTION 

function  frameCheck(v){ // from bottom of file - all text loaded
  // alert('framecheck')
  if (!diceOK) return

  if (top.frames.length==0) {
    var gcf = getCookie("diceframes")
    //if (zf) alert("gcf=" + gcf);
    if (gcf=="noframes") return;
  }

  if (top.frames.length==5) {
     // message('top.frames[4].name='+unescape(top.frames[4].name))
    if (top.frames[4].name=='hidden') return
     }

  if (zf) alert("now load frames...")
  if (diceOK && v=='g') {     gwinfra();     return
	  }
  if (diceOK && v=='s') {     swinfra();     return
	  }

if (zf) alert('v= '+v)

  if (confirm("Please click [OK] to load Dice George frames"))
      top.location.href="george.htm";
  else  document.cookie="diceframes=noframes"

  return
} //end frameCheck()






// BEGIN FUNCTION 
function getCookieVal(offset) { // internal :from getCookie()
  //alert('getCookieVal'+offset)
  var endstr=document.cookie.indexOf (";", offset);
  if (endstr == -1) endstr=document.cookie.length;
  return unescape(document.cookie.substring(offset,endstr));
}



// BEGIN FUNCTION 
function getCookie(name) {
  //  why does it start with a capital letter???
  // BUG this is not working in NN4.5 - always get clen=0
  // alert('getCookie')
  var arg=name+"=";
  var alen=arg.length;
  var clen=document.cookie.length;
  var i = 0;
  while (!(i>=clen)) {
    var j=i+alen;
    if (document.cookie.substring(i,j) == arg)
      return getCookieVal(j);
    i = document.cookie.indexOf(" ",i) + 1;
    if (i==0) break;
  }
  return null;
}
//



// BEGIN FUNCTION 
function gwinfra(){ // see also swinfra()
    winVar=window.open("","DiceGeorgeFrames","width=200,height=420");  // was width=220 but adverts}
    x=winVar.document.open()
    var gws='<html><head><title> frames? </title>'
    gws+= '<SCRIPT>'
    gws+= 'function gwinfraFrames(){window.opener.top.location="george.htm"; window.close()}'
    gws+= 'function gwinfraCancel(){window.close()}'
    gws+= 'function gwinfraNoframes() {  window.opener.document.cookie = "diceframes=noframes";'
    gws+= '  if (window.opener.top.location != window.opener.document.location)'
    gws+= '  {    window.opener.top.location="dicegeor.htm";  }  window.close() }'
    gws+= '</SCRIPT>'
    gws+= '<body bgcolor="#3bf049"> <div align=center>'
    gws+= '<img src="cleargif.gif" width=20 height=80 border=0><br>' // advert
    gws+= ' <table> <form>'
    gws+= '<tr><td align=center> [george] </td></tr>'
// deleted onMouseOver="document.status='george.htm'"   from below
    gws+= '<tr><td align=center><input type="button" onClick="gwinfraFrames()"  return=true; value="frames"> </td></tr>'
    gws+= '<tr><td align=center><input type="button" onClick="gwinfraNoframes()" value="no frames"></td></tr>'
    gws+= '<tr><td align=center> <a href="dicenews.htm" target="_blank"> DiceNews </a> </td></tr>'
    gws+= '<tr><td align=center> <input type="button"  '

 gws+= 'onClick="winVar2=window.open(\'oxo.htm\',\'OXO\',\'width=60,height=140\')"'

  gws+= 'value="OXO" return=true> </td></tr>'
    gws+= '</form> </table> </div> </body></html>'
    winVar.document.write(gws)
    winVar.document.close()
}



/// 28oct2000 fixed name of window - removed space
// BEGIN FUNCTION 
function message(m){ // 
   //    alert('message m=' + m)
   // line193 error in next line or two
    winVar=window.open("","dicemessage","width=300,height=200,scrollbars");  
    winVar.document.open()
    var ws='<html><head><title> message </title>'
    ws+= '<body bgcolor="ccffcc" text="330000" link="000066" vlink="660066" alink="cc0000">'
    ws+=m
    ws+= '</body></html>'
    winVar.document.write(ws)
    winVar.document.close()
} // end message()

// BEGIN FUNCTION 
function oxoframe(){
  ///  alert('oxo')
    winVar=window.open("oxo.htm","OXO","width=60,height=140");
}



// BEGIN FUNCTION 
 function swinfra(){ // see also gwinfra()
    winVar=window.open("","StonehengeFrames","width=400,height=220");  // was width=220 but adverts}
    winVar.document.open()
    var sws='<html><head><title> frames? </title>'
    sws+= '<SCRIPT>'
    sws+= 'function swinfraFrames(){window.opener.top.location="stonegeo.htm"; window.close()}'
    sws+= 'function swinfraCancel(){window.close()}'
    sws+= 'function swinfraNoframes() {window.opener.document.cookie = "diceframes=noframes";'
    sws+= '  if (window.opener.top.location != window.opener.document.location)'
    sws+= '  {    window.opener.top.location="stonecam.htm";  }  window.close() }'
    sws+= '</SCRIPT>'
    sws+= '<body bgcolor="#3bf049"> <div align=center> <table> <form>'
    sws+= '<tr><td align=center> [Stonehenge] </td></tr>'
// deleted onMouseOver="document.status='george.htm'"   from below
    sws+= '<tr><td align=center><input type="button" onClick="swinfraFrames()"  return=true; value="frames"> </td></tr>'
    sws+= '<tr><td align=center><input type="button" onClick="swinfraNoframes()" value="no frames"></td></tr>'
   sws+= '<tr><td align=center> <a href="vestone.htm" target="_blank"> VEday95</a> </td></tr>'
    sws+= '<tr><td align=center> <a href="dicenews.htm" target="_blank"> DiceNews </a> </td></tr>'
    sws+= '</form> </table> </div> </body></html>'
    winVar.document.write(sws)
    winVar.document.close()
}





// BEGIN FUNCTION 
 function tailDG(){
var tail='<center><b> DiceGeorge webpages @'
tail+= '<a href="http://www.phreak.co.uk/stonehenge/psb"'
tail+= 'target="_top"> http://www.phreak.co.uk/stonehenge/psb </a>'
tail+= 'Contents: </b>'
tail+= '<br>'
tail+= '<a href="dicegeor.htm"> diceGeorge </a>  ~ '
tail+= '<a href="george.htm" target=_blank> framed </a>  ~ '
tail+= '<a href="dglights.htm"> lightshow </a>  ~ '
tail+= '<a href="dgflutes.htm"> music </a>  ~ '
tail+= '<a href="rsqueaks.htm"> single </a>  ~ '
tail+= '<a href="dicetime.htm"> time </a>  ~ '
tail+= '<a href="dicepubl.htm"> published </a>  ~ '
tail+= '<a href="twazzock.htm"> twazzock </a>  ~ '
tail+= '<a href="stonecam.htm"> Stonehenge-Campaign </a>  ~ '
tail+= '<a href="stoneday.htm#now"> Datelist </a>  ~ '
tail+= '<a href="stoneweb.htm"> WebLinks </a>  ~  '
tail+= '<a href="dicenews.htm"> hotlinks </a> ~ '
tail+= '<a href="gsitemap.htm"> sitemap </a> '

tail+= '<br></center>'
return tail
}


// BEGIN FUNCTION 
 function tailerDG(){
var tail="<br clear=both><center>"
tail+=bannerDG()
tail+= '<br><a href="#"><img src="'+hrfsdni+'ar-up.gif"' 
// @@@ahref=# gives a new window in ssitemap.htm
tail+= ' alt="goto top" width=92 height=112 align=left>'
tail+= '<a href="dicegeor.htm"><img src="'+hrfsdni+'dicegeor.gif"'
tail+= ' alt="DiceGeorge home" width=112 height=132 align=right>'
tail+=tailDG()
tail+="<br clear=both></center>"
return tail
}


// BEGIN FUNCTION 
function tailerSC(){
tail='<center>'
tail+=bannerSC()
tail+= '<br>'
tail+= '<a href="#"><img border=3 src="'+hrfsdni+'ar-up.gif" align=right width=118 height=88 alt="goto top of this page"></a>'
tail+= '<a href="stonecam.htm"><img border=3 src="'+hrfsdni+'stoneflg.gif" align=left width=118 height=88 alt="Stonehenge Campaign homepage">'
tail+= ' Stonehenge Campaign </a>'
tail+= '<br> c/o 99 Torriano Av, <br> London NW5 2RX (UK)<br>'
tail+= '<a href="http://www.phreak.co.uk/stonehenge/psb/stonecam.htm">'
tail+= '<small>homepage = www.phreak.co.uk/stonehenge/psb/stonecam.htm </small></a><br>'
tail+= '<A HREF="gsearch.htm">Search</A>  ~  '
tail+= '<a href="stoneday.htm#now"> Datelist</a>  ~  '
tail+= '<a href="scintro.htm"> Intro </a>  ~  '
tail+= '<a href="stonews.htm"> Newsletters </a>  ~  '
tail+= '<a href="scosmaps.htm"> maps </A>  ~ '
tail+= '<a href="scemails.htm"> emails </a>  ~ <br>'
tail+= '<a href="scintro.htm#frames"> frames? </a>  ~  '
tail+= '<a href="stonepic.htm"> Pics </a>  ~  '
tail+= '<a href="stonepix.htm" target="banner"> slideshows </a>  ~  '

tail+= '<a href="stonevid.htm"> Vids </a>  ~  '
tail+= '<a href="vestone.htm" target="_blank"> <i> VE Day 95 </i> </a>  ~  '
tail+= '<a href="scwalks.htm"> Walks </a>  ~  '
tail+= '<a href="stonerds.htm"> Roads </a>  ~  '
tail+= '<a href="scdruids.htm"> Druids </a>  ~  '
tail+= '<a href="ssitemap.htm"> Ssitemaps </a>  ~  '
tail+= '<a href="stoneweb.htm"> Weblinks</a> . '
tail+= '<br>'
tail+= '<b> Websites: </b>'
tail+= '<a href="http://homepages.tcp.co.uk/~ait/stonehenge.html"> Stonehenge2 @ait </a>  ~ '
tail+= '<a href="http://homepages.tcp.co.uk/~ait/cal.html"> Calendar</a>  ~ '
tail+= '<a href="http://homepages.tcp.co.uk/~ait/cont.html"> Contacts</a>   ~ '
tail+= '<br>'
tail+= '<a href="http://www.phreak.co.uk/stonehenge/psb/stonegeo.htm" target="_top"> SC@geo</a>  ~ '
tail+= '<a href="http://www.algroup.co.uk/wpb/stonehen.htm" target="_top"> SC@wpb997</a>  ~ '
tail+= '<a href="http://www.gn.apc.org/tash/" target=_blank> Tash </a>  ~ '
tail+= '<a href="http://www.warband.org/" target=_blank> Arthurians </a>  ~ '
tail+= ' <a href="http://www.hippy.com/albion/"target=_blank> Elvis   </a>  ~ '
//line315
tail+= '<br>'
// alert('tail= '+tail)
tail+= '<a href="http://www.festivaleye.com" target=_blank> FestivalEye </a>   ~  '
tail+= '<a href="http://www.foe.co.uk/" target=_blank> FoE  </a>  ~  '
tail+= '<a href="http://www.guilfin.net" target=_blank> Guilfin</a>   ~  '
tail+= '<a href="http://www.oneworld.org/tlio/" target=_blank> LandIsOurs </a>  ~  '
tail+= '<a href="http://www.megalith.ukf.net/bigmap.htm" target=_blank> Megalith Map </a>  ~ '
tail+= '<a href="http://www.dicenews.com/hemp/" target=_blank> MrCannabis </a>   ~  '
tail+= '<a href="http://www.mutant-dance.org.uk/" target=_blank> MutantDance </a>  ~ '
tail+= '<a href="http://www.musiciansnetwork.org.uk" target=_blank> MusicN</a>?  ~  '

tail+= '<a href="http://www.gn.apc.org/rts/" target=_blank> RTS </a> ~ '
tail+= '<a href="http://www.schnews.org.uk/" target=_blank> SchNEWS</a>  ~  '
tail+= '<a href="http://www.squall.co.uk/" target=_blank> SQUALL</a>    ~  '
tail+= '<a href="http://www.geocities.com/tribalvoices/tvoices.htm" target=_blank> TribalVoices </a>  ~  '
tail+= '<a href="http://www.urban75.com/" target=_blank> Urban75 </a>  ~  '
tail+= '<a href="http://www.hardcorecarvers.co.uk/" target=_blank> Woodpecker </a>  ~  '
tail+= '<a href="dicenews.htm"> DiceNews hotlinks </a>  ~  '
tail+= '<br>'
tail+= '<a href="#" target="_parent"> Less.. </a>  ~  '
tail+= '<a href="stonegeo.htm" target="_top"> ..Frames </a>  ~  '
tail+= '<a href="gcontent.htm#sc" target="contents"> contents </a>  ~  '

tail+= '<a href="gsitemap.htm"> sitemap </a>  ~  '

tail+= '<a href="stonecam.htm#form"> Contact-us  </a>  ~  '
tail+= '<a href="gsearch.htm"> websearch </a>  ~  '
tail+= '<a href="http://www.phreak.co.uk/stonehenge/psb/dicegeor.htm"> DiceGeorge</a> . '
tail+= '<br></center>'
return tail
} // end tailerSC()

// BEGIN FUNCTION 
 function tailSC(){
return tailerSC()
} // end tailSC()




jsgeorgeOK=true 
// end jsgeorge.js

