function openWindow(url) {
  features = 'toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=790,height=440';
  window.open(url,'ppWindow',features);
}

document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td colspan="2">');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr><td ><img src="images/blank.gif" width="64" height="1" border="0" alt=""></td>');
//document.write('<td><table cellspacing="0" cellpadding="0" border="0">');
document.write('<td><a href="http://www.telemessage.com" target="_blank"><img src="'+pth+'images/banner.jpg"  border="0" alt=""></a></td></tr>');
document.write('<tr><td ><a href="http://www.telemessage.com" target="_blank"><img src="images/blank.gif"  border="0" alt="" width="1" height="10"></a></td></tr>');
//document.write('<td> <img src="images/banner_r.jpg" width="368" height="69" border="0" alt=""></td></tr>');
//document.write('<tr> <td colspan="2"><img src="images/banner_b.gif" width="576" height="21" border="0" alt=""></td>');
document.write(' </table></td> </tr>');
document.write('<tr><td rowspan="2"><img src="'+pth+'images/blank.gif" width="64" height="40" border="0" alt=""></td>');//menu table
document.write('<td>');
document.write('<table width="670" border="0" cellspacing="0" cellpadding="0" align="center">');

document.write('<tr align="center">'); 

//TeleMessage Messaging Gateway section
document.write('<td width="6" class=');
(index==1)?  document.write('"lcfa">') :  document.write('"lcfi">')
document.write('<img src="'+pth+'images/lc.gif" width="6" height="6" border="0"></td>');

(index == 1) ? 	document.write('<td class="activemenubar">TeleMessage Messaging Gateway</td>') :	document.write('<td class="inactivemenubar"><a href="'+pth+'index.html" class="inactivemenubar">TeleMessage Messaging Gateway</a></td>');

document.write('<td width="6" class=');
(index==1)?  document.write('"rca">') : document.write('"rci">')
document.write('<img src="'+pth+'images/rc.gif" width="6" height="6" border="0"></td>');


//Documentation section
document.write('<td width="6" class=');
(index==2)?  document.write('"lcna">') :  document.write('"lcni">')
document.write('<img src="'+pth+'images/lc.gif" width="6" height="6" border="0"></td>');

(index == 2) ? 	document.write('<td class="activemenubar">Documentation</td>') :	document.write('<td class="inactivemenubar"><a href="'+pth+'system_overview.html" class="inactivemenubar">Documentation</a></td>');

document.write('<td width="6" class=');
(index==2)?  document.write('"rca">') : document.write('"rci">')
document.write('<img src="'+pth+'images/rc.gif" width="6" height="6" border="0"></td>');

//Interfaces section
document.write('<td width="6" class=');
(index==3)?  document.write('"lcna">') :  document.write('"lcni">')
document.write('<img src="'+pth+'images/lc.gif" width="6" height="6" border="0"></td>');

(index == 3) ? 	document.write('<td class="activemenubar">Purchase</td>') :	document.write('<td class="inactivemenubar"><a href="javascript:openWindow(\'https://secure.telemessage.com/jsp/purchase/purchaseCredits.jsp\')"  class="inactivemenubar">Purchase</a></td>');

document.write('<td width="6" class=');
(index==3)?  document.write('"rca">') : document.write('"rci">')
document.write('<img src="'+pth+'images/rc.gif" width="6" height="6" border="0"></td>');


//Prices section
document.write('<td width="6" class=');
(index==4)?  document.write('"lcna">') :  document.write('"lcni">')
document.write('<img src="'+pth+'images/lc.gif" width="6" height="6" border="0"></td>');

(index == 4) ? 	document.write('<td class="activemenubar">Prices</td>') :	document.write('<td class="inactivemenubar"><a href="'+pth+'pricing.jsp" class="inactivemenubar">Prices</a></td>');

document.write('<td width="6" class=');
(index==4)?  document.write('"rca">') : document.write('"rci">')
document.write('<img src="'+pth+'images/rc.gif" width="6" height="6" border="0"></td>');

//Sign up section
document.write('<td width="6" class=');
(index==5)?  document.write('"lcna">') :  document.write('"lcni">')
document.write('<img src="'+pth+'images/lc.gif" width="6" height="6" border="0"></td>');

(index == 5) ? 	document.write('<td class="activemenubar">Sign up</td>') :	document.write('<td class="inactivemenubar"><a href="'+pth+'signUpForm.jsp" class="inactivemenubar">Sign up</a></td>');

document.write('<td width="6" class=');
(index==5)?  document.write('"rca">') : document.write('"rci">')
document.write('<img src="'+pth+'images/rc.gif" width="6" height="6" border="0"></td>');




//Help section
document.write('<td width="6" class=');
(index==6)?  document.write('"lcna">') :  document.write('"lcni">')
document.write('<img src="'+pth+'images/lc.gif" width="6" height="6" border="0"></td>');

(index == 6) ? 	document.write('<td class="activemenubar">Help</td>') :	document.write('<td class="inactivemenubar"><a href="'+pth+'support.jsp" class="inactivemenubar">Help</a></td>');

document.write('<td width="6" class=');
(index==6)?  document.write('"rca">') : document.write('"rci">')
document.write('<img src="'+pth+'images/rc.gif" width="6" height="6" border="0"></td>');





//sub menu
document.write('</tr></table></td></tr>');
document.write('<tr><td >');
document.write('<table width="670" cellspacing="0" cellpadding="0" align="center" class="redborder2">');
document.write('<tr align="center">'); 
if (index == 1){
	document.write('<td class="navbar_home"><a href="'+pth+'index.html" class="navbar">Home</a></td>');
	document.write('<td class="navbar"><a href="'+pth+'service_overview.html" class="navbar">Service Overview</a></td>');
	document.write('<td class="navbar"><a href="'+pth+'sample_applications.html" class="navbar">Sample Applications</a></td>');
	document.write('<td class="navbar"><a href="javascript:openWindow(\'http://www.telemessage.com/company.html\')" class="navbar">About Us</a></td>');
	
}else if (index==2){
	document.write('<td class="navbar_home"><a href="'+pth+'system_overview.html" class="navbar">System Overview</a></td>');
	document.write('<td class="navbar"><a href="'+pth+'codeSamples.html" class="navbar">Code Samples</a></td>');
	document.write('<td class="navbar"><a href="'+pth+'download_multialert.html" class="navbar">Download</a></td>');

}else if (index==3){
	document.write('<td class="navbar_home"><a href="#" class="navbar">&nbsp;</a></td>');

}else if (index==4){
	document.write('<td class="navbar_home"><a href="'+pth+'pricing.jsp" class="navbar">Prices</a></td>');
	document.write('<td class="navbar"><a href="'+pth+'smsCoverage.jsp" class="navbar">Coverage</a></td>');

}else if (index==5){
	document.write('<td class="navbar_home"><a href="#" class="navbar">&nbsp;</a></td>');

}else if (index==6){
	document.write('<td class="navbar_home"><a href="#" class="navbar">&nbsp;</a></td>');
}
document.write('</tr>');
document.write('</table>');
document.write('<table border="0" width="670" cellspacing="0" cellpadding="0" align="center">');
 document.write('<tr>'); 
    document.write('<td><img src="'+pth+'images/bebebe.gif" width="670" height="3" border="0"></td>');
  document.write('</tr></table>');
document.write('</td> </tr></table>');
