// Copyright (c) 1999-2009 Cyber-dynamics International Inc. All Rights Reserved.



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 

//    Code for randomly displayed Banner Ad a top of front page       

//                                                                                                                        

//     1. Edit the List of Adverts below to list the adverts to be displayed                                         

//     2. Each row in the array has four entries as follows:    

//            ['AdStatsReference/ID','ImageSRC','ImageAlt','TargetURL'] ,       

//     3. Example:

//           ['FPTB-Elections','/banners/580x76-elections.gif','See Election Results','http://www.compasscayman.com/elections/news.aspx?id=1191'],

//      4. You can add as many rows as you wish

//      5. Note that each row except the last row of data ends with a comma

//

// List of adverts:



var saBanners=[

['FPTB-ChristmasPhotos','/banners/580x76-christmas-photos.jpg','Submit your Christmas photos','http://www.caycompass.com/cgi-bin/CDload.cgi?action=XL&amp;ref=ChristmasBanner&amp;URL=http://www.caycompass.com/photogallery/#christmas'],

['FPTB-Weather','/banners/580x76-weather-storms.gif','Cayman Weather Watch','http://www.caycompass.com/cgi-bin/CDload.cgi?action=XL&amp;ref=WeatherBanner&amp;URL=http://www.compasscayman.com/weather']

];



/////////////////////////////////////////// DO NOT CHANGE BELOW THIS LINE////////////////////////////////////////////////////////////

function selectBannerAd(){var i = Math.round( Math.random() * (saBanners.length - 1));var s="<a href='http://www.caycompass.com/cgi-bin/CDload.cgi?action=XL&amp;ref="+saBanners[i][0]+"&amp;URL="+saBanners[i][3]+"' class='bannerimg' target='_blank'><img src='"  + saBanners[i][1]+"' width='580' height='76' border='0' alt='"+saBanners[i][2]+"' /></a>";document.write(s);document.write('<script type="text\/javascript" src="\/banners\/CFPCCbanners.js"><\/s' + 'cript>');}

//////////////////////////////////////////////////////////////// END ////////////////////////////////////////////////////////////////////