/**

 *

 * Title: 		framecheck for lunatic website

 * Description:		checks to see if content page is placed inside a frameset.

 *			if not, loads special frameset page that will generate the correct

 *			frameset

 *			Script checks if used protocol is "http" or not. if http framecheck

 *			starts otherwise not (because local testing will fail)

 * Copyright:    	(c) 2002 Lunatic Interactive GmbH

 *

 * author       	Dirk Jacobs (jacobs@lunatic.de)

 * 

 */



				

var replace_frameset_url = "./index_fs.htm";



function frameCheck() {

	var filename = "leer.htm";

	var search_string = "";



	if (self.location.protocol == "http:") {

		if (self.top.length < 5) {

			

			search_string = "?cat=" + escape(category);

			if (location.replace == null) {

				self.top.location.replace(replace_frameset_url + search_string);



			} else {

				self.top.location = replace_frameset_url + search_string;



			}

		}

	}

}

onload=frameCheck;

