// JavaScript Document
// JavaScript Document
slides= new Array (
    "images/Gwara1.jpg",
	"images/Gwara2.jpg",
	"images/Gwara3.jpg",
	"images/Gwara4.jpg",
	"images/Gwara5.jpg",
	"images/Gwara6.jpg",
	"images/Gwara7.jpg",
	"images/Gwara8.jpg",
	"images/Gwara9.jpg",
	"images/Gwara10.jpg",
	"images/Gwara11.jpg",
	"images/Gwara12.jpg",
	"images/Gwara13.jpg",
	"images/Gwara14.jpg",
	"images/Gwara15.jpg",
	"images/Gwara16.jpg",
	"images/Gwara17.jpg",
	"images/Gwara18.jpg",
	"images/Gwara19.jpg",
	"images/Gwara20.jpg",
	"images/Gwara21.jpg",
	"images/Gwara22.jpg",
	"images/Gwara23.jpg",
	"images/Gwara24.jpg",
	"images/Gwara25.jpg",
	"images/Gwara26.jpg",
	"images/Gwara27.jpg",
	"images/Gwara28.jpg",
	"images/Gwara29.jpg",
	"images/Gwara30.jpg",
	"images/Gwara31.jpg",
	"images/Gwara32.jpg",
	"images/Gwara33.jpg"	
);

descriptions = new Array()
descriptions[0]= "<a href='http://digital.tcl.sc.edu/u?/pfp,732'>University of South Carolina MS 56</a>"
descriptions[1]= "<a href='http://digital.tcl.sc.edu/u?/pfp,729'>University of South Carolina Early MS 57</a>"
descriptions[2]= "<a href='http://digital.tcl.sc.edu/u?/pfp,750'>Bob Jones University Library Early MS 64</a>"
descriptions[3]= "<a href='http://digital.tcl.sc.edu/u?/pfp,791'>University of South Carolina Early MS 65</a>"
descriptions[4]= "<a href='http://digital.tcl.sc.edu/u?/pfp,788'>University of South Carolina Early MS 66</a>"
descriptions[5]= "<a href='http://digital.tcl.sc.edu/u?/pfp,785'>University of South Carolina Early MS 67</a>"
descriptions[6]= "<a href='http://digital.tcl.sc.edu/u?/pfp,782'>University of South Carolina Early MS 68</a>"
descriptions[7]= "<a href='http://digital.tcl.sc.edu/u?/pfp,779'>University of South Carolina Early MS 69</a>"
descriptions[8]= "<a href='http://digital.tcl.sc.edu/u?/pfp,770'>University of South Carolina Early MS 70</a>"
descriptions[9]= "<a href='http://digital.tcl.sc.edu/u?/pfp,762'>University of South Carolina Early MS 72</a>"
descriptions[10]= "<a href='http://digital.tcl.sc.edu/u?/pfp,757'>University of South Carolina Early MS 73</a>"
descriptions[11]= "<a href='http://digital.tcl.sc.edu/u?/pfp,794'>University of South Carolina Early MS 74</a>"
descriptions[12]= "<a href='http://digital.tcl.sc.edu/u?/pfp,800'>University of South Carolina Early MS 75</a>"
descriptions[13]= "<a href='http://digital.tcl.sc.edu/u?/pfp,889'>University of South Carolina Early MS 77</a>"
descriptions[14]= "<a href='http://digital.tcl.sc.edu/u?/pfp,883'>University of South Carolina Early MS 79</a>"
descriptions[15]= "<a href='http://digital.tcl.sc.edu/u?/pfp,678'>University of South Carolina MS 14</a>"
descriptions[16]= "<a href='http://digital.tcl.sc.edu/u?/pfp,597'>University of South Carolina MS 15</a>"
descriptions[17]= "<a href='http://digital.tcl.sc.edu/u?/pfp,603'>University of South Carolina MS 1</a>"
descriptions[18]= "<a href='http://digital.tcl.sc.edu/u?/pfp,645'>University of South Carolina MS 2</a>"
descriptions[19]= "<a href='http://digital.tcl.sc.edu/u?/pfp,693'>University of South Carolina MS 17</a>"
descriptions[20]= "<a href='http://digital.tcl.sc.edu/u?/pfp,618'>University of South Carolina MS 18</a>"
descriptions[21]= "<a href='http://digital.tcl.sc.edu/u?/pfp,714'>University of South Carolina MS 19</a>"
descriptions[22]= "<a href='http://digital.tcl.sc.edu/u?/pfp,642'>University of South Carolina MS 22</a>"
descriptions[23]= "<a href='http://digital.tcl.sc.edu/u?/pfp,615'>University of South Carolina MS 23</a>"
descriptions[24]= "<a href='http://digital.tcl.sc.edu/u?/pfp,582'>University of South Carolina MS 30</a>"
descriptions[25]= "<a href='http://digital.tcl.sc.edu/u?/pfp,612'>University of South Carolina MS 32</a>"
descriptions[26]= "<a href='http://digital.tcl.sc.edu/u?/pfp,633'>University of South Carolina MS 38</a>"
descriptions[27]= "<a href='http://digital.tcl.sc.edu/u?/pfp,690'>University of South Carolina MS 39</a>"
descriptions[28]= "<a href='http://digital.tcl.sc.edu/u?/pfp,657'>University of South Carolina MS 41</a>"
descriptions[29]= "<a href='http://digital.tcl.sc.edu/u?/pfp,627'>University of South Carolina MS 46</a>"
descriptions[30]= "<a href='http://digital.tcl.sc.edu/u?/pfp,624'>University of South Carolina MS 47</a>"
descriptions[31]= "<a href='http://digital.tcl.sc.edu/u?/pfp,621'>University of South Carolina MS 48</a>"
descriptions[32]= "<a href='http://digital.tcl.sc.edu/u?/pfp,708'>University of South Carolina MS 50</a>"

	
var sn=0;
var ns=slides.length;
var tid;
	
function startss () {
	tid=setInterval('change()', 8000);
}//startss:  Note: the function has been changed to take a value from speed, enabling it to be called from the two different functions "fastshow" and "slowshow" below.

function change () {
		if (ns<= ++sn) {
		sn=0;
		}//if
			document.gwarachange.src=slides[sn];
}//change

// End image-changing code

// Begin text-changing code

var a = 0;

function display()
{
document.getElementById('changetext').innerHTML=descriptions[a];
if (a == descriptions.length-1)
	a=0;
else 
	a++;
setTimeout("display()",8000)
}

// End text-changing code


// Begin drop-down changing code
function MM_findObj(n, d) {
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function KW_updateItems(d,o,fn) {
  var i,s,l=MM_findObj(d),b,z=o.options[o.selectedIndex].value;
  l.length=0;l.options[0]=new Option('','');b=(z!='nill')?eval(z+'_years'):0;
  for(i=0;i<b.length;i++){s=b[i].split("|");l.options[i]=new Option(s[1],s[0]);}
  l.selectedIndex=0;if (!fn) return;eval(fn)
}

var all_years = new Array();

 all_years[0]='browse.html| - Select a Century -';
 all_years[1]='/pfp :CISOSEARCHALL:century|All';
 all_years[2]='/pfp :CISOSEARCHALL:12th|12th century';
 all_years[3]='/pfp :CISOSEARCHALL:13th|13th century';
 all_years[4]='/pfp :CISOSEARCHALL:14th|14th century';
 all_years[5]='/pfp :CISOSEARCHALL:15th|15th century';
 all_years[6]='/pfp :CISOSEARCHALL:16th|16th century';
 all_years[7]='/pfp :CISOSEARCHALL:17th|17th century';


var austria_years = new Array();

 austria_years[0]='browse.html| - Select a Century -';
 austria_years[1]='/pfp :note:Austria|All';
 austria_years[2]='/pfp :CISOSEARCHALL:Austria 12th century|12th century';
 austria_years[3]='/pfp :CISOSEARCHALL:Austria 15th century|15th century';

var bohemia_years = new Array();

 bohemia_years[0]='browse.html| - Select a Century -';
 bohemia_years[1]='/pfp :note:Bohemia|All';
 bohemia_years[2]='/pfp :CISOSEARCHALL:Bohemia 15th century|15th century';

 
var england_years = new Array();

 england_years[0]='browse.html| - Select a Century -';
 england_years[1]='/pfp :note:England|All';
 england_years[2]='/pfp :CISOSEARCHALL:England 13th century|13th century';
 england_years[3]='/pfp :CISOSEARCHALL:England 14th century|14th century';
 england_years[4]='/pfp :CISOSEARCHALL:England 15th century|15th century';


var flanders_years = new Array();

 flanders_years[0]='browse.html| - Select a Century -';
 flanders_years[1]='/pfp :note:Flanders|All';
 flanders_years[2]='/pfp :CISOSEARCHALL:Flanders 13th century|13th century';
 flanders_years[3]='/pfp :CISOSEARCHALL:Flanders 14th century|14th century';
 flanders_years[4]='/pfp :CISOSEARCHALL:Flanders 15th century|15th century';
 flanders_years[5]='/pfp :CISOSEARCHALL:Flanders 16th century|16th century';


var france_years = new Array();

 france_years[0]='browse.html| - Select a Century -';
 france_years[1]='/pfp :note:France|All';
 france_years[2]='/pfp :CISOSEARCHALL:France 12th century|12th century';
 france_years[3]='/pfp :CISOSEARCHALL:France 13th century|13th century';
 france_years[4]='/pfp :CISOSEARCHALL:France 14th century|14th century';  
 france_years[5]='/pfp :CISOSEARCHALL:France 15th century|15th century';
 france_years[6]='/pfp :CISOSEARCHALL:France 16th century|16th century';

var germany_years = new Array();

 germany_years[0]='browse.html| - Select a Century -';
 germany_years[1]='/pfp :note:Germany|All';
 germany_years[2]='/pfp :CISOSEARCHALL:Germany 12th century|12th century';
 germany_years[3]='/pfp :CISOSEARCHALL:Germany 13th century|13th century';
 germany_years[4]='/pfp :CISOSEARCHALL:Germany 14th century|14th century';
 germany_years[5]='/pfp :CISOSEARCHALL:Germany 15th century|15th century';
 germany_years[6]='/pfp :CISOSEARCHALL:Germany 16th century|16th century';


var italy_years = new Array();

 italy_years[0]='browse.html| - Select a Century -';
 italy_years[1]='/pfp :note:Italy|All';
 italy_years[2]='/pfp :CISOSEARCHALL:Italy 12th century|12th century';
 italy_years[3]='/pfp :CISOSEARCHALL:Italy 13th century|13th century';
 italy_years[4]='/pfp :CISOSEARCHALL:Italy 14th century|14th century';
 italy_years[5]='/pfp :CISOSEARCHALL:Italy 15th century|15th century';
 italy_years[6]='/pfp :CISOSEARCHALL:Italy 16th century|16th century';


var netherlands_years = new Array();

 netherlands_years[0]='browse.html| - Select a Century -';
 netherlands_years[1]='/pfp :note:Netherlands|All';
 netherlands_years[2]='/pfp :CISOSEARCHALL:Netherlands 15th century|15th century';
 netherlands_years[3]='/pfp :CISOSEARCHALL:Netherlands 16th century|16th century';


var spain_years = new Array();

 spain_years[0]='browse.html| - Select a Century -';
 spain_years[1]='/pfp :note:Spain|All';
 spain_years[2]='/pfp :CISOSEARCHALL:Spain 16th century|16th century';
 spain_years[3]='/pfp :CISOSEARCHALL:Spain 17th century|17th century';