var top_nav = new Array();

var company = new Array("Disciplines","disciplines.htm","Contact Info.","contact_info.htm");

var left_arr = new Array();
left_arr[0] = new Array("About Us","/index.htm","Contact Info","/pages/main/contact_info.htm","Clients","/pages/main/clients.htm","Technologies Used","/pages/main/technology.htm",
"Methodology","/pages/main/methodology.htm","Architecture","/pages/main/architecture.htm");
left_arr[1] = new Array("Software Solutions","/pages/products_services/software.htm","Site Management","/pages/products_services/site_management.htm",
"WebSite Hosting","/pages/products_services/web_hosting.htm","Application Hosting","/pages/products_services/application_hosting.htm","Consulting Services","/pages/products_services/consulting.htm");
left_arr[2] = new Array("Application Architecture","/pages/knowledge/aa.htm","Java","/pages/knowledge/java.htm","Perl","/pages/knowledge/perl.htm",
"PHP","/pages/knowledge/php.htm","JavaScript","/pages/knowledge/javascript.htm","HTML/DHTML","/pages/knowledge/html_dhtml.htm","XML","/pages/knowledge/xml.htm","CSS/Stylesheets","/pages/knowledge/css.htm",
"Oracle","/pages/knowledge/oracle.htm","MySQL","/pages/knowledge/mysql.htm","Unix/Linux Admin","/pages/knowledge/unix.htm","Apache Admin","/pages/knowledge/apache.htm","Web Trix","/pages/knowledge/trix.htm");
/*
left_arr[3] = new Array("Account Information","/php/site/account_access.php?action=view_info","View Statement","/php/site/account_access.php?action=view_statement","Pay Invoice","/php/site/account_access.php?action=pay_invoice");
*/
left_arr[3] = new Array();
left_arr[4] = new Array("Interactive<br>Support System","/pages/customer_service/iss.htm","Online Support","/pages/customer_service/support_form.htm","FAQ/Troubleshooting","/pages/customer_service/faq.htm","Tutorials","/pages/customer_service/tutorials.htm");


var top_arr = new Array("Company Info.","/index.htm","Products & Services","/ps.htm","Access Your Account","https://www.netitects.com/netitects/login.jsp","Customer Service","/cs.htm","Knowledge","/kr.htm");

function make_top() {
        var page = "<table width='80%' align='left' cellpadding='10' cellspacing='10'>"+
        "<tr><td width='20%' nowrap class='logo_top'><a href='/index.htm'>"+
        "<span class='logo_top'>:// <b>net</b>itects inc. /</span></a><br><span class='mission'></span></td>"+
        "<td width='80%' class='top'><table cellspacing='5' cellpadding='10' border='0'><tr>";
        var i =0;
        while(i<top_arr.length) {
                page += "<td class='left_nav' nowrap><a href='"+top_arr[i+1]+"'>"+top_arr[i]+"</a></td>";
                i = i+2;
        }
        return page += "</tr></table></td></tr>";
}


function open_menu(m) {
        var i=0;
	var out = "<tr><td class='left'>"+
        "<table cellpadding='10' cellspacing='5' align='center' border='0' width='100%'>";
        while(i<left_arr[m].length) {
                out += "<tr><td class='left_nav'><a href="+left_arr[m][i+1]+">"+left_arr[m][i]+"</a></td></tr>";
                i = i+2;
        }
        return out += "</table></td><td class='main' width='70%'>";
}

function wp(m) {
	document.open();
	document.write(make_top()+open_menu(m));
	document.close();
}

function wf(m) {
        document.open();
        document.write("<p class='ctr'><table align='center' width='100%'><tr>"+
	"<td height='250' width='100%' align='center' valign='bottom'>"+
        "<span class='foot_small'>&copy;2007 netitects inc.</span></td></tr></table></p></td></tr></table></td></tr></table>");
        document.close();
}


function pop(url,h,w) {
	if (document.all) {
		x = screen.width;
		y = screen.height;
	} else if(document.layers) {
		x = window.outerWidth;
		y = window.outerHeight;
	} else {
		x = 640;
	 	y = 480;
	}
	wid = (x * w);
 	hgt = (y * h);
	xOffset = (x - wid)/2;
	yOffset = (y - hgt)/2;
	opts = "alwaysRaised=true,scrollbars=yes,directories=no,menubar=no,resizable=yes,location=no,"+
	"width="+wid+",height="+hgt+",screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset;
	window.open(url,'',opts);
}



