<?php

// aI HAVE CHANGED AGAIN

// header_export.php
// -----------------------------------------------------------------------------
// This file exports the header for use in rebranding dmAccount
//
// Project    > A16-dmABS-1.5-Feb09
// Copyright  > (C) Digital Mail Limited (2005 - 2009)
// Author     > RAK for DML
// -----------------------------------------------------------------------------

define('MOD_PHP', substr(PHP_SAPI, 0, 3) != 'cgi'); // Are we running as mod_php?
define('DOCROOT', MOD_PHP && isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : (MOD_PHP && isset($_SERVER['SCRIPT_FILENAME']) ? substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])) : substr(str_repeat('../', count(explode('/', preg_replace('_/+_', '/', $_SERVER['PHP_SELF'])))-2), 0, -1)));
$abs_root = '';
@include(DOCROOT . '/abs_version_control.php');
$abs_root = 'http://' . $_SERVER['SERVER_NAME'] . $abs_root;
include_once('abs_tech_options.php');
include_once('abs_lib.php');
include_once('abs_run.php');
// echo('DOCROOT = ' . DOCROOT . ' ::: $abs_root = ' .  $abs_root);
?>

<!-- STYLESHEETS & JS-->
<link href="<?=$abs_root;?>/themes/<?=$abs_opt['theme'];?>/css/layout_1.5.0-7.css" rel="stylesheet" type="text/css" media="All">
<link href="<?=$abs_root;?>/themes/<?=$abs_opt['theme'];?>/css/typography_and_colours.css" rel="stylesheet" type="text/css" media="All">

<?php if ($abs_sitemode != 'proplus') : ?>
<!-- STYLESHEET OVERRIDES GENERATED FROM $abs_opt -->
<style type="text/css">
<?=$abs_header_bg;?>
#header, .header_bar, #ad_block { background-color: <?=$abs_opt['header_block_colour'];?>; }
#header, .header_bar, #header a, #ad_block h2 { color: <?=$abs_header_text_col;?>; }
#header a { border-bottom: 1px solid <?=$abs_header_text_col;?>; }
</style>
<?php endif; ?>

<?php
// $abs_login_status = get_login_status(); // Get login status XComponent in its unboxed form
ob_start('abs_brand_substitution');
?>

<div id="centred_page">
		
<div id="spacer_block_top"></div>

<!--HEADER -->
<div id="header" onmouseover="sub_menu_hide();">
	<div id="header_content">
		<div id="header_logo_contact">
		
			<a href="<?=$abs_root;?>/index.php" style="border: 0px;">
			<?php if ($abs_opt['company_logo'] != '') : ?>
			<img src="{SUB:company_logo}" alt="{SUB:company_brandname}" border="0">
			<?php else : ?>
			<span id="displayname">{SUB:company_displayname}</span>
			<?php endif; ?>
			</a>
		
			<div>
				<span id="call_brand_on">Call {SUB:company_brandname} <span ondblclick="abs_show_sidepage('debug'); return false;">on</span><br></span>
				<span id="big_contact_no">{SUB:contact_tel}</span><br>
				<span id="other_contact_channels">
					<?php if ($abs_opt['contact_email']) : ?>
					<img src="<?=$abs_root;?>/themes/<?=$abs_opt['theme'];?>/gen_images/icon_email_<?=$abs_header_text_col;?>.gif" alt="" width="26" height="14" border="0">
					<a href="mailto:{SUB:contact_email}">Email us</a>
					<?php endif; if ($abs_opt['contact_skype']) : ?>
					<span style="white-space: pre;">  </span>
					<img src="<?=$abs_root;?>/themes/<?=$abs_opt['theme'];?>/gen_images/icon_skype_<?=$abs_header_text_col;?>.gif" alt="" width="24" height="14" border="0">
					<a href="callto://{SUB:contact_skype}">Skype us</a>
					<?php endif; if ($abs_opt['contact_im']) : ?>
					<span style="white-space: pre;">  </span>
					<img src="<?=$abs_root;?>/themes/<?=$abs_opt['theme'];?>/gen_images/icon_chat_<?=$abs_header_text_col;?>.gif" alt="" width="13" height="14" border="0">
					<a href="protocol://{SUB:contact_im}">Chat with us</a>
					<?php endif; ?>
				</span>
			</div>

		</div>
	</div>
</div>
<!-- END HEADER -->

<div id="spacer_block_under_menu"></div>

<?php ob_end_flush(); ?>
