// JavaScript Document

var theImages = new Array() 

theImages[0] = '../images/nprofit/bbb_sm2.jpg'
theImages[1] = '../images/nprofit/guidestar_sm2.jpg'
theImages[2] = '../images/nprofit/npccny_sm2.jpg'
theImages[3] = '../images/nprofit/nyrag_sm2.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

var theImages2 = new Array() 

theImages2[0] = '../images/nprofit/alliance_sm2.jpg'
theImages2[1] = '../images/nprofit/aafny_sm2.jpg'
theImages2[2] = '../images/nprofit/hf_sm2.jpg'
theImages2[3] = '../images/nprofit/alliance_sm2.jpg'

var j = 0
var p = theImages2.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages2[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage2(){
document.write('<img src="'+theImages2[whichImage]+'">');
}

var theImages3 = new Array() 

theImages3[0] = '../images/nprofit/cfc_sm2.jpg'
theImages3[1] = '../images/nprofit/citizensnyc_sm2.jpg'
theImages3[2] = '../images/nprofit/lany_sm2.jpg'
theImages3[3] = '../images/nprofit/cfc_sm2.jpg'

var j = 0
var p = theImages3.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages3[i]
}
var whichImage = Math.round(Math.random()*(p-1));

function showImage3(){
document.write('<img src="'+theImages3[whichImage]+'">');
}
