<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  require_once "/var/www/vhosts/wilmot.ca/httpdocs/cmsAdmin/lib/viewer_functions.php";

  list($individual_contactsRecords, $individual_contactsMetaData) = getRecords(array(
    'tableName'   => 'individual_contacts',
  ));

  list($contacts_departmentRecords, $contacts_departmentMetaData) = getRecords(array(
    'tableName'   => 'contacts_department',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $contacts_departmentRecord = @$contacts_departmentRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$contacts_departmentRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

  list($depts_introductionRecords, $depts_introductionMetaData) = getRecords(array(
    'tableName'   => 'depts_introduction',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $depts_introductionRecord = @$depts_introductionRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$depts_introductionRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

  // load records
  list($depts_castle_kilbrideRecords, $depts_castle_kilbrideMetaData) = getRecords(array(
    'tableName'   => 'depts_castle_kilbride',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $depts_castle_kilbrideRecord = @$depts_castle_kilbrideRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$depts_castle_kilbrideRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

  // load records
  list($depts_departmentRecords, $depts_departmentMetaData) = getRecords(array(
    'tableName'   => 'depts_department',
  ));

  // load records
  list($castle_kilbrideRecords, $castle_kilbrideMetaData) = getRecords(array(
    'tableName'   => 'castle_kilbride',
  ));

  // load records
  list($depts_castle_kilbride_subnavRecords, $depts_castle_kilbride_subnavMetaData) = getRecords(array(
    'tableName'   => 'depts_castle_kilbride_subnav',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $depts_castle_kilbride_subnavRecord = @$depts_castle_kilbride_subnavRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$depts_castle_kilbride_subnavRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

  list($index_public_worksRecords, $index_public_worksMetaData) = getRecords(array(
    'tableName'   => 'index_public_works',
  ));

  list($contacts_side_panelRecords, $contacts_side_panelMetaData) = getRecords(array(
    'tableName'   => 'contacts_side_panel',
  ));
  $contacts_side_panelRecord = @$contacts_side_panelRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$contacts_side_panelRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

  list($blue_buttonsRecords, $blue_buttonsMetaData) = getRecords(array(
    'tableName'   => 'blue_buttons',
  ));


  list($blue_buttons_below_shareRecords, $blue_buttons_below_shareMetaData) = getRecords(array(
    'tableName'   => 'blue_buttons_below_share',
  ));

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head><meta name="robots" content="noindex,nofollow">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="google-site-verification" CONTENT="2CBIxlf625GPtgWnfAv4byaDCH1wHXicIcZZJDbi8nM" />
<TITLE>Public Works Automatic Index</TITLE>
<LINK HREF="styles2010.css" REL="stylesheet" TYPE="text/css">
<SCRIPT TYPE="text/javascript">
<!--



<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Home_over = newImage("images/Home-over.gif");
		Services_over = newImage("images/Services-over.gif");
		Departments_over = newImage("images/Departments-over.gif");
		News_over = newImage("images/News-over.gif");
		About_over = newImage("images/About-over.gif");
		Links_over = newImage("images/Links-over.gif");
		Contact_over = newImage("images/Contact-over.gif");
		preloadFlag = true;
	}
}

// -->

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</SCRIPT>

<SCRIPT TYPE="text/javascript" SRC="textsizer.js">

/***********************************************
* Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights reserved.
* Coded by: Taewook Kang (http://www.txkang.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

</SCRIPT>
 <link rel="stylesheet" type="text/css" href="anylinkmenu.css" />

<script type="text/javascript" src="menucontents.js"></script>

<script type="text/javascript" src="anylinkmenu.js">

/***********************************************
* AnyLink JS Drop Down Menu v2.0- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Project Page at http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm for full source code
***********************************************/

</script>

<script type="text/javascript">
<!--
//anylinkmenu.init("menu_anchors_class") //Pass in the CSS class of anchor links (that contain a sub menu)
anylinkmenu.init("menuanchorclass")

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
 </HEAD>

<BODY onload="MM_preloadImages('images-nav/Home-over.gif','images-nav/Services-over.gif','images-nav/Departments-over.gif','images-nav/News-over.gif','images-nav/About-over.gif','images-nav/Links-over.gif','images-nav/Contact-over.gif')">
<TABLE  ID="Main Content" WIDTH="962" BORDER="0" ALIGN="CENTER" CELLPADDING="0" CELLSPACING="0" >
  
  <TR>
    <TD COLSPAN="5"><TABLE  ID="Main Content" border="0" cellpadding="0" cellspacing="0" >
      <tr>
        <td rowspan="3"><a href="index.php"><img src="images2010/logo-wilmot.png" alt="Building a Sure Foundation" width="143" height="138" border="0" /></a></td>
        <td><img src="images2010/single-pixel.gif" width="18" height="32" /></td>
        <td class="tdRightAlign"><!-- #BeginLibraryItem "/Library/Google Search.lbi" --><!-- Atomz HTML for Search -->
<form method="get" action="http://search.atomz.com/search/">
<input type="hidden" name="sp_a" value="sp10043f50" />
<input  class="inputSearchField" size="31" name="sp_q" />
<input type="submit" value="Search"  class="inputButton" />
<input type="hidden" name="sp_p" value="all" />
<input type="hidden" name="sp_f" value="ISO-8859-1" />
</form><!-- #EndLibraryItem --><script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en"></script></td>
      </tr>
      <tr>
        <td><img src="images2010/single-pixel.gif" width="18" height="85" /></td>
        <td class="tdMastheadHeadingCell2"><a href="index.php"><img src="images2010/masthead-heading.png" alt="The Corporation of the Township of Wilmot" width="802" height="42" border="0" /></a></td>
      </tr>
      <tr>
        <td><img src="images2010/single-pixel.gif" width="18" height="31" /></td>
        <td class="tdNavigationGlobalOuter"><TABLE  ID="Main Content"  width="801" height="31" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><a href="index.php" onmouseover="MM_swapImage('Home','','images-nav/Home-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/Home.gif" alt="" name="Home" width="61" height="31" border="0" id="Home" /></a></td>
              <td><img src="images-nav/Divider.gif" width="35" height="31" alt="" /></td>
              <td><a href="council.php" class="menuanchorclass" rel="anylinkmenu1" onmouseover="MM_swapImage('Services','','images-nav/Services-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/Services.gif" alt="" name="Services" width="53" height="31" border="0" id="Services" /></a></td>
              <td><img src="images-nav/Divider.gif" width="35" height="31" alt="" /></td>
              <td><a href="departments.php" class="menuanchorclass" rel="anylinkmenu2" onmouseover="MM_swapImage('Departments','','images-nav/Departments-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/Departments.gif" alt="" name="Departments" width="88" height="31" border="0" id="Departments" /></a></td>
              <td><img src="images-nav/Divider.gif" width="35" height="31" alt="" /></td>
              <td><a href="public-notices.php" class="menuanchorclass" rel="anylinkmenu3" onmouseover="MM_swapImage('News','','images-nav/News-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/News.gif" alt="" name="News" width="97" height="31" border="0" id="News" /></a></td>
              <td><img src="images-nav/Divider.gif" width="35" height="31" alt="" /></td>
              <td><a href="a-z-services.php" onmouseover="MM_swapImage('About','','images-nav/About-over.gif',1)" onmouseout="MM_swapImgRestore()"><img src="images-nav/About.gif" alt="" name="About" width="85" height="31" border="0" id="About" /></a></td>
              <td><img src="images-nav/Divider.gif" width="35" height="31" alt="" /></td>
              <td><a href="links.php" class="menuanchorclass" rel="anylinkmenu4" onmouseover="MM_swapImage('Links','','images-nav/Links-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/Links.gif" alt="" name="Links" width="120" height="31" border="0" id="Links" /></a></td>
              <td><img src="images-nav/Divider.gif" width="35" height="31" alt="" /></td>
              <td><a href="contact.php" onmouseover="MM_swapImage('Contact','','images-nav/Contact-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/Contact.gif" alt="" name="Contact" width="88" height="31" border="0" id="Contact" /></a></td>
            </tr>
        </table></td>
      </tr>
    </table></TD>
  </TR>
  <tr>
    <td><img src="images2010/single-pixel.gif" width="142" height="15" /></td>
    <td><img src="images2010/single-pixel.gif" width="20" height="10" /></td>
    <td><img src="images2010/single-pixel.gif" width="601" height="10" /></td>
    <td><img src="images2010/single-pixel.gif" width="20" height="10" /></td>
    <td><img src="images2010/single-pixel.gif" width="180" height="10" /></td>
  </tr>
  
  <TR>
    <TD><?php include("_include-nav-depts-public.php"); ?>
<?php require_once('_include-buttons.php'); ?>
<P CLASS="pSubnav">&nbsp;</P></TD>
    <TD>&nbsp;</TD>
    <TD><TABLE  ID="Main Content" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><h3>Public Works  Automatic Index</h3>
      </td>
  </tr>
  <tr>
    <td><?php foreach ($index_public_worksRecords as $record): ?>
<p><a href="<?php echo $record['_link'] ?>"><strong><?php echo $record['title'] ?></strong></a></p>
<?php endforeach ?>
<?php if (!$index_public_worksRecords): ?>
<?php endif ?></td>
  </tr>
</table>
</TD>
    <TD>&nbsp;</TD>
    <TD><?php require_once('_include-contact-panel.php'); ?></TD>
  </TR>
  
  <TR>
    <TD COLSPAN="5"><IMG SRC="images2010/single-pixel.gif" WIDTH="100" HEIGHT="5"></TD>
  </TR>
  <TR>
    <td colspan="3" class="tdHorizontalRule"><?php require_once('_include-footer.php'); ?>    </td>
    <TD COLSPAN="2" CLASS="tdHorizontalRule"><P ALIGN="right" CLASS="pFooter">&nbsp;</P></TD>
  </TR>
  <TR>
    <TD><IMG SRC="images2010/single-pixel.gif" WIDTH="141" HEIGHT="15"></TD>
    <TD><IMG SRC="images2010/single-pixel.gif" WIDTH="20" HEIGHT="10"></TD>
    <TD><IMG SRC="images2010/single-pixel.gif" WIDTH="450" HEIGHT="10"></TD>
    <TD><IMG SRC="images2010/single-pixel.gif" WIDTH="20" HEIGHT="10"></TD>
    <TD><IMG SRC="images2010/single-pixel.gif" WIDTH="180" HEIGHT="10"></TD>
  </TR>
</TABLE>
</BODY>
</HTML>
