NumberOfMenu = 3

// create two dimensional array
var multidimension = new Array(NumberOfMenu);
for (var i=0; i < multidimension.length; i++)
{
  multidimension[i] = new Array(2);
}

// access first element
multidimension[0][0] = 'it_home_adsml01.jpg';
multidimension[0][1] = 'articleIDs/C84E114C04B6F233CA256F2B000ADE9E?open';
multidimension[0][2] = 'Publishing solutions for print and web';
multidimension[1][0] = 'it_home_adsml02.jpg';
multidimension[1][1] = 'articleIDs/A01BF0D3A4EFA79DCA256F2B000AC0E3?open';
multidimension[1][2] = 'Get your message across effectively';
multidimension[2][0] = 'it_home_adsml03.jpg';
multidimension[2][1] = 'articleIDs/2F82ABDEF994B061CA256F2B000A7210?open';
multidimension[2][2] = 'Cost effective solutions';

var random=Math.floor(Math.random()*(multidimension.length))
document.write('<a href="',multidimension[random][1],'"><img alt="',multidimension[random][2],'" border="0" src="templates/ads/$file/',multidimension[random][0],'"></a>');