//  Joust Outliner Version 2.4.1
//  (c) Copyright 1996-1999, Alchemy Computing Limited. All rights reserved.
//  This code may be freely copied and distributed provided that it is accompanied by this header.
//
//  Do not modify anything between here and the "End of Joust" marker other than the "Initialise" function
//  unless you know what you are doing.  You can find the latest version of Joust and all associated files and
//  help at http://www.alchemy-computing.co.uk/joust/.  If you have any questions/problems visit the 
//  Joust User Forum at http://www.customforum.com/joust/

//------------------------------------------------------------------------------
// This code is called by index.html.  It is used to create the frame structure.
//------------------------------------------------------------------------------

if (self.name == 'menu') {
	// Sometimes, Netscape will try to load this index inside the menu frame.  I haven't
	// worked out why but this will detect that situation and reset the location property.
	self.location.href = "menu.html";
} else {
	initialise();
	var thePage = pageFromSearch('home.html', theMenu, true);
	
	if (floatingMode) {

  self.document.writeln('<frameset cols="*" rows="*,26" framespacing="3" border="0" onUnload="unloadFloating();" onResize="defaultResizeHandler();">');
  self.document.writeln('<frame name="menu" src="menu.html" scrolling="auto" marginwidth="5" marginheight="0" frameborder="0" APPLICATION="yes">');
  self.document.writeln('<frame name="menuCntrl" src="menucntrl.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" APPLICATION="yes">');
  self.document.writeln('</frameset>');

	} else {

self.document.writeln('<frameset cols="*" rows="76,*" framespacing="3" border="0" onResize="defaultResizeHandler();">');

    self.document.writeln('<frame name="title" src="title.html" scrolling="no" noresize marginwidth="5" marginheight="8" frameborder="0" APPLICATION="yes">');
    self.document.writeln('<frameset cols="230,*" rows="*" framespacing="3" border="0">');
        self.document.writeln('<frameset cols="*" rows="*,26" framespacing="3" border="0">');
            self.document.writeln('<frame name="menu" src="menu.html" scrolling="auto" marginwidth="5" marginheight="0" frameborder="0" APPLICATION="yes">');
            self.document.writeln('<frame name="menuCntrl" src="menucntrl.html" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" APPLICATION="yes">');
        self.document.writeln('</frameset>');
        self.document.writeln('<frame name="text" src="' + thePage +'" scrolling="auto" marginwidth="8" marginheight="8" frameborder="0" APPLICATION="yes">');
    self.document.writeln('</frameset>');
self.document.writeln('</frameset>');

	}
}