var PageTitle = String("California 500 June 22, 1997");
var SpDir = String("California");
var BackGround = String("../Patty/RustyCarEmboss.jpg");
var AlbumSeries = 600;

function GetPhotoDescription(PhotoNum)
{
	if (PhotoNum == 0) return(String("Sonneys World"));
	return(String(""));
}

function AlbumPage(ToPhoto, LastPhoto) 
{
	var PhotoDescription = GetPhotoDescription(ToPhoto);
	top.frames[1].document.open();
	top.frames[1].document.writeln("<HEAD></HEAD>");
	top.frames[1].document.writeln("<body background=" + String(BackGround) + " text=white link=white vlink=red>");
	top.frames[1].document.writeln("<Center><table cellpadding=0 cellspacing=0 border=0>");
	top.frames[1].document.writeln("<TR><TD colspan=3><FONT SIZE=+3><CENTER>" + PageTitle + "</CENTER></FONT></TD>");
	if (ToPhoto == 1)
		top.frames[1].document.writeln("<TR><TD><Center><A HREF='../" + String(SpDir) + "/Page.html'><IMG SRC=../Patty/ArrowLeft.gif border=0></A>");
	else
		top.frames[1].document.writeln("<TR><TD><Center><A HREF=javascript:top.frames[0].AlbumPage(" + String(ToPhoto - 1) + "," + String(LastPhoto) + ");><IMG SRC=../Patty/ArrowLeft.gif border=0></A>");
	top.frames[1].document.writeln("<TD><A HREF='../" + String(SpDir) + "/Page.html'><IMG SRC=../Patty/ArrowDot.gif border=0></A>");
	if (ToPhoto == LastPhoto)
		top.frames[1].document.writeln("<TD><A HREF='../" + String(SpDir) + "/Page.html'><IMG SRC=../Patty/ArrowRight.gif border=0></A>");
	else
		top.frames[1].document.writeln("<TD><A HREF=javascript:top.frames[0].AlbumPage(" + String(ToPhoto + 1) + "," + String(LastPhoto) + ");><IMG SRC=../Patty/ArrowRight.gif border=0></A>");
	top.frames[1].document.writeln("<TR><TD colspan=3><Center><IMG SRC='../" + String(SpDir) + "/Photo" + String(ToPhoto) + "x480.jpg' border=0></Center></TD>");
	if (String(PhotoDescription) != "")
		top.frames[1].document.writeln( "<TR><TD colspan=3><Font Size=+1><Center>" + String(PhotoDescription) + "</Center></Font></TD>");	
	top.frames[1].document.writeln("</table><BR><BR><BR>");
	top.BottomMenu(1);
	top.frames[1].document.writeln("</body>");
	top.frames[1].document.close();
}

function Full(ToPhoto,LastPhoto,Add) 
{
	top.frames[1].document.open();
	top.frames[1].document.writeln("<HEAD></HEAD>");
	top.frames[1].document.writeln("<body background=" + String(BackGround) + " text=white link=white vlink=red>");
	top.frames[1].document.writeln("<table cellpadding='5' cellspacing='5' border='0' width='100%'>");
	top.frames[1].document.writeln("<TR><TD colspan=4><FONT SIZE=+3><CENTER>" + PageTitle + "</FONT></TD>");
	var BreakIt = ToPhoto + 5
	for (var ThisPhoto = ToPhoto; ThisPhoto < LastPhoto; ThisPhoto += 1 ) 
	{
		top.status = "Locating - Photo" + ThisPhoto;
		top.frames[1].document.writeln("<TR><TD><CENTER><A HREF='JavaScript:top.frames[0].AlbumPage(" + String(ThisPhoto) + "," + String(LastPhoto) + ");'><IMG SRC='../" + String(SpDir) + "/Photo" + String(ThisPhoto) + "x480.jpg' border=0></CENTER>");
		var PhotoDescription = GetPhotoDescription(ThisPhoto);
		if (String(PhotoDescription) != "")
			top.frames[1].document.writeln( "<BR><Font Size=+1><Center>" + String(PhotoDescription) + "</Center></Font>");	
		top.frames[1].document.writeln("<hr></TD>");
		if (ThisPhoto > BreakIt)
		{
		top.frames[1].document.writeln("</table>");
		top.frames[1].document.writeln("<table cellpadding='5' cellspacing='5' border='0' width='100%'>");
		BreakIt += 5
		} 
	}
	top.frames[1].document.writeln("</table>");
	top.BottomMenu(1);
	top.frames[1].document.writeln("<BR><BR>");
	top.frames[1].document.writeln("</body>");
	top.frames[1].document.close();
}



function Thumb(ToPhoto,LastPhoto,Add) 
{
	top.frames[1].document.open();
	top.frames[1].document.writeln("<HEAD><TITLE>" + PageTitle + "</TITLE></HEAD>");
	top.frames[1].document.writeln("<body background=" + String(BackGround) + " text=white link=white vlink=red>");
	top.frames[1].document.writeln("<Center><FONT SIZE=+3><CENTER>" + PageTitle + "</Center></Font>");
	for (var ThisPhoto = ToPhoto; ThisPhoto < LastPhoto; ThisPhoto += 4 ) 
		{
		top.status = "Locating - Photo" + ThisPhoto
		top.frames[1].document.writeln("<table cellpadding='4' cellspacing='4' border='0' width='100%'>");
		top.frames[1].document.writeln("<TR><TD WIDTH=120><A   HREF='JavaScript:top.frames[0].AlbumPage(" + String(ThisPhoto) + "," + String(LastPhoto) + ");'><IMG SRC='../" + String(SpDir) + "/Photo" + String(ThisPhoto) + "x100.jpg' border=0></A></TD>");
		top.frames[1].document.writeln("<TD WIDTH=120><A  HREF='JavaScript:top.frames[0].AlbumPage(" + String(ThisPhoto + 1) + "," + String(LastPhoto) + ");'><IMG SRC='../" + String(SpDir) + "/Photo" + String(ThisPhoto + 1) + "x100.jpg' border=0></A></TD>");
		top.frames[1].document.writeln("<TD WIDTH=120><A  HREF='JavaScript:top.frames[0].AlbumPage(" + String(ThisPhoto + 2) + "," + String(LastPhoto) + ");'><IMG SRC='../" + String(SpDir) + "/Photo" + String(ThisPhoto + 2) + "x100.jpg' border=0></A></TD>");
		top.frames[1].document.writeln("<TD WIDTH=120><A  HREF='JavaScript:top.frames[0].AlbumPage(" + String(ThisPhoto + 3) + "," + String(LastPhoto) + ");'><IMG SRC='../" + String(SpDir) + "/Photo" + String(ThisPhoto + 3) + "x100.jpg' border=0></A></TD>");
		top.frames[1].document.writeln("</table>");
		}
	top.BottomMenu(1);
	top.frames[1].document.writeln("<BR><BR></body>");
	top.frames[1].document.close();
}


