
// random image jump script
// basic info
var maxsize = 8;
var iwidth =125;
var iheight =125;
// target, whereto, what, imagename
var link = new makeArray(maxsize);
link[0] = new LinkObj("new", "Brenda Phiri","imagesKids/01T.jpg");
link[1] = new LinkObj("new", "Bridget Mukambe","imagesKids/02T.jpg");
link[2] = new LinkObj("new", "Happy Mubanga","imagesKids/03T.jpg");
link[3] = new LinkObj("new", "Nester Kamanga","imagesKids/04T.jpg");
link[4] = new LinkObj("new", "Rollison Kalunga","imagesKids/05T.jpg");
link[5] = new LinkObj("new", "Shadreck Mwape","imagesKids/06T.jpg");
link[6] = new LinkObj("new", "Travise Ndansa","imagesKids/07T.jpg");
link[7] = new LinkObj("new", "Ziwa Mwanza","imagesKids/08T.jpg");



var n = 0;

function LinkObj(target, description, img) {
  this.target = (target != refresh) ? target : "_self";
  this.description = description;
  this.image = img;
  return this;
}

function refresh(x) {
  if (link[x].target != refresh)
    window.open(link[x].target);
  else
    location.href = link[x].target;
}


function makeArray(size) {
  this.length = size;
  return this;
}

function showStatus(x) {
  window.status = link[x].description;
}

function getImageName(x) {
  return link[x].image;
}

while (1) {
  n = Math.round(Math.random() * 6);
  if (n >= 0 && n < maxsize)
    break;
}

var jump = "<a href='newme.html'OnMouseOver=\"showStatus(" + n + ");return true\" ";
jump += "OnMouseOut=\"window.status=''\">";
jump += "<img border=0 align=top width=" + iwidth + " height=" + iheight + "name=\"bannerimg\" src=\"" + getImageName(n) + "\"></a>";
