<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php

  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home/masselsm/public_html/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records
  list($articlesRecords, $articlesMetaData) = getRecords(array(
    'tableName'   => 'articles',
    'limit'       => '1',
  ));
  $articlesRecord = @$articlesRecords[0]; // get first record
  
  // load records
  list($panel_logosRecords, $panel_logosMetaData) = getRecords(array(
    'tableName'   => 'panel_logos',
    'limit'       => '1',
  ));
  $panel_logosRecord = @$panel_logosRecords[0]; // get first record

  // load records
  list($panel_snowmobile_logosRecords, $panel_snowmobile_logosMetaData) = getRecords(array(
    'tableName'   => 'panel_snowmobile_logos',
    'limit'       => '1',
  ));
  $panel_snowmobile_logosRecord = @$panel_snowmobile_logosRecords[0]; // get first record

?> 
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE><?php echo $articlesRecord['title'] ?></TITLE>
<LINK HREF="styles.css" REL="stylesheet" TYPE="text/css">
<SCRIPT TYPE="text/JavaScript">
<!--
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];}}
}

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>
<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")

</SCRIPT>
</HEAD>

<BODY onLoad="MM_preloadImages('images/Home-over.gif','images/Marine-over.gif','images/Snowmobiles-over.gif','images/Store-over.gif','images/Service-over.gif','images/Customers-over.gif','images/About-over.gif','images/News-over.gif','images/Links-over.gif')">
<TABLE WIDTH="1000" BORDER="0" ALIGN="CENTER" CELLPADDING="0" CELLSPACING="0">
  <TR>
    <TD CLASS="tdMastheadBG"><TABLE WIDTH="1000" BORDER="0" CELLSPACING="0" CELLPADDING="0">
      <TR>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="34"></TD>
        <TD></TD>
        <TD CLASS="tdMiddle"><P CLASS="pTopNav"><A HREF="about.php" CLASS="aWhite"><STRONG>About Us</STRONG></A>  &nbsp;|&nbsp;  <A HREF="contact.php" CLASS="aWhite"><STRONG>Contact Us</STRONG></A>&nbsp;          |&nbsp;        <A HREF="http://www.facebook.com/pages/Massels-Marine/233397831677" TARGET="_blank" CLASS="aWhite"><IMG SRC="images/logo-facebook-icon.png" WIDTH="16" HEIGHT="16" BORDER="0" ALIGN="TEXTTOP">&nbsp;<STRONG>Facebook</STRONG></A></P></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="34"></TD>
      </TR>
      <TR>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="88"></TD>
        <TD CLASS="tdMastheadLogoCell"><A HREF="index.php"><IMG SRC="images/logo-massels.png" WIDTH="331" HEIGHT="56" BORDER="0"></A></TD>
        <TD CLASS="tdMastheadTaglineCell"><H1 CLASS="h1Tagline">Over 75 years of service excellence</H1></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="20"></TD>
      </TR>
      <TR>
        <TD COLSPAN="4"></TD>
        </TR>
      <TR>
        <TD COLSPAN="4" CLASS="tdNavbarBG"><TABLE ID="Navbar" WIDTH="1000" HEIGHT="43" BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR>
            <TD><IMG SRC="images/Spacer-Left.gif" WIDTH="20" HEIGHT="43" ALT="" /></TD>
            <TD><A HREF="index.php" onMouseOver="MM_swapImage('Home','','images/Home-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Home" SRC="images/Home.gif" WIDTH="61" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="marine.php" CLASS="menuanchorclass" REL="anylinkmenu1" onMouseOver="MM_swapImage('Marine','','images/Marine-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Marine" SRC="images/Marine.gif" WIDTH="67" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="snowmobiles.php" onMouseOver="MM_swapImage('Snowmobiles','','images/Snowmobiles-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Snowmobiles" SRC="images/Snowmobiles.gif" WIDTH="109" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="http://www.boatingstore.com/ca/MasselsMarine/" TARGET="_blank" onMouseOver="MM_swapImage('Store','','images/Store-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Store" SRC="images/Store.gif" WIDTH="235" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="service.php" onMouseOver="MM_swapImage('Service','','images/Service-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Service" SRC="images/Service.gif" WIDTH="71" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="customers.php" onMouseOver="MM_swapImage('Customers','','images/Customers-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Customers" SRC="images/Customers.gif" WIDTH="107" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="about-boating.php" onMouseOver="MM_swapImage('About','','images/About-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="About" SRC="images/About-over.gif" WIDTH="101" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="news.php" onMouseOver="MM_swapImage('News','','images/News-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="News" SRC="images/News.gif" WIDTH="55" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><A HREF="links.php" onMouseOver="MM_swapImage('Links','','images/Links-over.gif',1)" onMouseOut="MM_swapImgRestore()"> <IMG NAME="Links" SRC="images/Links.gif" WIDTH="91" HEIGHT="43" BORDER="0" ALT="" /></A></TD>
            <TD><IMG SRC="images/Spacer-Right.gif" WIDTH="83" HEIGHT="43" ALT="" /></TD>
          </TR>
        </TABLE></TD>
        </TR>
    </TABLE></TD>
  </TR>
  <TR>
    <TD CLASS="tdWhite"><TABLE WIDTH="1000" HEIGHT="100" BORDER="0" CELLPADDING="0" CELLSPACING="0">
      <TR>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="35"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="176" HEIGHT="20"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="20"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="502" HEIGHT="20"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="20"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="241" HEIGHT="20"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="20"></TD>
      </TR>
      <TR>
        <TD>&nbsp;</TD>
        <TD>&nbsp;</TD>
        <TD>&nbsp;</TD>
        <TD><H1>About Boating </H1></TD>
        <TD>&nbsp;</TD>
        <TD>&nbsp;</TD>
        <TD>&nbsp;</TD>
      </TR>
      <TR>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="18"></TD>
        <TD COLSPAN="5" CLASS="tdRuleTop"><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="18"></TD>
        <TD><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="18"></TD>
      </TR>
      <TR>
        <TD>&nbsp;</TD>
        <TD><?php require_once('_include-logos.php'); ?></TD>
        <TD>&nbsp;</TD>
        <TD>  <P><A HREF="about-boating.php">&laquo; Back</A></P>
        <HR>
      <H2> <?php echo $articlesRecord['title'] ?></H2>
     <?php echo $articlesRecord['summary'] ?>
      <?php echo $articlesRecord['content'] ?>
    <?php if (!$articlesRecord): ?>
    <?php endif ?></TD>
        <TD>&nbsp;</TD>
        <TD><SCRIPT TYPE="text/javascript" SRC="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_GB"></SCRIPT><SCRIPT TYPE="text/javascript">FB.init("18228367198abc0583da219472a38ec1");</SCRIPT><fb:fan profile_id="233397831677" stream="1" connections="0" logobar="1" width="241" height="390"></fb:fan><DIV STYLE="font-size:8px; padding-left:10px"></DIV></TD>
        <TD>&nbsp;</TD>
      </TR>
      <TR>
        <TD COLSPAN="7"><IMG SRC="images/single-pixel.gif" WIDTH="20" HEIGHT="10"></TD>
        </TR>
      <TR>
        <TD>&nbsp;</TD>
        <TD COLSPAN="5" CLASS="tdRuleTop"><?php require_once('_include-footer.php'); ?></TD>
        <TD>&nbsp;</TD>
      </TR>
    </TABLE> </TD>
  </TR>
</TABLE>
</BODY>
</HTML>
