var width = 212;
var height = 18;
var bgColor = "";



function init() 
{
    var trueimg=img_base_path+"true.gif";
    var falseimg=img_base_path+"false.gif";
	
	var l = new List(true, width, height, bgColor, trueimg, falseimg);
    //l.setFont('<font face="Verdana, Arial, Helvetica, sans-serif" color="#000099" size="1"><b>','</b></font>');

    l.SetCSSclass('menus');	
	
	var net = new List(catLook("net"), width, height, bgColor, trueimg, falseimg);
	net.onexpand = handleClickEvent;
	net.setIndent(0);
	net.addItem('<a href="'+link_base_path+'networking.htm#networking" class="menuitems">Networking (LAN/MAN/WAN)</a>');
	net.addItem('<a href="'+link_base_path+'networking.htm#facility" class="menuitems">Facility Wiring (Network &amp; Internet)</a>');
	net.addItem('<a href="'+link_base_path+'networking.htm#wireless" class="menuitems">Wireless Networking</a>');
	net.addItem('<a href="'+link_base_path+'networking.htm#remote" class="menuitems">Remote Backup Solutions</a>');
	net.addItem('<a href="'+link_base_path+'networking.htm#vpn" class="menuitems">VPN Solutions</a>');
	net.addItem('<a href="'+link_base_path+'networking.htm#virus" class="menuitems">Virus Protection</a>');
	net.addItem('<a href="'+link_base_path+'networking.htm#intrusion" class="menuitems">Intrusion Detection &amp; Firewalling</a>');
	l.addList(net, 'Networking Solutions');

	var int_srv = new List(catLook("int_srv"), width, height, bgColor, trueimg, falseimg);
	int_srv.onexpand = handleClickEvent;
	int_srv.setIndent(0);
	int_srv.addItem('<a href="'+link_base_path+'intserv.htm#hosting" class="menuitems">Web Hosting</a>');
	int_srv.addItem('<a href="'+link_base_path+'intserv.htm#design" class="menuitems">Web Design &amp; Site Motifs</a>');
	int_srv.addItem('<a href="'+link_base_path+'intserv.htm#ecommerce" class="menuitems"> E-Commerce Site Programming</a>');
	int_srv.addItem('<a href="'+link_base_path+'intserv.htm#email" class="menuitems">E-mail Hosting &amp; Services</a>');
	int_srv.addItem('<a href="'+link_base_path+'intserv.htm#colocation" class="menuitems">Server Co-Location</a>');
	l.addList(int_srv, 'Internet Services');

	var con = new List(catLook("con"), width, height, bgColor, trueimg, falseimg);
	con.onexpand = handleClickEvent;
	con.setIndent(20);
    con.SetCSSclass('submenus');	
    var con_int= new List(catLook("con_int"), width, height, bgColor, trueimg, falseimg);
	con_int.onexpand = handleClickEvent;
	con_int.setIndent(10);
	con_int.addItem('<a href="'+link_base_path+'intconn.htm#t1t3" class="menuitems">Fractional T1, T1 &amp; T3 Lines</a>');
	con_int.addItem('<a href="'+link_base_path+'intconn.htm#dsl" class="menuitems">DSL Service</a>');
	con_int.addItem('<a href="'+link_base_path+'orderdsl.php" class="menuitems"><font color="red">Order DSL Service Online</font></a>');
	con_int.addItem('<a href="'+link_base_path+'intconn.htm#dialup" class="menuitems">Dial-Up Service</a>');
    con.addList(con_int, "Internet");
    var con_lwc= new List(catLook("con_lwc"), width, height, bgColor, trueimg, falseimg);
	con_lwc.onexpand = handleClickEvent;
	con_lwc.setIndent(10);	
	con_lwc.addItem('<a href="'+link_base_path+'lwconn.htm#t1t3" class="menuitems">Fractional T1, T1 &amp; T3 Lines</a>');
	con_lwc.addItem('<a href="'+link_base_path+'lwconn.htm#broadwan" class="menuitems">BroadWan&#153;</a>');
	con_lwc.addItem('<a href="'+link_base_path+'lwconn.htm#mnf" class="menuitems">Managed Network Facilities</a>');
    con.addList(con_lwc, "LAN &amp; WAN Connectivity");

	l.addList(con, "Connectivity");
	
	var tel = new List(catLook("tel"), width, height, bgColor, trueimg, falseimg);
	tel.onexpand = handleClickEvent;
	tel.setIndent(0);
	tel.addItem('<a href="'+link_base_path+'telephony.htm#digital" class="menuitems">Digital Telephony Solutions</a>');
	l.addList(tel, "Telephony");

	var cons = new List(catLook("cons"), width, height, bgColor, trueimg, falseimg);
	cons.onexpand = handleClickEvent;
	cons.setIndent(0);
	cons.addItem('<a href="'+link_base_path+'itconsulting.htm#transitioning" class="menuitems">Transitioning from Legacy Systems</a');
	cons.addItem('<a href="'+link_base_path+'itconsulting.htm#mips" class="menuitems">Microsoft/Intel Platform Specialists</a>');

    cons.addItem('<a href="'+link_base_path+'itconsulting.htm#business" class="menuitems">Business Solutions</a>');
	cons.addItem('<a href="'+link_base_path+'itconsulting.htm#sa" class="menuitems">System Analysis</a>');
	cons.addItem('<a href="'+link_base_path+'itconsulting.htm#bpr" class="menuitems">Business Process Re-Engineering</a>');
	cons.addItem('<a href="'+link_base_path+'itconsulting.htm#sap" class="menuitems">Specialized Application Programming</a>');				
	l.addList(cons, "IT Consulting");
	
	l.build(2, 90);

}

function catLook(listid){
  if (!isArray(xpand_cat)){
    if (xpand_cat==listid){
      return true;
    }else{
	  return false;
    }
  }else{
    for (i=0; i<xpand_cat.length; i++){
	  if (xpand_cat[i]==listid){

	    return true;
	  }
	}
	return false;
  }	
}


function isArray(myVariable){
  if (myVariable.constructor.toString().substring(10,15)=="Array" )
    return true;
  else
    return false;
}

function wrtMenu(){
  var trueimg=img_base_path+"true.gif";
  var falseimg=img_base_path+"false.gif";
  var spaceimg=img_base_path+"spacer.gif";

  document.write ('<table border="0" cellspacing="0" cellpadding="2" width="'+width+'">');
  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm" class="menus">Networking Solutions</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#networking" class="menuitems">Networking (LAN/MAN/WAN)</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#facility" class="menuitems">Facility Wiring (Network &amp; Internet)</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#wireless" class="menuitems">Wireless Networking</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#remote" class="menuitems">Remote Solutions</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#vpn" class="menuitems">VPN Solutions</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#virus" class="menuitems">Virus Protection</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'networking.htm#intrusion" class="menuitems">Intrusion Detection &amp; Firewalling</a></td></tr>');

  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td nowrap colspan="2"><a href="'+link_base_path+'intserv.htm" class="menus">Internet Services</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'intserv.htm#hosting" class="menuitems">Web Hosting</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'intserv.htm#design" class="menuitems">Web Design &amp; Site Motifs</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'intserv.htm#ecommerce" class="menuitems">E-Commerce Site Programming</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'intserv.htm#email" class="menuitems">E-mail Hosting &amp; Services</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'intserv.htm#colocation" class="menuitems">Server Co-Location</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td nowrap colspan="2"><a href="'+link_base_path+'connectivity.htm" class="menus">Connectivity</a></td></tr>');

  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'intconn.htm" class="submenus">Internet</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'intconn.htm#t1t3" class="menuitems">Fractional T1, T1 &amp; T3 Lines</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'intconn.htm#dsl" class="menuitems">DSL Service</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'orderdsl.php" class="menuitems"><font color="red">Order DSL Service Online</font></a></td></tr>');

  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'intconn.htm#dialup" class="menuitems">Dial-Up Service</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'lwconn.htm" class="submenus">LAN &amp; WAN Connectivity</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="20" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'lwconn.htm#t1t3" class="menuitems">Fractional T1, T1 &amp; T3 Lines</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="20" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'lwconn.htm#broadwan" class="menuitems">BroadWan&#153;</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="20" height="1"></td><td><img src='+spaceimg+' width="20" height="1"></td><td width="100%"><a href="'+link_base_path+'lwconn.htm#mnf" class="menuitems">Managed Network Facilities</a></td></tr>');

  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td nowrap colspan="2"><a href="'+link_base_path+'telephony.htm" class="menus">Telephony</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'telephony.htm#digital" class="menuitems">Digital Telephony Solutions</a></td></tr>');

  document.write ('<tr><td nowrap><img src='+falseimg+' width="12" height="12" border="0" hspace="2"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm" class="menus">IT Consulting</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm#transitioning" class="menuitems">Transitioning from Legacy Systems</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm#mips" class="menuitems">Microsoft/Intel Platform Specialists</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm#business" class="menuitems">Business Solutions</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm#sa" class="menuitems">System Analysis</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm#bpr" class="menuitems">Business Process Re-Engineering</a></td></tr>');
  document.write ('<tr><td nowrap><img src='+spaceimg+' width="1" height="1"></td><td nowrap colspan="2"><a href="'+link_base_path+'itconsulting.htm#sap" class="menuitems">Specialized Application Programming</a></td></tr>');  
  document.write ('</table>');
}
