/* gegevens van de albums: mapnaam, naam knopafbeelding, formaat knopafbeelding (2:3/3:2 of 3:4/4:3), bijschrift, aantal foto's in map */
var a_map      = new Array();
var a_pict     = new Array();
var a_format   = new Array();
var a_tekst    = new Array();
var a_href     = new Array();
var a_nrpics   = new Array();
var a_start    = new Array();
var a_eind     = new Array();


/* gegevens van de foto's in de albums: bestandsnaam, formaat (2:3/3:2 of 3:4/4:3), bijschrift */
var f_map      = new Array();
var f_pict     = new Array();
var f_format   = new Array();
var f_tekst    = new Array();
var f_href     = new Array();

var map		    = "images/expo/";	/* map waar de albums staan */
var pict_map        = "";		/* submap waar foto's staan */
var thumb_map       = "thumb/";		/* submap waar thumbnails staan */
var this_map	    = "";
var this_map_nr     = -1;
var old_img_nr      = -1;		/* volgnummer van te verkleinen foto (-1 als alle foto's klein zijn) */
var new_img_nr      = -1;		/* volgnummer van te vergroten foto (-1 als alle foto's klein zijn) */
var name            = "";
var step;
var blokkeer_klik   = "nee";		/* blokkeer muisklik tijdens vergroten/verkleinen */
var wachttijd       = 30;		/* wachttijd in milliseconde voor volgende stap in vergroten/verkleinen */
var wachttijd_slide = 2000;		/* wachttijd in milliseconde voor volgende foto bij slideshow */
var volg_nr;				/* volgnummer van foto binnen reeks ('foto ... van ...') */
var cellpadding     = 4;		/* afstand tot celrand binnen tabel */
var max_pics_on_row = 4;		/* maximum aantal foto's per regel */
var nr_pics_on_row;			/* teller aantal foto's op regel */
var old_map = "";
var pictnr;

var i        = 0;
var j        = 0;
var str;
var content;
var img = new Image();
var objTd;
var lang = "nl";

j = 0;

/* vul_foto_lijst( map, pct, frmt, tkst, href ) */
vul_foto_lijst( 'pers', 'an-30042008.jpg', '4x3', '', '' );
vul_foto_lijst( 'pers', 'vk-13052008.jpg', '4x3', 'Pers/Press', 'foto_pers.php' );
vul_foto_lijst( 'pers', 'nhd-10052008.jpg', '3x2', '', '' );
vul_foto_lijst( 'pers', 'nhd-13052008.jpg', '3x2', '', '' );

vul_foto_lijst( 'Leo Vietor', 'gert-jan.jpg', '3x4', '' );
vul_foto_lijst( 'Leo Vietor', 'paaldansen.jpg', '2x3', 'Leo Viëtor' );

vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5103.JPG', '4x3', 'Paul Griffioen: Open Stage' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5106.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5111.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5113.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5116.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5122.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5127.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5130.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5132.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5135.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5136.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5137.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5139.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5141.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5143.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5144.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5147.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5153.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5162.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5164.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5166.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5170.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5172.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5174.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5176.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5178.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5185.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5196.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5197.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5198.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5200.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5202.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5203.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5205.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5208.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5210.JPG', '4x3', 'Paul Griffioen: Open Stage' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5213.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5220.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5223.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5224.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5226.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5230.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5232.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5235.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5236.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5237.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5238.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5242.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5249.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5251.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5255.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5258.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5260.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5273.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5274.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5280.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5283.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5288.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5298.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5299.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5308.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5310.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5313.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5316.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5323.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5328.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5333.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5338.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5339.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5351.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5357.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5359.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5361.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5362.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5368.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5372.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen OS', 'DSC_5380.JPG', '4x3', '' );

vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5388.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5391.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5392.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5395.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5396.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5399.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5402.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5406.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5412.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5413.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5420.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5424.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5429.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5431.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5434.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5435.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5440.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5444.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5446.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5448.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5449.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5450.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5453.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5457.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5462.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5465.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5469.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5475.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5482.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5484.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5485.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5491.JPG', '4x3', 'Paul Griffioen: Gala-show' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5495.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5499.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5501.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5502.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5503.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5506.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5508.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5513.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5516.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5517.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5520.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5522.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5523.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5527.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5528.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5530.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5536.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5537.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5539.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5546.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5549.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5550.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5551.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5558.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5560.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5562.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5565.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5566.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5567.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5575.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5579.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5580.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5581.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5582.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5589.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5592.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5596.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5599.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5603.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5604.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5607.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5613.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5615.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5616.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5618.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5621.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5625.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5626.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5627.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5628.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5629.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5635.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5638.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5645.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5648.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5649.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5650.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5651.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5652.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5653.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5654.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5655.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5657.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5668.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5677.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5681.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5683.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5685.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5689.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5694.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5701.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5704.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5707.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5712.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5715.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5717.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5719.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5723.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5736.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5740.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5743.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5751.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5753.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5755.JPG', '4x3', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5758.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5761.JPG', '3x4', '' );
vul_foto_lijst( 'Paul Griffioen Gala', 'DSC_5764.JPG', '3x4', '' );

vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 012.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 013.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 014.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 015.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 016.jpg', '3x2', 'Jeanette Brandsma' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 017.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 018.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 019.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 020.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 021.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 023.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 024.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 025.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 026.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 027.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 028.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 029.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 030.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 031.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 032.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 033.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 034.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 035.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 037.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 038.jpg', '3x2', '' );
vul_foto_lijst( 'Jeanette Brandsma', 'acro festival Alkmaar 2008 039.jpg', '3x2', '' );

vul_foto_lijst( 'Dave', 's6300058.jpg', '4x3', '' );
vul_foto_lijst( 'Dave', 's6300061.jpg', '3x4', '' );
vul_foto_lijst( 'Dave', 's6300070.jpg', '4x3', 'Dave: pyramide-workshop' );
vul_foto_lijst( 'Dave', 's6300071.jpg', '3x4', '' );
vul_foto_lijst( 'Dave', 's6300072.jpg', '3x4', '' );

vul_foto_lijst( 'Jeroen Manders', 'DSCF3496.jpg', '3x4', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3498.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3507.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3511.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3521.jpg', '3x4', 'Jeroen Manders' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3523.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3524.jpg', '3x4', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3532.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3534.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3537.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3573.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3574.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3596.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3600.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3602.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3605.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3606.jpg', '3x4', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3623.jpg', '4x3', '' );
vul_foto_lijst( 'Jeroen Manders', 'DSCF3639.jpg', '3x4', '' );

i = -1;
for ( idx=0; idx < f_pict.length; idx++ )
{
  if ( f_map[idx] != old_map )
  {
    if ( i >= 0 )
    {
      a_eind[i] = idx - 1;
      a_nrpics[i] = a_eind[i] - a_start[i] + 1;
    }
    i++;
    a_start[i] = idx;
    old_map = f_map[idx];
  }
  if ( f_tekst[idx] != "" )
  {
    vul_album_lijst( f_map[idx], f_pict[idx], f_format[idx], f_tekst[idx], f_href[idx] );
  }
}
a_eind[i] = f_pict.length - 1;
a_nrpics[i] = a_eind[i] - a_start[i] + 1;

/* afmetingen in pixels voor thumbnails; korte/lange zijde thumb verh. 2:3 en verh. 3:4 */
var t_width;
var t_height;
var t_2x3_kort =  80;
var t_2x3_lang = 120;
var t_3x4_kort =  90;
var t_3x4_lang = 120;

/* afmetingen in pixels voor grote afbeelding; korte/lange zijde afbeelding verh. 2:3 en verh. 3:4 */
var i_width;
var i_height;
var i_2x3_kort = 240;
var i_2x3_lang = 360;
var i_3x4_kort = 270;
var i_3x4_lang = 360;

/* stapgrootte in pixels bij stapsgewijs vergroten/verkleinen */
var st_width;
var st_height;
var st_2x3_kort = 8;
var st_2x3_lang = 12;
var st_3x4_kort = 9;
var st_3x4_lang = 12;

function vul_album_lijst( map, pct, frmt, tkst, href )
{
  a_map[i]	= map;
  a_pict[i]	= pct;
  a_format[i]	= frmt;
  a_tekst[i]	= tkst;
  a_href[i]	= href;
}
 
function vul_foto_lijst( map, pct, frmt, tkst, href )
{
  f_map[j]	= map;
  f_pict[j]	= pct;
  f_format[j]	= frmt;
  f_tekst[j]	= tkst;
  f_href[j]	= href;
  j++;
}
 
function toon_overzicht_alle_albums( this_lang )
{
  var _u   = 'festival2009';
  var _d = "akrobatiek.nl";
  var _l   = _u + "@" + _d;
  var _m = String.fromCharCode(60)+'a href=mailto:'+_l+'>';

  if ( this_lang != "" && this_lang != null ){
    lang = this_lang;
  }

  if ( lang == "uk" ){
    str = "";
  }else{
    str = "";
  }

  str +=
    "<p>" +
    "";

  str +=
    "<table align=center cellspacing=0 cellpadding=10 border=0>" +
    "  <tr valign=top align=center>" +
    "    <td>" +
    "";

  cellpadding = 10;
  str += begin_tabel();

  max_pics_on_row = 3;
  nr_pics_on_row = 0;

  for( idx = 0; idx < a_map.length; idx++)
  {
    bepaal_formaat( a_format[idx] );

    str +=
      "    <td>" +
/*      "      <a href=\"" + map + a_map[idx] + "/index.htm\" target=_blank onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\">" + */
      "";

    if ( a_href[idx] != "" && a_href[idx] != null )
    {
      str +=
	"      <a href='" + lang + a_href[idx] + "' onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\">" +
	"";
    }
    else
    {
      str +=
	"      <a href=\"javascript:toon_index_album('" + idx + "');\" onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\">" +
	"";
    }

    str +=
      "      <img src=\"" + map + a_map[idx] + "/" + thumb_map + a_pict[idx] + "\" border=2 bordercolor=#000000 alt=\"open " + a_map[idx] + "\"" +
      " width=" + t_width + " height=" + t_height + "></a>" +
      "<br>" + a_tekst[idx] +
      "<br>" + a_nrpics[idx] + " foto('s)" +
      "    </td>" +
      "";

    nr_pics_on_row += 1;
    if ( nr_pics_on_row == max_pics_on_row )
    {
      str += eind_rij();
      str += begin_rij();
      nr_pics_on_row = 0;
    }
  }

  str += eind_tabel();
  str += eind_tabel();

  document.getElementById("album-venster").innerHTML = str;
}

function toon_index_album( map_nr )
{
  blokkeer_klik = "ja";
  this_map_nr = map_nr;
  this_map = a_map[ this_map_nr ] + "/";

  cellpadding = 4;
  content =
    "<center>" +
    "<b>" + a_tekst[ this_map_nr ] + "</b><br>" +
    "";

  if ( lang == "uk" )
  {
    content +=
      "click on a picture to enlarge it<br>" +
      "<a href='javascript:toon_overzicht_alle_albums()' onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\"><u>to all albums</u></a><br>" +
      "<a href='javascript:toon_slideshow()' onMouseOver=\"self.status='';return true\"><u>start slide-show</u></a>" + 
      "";
  }
  else
  {
    content +=
      "klik op een foto om deze te vergroten<br>" +
      "<a href='javascript:toon_overzicht_alle_albums()' onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\"><u>naar alle albums</u></a><br>" +
      "<a href='javascript:toon_slideshow()' onMouseOver=\"self.status='';return true\"><u>start slide-show</u></a>" + 
      "";
  }

  content += begin_tabel();

  max_pics_on_row = 4;
  nr_pics_on_row = 0;
  for ( idx = 0; idx < a_nrpics[ this_map_nr ]; idx++ )
  {
    pictnr = a_start[ this_map_nr ] + idx;
    name = "img" + pictnr;
    img.src    = map + this_map + thumb_map + f_pict[ pictnr ];
    bepaal_formaat( f_format[ pictnr ] );

    content +=
      "    <td>" +
      "      <a href='javascript:img_resize(" + pictnr + ")' onMouseOver=\"self.status='';return true\">" + 
      "      <img name=\"" + name + "\" src=\"" + img.src + "\" alt=\"" + bepaal_bijschrift(idx,a_nrpics[this_map_nr]) + "\" width=" + t_width + " height=" + t_height + " border=1>" +
      "      </a>" +
      "    </td>" +
      "";

    nr_pics_on_row += 1;
    if ( nr_pics_on_row == max_pics_on_row )
    {
      content += eind_rij();
      content += begin_rij();
      nr_pics_on_row = 0;
    }
  }

  content += eind_tabel();
  content += "</center>";

  document.getElementById("album-venster").innerHTML = content;

  blokkeer_klik = "nee";
}

function img_resize( nr )
{
  if ( blokkeer_klik == "ja" )
  {
    return;
  }

  new_img_nr = nr;
  blokkeer_klik = "ja";

  if ( old_img_nr != -1 )
  {
    step = 0;
    name = "img" + old_img_nr;

    bepaal_formaat( f_format[ old_img_nr ] );
  }
  setTimeout("img_resize_step1()",wachttijd);
}

function img_resize_step1()
{
  if ( old_img_nr == -1 )
  {
    img_resize_step2();
    return;
  }

  img.width  = i_width - (step * st_width);
  img.height = i_height - (step * st_height);
  zet_formaat( name );

  if ( img.width > t_width )
  {
    step += 1;
    setTimeout("img_resize_step1()",wachttijd);
  }
  else
  {
    img.src = map + this_map + thumb_map + f_pict[ old_img_nr ];
    zet_src( name );
    img.width  = t_width;
    img.height = t_height;
    zet_formaat( name );

    if ( old_img_nr == new_img_nr )
    {
      old_img_nr = -1;
      blokkeer_klik = "nee";
    }
    else
    {
      img_resize_step2();
    }
  }
}

function img_resize_step2()
{
  name    = "img" + new_img_nr;
  img.src = map + this_map + pict_map + f_pict[ new_img_nr ];
  zet_src( name );

  step = 0;
  bepaal_formaat( f_format[ new_img_nr ] );

  setTimeout("img_resize_step3()",wachttijd);
}

function img_resize_step3()
{
  img.width  = t_width + (step * st_width);
  img.height = t_height + (step * st_height);
  zet_formaat( name );

  if ( img.width < i_width )
  {
    step += 1;
    setTimeout("img_resize_step3()",wachttijd);
  }
  else
  {
    img.width  = i_width;
    img.height = i_height;
    old_img_nr = new_img_nr;
    blokkeer_klik = "nee";
  }
}

function toon_slideshow()
{
  if ( new_img_nr < a_start[ this_map_nr ] || new_img_nr > a_eind[ this_map_nr ] )
  {
    new_img_nr = a_start[ this_map_nr ];
  }

  img.src = map + this_map + pict_map + f_pict[ new_img_nr ];
  bepaal_formaat( f_format[ new_img_nr ] );

  content = "";

  content +=
    "<center>" +
    "<b>" + a_tekst[ this_map_nr ] + "</b><br>" +
    "<table cellspacing=0 cellpadding=0 border=0>" +
    " <tr valign=middle align=center>" +
    "  <td>" +
    "   <a href='javascript:stop_slide();toon_overzicht_alle_albums()' onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\"><u>naar alle albums</u></a><br>" +
    "   <a href='javascript:stop_slide();toon_index_album(" + this_map_nr + ");' onMouseOver=\"self.status='foto-albums';return true;\" onMouseOut=\"self.status='';return true;\"><u>stop slide-show</u><br>" +
    "   <img name=\"slide\" src=\"" + img.src + "\" width=" + i_width + " height=" + i_height + " border=1><br>" +
    "   </a>" +
    "  </td>" +
    " </tr>" +
    "</table>" +
    "</center>" +
    "";

  document.getElementById("album-venster").innerHTML = content;

  setTimeout("toon_slide()",wachttijd_slide);
}

function stop_slide()
{
  new_img_nr = -10;
}

function toon_slide()
{
  if ( new_img_nr == -10 )
  {
    return;
  }

  new_img_nr += 1;
  if ( new_img_nr > a_eind[ this_map_nr ] )
  {
    new_img_nr = a_start[ this_map_nr ];
  }

  img.src = map + this_map + pict_map + f_pict[ new_img_nr ];
  zet_src( "slide" );

  bepaal_formaat( f_format[ new_img_nr ] );
  img.width  = i_width;
  img.height = i_height;
  zet_formaat( "slide" );

  setTimeout("toon_slide()",wachttijd_slide);
}

function bepaal_bijschrift( nr, max )
{
  var tekst;

  volg_nr = nr + 1;

  if ( lang == "uk" )
  {
    tekst = "picture " + volg_nr + " of " + max;
  }
  else
  {
    tekst = "foto " + volg_nr + " van " + max;
  }

/*
  if ( f_tekst[nr] != "" )
  {
    tekst += ": " + f_tekst[nr];
  }
*/
  return ( tekst );
}

function zet_src( naam )
{
  if ( document.images )  { eval( 'document.images[ "'+naam+'" ].src='+'img.src' ); }
}

function zet_alt( naam )
{
  if ( document.images )  { eval( 'document.images[ "'+naam+'" ].alt='+'img.alt' ); }
}

function zet_formaat( naam )
{
  if ( document.images )
  {
    eval( 'document.images[ "'+naam+'" ].width='+'img.width' );
    eval( 'document.images[ "'+naam+'" ].height='+'img.height' );
  }
}

function bepaal_formaat( format )
{
  if ( format == "2x3" ) { t_width  = t_2x3_kort; t_height = t_2x3_lang; i_width = i_2x3_kort; i_height = i_2x3_lang; st_width = st_2x3_kort; st_height = st_2x3_lang; }
  if ( format == "3x2" ) { t_width  = t_2x3_lang; t_height = t_2x3_kort; i_width = i_2x3_lang; i_height = i_2x3_kort; st_width = st_2x3_lang; st_height = st_2x3_kort; }
  if ( format == "3x4" ) { t_width  = t_3x4_kort; t_height = t_3x4_lang; i_width = i_3x4_kort; i_height = i_3x4_lang; st_width = st_3x4_kort; st_height = st_3x4_lang; }
  if ( format == "4x3" ) { t_width  = t_3x4_lang; t_height = t_3x4_kort; i_width = i_3x4_lang; i_height = i_3x4_kort; st_width = st_3x4_lang; st_height = st_3x4_kort; }
}

function begin_tabel()
{
  return(
    "<table cellspacing=0 cellpadding=" + cellpadding + " border=0>" +
    begin_rij() +
    "" );
}

function eind_tabel( type )
{
  return(
    eind_rij() +
    "</table>" +
    "" );
}

function begin_rij()
{
  return(
    "  <tr valign=top align=center>" +
    "" );
}

function eind_rij()
{
  return(
    "  </tr>" +
    "" );
}

function getObj(cellNm)
{
  var objBr = new checkBrowser();
  var obj;
  if (objBr.ns6)
  {					
    obj = document.getElementById(cellNm);				
  }
  else if (objBr.ns)
  {					
    obj = eval("window.document." + cellNm);
  }
  else
  {
    obj = document.all[cellNm];
  }
	
  return obj;
}

function checkBrowser()
{
  var b = navigator.appName;
  if (b=="Netscape")
  {
    this.b = "ns";
  } 
  else if (b=="Microsoft Internet Explorer")
  { 
    this.b = "ie";
  }
  else
  { 
    this.b = b;
  }

  this.v = parseFloat(navigator.appVersion);

  this.ie4=(navigator.userAgent.indexOf('MSIE 4')>0);
  this.ie5=(navigator.userAgent.indexOf('MSIE 5')>0);
  this.ie55=(navigator.userAgent.indexOf('MSIE 5.5')>0);
  this.ie6=(navigator.userAgent.indexOf('MSIE 6')>0);
  this.ns4=(this.b=="ns" && this.v>=4.08 && this.v<5);
  this.ns6=(this.b=="ns" && this.v>=5);
  this.mac = (navigator.appVersion.indexOf("Macintosh")>0);
  this.win = (navigator.appVersion.indexOf("Win")>0);
  this.ie5mac = (this.ie5) && (this.mac);
  
  // is the users browser compatible with the webapplication?
  this.ie = ((this.ie5 || this.ie55 || this.ie6) || (this.ie4 && !this.mac)) 	
  this.ns = (this.ns4);
  this.compatible=(this.ie || this.ns || this.ns6); 	
  return (this)
}

