// JavaScript Document

<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2500;
// Duration of crossfade (seconds)
var crossFadeDuration = 1000;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'images/chapters_collate2.gif';
Pic[1] = 'images/chapters_collate.gif';
Pic[2] = 'images/chapters_collate.gif';
Pic[3] = 'images/chapters_collate4.gif';
Pic[4] = 'images/chapters_collate3.gif';
Pic[5] = 'images/chapters_collate6.gif';
Pic[6] = 'images/chapters_collate5.gif';
Pic[7] = 'images/chapters_collate8.gif';
Pic[8] = 'images/chapters_collate7.gif';
Pic[9] = 'images/chapters_collate2.gif';
Pic[10] = 'images/chapters_collate5.gif';


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
  preLoad[i] = new Image();
  preLoad[i].src = Pic[i];
}
function runSlide() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=0)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlide()', slideShowSpeed);
}
//  End -->

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->



<!-- JAVA SCRIPT CLOCK -->

var MS=navigator.appVersion.indexOf("MSIE")
 window.isIE4 = (MS>0) && (parseInt(navigator.appVersion) >= 4)

 function lead0(val) {
  // add leading 0s when necessary
  return val<10 ? "0"+val.toString() : val
 }

 function buildTime() {
  var time = new Date()
  var ampm = " AM"
  var h=time.getHours()
  // fix military time and determine ampm
  if (h > 12) {h = h - 12; ampm = " PM";}  
   return h+":"+lead0(time.getMinutes())+":"+ lead0(time.getSeconds()) + "" + ampm
 }

 function tick() {
  // Replace the plain-text contents of the clock element
  document.all.clock.innerText = buildTime()
 }    

 // Start clock when page is loaded.
 function startclock(){
   if (window.isIE4) (
   		setInterval('tick()',1000)
   )
 }
 
<!-- begin script
function netie(net, ie) {
  if ((navigator.appVersion.substring(0,3) >= net && navigator.appName == 'Netscape' && net != -1) || (navigator.appVersion.substring(0,3) >= ie && navigator.appName.substring(0,9) == 'Microsoft' && ie != -1))
    return true;
else return false;
}
//  end script -->

function dark(colnum){ 
	if(document.getElementsByTagName){  
		var table = document.getElementById('thetable');   
		var col = table.getElementsByTagName("td");   
		col[colnum].className = "effect"; 
	}
}

function light(colnum){ 
	if(document.getElementsByTagName){  
		var table = document.getElementById('thetable');   
		var col = table.getElementsByTagName("td");   
		col[colnum].className = "return"; 
	}
}



// JavaScript Document2
/*
<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeedB = 10000;
// Duration of crossfade (seconds)
var crossFadeDurationB = 1000;
// Specify the image files
var ovalPics = new Array();
// to add more images, just continue
// the pattern, adding to the array below

ovalPics[0] = 'images/ovaldesign.gif'
ovalPics[1] = 'images/ovaldesign3.gif'
ovalPics[2] = 'images/ovaldesign2.gif'


// do not edit anything below this line
var k;
var z = 0;
var q = ovalPics.length;
var preLoadB = new Array();
for (g = 0; g < q; g++) {
  preLoadB[g] = new Image();
  preLoadB[g].src = ovalPics[g];
}
function runSlide() {
if (document.all) {
document.images.Slide.style.filter="blendTrans(duration=0)";
document.images.Slide.style.filter="blendTrans(duration=crossFadeDurationB)";
document.images.Slide.filters.blendTrans.Apply();
}
document.images.Slide.src = preLoadB[z].src;
if (document.all) {
document.images.Slide.filters.blendTrans.Play();
}
z = z + 1;
if (z > (q - 1)) z = 0;
tx = setTimeout('runSlide()', slideShowSpeedB);
}
//  End -->
*/