
//The following is used to rotate the pics
var how_many_pics = 10;
//var now = new Date();
//var sec = now.getSeconds();
//var pic = sec % how_many_pics;
var pic = Math.floor(Math.random()*how_many_pics)
pic +=1;

if (pic==1)
{
	image="images/neotop.gif";
}
if (pic==2)
{
	image="images/smithtop.gif";
}
if (pic==3)
{
	image="images/morpheustop.gif";
}
if (pic==4)
{
	image="images/agenttop.gif";
}
if (pic==5)
{
	image="images/trinitytop.gif";
}
if (pic==6)
{
	image="images/persephonetop.gif";
}
if (pic==7)
{
	image="images/naiobetop.gif";
}
if (pic==8)
{
	image="images/twinstop.gif";
}
if (pic==9)
{
	image="images/apoctop.gif";
}
if (pic==10)
{
	image="images/switchtop.gif";
}


//End image rotation

preload = new Image();
preload.src = "images/reloaded2.gif";
preload2 = new Image();
preload2.src = "images/revolutions2.gif";
preload3 = new Image();
preload3.src = "images/revisited2.gif";
preload4 = new Image();
preload4.src = "images/enterthematrix2.gif";
preload5 = new Image();
preload5.src = "images/anmatrix2.gif";
preload6 = new Image();
preload6.src = "images/store2.gif";

document.write("<a href=\"http://reboot.at/thematrix\"><img src=\"" + image + "\" width=\"350\" height=\"100\" usemap=\"#header\" /></a><br />");
document.write("<map name=\"header\">");
document.write("<area shape=\"rect\" coords=\"147,13,332,80\" href=\"javascript:window.external.AddFavorite('http://reboot.at/thematrix', 'The Matrix Rebooted')\" alt=\"Add to favorites\" />");
document.write("<area shape=\"rect\" coords=\"0,0,140,99\" href=\"http://reboot.at/thematrix\" alt=\"Home\" />");
document.write("</map>");
document.write("<a href='thematrix.htm'>");
document.write("<img alt=\"The Matrix\" src=\"images/thematrix.gif\" onmouseover=\"this.src='images/thematrix2.gif';\" onmouseout=\"this.src='images/thematrix.gif';\" />");
document.write("</a'>");

document.write("<a href='reloaded.htm'>");
document.write("<img alt=\"The Matrix Reloaded\" src=\"images/reloaded.gif\" onmouseover=\"this.src='images/reloaded2.gif';\" onmouseout=\"this.src='images/reloaded.gif';\" />");
document.write("</a'>");

document.write("<a href='revolutions.htm'>");
document.write("<img alt=\"The Matrix Revolutions\" src=\"images/revolutions.gif\" onmouseover=\"this.src='images/revolutions2.gif';\" onmouseout=\"this.src='images/revolutions.gif';\" />");
document.write("</a'>");

document.write("<a href='revisited.htm'>");
document.write("<img alt=\"The Matrix Revisited\" src=\"images/revisited.gif\" onmouseover=\"this.src='images/revisited2.gif';\" onmouseout=\"this.src='images/revisited.gif';\" />");
document.write("</a'>");

document.write("<a href='animatrix.htm'>");
document.write("<img alt=\"The Animatrix\" src=\"images/animatrix.gif\" onmouseover=\"this.src='images/animatrix2.gif';\" onmouseout=\"this.src='images/animatrix.gif';\" />");
document.write("</a'>");

document.write("<a href='enterthematrix.htm'>");
document.write("<img alt=\"Enter The Matrix\" src=\"images/enterthematrix.gif\" onmouseover=\"this.src='images/enterthematrix2.gif';\" onmouseout=\"this.src='images/enterthematrix.gif';\" />");
document.write("</a'>");

document.write("<a href='store.htm'>");
document.write("<img alt=\"The Matrix Store\" src=\"images/store.gif\" onmouseover=\"this.src='images/store2.gif';\" onmouseout=\"this.src='images/store.gif';\" />");
document.write("</a'>");