/*
This code is a called a self-referencing frameset. It is a code that moves the frameset page to
an external javascript file instead of an HTML file. The code checks if the frameset needs to be written and if does writes it.

http://www.silverdisc.co.uk/articles/srf/
*/

var str = location.search;
var writeFrames = (str.indexOf("nowritefs")) && (top.window.length == 0);
if (writeFrames)
    {
    if (str == "") { var bodyFrame = window.location + "?nowritefs"; }
    else{ var bodyFrame = window.location + "&nowritefs"; }
    document.write('<frameset rows="100,*" frameborder="NO" border="0" framespacing="0">', '<frame name="oben" scrolling="no" noresize src="top.html" >','<frameset cols="139,*" frameborder="NO" border="0" framespacing="0">', '<frame name="menu" scrolling="auto" noresize src="menu.html">','<frame name="bodyframe" src="', bodyFrame, '">', '</frameset>', '</frameset>');
    }
