function launchSite()
{
  var pages   = new Array(0, 0, 1, 2, 2, 2, 3, 4, 4, 4);
  var widths  = new Array(388, 465, 588, 640, 640);
  var heights = new Array(480, 480, 480, 395, 291);
  var page    = Math.floor(Math.random() * 10);

  if (home && !home.closed)
  { home.close(); }
  home = open("home/home" + (pages[page] + 1) + ".html", "home", "width=" + widths[pages[page]] + ",height=" + heights[pages[page]]);
}

function loadPic(picture)
{
  open("images/" + picture + ".jpeg");
  pageTracker._trackPageview("/tbt/photos/images/" + picture + ".jpeg");
}

function loadLoc(section, destination)
{ open("../" + section + "/" + (destination || "index") + ".html", section, "width=640,height=480"); }

function pickLoc(section)
{
  var nextLoc = Math.floor(Math.random() * 3);
  var person = "wendy";
  if (nextLoc == 0)
  { person = "blue"; }
  else if (nextLoc == 1)
  { person = "shayne"; }
  loadLoc(section, person);
}

var home = null;

focus();

if (top != self)
{ top.location.replace("http://www.goldenempires.com/tbt/"); }

