// $Id: layout.js 2 2002-09-11 22:37:00Z cvs_iezzi $


/* set up browser checks */

// check browsers
var ua		= navigator.userAgent;
var opera	= /opera [56789]|opera\/[56789]/i.test(ua);
var ie		= !opera && /msie [56789]/i.test(ua);		// preventing opera to be identified as ie
var moz		= !opera && /mozilla\/[56789]/i.test(ua);	// preventing opera to be identified as mz
/* end browser checks */
/* Do includes */

if (window.pathToRoot == null)
	pathToRoot = "";

if (ie)
	document.write('<script type="text/javascript" src="' + pathToRoot + 'js/cssexpr.js"><\/script>');
document.write('<link type="text/css" rel="StyleSheet" href="' + pathToRoot + 'css/xmenu.css">');
document.write('<script type="text/javascript" src="' + pathToRoot + 'js/xmenu.js"><\/script>');
document.write('<script type="text/javascript" src="' + pathToRoot + 'js/menu.js"><\/script>');
// later
// webfxMenuImagePath = pathToRoot + "images/";


/* end includes */



webfxLayout = {
	writeTopMenuBar		:	function () {
		document.write("<div id=\"menu-bar-1\"></div>");
		if (opera) {
			document.write("<style>.menu-bar a {padding-top:3px;}</style>");
			document.write("<div id=\"menu-bar-2\" style=\"height:2px;\"></div>");
		}
		else
			document.write("<div id=\"menu-bar-2\"></div>");
		document.write("<div id=\"menu-bar\">");// div is closed in writeBottomMenuBar
	},
	writeBottomMenuBar	:	function () {
		document.write("</div>");
		if (opera)
			document.write("<div id=\"menu-bar-2\" style=\"height:0px;\"></div>");
		else
			document.write("<div id=\"menu-bar-2\"></div>");
		document.write("<div id=\"menu-bar-1\"></div>");
	},
	writeMenu			:	function () {
		if (ie || moz || opera) {
			if (ie)
				simplifyCSSExpression();
			webfxMenuImagePath = pathToRoot + "img/";
			this.writeTopMenuBar();
			document.write(webfxMenuBar);
			this.writeBottomMenuBar();
		}
		else {
			document.write(
				"<u>Please upgrade to a better browser so you can see the real internet!</u>" + "<br />" +
				"This site will look much better in a browser that supports" + "<br />" +
				"<a href=\"http://www.webstandards.org/upgrade/\" " +
				"title=\"Download a browser that complies with Web standards.\">" +
				"web standards</a>, " +
				"but it is accessible to any browser or Internet device." +
				"<p>::: <a href=\"index.php\">home</a> | <a href=\"plan.php\">development plan</a> | <a href=\"team.php\">dev team</a> | <a href=\"roadmap.php\">roadmap</a> | <a href=\"cvs.php\">CVS</a> | <a href=\"about.php\">about</a> :::</p>"
			);
		}
	}
};

