// the starting index in the above array.  It should be set to the value of the div which doesn't have the CSS Display property set to "none"

	i=0;

	// the function that performs the fade
	function swapFade(offset, max, start) {
		if (i == 0) {
			i = start;
		}
		if (i == max) {

			Effect.Appear('next', { duration:1, from:0.0, to:1.0 });
		}
		if (i == 1) {
			Effect.Appear('previous', { duration:1, from:0.0, to:1.0 });
		}
		Effect.Fade('foto'+i, { duration:1, from:1.0, to:0.0 });
		i=i+offset;
		if (i == max) {
			Effect.Fade('next', { duration:1, from:1.0, to:0.0 });
		}
		if (i == 1) {
			Effect.Fade('previous', { duration:1, from:1.0, to:0.0 });
		} 
		Effect.Appear('foto'+i, { duration:1, from:0.0, to:1.0 });
	}
	
	function MM_jumpMenu(targ,selObj,restore){ //v3.0
		  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
		  if (restore) selObj.selectedIndex=0;
		}

	var newwindow;
	var wheight = 0, wwidth = 0;

	function popitup5(url, title, iwidth, iheight, colour) {
	var pwidth, pheight;

	if ( !newwindow || newwindow.closed ) {
	pwidth=iwidth+30;
	pheight=iheight+30;
	newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
	wheight=iheight;
	wwidth=iwidth;
	}

	if (wheight!=iheight || wwidth!=iwidth ) {
	pwidth=iwidth+30;
	pheight=iheight+90;
	newwindow.resizeTo(pwidth, pheight);
	wheight=iheight;
	wwidth=iwidth;
	}

	newwindow.document.clear();
	newwindow.focus();
	newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
	newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" >');
	newwindow.document.writeln('<\/center> <\/body> <\/html>');
	newwindow.document.close();
	newwindow.focus();
	}

	// Routines to tidy up popup windows when page is left
	// Call with an onUnload="tidy5()" in body tag

	function tidy5() {
	if (newwindow && !newwindow.closed) { newwindow.close(); }
	}

	// Based on JavaScript provided by Peter Curtis at www.pcurtis.com 
