
function writeSubNav(which)
{
    var html_str = '<table cellpadding="0" cellspacing="0" width="100%" border="0" class="mainWidth" id="navbarsub" align="center"><form><tbody><tr>'
		+ '<td width="12%" valign="middle" align="right" id="searchTxt" nowrap></td>'

    if (which=='home')
        html_str+= '<td align="center" class=foldertabs valign="middle">Welcome to AIRPRO Online Website</td>';

    if (which=='history')
        html_str+= '<td align="center" class=foldertabs valign="middle">Our History&nbsp;&nbsp; | &nbsp;&nbsp;<a href="management.html" class="navSub">Management Team</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="capabilities.html" class="navSub">Our Capabilities</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="employment.html" class="navSub">Employment</a></td>';

    if (which=='employment')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="about.html">Our History</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="management.html" class="navSub">Management Team</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="capabilities.html" class="navSub">Our Capabilities</a>&nbsp;&nbsp; | &nbsp;&nbsp;Employment</td>';

    if (which=='management')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="about.html">Our History</a>&nbsp;&nbsp; | &nbsp;&nbsp;Management Team&nbsp;&nbsp; | &nbsp;&nbsp;<a href="capabilities.html" class="navSub">Our Capabilities</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="employment.html" class="navSub">Employment</a></td>';

    if (which=='capabilities')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="about.html">Our History</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="management.html">Our Management</a>&nbsp;&nbsp; | &nbsp;&nbsp;Our Capabilities&nbsp;&nbsp; | &nbsp;&nbsp;<a href="employment.html" class="navSub">Employment</a></td>';

    if (which=='products')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="heavy.html" class="navSub">Heavy Duty</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="illustrated.html" class="navSub">Illustrated Catalog</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="automotive.html" class="navSub">Automotive</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="ecowind.html" class="navSub">Ecowind</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="mounts.html" class="navSub">Mount & Drive Kits</a></td>';

    if (which=='illustrated')
        html_str+= '<td align="center" class=foldertabs valign="middle">Illustrated Catalog&nbsp;&nbsp; | &nbsp;&nbsp;<a href="automotive.html" class="navSub">Automotive</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="ecowind.html" class="navSub">Ecowind</a></td>';

	if (which=='heavy')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="heavy.html" class="navSub">Heavy Duty</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="automotive.html" class="navSub">Automotive</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="illustrated.html" class="navSub">Illustrated Catalog</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="ecowind.html" class="navSub">Ecowind</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="mounts.html" class="navSub">Mount & Drive Kits</a></td>';

    if (which=='automotive')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="heavy.html" class="navSub">Heavy Duty</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="automotive.html" class="navSub">Automotive</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="illustrated.html" class="navSub">Illustrated Catalog</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="ecowind.html" class="navSub">Ecowind</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="mounts.html" class="navSub">Mount & Drive Kits</a></td>';

    if (which=='ecowind')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="heavy.html" class="navSub">Heavy Duty</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="automotive.html" class="navSub">Automotive</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="illustrated.html" class="navSub">Illustrated Catalog</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="ecowind.html" class="navSub">Ecowind</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="mounts.html" class="navSub">Mount & Drive Kits</a></td>';

	if (which=='sales')
        html_str+= '<td align="center" class=foldertabs valign="middle">FORMS : <a href="info_form.cfm" class="navSub">Need Information?</a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href="catalog_form.cfm" class="navSub">Catalog Request</a></td>';

    if (which=='support')
        html_str+= '<td align="center" class=foldertabs valign="middle">Technical Help</td>';

    if (which=='contact')
        html_str+= '<td align="center" class=foldertabs valign="middle"><a href="contact.html#hdq" class="navSub">Headquarters</a>&nbsp; | &nbsp;<a href="contact.html#email" class="navSub">Email Addresses</a>&nbsp; | &nbsp;<a href="feedback_form.cfm" class="navSub">Feedback</a></td>';

   else if (which=='')
        html_str+= '<tr><td></td>';
				 
	html_str+= '</tr></tbody></form></table>';			 

    document.write(html_str);
}


			
			


