document.write('&nbsp;<A CLASS=nextlink HREF="javascript:NextPrev(\'N\',this);" OnMouseOver="window.status=\'Appuyez sur la touche &laquo;Plus&raquo; pour aller &agrave; la prochaine photo des &Eacute;tats-Unis\'; return true;"><IMG SRC="../images/ARROWN.GIF" ALT="Press the &#147;Plus&#148; key to go to the next photograph in this series of pictures of the United States" WIDTH=79 HEIGHT=26 BORDER=0 ALIGN=middle></A>');

var np_links = new Array(
"states01.htm",
"states05.htm",
"states36.htm",
"states37.htm",
"states38.htm",
"states53.htm",
"states66.htm",
"states34.htm",
"states39.htm",
"states56.htm",
"states58.htm",
"states59.htm",
"states09.htm",
"states35.htm",
"states20.htm",
"states23.htm",
"states26.htm",
"states28.htm",
"states63.htm",
"states27.htm",
"states29.htm",
"states40.htm",
"states65.htm",
"states21.htm",
"states30.htm",
"states32.htm",
"states57.htm",
"states60.htm",
"states61.htm",
"states62.htm",
"states33.htm",
"states64.htm",
"states12.htm",
"states31.htm",
"states18.htm",
"states41.htm",
"states22.htm",
"states15.htm",
"states16.htm",
"states02.htm",
"states03.htm",
"states04.htm",
"states14.htm",
"states07.htm",
"states13.htm",
"states19.htm",
"states43.htm",
"states48.htm",
"states49.htm",
"states50.htm",
"states45.htm",
"states47.htm",
"states51.htm",
"states46.htm",
"states42.htm",
"states44.htm",
"states11.htm",
"states17.htm",
"states24.htm",
"states25.htm",
"states06.htm",
"states10.htm",
"states52.htm",
"states54.htm",
"states55.htm",
"states08.htm");

//DAVID here is the new array. Update this every time you update the other array

var next_pic = new Array(
"ChineseNewYear.jpg",
"VOLLEYB.jpg",
"CentralArtery.jpg",
"JJFoleys.jpg",
"AnnesRestaurant.jpg",
"NorthEndModernPastryShop.jpg",
"ParkStreetSaxophonist0149.jpg",
"MRButch.jpg",
"BostonSandGravelSign.jpg",
"JFKRadioTVRepair.jpg",
"XannaDontRollsRoyce.jpg",
"SouthBostonBaseBallPark.jpg",
"FiftiesCouple.jpg",
"FaneuilHallWomen.jpg",
"Buzzardman.jpg",
"INKY.jpg",
"BlueSands.jpg",
"PEROTM.jpg",
"PerotSupporterLady.jpg",
"KenmoreSQDogMan.jpg",
"ParkStreetPreacher.jpg",
"StateTrooperPattyDayParade.jpg",
"BroadStreetDentalExamTontileo.jpg",
"DianeticsSalesman.jpg",
"Gabriel.jpg",
"ShoppingCartMan.jpg",
"JoeColemanMouseGeek.jpg",
"JoeColemanGoatFiremen.jpg",
"CommonsScreamingPreacher.jpg",
"ChinatownWeddingCarMan.jpg",
"Hotdog.jpg",
"DadMomDaughterOnLeash.jpg",
"CentralSquare.jpg",
"cowboy.jpg",
"MDWATCH.jpg",
"SomervilleVietnamVets.jpg",
"SWAGON.jpg",
"BrigdeClosed.jpg",
"GodCar.jpg",
"FlamingoCarField.jpg",
"ShellbourneFallsRipple.jpg",
"TruroBeach.jpg",
"BerkshireDandelionField.jpg",
"DINER.jpg",
"MohawkTrail.jpg",
"Lawnornament.jpg",
"MelsDrivinLA.jpg",
"HuntingtonBotanicalCacti.jpg",
"HuntingtonBamboo.jpg",
"HuntingtonJapanese.jpg",
"ScientologyHollywood.jpg",
"ElCapitanHollywood.jpg",
"NewportBeachHandball.jpg",
"ScientologyChristmasVillage.jpg",
"LaBreaTarPitMuseum.jpg",
"HollyWoodFirstNat.jpg",
"CrystalJewelryMan.jpg",
"FreeDirt.jpg",
"Beerdrinker.jpg",
"Graceland.jpg",
"Detroit_Airplane.jpg",
"CigarPriest.jpg",
"LucyElephant34.jpg",
"GenosSteakSandwiches.jpg",
"MumiaAbuJamalDanielFaulkner.jpg",
"HavenBrothersDiner.jpg");

function NextPrev(Which,This)
{

Loop='yes';
URL=document.location.href;
ix1=URL.indexOf('?');
if (ix1 > -1)
{
URL=URL.substring(0,ix1);
}

ix1=URL.lastIndexOf('/');

if (ix1 > -1)
{
URL=URL.substring(ix1+1);
}

links_len=np_links.length;

for (ix1=0; ix1<links_len; ix1++)
{
link=np_links[ix1];
if (link == URL)
{
if (Which == 'N')
{
ix2=ix1*1 + 1;
if (ix2 >= links_len)
{
if (Loop == 'no')
{
alert('Last picture in the series on the United States.');
if (This.href) { This.href=URL; }
return false;
}

ix2=0;
}

locn=np_links[ix2];
document.location=locn;
if (This.href)
{
This.href=locn;
}

return false;

}
else
{

ix2=ix1 - 1;
if (ix2 < 0)
{
if (Loop == 'no')
{
alert('Beginning of list.');
if (This.href) { This.href=URL; }
return false;
}
ix2=links_len-1;
}

locn=np_links[ix2];
document.location=locn;
if (This.href) { This.href=locn; }

return false;
}
}
}
}

var timer = null
function slideshow() { NextPrev('N',this); }
timer=setTimeout('slideshow()',300000)

function ejs_code_clavier(keyStroke) {
ejs_code_eventChooser = (!document.all) ? keyStroke.which : event.keyCode;
ejs_code_which = String.fromCharCode(ejs_code_eventChooser);
if (ejs_code_which =='+' ){ NextPrev('N',this); }
else if (ejs_code_which == '-' ){ NextPrev('P',this); }
return true
}
document.onkeypress = ejs_code_clavier;

//DAVID here is the previous preload image
function preloadNextPrev()
{
URL=document.location.href;
ix1=URL.indexOf('?');
if (ix1 > -1)
{
URL=URL.substring(0,ix1);
}
ix1=URL.lastIndexOf('/');
if (ix1 > -1)
{
URL=URL.substring(ix1+1);
}
links_len=np_links.length;
for (ix1=0; ix1<links_len; ix1++)
{
link=np_links[ix1];
if (link == URL)
{
ix2=ix1 + 1;
if (ix2 < next_pic.length)
{
ImageNext = new Image(1,1);
ImageNext.src = next_pic[ix2];
}
ix2=ix1 - 1;
if (ix2 >= 0)
{
ImageNext = new Image(1,1);
ImageNext.src = next_pic[ix2];
}
return false;
}
}
}