// JavaScript Document
//random image generate
var theImages = new Array();
var thelinks = new Array();

//theImages[0] = 'weekly_plan.jpg';
theImages[0] = 'directory_2007.gif';
theImages[1] =  'apply_online.png';
theImages[2] =  'delegation.png';
//thelinks[0]	 = 'index.php?nav=events&id=24';
thelinks[0]	 = '#';
thelinks[1]	 = 'index.php?nav=membership&page=apply';
thelinks[2]	 = 'http://delegation.ngcci.org';
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('<a href="'+thelinks[whichImage]+'"><img alt="" src="images/'+theImages[whichImage]+'" border="0"></a>');
}
