
// When you add another ad - add it in the ad desc (e.g., var ad9 = ), add another line to the ad and log arrays
// When you delete an ad, make sure you delete its line from the ad array (or sometimes the marketplace will show 'undefined')
// The actual output is created by the writeMarketplace() function

// Ads and descriptions - watch out for the single quotes - you'll need to escape them with &#39;
//function rand() starts here
function rand ( n )
{
  return ( Math.floor ( Math.random ( ) * n + 1 ) );
}
//Just to check what value is generated-  alert ( rand ( 2 ) );
//Function rand() ends 


//if (rand ( 2 ) == 1)
//{
//var ad2 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1946029230/Bottom/WebFin/ACM_USA_IW_Marketplace/blank.gif/1';
//var desc2 = '" style="display: block;" target="_blank" rel="nofollow" >FX Trading with ACM USA. Practice for Free!<br><font color=#0A9C06>www.acmusa.com</font></a>';
//}
//else
//{
//var ad2 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1946029230/Bottom/WebFin/ACM_USA_IW_Marketplace/blank.gif/1';
//var desc2 = '" style="display: block;" target="_blank" rel="nofollow" >Bullish Attitude? Start FX Trading Now!<br><font color=#0A9C06>www.acmusa.com</font></a>';
//}

//var ad1 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1684744784/Bottom/WebFin/ACM_IW_Marketplace/blank.gif/1';
//var desc1 = '" style="display: block;" target="_blank" rel="nofollow" >Forex trading: Trade with the worldwide leader and most competitive broker!<br><font color=#0A9C06>www.ac-markets.com</font></a>';

var ad2 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1567853812/Bottom/WebFin/OIC_ROS_Marketplace/blank.gif/1';
var desc2 = '" style="display: block;" target="_blank" rel="nofollow" >Download a free Options Fundamentals Podcast, from The Options Industry Council.<br><font color=#0A9C06>www.optionseducation.org</font></a>';
//var ad2 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1720493887/Bottom/WebFin/Investools_IW_Marketplace/blank.gif/1';
//var desc2 = '" style="display: block;" target="_blank" rel="nofollow" >Start trading stocks on insights - not instincts. Attend a free 2-hr Investools class.<br><font color=#0A9C06>www.investools.com</font></a>';

//var ad8 = 'http://www.emn1.com/redir.php?MSurl=http://www.thousandsofbrands.net/c/tracker.php?t=221';
//var desc8 = '" style="display: block;" target="_blank" rel="nofollow" >Start earning $200 to $900 a day working at home. No experience necessary. Money-back guarantee.<br><font color=#0A9C06>www.ultimatewealthsecrets.com</font></a>';

//var ad8 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1553344919/Bottom/WebFin/Prudential_NL_Marketplace/blank.gif/1';
//var desc8 = '" style="display: block;" target="_blank" rel="nofollow" >See the Prudential video that is successfully motivating clients to help get their retirement back on track. Order it now with our educational tool kit.<br><font color=#0A9C06>www.prudential.com</font></a>';

//var ad4 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorguide.com/investorguide/igr_text/1109073705/Bottom/WebFin/VectorVest_IGR_Text_Link/blank.gif/1';
//var desc4 = '" style="display: block;" target="_blank" rel="nofollow" >Is AAPL a Buy, Sell or Hold?  Click Here to analyze any stock FREE!<br><font color=#0A9C06>www.vectorvest.com</font></a>';

//var ad4 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorguide.com/investorguide/igr_text/1989085603/Bottom/WebFin/MetaStock_IGR_Text_Link/blank.gif/1';
//var desc4 = '" style="display: block;" target="_blank" rel="nofollow" >Download this FREE eBook for serious investors. Bollinger, Nison, and others!<br><font color=#0A9C06>www.metastock.com</font></a>';

//var ad11 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1376950006/Bottom/WebFin/Street_Smart_Report_IW_Marketpla/blank.gif/1';
//var desc11 = '" style="display: block;" target="_blank" rel="nofollow" >Where's the market going from here? Top-Ten Market-Timer Sy Harding's FREE morning blog.<br><font color=#0A9C06>www.SyHardingblog.com</font></a>';

//var ad10 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1698423694/Bottom/WebFin/Interbank_FX_ROS_Marketplace/blank.gif/1';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >IBFX - Shares Magazine Best Forex Brokerage 2007. Learn and Trade With The Best.<br><font color=#0A9C06>www.ibfx.com</font> <img src="http://altfarm.mediaplex.com/ad/tr/10901-67699-23208-3?mpt=[CACHEBUSTER]" style="border:0px solid red;"></a>';

//var ad9 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1831927901/Bottom/WebFin/FX_Sol_ROS_Marketplace_text/blank.gif/1';
//var desc9 = '" style="display: block;" target="_blank" rel="nofollow" >Trade Forex with the most advanced charting and platform. Register now for a FREE $10K practice account!<br><font color=#0A9C06>www.fxsolutions.com</font></a>';

//var ad10 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1152174923/WebFin/CMS_Forex_ROS_Marketplace/blank.gif/1';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >Manage your account directly from your web browser with VT Trader&trade; Web.<br><font color=#0A9C06>www.cmsfx.com</font></a>';

//var ad9 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1768422303/Bottom/WebFin/Lightspeed_ROS_Marketplace/blank.gif/1';
//var desc9 = '" style="display: block;" target="_blank" rel="nofollow" >Intro margin rates of 3.25&#37;. Lightspeed Trading. Here&#39;s to unfair advantages. <br><font color=#0A9C06>www.lightspeed.com</font></a>';

//var ad10 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1991472137/Bottom/WebFin/Forex_Club_ROS_Marketplace/blank.gif/1';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >FX Club: Trade forex with ZERO spread and pay commissions only when you profit. Try the award winning ExpressFX platform! Get a free $50k demo now!<br><font color=#0A9C06>www.fxclub.com</font></a>';

//var ad13 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorguide.com/investorguide/igr_text/1224085639/Bottom/WebFin/American_Express_SM_Marketplace/blank.gif/1';
//var desc13 = '" style="display: block;" target="_blank" rel="nofollow" >Online solution that simplifies search marketing, an important way to help find new customers.<br><font color=#0A9C06>www.searchmanager.com</font></a>';

//if (rand ( 2 ) == 1)
//{
//var ad11 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1717393204/Bottom/WebFin/Wicked_Profits_ROS_Marketplace/blank.gif/1';
//var desc11 = '" style="display: block;" target="_blank" rel="nofollow" >Who beat the S&P 500 by 75 percentage points in 2008?<br><font color=#0A9C06>www.wickedprofits.com</font></a>'; 
//}
//else 
//{
//var ad11 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1861674334/Bottom/WebFin/Wicked_Profits_ROS_Marketplace_2/blank.gif/1';
//var desc11 = '" style="display: block;" target="_blank" rel="nofollow" >Learn to be profitable in both bull and bear markets!<br><font color=#0A9C06>www.wickedprofits.com</font></a>'; 
//}
//else 
//{
//var ad11 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1716700694/Bottom/WebFin/Wicked_Profits_ROS_Marketplace_3/blank.gif/1';
//var desc11 = '" style="display: block;" target="_blank" rel="nofollow" >This options advisory service has made money both in bull and bear //markets.<br><font color=#0A9C06>www.wickedprofits.com</font></a>'; 
//}



//if (rand ( 10 ) <= 5)
//{
//var ad12 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1786995348/Bottom/WebFin/trade_MONSTER_ROS_Marketplace/blank.gif/1';
//var desc12 = '" style="display: block;" target="_blank" rel="nofollow" >Stock Traders! Open an account at trade MONSTER&#x2122; & discover a new era in online trading.<br><font color=#0A9C06>www.trademonster.com</font></a>';
//}
//else
//{
//var ad12 = ' ';
//var desc12 = ' ';
//}


/*if (rand ( 2 ) == 1)
{
var ad50 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1812710323/Bottom/WebFin/FXCM_ROS_Marketplace_text/blank.gif/1';
var desc50 = '" style="display: block;" target="_blank" rel="nofollow" >FXCM -Online Currency Trading Free $50,000 Practice Account<br><font color=#0A9C06>www.fxcm.com</font></a>';
}
else
{
var ad50 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1314067044/Bottom/WebFin/FXCM_ROS_Marketplace_2/blank.gif/1';
var desc50 = '" style="display: block;" target="_blank" rel="nofollow" >$25 Forex Account.Trade with super-low spreads.Open FXCM Micro Account!<br><font color=#0A9C06>www.forexmicrolot.com</font></a>';
}*/

/*if (rand ( 3 ) == 1)
{
var ad51 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1513590128/Bottom/WebFin/GAIN_ROS_Marketplace/blank.gif/1';
var desc51 = '" style="display: block;" target="_blank" rel="nofollow" >FOREX.com- Learn the ABC\'s of Currency Trading. Sign Up for a Free $50,000 Practice Account Today!<br><font color=#0A9C06>www.forex.com</font></a>';
}
else if (rand ( 3 ) == 2)
{
var ad51 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1784363889/Bottom/WebFin/GAIN_ROS_Marketplace_2/blank.gif/1';
var desc51 = '" style="display: block;" target="_blank" rel="nofollow" >FOREX.com- Learn How to Trade Currencies. Get a Free eBook and Forex Practice Account.<br><font color=#0A9C06>www.forex.com</font></a>';
}
else
{
var ad51 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1496178233/Bottom/WebFin/GAIN_ROS_Marketplace_3/blank.gif/1';
var desc51 = '" style="display: block;" target="_blank" rel="nofollow" >FOREX.com- Learn. Practice. Trade Currencies. Get a Risk-Free $50,000 Practice Account.<br><font color=#0A9C06>www.forex.com</font></a>';
}*/


var pre = '<a class="bodymarketplace" href="';

// Number of text ads to display at once 
//
displaylength = 6;

// Ad array - make sure it only has as many entries as there are ads
//
counter = 0;
marketplace = new Array();


//if (rand ( 2 ) == 1)
//{
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1946029230/Bottom/WebFin/ACM_USA_IW_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad2 + desc2 + '</font></td></a></tr></table><br>';
//}
//else
//{
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1946029230/Bottom/WebFin/ACM_USA_IW_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad2 + desc2 + '</font></td></a></tr></table><br>';
//}
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1979417483/Bottom/WebFin/FXCM_ROS_Marketplace_text/blank.gif/1"><td><font size=-1>' + pre + ad3 + desc3 + '</font></td></a></tr></table><br>';
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorguide.com/investorguide/igr_text/1297036753/Bottom/WebFin/ACM_IGRTextBonus_May-Jul2008/blank.gif/1"><td><font size=-1>' + pre + ad1 + desc1 + '</font></td></a></tr></table><br>'; 
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1567853812/Bottom/WebFin/OIC_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad2 + desc2 + '</font></td></a></tr></table><br>';
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1720493887/Bottom/WebFin/Prudential_NL_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad8 + desc8 + '</font></td></a></tr></table><br>';
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorguide.com/investorguide/igr_text/1989085603/Bottom/WebFin/MetaStock_IGR_Text_Link/blank.gif/1"><td><font size=-1>' + pre + ad4 + desc4 + '</font></td></a></tr></table><br>';
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://www.emn1.com/redir.php?MSurl=http://www.thousandsofbrands.net/c/tracker.php?t=221"><td><font size=-1>' + pre + ad8 + desc8 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1376950006/Bottom/WebFin/Street_Smart_Report_IW_Marketpla/blank.gif/1"><td><font size=-1>' + pre + ad11 + desc11 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1698423694/Bottom/WebFin/Interbank_FX_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad10 + desc10 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1831927901/Bottom/WebFin/FX_Sol_ROS_Marketplace_text/blank.gif/1"><td><font size=-1>' + pre + ad9 + desc9 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1768422303/Bottom/WebFin/Lightspeed_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad9 + desc9 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1991472137/Bottom/WebFin/Forex_Club_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad10 + desc10 + '</font></td></a></tr></table><br>';
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorguide.com/investorguide/igr_text/1224085639/Bottom/WebFin/American_Express_SM_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad13 + desc13 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1152174923/WebFin/CMS_Forex_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad10 + desc10 + '</font></td></a></tr></table><br>'; 
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1548104329/Bottom/WebFin/RJO_Futures_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad10 + desc10 + '</font></td></a></tr></table><br>'; 


/*if (rand ( 2 ) == 1)
{
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1812710323/Bottom/WebFin/FXCM_ROS_Marketplace_text/blank.gif/1"><td><font size=-1>' + pre + ad50 + desc50 + '</font></td></a></tr></table><br>'; 
}
else 
{
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_text/1314067044/Bottom/WebFin/FXCM_ROS_Marketplace_2/blank.gif/1"><td><font size=-1>' + pre + ad50 + desc50 + '</font></td></a></tr></table><br>'; 
}*/

/*if (rand ( 3 ) == 1)
{
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1513590128/Bottom/WebFin/GAIN_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad51 + desc51 + '</font></td></a></tr></table><br>'; 
}
else if (rand ( 3 ) == 2)
{
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1784363889/Bottom/WebFin/GAIN_ROS_Marketplace_2/blank.gif/1"><td><font size=-1>' + pre + ad51 + desc51 + '</font></td></a></tr></table><br>'; 
}
else
{
marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1496178233/Bottom/WebFin/GAIN_ROS_Marketplace_3/blank.gif/1"><td><font size=-1>' + pre + ad51 + desc51 + '</font></td></a></tr></table><br>'; 
}*/


//if (rand ( 10 ) <= 5)
//{
//marketplace[counter++] = '<table width=100% border=1 cellspacing=0 cellpadding=5 style=\"cursor:pointer;cursor:hand\"><tr><a style="display: block;" target="_blank" rel="nofollow"  class="bodymarketplace" href="http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1786995348/Bottom/WebFin/trade_MONSTER_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad12 + desc12 + '</font></td></a></tr></table><br>'; 
//}
//else
//{
//marketplace[counter++] = ' '; 
//}








// Comparison array - used to make sure no ad is displayed twice at once - shouldn't need to change
// 
nullmarketplace = new Array();
for (var nullcounter = 0; nullcounter < counter; nullcounter++){
  nullmarketplace[nullcounter] = 0;
}

// Display the ads - the 'for' loop is used to make the ad string and to ensure there are no repeats in a given output
// If you want to change the appearance of the marketplace, it's all in the first document.write
// 'trackimage' is used to track the impressions of each text link - it uses a cgi redirect to log the links that are shown
// and the order that they're in.
// If you want to set a certain ad to always display first in the list, just make it the initial value of the string
// variable 's', and reduce the displaylength by one

var alreadywrote = 0;

function writeMarketplace()
{
 if (displaylength > counter) 
 {
   displaylength = counter;
 }
 var s = '';
 var trackimage = '<img src=http://www.webfinanceinc.com/Ads/adview.php?what=zone:98&amp;n=af6ce73f border=0 height=1 width=1>';

 var linknumber;
 for (var i=1; i < displaylength; i++)
 {
   // Uncomment this block of code below (i.e. the next 6 lines of text)if you want to set a certain ad to always display first in the list
   // Also, change the var i=0 (3 lines above) to var i=1
   
    if (alreadywrote == 0) 
    {
     nullmarketplace[0] = 1;
      s += marketplace[0];
     alreadywrote = 1;
    }

   linknumber = Math.floor(Math.random()*counter);
   if (nullmarketplace[linknumber] == 0)
   {
     nullmarketplace[linknumber] =1;
     s+= marketplace[linknumber];

   } else {
     i--;
   }
 }
 document.write('<table width=220 border=0><tr><td><center><font face=arial size=-1>SPECIAL OFFERS</font></center></td></tr></table><table width=220 cols=2 border=0 cellspacing=0 cellpadding=5 bordercolor=black class=bodymarketplace><tr><td valign=top width="100%"><font face=arial size=-1>'); document.write(s);
 document.write('<font size=-5><br>');
 document.write(trackimage);
 document.write('<center><a href="http://www.webfinanceinc.com/Ads/adclick.php?&bannerid=178&dest=http://www.investorwords.com/advertising_text.html" target=new> <b>See Your Message Here</b></a></center></font></td></tr></table>');
}

// Draw the marketplace
writeMarketplace();
<!-- 
  
 -->
