//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://n5md.com/discography/195/An-Idea-of-north--Learning-to-walk,http://n5md.com/ads/external/195-igloo.jpg,mark harris - an idea of north...,468,58";
banners[1] = "http://n5md.com/discography/191/Delirium-Portraits,http://n5md.com/ads/external/191-igloo.jpg,Tobias Lilja - Delirium Portraits,468,58";
banners[2] = "http://n5md.com/discography/192/To-Destroy-A-City,http://n5md.com/ads/external/192-igloo.jpg,To Destroy A City,468,58";


//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 = b[0];
img = b[1];
des = b[2];
wid = b[3];
hei = b[4];

//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>');


