
// 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 

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>';

//if (rand ( 2 ) == 1)
//{
//var ad2 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1464794991/Bottom/WebFin/SFO_Mag_IW_Marketplace/blank.gif/1';
//var desc2 = '" style="display: block;" target="_blank" rel="nofollow" >One of the best read Stocks, Futures, and Options Magazines can be yours for FREE!<br><font color=#0A9C06>www.sfomag.com</font></a>';
//}
//else
//{
//var ad2 = 'http://oascentral.investorwords.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1718538700/Bottom/WebFin/SFO_Mag_IW_Second_Marketplace/blank.gif/1';
//var desc2 = '" style="display: block;" target="_blank" rel="nofollow" >Get your free trial to SFO StraightTalk!  Just News. No Bull.<br><font color=#0A9C06>www.sfomag.com</font></a>';
//}

//var ad3 = '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';
//var desc3 = '" style="display: block;" target="_blank" rel="nofollow" >$25 Forex Account. Trade with super-low spreads. Open FXCM Micro Account!<br><font color=#0A9C06>www.fxcmmicro.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/Fisher_ROS_Marketplace_Text/blank.gif/1';
//var desc8 = '" style="display: block;" target="_blank" rel="nofollow" >Eight Biggest Mistakes Investors Make by Forbes columnist, Ken Fisher.<br><font color=#0A9C06>www.fi.com</font></a>';

//var ad4 = '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 desc4 = '" 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 ad10 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1544440587/Bottom/WebFin/RC_Bonds_NL_Marketplace/blank.gif/1';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >Reverse Convertible Bonds. Diversify with Yield Enhanced Equity Link Securities.<br>Learn more. Securities offered through brokersXpress, Member FINRA, SIPC.<br><font color=#0A9C06>www.rcbonds.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 ad4 = '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 desc4 = '" 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 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 ad 10 ='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';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >Get Options Strategy Explanations, Charts, and Samples with This FREE Guide from RJO Futures.<br><font color=#0A9C06>www.rjofutures.com</font></a>';

var ad10 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1615210895/Bottom/WebFin/XForex_ROS_Marketplace/blank.gif/1';
var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >Trade the ultimate market with zero risk! Join Xforex and get a FREE $50,000 DEMO ACCOUNT.<br><font color=#0A9C06>www.xforex.com</font></a>';

//if (rand ( 10 ) <= 5)
//{
//var ad10 = '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';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >$25 Forex Account. Trade with super-low spreads. Open FXCM Micro Account!<br><font color=#0A9C06>www.fxcmmicro.com</font></a>';
//}
//else
//{
//var ad10 = 'http://oascentral.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1615210895/Bottom/WebFin/XForex_ROS_Marketplace/blank.gif/1';
//var desc10 = '" style="display: block;" target="_blank" rel="nofollow" >Stung by stocks?<br> Trade currencies with XForex. <br>Click here to learn more and profit today!<br><font color=#0A9C06>www.xforex.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>';
}




/*if (rand ( 20 ) <= 11)
{
}
else
{
var ad13 = '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 desc13 = '" 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.streetsmartreport.com</font></a>';
}*/ 


/*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>';
}*/



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();

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>'; 

//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_marketplace/1464794991/Bottom/WebFin/SFO_Mag_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_marketplace/1718538700/Bottom/WebFin/SFO_Mag_IW_Second_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_marketplace/1567853812/Bottom/WebFin/OIC_ROS_Marketplace/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.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/NL_Marketplace_Text/1544440587/Bottom/WebFin/RC_Bonds_NL_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/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/1567853812/Bottom/WebFin/OIC_ROS_Marketplace/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://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.investorguide.com/RealMedia/ads/click_lx.ads/www.investorwords.com/investorwords/ros_marketplace/1615210895/Bottom/WebFin/XForex_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad10 + desc10 + '</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.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 + ad10 + desc10 + '</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_marketplace/1615210895/Bottom/WebFin/XForex_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/1200856895/Bottom/WebFin/ETrade_ROS_Marketplace/blank.gif/1"><td><font size=-1>' + pre + ad11 + desc11 + '</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 ( 20 ) <= 11)
//{
//}
//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_marketplace/1376950006/Bottom/WebFin/Street_Smart_Report_IW_Marketpla/blank.gif/1"><td><font size=-1>' + pre + ad13 + desc13 + '</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>'; 
}*/


// 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();
<!-- 
  
 -->