// Writeframes
// JavaScript Code Copyright (c) e-Brand Management Limited 2001
// This code may be copied and modified without permission or charge, provided
// this notice remains intact.
// Original source is at http://www.searchmechanics.com/learn/srf/writefs.js
// See http://www.searchmechanics.com/learn/srf/ for more details.

// We work out whether we are in the frameset or frame context by looking
// for a 'nowritefs' parameter
var str = location.search;
var writeFrames = (str.indexOf("nowritefs")) && (top.window.length == 0);

if (writeFrames)
{
  // We are in the frameset context - write the framset out
  if (str == "")
  {
    var mainFrame = window.location + "?nowritefs";
  }
  else
  {
    var mainFrame = window.location + "&nowritefs";
  }

	if(navigator.appName != 'Netscape')
	{
	  document.write(
	    '<frameset rows="42,*,42" border="0" frameborder="no" framespacing="0">',
			'<frame name="top" src="html/top.html"  scrolling="no" marginwidth="0" marginheight="0">', 
			'<frame name="main" src="' + mainFrame + '"   noresize marginwidth="0" marginheight="0">',
				'<frame name="bottom" src="html/bottom.html" scrolling="no" marginwidth="0" marginheight="0">',
	    '</frameset>');
		
		
	}
	else
	if(navigator.appName == 'Netscape')
	{
	  document.write(
	    '<frameset rows="42,*,42"  border="0" frameborder="no" framespacing="0">',
			'<frame name="top" src="html/top.html"  scrolling="no">', 
			'<frame name="mainFrame" src="' + mainFrame + '" noresize marginwidth="0" marginheight="0">',
				'<frame name="bottom" src="html/bottom.html"  scrolling="no" marginwidth="0" marginheight="0">',
				
	    '</frameset>');
	}
}

