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/School/image1.jpg','Pictures/School/image1.jpg');
img[02]= new buildTnPic('Pictures/School/image2.jpg', 'Pictures/School/image2.jpg');
img[03]= new buildTnPic('Pictures/School/image3.jpg', 'Pictures/School/image3.jpg');
img[04]= new buildTnPic('Pictures/School/image4.jpg', 'Pictures/School/image4.jpg');
img[05]= new buildTnPic('Pictures/School/image5.jpg', 'Pictures/School/image5.jpg');
img[06]= new buildTnPic('Pictures/School/image6.jpg', 'Pictures/School/image6.jpg');
img[07]= new buildTnPic('Pictures/School/image7.jpg', 'Pictures/School/image7.jpg');
img[07]= new buildTnPic('Pictures/School/image7.jpg', 'Pictures/School/image7.jpg');
img[08]= new buildTnPic('Pictures/School/image8.jpg', 'Pictures/School/image8.jpg');
img[09]= new buildTnPic('Pictures/School/image9.jpg', 'Pictures/School/image9.jpg');
img[10]= new buildTnPic('Pictures/School/image10.jpg', 'Pictures/School/image10.jpg');
img[11]= new buildTnPic('Pictures/School/image11.jpg', 'Pictures/School/image11.jpg');
img[12]= new buildTnPic('Pictures/School/image12.jpg', 'Pictures/School/image12.jpg');
img[13]= new buildTnPic('Pictures/School/image13.jpg', 'Pictures/School/image13.jpg');
img[14]= new buildTnPic('Pictures/School/image14.jpg', 'Pictures/School/image14.jpg');
img[15]= new buildTnPic('Pictures/School/image15.jpg', 'Pictures/School/image15.jpg');
img[16]= new buildTnPic('Pictures/School/image16.jpg', 'Pictures/School/image16.jpg');
img[17]= new buildTnPic('Pictures/School/image17.jpg', 'Pictures/School/image17.jpg');
img[18]= new buildTnPic('Pictures/School/image18.jpg', 'Pictures/School/image18.jpg');
img[19]= new buildTnPic('Pictures/School/image19.jpg', 'Pictures/School/image19.jpg');
img[20]= new buildTnPic('Pictures/School/image20.jpg', 'Pictures/School/image20.jpg');
img[21]= new buildTnPic('Pictures/School/image21.jpg', 'Pictures/School/image21.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] = "Cooperative learning at the Gawou Ginou School";
description[2] = "Reading activitiy for K(3) students at the Gawou Ginou School";
description[3]= "A center view of the C-CLAK in Mirebalais";
description[4]= "A closer view of the Center with the 3rd floor still incomplete";
description[5]= "A moment of silence is observed every morning at the Gawou Ginou School";
description[6]= "Gawou Ginou Pre-school";
description[7]= "First class of the school at graduation with their certificates"
description[8]= "Teacher and first graders"
description[9]= "Aide & K-2 pupils"
description[10]= "Coordination game with children in K-2"
description[11]= "Getting ready for entering class"
description[12]= "Teacher with 3rd graders"
description[13]= "A moment of silence & meditation before class"
description[14]= "Teacher with 5th graders"
description[15]= "Two 6th graders who began in kindergarten in Fall 2006; they graduated in June 2008"
description[16]= "Teacher & children; a lesson in hygiene"
description[17]= "Children getting ready for assembly"
description[18]= "Pupils & teachers getting ready to enter classes"
description[19]= "Children & teachers in La Tombe River- Before flooding"
description[20]= "First graders on task"
description[21]= "Teachers aid and first graders"





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<=14; i++) write(thTnField(i));
write(trStop + trStart);
for (var i=15; i<=21; i++) write(thTnField(i));
write(trStop)
write(thPicField())
i=22;
}
}


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;
}