var console

function Menu() {
	document.write('<style>')
	document.write('<!--')

	document.write('A:hover {color:blue}')

	document.write('-->')
	document.write('</style>')

	document.write('<a HREF="index.shtml" target="_top" onclick="console=false">Home</a><br>')
	document.write('<a HREF="rooms4.shtml" target="_top" onclick="console=false">Chat Rooms</a><br>')
	document.write('<a HREF="javascript:count()" target="_top" onclick="console=false">User Count</a><br>')
	document.write('<a HREF="help.html" target="_top" onclick="console=false">Chat Help</a><br>')
//	document.write('<a HREF="wizard.html" target="_top" onclick="console=false">Add a Room</a><br>')
//	document.write('<a HREF="wizard.html" target="_top" onclick="console=false">Create a Room</a><br>')
//	document.write('<a HREF="wizard.html" target="_top" onclick="console=false">Room Wizard</a><br>')
	document.write('<a HREF="adhere.shtml" target="_top" onclick="console=false">Advertising</a><br>')
	document.write('<a HREF="contact.htm" target="_top" onclick="console=false">Contact Us</a><br>')
	document.write('<a HREF="ads.shtml" target="_top" onclick="console=false">Sponsors</a><br>')
}

function count() {
    mycount=open('http://www.actionchat.com/chat/usercount.shtml','mycount','resizable=no,width=150,height=70,screenX=15,left=15,screenY=20,top=20');		
    mycount.location.href = 'http://www.actionchat.com/chat/usercount.shtml';
    if (mycount.opener == null) mycount.opener = self;
 }

function rand(number) {
	return Math.ceil(rnd()*number);
};

function rnd() {
	rnd.seed = (rnd.seed*9301+49297) % 233280;
	return rnd.seed/(233280.0);
};

function adprint(number) {

	rnd.today=new Date();
	rnd.seed=rnd.today.getTime();
	listofimages = new Array();
	listofimages[1] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=19187551&siteid=30471932&bfpage=homepage2" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=19187551&siteid=30471932&bfpage=homepage2" TARGET="_blank"><IMG SRC="http://a1964.g.akamaitech.net/7/1964/452/000000001/www.dealtime.com/about/affiliate/468x60_drop21.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT=""></A>'
	listofimages[2] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=22857589&siteid=35518954&bfpage=banner_ad" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=22857589&siteid=35518954&bfpage=banner_ad" TARGET="_blank"><IMG SRC="http://www.alloy.com/a2k/formarketing/hottie_60.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT="hottie"></A>'

//	listofimages[2] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=14527760&siteid=35413980&bfpage=frequency" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=14527760&siteid=35413980&bfpage=frequency" TARGET="_blank"><b><font size=6>Do you love to dance?</font></b></A>'
//	listofimages[3] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=32564910&siteid=35725741&bfpage=homepage" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=32564910&siteid=35725741&bfpage=homepage" TARGET="_blank"><IMG SRC="http://www.gateway.com/promotion/affiliate/images/images/468x60.telescope.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT=""></A>'
//	listofimages[3] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=30431297&siteid=35612404&bfpage=afbuysell" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=30431297&siteid=35612404&bfpage=afbuysell" TARGET="_blank"><IMG SRC="http://images.auctionflow.com/banner_af468_7r2.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT="AuctionFlow-Complete Auction Management"></A>'
//	listofimages[1] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=7279965&siteid=30450362&bfpage=spedia468x60" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=327627&bfsiteid=30867076&bfpage=multicultural" TARGET="_blank"><IMG SRC="http://www.americangreetings.com/affiliates/abanners/multi/468multi1.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT="Multi Cultural Greetings"></A>'
//	listofimages[4] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=6902732&siteid=13338819&bfpage=home" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=6902732&siteid=13338819&bfpage=home" TARGET="_blank"><IMG SRC="http://images.netradio.net/affiliate/general.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT=""></A>'
//	listofimages[4] = '<p><IMG SRC="http://service.bfast.com/bfast/serve?bfmid=28146080&siteid=32341926&bfpage=vvtv" BORDER="0" WIDTH="1" HEIGHT="1" NOSAVE><A HREF="http://service.bfast.com/bfast/click?bfmid=28146080&siteid=32341926&bfpage=vvtv" TARGET="_blank"><IMG SRC="http://www.vvtv.com/affiliates/banners/468_60/shopping06_468_60.gif" BORDER="0" WIDTH="468" HEIGHT="60" ALT=""></A>'



	numberofimages = listofimages.length - 1;
	randomarray = new Array();

	for (x = 0; x < numberofimages; x++) {
		randomarray[x] = x + 1;
	}

	for (x = numberofimages-1; x >= 0; x--) {
		index = rand(x + 1) - 1;
		y = randomarray[index];
		randomarray[index] = randomarray[x];
		randomarray[x] = y;
	}

	if (number > numberofimages) {
		number = numberofimages;
	}

	for (x = 0; x < number; x++) {
		document.write(listofimages[randomarray[x]]);
	}
}

