var Usr_Type = new Array;
var Usr_Login = "";

/* 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="/JS/cssexpr.js"><\/script>');
//document.write('<link type="text/css" rel="StyleSheet" href="/JS/webfxlayout.css">');
document.write('<link type="text/css" rel="StyleSheet" href="/JS/xmenu.css"><\/script>');
document.write('<script type="text/javascript" src="/JS/xmenu.js"><\/script>');
document.write('<script type="text/javascript" src="/JS/nuevo.asp"><\/script>');
//construir_menu();

// later
// webfxMenuImagePath = pathToRoot + "images/";


/* end includes */


webfxLayout = {
	writeTopMenuBar		:	function () {
		document.write("<div id='webfx-menu-bar-1'></div>");
		if (opera) {
			document.write("<style>.webfx-menu-bar a {padding-top:3px;}</style>");
			document.write("<div id='webfx-menu-bar-2' style='height:2px;'></div>");
		}
		else
			document.write("<div id='webfx-menu-bar-2'></div>");
		document.write("<div id='webfx-menu-bar'>");// div is closed in writeBottomMenuBar
	},
	writeBottomMenuBar	:	function () {
		document.write("</div>");
		if (opera)
			document.write("<div id='webfx-menu-bar-3' style='height:0px;'></div>");
		else
			document.write("<div id='webfx-menu-bar-3'></div>");
		document.write("<div id='webfx-menu-bar-4'></div>");
		document.write("<div id='webfx-menu-bar-5'></div>");
	},
	writeMenu			:	function () {
		if (ie || moz || opera) {
			if (ie)
				simplifyCSSExpression();
			webfxMenuImagePath = "/Menu/images/";
			this.writeTopMenuBar();
			document.write(webfxMenuBar);
			this.writeBottomMenuBar();
		}
		else {
			document.write(
				"<div id='webfx-menu-bar'>&nbsp;" +
				"<a href='/'>Portada</a> " +
				"<a href='" + pathToRoot + "?action=sitemap'>Site Map</a> " +
				"<a href='/webboard'>WebFX Webboard</a> " +
				"</div>" +
				
				"<p class='Advertencia' style='width: 500px'>" +
				"Este sitio trabajará mucho mejor en un navegador que soporte " +
				"<a href='http://www.webstandards.org/upgrade/' " +
				"title='Descargue un navegador que cumpla con los estándares de internet.'></a>, " +
				"pero este es accesible desde cualquier browser." +
				"</p>"
			);
		}
	},
	writeDesignedByEdger	:	function () {
		if (ie && document.body.currentStyle && document.body.currentStyle.writingMode != null)
			// IE55+
			document.write("<div id='webfx-about'>Página diseñada y mantenida por CEI-RD " +
					"<a href='mailto:webmaster@cei-rd.gov.do'>Gerencia de Sistemas y Tecnología</a>.</div>");
	}
};

//if (ie && window.attachEvent) {
//	window.attachEvent("onload", function () {
//		var scrollBorderColor	=	"rgb(120,172,255)";
//		var scrollFaceColor		=	"rgb(234,242,255)";
//		with (document.body.style) {
//			scrollbarDarkShadowColor	=	scrollBorderColor;
//			scrollbar3dLightColor		=	scrollBorderColor;
//			scrollbarArrowColor			=	"black";
//			scrollbarBaseColor			=	scrollFaceColor;
//			scrollbarFaceColor			=	scrollFaceColor;
//			scrollbarHighlightColor		=	scrollFaceColor;
//			scrollbarShadowColor		=	scrollFaceColor;
//			scrollbarTrackColor			=	"white";
//		}
//	});
//}
