function body_onload()
{
// index.htm is hard-coded; does not call this function
document.write("<body background=\"bg.png\" topmargin=\"16\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"16\" onLoad=\"xpreloadImages('menutitle.png','menutitle2.png','menutitle3.png','btn-buy.png','btn-buy2.png','btn-buy3.png','btn-products.png','btn-products2.png','btn-products3.png','btn-downloads.png','btn-downloads2.png','btn-downloads3.png','btn-support.png','btn-support2.png','btn-support3.png','btn-press.png','btn-press2.png','btn-press3.png','btn-contact.png','btn-contact2.png','btn-contact3.png')\">");
}


function menubar(type)
{
document.write("<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" width=\"788\"><tr><td>");

if (type == "home")
	document.write("<a href=\"index.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('home', '', 'menutitle2.png',1)\"><img name=\"home\" src=\"menutitle.png\" border=\"0\" alt=\"Boxer Software\"></a>");
else
	document.write("<a href=\"index.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('home', '', 'menutitle2.png',1)\"><img name=\"home\" src=\"menutitle.png\" border=\"0\" alt=\"Boxer Software\"></a>");

if (type == "buy")
	document.write("<a href=\"pgbuy.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('buy', '', 'btn-buy3.png',1)\"><img name=\"buy\" src=\"btn-buy3.png\" height=\"50\" width=\"61\" border=\"0\" alt=\"Order from our online store\"></a>");
else
	document.write("<a href=\"pgbuy.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('buy', '', 'btn-buy2.png',1)\"><img name=\"buy\" src=\"btn-buy.png\" height=\"50\" width=\"61\" border=\"0\" alt=\"Order from our online store\"></a>");

if (type == "products")
	document.write("<a href=\"pgprod.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('products', '', 'btn-products3.png',1)\" ><img name=\"products\" src=\"btn-products3.png\" height=\"50\" width=\"107\" border=\"0\" alt=\"Products\"></a>");
else
	document.write("<a href=\"pgprod.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('products', '', 'btn-products2.png',1)\" ><img name=\"products\" src=\"btn-products.png\" height=\"50\" width=\"107\" border=\"0\" alt=\"Products\"></a>");

if (type == "downloads")
	document.write("<a href=\"pgdown.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('downloads', '', 'btn-downloads3.png',1)\"><img name=\"downloads\" src=\"btn-downloads3.png\" height=\"50\" width=\"125\" border=\"0\" alt=\"Downloads\"></a>");
else
	document.write("<a href=\"pgdown.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('downloads', '', 'btn-downloads2.png',1)\"><img name=\"downloads\" src=\"btn-downloads.png\" height=\"50\" width=\"125\" border=\"0\" alt=\"Downloads\"></a>");

if (type == "support")
	document.write("<a href=\"pgsupp.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('support', '', 'btn-support3.png',1)\" ><img name=\"support\" src=\"btn-support3.png\" height=\"50\" width=\"97\" border=\"0\" alt=\"Support\"></a>");
else
	document.write("<a href=\"pgsupp.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('support', '', 'btn-support2.png',1)\" ><img name=\"support\" src=\"btn-support.png\" height=\"50\" width=\"97\" border=\"0\" alt=\"Support\"></a>");

if (type == "press")
	document.write("<a href=\"pgawar.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('press', '', 'btn-press3.png',1)\" ><img name=\"press\" src=\"btn-press3.png\" height=\"50\" width=\"74\" border=\"0\" alt=\"Press\"></a>");
else
	document.write("<a href=\"pgawar.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('press', '', 'btn-press2.png',1)\" ><img name=\"press\" src=\"btn-press.png\" height=\"50\" width=\"74\" border=\"0\" alt=\"Press\"></a>");

if (type == "contact")
	document.write("<a href=\"pgcont.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('contact', '', 'btn-contact3.png',1)\" ><img name=\"contact\" src=\"btn-contact3.png\" height=\"50\" width=\"99\" border=\"0\" alt=\"Contact\"></a>");
else
	document.write("<a href=\"pgcont.htm\" onMouseOut=\"xswapImgRestore()\" onMouseOver=\"xswapImage('contact', '', 'btn-contact2.png',1)\" ><img name=\"contact\" src=\"btn-contact.png\" height=\"50\" width=\"99\" border=\"0\" alt=\"Contact\"></a>");

document.write("</td></tr></table>");
}

function xswapImgRestore()
{
var i, x, a = document.xsr;
for(i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++)
	x.src = x.oSrc;
}


function xpreloadImages()
{
var d=document;

if (d.images)
	{
	if(!d.xp)
		d.xp = new Array();
		
	var i, j = d.xp.length, a = xpreloadImages.arguments;

	for(i = 0; i < a.length; i++)
		{
		if (a[i].indexOf("#") != 0)
			{
			d.xp[j] = new Image;
			d.xp[j++].src=a[i];
			}
		}
	}
}

function xfindObj(n, d)
{
var p, i, x;

if (!d)
	d=document;

if ((p = n.indexOf("?")) > 0 && parent.frames.length)
	{
	d = parent.frames[n.substring(p+1)].document;
	n = n.substring(0,p);
	}

if (!(x = d[n]) && d.all)
	x=d.all[n];

for (i = 0; !x && i < d.forms.length; i++)
	x=d.forms[i][n];

for(i = 0; !x && d.layers && i < d.layers.length; i++)
	x = xfindObj(n, d.layers[i].document);

return x;
}


function xswapImage()
{
var i, j = 0, x, a = xswapImage.arguments;

document.xsr = new Array;

for (i = 0; i < (a.length - 2); i += 3)
	{
	if ((x = xfindObj(a[i])) != null)
		{
		document.xsr[j++]=x;

		if (!x.oSrc)
			x.oSrc=x.src;

		x.src=a[i+2];
		}
	}
}

function todaysdate()
{
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("Jan","Feb","March","April","May","June","July","August","Sep","Oct","Nov","Dec");
var now = new Date();
// document.write(dayNames[now.getDay()] + ", ");
document.write(monthNames[now.getMonth()] + " " + now.getDate() + ", " + now.getFullYear());
}

function footer(sender)
{
document.write("<table class=\"tablecontent\">");
document.write("<tr><td valign=\"top\"><hr class=\"divider2\" NOSHADE>");
document.write("<div align=\"center\">");
document.write("<span class=\"copyright\">Copyright &#169; 2011 by Boxer Software, All Rights Reserved Worldwide<br>");
document.write("\"Boxer\", \"Text Monkey\" and \"The Permutator\" are trademarks of Boxer Software.<br>");
document.write("Other names are trademarks of their respective holders.<br><br></span></div>");
document.write("</td></tr></table>");

// display a color accent bar at very base of page
foot();
}

function foot()
{
document.write("<div align=\"center\"><table class=\"tablesubmenu\">");
document.write("<tr><td><img src=\"foot.png\" border=\"0\"></td></tr>");
document.write("</table></div><br>");
}


