<?php 

// Check to ensure this file is included in Freeway!
defined('_FEXEC') or die();
?>
    <table border="0" width="100%" cellspacing="0" cellpadding="<?php echo CELLPADDING_SUB;?>">
	
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php if (SHOW_HEADING_TITLE_ORIGINAL == 'yes') {
$header_text = '&nbsp;'?>
	      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
			<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
			<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_login.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
            <td><?php 
			//echo DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/' .COMPANY_LOGO ;
			echo tep_image(DIR_WS_TEMPLATES . DEFAULT_TEMPLATE . '/images/' .COMPANY_LOGO, HEADING_TITLE,'',''); ?></td>
            <td valign="top"><table border="1" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td class="pageHeading" align="left"><?php echo HEADING_TITLE; ?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_MAIN; ?></td>
              </tr>
            </table></td>
          </tr></table></td></tr>
<?php	  }else{
$header_text = HEADING_TITLE;
}
		if(!isset($hide_row_top)) {
?>	
		<tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?></td>
		</tr>	
<?php } ?>		
<?php if (MAIN_TABLE_BORDER == 'yes'){
table_image_border_top(false, false, $header_text);
}?>
              <table border="0" width="100%" cellspacing="0" cellpadding="2">
			  <tr>
               	<td><?php echo tep_image(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/'.COMPANY_LOGO, HEADING_TITLE,'',''); ?></td>
				<td class="main"><?php echo TEXT_MAIN; ?></td>
              </tr>
            	</table></td>
			</tr>
		  	<tr>
   			<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
				<tr>
					<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'SSL') . '">' . tep_template_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
					<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
				</tr>
				</table>
<?php if (MAIN_TABLE_BORDER == 'yes'){
table_image_border_bottom();
}
// EOF: Lango Added for template MOD
?>    
				</table>
			   </td>
		     </tr>
