// HaulMark JavaScript

hideMenu = null;  // Make global so both functions know about it

function showme(menu) {

 // Clear out setTimeout command which would cause layer to be hidden then make layer visible
 clearTimeout(hideMenu);  
 command = "document.all." + menu + ".style.visibility='visible';"
 eval(command);
}

function hideme(menu) {

 // Hide layer in 1 second (give time for showme() to be called as you go from one menu link to the other)  
 command = "document.all." + menu + ".style.visibility='hidden'"  
 hideMenu = setTimeout(command,"100");
}

function hideall() {
  document.all.HomeMenu.style.visibility='hidden';
  document.all.DriversMenu.style.visibility='hidden';
  document.all.TruckingMenu.style.visibility='hidden';
  document.all.BrokerageMenu.style.visibility='hidden';
  document.all.AgentsMenu.style.visibility='hidden';
  
}

function WriteContactInfo() {
 document.writeln('	    <table class="contactinfo" id="contactinfotable" border="0" cellpadding="0" cellspacing="0" width="100%">');
 document.writeln('          <tr> ');
 document.writeln('            <td class="head4" width=470 rowspan="3" align="left"> Haulmark Services,');
 document.writeln('              Inc. provides nationwide service on all types shipments. &nbsp;We ');
 document.writeln('              are a single source provider of transportation needs ranging from ');
 document.writeln('              refrigerated to flat bed service. </td>');
 document.writeln('            <td><span class="head3">&nbsp;&nbsp;&nbsp;&nbsp;Address</span></td>');
 document.writeln('            <td><span class="head3">Phone</span> 800-479-8197</td>');
 document.writeln('          </tr>');
 document.writeln('          <tr> ');
 document.writeln('            <td>&nbsp;&nbsp;&nbsp;&nbsp;P.O. Box 840718</td>');
 document.writeln('           <td><span class="head3">Fax</span> 281-345-0288</td>');
 document.writeln('         </tr>');
 document.writeln('          <tr> ');
 document.writeln('            <td>&nbsp;&nbsp;&nbsp;&nbsp;Houston, TX 77084 &nbsp;&nbsp;</td>');
 document.writeln('            <td nowrap><span class="head3">Email</span> <a href="mailto:Mark@HaulmarkServices.com?subject=Information Request from Website">Haulmark ');
 document.writeln('              Services</a></td>');
 document.writeln('          </tr>');
 document.writeln('        </table>');
}

function ShowContactInfo() {
 document.all.contactinfotable.style.visibility='visible';
 document.all.contactinfotable.style.display='block';
}

function HideContactInfo() {
 document.all.contactinfotable.style.display='none';
 document.all.contactinfotable.style.visibility='hidden';
}
