// JavaScript Document

<!--
// (C) 2003 by CodeLifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = false;       // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = 'images/slide-books.gif';
Picture[2]  = 'images/slide-drawing.gif';
Picture[3]  = 'images/slide-envelopes.gif';
Picture[4]  = 'images/slide-foodpackage.gif';
Picture[5]  = 'images/slide-letterset.gif';
Picture[6]  = 'images/slide-newspaper.gif';
Picture[7]  = 'images/slide-birthdaycards.gif';
Picture[8]  = 'images/slide-cereal.gif';

// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "<p><b>It's educational:</b>  From kindergarten drawings to high school textbooks, paper carries the concepts our children learn and the lessons our teachers teach.</p>";
Caption[2]  = "<p><b>It's memorable:</b>  Paper records our first footprints in this world and every milestone along the way.</p>";
Caption[3]  = "<p><b>It's dependable:</b> Paper is there at every turn. It's the cards, letters and packages you receive, the cup that holds your coffee and the album that holds your memories.</p>";
Caption[4]  = "<p><b>It's versatile:</b>  From the thinnest tissue, to the most absorbent diaper, to the toughest corrugated box, there are almost as many different kinds of paper as there are uses.</p>";
Caption[5]  = "<p><b>It's Recyclable:</b> Paper is a recyclable and renewable resource you use in every aspect of your life. It is an everyday wonder.</p>";
Caption[6]  = "<p><b>It's comforting:</b> From facial tissue and paper towels to the paperboard packaging that holds your cereal, most of us begin each day enjoying the comforts of paper products.</p>";
Caption[7]  = "<p><b>It's Practical:</b> Few things in life are as versatile, practical and reliable as paper.  It's no wonder we can't live a day without using paper products.</p>";
Caption[8]  = "<p><b>It's renewable:</b>  Paper is not only recyclable, it is also made from a renewable and natural resource - trees.</p>";


// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function control(how){
if (showHot){
if (how=="H") jss = 1;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}}
function startauto(){
	control('F');
	autoctl=setInterval('automatecontrol()',6000);
}
function automatecontrol(){
	control('F');
}
function autoctlstop(){
	clearInterval(autoctl);
}

var time=new Date();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
//-->
