
//scenarios:
// 0 -- 468x60 Hardware
// // 1 - Netlabs.org
// 2 - Chuck/120 + Blonde/120 + EMPTY/120
// 3 - EMPTY/120 +  EMPTY/120 + EMPTY/120
// 4 - more
// 5 - more
//
// 1 x 468x
// 12 x 120 
// N=5   0 .. 3

scenario = Math.floor(Math.random() * 5);

//document.write( 'scenario ' + scenario );

if(scenario<1) {
   banners468 = new Array();
   banners468[0]="http://ecomstation.ru/pic/banners-eCoRing/hardware_bann.gif,http://ecomstation.ru/hardware,201104xx";
   //banners468[1]="http://ecomstation.ru/pic/banners-eCoRing/eCo-Ring-Netlabs.gif,http://svn.netlabs.org,201104xx";

   rand468 = Math.floor(Math.random() * banners468.length);

   b468 = banners468[rand468].split(",");

   pica = b468[0];
   urla = b468[1];

document.write('<table border=0 cellspacing=0 cellpadding=0>  <tr height=60>');
document.write('<td valign=top width=120><A href=' + urla + '><img src=' + pica +'></a></td>');
document.write('  </tr></table>');

}
else    // if (scenario>=2 && scenario<=3)
{

banners120 = new Array();
banners120[0]="http://ecomstation.ru/pic/banners-eCoRing/chuck-banner.png,http://www.7cities.net/~mckinnis/ecs/index.html,201104xx";
banners120[1]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-BlondeGuy.png,http://blondeguy.com/,201104xx";
banners120[2]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-HerwigB.png,http://members.aon.at/herwig.bauernfeind/,201104xx";
banners120[3]="http://ecomstation.ru/pic/banners-eCoRing/eComStation20whatsnew.png,http://ecomstation.ru/ecs-rus/?action=ecs21whatsnew,201104xx";
banners120[4]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-TV.gif,http://ecomstation.tv,201104xx";
banners120[5]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-Catalogue.gif,http://ecomstation.ru/ecomarket,201104xx";
banners120[6]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-BlueNexus.gif,http://www.bluenexus.net/,201104xx";
banners120[7]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-os2ezine.gif,http://www.os2ezine.com/backissues.html,20110417";
banners120[8]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-Draad.gif,http://os2-gg.nl/index.php?option=com_content&view=article&id=44&Itemid=55,20110417";
banners120[9]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-os2voice.gif,http://www.os2voice.org/VNL/past_issues/vnlindex.html#vnl0708,20110417";
banners120[10]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-ecomstation-ru-articles.gif,http://ecomstation.ru/articles.php?page=1&words=&atype=0&recperpage=1000,FOREVER";
banners120[11]="http://ecomstation.ru/pic/banners-eCoRing/eCoRing-PaulSmedley.gif,http://os2ports.smedley.info,20110417";
banners120[12]="http://ecomstation.ru/pic/banners-eCoRing/ecsfaq-eng.gif,http://www2.ecomstation.ru/ecsfaq,20110620";

rand120a = Math.floor(Math.random() * banners120.length);
rand120b = Math.floor(Math.random() * banners120.length);
rand120c = Math.floor(Math.random() * banners120.length);

//this splits the string in the array into the strings that were separated by commas and calls it b.
b120a = banners120[rand120a].split(",");
b120b = banners120[rand120b].split(",");
b120c = banners120[rand120c].split(",");


pica = b120a[0];
urla = b120a[1];
picb = b120b[0];
urlb = b120b[1];
picc = b120c[0];
urlc = b120c[1];

document.write('<table border=0 cellspacing=0 cellpadding=0>  <tr height=60>');
document.write('<td valign=top width=120><A href=' + urla + '><img src=' + pica +'></a></td>');
document.write('<td valign=top width=120><A href=' + urlb + '><img src=' + picb +'></a></td>');
document.write('<td valign=top width=120><A href=' + urlc + '><img src=' + picc +'></a></td>');
document.write('<td valign=top width=108><a href="http://ecomstation.ru/projects/links/?action=ecoring"><img src="http://ecomstation.ru/pic/banners-eCoRing/Join-eCo-Ring.png"></a></td>');
document.write('  </tr></table>');

}


