// Place list of filenames and slide headings here, in the format
// 'filename|heading'

var docs = new Array (
	'index.html|Introduction',
	'overview.htm|Presentation Overview',
	'adopters.htm|Adopter Categories',
	'technology.htm|Technology Categories',
	'chasm.htm|Crossing the Chasm',
	'goods.htm|Types of Goods',
	'innovations.htm|Types of Innovation',
	'lifecycles.htm|PC Technology lifecycles',
	'eproducts.htm|Implications: Ejournals as Products',
	'techavail.htm|Implications: Availability of Technology',
	'usertrans.htm|Implications: Making the User Transition',
	'pubtrans.htm|Implications: Making the Publisher Transition',
	'clusters.htm|Implications: Role of Innovation Clusters',
	'conclusion.htm|Conclusions',
	'question.htm|Questions?'
	)
	
// Based on Jon Udell's code in Byte 11/97, p. 98
// Multiple bug fixes and improvements by Andrew Treloar, 9/1/98

var href = document.URL;
var curr = href.substring(href.lastIndexOf('/')+1,href.length);

function itemFromDocs (type,i) 
// returns either the file name or title of entry i based on type
{
if (i < 0) i = 0;
if (i > docs.length-1) i = docs.length-1;
var str = docs[i];
if (type == 'url')       // get the URL
	return str.substring(0,str.lastIndexOf('|'));
else                    // get the title
	return str.substring(str.lastIndexOf('|')+1,str.length);
}

function getLink (which)
// returns correct HTML code for gif links
// modified to handle first and last slide cases by Andrew Treloar
{
var alt = "";
for (var i = 0; i <= docs.length-1; i++) {
  if (curr == itemFromDocs('url',i)) {
     if (which == 'next') // next slide
        if (i < docs.length-1) { // not at end
     		link = itemFromDocs('url',i+1);
     		gif = "next.gif";
     		alt = "Next Slide"; }
     	else
     		gif = "none";
     else                 // previous slide
     	if (i != 0) { // not at start
     		link = itemFromDocs('url',i-1);
     		gif = "prev.gif";
     		alt = "Previous Slide"; } 
     	else
     		gif = "none";
} ;}
if (gif == "none") // at start or end
	return " ";
else // a real link
	return '<a href=' + link + '><img src=' + gif + ' ALT = ' + alt + '></a>'
}

function showHeading ()
// returns the title of the current URL 
{
var heading = "";
for (var i = 0; i <= docs.length-1; i++) {
  if (curr == itemFromDocs('url',i))
  	 heading = itemFromDocs('title',i);
  	 }
return heading;
}

document.bgColor="white";
// self.resizeTo(600, 400); // set dimensions for 800 * 600 screen
document.write(
	'<table width=100%><tr>' +
	'<td ALIGN="LEFT">' + '<a href="overview.htm"><img src="up.gif"></a>' + '</td>' + // left element
	'<td ALIGN="CENTER"><h2>' + showHeading() + '</h2></td>' + // central element
	'<td ALIGN="RIGHT">' + getLink('prev') + getLink('next') + '</td>' + // right element
	'</tr></table>'+
	'<center><img src="line.gif" ALT="Gratuitous line graphic"></center><P>' // divider line
	);

