///// DHTML CORE - 20010104 //////////////////////////
//                                                  //
// Developed by Alex Craven (krei@rmmdesign.com.au) //
//                                                  //
// ** This is untested, possibly incomplete code ** //
//                                                  //
// Thanks to Fuzzy Wolf and people at Webmonkey for //
// various bits of code/info which helped here.     //
//////////////////////////////////////////////////////

var browser = detectBrowser();
var viewport = null;

function initialise()
{
	viewport = measureViewport(browser);
}

function startMainPanel()
{
	initialise();
	document.writeln('\t\t<TABLE WIDTH="' + ((viewport.width < 600) ? (viewport.width-40) : (viewport.width-220)) +'" ALIGN="LEFT" CELLSPACING="0" CELLPADDING="0">');
	document.writeln('\t\t<TR><TD>');
}

function endMainPanel()
{
	document.writeln('\t\t</TD></TR>');
	document.writeln('\t\t</TABLE>');
}

function onResize()
{
	location.reload();
}
