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/Exchange/image1.jpg','Pictures/Exchange/image1.jpg');
img[02]= new buildTnPic('Pictures/Exchange/image2.jpg', 'Pictures/Exchange/image2.jpg');
img[03]= new buildTnPic('Pictures/Exchange/image3.jpg', 'Pictures/Exchange/image3.jpg');
img[04]= new buildTnPic('Pictures/Exchange/image4.jpg', 'Pictures/Exchange/image4.jpg');
img[05]= new buildTnPic('Pictures/Exchange/image5.jpg', 'Pictures/Exchange/image5.jpg');
img[06]= new buildTnPic('Pictures/Exchange/image6.jpg', 'Pictures/Exchange/image6.jpg');
img[07]= new buildTnPic('Pictures/Exchange/image7.jpg', 'Pictures/Exchange/image7.jpg');
img[08]= new buildTnPic('Pictures/Exchange/image8.jpg', 'Pictures/Exchange/image8.jpg');
img[09]= new buildTnPic('Pictures/Exchange/image9.jpg', 'Pictures/Exchange/image9.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] = "";
description[1] = "Columbia University students posing with local artist in Mirebalais";
description[2] = "Exchange students from Wellesley College at the Center";
description[3]="Haitian-American students from Bentley College visiting the Center"
description[4]="Columbia University Exchange students at the Center"
description[5]="Posing with the dance instructor and friends, a professor of St. Michael's College VT during a visit"
description[6]="Wellesley students eating dinner at the Center"
description[7]="Visiting teacher from Florida with children"
description[8]="Visiting teacher from Florida with children"
description[9]="Children with visiting teacher from Florida (April 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<=9; i++) write(thTnField(i));
write(trStop)
write(thPicField())
i=10;
}
}



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;
}