/* Import appropriate menu stylesheet.
 *
 */
/* The URL of the stylesheet depends on rewrite or redirect,
 * and whether an article (subdirectory) is beinng viewed.
 *
 * Redirection:
 * ------------
 *   The browsers 'cwd' is always the root directory of the site,
 *   which css/ is relative to, so no path manipulation needed.
 *
 * Rewrites:
 * ---------
 *   The browsers 'cwd' is the root directory of the site for
 *   all pages except for articles. If using rewrites and is
 *   an article page, we must use ../ to find css.
 *
 */
	//document.write(document.location + "<br />");

	var prefix = "";
	var ReWritesInUse = /site.pl/.test(document.location);
	ReWritesInUse = !ReWritesInUse;
	var ArticlesCWD = /(articles|pictures|bands|video)\//.test(document.location);

	if(ReWritesInUse && ArticlesCWD){//		document.write("Articles found\n");
		prefix = "../";
	} //else{//		document.write("Articles not found\n");	}

	//document.write('Prefix is' + prefix);
	/* Import the relevent stylesheet. */
	if( !browser.isNS || browser.version >= 5){
		// Fancy styles that IE and geko can handle.
		document.write(
				'<link rel="stylesheet" type="text/css" href="' + prefix + 'css/menu.css" title="Style">');
	}else{
		// A standard menu bar for Netscape 4.x
		document.write('<link rel="stylesheet" type="text/css" href="' + prefix + 'css/menu-plain.css" title="Style">');
		// Pull in suphorious fonts for Netscape 4.x
		document.write('<link rel="stylesheet" type="text/css" href="' + prefix + 'css/netscape-font.css" title="Style">');
	}
