var img_width = "468"; // define width
var img_height = "60";  // define height

// create the image and link arrays
var links = new Array()
var pic = new Array()
var img_title = new Array()
var pic_Linkshare = new Array()

// insert links
links[0] = 'http://click.linksynergy.com/fs-bin/click?id=dKCtpF8YB/w&offerid=185820.10000059&type=4&subid=0';
links[1] = 'http://click.linksynergy.com/fs-bin/click?id=dKCtpF8YB/w&offerid=196349.10000074&subid=0&type=4';
links[2] = 'http://click.linksynergy.com/fs-bin/click?id=dKCtpF8YB/w&offerid=185562.10000001&type=4&subid=0';
links[3] = 'http://click.linksynergy.com/fs-bin/click?id=dKCtpF8YB/w&offerid=190040.10000065&subid=0&type=4';
//links[4] = '';
//links[5] = '';
//links[6] = '';

// insert images alt
img_title[0] = 'Atom Entertainment (formerly AtomShockwave)';
img_title[1] = 'King.com (Midasplayer.com Ltd.)';
img_title[2] = 'GameDuell Inc. - Play billiard';
img_title[3] = 'iWin, Inc.';
//img_title[4] = '';
//img_title[5] = '';
//img_title[6] = '';

// insert images link
pic[0] = 'http://www.meadigital.com/Shockwave/Banners/SHOC_468x60.gif';
pic[1] = 'http://ad.linksynergy.com/fs-bin/show?id=dKCtpF8YB/w&bids=196349.10000074&subid=0&type=4&gridnum=1';
pic[2] = 'http://us-m1.gameduell.com/res/Affiliate/US/468x60/gif/bil/468x60_bil_080611_us.gif';
pic[3] = 'http://ad.linksynergy.com/fs-bin/show?id=dKCtpF8YB/w&bids=190040.10000065&subid=0&type=4&gridnum=1';
//pic[4] = '';
//pic[5] = '';
//pic[6] = '';

// insert Linkshare images link (http://www.tenpointgames.com/templates/new/Ads/1pixel.gif for blank image)
pic_Linkshare[0] = 'http://ad.linksynergy.com/fs-bin/show?id=dKCtpF8YB/w&bids=185820.10000059&type=4&subid=0';
pic_Linkshare[1] = 'http://www.tenpointgames.com/templates/new/Ads/1pixel.gif';
pic_Linkshare[2] = 'http://ad.linksynergy.com/fs-bin/show?id=dKCtpF8YB/w&bids=185562.10000001&type=4&subid=0';
pic_Linkshare[3] = 'http://www.tenpointgames.com/templates/new/Ads/1pixel.gif';
//pic_Linkshare[4] = '';
//pic_Linkshare[5] = '';
//pic_Linkshare[6] = '';

var xy=Math.floor(Math.random()*pic.length);  
// generates a random digit
// then makes it a whole number

document.write('<a href="'+links[xy]+'" target="_blank"><img border="0" src="'+pic[xy]+'" alt="'+img_title[xy]+'" width="'+img_width+'" height="'+img_height+'" /></a><img border="0" src="'+pic_Linkshare[xy]+'" alt="" width="1" height="1" />');

