<!-- ©webmasta [www.w3coders.com]

function loadPg(oLink,oTarg) {  //alert(oLink +'|'+ oTarg);
	if(oTarg =='self') { location =oLink; return true; }
	if(oTarg =='pop') { openPop(oLink, 'popper'); return true; }
};

var sm0 =new Array(   //static
	 'Residential VOIP Service                |service_residentialVOIP.htm              |self'
	,'Business VOIP Service                   |service_businessVOIP.htm              |self'
	,'Cellular Call Back Service              |service_cellularCallBack.htm           |self'
	,'Long Distance Service                   |service_longDistance.htm                  |self'
);


var sm1 =new Array(
	 'VOIP Features                  |index1_voipFeatures.htm              |pop'
	,'Linksys PAP2                   |index1_linksys-pap2.htm               |pop'
	//,'DID Availability               |index1_DIDavailability.php           |pop'
	,'Softphone                      |index1_softphone.htm                  |self'
	,'Voicemail Login                |https://proxy.canadainternet.net/recordings/index.php                  |pop'
	,'Voicemail FAQ &amp; Follow Me  |index1_voicemail-follow-me.htm    |pop'
	,'e911 Information               |index1_e911-Information.htm           |self'
	,'General FAQs                   |index1_FAQs.htm           |pop'
);


function doSub(mArr) {
	
	var oLoc =location.href;
	var oPage =oLoc.substring(oLoc.lastIndexOf('/')+1); //alert(oPage);

		with(document) { var aLen =sm0.length;  //alert(aLen)
			var oName, oLink, oTarg;
			open();
			write('<div style="margin:0px auto 11px auto;">');
			write('<table border="0" cellspacing="2" cellpadding="0" align="center" style="border:solid #ff8800; border-width:0px 1px 1px">');
			write('<tr>');
			write('<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">');
			//loop
			for(var i=0; i< aLen; ++i) {
				var aArr =sm0[i].split('|');
				oName =aArr[0].replace(/\s+$/, '');
				oLink =aArr[1].replace(/\s+$/, '');
				oTarg =aArr[2];
				var oClass =(oPage ==oLink)? 'bb2':'bb1';
				write('<tr><td align="center" style="border:solid #009900; border-width:0px 1px 1px">');

				write('<input id="a' +i+ '" onClick=\'loadPg("' +oLink+ '", "' +oTarg+ '")\' value="&raquo; ' +oName+ '" style="width:180px;height:18px;" onMouseOver="ovB(this.id)" onMouseOut="ovB(this.id)" type="button" class="' +oClass+ '" onFocus="focLin(this.id)" />');

				write('</td></tr>');
			}
			//endloop
			write('</table></td>');
			write('</tr>');
			write('</table>');
			write('</div>');
			close();
		}



	if(window[mArr]) { var aLen =window[mArr].length;  //alert(aLen)
		with(document) {
			var oName, oLink, oTarg;
			open();
			write('<div style="margin:0px auto 11px auto;">');
			write('<table border="0" cellspacing="2" cellpadding="0" align="center" style="border:solid #ff8800; border-width:1px">');
			write('<tr>');
			write('<td bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">');
			//loop
			for(var i=0; i< aLen; ++i) {
				var aArr =window[mArr][i].split('|');
				oName =aArr[0].replace(/\s+$/, '');
				oLink =aArr[1].replace(/\s+$/, '');
				oTarg =aArr[2];
				var oClass =(oPage ==oLink)? 'bb2':'bb1';
				write('<tr><td align="center" style="border:solid #009900; border-width:0px 1px 1px">');

				write('<input id="b' +i+ '" onClick=\'loadPg("' +oLink+ '", "' +oTarg+ '")\' value="&raquo; ' +oName+ '" style="width:180px;height:18px;" onMouseOver="ovB(this.id)" onMouseOut="ovB(this.id)" type="button" class="' +oClass+ '" onFocus="focLin(this.id)" />');

				write('</td></tr>');
			}
			//endloop
			write('</table></td>');
			write('</tr>');
			write('</table>');
			write('</div>');
			close();
			
		}
	}
	else {
		alert('this submenu (' +mArr+ ') do not exist          ');
	};
};


function getAdmin() {  //hid at bottom of submenu column
	location ='https://64.130.217.1/';   //redirect from cgi later so hide ip
	//return alert('goes to admin login page');
}


 //-->


