images = new Array();
images[0] = '<a href="http://www.jdoqocy.com/click-2198188-10442177" target="_top"><img src="http://www.lduhtrp.net/image-2198188-10442177" width="120" height="150" alt="10% Off your order of $100" border="0"/></a>'; // Junonia
images[1] = '<a href="http://www.dpbolvw.net/click-2198188-10472446" target="_top"><img src="http://www.tqlkg.com/image-2198188-10472446" width="120" height="60" alt="Save on Avenue Plus Size Clothing" border="0"/></a>'; // Avenue
images[2] = '<a href="http://www.anrdoezrs.net/click-2198188-10442181" target="_top"><img src="http://www.awltovhc.com/image-2198188-10442181" width="120" height="150" alt="10% Off your order of $100" border="0"/></a>'; // Junonia
images[3] = '<a href="http://www.kqzyfj.com/click-2198188-10538671" target="_top"><img src="http://www.awltovhc.com/image-2198188-10538671" width="125" height="125" alt="" border="0"/></a>'; // Swimsuits for all
images[4] = '<a href="http://www.anrdoezrs.net/click-2198188-10488283" target="_top"><img src="http://www.tqlkg.com/image-2198188-10488283" width="125" height="125" alt="Plus Size clothing from Avenue" border="0"/></a>'; // Avenue
images[5]='<a href="http://www.anrdoezrs.net/click-2198188-10708544" target="_top"><img src="http://www.tqlkg.com/image-2198188-10708544" width="125" height="125" alt="Join MapMyRun.com\'s Premium Membership Program" border="0"/></a>'; // Map my Run
images[6] = '<a href="http://www.dpbolvw.net/click-2198188-10458052" target="_top"><img src="http://www.tqlkg.com/image-2198188-10458052" width="125" height="125" alt="Avenue.com Plus Size Clothing" border="0"/></a>'; // Avenue
images[7] = '<a href="http://www.anrdoezrs.net/click-2198188-10542019" target="_top"><img src="http://www.ftjcfx.com/image-2198188-10542019" width="120" height="240" alt="" border="0"/></a>'; // Swimsuits for all

adhere = '<a href="http://www.pastaqueen.com/halfofme/advertising.html" target="_top" title="Advertise Here"><img src="http://www.pastaqueen.com/halfofme/images/advertise_here.png" width="125" height="125" alt="" border="0"/></a>'; // Advertise here
//linktext = '<div class="center" id="affiliatead1"><a href="http://1940sexperiment.wordpress.com/"><img src="http://www.pastaqueen.com/halfofme/images/ad/button1940.jpg" border="0"></a></div>';

index = Math.floor(Math.random() * images.length);
linktext = '<div class="center" id="affiliatead1">' + images[index] + '</div>';
//next = index + 1;
//if (next > (images.length-1)) {
//	next = 0;
//}

linktext += '<div class="center" id="affiliatead2">' + adhere + '</div>';

document.getElementById('affiliateadblock').innerHTML = linktext;