<?php

function ShowBlock1Header($tString="",$div="",$display="",$righttext="", $print = true)
{
	global $gSettingsArray;

    $block1Header = <<<EOD
      <!-- Header -->
	  <TABLE cellSpacing=0 cellPadding=0 width="100%" background=templates/{$gSettingsArray["Template"]}/images/box_bgt.gif border=0>
        <TBODY>
        <TR>
          <TD width=18><IMG height=18 alt="" src="templates/{$gSettingsArray["Template"]}/images/box_bgt.gif" width=18 border=0></TD>
          <TD  class=boxtitle align=left>$tString
		  </TD>
		  <td align=right class=boxtitle nowrap>{$righttext}&nbsp;&nbsp;</tD>
          <TD align=right width=22><IMG height=18 alt="" src="templates/{$gSettingsArray["Template"]}/images/box_end.gif" width=22 border=0></TD>
		</TR>
		</TBODY>
	  </TABLE>
	  
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 align=center>
        <TBODY>
        <TR vAlign=top>
          <TD background=templates/{$gSettingsArray["Template"]}/images/box_bgl.gif></TD>
          <TD  width="100%"><IMG height=6 alt="" src="templates/{$gSettingsArray["Template"]}/images/px.gif" width=1 border=0>
	      <!-- End Header -->
<!--		  <div id="$div" style="display: $display ">			  -->
EOD;

    if ($print) {
        echo $block1Header;
    } else {
        return $block1Header;
    }
}

function ShowHeader($tString="",$width="100%",$rightcontent="", $return=false)
{
	  global $gSettingsArray;

      $html = <<<EOD
          <!-- Header -->
          <table width='$width' cellpadding=0 border=0 cellspacing=0>
          <tr><td class="snapshot-header-left">
          </td><td class="snapshot-header" nowrap>
          <font class=snapshot-header-text>
          $tString</font>
          <font class=snapshot-header-description></font></td>
          <td class="snapshot-header" align=right>$rightcontent</td>
          <td class="snapshot-header-right"></td>
          </tr></table>
EOD;
    if ($return) {
        return $html;
    } else {
        echo $html;
    }
}

function ShowSubHeader($tString="",$div="",$display="",$righttext="")
{
	global $gSettingsArray;
?>
      <!-- Header -->
	  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD  height=18 class=dividerlogs align=left>&nbsp;&nbsp;&nbsp;<?php echo $tString ?></TD>
		  <td align=right class=dividerlogs nowrap><?php echo $righttext?>&nbsp;&nbsp;</tD>
		</TR>
		</TBODY>
	  </TABLE>
<?php
}

function ShowDivider($tString="")
{
	global $gSettingsArray;
?>
      <!-- Header -->
	  <TABLE cellSpacing=0 cellPadding=0 width="100%" background=templates/<?php echo $gSettingsArray["Template"]; ?>/images/box_bgt.gif border=0>
        <TBODY>
        <TR>
          <TD heigth=8 class=dividerlogs width="100%"><?php echo $tString ?></TD>
		</TR>
	  </TABLE>
<?php
}

function ShowBlock1Footer($print = true)
{
	global $gSettingsArray;

    $block1Footer = <<<EOD
<!--		  </div> -->
	  	  <!-- Footer -->
		  </TD>
		</TR>
	  </TBODY>
	  </TABLE>
	 <!-- End Footer -->
EOD;

    if ($print) {
        echo $block1Footer;
    } else {
        return $block1Footer;
    }
}

function ShowFooter()
{
	global $gSettingsArray;
?>


	      <TABLE cellSpacing=0 cellPadding=0 width="100%" background=templates/<?php echo $gSettingsArray["Template"]; ?>/images/box_bgb.gif border=0>
    	    <TBODY>
	        <TR>
        	  <TD><IMG height=12 alt="" src="templates/<?php echo $gSettingsArray["Template"]; ?>/images/box_cbl.gif" width=18 border=0></TD>
    	      <TD width="100%"><IMG height=1 alt="" src="templates/<?php echo $gSettingsArray["Template"]; ?>/images/px.gif" width=1 border=0></TD>
	          <TD align=right></TD>
			</TR>
			</TBODY>
		 </TABLE>


<?php
}

?>
