function doRollOver(id)
{
	if(document.all && document.getElementById){
		document.getElementById(id).style.color = '#9CCFFF';
	}else if(document.all && !document.getElementById){
		document.all[id].style.color = '#9CCFFF';
	}
}

function doRollOut(id)
{
	if(document.all && document.getElementById){
		document.getElementById(id).style.color = '#FFFFFF';
	}else if(document.all && !document.getElementById){
		document.all[id].style.color = '#FFFFFF';
	}
}

function writeTopMenu(){

	menu1Content = '<table width="107" border="0" cellspacing="0" cellpadding="0" height="42" bgcolor="#003399"> \n'+
	'<tr><td width="107" height="1"><img src="images/menu_images/menu_space.gif" width="107" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="107" height="20" class="menuLink" onMouseOver="doRollOver(\'link1\');" onMouseOut="doRollOut(\'link1\');" onclick="javascript:window.location.href=\'register.html\'">&nbsp;<a href="register.html" class="menuitems" id="link1">Register</a></td></tr> \n'+
	'<tr><td width="107" height="1"><img src="images/menu_images/menu_space.gif" width="107" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="107" height="20" onMouseOver="doRollOver(\'link2\');" onMouseOut="doRollOut(\'link2\');" onclick="javascript:window.location.href=\'general/login.html\'">&nbsp;<a href="general/login.html" class="menuitems" id="link2">Login</a></td></tr> \n'+
	'</table>';
	
	menu2Content = '<table width="137" border="0" cellspacing="0" cellpadding="0" height="63" bgcolor="#003399"> \n'+
	'<tr><td width="137" height="1"><img src="images/menu_images/menu_space.gif" width="137" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="137" height="20" onMouseOver="doRollOver(\'link3\');" onMouseOut="doRollOut(\'link3\');" onclick="javascript:window.location.href=\'zones_overview.html\'">&nbsp;<a id="link3" href="zones_overview.html" class="menuitems">Overview</a></td></tr> \n'+
	'<tr><td width="137" height="1"><img src="images/menu_images/menu_space.gif" width="137" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="137" height="20" onMouseOver="doRollOver(\'link4\');" onMouseOut="doRollOut(\'link4\');" onclick="javascript:window.location.href=\'http://www.thexmlzone.com/\'">&nbsp;<a href="http://www.thexmlzone.com/" class="menuitems" id="link4">The XML Zone</a></td></tr> \n'+
	'<tr><td width="137" height="1"><img src="images/menu_images/menu_space.gif" width="137" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="137" height="20" onMouseOver="doRollOver(\'link5\');" onMouseOut="doRollOut(\'link5\');" onclick="javascript:window.location.href=\'http://www.theedizone.com/\'">&nbsp;<a href="http://www.theedizone.com/" class="menuitems" id="link5">The EDI Zone</a></td></tr> \n'+
	'<tr><td width="137" height="1"><img src="images/menu_images/menu_space.gif" width="137" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="137" height="20" onMouseOver="doRollOver(\'link6\');" onMouseOut="doRollOut(\'link6\');" onclick="javascript:window.location.href=\'http://www.bacstelipzone.com/\'">&nbsp;<a href="http://www.bacstelipzone.com/" class="menuitems" id="link6">The BACSTEL-IP Zone</a></td></tr> \n'+
	'</table>';
	
	menu3Content = '<table width="107" border="0" cellspacing="0" cellpadding="0" height="42" bgcolor="#003399"> \n'+
	'<tr><td width="107" height="1"><img src="images/menu_images/menu_space.gif" width="107" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="107" height="20" onMouseOver="doRollOver(\'link7\');" onMouseOut="doRollOut(\'link7\');" onclick="javascript:window.location.href=\'Open_Txn_Library/index.asp\'">&nbsp;<a href="Open_Txn_Library/index.asp" class="menuitems" id="link7">Overview</a></td></tr> \n'+
	'<tr><td width="107" height="1"><img src="images/menu_images/menu_space.gif" width="107" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="107" height="20" onMouseOver="doRollOver(\'link8\');" onMouseOut="doRollOut(\'link8\');" onclick="javascript:window.location.href=\'Open_Txn_Library/XML_Index_Application/timedoutset.asp\'">&nbsp;<a href="Open_Txn_Library/XML_Index_Application/timedoutset.asp" class="menuitems" id="link8">The XML Library</a></td></tr> \n'+
	'</table>';	
	
	menu4Content = '<table width="107" border="0" cellspacing="0" cellpadding="0" height="42" bgcolor="#003399"> \n'+
	'<tr><td width="107" height="1"><img src="images/menu_images/menu_space.gif" width="107" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="107" height="20" onMouseOver="doRollOver(\'link9\');" onMouseOut="doRollOut(\'link9\');" onclick="javascript:window.location.href=\'about_saa.html\'">&nbsp;<a href="about_saa.html" class="menuitems" id="link9">About SAA</a></td></tr> \n'+
	'<tr><td width="107" height="1"><img src="images/menu_images/menu_space.gif" width="107" height="1"></td></tr> \n'+
	'<tr><td class="cursorStyle" width="107" height="20" onMouseOver="doRollOver(\'link10\');" onMouseOut="doRollOut(\'link10\');" onclick="javascript:window.location.href=\'http://www.saaconsultants.com\'">&nbsp;<a href="http://www.saaconsultants.com" class="menuitems" id="link10">Corporate Web Site</a></td></tr> \n'+	
	'</table>';		

	if(document.all)writeIeMenu(menu1Content, menu2Content, menu3Content, menu4Content);
	if(document.layers)writeNs4Menu(menu1Content, menu2Content, menu3Content, menu4Content);
	if(!document.all && document.getElementById)writeNs6Menu(menu1Content, menu2Content, menu3Content, menu4Content);
}

function writeIeMenu(m1,m2,m3,m4){
	document.all.menu1.innerHTML = m1;
	document.all.menu2.innerHTML = m2;
	document.all.menu3.innerHTML = m3;
	document.all.menu4.innerHTML = m4;	
	document.all.menu1.style.visibility = 'hidden';
	document.all.menu2.style.visibility = 'hidden';
	document.all.menu3.style.visibility = 'hidden';
	document.all.menu4.style.visibility = 'hidden';	
	menu1Content = null;
	menu2Content = null;
	menu3Content = null;
	menu4Content = null;	
}

function writeNs4Menu(m1,m2,m3,m4){
	document.layers.menu1.document.write(m1);
	document.layers.menu1.document.close();
	document.layers.menu2.document.write(m2);
	document.layers.menu2.document.close();
	document.layers.menu3.document.write(m3);
	document.layers.menu3.document.close();
	document.layers.menu4.document.write(m4);
	document.layers.menu4.document.close();	
	document.layers.menu1.visibility = 'hide';
	document.layers.menu2.visibility = 'hide';
	document.layers.menu3.visibility = 'hide';
	document.layers.menu4.visibility = 'hide';	
	menu1Content = null;
	menu2Content = null;
	menu3Content = null;
	menu4Content = null;	
}

function writeNs6Menu(m1,m2,m3,m4){
	document.getElementById("menu1").innerHTML = m1;
	document.getElementById("menu2").innerHTML = m2;
	document.getElementById("menu3").innerHTML = m3;
	document.getElementById("menu4").innerHTML = m4;	
	document.getElementById("menu1").style.visibility = 'hidden';
	document.getElementById("menu2").style.visibility = 'hidden';
	document.getElementById("menu3").style.visibility = 'hidden';
	document.getElementById("menu4").style.visibility = 'hidden';	
	menu1Content = null;
	menu2Content = null;
	menu3Content = null;
	menu4Content = null;	
}

d = (document.all || document.getElementById)? 1:0;

var ns = '<link href="css/reimsnet_ns.css" rel="stylesheet" title="SAA Consultants style sheet" type="text/css">';
var ie = '<link href="css/reimsnet_ie.css" rel="stylesheet" title="SAA Consultants style sheet" type="text/css"> \n';

(d)? document.write(ie):document.write(ns);

var documentImages = new Array();

function preloadImages()
{
	documentImages[0] = new Image();
	documentImages[0].src = 'images/menu_images/menu_space.gif';
}

function writeYear(){
	document.write((new Date).getFullYear());
}