var highColour = "#B468D1"
var midColour  = "#9456AE"
var lowColour  = "#844C99"

function print( filler )
{
	document.write( filler );
}

function openFrameInner()
{
	document.write( '<td colspan="4" height="1" bgcolor="' + lowColour + '">' );
	document.write( '<td height="1" width="1" bgcolor="' + midColour + '">' );
	document.write( '<tr><td rowspan="3" width="1" bgcolor="' + lowColour + '">' );
	document.write( '<td colspan="2" height="1" bgcolor="' + highColour + '">' );
	document.write( '<td width="1" height="1" bgcolor="' + midColour + '">' );
	document.write( '<td rowspan="3" width="1" bgcolor="' + highColour + '">' );
	document.write( '<tr><td width="1" bgcolor="' + highColour + '">' );
	document.write( '<td align="center">' );
	document.write( '<table width="100%" border="0" cellpadding="0" cellspacing="2"><tr>' );
}

function openFrame()
{
	document.write( '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr>' );
	openFrameInner();
}

function closeFrame()
{
	document.write( '</table>' );
	document.write( '<td width="1" bgcolor="' + lowColour + '">' );
	document.write( '<tr><td height="1" width="1" bgcolor="' + midColour + '">' );
	document.write( '<td colspan="2" height="1" bgcolor="' + lowColour + '">' );
	document.write( '<tr><td height="1" width="1" bgcolor="' + midColour + '">' );
	document.write( '<td colspan="4" height="1" bgcolor="' + highColour + '">' );
	document.write( '</table>' );
}

function openRootFrame()
{
	document.write( '<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>' );
	openFrameInner();
}

function closeRootFrame()
{
	closeFrame();
}

function makeFrame( filler )
{
	openFrame();
	document.write( '<td align="center">' );
	document.write( filler );
	closeFrame();
}

function putButton( page, title )
{
	print('<tr><td height="30" align="center">');
	makeFrame( '<a href="'+page+'">'+title+'</a>' );
}
function putFirstButton( page, title )
{
	print('<td height="30" width="90" align="center">');
	makeFrame( '<a href="'+page+'">'+title+'</a>' );
}


