// The Central Randomizer 1.3 (C) 1997 by Paul Houle (houle@msc.cornell.edu)
rnd.today=new Date();
rnd.seed=rnd.today.getTime();

function rnd() {
	rnd.seed = (rnd.seed*9301+49297) % 233280;
	return rnd.seed/(233280.0);
};

function rand(number) {
	return Math.ceil(rnd()*number);
};


// Object constructor 
function HouseAd(IMG, URL) { 
   this.IMG = IMG 
   this.URL = URL 
} 

var HouseAdList = new Array() 
HouseAdList[0] = new HouseAd("/btv_162x60.gif", "http://www.bloomberg.co.jp/media/btv.html") 
HouseAdList[1] = new HouseAd("/careers_162x60.gif", "http://about.bloomberg.com/careers/index.html") 
HouseAdList[2] = new HouseAd("/marketmonitor_162x60.gif", "http://www.bloomberg.co.jp/analysis/monitor/index.html") 
HouseAdList[3] = new HouseAd("/press_162x60.gif", "http://www.ordering1.us/bloombergbooks/index.php?sid=1&ccamp=RETAIL") 
HouseAdList[4] = new HouseAd("/moneylife_162x60.gif", "http://www.bloomberg.co.jp/analysis/money.html")
HouseAdList[5] = new HouseAd("/jpabout_162x60.gif", "http://about.bloomberg.co.jp/")

function ShowHouseAd() {
	var ii = rand(6)-1;
	document.write('<a href="' + HouseAdList[ii].URL + '">');
	document.write('<img class="nav" alt="Bloomberg.com" border="0" height="60" width="162" src="http://images.bloomberg.com/ads' + HouseAdList[ii].IMG + '">');
	document.write('</a>');
	return true;
};

