function buildArray(lgt) {// opret et array med lgt elementer
for (var i=1; i<=lgt; i++) this[i]=0;
this.length = lgt;
return this;
};

function buildTnPic(thumbNail,fullPic) { // build objekt
this.tn=thumbNail;
this.pic=fullPic;
this.length=2;
return this;
};


img = new buildArray(10); // create an arrray
// initialize the array
img[01]= new buildTnPic('Pictures/Founders/image1.jpg','Pictures/Founders/image1.jpg');
img[02]= new buildTnPic('Pictures/Founders/image2.jpg', 'Pictures/Founders/image2.jpg');
img[03]= new buildTnPic('Pictures/Founders/image3.jpg', 'Pictures/Founders/image3.jpg');
img[04]= new buildTnPic('Pictures/Founders/image4.jpg', 'Pictures/Founders/image4.jpg');
img[05]= new buildTnPic('Pictures/Founders/image5.jpg', 'Pictures/Founders/image5.jpg');
img[06]= new buildTnPic('Pictures/Founders/image6.jpg', 'Pictures/Founders/image6.jpg');
img[07]= new buildTnPic('Pictures/Founders/image7.jpg', 'Pictures/Founders/image7.jpg');
img[08]= new buildTnPic('Pictures/Founders/image8.jpg', 'Pictures/Founders/image8.jpg');
img[09]= new buildTnPic('Pictures/Founders/image9.jpg', 'Pictures/Founders/image9.jpg');
img[10]= new buildTnPic('Pictures/Founders/image10.jpg', 'Pictures/Founders/image10.jpg');
img[11]= new buildTnPic('Pictures/Founders/image11.jpg', 'Pictures/Founders/image11.jpg');


picWidth = 415; // size of large picture
picHeight = 288;

tnWidth = 100; // size of thumbnails
tnHeight = 69; 

trStart = "<tr>"; // tags for table rows
trStop = "</tr>";


<!-- Begin
var description = new Array();
description[0] = "Text shown when visitors mouse over the first link.";
description[1] = "Founders, Gerd&egrave;s Fleurant, Ph.D. and Florienne M. Saintil, M.Ed.";
description[2] = "Leocardie and Alexandre Kenscoff's grand and great children with founder Florienne, Chevry and Dr. Gerdes Fleurant";
description[3]="Georges Chevry and the workers of C-CLAK"
description[4]="Gerdes Fleurant & Salem State College President Nancy Harrington celebrating Haitian Bicentennial at SSC (Nov. 2004)"
description[5]="Gerdes loading chairs & tables donated by Sommerville Schools to be shipped to Mirebalais, Haiti (Dec. 2004)"
description[6]="Emerante de Pradines with founders at the Center for a presentation"
description[7]="Co-founders Gerdes & Florienne surveying the C-CLAK ongoing construction (April 2008)"
description[8]="Florienne with students (others not in view)"
description[9]="Founders Gerdes Fleurant & Florienne M. Saintil in Port-au-Prince airport (April 2008)"
description[10]="Florienne, visiting teachers from Florida, workers & teachers at C-CLAK; relaxing in conversation "
description[11]="Co-founder Florienne addressing parent's meeting (2008)"



function show_txt(n){
document.getElementById("display_txt").innerHTML=description[n]
}

function thTnField(i) {
return "<th><a href='#null' onclick='setpic("
+ i 
+ ")' onmouseover='show_txt("+i+")'><img src='"
+ img[i].tn
+ "' width="
+ tnWidth
+ " height="
+ tnHeight
+ " border=1></a></th>"
};

function thPicField() {
return "<th colspan='4' rowspan='4'><img src='rude1515.gif'"
+ " width="
+ picWidth
+ " height="
+ picHeight
+ " name='wpic'></th>"
}; 


function NewWindow(url) {
location=url
self.focus()
}

function buildTable() {
with (self.document) { // now we build the table.
write(trStart);
for (var i=1; i<=7; i++) write(thTnField(i));
write(trStop + trStart);
for (var i=8; i<=11; i++) write(thTnField(i));
write(trStop)
write(thPicField())
i=12;
}
}



browserOk = false;
if ( (parseInt(navigator.appVersion)>=4 )
|| ( navigator.appName == "Netscape" ) )
browserOk = true;

function setpic(n) { // udskift det store billede
if ( browserOk ) eval("self.document.images.wpic.src= img[n].pic")
else
alert ("Sorry IE3 cannot show pictures here")
}

function swapImages () {
this.rude = new Image(15,15)
this.rude.src = "../rude1515.gif"
this.smil = new Image(15,15)
this.smil.src = "../smil1515.gif"
this.blink = new Image(15,15)
this.blink.src = "../blink1515.gif"
this.cool = new Image(15,15)
this.cool.src = "../cool1515.gif"
return this;
}

A1515 = 0;
if (browserOk)
A1515 = new swapImages;

function showGif(navn, id) {
if (browserOk)
eval( "document.images." +navn +".src = A1515."+id+".src");
return true;
}
function showRude(navn) {
if (browserOk)
eval( "document.images." +navn +".src = A1515.rude.src" );
return true;
}
