
bottomPromosArray=[
["http://d23.disney.go.com/images/promos/100109_SynergyTile_ABD.jpg","http://abd.disney.go.com/abd/en_US/region?name=FreeCruiseOfferPage&cid=14846&CMP=VAN-ABDFY10Q1FreeCruise1001 <http://abd.disney.go.com/abd/en_US/region?name=FreeCruiseOfferPage&amp;cid=14846&amp;CMP=VAN-ABDFY10Q1FreeCruise1001"],
["http://d23.disney.go.com/images/promos/110209_SYNERGY-TILE_WDSHE.jpg","http://disneydvd.disney.go.com/walt-disney-treasures.html"],
["http://d23.disney.go.com/images/promos/110209_SYNERGY-TILE_DisneyParks.jpg","http://www.disneyparks.com/movieoffer"],
["http://d23.disney.go.com/images/promos/071309_DMC.gif","https://disneymovieclub.go.com/webapp/wcs/stores/servlet/AcquisitionBrowseView?langId=-1&storeId=10001&catalogId=10051&headerText=Bestsellers&categoryId=10074&offerId=uaxw9Nut8tQ%3D&source=&sourceId"]
];

leftPromosArray=[
["http://d23.disney.go.com/articles/images/031009_Home-Ad_WhatIsD23.jpg","http://d23.disney.go.com/articles/031009_NF_FS_MadeForYouAndMe.html"],
["http://d23.disney.go.com/images/promos/031009_Home-Ad_Comics.jpg","http://d23.disney.go.com/comics.html"]
];

function writeBottomPromos(){

document.writeln('<table border="0" cellspacing="16" align="center"><tr>');

for (bp=0; bp<bottomPromosArray.length; bp++){
if (bottomPromosArray[bp][0]!=""){
document.writeln('<td>\
<div style="background:url(http://d23.disney.go.com/images/bottom-ad-frame.gif) no-repeat; width:194px; height:164px;">\
<div style="padding:6px 8px; 6px 8px;">');
if (bottomPromosArray[bp][1]!=""){ document.writeln('<a href="'+bottomPromosArray[bp][1]+'"><img src="'+bottomPromosArray[bp][0]+'" border="0" alt=""></a>'); }
else { document.writeln('<img src="'+bottomPromosArray[bp][0]+'" border="0" alt="">'); }

document.writeln('</div>\
</div>\
</td>');
}}
document.writeln('</tr></table>');
}

function writeLeftPromos(){
document.writeln('<div align="center">');
for (lp=0; lp<leftPromosArray.length; lp++){
if (leftPromosArray[lp][0]!=""){
if (leftPromosArray[lp][1]!=""){ document.writeln('<a href="'+leftPromosArray[lp][1]+'"><img src="'+leftPromosArray[lp][0]+'" border="0" alt=""></a>'); }
else { document.writeln('<img src="'+leftPromosArray[lp][0]+'" border="0" alt="">'); }
document.writeln('<br><br>');
}}
document.writeln('</div>');
}
