
//*******************************************************//
//                Random Banners                         //
// this version of the sript is a non linking            //
//   by Langami   langami@bigfoot.com                    //
//   http://hem.passagen.se/fredwald/langami/index.html  //
//   Modified from original by TS Feb 1999               //
//*******************************************************//

nBanners = 5 // a=numbers of pictures
var RanUni = Math.random();
var SelectVal = Math.round(RanUni * (nBanners-1))+1;

function create() {

        this.width = ''
        this.height = ''
        this.src = ''
       	this.border = ''
	    this.alt = ''
	    this.under = ''
}

BBArr = new Array()
for(var i=1; i<=nBanners; i++) { BBArr[i] = new create() }

BBArr[1].src    = "images/carrington front doors close_325x244.jpg"
BBArr[1].width  = "325"
BBArr[1].height = "244"
BBArr[1].border = "0"
BBArr[1].alt    = "Carrington School Entrance"
BBArr[1].under  = '<font size=2><a href="sch_map/index.html">Take a tour</a></font>'

BBArr[2].src    = "images/carrington school entrance wide_325x244.jpg"
BBArr[2].width  = "325"
BBArr[2].height = "244"
BBArr[2].border = "0"
BBArr[2].alt    = "Carrington School Entrance"
BBArr[2].under  = '<font size=2><a href="sch_map/index.html">Take a tour</a> </font>'

BBArr[3].src    = "images/after_school_club_325x244.jpg"
BBArr[3].width  = "325"
BBArr[3].height = "244"
BBArr[3].border = "0"
BBArr[3].alt    = "After school club"
BBArr[3].under  = '<font size=2><a href="community.html">after school club</a>'

BBArr[4].src    = "images/library_325x244.jpg"
BBArr[4].width  = "325"
BBArr[4].height = "244"
BBArr[4].border = "0"
BBArr[4].alt    = "the school library"
BBArr[4].under  = '<font size=2><a href="sch_map/library.html">See the school library</a></font>'

BBArr[5].src    = "images/year1_325x244.jpg"
BBArr[5].width  = "325"
BBArr[5].height = "244"
BBArr[5].border = "0"
BBArr[5].alt    = "Tour the school class rooms"
BBArr[5].under  = '<font size=1><a href="sch_map/y1a.html">Tour the class rooms</a></font>'

var SrcStr = "";

SrcStr += ' <img src="'+BBArr[SelectVal].src+'" height='+BBArr[SelectVal].height
SrcStr += ' width='+BBArr[SelectVal].width+' border='+BBArr[SelectVal].border+' alt="'+BBArr[SelectVal].alt+'">';
SrcStr += '<br>'+BBArr[SelectVal].under 
SrcStr += '</a>'
