// 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";
  }
  	document.write(
  '<frameset cols="*,800,*" frameborder="NO" border="0" framespacing="0" title="Officiële website mega-project restauratie cartons Sint Janskerk te Gouda">',
	'<frame name="links" src="links.htm" scrolling="NO" noresize frameborder="NO">', 
	  '<frameset rows="36,*" frameborder="NO" border="0" framespacing="0">',
	      '<frame name="boven" src="navigatie.htm" frameborder="NO" border="0" framespacing="0" scrolling="no" title="Navigatie">',
		  '<frame name="mainFrame" src="' + mainFrame + '" frameborder="NO" border="0" framespacing="0" scrolling="auto" title="Hoofdframe">',
	  '</frameset>',
	'<frame name="rechts" src="rechts.htm" scrolling="NO" noresize frameborder="NO">',
  '</frameset>');
}
