<?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 "/services/webpages/a/x/axislighting.com/public/cmsAdmin/lib/viewer_functions.php";

  list($brandsRecords, $brandsMetaData) = getRecords(array(
    'tableName'   => 'brands',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $brandsRecord = @$brandsRecords[0]; // get first record

  // show error message if no matching record is found
  if (!$brandsRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }

?>
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Axis Lighting!</title>
<style type="text/css">
<!--
body {
	background-color: #2e353e;
}
-->
</style>
<link href="axis.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="stmenu.js"></script>
<script type="text/javascript" src="stlib.js"></script>
<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>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="MM_preloadImages('images/tab2.jpg','images/tab3.jpg','images/tab4.jpg','images/tab5.jpg')">
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="99" bgcolor="#1f242b"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="179"><img src="images/axis_logo.jpg" width="179" height="99" /></td>
        <td>&nbsp;</td>
        <td><table border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10" height="99" rowspan="3"><img src="images/search_bar.jpg" width="4" height="99" /></td>
            <td width="112" height="22">&nbsp;</td>
            <td width="49">&nbsp;</td>
            </tr>
          <tr>
            <td height="26" class="text-search">Search our Site:</td>
            <td><img src="images/rss.jpg" width="19" height="18" /></td>
            </tr>
          <tr>
            <td height="49" valign="top"><input name="search" type="text" class="field" id="search" /></td>
            <td height="49" valign="top"><input name="imageField" type="image" value="SUBMIT FORM" src="images/button-go.jpg" border="0"><</td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="41" class="links-bg"><span><script type="text/javascript" src="axis_horizontal_menu.js"></script>
    </span></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="18"></td>
      </tr>
      <tr>
        <td height="30" bgcolor="#16191e"><div class="breadcrumbs"><?php $products=$_REQUEST['products_name'];?> BREADCRUMBS
<?php if($products) : ?><a href="search.php?products=<?php echo $products ?>"><?php echo $products ?> >> </a>
        
         <?php endif ?>  <?php if($types) : ?>    <a href="search.php?products=<?php echo $products ?>&types=<?php echo $types ?>"><?php echo $types ?> >> </a> 
		 <?php endif ?> </div> 
</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="231" valign="top" bgcolor="#2d343d"><div class="tree"><script type="text/javascript" src="axis_tree_menu.js"></script></div></td>
            <td bgcolor="#2d343d"><br/>
     
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="287" height="76"><?php foreach ($brandsRecord['logo'] as $upload): ?>
                    <?php if ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
          <?php endif ?>
        <?php endforeach ?></td>
                <td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td> <?php foreach ($brandsRecord['tab1'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?></td>
                    <td width="5"><img src="images/tab_spacer.gif" alt="" width="5" height="31" /></td>
                    <td> <?php foreach ($brandsRecord['tab2'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?></td>
                    <td width="5"><img src="images/tab_spacer.gif" alt="" width="5" height="31" /></td>
                    <td> <?php foreach ($brandsRecord['tab3'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?></td>
                    <td width="5"><img src="images/tab_spacer.gif" alt="" width="5" height="31" /></td>
                    <td width="86"> <?php foreach ($brandsRecord['tab4'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?></td>
                    <td width="5"><img src="images/tab_spacer.gif" alt="" width="5" height="31" /></td>
                    <td> <?php foreach ($brandsRecord['tab5'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>

          <?php elseif ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" /><br/>

          <?php else: ?>
            <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a><br/>

          <?php endif ?>
        <?php endforeach ?></td>
                    <td width="13">&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td height="76" valign="top">  <?php foreach ($brandsRecord['main_image'] as $upload): ?>
          
          <?php if ($upload['isImage']): ?>
            <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />

          <?php endif ?>
        <?php endforeach ?></td>
                <td valign="bottom">     
      <?php echo $brandsRecord['content'] ?>
       

     </td>
              </tr>
            </table></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="38" bgcolor="#16191e"><div class="text-bottom">Axis Lighting © 2010 |  <a href="#" class="style1">Privacy policy</a></div></td>
  </tr>
  <tr>
    <td height="15">&nbsp;</td>
  </tr>
</table>
</body>
</html>
