Source

holyspiritwebster.org / images / 02_2010_La_Buffanna / ctl.htm

Full commit
<!--

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

-->
<!-- Generated by Albumatic (2.01) at 01/31/10 21:40:06 -->
<!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_1521.jpg";
g_alb_photos_enl[0] = "L_100_1521.jpg";
g_alb_labels[0] = "";
g_alb_captions[0] = "";
g_alb_widths[0] = 576;
g_alb_photos_idx[1] = "S_100_1522.jpg";
g_alb_photos_enl[1] = "L_100_1522.jpg";
g_alb_labels[1] = "";
g_alb_captions[1] = "";
g_alb_widths[1] = 576;
g_alb_photos_idx[2] = "S_100_1523.jpg";
g_alb_photos_enl[2] = "L_100_1523.jpg";
g_alb_labels[2] = "";
g_alb_captions[2] = "";
g_alb_widths[2] = 576;
g_alb_photos_idx[3] = "S_100_1524.jpg";
g_alb_photos_enl[3] = "L_100_1524.jpg";
g_alb_labels[3] = "";
g_alb_captions[3] = "";
g_alb_widths[3] = 576;
g_alb_photos_idx[4] = "S_100_1525.jpg";
g_alb_photos_enl[4] = "L_100_1525.jpg";
g_alb_labels[4] = "";
g_alb_captions[4] = "";
g_alb_widths[4] = 576;
g_alb_photos_idx[5] = "S_100_1526.jpg";
g_alb_photos_enl[5] = "L_100_1526.jpg";
g_alb_labels[5] = "";
g_alb_captions[5] = "";
g_alb_widths[5] = 576;
g_alb_photos_idx[6] = "S_100_1527.jpg";
g_alb_photos_enl[6] = "L_100_1527.jpg";
g_alb_labels[6] = "";
g_alb_captions[6] = "";
g_alb_widths[6] = 576;
g_alb_photos_idx[7] = "S_100_1528.jpg";
g_alb_photos_enl[7] = "L_100_1528.jpg";
g_alb_labels[7] = "";
g_alb_captions[7] = "";
g_alb_widths[7] = 576;
g_alb_photos_idx[8] = "S_100_1529.jpg";
g_alb_photos_enl[8] = "L_100_1529.jpg";
g_alb_labels[8] = "";
g_alb_captions[8] = "";
g_alb_widths[8] = 576;
g_alb_photos_idx[9] = "S_100_1530.jpg";
g_alb_photos_enl[9] = "L_100_1530.jpg";
g_alb_labels[9] = "";
g_alb_captions[9] = "";
g_alb_widths[9] = 576;
g_alb_photos_idx[10] = "S_100_1531.jpg";
g_alb_photos_enl[10] = "L_100_1531.jpg";
g_alb_labels[10] = "";
g_alb_captions[10] = "";
g_alb_widths[10] = 576;
g_alb_photos_idx[11] = "S_100_1532.jpg";
g_alb_photos_enl[11] = "L_100_1532.jpg";
g_alb_labels[11] = "";
g_alb_captions[11] = "";
g_alb_widths[11] = 576;
g_alb_photos_idx[12] = "S_100_1533.jpg";
g_alb_photos_enl[12] = "L_100_1533.jpg";
g_alb_labels[12] = "";
g_alb_captions[12] = "";
g_alb_widths[12] = 576;
g_alb_photos_idx[13] = "S_100_1534.jpg";
g_alb_photos_enl[13] = "L_100_1534.jpg";
g_alb_labels[13] = "";
g_alb_captions[13] = "";
g_alb_widths[13] = 576;
g_alb_photos_idx[14] = "S_100_1535.jpg";
g_alb_photos_enl[14] = "L_100_1535.jpg";
g_alb_labels[14] = "";
g_alb_captions[14] = "";
g_alb_widths[14] = 576;
g_alb_photos_idx[15] = "S_100_1536.jpg";
g_alb_photos_enl[15] = "L_100_1536.jpg";
g_alb_labels[15] = "";
g_alb_captions[15] = "";
g_alb_widths[15] = 576;
g_alb_photos_idx[16] = "S_100_1538.jpg";
g_alb_photos_enl[16] = "L_100_1538.jpg";
g_alb_labels[16] = "";
g_alb_captions[16] = "";
g_alb_widths[16] = 576;
g_alb_photos_idx[17] = "S_100_1540.jpg";
g_alb_photos_enl[17] = "L_100_1540.jpg";
g_alb_labels[17] = "";
g_alb_captions[17] = "";
g_alb_widths[17] = 576;
g_alb_photos_idx[18] = "S_100_1541.jpg";
g_alb_photos_enl[18] = "L_100_1541.jpg";
g_alb_labels[18] = "";
g_alb_captions[18] = "";
g_alb_widths[18] = 576;
g_alb_photos_idx[19] = "S_100_1542.jpg";
g_alb_photos_enl[19] = "L_100_1542.jpg";
g_alb_labels[19] = "";
g_alb_captions[19] = "";
g_alb_widths[19] = 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>