
function BuildHw(section)
{
	
	var htmloc="Subjects/menu.htm";
	var uBrVer="NA";
	var uBrCli="NA";
	agent=navigator.userAgent;
	if (agent.indexOf("MSIE") != -1) {uBrCli="msie";} 
	uBrVer=navigator.appVersion.substring(0,4); 
	if ((uBrCli == "msie")&&(parseInt(uBrVer.charAt(0)) > 3)) {uBrVer="4"; uBrCli="msie 4";} 
	if (uBrCli == "msie 4"){ 
			htmloc="Subjects/menuie.htm";
	}
	htmlStr = "";
	htmlStr +=("<html>")
	htmlStr +=("<head>")
	htmlStr +=("<script language=javascript>")
	htmlStr +=("var defopen = \""+ section +"\";\n")
	
	showUrl = "";
	var topUrl = top.location.href.toUpperCase();
	if ( (topUrl.indexOf("aolindex.htm") != -1) || (topUrl == "HTTP://WWW.KIDDONET.COM") || (topUrl == "HTTP://WWW.KIDDONET.COM/") || (topUrl == "HTTP://WWW.KIDDONET.COM/INDEX.HTM") )
			showUrl = "&showUrl=1";

	htmlStr +=("function go2Link(theLink){main.location.href= 'http://www.kiddonet.com/kiddonet/gs/selectionAct.pl?gsUrl=' + theLink + '" + showUrl + "' ;}")
	htmlStr +=("</script>")
	htmlStr +=("</head>")	
	if (htmloc == "menuie.htm"){
	  htmlStr +=("<frameset framespacing=\"0\" border=\"false\" frameborder=\"1\" cols=\"201,*\">")
	  htmlStr +=("<frameset framespacing=\"0\" border=\"false\" frameborder=\"0\" rows=\"435,*\">")
	   htmlStr +=("<frame name=\"menu\" target=\"main\" scrolling=\"auto\" noresize src=" + htmloc + ">")
	   htmlStr +=("<frame name=\"back\" src=\"Subjects/back.htm\">")
	  htmlStr +=("</frameset>")
	  htmlStr +=("<frame name=\"main\" src=\"Subjects/dlang.htm\">")
	} else {
		htmlStr +=("<frameset framespacing=\"0\" border=\"false\" frameborder=\"1\" cols=\"215,*\">")
		htmlStr +=("<frame name=\"menu\" target=\"main\" scrolling=\"auto\" noresize src=" + htmloc + ">")
		htmlStr +=("<frame name=\"main\" src=Subjects/d"+ section+ ".htm>")
	}
	  htmlStr +=("<noframes>")
	  htmlStr +=("<body>")
	  htmlStr +=("<p>This page uses frames, but your browser doesn't support frames.</p>")
	  htmlStr +=("</body>")
	  htmlStr +=("</noframes>")
	htmlStr +=("</frameset>")
	htmlStr +=("</html>")
	
	document.writeln(htmlStr)
	
}