GameBanner = new Array(
"Want to be notified of new games?<br>"+
"<a class=gamebannerlink href='../../newsletter.asp'>Newsletter sign-up</a>"
,
"If you like this game, you should try playing:<br>"+
"<a class=gamebannerlink href='../sudoku/'>Sudoku</a>"
,
"Here is another great game to try:<br>"+
"<a class=gamebannerlink href='../aggrevation/'>Aggrevation</a>"
,
"Here is one of my most popular word games:<br>"+
"<a class=gamebannerlink href='../dropwords/'>Dropwords</a>"
,
"If you like a challenge, try playing this:<br>"+
"<a class=gamebannerlink href='../ringsjr/'>Rings Jr</a>"
,
"For an adventure, try playing this:<br>"+
"<a class=gamebannerlink href='../maze/'>Maze Keeper</a>"
,


"Want to be notified of new games?<br>"+
"<a class=gamebannerlink href='../../newsletter.asp'>Newsletter sign-up</a>"
,
"Here is a good word puzzle:<br>"+
"<a class=gamebannerlink href='../seeknfind/'>Seek N Find</a>"
,
"Do you remember those slider puzzles?  Try this:<br>"+
"<a class=gamebannerlink href='../swimsuitslider/'>Swimsuit slider</a>"
,
"If you like a challenge, try playing this:<br>"+
"<a class=gamebannerlink href='../ringsjr/'>Rings Jr</a>"
,
"Here is one of my most popular games:<br>"+
"<a class=gamebannerlink href='../yahtzee/'>Yahtzee</a>"
,
"Here is a twist on those slider puzzles:<br>"+
"<a class=gamebannerlink href='../swimsuitswitcher/'>Swimsuit switcher</a>"
,
"If you like a puzzles, try playing this:<br>"+
"<a class=gamebannerlink href='../quadcolors/'>Quad Colors</a>"
,

"Wanna try an original game? Try playing this:<br>"+
"<a class=gamebannerlink href='../shifty1/'>Shifty v1.0</a>"
,
"If you remember <i>Zork</i>, try playing this:<br>"+
"<a class=gamebannerlink href='../zork/'>Zork</a>"
,
"Do you remember those slider puzzles?  Try this:<br>"+
"<a class=gamebannerlink href='../allenslider/'>Allen slider</a>"
,


"Want to be notified of new games?<br>"+
"<a class=gamebannerlink href='../../newsletter.asp'>Newsletter sign-up</a>"
,
"Brand new game, be first on the scoreboard:<br>"+
"<a class=gamebannerlink href='../lightningyahtzee/'>Lightning Yahtzee</a>"

);


function GameRotator () {
hour = new Date().getHours();
minute = new Date().getMinutes();
second = new Date().getSeconds();
MinOfDay = (hour*60)+minute;
SecOfHour = (hour*60)+second;

ChangeNow = 15;
VSchange = SecOfHour/ChangeNow;
if (VSchange.toString().indexOf(".") == -1) {
	if (navigator.family == "ie4") 
		{document.all.bannerRotate.innerHTML = GameBanner[VSchange % GameBanner.length];}
	else if (navigator.family == "gecko") 
		{document.getElementById["bannerRotate"].innerHTML = GameBanner[VSchange % GameBanner.length];}
	else {return;}
	}
setTimeout("GameRotator();", 1000);
}


hour = new Date().getHours();
minute = new Date().getMinutes();
second = new Date().getSeconds();
MinOfDay = (hour*60)+minute;
SecOfHour = (hour*60)+second;

document.write(
'<style>\n'+
'<!--\n'+
'.gamebanner 		{FONT-FAMILY:arial; FONT-SIZE:14px; FONT-WEIGHT:bold; text-decoration:none; color:#cc5500; font-style:normal;}\n'+
'.gamebannerlink 	{FONT-FAMILY:arial; FONT-SIZE:30px; FONT-WEIGHT:bold; text-decoration:none; color:#449955; font-style:normal;}\n'+
'.gamebannerlink:hover 	{FONT-FAMILY:arial; FONT-SIZE:30px; FONT-WEIGHT:bold; text-decoration:none; color:#66bb77; font-style:normal;}\n'+
'-->\n'+
'</style>\n'+
'<center><div id=gamebanner style="width:400; height:82;">'+
'<table cellspacing=0 cellpadding=0 border=0 width=400 height=82 align=middle>'+
'<tr>	<td background="../../nav/topleft.gif" width=57 height=17 bgcolor="#efefef">   </td>'+
'	<td background="../../nav/field.gif" width=321 align=middle bgcolor="#efefef"><font class="header"> . : Advertisement : . </td>'+
'	<td background="../../nav/topright.gif" width=22 bgcolor="#efefef">   </td>'+
'</tr>'+
'<tr>	<td colspan=3 background="../../nav/border.gif" height="2" bgcolor="#efefef"><img src="border.gif" height=2 width=100%></td>'+
'</tr>'+
'<tr>	<td colspan=3 background="../../nav/field.gif" width=390 bgcolor="#efefef">'+
'	<table border=0 cellspacing=0 cellpadding=0 width=100%><tr><td bgcolor="#efefef" background="../../nav/field.gif" height=48 valign=top>'+
'	<font class="gamebanner"><center>'+
'	<!--  banner text goes here --><div id="bannerRotate">'+

GameBanner[SecOfHour % GameBanner.length] +

'	<!--  banner text ends here -->'+
'	</div></td></tr></table>'+
'	</td>'+
'</tr>'+
'<tr>	<td colspan=2 background="../../nav/field.gif" height=18 width=378 bgcolor="#efefef">   </td>'+
'	<td background="../../nav/footer.gif" width=22 bgcolor="#efefef">   </td>'+
'</tr>'+
'</table>'+
'</div></center>'
);

GameRotator();

