/* ---------------------------------------------------------------------------------------------------------------- 
   This new header file is for Alberta Transportation common WEB pages.

     Nov 21, 2007 - Eddie Fung - Change Request CHG000000022659
       Description: Change the header and trailer to match the new GOA WEB page standard.
                    This file is to replace the previous TRANS-TSB-Header.js file
  ----------------------------------------------------------------------------------------------------------------- 
   Changes:
  ----------------------------------------------------------------------------------------------------------------- 
   June 13, 2008 - Eddie Fung - Change Request CHG000000026012
     Ministry name changed and some links changed.
  ----------------------------------------------------------------------------------------------------------------- 
   December 31, 2007 
     Put the document.write in a function so variable can be passed to it to display different WEB page name.
     All html need to call show_header(pageName) to display the header with the passed in page name.
  ----------------------------------------------------------------------------------------------------------------- */

function show_header(pageName) {
   document.write("<!-- --------------------------------------------------------------------------------------------------- -->");
   document.write("<!-- %22659% - replace the header with the new standard.                                                 -->");
   document.write("<!-- --------------------------------------------------------------------------------------------------- -->");
   document.write("<SCRIPT language='JavaScript'>");
   document.write("<!--");
   document.write("function GoRegion(nRegion) {");
   document.write("   parent.location = 'pbRegionList.cfm?REGION=' + nRegion;");
   document.write("}");
   document.write("");
   document.write("function showRegion(cImageSrc) {");
   document.write("  if ( document.all ) {                                             /* IE 4,5,6 */");
   document.write("      document.all['AlbertaMap'].src = cImageSrc;");
   document.write("      }");
   document.write("  else if (document.getElementById) {                               /* NS 6 */");
   document.write("      var myLayer = document.getElementById('AlbertaMap');");
   document.write("      myLayer.src = cImageSrc;");
   document.write("      }");
   document.write("  else if ( document.layers && document.layers['AlbertaMap'] != null ) {  /* NS 4 */");
   document.write("      document.all['AlbertaMap'].src =  cImageSrc;");
   document.write("      }");
   document.write("}");
   document.write("");
   document.write("/* Set the Alberta map back to it's default graphic */");
   document.write("function hideRegions() {");
   document.write("");
   document.write("    if (document.all) {                                               /* IE 4,5,6 */");
   document.write("        document.all['AlbertaMap'].src = 'graphics/alberta.gif';");
   document.write("        }");
   document.write("    else if (document.getElementById) {                               /* NS 6 */");
   document.write("        var myLayer = document.getElementById('AlbertaMap');");
   document.write("        myLayer.src = 'graphics/alberta.gif';");
   document.write("        }");
   document.write("    else if ( document.layers && document.layers['AlbertaMap'] != null ) {  /* NS 4 */");
   document.write("        document.all['AlbertaMap'].src =  'graphics/alberta.gif';");
   document.write("        }");
   document.write("}");
   document.write("-->");
   document.write("</SCRIPT>");
   document.write("");
   document.write("<STYLE type='text/css'>");
   document.write("<!--");
   document.write(".mapOver {");
   document.write("  position: absolute;");
   document.write("  visibility: hidden;");
   document.write("}");
   document.write("-->");
   document.write("</STYLE>");
   document.write("");
   document.write("<BODY>");
   document.write("<div id='pageWrap'>");
   document.write("<div id='page'>");
   document.write("        <div id='accessHelpers'>");
   document.write("                <p id='skipToNav'><a href='#mainNav'>Skip To Navigation</a></p>");
   document.write("                <p id='skipToContent'><a href='#content'>Skip To Content</a></p>");
   document.write("            </div>");
   document.write("            <div id='header'>");
   document.write("                <div id='logo'>");
   document.write("                  <a href='http://www.transportation.alberta.ca/index.htm' title='Link to Alberta TransportationHome Pages'><img src='../../header_footer/images/interface/logo.gif' alt='Government of Alberta'></a>");
   document.write("                </div> ");
   document.write("                <ul id='metaNav'>");
   document.write("                  <li><a href='http://www.transportation.alberta.ca/using_this_site.htm'>Using this Site</a></li>");
   document.write("                  <li><a href='http://www.transportation.alberta.ca/includes/3106.htm'>Contact Us</a></li>");
   document.write("                </ul>");
   document.write("                <form id='searchForm' method='get' action='http://search.gov.ab.ca/query.html' accept-charset='iso-8859-1'  METHOD='Post' NAME='seek1' >");
   document.write("                        <INPUT TYPE='Hidden' NAME='qp' VALUE='' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='col' VALUE='gov' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='charset' VALUE='iso-8859-1' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='ht' VALUE='0' />                       ");
   document.write("                        <INPUT TYPE='Hidden' NAME='qs' VALUE='' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='qc' VALUE='gov' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='pw' VALUE='100%' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='ws' VALUE='0' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='la' VALUE='en' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='qm' VALUE='0' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='st' VALUE='1' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='nh' VALUE='10' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='lk' VALUE='1' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='rf' VALUE='2' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='rq' VALUE='0' />");
   document.write("                        <INPUT TYPE='Hidden' NAME='si' VALUE='0' />");
   document.write("                        <INPUT TYPE=text NAME='qt' MAXLENGTH=1991 VALUE='' class='searchInput' />                    ");
   document.write("                        <button class='searchButton' value=search type='submit'>Search</button>");
   document.write("                </form>");
   document.write("            </div> <!-- close header -->");
   document.write("");
   document.write("<!-- Breadcrumb -->");
   document.write("<!-- --------------------------------------------------------------------------------------------------- -->");
   document.write("<!-- %22659% - replace the breadcrumb to have the GOA ministry links, and remove Search and Flash.    -->");
   document.write("<!-- %26012% - simplify the bread crumb.                                                              -->");
   document.write("<!-- --------------------------------------------------------------------------------------------------- -->");
   document.write("<div id='breadcrumb'>");
   document.write("    <p align='left'><a href='http://transportation.alberta.ca/index.htm'>Home</a>&nbsp;&gt; " + pageName + "</p>");
   document.write("</div>");
   document.write("");
   document.write("<div id='mainNav'>");
   document.write("  <ul>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/DriversVehicles.htm'>Drivers &amp; <br />Vehicle</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/3.htm'>Commercial<br />Transportation</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/4.htm'>Roads &amp; <br />Highways</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/6.htm'>Capital Plan <br />&amp; Grants</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/7.htm'>Tendering &amp; <br />Contracting</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/8.htm'>Technical<br />Resources</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/2.htm'>Policies &amp; <br />Legislation</a></li>");
   document.write("    <li><a href='http://www.transportation.alberta.ca/608.htm'>Maps <br><br> </a></li>");
   document.write("  </ul>");
   document.write("</div>");
   document.write("<!-- --------------------------------------------------------------------------------------------------- -->");
   document.write("<!-- %22659% - end.                                                                                      -->");
   document.write("<!-- --------------------------------------------------------------------------------------------------- -->");
   document.write("<!-- end breadcrumb -->");
}

