// Check what type of browser is in use, need Netscape 3+ or IE 4+
// to allow dynamic images to work

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
dynImg = ((bName == "Netscape" && bVer >= 3) || (bName == "Microsoft Internet Explorer" && bVer >= 4));

function frameloader()

{
    if (parent.location.href==self.location.href) {
        reqPage = extract(self.location.href);
        //alert(reqPage)
        if (reqPage=='navigate') {reqPage='index';}  
//      window.location.href='index.htm?'+reqPage+'.htm';}
        window.location.href='index.htm?'+reqPage;
        }
}

function frameloader2()

{
    if (parent.location.href==self.location.href) {window.location.href='index.htm';}
    self.parent.frmCont936.location.reload(true)    
}

function frameloader3()

{
    if (parent.location.href==self.location.href) {
    reqPage = 'index.htm?'+extract(self.location.href)+'.htm';  
    alert(reqPage);
    window.location.href=reqPage;}
//    if (parent.location.href==self.location.href) {window.location.href='index.htm';}
}

function change(pagename)

{
    self.parent.frmCont936.location.href = pagename;
    self.parent.frmCont936.focus();
    window.status = arText;
}

function notNetscape(pagename)

{
    if (bName=="Netscape" && bVer <= 5) {alert("This facility is not available to Netscape users.");}
    else {change(pagename);}
}

function openWindow(picName, winDims, tbText) 

    {
       bigPic = window.open('','', winDims); bigPic.focus;
       bigPic.document.write('<html><head><title>'+tbText+'</title></head>')
       bigPic.document.write('<body><img src='+picName+'.jpg></body></html>')
    }

function openPopup(pageName, winDims) 

    {
       puWin = window.open('','', winDims); puWin.focus;
       puWin.location.href = pageName
    }

function setSBText()

{
    window.status = arText;
}

var loading = '<HTML><HEAD><LINK HREF="tuarwr.css" TITLE="carsite" REL="stylesheet" TYPE="text/css"></HEAD>'
    loading += '<BODY BGCOLOR="#FFFFCC"><P CLASS=INTRO2>Loading...</P></BODY></HTML>'

rnd.today=new Date();
rnd.seed=rnd.today.getTime();

// Date and time stuff /////////////

dayName = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday')
monName = new Array('January','February','March','April','May','June','July','August','September','October','November','December')

var today = new Date()
var year = today.getFullYear()
var mon = today.getMonth()
var day = today.getDate()
var dow = today.getDay()
var todayText = dayName[dow] +', ' + day + ' ' + monName[mon] + ' ' + year
var arText = todayText

/////////////////////////////////////

var email = "kadams"
var email2 = "bgunn"
var email3 = "dberridge"
var email4 = "ado61"
var email5 = "news"
var email6 = "raucock"

function copyright(coWriter) 

{
    pName = extract(self.parent.frmCont936.location.href)
    pRef = "(Ref: " + pName + ")"
    eventMon=8; eventYear=2004
    eNotice='';
    if (mon+1<eventMon&&year==eventYear) {
        switch (pName) {
	    case "s2nf": eDetail = "the team's Rover 216GTi"; break;
	    case "rovsd2f": eDetail = "the SD2 prototype"; break;
	    case "memberadams1f": eDetail = "Keith's SD1"; break;
            case "memberberridgef": eDetail = "Declan's Vanden Plas Princess 1100"; break;
	    case "memberdavis1f": eDetail = "Snapdragon"; break;
            case "memberjacobsf": eDetail = "David's Midget"; break;
            case "wiltspridgetf": eDetail = "David's MG Midget"; break;
	    case "memberjessettf": eDetail = "Richard's Tomcat Coupe"; break;
            case "cotm200406f": eDetail = "Ian's Mini Cooper RSP"; break;
            case "cotm200407f": eDetail = "Adam's MGB"; break;
            case "wilt1100f": eDetail = "Declan's Vanden Plas Princess 1100"; break;
            case "wiltminif": eDetail = "Ian's Mini Cooper RSP"; break;
            case "wiltmaxif": eDetail = "Richard's Maxi"; break;
            default: eDetail= ''
            }
        ePrefix = 'You can see '
        eSuffix = ' on the Austin-Rover stand at the National BMC/BL Rally<BR>at Peterborough on Sunday, 1 August. Click <A CLASS=EMBED HREF="events20040801f.htm">here</A> for further details.'
        if (eDetail=='') {eNotice=''} else {eNotice='<P CLASS=SMALLHEAD>'+ePrefix+eDetail+eSuffix+'</P><HR>'}
    }
    if (coWriter==null) {coWriter='';}
    cNotice = '<P CLASS=SMALLHEAD>Copyright &copy; 2002-' + year + ' <A CLASS=embed HREF="mailto:' + email + '@aronline.Co.UK">Keith Adams</A> ' + coWriter + '</P>';
    fNotice = '<P CLASS=STORY><B>Comments & contributions:</B> If you\'ve got something to say about the content of this page, or if you have some relevant information to contribute, please contact me using <A CLASS=EMBED HREF="mailto:' + email + '@aronline.Co.UK?subject=AROnline.Co.UK Feedback ' + pRef + '">this link</A>. I\'d love to hear from you. Alternatively, why not join in the debate &#150; or start one of your own &#150; at the site\'s <A CLASS=EMBED HREF="http://www.aronline.co.uk/cgi-bin/forum/index.php">online forum</A>.</P>'
    pNotice = '<P CLASS=STORY><B>Spotted an error?</B> If you\'ve noticed a factual or typographical error, missing image or broken link on this page, please let me know about it using <A CLASS=EMBED HREF="mailto:' + email + '@aronline.Co.UK?subject=AROnline.Co.UK Fault Report ' + pRef + '">this link</A>, and I will attend to it at the next update.</P>'
    document.write(eNotice+cNotice+lastModd()+fNotice+pNotice)

}    

function lastModd(moddType)

{
      lastmod = self.parent.frmCont936.document.lastModified     // get string of last modified date
      lastmoddate = Date.parse(lastmod)   // convert modified string to date
      if(lastmoddate == 0){               // unknown date (or January 1, 1970 GMT)
         lmText = ""
      } else {
        d = new Date(lastmod);
        lmday=dayName[d.getDay()];
        lmmon=monName[d.getMonth()];
        lmdte=d.getDate(); lmyr=d.getFullYear();
        lmh=d.getHours(); if (lmh < 10) {lmh = "0"+lmh}
	lmm=d.getMinutes(); if (lmm < 10) {lmm = "0"+lmm}
        switch (moddType) {
            case "homePage": lmprefix = "<p class=creditr>Last updated: "; break;
            default: lmprefix = "<p class=creditl>This page was last modified on "
            }

        lmText = lmprefix + lmday + ", " + lmdte + " " + lmmon + " " + lmyr + " at " + lmh + ":" + lmm + "</P>";
      }

	return lmText;
}

function lastModd2()
{
lastmod = self.parent.frmCont936.document.lastModified
lastmoddate = Date.parse(lastmod)
todaydate = Date.parse(today)
alert(lastmoddate + " -- " + todaydate);

}

function contactMe(subject) 

{
    linkID = findMailtoLink('mailto:kadams')    
    document.links[linkID].href = 'mailto:' + email + '@aronline.co.uk?Subject=' + subject; 
}

function contactHim(subject) 

{
    linkID = findMailtoLink('mailto:bgunn')    
    document.links[linkID].href = 'mailto:' + email2 + '@aronline.co.uk?Subject=' + subject; 
}

function contactAlex(subject) 

{
    linkID = findMailtoLink('mailto:ado61')    
    document.links[linkID].href = 'mailto:' + email4 + '@aronline.co.uk?Subject=' + subject; 
}

function contactDeclan(subject) 

{
    linkID = findMailtoLink('mailto:dberridge')    
    document.links[linkID].href = 'mailto:' + email3 + '@dberridge.co.uk?Subject=' + subject; 
}

function contactNews(subject) 

{
    linkID = findMailtoLink('mailto:news')    
    document.links[linkID].href = 'mailto:' + email5 + '@aronline.co.uk?Subject=' + subject; 
}

function contactRichard(subject) 

{
    linkID = findMailtoLink('mailto:raucock')    
    document.links[linkID].href = 'mailto:' + email6 + '@aronline.co.uk?Subject=' + subject; 
}

function findMailtoLink(text) 

{
    for (var i=0; i<document.links.length; i++)
        if (document.links[i].href == text) return i;
    return null;
}

function bookmarker(pagetomark, titletxt)

{

    if (bName=="Netscape") alert("This facility is not available to Netscape users.");
    var pagepart, rootlength, rootpart, bookpage
    pagepart = extract(pagetomark) + ".htm"
    rootlength = pagetomark.length - pagepart.length
    rootpart = pagetomark.substring(pagetomark, rootlength)
    bookpage = rootpart + "index.htm?" + pagepart
    window.external.AddFavorite(bookpage,titletxt)
}


function spotReview(reviewno)

{
    self.parent.frmNavi936.document.open();
    self.parent.frmNavi936.document.write(loading);
    self.parent.frmNavi936.document.close();
    self.parent.frmNavi936.location.href = "reviews/review" + reviewno + "f.htm";
    self.parent.frmNavi936.focus();
}

function extract(what) {
    if (what.indexOf('/') > -1) {
        answer = what.substring(what.lastIndexOf('/')+1,what.length);}
    else {
        answer = what.substring(what.lastIndexOf('\\')+1,what.length);
    }  
//    answer = answer.substring(answer,answer.length-4)	
	
    return answer
}


function rnd() 
{
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
}

function rand(Ndx)

{
        return Math.ceil(rnd()*(Ndx-1));
}

function isDefined(obj) {
       if (typeof obj != "undefined") {return true;} else {return false;}
}

function unDefined(obj) {
       if (typeof obj == "undefined") {return true;} else {return false;}
}


function setPic(linkNdx)

{
    if (unDefined(menuPic[linkNdx])) {picNdx=000;} else {picNdx=linkNdx;}
    if (unDefined(linkTxt[linkNdx])) {linkText=arText;} else {linkText=linkTxt[linkNdx];} 

    var menuImg = new Image(); 
    switch (linkNdx) {
    case 101:
       if (imgCotm==cotmPast.length-1) {imgCotm=1;} else {imgCotm=imgCotm+1;}
       menuImg.src = cotmPast[imgCotm].src; break;
    case 102:
       if (img2003==cotm2003.length-1) {img2003=1;} else {img2003=img2003+1;}
       menuImg.src = cotm2003[img2003].src; break;
    case 503:
       if (imgInho==inhouse.length-1) {imgInho=1;} else {imgInho=imgInho+1;}
       menuImg.src = inhouse[imgInho].src; break;
    case 504:
       if (imgCarr==carrozz.length-1) {imgCarr=1;} else {imgCarr=imgCarr+1;}
       menuImg.src = carrozz[imgCarr].src; break;
    case 607:
       if (imgMem==members.length-1) {imgMem=1;} else {imgMem=imgMem+1;}
       menuImg.src = members[imgMem].src; break;
    default: menuImg.src = menuPic[picNdx].src;
    }
    Loading()
    self.parent.frmLogo936.document.logo.src = menuImg.src;
    window.status = linkText;
}

function setPop(picName)

{
    Loading()
    self.parent.frmLogo936.document.logo.src = 'popups/' + picName;
}

function setTop(picName)

{
    Loading()
    self.parent.frmLogo936.document.logo.src = 'toppics/' + picName;
}

function setBiog(biogName)

{
    Loading()
    self.parent.frmLogo936.document.logo.src = 'biogs/' + biogName + '.jpg';
}


function setBro(broCode)

{
    Loading()
    self.parent.frmLogo936.document.logo.src = 'brochures/popups/' + broCode + '.jpg';
}

function setLogo()

{
    Loading()
    self.parent.frmLogo936.document.logo.src = 'arlogo3.jpg';
    //self.parent.frmLogo936.document.logo.src = 'ident.jpg';
    window.status = arText;
}

function setInfo(filName)

{
    if (filName.indexOf('p')==0) {filName = "nocredit"}
    Loading()
    self.parent.frmLogo936.document.logo.src = 'carinfo/' + filName + '.jpg';
}

function setText(linkNdx)

{
    window.status = linkText[linkNdx];
    return true;
}

function Loading()

{
    self.parent.frmLogo936.document.logo.src = "images/loading.jpg";
}

function pageTurner(newPage)

{
    switch (newPage)
    {
    case 0: if (pageno > 1) {pageno = pageno - 1; break;} else {break;}
    case 99: if (pageno < maxpage) {pageno = pageno + 1; break;} else {break;} 
    default: pageno = newPage;
    }
    document.brochure.src = bropage[pageno].src
}


/*

REDUNDANT CODE

function setTop(picName)

{
    Loading()
    self.parent.frmLogo936.document.open();
    self.parent.frmLogo936.document.write('<BODY><IMG SRC=toppics/' + picName + '</IMG></BODY>');
    self.parent.frmLogo936.document.close();
    self.parent.frmCont936.focus();
    alert('Done it!')
}


    self.parent.frmLogo936.document.open();
    self.parent.frmLogo936.document.write(loading);
    self.parent.frmLogo936.document.close();


//    self.parent.frmLogo936.location.href = 'brochures/' + broCode + '.jpg';
//    self.parent.frmCont936.focus();


*/

// JUST FOR FUN   =============================================================

    function checkAnswers(gameID)
    {
    switch (gameID) {
    case 1: 
        var docHead = self.parent.frmSNGH.document; 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(6,7,11,18,5,2,14,1,4,20,9,10,12,17,8,3,19,13,15,16)
        break;
    case 2: 
        var docHead = self.parent.frmSNGH.document; 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(10,1,7,5,3,6,2,4,9,8)
    }
    var docForm = docMain.forms[0];
    var totScore = 0;
    for (thisEle=0; thisEle<docForm.elements.length; thisEle++) {
    selection = docForm.elements[thisEle];
    guess = selection.options[selection.selectedIndex].value;
    thisScore=docMain.images["SCORE"+(thisEle+1)];	
    if (guess==ans[thisEle]) 
        {thisScore.src = "images/tick.gif"; totScore=totScore+1;}
    else {
        if (guess==0) {thisScore.src = "images/redpx.gif";}
        else {thisScore.src = "images/cross.gif";}
        }
    }
    docHead.images["SCOREBOARD"].src = sBoard[totScore].src
    }

    function resetAnswers(gameID)
    {
    switch (gameID) {
    case 1: 
        var docHead = self.parent.frmSNGH.document; 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(6,7,11,18,5,2,14,1,4,20,9,10,12,17,8,3,19,13,15,16)
        break;
    case 2: 
        var docHead = self.parent.frmSNGH.document; 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(10,1,7,5,3,6,2,4,9,8)
    }
    var docForm = docMain.forms[0]
    for (thisEle=0;thisEle<docForm.elements.length;thisEle++) {
    docForm.elements[thisEle].value = 0;
    thisScore=docMain.images["SCORE"+(thisEle+1)]
    thisScore.src = "images/redpx.gif"
    }
    docHead.images["SCOREBOARD"].src = "images/score.gif"
    }

    function revealAnswers(gameID)
    {
    var conf = confirm("Are you sure you want to reveal all the answers?");
    if (conf) {  
    switch (gameID) {
    case 1: 
        var docHead = self.parent.frmSNGH.document; 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(6,7,11,18,5,2,14,1,4,20,9,10,12,17,8,3,19,13,15,16)
        break;
    case 2: 
        var docHead = self.parent.frmSNGH.document; 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(10,1,7,5,3,6,2,4,9,8)
    }
    var docForm = docMain.forms[0]
    for (thisEle=0;thisEle<docForm.elements.length;thisEle++) {
    docForm.elements[thisEle].value = ans[thisEle];
    thisScore=docMain.images["SCORE"+(thisEle+1)]
    thisScore.src = "images/tick.gif"
    }
    docHead.images["SCOREBOARD"].src = "images/score.gif"
    docHead.images["REVEAL"].blur()
    }
    }

    function revealOne(gameID, itemID)
    {
    switch (gameID) {
    case 1: 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(6,7,11,18,5,2,14,1,4,20,9,10,12,17,8,3,19,13,15,16)
        break;
    case 2: 
        var docMain = self.parent.frmSNGC.document; 
        ans = new Array(10,1,7,5,3,6,2,4,9,8)
    }
    var docForm = docMain.forms[0]
    docForm.elements[itemID-1].value = ans[itemID-1];
    thisScore=docMain.images["SCORE"+(itemID)]
    thisScore.src = "images/tick.gif"
    }

    function visitSite(itemID,srcID)
    {
    webSites = new Array("http://www.maestro.com.au/","http://www.marina.com/","http://www.ketronus.com/sd1.html","http://www.dlxsf.com/site_sf/","http://www.dolomite-bathrooms.com/","http://www.allegrocoffee.com/","http://www5.pc.ibm.com/us/products.nsf/$wwwPartNumLookup/_48P7042","http://www.acclaim.com/","http://www.apachecorp.com/","http://www.xp3hornet.com/","http://www.nomad.hr/","http://princess.sentex.net/","http://www.sherpasnowshoes.com/","http://www.rileyhospital.org/","http://www.maxi.se/","http://www.ambassadorbridge.com/","http://www.starling101.btinternet.co.uk/canals/pubs/pubwols.htm","http://www.stagtobacconist.com/","http://www.vandenplas.de/","http://www.jaguar-online.com/")
    var noGoPic = "Sorry! This link will not be activated until the black box below has been ticked."
    var noGoBox = "Sorry! This link will not be activated until the box has been ticked."
    canGo = document.images["SCORE"+itemID].src.indexOf("tick") > 0
    if (canGo) {targetBlank(webSites[itemID-1]);} 
    else {if (srcID==1) {alert(noGoPic);} else {alert(noGoBox);}} 
    }

    function targetBlank(page) {
    OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
    }


// SITE TOUR CODING =============================================================

    var pageID = new Array(
    "updatesf",
    "greatest01f",
    "greatest02f",
    "greatest03f",
    "greatest04f",
    "greatest05f",
    "greatest06f",
    "greatest07f",
    "greatest08f",
    "greatest09f",
    "greatest10f",
    "greatest11f",
    "greatest12f",
    "greatest13f",
    "greatest01f",
    "100iswindexf",
    "1800f",
    "2001rroverf",
    "2003necf",
    "aboutf",
    "ado14aquilaf",
    "ado14indexf",
    "ado14pubmatf",
    "ado14storyf",
    "ado15abroadf",
    "ado15beachf",
    "ado15crayf",
    "ado15devf",
    "ado15dlf",
    "ado15downtonf",
    "ado15indexf",
    "ado15minissf",
    "ado15pubmatf",
    "ado15saadsf",
    "ado15saf",
    "ado15specialf",
    "ado15storyf",
    "ado15waaf",
    "ado161300gtf",
    "ado16abroadf",
    "ado16ausf",
    "ado16chilef",
    "ado16commf",
    "ado16convf",
    "ado16crayf",
    "ado16denf",
    "ado16devf",
    "ado16dlf",
    "ado16drivef",
    "ado16galleryf",
    "ado16hollandf",
    "ado16indexf",
    "ado16italyf",
    "ado16japanf",
    "ado16nzf",
    "ado16pubmatf",
    "ado16sa1f",
    "ado16sa2f",
    "ado16saf",
    "ado16spain1f",
    "ado16spain2f",
    "ado16spain3f",
    "ado16spain4f",
    "ado16spainf",
    "ado16storyf",
    "ado16tlinef",
    "ado16usaf",
    "ado17crayf",
    "ado17cvf",
    "ado17devf",
    "ado17galleryf",
    "ado17indexf",
    "ado17mgf",
    "ado17pubmatf",
    "ado17storyf",
    "ado17vdpf",
    "ado23indexf",
    "ado23pubmatf",
    "ado23storyf",
    "ado28austinf",
    "ado28brof",
    "ado28convf",
    "ado28cowleyf",
    "ado28devf",
    "ado28galleryf",
    "ado28indexf",
    "ado28italf",
    "ado28mumfordf",
    "ado28pubmatf",
    "ado28storyf",
    "ado28torf",
    "ado28utilityf",
    "ado61crayf",
    "ado61indexf",
    "ado61pubmatf",
    "ado61storyf",
    "ado67brof",
    "ado67convf",
    "ado67devf",
    "ado67galleryf",
    "ado67indexf",
    "ado67pubf",
    "ado67pubmatf",
    "ado67regentf",
    "ado67storyf",
    "ado6coff",
    "ado6convf",
    "ado6fl2f",
    "ado6indexf",
    "ado6repf",
    "ado6rivalsf",
    "ado6storyf",
    "ado711822f",
    "ado71ambf",
    "ado71brof",
    "ado71commf",
    "ado71convf",
    "ado71crayf",
    "ado71devf",
    "ado71estf",
    "ado71galleryf",
    "ado71indexf",
    "ado71pubmatf",
    "ado71storyf",
    "ado71torf",
    "ado71tripf",
    "ajaxindexf",
    "ajaxpubmatf",
    "ajaxstoryf",
    "ajaxtlinef",
    "akaado15f",
    "akaado16f",
    "akaado17f",
    "akaado28f",
    "akafarinaf",
    "akaindexf",
    "akaothersf",
    "allegrodlf",
    "annivf",
    "ar6devf",
    "arindexf",
    "armgexef",
    "arroverccvf",
    "ausindexf",
    "authigalleryf",
    "authiindexf",
    "authinmqf",
    "avonaccf",
    "avonindexf",
    "avonxj6f",
    "awcolombiaf",
    "awindexf",
    "awisraelf",
    "awlicencef",
    "axeemailsf",
    "barbdevf",
    "barbindexf",
    "barbpubmatf",
    "barbstoryf",
    "baxinterf",
    "bertoprotof",
    "biblio1f",
    "biblio2f",
    "biblio3f",
    "bibliof",
    "blrenaultf",
    "carrozzindexf",
    "chileindexf",
    "cityrovergalleryf",
    "cityroverindexf",
    "cityroverpressf",
    "cityroverstoryf",
    "cmilne800f",
    "codeadof",
    "codeindexf",
    "codelclmf",
    "codemiscf",
    "coderoverf",
    "codexcf",
    "codeydof",
    "concarbodiesf",
    "conindexf",
    "conjensenf",
    "conreliantf",
    "convindexf",
    "cotm200201f",
    "cotm200202f",
    "cotm200203f",
    "cotm200204f",
    "cotm200205f",
    "cotm200206f",
    "cotm200207f",
    "cotm200208f",
    "cotm200209f",
    "cotm200210f",
    "cotm200211f",
    "cotm200212f",
    "cotm2002f",
    "cotm200301f",
    "cotm200302f",
    "cotm200303f",
    "cotm200304f",
    "cotm200305f",
    "cotm200306f",
    "cotm200307f",
    "cotm200308f",
    "cotm200309f",
    "cotm200310f",
    "cotm200311f",
    "cotm200312f",
    "cotm2003f",
    "cotmindexf",
    "cowleyf",
    "crayindexf",
    "cv306indexf",
    "cv306pubmatf",
    "cv306storyf",
    "cv306torf",
    "denmarkf",
    "downloadsf",
    "engineaseriesf",
    "enginebseriesf",
    "enginecseriesf",
    "enginehkseriesf",
    "engineindex2f",
    "engineindexf",
    "enginekseriesf",
    "engineroverv8f",
    "etsongf",
    "etsonggalleryf",
    "etsonglubaof",
    "fakingitf",
    "fawindexf",
    "fawlubaof",
    "fruaprotof",
    "ftvfawltyf",
    "ftvgetcarterf",
    "ftvindexf",
    "ftvnewavengersf",
    "ftvprofessionalsf",
    "ftvquadrof",
    "ftvsweeneyf",
    "ftvtlgff",
    "futuref",
    "gaydonsalef",
    "harrimanf",
    "hhrstoryf",
    "hindambyf",
    "hindindexf",
    "histindexf",
    "huachen75f",
    "huanduf",
    "indiaindexf",
    "inhouseindexf",
    "innia40f",
    "innifactf",
    "inniindexf",
    "inniminif",
    "interindexf",
    "irelandf",
    "issiinterf",
    "italiansf",
    "italsprotof",
    "jagpubmatf",
    "jaguarf",
    "jaguarindexf",
    "jaguarstudiesf",
    "jawsvictindexf",
    "jawsvictonef",
    "jawsvictoryf",
    "jawsvicttwof",
    "kinginterf",
    "lc8brof",
    "lc8buyingf",
    "lc8crayf",
    "lc8devf",
    "lc8galleryf",
    "lc8indexf",
    "lc8modf",
    "lc8pubmatf",
    "lc8roverf",
    "lc8storyf",
    "lc9indexf",
    "lc9storyf",
    "lcvcdvf",
    "lcvindexf",
    "lcvprodf",
    "lcvpurposef",
    "lcvroyalmailf",
    "lcvservicef",
    "lcvtelecomf",
    "lcvtrucksf",
    "leyindexf",
    "lm10brof",
    "lm10buyingf",
    "lm10chinaf",
    "lm10commf",
    "lm10devf",
    "lm10indexf",
    "lm10memoriesjdf",
    "lm10memoriesrbf",
    "lm10pubf",
    "lm10pubmatf",
    "lm10storyf",
    "lynxeventf",
    "lynxindexf",
    "lynxspyderf",
    "maltaf",
    "manninterf",
    "marinadlf",
    "memberadamsf",
    "memberberridgef",
    "memberboucke1f",
    "memberboucke2f",
    "memberbouckef",
    "membercaponf",
    "membercollinf",
    "memberdavisf",
    "membergunnf",
    "memberjacobsf",
    "memberkuepperf",
    "membermorleyf",
    "membernicholls1f",
    "membernicholls2f",
    "membernichollsf",
    "membersebbf",
    "membersindexf",
    "memberthomasf",
    "memberturleyf",
    "memberturnerbf",
    "memberturnerf",
    "memberturnermf",
    "memberwindf",
    "memberwoodf",
    "mgcommf",
    "mgindexf",
    "mgrev1980sf",
    "mgrev6r4f",
    "mgrevftff",
    "mgrevindexf",
    "mgrevmaestrosf",
    "mgrevmetrosf",
    "mgrevmontegosf",
    "mgrevrv8f",
    "mgrevxtozf",
    "mgtfhpdf",
    "mgxptf",
    "micheprotof",
    "minidlf",
    "minispainf",
    "mysterycarsf",
    "nzwholestoryf",
    "oldwivesf",
    "otherprotof",
    "othersdlf",
    "ownersindexf",
    "p38adevf",
    "p6crayf",
    "p6indexf",
    "p6pubmatf",
    "p6storyf",
    "p7682indexf",
    "p7682infof",
    "p7682p82f",
    "p7682picsf",
    "p76force7f",
    "p76storyf",
    "p76ukf",
    "p8f",
    "pantherindexf",
    "pantherj72f",
    "pantherlazerf",
    "pantherriof",
    "pantherxj6f",
    "peoplef",
    "peterboroughf",
    "pfkingsburyf",
    "pinin1100f",
    "pinin1800f",
    "pininindexf",
    "pininjagf",
    "pininotherf",
    "policeaustinf",
    "policeindexf",
    "policejaguarf",
    "policemgf",
    "policeminif",
    "policemorrisf",
    "policeroverf",
    "policetriumphf",
    "policewolsf",
    "pr3indexf",
    "pr3storyf",
    "pressadsf",
    "pressf",
    "princessdlf",
    "prodindexf",
    "productionf",
    "publicityf",
    "quotesf",
    "r3galleryf",
    "r3indexf",
    "r3prodf",
    "r3storyf",
    "r40galleryf",
    "r40indexf",
    "r40storyf",
    "r40ztef",
    "r40ztv8f",
    "r50storyf",
    "r6buyingf",
    "r6indexf",
    "r6pubmatf",
    "r6scoutf",
    "r6storyf",
    "r6xdevf",
    "r8indexf",
    "r8storyf",
    "rappfortef",
    "rappindexf",
    "rappmetrof",
    "researchecvf",
    "researchindexf",
    "researchsrvf",
    "rov425f",
    "rovindexf",
    "rovr30f",
    "rovsd2f",
    "rovtcvf",
    "rrprotof",
    "ryderreportf",
    "salesf",
    "saminimenuf",
    "santanaf",
    "sd1brof",
    "sd1buyingf",
    "sd1devf",
    "sd1drivef",
    "sd1galleryf",
    "sd1indexf",
    "sd1inspf",
    "sd1pressf",
    "sd1prodf",
    "sd1pubf",
    "sd1pubmatf",
    "sd1sportf",
    "sd1storyf",
    "sd3storyf",
    "searchf",
    "sipanif",
    "sipanimontef",
    "sk1storyf",
    "spaindexf",
    "sports_ex234f",
    "sportsado21f",
    "sportsado34f",
    "sportsado56f",
    "sportsado68f",
    "sportsado70f",
    "sportsastonmgbf",
    "sportsdlf",
    "sportsindexf",
    "sportstriumphf",
    "standard2000f",
    "standardgazelf",
    "standardheraldf",
    "standardindexf",
    "streetwisef",
    "super9xf",
    "superado74f",
    "superado88af",
    "superado88bf",
    "superado88f",
    "superindexf",
    "supernewf",
    "thosedoorsf",
    "timelinef",
    "tm1f",
    "toptrumpsf",
    "torindexf",
    "tr7crayf",
    "tr7indexf",
    "tr7storyf",
    "tr7trxf",
    "tr7trzf",
    "trifactf",
    "triumphcommf",
    "triumphf",
    "triumphindexf",
    "turnbullf",
    "vandenindexf",
    "vandenplasf",
    "vdp1822f",
    "vdp3litref",
    "vdpindexf",
    "vdpsmallf",
    "whatcarf",
    "wilt1100f",
    "wilt200brmf",
    "wiltallegrof",
    "wiltheraldf",
    "wiltindexf",
    "wiltmaestrof",
    "wiltmaxif",
    "wiltp6f",
    "wiltspridgetf",
    "wiltsprintf",
    "wiltsterlingf",
    "wilttravf",
    "wiltxj40f",
    "woolleyemailsf",
    "wschapter1f",
    "wschapter2f",
    "wschapter3f",
    "wschapter4f",
    "wschapter5f",
    "wschapter6f",
    "wschapter7f",
    "wschapter8f",
    "wschapter9f",
    "wsindexf",
    "x6articlesf",
    "x6indexf",
    "x6picsf",
    "x6vdpf",
    "x80galleryf",
    "x80indexf",
    "x80storyf",
    "xxbrof",
    "xxbuyingf",
    "xxcoupecompf",
    "xxdevf",
    "xxgalleryf",
    "xxindexf",
    "xxpubf",
    "xxpubmatf",
    "xxr17coupef",
    "xxr17f",
    "xxstoryf",
    "zagatoprotof",
    "zaindexf"
     );


function tourSite(curPage, dirNdx)

{
    curPage = extract(curPage);  
   
    if (dirNdx == 0) {
       do {newPno=rand(pageID.length);}
       while (pageID[newPno] == undefined )}

      //indexOf(pageID[newPno], pageID[newPno].length - 6) == "indexf")

    else {	
   	if (curPage.substring(curPage,curPage.length-3) == "greatest")
        {
        var pCount=0
        do {pCount = pCount + 1;window.status=pCount}
        while (pageID[pCount] != curPage && pCount<=pageID.length)
        if (dirNdx == 1) {newPno=pCount-1;} else {newPno=pCount+1;}
        newPage = pageID[newPno]
        change(newPage + '.htm');
        }
	else {
   	alert("The Site Tour facility has been temporarily suspended while it is being revised and updated. \n\n Its relaunch will be announced on the Latest Updates page.")
        }
   /*
        var pCount=0
        do {pCount = pCount + 1;window.status=pCount}
        while (pageID[pCount] != curPage && pCount<=pageID.length)
        if (dirNdx == 1) {newPno=pCount-1;} else {newPno=pCount+1;}
    */
    }
    if (dirNdx == 0) {
    newPage = pageID[newPno]
   if (newPage == undefined) {newPage = curPage}
      //alert("Undefined page: "+newPno); 
      //wsNo = rand(9)   
       //newPage = "wschapter"+wsNo+"f";}

    change(newPage + '.htm');
    //alert(newPno + " " + newPage)
}
}


//----------


function randPage(curPage)

{

   curPage = extract(curPage);  

       do {newPno=rand(pageID.length);}
       while (pageID[newPno] == undefined )

      //indexOf(pageID[newPno], pageID[newPno].length - 6) == "indexf")

        var pCount=0
        do {pCount = pCount + 1;window.status=pCount}
        while (pageID[pCount] != curPage && pCount<=pageID.length)
        //if (dirNdx == 1) {newPno=pCount-1;} else {newPno=pCount+1;}

    newPage = pageID[newPno]
    if (newPage == undefined) {newPage = curPage}

      //alert("Undefined page: "+newPno); 
      //wsNo = rand(9)   
      //newPage = "wschapter"+wsNo+"f";}

    change(newPage + '.htm');

      //alert(newPno + " " + newPage)

}