/* ---------------------------------------------------------------------------------------------------------------- 
   This new footer file is for Alberta Infrastructure and 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-Footer-yyyy.js file

   It is first used by the VIS - Vehicle Inspection Station Search system in:
        server cnn331zone2.gov.ab.ca.,  folder wwwdb\inftra\vis\production and wwwinftra\vis\production 

   Changes:
   December 31, 2007 
     Add the dynamic copyright end year so it will change on Jan 1 every year.
   Changes CHG000000026532:
   August 8, 2008  
     Changed all links to the new links - all links referenced by the http://www.transportation.alberta.ca/3.htm web page.
            
  ---------------------------------------------------------------------------------------------------------------- */


/* --------------------------------------------------------- */
/* get the rightmost characters from the date function...    */
/* --------------------------------------------------------- */
function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, iLen - n);
    }
}

/* ---------------------- */
/* get current date...    */
/* ---------------------- */
var curdate=new Date();

document.write("<!-- Footer -->");
document.write("  <!-- --------------------------------------------------------------------------------------------------- -->");
document.write("  <!-- %22659% - 5. replace the page footer.                                                               -->");
document.write("  <!-- --------------------------------------------------------------------------------------------------- -->");
document.write("   <div id='footer'>");
document.write("      <div id='footerLogo'>");
document.write("         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp");
document.write("         <a href='http://alberta.ca/home/'><img src='images/interface/logoFooter.gif' alt='Alberta Government' />&nbsp;&nbsp;&nbsp</a>");
document.write("      </div>");
document.write("      <div id='footerMenu' align='left'>");
document.write("         <ul id='goaLinks'>");
document.write("           <li><a href='http://alberta.ca/home/index.cfm'>Home</a></li>");
document.write("           <li><a href='http://alberta.ca/home/government.cfm'>Government</a></li>");
document.write("           <li><a href='http://alberta.ca/home/search.cfm'>Search</a></li>");
document.write("           <li><a href='http://alberta.ca/home/accessibility.cfm'>Accessibility</a></li>");
document.write("           <li><a href='http://alberta.ca/home/includes/sitemap.cfm'>Site Map</a></li>");
document.write("         </ul>");
document.write("         <ul id='siteLinks'>");
document.write("           <li><a href='http://www.gov.ab.ca/home/using_this_site.cfm'>Using this Site</a></li>");
document.write("           <li><a href='http://alberta.ca/home/privacy.cfm'>Privacy</a></li>");
document.write("           <li><a href='http://alberta.ca/home/contact.cfm'>Contact Us</a></li>");
document.write("         </ul>");
/* ------------------------------------------------------------------------ */
/* display copyright end year by calling the Right() function...            */
/* ------------------------------------------------------------------------ */
document.write("         <p id='copyright'>&copy; 1995 - " + Right(curdate,4) + " Government of Alberta <a href='http://alberta.ca/home/includes/copyright.cfm'>Copyright and Disclaimer</a></p>");
document.write("      </div><!-- close footerMenu -->");
document.write("   </div><!-- close footer -->");
document.write("  <!-- --------------------------------------------------------------------------------------------------- -->");
document.write("  <!-- %22659% - 5. end.                                                                                   -->");
document.write("  <!-- --------------------------------------------------------------------------------------------------- -->");
