function ad_1()
{
document.write(
	'<center><div style="padding: 3px; background: ' + book_boxcolor +
	'; width: 728px; border: 1px ' + book_framecolor + ' solid;" align=center>' +
	'<a target=_new style="text-decoration: none; color: ' + book_linkcolor + ';" ' +
	'href="http://www.tv-friendship.com/">www.TV-friendship.com</a><br>' +
	'<font color="' + book_textcolor + '">' +
	'The matchmaking service with an all new twist.' +
	'</font></div></center>');
}
function ad_2()
{
document.write(
	'<center><div style="padding: 3px; background: ' + book_boxcolor +
	'; width: 728px; border: 1px ' + book_framecolor + ' solid;" align=center>' +
	'<a target=_new style="text-decoration: none; color: ' + book_linkcolor + ';" ' +
	'href="http://www.geocities.com/grymse/quantum.html">Quantum \'Teleportation\'</a><br>' +
	'<font color="' + book_textcolor + '">' +
	'Some thoughts.' +
	'</font></div></center>');
}
function ad_3()
{
document.write(
	'<center><div style="padding: 3px; background: ' + book_boxcolor +
	'; width: 728px; border: 1px ' + book_framecolor + ' solid;" align=center>' +
	'<a target=_new style="text-decoration: none; color: ' + book_linkcolor + ';" ' +
	'href="http://www.alhem.net/dbdesigner/">www.alhem.net/dbdesigner</a><br>' +
	'<font color="' + book_textcolor + '">' +
	'Design your own MySQL database online. <i>With free source code.</i>' +
	'</font></div></center>');
}
function ad_moz()
{
	var browser = navigator.appName;
	if (browser == 'Microsoft Internet Explorer')
	{
	document.write(
		'<center><div style="padding: 3px; background: ' + book_boxcolor +
		'; width: 728px; border: 1px ' + book_framecolor + ' solid;" align=center>' +
		'<a target=_new style="text-decoration: none; color: ' + book_linkcolor + ';" ' +
		'href="http://www.mozilla.org/products/firefox/">www.mozilla.org</a><br>' +
		'<font color="' + book_textcolor + '">' +
		'Take back the Web!' +
		' Tabbed browsing, popup blocking - simply vital features.' +
		'</font></div></center>');
	}
}
function google_ad()
{
	document.write('<center>');
	google_ad_client = 'pub-6714775349641522';
	google_ad_width = 728;
	google_ad_height = 90;
	google_ad_format = '728x90_as';
	google_ad_channel = '2642711231';
	google_color_border = 'C0C0C0';
	google_color_bg = 'FFFFFF';
	google_color_link = '0000FF';
	google_color_url = '008000';
	google_color_text = '000000';
	document.write('<scr' +
		'ipt type="text/javascript" ' +
		'src="http://pagead2.googles' +
		'yndication.com/pagead/show_' +
		'ads.js"></script>');
	document.write('</center>');
}
function all_ads()
{
	var browser = navigator.appName;
	var index
	if (browser == 'Microsoft Internet Explorer')
	{
		index = Math.floor(Math.random() * 10) + 1;
	}
	else
	{
		index = Math.floor(Math.random() * 3) + 1;
	}
	if (index == 1)
	{
		ad_1();
	}
	if (index == 2)
	{
		ad_2();
	}
	if (index == 3)
	{
		ad_3();
	}
	if (index > 3)
	{
		ad_moz();
	}
}
all_ads();

