<!--
// ROOT
if ( (self.location.href.indexOf('about/')!=-1) || (self.location.href.indexOf('computer_sales/')!=-1) || (self.location.href.indexOf('network_solutions/')!=-1) || (self.location.href.indexOf('systems_engineering/')!=-1) || (self.location.href.indexOf('web_solutions/')!=-1) || (self.location.href.indexOf('admin/')!=-1)  ) {
	root='../';		
} else {
	root='/';
}

//---------------------------------------------------------------------------------------------------------
// dhtml lib

isNav=false;
isW3C=false;
isExp=false;
isOpera=false;
isNOT=false;
isMac=false;

// Detect browser and define pre/suf-fixes
browser=navigator.appName;
version=navigator.appVersion;
useragent=navigator.userAgent;
Vmajor=parseInt(navigator.appVersion);
Vminor=parseFloat(navigator.appVersion);

if (useragent.indexOf('Opera') != -1) {
	isOpera=true;
	pre='all';
	suff='.style';
}
else if (browser=="Netscape") {
	if (Vmajor==4)
	{
		isNav=true; pre='layers.'; suf='';
	}
	else if (Vmajor==5)	isW3C=true;
	else isNOT=true;
}
else if (browser=="Microsoft Internet Explorer") {
	if ( version.indexOf('MSIE 5.0; Macintosh;') != -1 )  {
		isExp=true;
		pre='all.';
		suf='.style';
	}
	// IE 4 to 5.5 return 4 as the version
	else if ( (Vmajor==4) ) {
		isExp=true;
		pre='all.';
		suf='.style';
	}
	else isNOT=true;
}

if (version.indexOf('Mac') != -1) isMac=true;

if (isNav && Vminor>4.08 ) {
 	document.captureEvents(Event.RESIZE);
 	window.onresize=resizeH;
}


function resizeH()
{
	window.location.reload();
	return true;
}

function Showlayer(which,how) {
	if (isNav || isExp) {
		eval ('document.'+pre+which+suf+'.visibility="'+how+'"');
		return;
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		obj.style.visibility=how;
	}
}

function Movelayer(which,x,y) {
	if (isExp)	{
		eval ('document.'+pre+which+suf+'.pixelLeft='+x);
		eval ('document.'+pre+which+suf+'.pixelTop='+y);
		return;
	}
	else if (isNav) {
		eval ('document.'+which+'.moveTo('+x+','+y+')');
		return;
	}
	else if (isW3C) {
		obj=document.getElementById(which);
		obj.style.left=x+'px';
		obj.style.top=y+'px';	
		return;
	}
	else if (isOpera) {
		obj=document.getElementById(which);
		obj.style.left=x;
		obj.style.top=y;	
	}
}

function getwindowWidth() {
	if (isExp) {
		return document.body.clientWidth;
	}
	else if (isNav || isW3C || isOpera) {
		return window.innerWidth;
	}
}

function getwindowHeight() {
	if (isExp) {
		return document.body.clientHeight;
	}
	else if (isNav || isW3C || isOpera) {
		return window.innerHeight;
	}
}

function pop(url,w,h) { // popup

	window.open(url,"popup","resizable=1,toolbar=1,location=0,status=0,menubar=0,scrollbars=1,width=" + w + ",height=" + h + "");

	}
	
function popNoResize(url,w,h) { // popup no resize

	window.open(url,"popup","resizable=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width=" + w + ",height=" + h + "");

	}

//---------------------------------------------------------------------------------------------------------
// menu

Menus=new Array(
	{x:150,y:92,w:181,h:58,name:'About',bgcolor:'#444444'},
	{x:214,y:92,w:127,h:58,name:'WebSolutions',bgcolor:'#F69866'},
	{x:341,y:92,w:215,h:75,name:'SystemsEngineering',bgcolor:'#749EC8'},
	{x:513,y:92,w:151,h:92,name:'NetworkSolutions',bgcolor:'#CC6666'},
	{x:664,y:92,w:135,h:75,name:'ComputerSales',bgcolor:'#CCCC66'}		
);

sectionN=0;
currentMenu=0;
currentSelection=-1;
currentSection=-1;
currentPage=-1;
positioned=0;
highlightcode='';
artworkcode='';

if (self.location.href.indexOf('about/')!=-1) { currentSection='About'; sectionN=0; }
if (self.location.href.indexOf('web_solutions/')!=-1) { currentSection='WebSolutions'; sectionN=1; }
if (self.location.href.indexOf('systems_engineering/')!=-1) { currentSection='SystemsEngineering'; sectionN=2; }
if (self.location.href.indexOf('network_solutions/')!=-1) { currentSection='NetworkSolutions'; sectionN=3;}
if (self.location.href.indexOf('computer_sales/')!=-1) { currentSection='ComputerSales'; sectionN=4;}
if (currentSection!=-1) theColor=Menus[sectionN].bgcolor;
else theColor='#99999A';

if (currentSection!=-1) {
		highlightcode='<DIV ID="HighBar"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td bgcolor="'+Menus[sectionN].bgcolor+'"><img src="'+root+'images/ghost.gif" width="1" height="3" alt="" border="0"></td></tr></table></DIV>'+"\n";
		highlightcode+='<DIV ID="HighBlock"><table width="'+Menus[sectionN].w+'" cellspacing="0" cellpadding="0" border="0"><tr><td bgcolor="'+Menus[sectionN].bgcolor+'"><img src="'+root+'images/ghost.gif" width="1" height="5" alt="" border="0"></td></tr></table></DIV>'+"\n";
}
	
function positionMenus() {
	for(i=0; i<Menus.length; i++) {
		ax=Menus[i].x;
		Movelayer(Menus[i].name+'Gray',ax,Menus[i].y+30);
		Movelayer(Menus[i].name+'Black',ax,Menus[i].y+30);
		Movelayer(Menus[i].name+'Top',Menus[i].x,Menus[i].y);
		Movelayer(Menus[i].name+'Menu',ax,Menus[i].y+30);
	}
	if (currentSection!=-1) {
		Showlayer(currentSection+'Top','visible');
		Movelayer('HighBlock',Menus[sectionN].x,99);
	}
	positioned=1;
}
	
function menuOpen(which) {
	if (positioned==0) return;
	if (currentMenu==which) return;
	menuClose();
	currentMenu=which;
	currentSelection=0;
	Showlayer(currentMenu+'Black','hidden');
	Showlayer(currentMenu+'Gray','visible');
	Showlayer(currentMenu+'Menu','visible');			
	Showlayer(currentMenu+'Top','visible');			
}
	
function menuClose() {
	if (currentMenu) {
		Showlayer(currentMenu+'Black','hidden');
		Showlayer(currentMenu+'Gray','hidden');
		Showlayer(currentMenu+'Menu','hidden');			
		if (currentMenu != currentSection) Showlayer(currentMenu+'Top','hidden');			
	}
	currentMenu='';
}
	
function menuHighlight(menu,which) {
	if (Menus[menu].x2!=null) ax=Menus[menu].x2;
	else ax=Menus[menu].x;

	Movelayer(Menus[menu].name+'Black',ax,Menus[menu].y+which*17+36);
	Showlayer(Menus[menu].name+'Black','visible');
	currentSelection=which;
}
	
function menuOff() {
	currentSelection=-1;
	setTimeout('checkMenu()',1500);
}
	
function checkMenu() {
	if (currentSelection==-1) {
		menuClose();
	}
}
	
// CALENDAR	
function launchCalendar() {
	popup=window.open(root+'calendar/calendar.html','hmsgcal','width=600,height=450,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

//---------------------------------------------------------------------------------------------------------
// document.writeln portion

// HIGHTLIGHT
document.writeln(highlightcode);

// MAIN BANNER	
document.writeln("\n"+'<div id="MenuMain"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr valign="top"><td width="802"><img src="'+root+'images/main_logo2.jpg" width="802" height="122" alt="" border="0" usemap="#mainmap"></td>'+"\n"+'<td width="100%" background="'+root+'images/top_tile.jpg">&nbsp;</td></tr></table><map name="mainmap"><area alt="Micro-Serv Corporation" coords="0,0,799,91" href="'+root+'default.asp" onMouseOver="menuOff()" shape="RECT">'+"\n"+'<area href="javascript:void(0)" onMouseOver="javascript:menuClose()" coords="0,92,150,121" shape="RECT">'+"\n"+'<area alt="About" href="javascript:void(0)" onMouseOver="menuOpen(\'About\')" coords="150,92,215,121" shape="RECT">'+"\n"+'<area alt="Web Solutions" href="javascript:void(0)" onMouseOver="menuOpen(\'WebSolutions\')" coords="216,92,343,121" shape="RECT">'+"\n"+'<area alt="Systems Engineering" href="javascript:void(0)" onMouseOver="menuOpen(\'SystemsEngineering\')" coords="344,92,515,121" shape="RECT">'+"\n"+'<area alt="NetworkSolutions" href="javascript:void(0)" onMouseOver="menuOpen(\'NetworkSolutions\')" coords="516,92,665,121" shape="RECT">'+"\n"+'<area alt="Computer Sales" href="javascript:void(0)" onMouseOver="menuOpen(\'ComputerSales\')" coords="666,92,800,121" shape="RECT"></map></div>'+"\n");

// ABOUT
document.writeln('<div id="AboutGray" class="menuItem" ><img src="'+root+'images/gray.gif" width="181" height="58" alt="" border="0"></div>'+"\n"+'<div id="AboutBlack" class="menuItem"><img src="'+root+'images/pixel.gif" width="181" height="16" alt="" border="0"></div>'+"\n"+'<div id="AboutTop" class="menuItem" ><A HREF="javascript:void(0)" onMouseOver="menuOpen(\'About\')"><img src="'+root+'images/about_top.jpg" width="64" height="30" alt="" border="0"></A></div>'+"\n"+'<div id="AboutMenu" class="menuItem"><img src="'+root+'images/about_bottom.gif" width="181" height="58" alt="" border="0" usemap="#AboutMap"></div>'+"\n"+'<map name="AboutMap">'+"\n"+'<area alt="About Micro-Serv" href="'+root+'about.asp" onMouseOver="menuHighlight(0,0)" onMouseOut="menuOff()" coords="0,5,181,21" shape="rect">'+"\n"+'<area alt="Contact Information" href="'+root+'contact.asp" onMouseOver="menuHighlight(0,1)" onMouseOut="menuOff()" coords="0,22,181,38" shape="rect">'+"\n"+'<area alt="Employment Opportunities" href="'+root+'employment.asp" onMouseOver="menuHighlight(0,2)" onMouseOut="menuOff()" coords="0,39,181,55" shape="rect"></map>'+"\n");

// WEB SOLUTIONS
document.writeln('<div id="WebSolutionsGray" class="menuItem"><img src="'+root+'images/gray.gif" width="127" height="58" alt="" border="0"></div>'+"\n"+'<div id="WebSolutionsBlack" class="menuItem"><img src="'+root+'images/pixel.gif" width="127" height="16" alt="" border="0"></div>'+"\n"+'<div id="WebSolutionsTop" class="menuItem"><A HREF="javascript:void(0)" onMouseOver="menuOpen(\'WebSolutions\')"><img src="'+root+'images/web_solutions_top.jpg" width="127" height="30" alt="" border="0"></A></div>'+"\n"+'<div id="WebSolutionsMenu" class="menuItem"><img src="'+root+'images/web_solutions_bottom.gif" width="127" height="58" alt="" border="0" usemap="#WebSolutionsMap"></div>'+"\n"+'<map name="WebSolutionsMap">'+"\n"+'<area alt="Design" href="'+root+'web_design.asp" onMouseOver="menuHighlight(1,0)" onMouseOut="menuOff()" coords="0,5,127,21" shape="rect">'+"\n"+'<area alt="Development" href="'+root+'web_development.asp" onMouseOver="menuHighlight(1,1)" onMouseOut="menuOff()" coords="0,22,127,38" shape="rect">'+"\n"+'<area alt="Hosting" href="'+root+'web_hosting.asp" onMouseOver="menuHighlight(1,2)" onMouseOut="menuOff()" coords="0,39,127,55" shape="rect"></map>'+"\n");

// SYSTEMS ENGINEERING
document.writeln('<div id="SystemsEngineeringGray" class="menuItem"><img src="'+root+'images/gray.gif" width="215" height="75" alt="" border="0"></div>'+"\n"+'<div id="SystemsEngineeringBlack" class="menuItem"><img src="'+root+'images/pixel.gif" width="215" height="16" alt="" border="0"></div>'+"\n"+'<div id="SystemsEngineeringTop" class="menuItem"><A HREF="javascript:void(0)" onMouseOver="menuOpen(\'SystemsEngineering\')"><img src="'+root+'images/systems_engineering_top.jpg" width="172" height="30" alt="" border="0"></A></div>'+"\n"+'<div id="SystemsEngineeringMenu" class="menuItem"><img src="'+root+'images/systems_engineering_bottom.gif" width="215" height="75" alt="" border="0" usemap="#SystemsEngineeringMap"></div>'+"\n"+'<map name="SystemsEngineeringMap">'+"\n"+'<area alt="Database Design & Development" href="'+root+'databases.asp" onMouseOver="menuHighlight(2,0)" onMouseOut="menuOff()" coords="0,5,215,21" shape="rect">'+"\n"+'<area alt="Software Design & Development" href="'+root+'software.asp" onMouseOver="menuHighlight(2,1)" onMouseOut="menuOff()" coords="0,22,215,38" shape="rect">'+"\n"+'<area alt="Document Management" href="'+root+'document_management.asp" onMouseOver="menuHighlight(2,2)" onMouseOut="menuOff()" coords="0,39,215,55" shape="rect">'+"\n"+'<area alt="Training" href="'+root+'training.asp" onMouseOver="menuHighlight(2,3)" onMouseOut="menuOff()" coords="0,56,215,72" shape="rect"></map>'+"\n");

// NETWORK SOLUTIONS
document.writeln('<div id="NetworkSolutionsGray" class="menuItem"><img src="'+root+'images/gray.gif" width="250" height="92" alt="" border="0"></div>'+"\n"+'<div id="NetworkSolutionsBlack" class="menuItem"><img src="'+root+'images/pixel.gif" width="250" height="16" alt="" border="0"></div>'+"\n"+'<div id="NetworkSolutionsTop" class="menuItem"><A HREF="javascript:void(0)" onMouseOver="menuOpen(\'NetworkSolutions\')"><img src="'+root+'images/network_solutions_top.jpg" width="151" height="30" alt="" border="0"></A></div>'+"\n"+'<div id="NetworkSolutionsMenu" class="menuItem"><img src="'+root+'images/network_solutions_bottom.gif" width="250" height="92" alt="" border="0" usemap="#NetworkSolutionsMap"></div>'+"\n"+'<map name="NetworkSolutionsMap">'+"\n"+'<area alt="LAN/WAN" href="'+root+'network.asp" onMouseOver="menuHighlight(3,0)" onMouseOut="menuOff()" coords="0,5,250,21" shape="rect"><area alt="Installation, Configuration, & Maintenance" href="'+root+'network.asp" onMouseOver="menuHighlight(3,1)" onMouseOut="menuOff()" coords="0,22,250,38" shape="rect">'+"\n"+'<area alt="Onsite/Offsite Service" href="'+root+'service.asp" onMouseOver="menuHighlight(3,2)" onMouseOut="menuOff()" coords="0,39,250,55" shape="rect">'+"\n"+'<area alt="Service Agreements" href="'+root+'service.asp" onMouseOver="menuHighlight(3,3)" onMouseOut="menuOff()" coords="0,56,250,72" shape="rect">'+"\n"+'<area alt="Fiber & Wireless Installations" href="'+root+'fiber.asp" onMouseOver="menuHighlight(3,4)" onMouseOut="menuOff()" coords="0,73,250,89" shape="rect"></map>'+"\n");

// COMPUTER SALES
document.writeln('<div id="ComputerSalesGray" class="menuItem"><img src="'+root+'images/gray.gif" width="135" height="75" alt="" border="0"></div>'+"\n"+'<div id="ComputerSalesBlack" class="menuItem"><img src="'+root+'images/pixel.gif" width="135" height="16" alt="" border="0"></div>'+"\n"+'<div id="ComputerSalesTop" class="menuItem"><A HREF="javascript:void(0)" onMouseOver="menuOpen(\'ComputerSales\')"><img src="'+root+'images/computer_sales_top2.jpg" width="138" height="30" alt="" border="0"></A></div>'+"\n"+'<div id="ComputerSalesMenu" class="menuItem"><img src="'+root+'images/computer_sales_bottom.gif" width="135" height="75" alt="" border="0" usemap="#ComputerSalesMap"></div>'+"\n"+'<map name="ComputerSalesMap">'+"\n"+'<area alt="Servers" href="'+root+'computer_sales.asp" onMouseOver="menuHighlight(4,0)" onMouseOut="menuOff()" coords="0,5,135,21" shape="rect"><area alt="Workstations" href="'+root+'computer_sales.asp" onMouseOver="menuHighlight(4,1)" onMouseOut="menuOff()" coords="0,22,135,38" shape="rect">'+"\n"+'<area alt="Network Equipment" href="'+root+'computer_sales.asp" onMouseOver="menuHighlight(4,2)" onMouseOut="menuOff()" coords="0,39,135,55" shape="rect">'+"\n"+'<area alt="Components" href="'+root+'computer_sales.asp" onMouseOver="menuHighlight(4,3)" onMouseOut="menuOff()" coords="0,56,135,72" shape="rect"></map>'+"\n");

document.writeln("<script language=\"Javascript\">\n document.onLoad=positionMenus();\n</script>\n");
//-->
