Source

holyspiritwebster.org / images / Easter_Egg_Hunt_2009 / ctl.htm

Full commit
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<!--

***** Do not modifiy this HTML. *****
***** Instead, modify the template.htm file. *****

-->
<!-- Generated by Albumatic (2.01) at 01/31/10 20:50:02 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<!-- Copyright 1998-2001 by Marc J. Rochkind. All rights reserved. -->
<HEAD>
<META NAME="generator" Content="Albumatic">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<!-- Copyright 1998-2001 by Marc J. Rochkind. All rights reserved. -->
<TITLE>Control</TITLE>
<link rel="stylesheet" type="text/css" href="albstyles.css">
<!-- For Opera, these only work here, not in an external stylesheet. -->
<style TYPE="text/css">
<!--
.idx-linkstyle A:link { color:Purple }
.idx-linkstyle A:visited { color:Purple }
.idx-linkstyle A:active { color:Purple }
-->
</style>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

<!-- ------------------- Detect Browser Name ------------------- -->
var g_browser_thestring;
var g_browser_name = browser_name();

function browser_name()
{
	var detect = navigator.userAgent.toLowerCase();
	var OS, browser, version;

	if (browser_checkIt(detect, 'konqueror'))
	{
		browser = "Konqueror";
		OS = "Linux";
	}
	else if (browser_checkIt(detect, 'omniweb')) browser = "OmniWeb"
	else if (browser_checkIt(detect, 'opera')) browser = "Opera"
	else if (browser_checkIt(detect, 'webtv')) browser = "WebTV";
	else if (browser_checkIt(detect, 'icab')) browser = "iCab"
	else if (browser_checkIt(detect, 'msie')) browser = "Internet Explorer"
	else if (!browser_checkIt(detect, 'compatible'))
	{
		browser = "Netscape Navigator"
		version = detect.charAt(8);
	}
	else browser = "An unknown browser";

	if (!version) version = detect.charAt(place + g_browser_thestring.length);

	if (!OS)
	{
		if (browser_checkIt(detect, 'linux')) OS = "Linux";
		else if (browser_checkIt(detect, 'x11')) OS = "Unix";
		else if (browser_checkIt(detect, 'mac')) OS = "Mac"
		else if (browser_checkIt(detect, 'win')) OS = "Windows"
		else OS = "an unknown operating system";
	}
	return browser;
}

function browser_checkIt(detect, string)
{
	place = detect.indexOf(string) + 1;
	g_browser_thestring = string;
	return place;
}

<!-- ---------------- Detect Browser Name (End) ---------------- -->

var g_timeoutId;
var g_cur_photo;
var g_slideshow_interval = 3000;
var g_slideshow_started = false;

function alb_show_enl(n)
{
	g_cur_photo = n;
	document.form1.LabelPos.value = " " + ((g_cur_photo - 0) + 1) + " of " + g_alb_photos_idx.length;
	parent.alb_enl.location.replace("enl.htm?" +
	  "image=" + escape(g_alb_photos_enl[n]) + "&" +
	  "label=" + g_alb_labels[n] + "&" + // label and caption are already escaped
	  "caption=" + g_alb_captions[n]);
	alb_enable_controls();
}

function alb_first()
{
	alb_slideshow_stop();
	alb_show_enl(0);
}

function alb_last()
{
	alb_slideshow_stop();
	alb_show_enl(g_alb_photos_idx.length - 1);
}

function alb_prev()
{
	alb_slideshow_stop();
	if (g_cur_photo > 0)
		alb_show_enl(g_cur_photo - 1);
}

function alb_next()
{
	alb_slideshow_stop();
	if (g_cur_photo < g_alb_photos_idx.length - 1)
		alb_show_enl((g_cur_photo - 0) + 1);
}

function alb_next_slide()
{
	if (g_cur_photo < g_alb_photos_idx.length - 1) {
		alb_show_enl((g_cur_photo - 0) + 1);
		if (g_slideshow_interval > 0)
			g_timeoutId = setTimeout("alb_next_slide();", g_slideshow_interval);
	}
	else
		alb_slideshow_stop();
}

function alb_next_slide_manual()
{
	if (g_slideshow_interval == 0 && g_slideshow_started)
		alb_next_slide();
}

function alb_slideshow_start()
{
	if (g_slideshow_started) {
		alb_slideshow_stop();
		return;
	}
	document.form1.BtnFirst.disabled = true; // seems to work in IE5.5; not documeted in HTML4
	document.form1.BtnPrev.disabled = true;
	document.form1.BtnNext.disabled = true;
	document.form1.BtnLast.disabled = true;
	//document.form1.BtnStart.disabled = true;
	//document.form1.BtnStop.disabled = false;
	document.form1.select1.disabled = true;
	g_slideshow_started = true;
	clearTimeout(g_timeoutId);
	document.form1.BtnStart.value = "Stop Slide Show";
	g_cur_photo = -1;
	if (g_slideshow_interval > 0) // if not, onclick for body will advance the slide
		alb_next_slide();
}

function alb_slideshow_stop()
{
	g_slideshow_started = false;
	document.form1.BtnStart.value = "Start Slide Show";
	alb_enable_controls();
	clearTimeout(g_timeoutId);
}

function alb_select_interval()
{
	g_slideshow_interval = document.forms[0].select1.options[document.forms[0].select1.selectedIndex].value;
	//alb_show_enl(0);
}

function alb_enable_controls()
{
	if (!g_slideshow_started) {
		document.form1.BtnFirst.disabled = g_cur_photo <= 0;
		document.form1.BtnPrev.disabled = g_cur_photo <= 0;
		document.form1.BtnNext.disabled = g_cur_photo >= g_alb_photos_idx.length - 1;
		document.form1.BtnLast.disabled = g_cur_photo >= g_alb_photos_idx.length - 1;
		//document.form1.BtnStart.disabled = false;
		//document.form1.BtnStop.disabled = true;
		document.form1.select1.disabled = false;
	}
}

function alb_arraywin()
{
	if (parent.parent != null && parent.parent.alb_contents != null)
		return parent.parent.alb_contents;
	return parent;
}

function generate_index(nrows)
{
}

function alb_start()
{
	alb_show_enl(parent.location.search.substr(1));
	alb_enable_controls();
}

function alb_index_page()
{
	parent.location.replace("index.htm");
}

//document.write(alb_arraywin().g_alb_photos_enl[0]);
</SCRIPT>
</HEAD>

<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
g_alb_photos_idx = new Array();
g_alb_photos_enl = new Array();
g_alb_labels = new Array();
g_alb_captions = new Array();
g_alb_widths = new Array();
g_alb_photos_idx[0] = "S_100_1349.jpg";
g_alb_photos_enl[0] = "L_100_1349.jpg";
g_alb_labels[0] = "";
g_alb_captions[0] = "";
g_alb_widths[0] = 576;
g_alb_photos_idx[1] = "S_100_1350.jpg";
g_alb_photos_enl[1] = "L_100_1350.jpg";
g_alb_labels[1] = "";
g_alb_captions[1] = "";
g_alb_widths[1] = 576;
g_alb_photos_idx[2] = "S_100_1351.jpg";
g_alb_photos_enl[2] = "L_100_1351.jpg";
g_alb_labels[2] = "";
g_alb_captions[2] = "";
g_alb_widths[2] = 576;
g_alb_photos_idx[3] = "S_100_1352.jpg";
g_alb_photos_enl[3] = "L_100_1352.jpg";
g_alb_labels[3] = "";
g_alb_captions[3] = "";
g_alb_widths[3] = 576;
g_alb_photos_idx[4] = "S_100_1353.jpg";
g_alb_photos_enl[4] = "L_100_1353.jpg";
g_alb_labels[4] = "";
g_alb_captions[4] = "";
g_alb_widths[4] = 576;
g_alb_photos_idx[5] = "S_100_1354.jpg";
g_alb_photos_enl[5] = "L_100_1354.jpg";
g_alb_labels[5] = "";
g_alb_captions[5] = "";
g_alb_widths[5] = 576;
g_alb_photos_idx[6] = "S_100_1355.jpg";
g_alb_photos_enl[6] = "L_100_1355.jpg";
g_alb_labels[6] = "";
g_alb_captions[6] = "";
g_alb_widths[6] = 576;
g_alb_photos_idx[7] = "S_100_1356.jpg";
g_alb_photos_enl[7] = "L_100_1356.jpg";
g_alb_labels[7] = "";
g_alb_captions[7] = "";
g_alb_widths[7] = 576;
g_alb_photos_idx[8] = "S_100_1357.jpg";
g_alb_photos_enl[8] = "L_100_1357.jpg";
g_alb_labels[8] = "";
g_alb_captions[8] = "";
g_alb_widths[8] = 576;
g_alb_photos_idx[9] = "S_100_1358.jpg";
g_alb_photos_enl[9] = "L_100_1358.jpg";
g_alb_labels[9] = "";
g_alb_captions[9] = "";
g_alb_widths[9] = 576;
g_alb_photos_idx[10] = "S_100_1359.jpg";
g_alb_photos_enl[10] = "L_100_1359.jpg";
g_alb_labels[10] = "";
g_alb_captions[10] = "";
g_alb_widths[10] = 576;
g_alb_photos_idx[11] = "S_100_1360.jpg";
g_alb_photos_enl[11] = "L_100_1360.jpg";
g_alb_labels[11] = "";
g_alb_captions[11] = "";
g_alb_widths[11] = 576;
g_alb_photos_idx[12] = "S_100_1361.jpg";
g_alb_photos_enl[12] = "L_100_1361.jpg";
g_alb_labels[12] = "";
g_alb_captions[12] = "";
g_alb_widths[12] = 576;
g_alb_photos_idx[13] = "S_100_1362.jpg";
g_alb_photos_enl[13] = "L_100_1362.jpg";
g_alb_labels[13] = "";
g_alb_captions[13] = "";
g_alb_widths[13] = 576;
g_alb_photos_idx[14] = "S_100_1363.jpg";
g_alb_photos_enl[14] = "L_100_1363.jpg";
g_alb_labels[14] = "";
g_alb_captions[14] = "";
g_alb_widths[14] = 576;
g_alb_photos_idx[15] = "S_100_1364.jpg";
g_alb_photos_enl[15] = "L_100_1364.jpg";
g_alb_labels[15] = "";
g_alb_captions[15] = "";
g_alb_widths[15] = 576;
g_alb_photos_idx[16] = "S_100_1366.jpg";
g_alb_photos_enl[16] = "L_100_1366.jpg";
g_alb_labels[16] = "";
g_alb_captions[16] = "";
g_alb_widths[16] = 576;
g_alb_photos_idx[17] = "S_100_1367.jpg";
g_alb_photos_enl[17] = "L_100_1367.jpg";
g_alb_labels[17] = "";
g_alb_captions[17] = "";
g_alb_widths[17] = 576;
g_alb_photos_idx[18] = "S_100_1368.jpg";
g_alb_photos_enl[18] = "L_100_1368.jpg";
g_alb_labels[18] = "";
g_alb_captions[18] = "";
g_alb_widths[18] = 576;
g_alb_photos_idx[19] = "S_100_1369.jpg";
g_alb_photos_enl[19] = "L_100_1369.jpg";
g_alb_labels[19] = "";
g_alb_captions[19] = "";
g_alb_widths[19] = 576;
g_alb_photos_idx[20] = "S_100_1370.jpg";
g_alb_photos_enl[20] = "L_100_1370.jpg";
g_alb_labels[20] = "";
g_alb_captions[20] = "";
g_alb_widths[20] = 576;
g_alb_photos_idx[21] = "S_100_1371.jpg";
g_alb_photos_enl[21] = "L_100_1371.jpg";
g_alb_labels[21] = "";
g_alb_captions[21] = "";
g_alb_widths[21] = 576;
g_alb_photos_idx[22] = "S_100_1372.jpg";
g_alb_photos_enl[22] = "L_100_1372.jpg";
g_alb_labels[22] = "";
g_alb_captions[22] = "";
g_alb_widths[22] = 576;
g_alb_photos_idx[23] = "S_100_1374.jpg";
g_alb_photos_enl[23] = "L_100_1374.jpg";
g_alb_labels[23] = "";
g_alb_captions[23] = "";
g_alb_widths[23] = 576;
g_alb_photos_idx[24] = "S_100_1377.jpg";
g_alb_photos_enl[24] = "L_100_1377.jpg";
g_alb_labels[24] = "";
g_alb_captions[24] = "";
g_alb_widths[24] = 576;
g_alb_photos_idx[25] = "S_100_1381.jpg";
g_alb_photos_enl[25] = "L_100_1381.jpg";
g_alb_labels[25] = "";
g_alb_captions[25] = "";
g_alb_widths[25] = 576;
g_alb_photos_idx[26] = "S_100_1382.jpg";
g_alb_photos_enl[26] = "L_100_1382.jpg";
g_alb_labels[26] = "";
g_alb_captions[26] = "";
g_alb_widths[26] = 576;
generate_index(0);
</SCRIPT>
<!-- Following attributes for older, non-CSS browsers. For IE, CSS overrides, which is good. -->
<BODY class="enl-body" onclick="alb_next_slide_manual();">
<noscript><H1>You must enable JavaScript in your browser in order to view the photos.</H1></noscript>
<CENTER>
<FORM NAME="form1">
<TABLE BORDER=0 WIDTH="100%" CELLSPACING=0 CELLPADDING=5>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
if (g_browser_name == "Operax")
	document.write('<COL WIDTH=300><COL WIDTH=20><COL WIDTH=300>');
</SCRIPT>
<TR>
<TD ALIGN="LEFT">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
if (0 == 0)
	document.write('<INPUT TYPE="BUTTON" VALUE="Index" onClick="alb_index_page();">');
</SCRIPT>
</TD>
<TD ALIGN="LEFT">
<!-- FIELDSET TITLE="Click to go to a photo"
  STYLE="padding-left: 7; padding-right: 7; padding-bottom: 8" -->
<!-- LEGEND><SMALL>Position</SMALL></LEGEND -->
<INPUT TYPE="BUTTON" NAME="BtnFirst" VALUE="First" onClick="alb_first();">
<INPUT TYPE="BUTTON" NAME="BtnPrev" VALUE="Prev" onClick="alb_prev();">
<INPUT TYPE="BUTTON" NAME="BtnNext" VALUE="Next" onClick="alb_next();">
<INPUT TYPE="BUTTON" NAME="BtnLast" VALUE="Last" onClick="alb_last();">
<!-- /FIELDSET --></TD>
<TD ALIGN="CENTER">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
document.write('<INPUT TYPE="TEXT" SIZE="');
if (g_alb_photos_idx.length >= 100)
	document.write(11);
else if (g_alb_photos_idx.length >= 10)
	document.write(9);
else
	document.write(7);
document.write('" BORDER="0" READONLY NAME="LabelPos">');
</SCRIPT>
</TD>
<TD ALIGN="RIGHT">
<!-- FIELDSET TITLE="Click to operate slide show"
  STYLE="padding-left: 7; padding-right: 7; padding-bottom: 8" -->
<!-- LEGEND ><SMALL>Slide Show</SMALL></LEGEND -->
<INPUT TYPE="BUTTON" NAME="BtnStart" VALUE="Start Slide Show" onClick="alb_slideshow_start();">
<!-- <INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" onClick="alb_slideshow_stop();"> -->
<SELECT NAME="select1" onChange="alb_select_interval();">
<!-- OPTION VALUE=0>manual</OPTION won't work with Opera -- no onclick for body? -->
<OPTION VALUE=1000>1 sec.</OPTION>
<OPTION VALUE=2000>2 sec.</OPTION>
<OPTION VALUE=3000 SELECTED>3 sec.</OPTION>
<OPTION VALUE=4000>4 sec.</OPTION>
<OPTION VALUE=5000>5 sec.</OPTION>
<OPTION VALUE=6000>6 sec.</OPTION>
<OPTION VALUE=7000>7 sec.</OPTION>
<OPTION VALUE=8000>8 sec.</OPTION>
<OPTION VALUE=9000>9 sec.</OPTION>
</SELECT></LABEL></TD>
</TR></TABLE>
</FORM>
</CENTER>
<DIV class="idx-linkstyle">
<DIV class="idx-bodytext">
<CENTER>





<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">

alb_start();


</SCRIPT>
</DIV>
</DIV></BODY>
</HTML>