/*	author:	Leander Eyer, TQ Team C001348
	date:	19.04.2000

	This script was worte for the internetsite "chess the royal game"
	by Think Quest team C001348 */

function isloaded (subURL) 
{ //make sure the frameset is loaded 
	if (parent.frames.length == 0)
	{
		var language;
		
		//check language

		if (subURL.substring (subURL.length - 8, subURL.length - 5) == "_ge")
			language = false;
		else
			language = true; 


		var root = new String ( location );
		root = root.substr ( 0, root.length - subURL.length); 
		//generate the frameset 
		with (document) 
		{
			clear ();

			writeln ("<HTML><HEAD><TITLE>Chess The Royal Game Helpsystem</TITLE></HEAD>");
	
			writeln ("<FRAMESET cols = '180, *' border='0' framespacing='0' frameborder='NO'>");
			writeln ("<FRAME src='helpnav" + (language? "_en":"_ge") + ".html' name='helpnav' noresize scrolling='no'>");
			writeln ("<FRAMESET rows = '*,55' border='0' framespacing= '0' frameborder='no'>");
			writeln ("<FRAME src='" + subURL  + "' name='helptext' noresize scrolling='auto'>");
			writeln ("<FRAME src='closehelp" + (language? "_en":"_ge") + ".html' name='helpclose' noresize scrolling='no'>");
			writeln ("</FRAMESET></FRAMESET>");
			writeln ("<noframes>Sorry, your browser doesent support frames. Frames are a really important element on this site. We suggest that you install a newer browser.</noframes>");
			writeln ("</HTML>");
		}

		if ((navigator.appName == "Netscape") && (parseInt (navigator.appVersion) >= 5))
		{
			resizeTo (699, 499);
			resizeTo (700, 500);
		} else 
			frames [1].location = subURL;
		return;
	}
}
