var how_many_ads = 8;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
gameurl="http://www.gamecoyote.com/flash/defendyourcastle/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-defendyourcastle.gif";
width="50";
height="50";
var title="<b>Defend Your Castle</b>";
var text="Protect your castle from the attackers.";
}
if (ad==2) {
gameurl="http://www.gamecoyote.com/flash/flashtrek-assault/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-flashtrekassault.gif";
width="50";
height="50";
var title="<b>Flash Trek:  Assault</b>";
var text="Defend your starbase from the galaxy!";
}
if (ad==3) {
gameurl="http://www.gamecoyote.com/flash/herd/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-herd.gif";
width="50";
height="50";
var title="<b>Herd the Animals</b>";
var text="Move the farm animals into their proper pens.";
}
if (ad==4) {
gameurl="http://www.gamecoyote.com/flash/memory/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-memory.gif";
width="50";
height="50";
var title="<b>Memory Game</b>";
var text="Turn over the matching pairs of kitty pictures.";
}
if (ad==5) {
gameurl="http://www.gamecoyote.com/flash/miniputt/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-miniputt.gif";
width="50";
height="50";
var title="<b>Mini-Putt</b>";
var text="Play a game of miniature golf!";
}
if (ad==6) {
gameurl="http://www.gamecoyote.com/flash/solitaire/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-solitaire.gif";
width="50";
height="50";
var title="<b>Solitaire</b>";
var text="Place all the cards in each suit in stacks of ascending rank.";
}
if (ad==7) {
gameurl="http://www.gamecoyote.com/flash/starrunner/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-starrunner.gif";
width="50";
height="50";
var title="<b>Star Runner</b>";
var text="Collect all the red stars while avoiding the blue badguys!";
}
if (ad==8) {
gameurl="http://www.gamecoyote.com/flash/sonic/index.html";
banner="http://www.gamecoyote.com/graphics/thumbs/gc-sonic.gif";
width="50";
height="50";
var title="<b>Ultimate Sonic</b>";
var text="Guide Sonic the Hedgehog, or one of his friends, through a variety of levels collecting rings.";
}

document.write('<center>');

document.write('<table border=\"0\" cellspacing=\"0\" BGCOLOR=\"#000000\">');
document.write('<tr><td>');
document.write('<table border=\"0\" cellspacing=\"0\" width=\"287\">');
document.write('<tr><td colspan=\"2\">');
document.write('<img src=\"graphics/gotm-bar.gif\" align=\"middle\" border=\"0\" width=\"287\" height=\"24\" title=\"Game of the Moment\">');
document.write('</td></tr>');
document.write('<tr><td bgcolor=\"#FAE5C9\" align=\"center\">');

document.write('<a href=\"' + gameurl + '\" target=\"_top\" ');
document.write('onMouseOver=" window.status=');
document.write("'Game of the Moment!'; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('"><img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + "Click to Play!" + '\" border=0></a>');

document.write('</td><td bgcolor=\"#FAE5C9\" onclick=\"document.location.href=gameurl\">');
document.write(title);
document.write('<br>');
document.write(text);
document.write('</td></tr></table>');
document.write('</td></tr></table>');

document.write('<table border=\"0\" cellspacing=\"0\" cellpadding =\"0\" width=\"289\" height=\"8\" BGCOLOR=\"#000000\">');
document.write('<tr><td width=\"287\" height=\"8\" align=\"center\" valign=\"top\">');
document.write('<img src=\"graphics/topshadow.gif\" align=\"middle\" border=\"0\" width=\"289\" height=\"8\">');
document.write('</td></tr></table>');

document.write('</center>');
