<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=<?php echo $this->CHARSET; ?>" />
<title><?php echo $this->TITLE; ?></title>
<meta name="description" content="<?php echo $this->META_DESC; ?>" />
<meta name="keywords" content="<?php echo $this->META_KEYS; ?>" />
<base href="<?php echo $this->BASE_HREF; ?>/" />
<script type="text/javascript">
    var GB_ROOT_DIR = "<?php echo $this->BASE_HREF; ?>/themes/<?php echo $this->THEME; ?>/greybox/";
</script>
<script type="text/javascript" src="themes/<?php echo $this->THEME; ?>/greybox/AJS.js"></script>
<script type="text/javascript" src="themes/<?php echo $this->THEME; ?>/greybox/gb_scripts.js"></script>
<link href="themes/<?php echo $this->THEME; ?>/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="themes/<?php echo $this->THEME; ?>/mgallery.css" rel="stylesheet" type="text/css" />
<link href="themes/<?php echo $this->THEME; ?>/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
<link href="themes/<?php echo $this->THEME; ?>/calendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/<?php echo $this->THEME; ?>/js/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>
<script type="text/javascript" src="themes/<?php echo $this->THEME; ?>/js/js_code.js"></script>
<script type="text/javascript" src="themes/<?php echo $this->THEME; ?>/js/calendar.js.php"></script>
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $this->FEED_URL; ?>" />
</head>

<?php
// AUTO_FORM var is IMPORTANT if you are selling images..
// If you have created a new template and are selling images, make sure this var is in place..
?>
<body<?php echo $this->AUTO_FORM; ?>>
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>

<div id="outer">
	<div id="header">
		<h1><?php echo $this->GALLERY_NAME; ?></h1>
	</div>
	<div id="menu">
		<ul>
		  <li><a href="<?php echo $this->H_URL; ?>" title="<?php echo $this->HOME; ?>"><span class="bold"><?php echo $this->HOME; ?></span></a></li>
      <li><a href="<?php echo $this->A_URL; ?>" title="<?php echo $this->ABOUT; ?>"><span class="bold"><?php echo $this->ABOUT; ?></span></a></li>
      <li><a href="<?php echo $this->L_URL; ?>" title="<?php echo $this->LICENCE; ?>"><span class="bold"><?php echo $this->LICENCE; ?></span></a></li>
      <li><a href="<?php echo $this->C_URL; ?>" title="<?php echo $this->CONTACT; ?>"><span class="bold"><?php echo $this->CONTACT; ?></span></a></li>
      <?php
	    // If statement checks if cart is enabled..
	    // May not appear in all templates..
	    // Add to 'else' part of statement for alternative if required..
	    if ($this->IS_CART_ENABLED) {
	    ?>
	    <li><a href="<?php echo $this->CART_URL; ?>" title="<?php echo $this->ITEMS_IN_CART; ?> | <?php echo $this->CART_TOTAL; ?>"><?php echo $this->VIEW_CART_TXT; ?> (<?php echo $this->ITEMS_IN_CART_COUNT; ?>)</a></li>
	    <?php
	    } else {
	    }
	    ?>
    </ul>
	</div>
