//this creates a new array called banners
banners = new Array();

//this sets strings to the values in the array
//the markup is like this: "Website url,Banner url,Site description,Banner Width,Banner Height"
banners[0] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-DavidAzarewicz.gif,Description,468,60";
banners[1] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-EugeneGorbunoff1.gif,Description2,468,60";
banners[2] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-RoderickKlein.gif,Description3,468,60";
banners[3] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-EugeneGorbunoff2.gif,Description3,468,60";
banners[4] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-KeithMerringtonA.gif,Description3,468,60";
banners[5] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-KeithMerringtonB.gif,Description3,468,60";
banners[6] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-SilvanScherrer.gif,Description3,468,60";
banners[7] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-GerritSchoenmaker.gif,Description3,468,60";
banners[8] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-BenRietbroek.gif,Description3,468,60";
banners[9] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-DavidSaville.gif,Description3,468,60";
banners[10] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-KeesdeLezenneCoulander.gif,Description3,468,60";
banners[11] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-MensysHelpDesk.gif,Description3,468,60";
banners[12] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-AlexTaylor.gif,Description3,468,60";
banners[13] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-YuriDario.gif,Description3,468,60";
banners[14] = "http://ecomstation.ru/pic/banners-wse2011/WarpstockEurope2011-DmitriyKuminov.gif,Description3,468,60";

//this create a random number between 0 and the length of the array(2 in this case)
rand = Math.floor(Math.random() * banners.length);
//this splits the string in the array into the strings that were separated by commas and calls it b.
b = banners[rand].split(",");

//this creates variables for the new strings that were split from the banners array
url = "http://www.warpstock.eu/en/agenda/presentations.html";
img = b[0];
des = "Warpstock Europe 2011";
wid = b[2];
hei = b[3];

//this is the html markup that will display the banner on your site
document.write('<a href="' + url + '" target="_blank"><img src="' + img + '" width="'+ wid +'" height="'+ hei +'" border="0" alt="' + des + '" /></a>');


