//Rollover menu and script by Jonathan M. Fuchs
//jon@jmfuchs.com
//Code modified from script by Kevin D. Welch
//kdwelch@aae.uiuc.edu


// Preload all menu images
if (document.images) {

//	var placeholder = new Image(33,160);
//	placeholder.src = "./images/navbar/placeholder.gif";
//	var placeholder_s = new Image(33,160);
//	placeholder_s.src = "./images/navbar/placeholder_s.gif";

  	var home = new Image(33,160);
  	home.src = "./images/home.gif";
  	var home_s = new Image(33,160);
  	home_s.src = "./images/home_s.gif";
  	var home_a = new Image(33,160);
  	home_a.src = "./images/home_a.gif";
  	var home_o = new Image(33,160);
  	home_o.src = "./images/home_o.gif";

 	var resume = new Image(33,160);
  	resume.src = "./images/resume.gif";
  	var resume_s = new Image(33,160);
  	resume_s.src = "./images/resume_s.gif";
  	var resume_a = new Image(33,160);
  	resume_a.src = "./images/resume_a.gif";
  	var resume_o = new Image(33,160);
  	resume_o.src = "./images/resume_o.gif";

 	var portfolio = new Image(33,160);
  	portfolio.src = "./images/portfolio.gif";
  	var portfolio_s = new Image(33,160);
  	portfolio_s.src = "./images/portfolio_s.gif";
  	var portfolio_a = new Image(33,160);
  	portfolio_a.src = "./images/portfolio_a.gif";
  	var portfolio_o = new Image(33,160);
  	portfolio_o.src = "./images/portfolio_o.gif";

 	var links = new Image(33,160);
  	links.src = "./images/links.gif";
  	var links_s = new Image(33,160);
  	links_s.src = "./images/links_s.gif";
  	var links_a = new Image(33,160);
  	links_a.src = "./images/links_a.gif";
  	var links_o = new Image(33,160);
  	links_o.src = "./images/links_o.gif";

	var wedding = new Image(33,160);
  	wedding.src = "./images/wedding.gif";
  	var wedding_s = new Image(33,160);
  	wedding_s.src = "./images/wedding_s.gif";
  	var wedding_a = new Image(33,160);
  	wedding_a.src = "./images/wedding_a.gif";
  	var wedding_o = new Image(33,160);
  	wedding_o.src = "./images/wedding_o.gif";

	var tours = new Image(33,160);
	tours.src = "./images/tours.gif";
	var tours_s = new Image(33,160);
	tours_s.src = "./images/tours_s.gif";
	var tours_a = new Image(33,160);
	tours_a.src = "./images/tours_a.gif";
	var tours_o = new Image(33,160);
	tours_o.src = "./images/tours_o.gif";

	var other = new Image(33,160);
	other.src = "./images/other.gif";
	var other_s = new Image(33,160);
	other_s.src = "./images/other_s.gif";
	var other_a = new Image(33,160);
	other_a.src = "./images/other_a.gif";
	var other_o = new Image(33,160);
	other_o.src = "./images/other_o.gif";

	var dance = new Image(33,160);
	dance.src = "./images/dance.gif";
	var dance_s = new Image(33,160);
	dance_s.src = "./images/dance_s.gif";
	var dance_a = new Image(33,160);
	dance_a.src = "./images/dance_a.gif";
	var dance_o = new Image(33,160);
	dance_o.src = "./images/dance_o.gif";

	var drafting = new Image(33,160);
	drafting.src = "./images/drafting.gif";
	var drafting_s = new Image(33,160);
	drafting_s.src = "./images/drafting_s.gif";
	var drafting_a = new Image(33,160);
	drafting_a.src = "./images/drafting_a.gif";
	var drafting_o = new Image(33,160);
	drafting_o.src = "./images/drafting_o.gif";

	var drama = new Image(33,160);
	drama.src = "./images/drama.gif";
	var drama_s = new Image(33,160);
	drama_s.src = "./images/drama_s.gif";
	var drama_a = new Image(33,160);
	drama_a.src = "./images/drama_a.gif";
	var drama_o = new Image(33,160);
	drama_o.src = "./images/drama_o.gif";

	var musicals = new Image(33,160);
	musicals.src = "./images/musicals.gif";
	var musicals_s = new Image(33,160);
	musicals_s.src = "./images/musicals_s.gif";
	var musicals_a = new Image(33,160);
	musicals_a.src = "./images/musicals_a.gif";
	var musicals_o = new Image(33,160);
	musicals_o.src = "./images/musicals_o.gif";

	var opera = new Image(33,160);
	opera.src = "./images/opera.gif";
	var opera_s = new Image(33,160);
	opera_s.src = "./images/opera_s.gif";
	var opera_a = new Image(33,160);
	opera_a.src = "./images/opera_a.gif";
	var opera_o = new Image(33,160);
	opera_o.src = "./images/opera_o.gif";

	var projects = new Image(33,160);
	projects.src = "./images/projects.gif";
	var projects_s = new Image(33,160);
	projects_s.src = "./images/projects_s.gif";
	var projects_a = new Image(33,160);
	projects_a.src = "./images/projects_a.gif";
	var projects_o = new Image(33,160);
	projects_o.src = "./images/projects_o.gif";

	var rendering = new Image(33,160);
	rendering.src = "./images/rendering.gif";
	var rendering_s = new Image(33,160);
	rendering_s.src = "./images/rendering_s.gif";
	var rendering_a = new Image(33,160);
	rendering_a.src = "./images/rendering_a.gif";
	var rendering_o = new Image(33,160);
	rendering_o.src = "./images/rendering_o.gif";

	var video = new Image(33,160);
	video.src = "./images/video.gif";
	var video_s = new Image(33,160);
	video_s.src = "./images/video_s.gif";
	var video_a = new Image(33,160);
	video_a.src = "./images/video_a.gif";
	var video_o = new Image(33,160);
	video_o.src = "./images/video_o.gif";


	var trusstop = new Image();
	trusstop.src = "./images/trusstop.gif";
	var trussleft = new Image();
	trussleft.src = "./images/trussleft.gif";
	var trussnav = new Image();
	trussnav.src = "./images/trussnav.gif";

}

//onMouseOver
function act(imgName) {
  if (document.images)
    document.images[imgName].src = eval(imgName + "_a.src");
}

//onMouseOut
function inact(imgName) {
  if (document.images)
    document.images[imgName].src = eval(imgName + "_o.src");
}

//onLoad
function loadimages() {
  if (document.images)
    document.images.trusstop.src = eval("trusstop.src");
    document.images.trussleft.src = eval("trussleft.src");
    document.images.trussnav.src = eval("trussnav.src");
}



function OpenAlbumPhoto(imgNum) {

//Window = Image width, Height.  Add 20 to height for each additional line of caption.

var horiz = new Array();
var vert = new Array();
var prev = new Array();
var nxt = new Array();
var caption = new Array();

horiz["bt05"] = 800;
vert["bt05"] = 490;
prev["bt05"] = "bt03";
nxt["bt05"] = "bt06";
caption["bt05"] = "The river under the bridge, made of light.";

horiz["bt03"] = 800;
vert["bt03"] = 490;
prev["bt03"] = "bt04";
nxt["bt03"] = "bt05";
caption["bt03"] = "Stuck on the Bridge";

horiz["bt04"] = 800;
vert["bt04"] = 600;
prev["bt04"] = "bt06";
nxt["bt04"] = "bt03";
caption["bt04"] = "The group stuck in the middle of a war";

horiz["bt06"] = 800;
vert["bt06"] = 600;
prev["bt06"] = "bt05";
nxt["bt06"] = "bt04";
caption["bt06"] = "The Schoolmaster unable to leave the bridge";

horiz["bt01"] = 800;
vert["bt01"] = 540;
prev["bt01"] = "bt08";
nxt["bt01"] = "bt14";
caption["bt01"] = "Sam&rsquo;s stylized sunset walk home at the end of a long day";

horiz["bt14"] = 700;
vert["bt14"] = 510;
prev["bt14"] = "bt01";
nxt["bt14"] = "bt11";
caption["bt14"] = "Final pulldown - the tensest moment at the end of the sequence";

horiz["bt11"] = 700;
vert["bt11"] = 540;
prev["bt11"] = "bt14";
nxt["bt11"] = "bt12";
caption["bt11"] = "Dinah recalling the movie she just saw at the Hatshop";

horiz["bt12"] = 800;
vert["bt12"] = 510;
prev["bt12"] = "bt11";
nxt["bt12"] = "bt10";
caption["bt12"] = "Evenin&rsquo; shadows are spreadin&rsquo; softly...";

horiz["bt10"] = 700;
vert["bt10"] = 525;
prev["bt10"] = "bt12";
nxt["bt10"] = "bt08";
caption["bt10"] = "Sam relaxing at the Gym";

horiz["bt08"] = 700;
vert["bt08"] = 540;
prev["bt08"] = "bt10";
nxt["bt08"] = "bt01";
caption["bt08"] = "Sam&rsquo;s Office";

horiz["bt15"] = 800;
vert["bt15"] = 600;
prev["bt15"] = "bt16";
nxt["bt15"] = "bt16";
caption["bt15"] = "Preliminary Rendering of the overall look for <I>Comedy on the Bridge</I>";

horiz["bt16"] = 800;
vert["bt16"] = 600;
prev["bt16"] = "bt15";
nxt["bt16"] = "bt15";
caption["bt16"] = "Preliminary Rendering of the overall look for <I>Trouble in Tahiti</I>";

horiz["dance01"] = 800;
vert["dance01"] = 600;
prev["dance01"] = "dance03";
nxt["dance01"] = "dance02";
caption["dance01"] = "Yi-Qi Cheng, Faculty Choreographer";

horiz["dance02"] = 800;
vert["dance02"] = 540;
prev["dance02"] = "dance01";
nxt["dance02"] = "dance03";
caption["dance02"] = "Yi-Qi Cheng, Faculty Choreographer";

horiz["dance03"] = 800;
vert["dance03"] = 455;
prev["dance03"] = "dance02";
nxt["dance03"] = "dance01";
caption["dance03"] = "Tong Wang, Guest Choreographer";

horiz["dance04"] = 800;
vert["dance04"] = 455;
prev["dance04"] = "dance03";
nxt["dance04"] = "dance01";
caption["dance04"] = "Tong Wang, Guest Choreographer";

horiz["sjc01"] = 800;
vert["sjc01"] = 450;
prev["sjc01"] = "sjc04";
nxt["sjc01"] = "sjc02";
caption["sjc01"] = "<I>Smokey Joe&rsquo;s Cafe</I> Show Logo";

horiz["sjc02"] = 800;
vert["sjc02"] = 450;
prev["sjc02"] = "sjc01";
nxt["sjc02"] = "sjc03";
caption["sjc02"] = "The full moving light rig with haze between shows";

horiz["sjc03"] = 800;
vert["sjc03"] = 620;
prev["sjc03"] = "sjc02";
nxt["sjc03"] = "sjc04";
caption["sjc03"] = "Logo Re-Wiring CAD";
//+20 vert for 2nd line of caption
horiz["sjc04"] = 800;
vert["sjc04"] = 640;
prev["sjc04"] = "sjc03";
nxt["sjc04"] = "sjc01";
caption["sjc04"] = "Followspot Cheat Sheet<BR>I ran one followspot and called a local operator on the other.";
//+20 vert for 2nd line of caption
horiz["grease01"] = 800;
vert["grease01"] = 470;
prev["grease01"] = "grease04";
nxt["grease01"] = "grease02";
caption["grease01"] = "<I>Grease</I> Show Logo and Show Portal<BR>Ninety circuits comprise the two pieces.";

horiz["grease02"] = 800;
vert["grease02"] = 450;
prev["grease02"] = "grease01";
nxt["grease02"] = "grease03";
caption["grease02"] = "CAD drawing of the portal broken down into individual circuits, for layout";

horiz["grease03"] = 800;
vert["grease03"] = 570;
prev["grease03"] = "grease02";
nxt["grease03"] = "grease04";
caption["grease03"] = "Detail section of each component that the portal breaks down into, for tour transport.";

horiz["grease04"] = 620;
vert["grease04"] = 800;
prev["grease04"] = "grease03";
nxt["grease04"] = "grease01";
caption["grease04"] = "Parts list for new cable and connectors";
//+20 vert for 2nd line of caption
horiz["se01"] = 720;
vert["se01"] = 420;
prev["se01"] = "se04";
nxt["se01"] = "se02";
caption["se01"] = "Poster and DVD cover image<BR>I also published the combined show to DVD.";

horiz["se02"] = 800;
vert["se02"] = 545;
prev["se02"] = "se01";
nxt["se02"] = "se03";
caption["se02"] = "The Apartment";

horiz["se03"] = 800;
vert["se03"] = 545;
prev["se03"] = "se02";
nxt["se03"] = "se04";
caption["se03"] = "Simultaneous &lsquo;Talk Time&rsquo;";

horiz["se04"] = 800;
vert["se04"] = 545;
prev["se04"] = "se03";
nxt["se04"] = "se01";
caption["se04"] = "The House, adapted into a movie theatre";

horiz["othello01"] = 800;
vert["othello01"] = 450;
prev["othello01"] = "othello04";
nxt["othello01"] = "othello02";
caption["othello01"] = "Photoshop Pre-Visualization Sketch";

horiz["othello02"] = 800;
vert["othello02"] = 450;
prev["othello02"] = "othello01";
nxt["othello02"] = "othello03";
caption["othello02"] = "Iago";

horiz["othello03"] = 800;
vert["othello03"] = 450;
prev["othello03"] = "othello02";
nxt["othello03"] = "othello04";
caption["othello03"] = "Desdemona";

horiz["othello04"] = 800;
vert["othello04"] = 450;
prev["othello04"] = "othello03";
nxt["othello04"] = "othello01";
caption["othello04"] = "Othello";

horiz["othelloplot1"] = 1024;
vert["othelloplot1"] = 770;
prev["othelloplot1"] = "othelloplot2";
nxt["othelloplot1"] = "othelloplot2";
caption["othelloplot1"] = "Onstage Light Plot - E Size AutoCAD Drafting";

horiz["othelloplot2"] = 1024;
vert["othelloplot2"] = 770;
prev["othelloplot2"] = "othelloplot1";
nxt["othelloplot2"] = "othelloplot1";
caption["othelloplot2"] = "FOH Light Plot - E Size Autocad Drafting";

horiz["eman01"] = 700;
vert["eman01"] = 507;
prev["eman01"] = "eman05";
nxt["eman01"] = "eman02";
caption["eman01"] = "Opening showing titles and Cellist";

horiz["eman02"] = 700;
vert["eman02"] = 493;
prev["eman02"] = "eman01";
nxt["eman02"] = "eman03";
caption["eman02"] = "Eavesdropping behind the wall";

horiz["eman03"] = 700;
vert["eman03"] = 456;
prev["eman03"] = "eman02";
nxt["eman03"] = "eman04";
caption["eman03"] = "Prayer in the cathedral";

horiz["eman04"] = 700;
vert["eman04"] = 525;
prev["eman04"] = "eman03";
nxt["eman04"] = "eman05";
caption["eman04"] = "&ldquo;Don&rsquo;t you know what is forbidden?&rdquo;";

horiz["eman05"] = 700;
vert["eman05"] = 525;
prev["eman05"] = "eman04";
nxt["eman05"] = "eman01";
caption["eman05"] = "Trapped in semitransparent walls";

horiz["eman06"] = 700;
vert["eman06"] = 394;
prev["eman06"] = "eman08";
nxt["eman06"] = "eman07";
caption["eman06"] = "Rendering for architectural highlights";

horiz["eman07"] = 700;
vert["eman07"] = 513;
prev["eman07"] = "eman06";
nxt["eman07"] = "eman08";
caption["eman07"] = "Rendering showing window beams";

horiz["eman08"] = 700;
vert["eman08"] = 367;
prev["eman08"] = "eman07";
nxt["eman08"] = "eman06";
caption["eman08"] = "Rendering for Transparency";

horiz["monty10"] = 800;
vert["monty10"] = 600;
prev["monty10"] = "monty13";
nxt["monty10"] = "monty11";
caption["monty10"] = "Preliminary Test Rendering for Texture";

horiz["monty11"] = 800;
vert["monty11"] = 600;
prev["monty11"] = "monty10";
nxt["monty11"] = "monty12";
caption["monty11"] = "Rendering Type 1 - Realistic - showing focus";

horiz["monty12"] = 800;
vert["monty12"] = 600;
prev["monty12"] = "monty11";
nxt["monty12"] = "monty13";
caption["monty12"] = "Rendering Type 2 - Fantasy - Musical Singing / Heightened Reality";

horiz["monty13"] = 800;
vert["monty13"] = 600;
prev["monty13"] = "monty12";
nxt["monty13"] = "monty10";
caption["monty13"] = "Rendering Type 3 - Club Lighting";

horiz["monty01"] = 800;
vert["monty01"] = 540;
prev["monty01"] = "monty09";
nxt["monty01"] = "monty02";
caption["monty01"] = "Preshow on the twenty-eight foot tall set<BR> Photo by Mark Lyons";

horiz["monty02"] = 800;
vert["monty02"] = 500;
prev["monty02"] = "monty01";
nxt["monty02"] = "monty03";
caption["monty02"] = "Jerry and Dave almost discovered in the Restroom";

horiz["monty03"] = 800;
vert["monty03"] = 550;
prev["monty03"] = "monty02";
nxt["monty03"] = "monty04";
caption["monty03"] = "Michael Jordan&rsquo;s Ball - Rehearsal in the Old Factory";

horiz["monty04"] = 800;
vert["monty04"] = 570;
prev["monty04"] = "monty03";
nxt["monty04"] = "monty05";
caption["monty04"] = "Typical night on the street in &rsquo;80s Buffalo";

horiz["monty05"] = 800;
vert["monty05"] = 470;
prev["monty05"] = "monty04";
nxt["monty05"] = "monty06";
caption["monty05"] = "Dave sneaking home after rehearsal";

horiz["monty06"] = 800;
vert["monty06"] = 500;
prev["monty06"] = "monty05";
nxt["monty06"] = "monty07";
caption["monty06"] = "This is Not The Goods! - The girls mocking the guys in their horror/fantasy";

horiz["monty07"] = 540;
vert["monty07"] = 720;
prev["monty07"] = "monty06";
nxt["monty07"] = "monty08";
caption["monty07"] = "Harold and Vicki, in &lsquo;You Rule My World Reprise&rsquo;<BR>Photo by Mark Lyons";

horiz["monty08"] = 800;
vert["monty08"] = 520;
prev["monty08"] = "monty07";
nxt["monty08"] = "monty09";
caption["monty08"] = "Baring it all - aka &ldquo;The Full Monty&rdquo;";

horiz["monty09"] = 800;
vert["monty09"] = 540;
prev["monty09"] = "monty08";
nxt["monty09"] = "monty01";
caption["monty09"] = "Postshow Plus Light Wall Glow<BR>Photo by Mark Lyons";

horiz["dance201"] = 800;
vert["dance201"] = 500;
prev["dance201"] = "dance208";
nxt["dance201"] = "dance202";
caption["dance201"] = "<I>Don Quixote</I> Pas De Deux - Adagio";

horiz["dance202"] = 800;
vert["dance202"] = 500;
prev["dance202"] = "dance201";
nxt["dance202"] = "dance203";
caption["dance202"] = "<I>Don Quixote</I> - Male Variation";

horiz["dance203"] = 800;
vert["dance203"] = 500;
prev["dance203"] = "dance202";
nxt["dance203"] = "dance204";
caption["dance203"] = "<I>Chronicles</I> - Opening";

horiz["dance204"] = 800;
vert["dance204"] = 500;
prev["dance204"] = "dance203";
nxt["dance204"] = "dance205";
caption["dance204"] = "<I>Chronicles</I> - Closing";

horiz["dance205"] = 800;
vert["dance205"] = 500;
prev["dance205"] = "dance204";
nxt["dance205"] = "dance206";
caption["dance205"] = "<I>Some Seasons</I> - Spring";

horiz["dance206"] = 800;
vert["dance206"] = 500;
prev["dance206"] = "dance205";
nxt["dance206"] = "dance207";
caption["dance206"] = "<I>Some Seasons</I> - Intro to Summer";

horiz["dance207"] = 800;
vert["dance207"] = 500;
prev["dance207"] = "dance206";
nxt["dance207"] = "dance208";
caption["dance207"] = "<I>Some Seasons</I> - Cold, Rainy Autumn";

horiz["dance208"] = 800;
vert["dance208"] = 500;
prev["dance208"] = "dance207";
nxt["dance208"] = "dance201";
caption["dance208"] = "<I>Some Seasons</I> - Happy, Playful Winter";

horiz["werther01"] = 800;                                            
vert["werther01"] = 500;                                             
prev["werther01"] = "werther04";                                      
nxt["werther01"] = "werther02";                                       
caption["werther01"] = "Silhouette on Scrim - Doppleganger";

horiz["werther02"] = 800;                                            
vert["werther02"] = 500;                                             
prev["werther02"] = "werther01";                                      
nxt["werther02"] = "werther03";                                       
caption["werther02"] = "Layers upon layers including projected imagery";

horiz["werther03"] = 800;                                            
vert["werther03"] = 500;                                             
prev["werther03"] = "werther02";                                      
nxt["werther03"] = "werther04";                                       
caption["werther03"] = "Layers utilizing the third surface as Cyc";

horiz["werther04"] = 800;                                            
vert["werther04"] = 500;                                             
prev["werther04"] = "werther03";                                      
nxt["werther04"] = "werther01";                                       
caption["werther04"] = "Final &rsquo;God Light&lsquo; moment of simplicity";

horiz["werther05"] = 800;                                            
vert["werther05"] = 500;                                             
prev["werther05"] = "werther11";                                      
nxt["werther05"] = "werther06";                                       
caption["werther05"] = "Werther&rsquo;s Doppelganger in the Doorway";

horiz["werther06"] = 800;                                            
vert["werther06"] = 500;                                             
prev["werther06"] = "werther05";                                      
nxt["werther06"] = "werther07";                                       
caption["werther06"] = "Werther meets Charlotte - Love at First Sight";

horiz["werther07"] = 800;                                            
vert["werther07"] = 500;                                             
prev["werther07"] = "werther06";                                      
nxt["werther07"] = "werther08";                                       
caption["werther07"] = "Tormented by a promise to her dying mother";

horiz["werther08"] = 800;                                            
vert["werther08"] = 500;                                             
prev["werther08"] = "werther07";                                      
nxt["werther08"] = "werther09";                                       
caption["werther08"] = "The Ossian globe and a tormented Werther";

horiz["werther09"] = 800;                                            
vert["werther09"] = 500;                                             
prev["werther09"] = "werther08";                                      
nxt["werther09"] = "werther10";                                       
caption["werther09"] = "Albert returns to find the door open, but Charlotte just sits there";

horiz["werther10"] = 800;                                            
vert["werther10"] = 500;                                             
prev["werther10"] = "werther09";                                      
nxt["werther10"] = "werther11";                                       
caption["werther10"] = "Overlayed live video in a projected still image";

horiz["werther11"] = 800;                                            
vert["werther11"] = 500;                                             
prev["werther11"] = "werther10";                                      
nxt["werther11"] = "werther05";                                       
caption["werther11"] = "The end scenes lit by one single, simplistic source (a 6K HMI)";

horiz["dharma01"] = 800;                                            
vert["dharma01"] = 480;                                             
prev["dharma01"] = "dharma06";                                      
nxt["dharma01"] = "dharma02";                                       
caption["dharma01"] = "The Preshow look, highlighting set elements";

horiz["dharma02"] = 800;                                            
vert["dharma02"] = 480;                                             
prev["dharma02"] = "dharma01";                                      
nxt["dharma02"] = "dharma03";                                       
caption["dharma02"] = "Video-only section - moving lights through haze add an environmental layer";

horiz["dharma03"] = 800;                                            
vert["dharma03"] = 480;                                             
prev["dharma03"] = "dharma02";                                      
nxt["dharma03"] = "dharma04";                                       
caption["dharma03"] = "Beginning with the solo dancer";

horiz["dharma04"] = 800;                                            
vert["dharma04"] = 480;                                             
prev["dharma04"] = "dharma03";                                      
nxt["dharma04"] = "dharma05";                                       
caption["dharma04"] = "Layering the dancer with video";

horiz["dharma05"] = 800;                                            
vert["dharma05"] = 480;                                             
prev["dharma05"] = "dharma04";                                      
nxt["dharma05"] = "dharma06";                                       
caption["dharma05"] = " ";

horiz["dharma06"] = 800;                                            
vert["dharma06"] = 480;                                             
prev["dharma06"] = "dharma05";                                      
nxt["dharma06"] = "dharma01";                                       
caption["dharma06"] = " ";

horiz["lenfant01"] = 800;                                            
vert["lenfant01"] = 460;                                             
prev["lenfant01"] = "lenfant06";                                      
nxt["lenfant01"] = "lenfant02";                                       
caption["lenfant01"] = "The Naughty Child, refusing to do his homework";

horiz["lenfant02"] = 800;                                            
vert["lenfant02"] = 460;                                             
prev["lenfant02"] = "lenfant01";                                      
nxt["lenfant02"] = "lenfant03";                                       
caption["lenfant02"] = "The Fire comes to Life";

horiz["lenfant03"] = 800;                                            
vert["lenfant03"] = 460;                                             
prev["lenfant03"] = "lenfant02";                                      
nxt["lenfant03"] = "lenfant04";                                       
caption["lenfant03"] = "The Fairy Princess rises out of her storybook";

horiz["lenfant04"] = 800;                                            
vert["lenfant04"] = 460;                                             
prev["lenfant04"] = "lenfant03";                                      
nxt["lenfant04"] = "lenfant05";                                       
caption["lenfant04"] = "The set changes to the enchanted garden";

horiz["lenfant05"] = 800;                                            
vert["lenfant05"] = 460;                                             
prev["lenfant05"] = "lenfant04";                                      
nxt["lenfant05"] = "lenfant06";                                       
caption["lenfant05"] = "The animals realize the child's potential for kindness";

horiz["lenfant06"] = 800;                                            
vert["lenfant06"] = 460;                                             
prev["lenfant06"] = "lenfant05";                                      
nxt["lenfant06"] = "lenfant01";                                       
caption["lenfant06"] = "Mama comes to comfort the child";

//horiz["bt0"] = ;
//vert["bt0"] = ;
//prev["bt0"] = "bt0";
//nxt["bt0"] = "bt0";
//caption["bt0"] = "";


var hz=horiz[imgNum]+50;
var vt=vert[imgNum]+175;

var scrollup = "no";
if (vt < screen.height-80) {
	var winheight=(screen.height-vt-80)/2+20;
	}
else {
	var winheight=40;
	var scrollup="yes";
	var vt=screen.height-80;
	}

if (hz < screen.width-40) {
	var winwidth=(screen.width-hz+60)/2;
	}
else {
	var winwidth=20;
	var scrollup="yes";
	var hz=screen.width-40;
}
var newWindow;
newWindow=window.open("","newWin","resizable=yes,status=yes,menubar=no,scrollbars="+scrollup+",width="+hz+",height="+vt+",left="+winwidth+",top="+winheight);
newWindow.resizeTo(hz,vt);
newWindow.moveTo(winwidth,winheight);
newWindow.document.clear();

newWindow.document.close();
newWindow.document.write ("<html><head><title>Photo Album</title></head><body text='white' bgcolor='black'><center><img name='mainimage' border='0' height='");
newWindow.document.write (vert[imgNum]);
newWindow.document.write ("' width='");
newWindow.document.write (horiz[imgNum]);
newWindow.document.write ("' src='photos/");
newWindow.document.write (imgNum);
newWindow.document.write (".jpg'><BR><BR>");
newWindow.document.write (caption[imgNum]);
newWindow.document.write ("<BR><TABLE width=90% border=0 cellspacing=0 cellpadding=0><TR><TD width=33% align=left valign=middle><form><input type=button value='<- Previous' onClick=OpenAlbumPhoto('");
newWindow.document.write (prev[imgNum]);
newWindow.document.write ("')></form></TD><TD width=33% align=center valign=bottom><BR><form><input type=button value='close window' onClick='javascript:self.close()'></form></TD><TD width=33% align=right valign=middle><form><input type=button value='Next ->' onClick=OpenAlbumPhoto('");
newWindow.document.write (nxt[imgNum]);
newWindow.document.write ("')></form></TD></TR></TABLE></center><script src='./navbar.js'></script></body></html>");
newWindow.document.close();
newWindow.focus();

}
