// 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(screen.width < 1025)
	{
	var q = 808;
	}
	else
	if(screen.width > 1024 && screen.width < 1279)
	{
	var q = 909;
	}
  	else
	if(screen.width > 1279)
	{
	var q = 1010;
	}
	
  // Time to write the framset.
  // The format of the frameset will of course vary from site to site, so you
  // will need to modify this piece of the code for your site.
  document.write(
'<frameset cols="187,'+ q +',*" framespacing="0" framepadding="0" border="0">',
'<frame name="leftFrame" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="NO" noresize src="fr_navigation.htm"	target="rtop">',
'<frame name="mainFrame" frameborder="0" border="0" marginwidth="0" marginheight="0" src="' + mainFrame + '">',
'<frame name="rechts" frameborder="NO" border="0" framespacing="0" marginheight="0" marginwidth="0" src="rechts.htm">',
'</frameset>');
}
