goodbrowser = true;
if (navigator.appName != "Microsoft Internet Explorer" || parseInt(navigator.appVersion) < 4)
{
	goodbrowser = false;
	document.write("<div style=\"padding: 3px; font: 11pt Helvetica; color: white; background-color: red\">This web site was designed for Microsoft Internet Explorer 4.0 or later. You will not be able to play with any other web browser. Sorry.</div>");
}
var servers = new Array();
servers[7] = "Backgammon";
servers[8] = "Chess";
servers[5] = "Reversi (Othello)";
servers[4] = "Checkers&Draughts";
servers[3] = "Hearts";
var genders = new Array("Male", "Female", "Unknown gender", "Computer player");
var months = new Array("", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var pairtypes = new Array("Single Elimination", "Swiss", "Round-Robin", "Single Elimination Roundwise", "Double Elimination");
var dark = "#524837";
var verydark = "#4B4232";
var lightdark = "#645a49";
var mdark = "#746952";
var light = "#EFE1C9";
var mlight = "#F4ECDD";
var slight = "#ffffee";
var midcolor = "#D8BB85";
var sys = navigator.appName;
var vers = parseInt(navigator.appVersion);
var n4 = document.layers;
var currPopup = null;
var TimerID;
var ie4Mac = (vers>=4) && (navigator.appVersion.indexOf("Mac")>-1) && (!n4)
var animsteps = 5;
var currentMenuID = "";
var menuid = 1;

function animPopup(elName, val) {
        // Get the animated element
        var el = document.getElementById(elName);
        // Which direction are we animating
        if (el._dir)
                el._pos+=val // increment - slide into view
        else
                el._pos-=val // decrement - slide out of view
        el.style.clip = "rect(0 " + el.offsetWidth + " " + el._pos + " 0)"
        if ((el._pos<el.offsetHeight && el._dir) || (el._pos>0 && !el._dir))
                setTimeout("animPopup('" + elName + "'," + val + ")",1)
		else if (el._dir){
		    clearTimeout(TimerID);
//		    TimerID = setTimeout('hidePopup()', 1000);
		}

}

function displayPopup(elName) {
		var cell = document.getElementById('menu' + elName);
		cell.style.background = light;
		cell.style.color = dark;
		if (currPopup) hidePopup();
	    clearTimeout(TimerID);
        window.event.cancelBubble = true;
        window.event.returnValue = false;
        var el = document.getElementById('subMenu' + elName);
		if (el)
		{
		currPopup = 'subMenu' + elName;
//		alert(currPopup);
        if (el._dir) return;
        if (el._dir==null) {
                el.style.clip = "rect(0 " + el.offsetWidth + " 0 0)";
                el._pos = 0;
        }
        el.style.visibility = "visible";
        el._dir = true;
        animPopup('subMenu' + elName,Math.ceil(el.offsetHeight/animsteps));
		}
}

function hidePopup() {
//        if (document.readyState!="complete") return
	var el = document.getElementById(currPopup);
	if ((el._dir==null) || (!el._dir)) return;
	el._dir = false;
	if (ie4Mac) 
		el.style.visibility = "hidden";
  else
		animPopup(currPopup,Math.ceil(el.offsetHeight/animsteps));
}       

function doLoad() {
//        setup()
//        document.onmousemove = hidePopup  
}

function mouseOut(ddd)
{
	if(!ddd.contains(window.event.toElement)){
	  	hidePopup()
	}
}

function cellMouseOut(cell, ifMenu)
{
	if(!cell.contains(window.event.toElement)){
		cell.style.background = mdark;
		cell.style.color = light;
		if (ifMenu)
		 hidePopup();
	}
}

function killTimer()
{
    clearTimeout(TimerID);
}

function StartMenu(bgColor)
{
  document.write("<table cellpadding=\"0\" border=\"0\" cellspacing=\"0\"><tr valign=\"middle\">");
}

function StartMenuItem(menuID, menuText, menuURL)
{
  document.write("<td id=\"menu" + menuID + "\" onmouseup=\"window.location.href='" + menuURL + "';\" onmouseover=\"displayPopup('" + menuID + "')\" class=\"menub\" style=\"cursor: hand\" nowrap onmouseout=\"cellMouseOut(this, 1);\">&nbsp;&nbsp;" + menuText + "&nbsp;&nbsp;");
  currentMenuID = menuID;
}

function EndMenuItem()
{
document.write("</td><td width=\"1\" bgcolor=\""+light+"\"></td>");
}

function StartSubMenu()
{
  document.write("<div onmouseout=\"mouseOut(this);\"><TABLE cellspacing=\"1\" cellpadding=\"2\" border=\"0\" bgcolor=\"black\" ID=\"subMenu" + currentMenuID + "\" STYLE=\"position: absolute; visibility :hidden; z-index:2\">");
}

function SubMenuItem(subText, subURL)
{
   document.write("<TR><td bgcolor=" + mdark + " onmouseup=\"window.event.cancelBubble = true; window.location.href='" + subURL + "'\" onmouseout=\"cellMouseOut(this, 0);\" onmouseover=\"window.event.cancelBubble = true; this.style.background='" + light + "'; this.style.color='" + dark + "';\" class=menu style=\"cursor: hand; margin: 0 5 0 5\" NOWRAP>" + subText + "</TD></TR>");
}

function EndSubMenu()
{
  document.write("</TABLE></div>");
}

function EndMenu()
{
document.write("<td style=\"font-size: 105%\">&nbsp;</td></tr></table>");
}

function submenu(img, url, text)
{
menuid++;
document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr>\n");
document.write("<td width=\"10\"><img src=\"/images/t" + img + ".gif\" width=\"10\" height=\"23\" style=\"text-align: absmiddle\"></td>\n");
document.write("<td><table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"" + slight + "\"><tr><td>");
document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"" + mdark + "\">");
document.write("<tr valign=\"middle\" style=\"cursor: hand\">");
document.write("<td nowrap height=\"19\"");
document.write(" onclick=\"window.location.href='" + url + "'; return false;\"");
document.write(" onmouseover=\"m_hl(this, 'menuid" + menuid + "');\" onmouseout=\"m_dl(this, 'menuid" + menuid + "');\">&nbsp;");
document.write("<a class=\"m\" id=\"menuid" + menuid + "\" href=\"" + url + "\" target=\"_top\">" + text + "</a>&nbsp;</td>");
document.write("</tr></table></td></tr></table></td></tr></table>");
}

function m_hl(obj, menuid)
{
	obj.style.background=light;
	obj.style.color=dark;
	var m = document.getElementById(menuid);
	m.style.color=dark;
}

function m_dl(obj, menuid)
{
	obj.style.background=mdark;
	obj.style.color=light;
	var m = document.getElementById(menuid);
	m.style.color=light;
}

function p()
{
document.write("<p>");
}

function mhead(text)
{
document.write("<div class=\"menuheading\"><nobr>" + text + "</nobr></div>");
}

function noniemenu(url, text)
{
document.write("<a class=\"wb\" href=\"" + url + "\">" + text + "</a>&nbsp;|&nbsp;");
}

//output some content
//document.write("<table cellpadding=0 border=0 cellspacing=0 width=100% bgcolor=" + dark + "><tr><td><table cellpadding=0 border=0 cellspacing=1 width=100% bgcolor=" + dark + ">");

function draw_mt()
{
document.write("<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" bgcolor=\"" + dark + "\"><tr><td>");
if (goodbrowser)
{
StartMenu(dark);
if (typeof(ui) == "undefined")
	var ui = false;
if (ui && history.length > 0)
{
 StartMenuItem("Top8", "<< Back", "javascript:history.back()");
  StartSubMenu();
  EndSubMenu()
 EndMenuItem();
}
 StartMenuItem("Top1", tag("wm_signup_h"), "/signup/");
  StartSubMenu();
   SubMenuItem(tag("wm_signup"), "/signup/");
   SubMenuItem(tag("wm_aup"), "/aup.phtml");
   SubMenuItem(tag("wm_termsofuse"), "/eula.phtml");
  EndSubMenu()
 EndMenuItem();
 StartMenuItem("Top0", "VOG", "/");
  StartSubMenu();
//   SubMenuItem("VOGClub.com Home", "/");
//   SubMenuItem(tag("wm_mm_news"), "/news/");
   SubMenuItem(tag("wm_mm_tourneys"), "/tourneys/");
   SubMenuItem(tag("wm_mm_gallery"), "/players/");
   SubMenuItem(tag("wm_mm_mg"), "/tokens/");
//   SubMenuItem(tag("wm_mm_vote"), "/vote/");
   SubMenuItem(tag("wm_mm_contacts"), "/contact.phtml");
  EndSubMenu()
 EndMenuItem();
 StartMenuItem("tourneys", tag("wm_t_h"), "/tourneys/");
  StartSubMenu();
	 var sidstr = ""
	 if (typeof(sid) != "undefined") sidstr = "?sid=" + sid;
   SubMenuItem(tag("wm_t_now"), "/tourneys/index.phtml");
   SubMenuItem(tag("wm_t_week"), "/tourneys/weeklyschedule.phtml" + sidstr);
   SubMenuItem(tag("wm_t_tocs"), "/tourneys/tocs.phtml" + sidstr);
   SubMenuItem(tag("wm_t_series"), "/tourneys/series.phtml" + sidstr);
   SubMenuItem(tag("wm_t_archive"), "/tourneys/archive.phtml" + sidstr);
   SubMenuItem(tag("wm_t_host"), "/tourneys/becomeahost.phtml");
//   SubMenuItem("<b>My&nbsp;Dream&nbsp;Schedule</b>", "/tourneys/dreamschedule.phtml" + (typeof(sid) != "undefined" ? "?sid=" + sid : ""));
//   SubMenuItem("Dream&nbsp;Schedule&nbsp;Stats", "/tourneys/dreamstats.phtml");
//   SubMenuItem("Money&nbsp;Tournaments", "/tokens/");
  EndSubMenu()
 EndMenuItem();
 StartMenuItem("Top5", tag("wm_tt_ranks_h"), "/ratings/");
  StartSubMenu();
SubMenuItem(tag("r_7_0")+" - "+tag("wm_tm_p"), "/ratings/game.phtml?sid=7&isteam=0");
SubMenuItem(tag("r_7_0")+" - "+tag("wm_tm_t"), "/ratings/game.phtml?sid=7&isteam=1");
SubMenuItem(tag("r_4_0")+" - "+tag("wm_tm_p"), "/ratings/game.phtml?sid=4&isteam=0");
SubMenuItem(tag("r_4_0")+" - "+tag("wm_tm_t"), "/ratings/game.phtml?sid=4&isteam=1");
SubMenuItem(tag("r_8_0")+" - "+tag("wm_tm_p"), "/ratings/game.phtml?sid=8&isteam=0");
SubMenuItem(tag("r_8_0")+" - "+tag("wm_tm_t"), "/ratings/game.phtml?sid=8&isteam=1");
SubMenuItem(tag("r_3_0")+" - "+tag("wm_tm_p"), "/ratings/game.phtml?sid=3&isteam=0");
SubMenuItem(tag("r_3_0")+" - "+tag("wm_tm_t"), "/ratings/game.phtml?sid=3&isteam=1");
SubMenuItem(tag("r_5_0")+" - "+tag("wm_tm_p"), "/ratings/game.phtml?sid=5&isteam=0");
SubMenuItem(tag("r_5_0")+" - "+tag("wm_tm_t"), "/ratings/game.phtml?sid=5&isteam=1");
  EndSubMenu()
 EndMenuItem();
 StartMenuItem("Top6", tag("wm_teams_h"), "/teams/find.phtml");
  StartSubMenu();
//   SubMenuItem("Teams home", "/teams/");
   SubMenuItem(tag("wm_teams_create"), "/teams/create.phtml");
   SubMenuItem(tag("wm_teams_find"), "/teams/find.phtml");
   SubMenuItem(tag("wm_teams_manage"), "/teams/manager.phtml");
  EndSubMenu()
 EndMenuItem();
StartMenuItem("Help", tag("wm_support_h"), "/signup/passwords.phtml");
  StartSubMenu();
   SubMenuItem(tag("wm_helpdeskchat"), "javascript:enterRoom(1,101)");
   SubMenuItem(tag("wm_faq"), "/faq/");
   SubMenuItem(tag("wm_lostpw"), "/signup/passwords.phtml");
//   SubMenuItem("Trace route", "/traceroute.phtml");
   SubMenuItem(tag("wm_reportbug"), "mailto:bugs@vogclub.com?subject=I%20would%20like%20to%20report%20a%20bug");
  EndSubMenu()
EndMenuItem();
EndMenu();
}
document.write("</td></tr></table>");
}

function draw_h()
{
/*
if (!ui)
document.write("<COLGROUP width=100><COLGROUP width=*><COLGROUP width=100><tr><td rowspan=3 valign=middle align=center sbackground=\"/logo/honeycomb.gif\"><a href=\"/\"><img src=\"/images/voglogod.gif\" width=100 height=100 vspace=0 hspace=0 border=0><!--img src=\"/logo/logo56.gif\" border=0--></a></td><td colspan=2 nowrap><div align=left style=\"font: bold 12pt Arial, Helvetica; font-style: italic; color:#fffff0\">Vinco&nbsp;Online&nbsp;Games&nbsp;-&nbsp;FREE&nbsp;Games,&nbsp;Chat,&nbsp;Instant&nbsp;Messaging...</div></th></tr><tr><td colspan=2 height=62><table bgcolor=black border=0 cellpadding=0 cellspacing=1><tr><td><iframe src=\""+(port==443?"https://secure.vogclub.com":"http://www.vogclub.com")+"/ads/banner.phtml?p=" + pageid + "&placement=1\" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe></td></tr></table></td></tr>");
document.write("<tr><td bgcolor=" + mdark + " colspan=2><table cellpadding=0 cellspacing=0 width=100%>");
*/

if(!ui)
{
document.write("<table cellspacing=1 border=0 width=100% bgcolor=\""+slight+"\"><col width=\"30%\"><col width=\"40%\"><col width=\"30%\">");
document.write("<tr><td><div class=\"head\">&nbsp;<b>" + thisday + "</b></div></td>");
document.write("<td><div align=center class=\"head\"><b><span id=\"div_total_players\">???</span></b> Players Online</div></td>");
document.write("<td><div align=right class=\"head\"><b>" + thistime + "&nbsp;</b></div></td></tr></table>");
}
}

function draw_ml()
{
document.write("<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td>");
mhead(tag("wm_signup_h"));
submenu(0, "/signup/", tag("wm_signup"));
submenu(1, "/aup.phtml", tag("wm_aup"));
submenu(2, "/eula.phtml", tag("wm_termsofuse"));
p();
mhead(tag("wm_support_h"));
submenu(0, "/faq/", tag("wm_faq"));
if (!ui)
	submenu(1, "javascript:enterRoom(1,101)", tag("wm_helpdeskchat"));
submenu(1, "/signup/passwords.phtml", tag("wm_lostpw"));
submenu(2, "mailto:bugs@vogclub.com?subject=I%20would%20like%20to%20report%20a%20bug", tag("wm_reportbug"));
p();
mhead(tag("wm_gm_h"));
submenu(0, "/signup/goldmembership.phtml", tag("wm_gm_why"));
submenu(1, "/signup/purchase.phtml", tag("wm_gm_purchase"));
submenu(2, "/signup/apply.phtml", tag("wm_gm_apply"));
p();
mhead(tag("wm_games_h"));
submenu(0, "/game.phtml?sid=7", "<img src=\"/images/RBKG.gif\" width=17 height=17 border=0 hspace=2 align=absmiddle>" + tag("r_7_0"));
submenu(1, "/game.phtml?sid=4", "<img src=\"/images/RCHK.gif\" width=17 height=17 border=0 hspace=2 align=absmiddle>" + tag("r_4_0"));
submenu(1, "/game.phtml?sid=8", "<img src=\"/images/RCHS.gif\" width=17 height=17 border=0 hspace=2 align=absmiddle>" + tag("r_8_0"));
submenu(1, "/game.phtml?sid=3", "<img src=\"/images/RHRT.gif\" width=17 height=17 border=0 hspace=2 align=absmiddle>" + tag("r_3_0"));
submenu(2, "/game.phtml?sid=5", "<img src=\"/images/RREV.gif\" width=17 height=17 border=0 hspace=2 align=absmiddle>" + tag("r_5_0"));
p();
document.write("</td></tr></table>");
}

function draw_mr()
{
document.write("<table cellpadding=2 border=0 cellspacing=0 width=100%><tr><td>");

if (teamsection)
{
mhead(tag("wm_teams_h"));
//submenu(0, "/teams/", tag("wm_teams_home")"Teams&nbsp;home");
submenu(0, "/teams/create.phtml", tag("wm_teams_create"));
submenu(1, "/teams/find.phtml", tag("wm_teams_find"));
submenu(1, "/ratings/", tag("wm_teams_ranks"));
submenu(2, "/teams/manager.phtml", tag("wm_teams_manage"));
p();
}

if (tourneys_page)
{
mhead(tag("wm_t_h"));
submenu(0, "/tourneys/index.phtml", tag("wm_t_now"));
submenu(1, "/tourneys/index.phtml" + (sid ? "?sid=" + sid : "") + "#next", tag("wm_t_next"));
submenu(1, "/tourneys/weeklyschedule.phtml" + (sid ? "?sid=" + sid : ""), tag("wm_t_week"));
submenu(1, "/tourneys/tocs.phtml" + (sid ? "?sid=" + sid : ""), tag("wm_t_tocs"));
submenu(1, "/tourneys/series.phtml" + (sid ? "?sid=" + sid : ""), tag("wm_t_series"));
submenu(1, "/tourneys/archive.phtml" + (sid ? "?sid=" + sid : ""), tag("wm_t_archive"));
submenu(2, "/tourneys/becomeahost.phtml", tag("wm_t_host"));
//submenu(1, "/tourneys/dreamschedule.phtml" + (sid ? "?sid=" + sid : ""), "<b>My&nbsp;Dream&nbsp;Schedule</b>");
//submenu(1, "/tourneys/dreamstats.phtml", "Dream&nbsp;Schedule&nbsp;Stats");
//submenu(2, "/tokens/", tag("wm_t_4tokens")"Money&nbsp;Tournaments");
p();
}

if(moneygame)
{
mhead(tag("wm_mg_h"));
submenu(0, "/tokens/index.phtml", tag("wm_mg_my"));
submenu(1, "/tokens/faq.phtml", tag("wm_mg_faq"));
submenu(1, "/tokens/whoisonline.phtml", tag("wm_mg_whois"));
//submenu(1, "/tokens/makedeposit.phtml", "Make Deposit");
submenu(1, "/tokens/withdraw.phtml", tag("wm_mg_exch"));
submenu(1, "/tokens/security.phtml", tag("wm_mg_sec"));
submenu(2, "/tokens/estimateprizes.phtml", tag("wm_mg_tp"));
//submenu(1, "/tokens/schedule.phtml", "Set Preferred Schedule");
//submenu(2, "/tokens/dreamstats_m.phtml", "Pref. Schedule Stats");
p();
}

if (typeof(sid) != "undefined")
if (sid > 1)
{
mhead(tag("r_" + sid + "_0"));
submenu(0, "/ratings/game.phtml?sid=" + sid + "&isteam=0", tag("wm_gc_pranks"));
submenu(1, "/ratings/game.phtml?sid=" + sid + "&isteam=1", tag("wm_gc_tranks"));
submenu(1, "/teams/find.phtml?sid=" + sid + "&fserverid=" + sid, tag("wm_gc_teams"));
submenu(sid != 3 ? 1 : 2, "/tourneys/index.phtml?sid=" + sid, tag("wm_gc_tourneys"));

if (sid==7)
{
//submenu(1, "/backgammon/diceheroes.phtml", "Dice Heroes!");
//submenu(1, "/backgammon/dice.phtml", "Dice stats");
submenu(2, "/rules.phtml?sid=7&gtype=1", tag("wm_gc_rules"));
}else if (sid==8)
{
submenu(2, "/rules.phtml?sid=8&gtype=2", tag("wm_gc_rules"));
}else if (sid==4)
{
submenu(1, "/rules.phtml?sid=4&gtype=3", tag("wm_gc_rules"));
submenu(2, "/checkers/openings.phtml", tag("wm_gc_openings"));
}else if (sid==5)
{
submenu(1, "/rules.phtml?sid=5&gtype=1", tag("wm_gc_rules"));
submenu(2, "/reversi/strategy.phtml", tag("wm_gc_sg"));
}
p();

if (sid == 7 && gamerules) //backgammon rules
{
mhead(tag("wm_gc_rules"));
submenu(0, "/rules.phtml?sid=7&gtype=1", tag("g_7_1"));
submenu(1, "/rules.phtml?sid=7&gtype=2", tag("g_7_2"));
submenu(1, "/rules.phtml?sid=7&gtype=3", tag("g_7_3"));
submenu(1, "/rules.phtml?sid=7&gtype=4", tag("g_7_4"));
submenu(1, "/rules.phtml?sid=7&gtype=5", tag("g_7_5"));
submenu(1, "/rules.phtml?sid=7&gtype=6", tag("g_7_6"));
submenu(1, "/rules.phtml?sid=7&gtype=7", tag("g_7_7"));
submenu(2, "/rules.phtml?sid=7&gtype=8", tag("g_7_8"));
p();
}else if (sid == 4 && gamerules) //checkers rules
{
mhead(tag("wm_gc_rules"));
submenu(0, "/rules.phtml?sid=4&gtype=3", tag("g_4_3"));
submenu(1, "/rules.phtml?sid=4&gtype=1", tag("g_4_1"));
submenu(1, "/rules.phtml?sid=4&gtype=7", tag("g_4_7"));
submenu(1, "/rules.phtml?sid=4&gtype=8", tag("g_4_8"));
submenu(1, "/rules.phtml?sid=4&gtype=2", tag("g_4_2"));
submenu(1, "/rules.phtml?sid=4&gtype=5", tag("g_4_5"));
submenu(1, "/rules.phtml?sid=4&gtype=4", tag("g_4_4"));
submenu(2, "/rules.phtml?sid=4&gtype=6", tag("g_4_6"));
p();
}else if (sid==5 && strategy)
{
mhead(tag("wm_gc_sg"));
submenu(0, "/reversi/strategy.phtml?topic=0", "Notation");
submenu(1, "/reversi/strategy.phtml?topic=1", "Introduction to strategy");
submenu(1, "/reversi/strategy.phtml?topic=2", "Maximum disks strategy");
submenu(1, "/reversi/strategy.phtml?topic=3", "Stable disks");
submenu(1, "/reversi/strategy.phtml?topic=4", "Wedges");
submenu(1, "/reversi/strategy.phtml?topic=5", "Mobility");
submenu(1, "/reversi/strategy.phtml?topic=6", "Frontiers");
submenu(1, "/reversi/strategy.phtml?topic=7", "Tempo, waiting moves");
submenu(1, "/reversi/strategy.phtml?topic=8", "Creeping along edges");
submenu(1, "/reversi/strategy.phtml?topic=9", "Parity");
submenu(1, "/reversi/strategy.phtml?topic=10", "Unbalanced edges");
submenu(1, "/reversi/strategy.phtml?topic=11", "Stoner traps");
submenu(1, "/reversi/strategy.phtml?topic=12", "Conclusion");
submenu(1, "/reversi/strategy.phtml?topic=13", "Glossary");
submenu(2, "/reversi/strategy.phtml?topic=14", "Credits");
p();
}

}//if (sid)
/*
mhead(tag("wm_mainmenu_h"));
//submenu(0, "/news/", tag("wm_mm_news"));
submenu(0, "/ratings/", tag("wm_mm_ranks"));
submenu(1, "/tourneys/", tag("wm_mm_tourneys"));
submenu(1, "/players/", tag("wm_mm_gallery"));
submenu(1, "/teams/find.phtml", tag("wm_mm_teamplay"));
submenu(1, "/tokens/", tag("wm_mm_mg"));
//submenu(1, "/vote/", tag("wm_mm_vote"));
submenu(1, "/beta/", tag("wm_mm_beta"));
submenu(2, "/contact.phtml", tag("wm_mm_contacts"));
*/
/*
if (document.location.host == "secure.vogclub.com")
	document.write("<br><center><A href=\"https://www.thawte.com/cgi/server/certdetails.exe?code=RUVINC1\" target=\"thawtecert\" onclick=\"window.open('', 'thawtecert', config='height=400,width=450,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=yes');\"><IMG SRC=\"https://www.thawte.com/certs/server/stamp.gif\" width=\"135\" height=\"85\" BORDER=0 ALT='Click here for more details'></A></center>");
*/

document.write("</td></tr></table>");
document.write("<div style=\"color: " + dark + "; text-align: center\">" + buildtime + "</div>");
//document.write("<tr valign=bottom align=center><td align=center style=\"text-align: center\"></td><td valign=bottom style=\"text-align: center\">");
//document.write("<iframe src=\"/hitbox.phtml?pn=" + pagename + "\" width=88 height=62 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no align=center></iframe>");
}

function draw_rulesmenu()
{
if (typeof(sid) != "undefined")
if (sid == 7 || sid == 4 || sid == 5)
{
StartMenu(dark);
if (typeof(ui) == "undefined")
	var ui = false;
if (ui && history.length > 0)
{
 StartMenuItem("Top8", "<< Back", "javascript:history.back()");
  StartSubMenu();
  EndSubMenu()
 EndMenuItem();
}
if (sid == 7)
{
StartMenuItem("Game_Rules", "Game Rules", "/rules.phtml?sid=7&gtype=1");
  StartSubMenu();
   SubMenuItem("Backgammon", "/rules.phtml?sid=7&gtype=1");
   SubMenuItem("Narde (Feuga)", "/rules.phtml?sid=7&gtype=2");
   SubMenuItem("Crazy Narde (Gul Bara)", "/rules.phtml?sid=7&gtype=3");
   SubMenuItem("Longgammon", "/rules.phtml?sid=7&gtype=4");
   SubMenuItem("Hypergammon", "/rules.phtml?sid=7&gtype=5");
   SubMenuItem("Nackgammon", "/rules.phtml?sid=7&gtype=6");
   SubMenuItem("Tapa", "/rules.phtml?sid=7&gtype=7");
   SubMenuItem("Acey-Deucey", "/rules.phtml?sid=7&gtype=8");
  EndSubMenu()
 EndMenuItem();
/*
StartMenuItem("Dice_stats", "Dice stats", "/backgammon/dice.phtml");
  StartSubMenu();
   SubMenuItem("Dice Heroes!", "/backgammon/diceheroes.phtml");
   SubMenuItem("Dice stats", "/backgammon/dice.phtml");
  EndSubMenu()
EndMenuItem();
*/
}else if (sid == 4)
{
StartMenuItem("Game_Rules", "Game Rules", "/rules.phtml?sid=4&gtype=3");
  StartSubMenu();
   SubMenuItem("Checkers", "/rules.phtml?sid=4&gtype=3");
   SubMenuItem("Brazilian", "/rules.phtml?sid=4&gtype=1");
   SubMenuItem("International 10x10", "/rules.phtml?sid=4&gtype=7");
   SubMenuItem("Canadian 12x12", "/rules.phtml?sid=4&gtype=8");
   SubMenuItem("Russian", "/rules.phtml?sid=4&gtype=2");
   SubMenuItem("Poddavki (Reverse Russian Draughts)", "/rules.phtml?sid=4&gtype=6");
   SubMenuItem("POOL", "/rules.phtml?sid=4&gtype=5");
   SubMenuItem("Italian Checkers", "/rules.phtml?sid=4&gtype=4");
  EndSubMenu()
 EndMenuItem();
}else if (sid == 5)
{
StartMenuItem("Strategy_Guide", "Strategy Guide", "/reversi/strategy.phtml?topic=0");
  StartSubMenu();
   SubMenuItem("Notation", "/reversi/strategy.phtml?topic=0");
   SubMenuItem("Introduction to strategy", "/reversi/strategy.phtml?topic=1");
   SubMenuItem("Maximum disks strategy", "/reversi/strategy.phtml?topic=2");
   SubMenuItem("Stable disks", "/reversi/strategy.phtml?topic=3");
   SubMenuItem("Wedges", "/reversi/strategy.phtml?topic=4");
   SubMenuItem("Mobility", "/reversi/strategy.phtml?topic=5");
   SubMenuItem("Frontiers", "/reversi/strategy.phtml?topic=6");
   SubMenuItem("Tempo, waiting moves", "/reversi/strategy.phtml?topic=7");
   SubMenuItem("Creeping along edges", "/reversi/strategy.phtml?topic=8");
   SubMenuItem("Parity", "/reversi/strategy.phtml?topic=9");
   SubMenuItem("Unbalanced edges", "/reversi/strategy.phtml?topic=10");
   SubMenuItem("Stoner traps", "/reversi/strategy.phtml?topic=11");
   SubMenuItem("Conclusion", "/reversi/strategy.phtml?topic=12");
   SubMenuItem("Glossary", "/reversi/strategy.phtml?topic=13");
   SubMenuItem("Credits", "/reversi/strategy.phtml?topic=14");
   EndSubMenu()
EndMenuItem();
}
EndMenu();
}
}

function include_js(js_filename, if_add_rnd)
{
	if (typeof(v_rnd) == "undefined") var v_rnd = Math.random();
	document.write("<scr"+"ipt type=\"text/javascript\" src=\"" + js_filename + (if_add_rnd ? v_rnd : "") + "\"></scr"+"ipt>");
}
