<?php
include_once("config.php");

include_once($UTIL_DIR . "/guestbook.php");
header("Content-Type: text/html; charset=UTF-8");

include_once($UTIL_DIR . "/login.php");
if($page == "admin") checklogin();
?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ExecutionRoom.com - Official DIE website</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="MSSmartTagsPreventParsing" content="true"/>
<meta http-equiv="Content-Type" content="text/html"/>
<link rel="alternate" type="application/rss+xml" title="RSS" href="rss.xml" />
<link rel="author" title="Bent Bisballe Nyeng" href="http://www.aasimon.org"/>
<link href="/favicon.ico" rel="shortcut icon"/>
<link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="handheld.css" media="handheld"/>
<script type="text/javascript" src="external.js">js"></script>
</head>
<body>
<div style="display: none;">
<img alt="preload" src="gfx/biography_hover.jpg"/>
<img alt="preload" src="gfx/contact_hover.jpg"/>
<img alt="preload" src="gfx/discography_hover.jpg"/>
<img alt="preload" src="gfx/downloads_hover.jpg"/>
<img alt="preload" src="gfx/gallery_hover.jpg"/>
<img alt="preload" src="gfx/guestbook_hover.jpg"/>
<img alt="preload" src="gfx/live_hover.jpg"/>
<img alt="preload" src="gfx/members_hover.jpg"/>
<img alt="preload" src="gfx/news_hover.jpg"/>
<img alt="preload" src="gfx/shop_hover.jpg"/>
</div>
<?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) echo "<center><table><tr><td>"; ?>
<div class="page">
  <div class="menu" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) 
		 echo "style=\"width: 848px;\"";
		 ?>>
    <a href="?page=news" class="menu_entry_news"></a>
    <a href="?page=news" class="menutitle">News</a>

    <a href="?page=shop" class="menu_entry_shop"></a>
    <a href="?page=shop" class="menutitle">Shop</a>

    <a href="?page=downloads" class="menu_entry_downloads"></a>
    <a href="?page=downloads" class="menutitle">Downloads</a>

    <a href="?page=biography" class="menu_entry_biography"></a>
    <a href="?page=biography" class="menutitle">Biography</a>

    <a href="?page=live" class="menu_entry_live"></a>
    <a href="?page=live" class="menutitle">Live Shows</a>

    <a href="?page=discography" class="menu_entry_discography"></a>
    <a href="?page=discography" class="menutitle">Discography</a>

    <a href="?page=guestbook" class="menu_entry_guestbook"></a>
    <a href="?page=guestbook" class="menutitle">Guestbook</a>

    <a href="?page=members" class="menu_entry_members"></a>
    <a href="?page=members" class="menutitle">Members</a>

    <a href="?page=gallery" class="menu_entry_gallery"></a>
    <a href="?page=gallery" class="menutitle">Gallery</a>

    <a href="?page=contact" class="menu_entry_contact"></a>
    <a href="?page=contact" class="menutitle">Contact</a>
  </div>
  <div class="wrapper" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) 
		 echo "style=\"width: 848px; margin-top: -102px;\"";
		 ?>>
  <div class="content" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) 
		 echo "style=\"width: 599px;\"";
		 ?>>
<?php
include_once("config.php");

switch($page) {
case "news":        include($PAGE_DIR."/news.php"); break;
case "shop":        include($PAGE_DIR."/shop.php"); break;
case "downloads":   include($PAGE_DIR."/downloads.php"); break;
case "biography":   include($PAGE_DIR."/biography.php"); break;
case "live":        include($PAGE_DIR."/live.php");  break;
case "discography": include($PAGE_DIR."/discography.php");  break;
case "members":     include($PAGE_DIR."/members.php");  break;
case "guestbook":   include($PAGE_DIR."/guestbook.php");  break;
case "gallery":     include($PAGE_DIR."/gallery.php");  break;
case "contact":     include($PAGE_DIR."/contact.php");  break;

// Hidden pages
case "lyrics":      include($PAGE_DIR."/lyrics.php"); break;
case "links":       include($PAGE_DIR."/links.php"); break;
case "admin":       include($PAGE_DIR."/admin.php"); break;
case "rss":         include($PAGE_DIR."/rss.php");  break;

// Paypal result pages
case "thanx":       include($PAGE_DIR."/thanx.php"); break;
case "cancel":      include($PAGE_DIR."/cancel.php"); break;

// Default
default:            include($PAGE_DIR."/news.php");    break;
}
?>
  </div>
  <div class="column" <?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) 
		 echo "style=\"width: 249px;\"";
		 ?>>
<?php
	include $PAGE_DIR."/column.php"
?>
  </div>
  </div>
  <div class="footer">
    Hosted by <a href="http://www.aasimon.org">Aasimon.org</a>.
    Design and DIE logo by <a href="mailto:elsenator@gmail.com">Lars Bisballe Jensen</a>.
    Artwork by <a href="http://tonysandoval.deviantart.com">Tony Sandoval</a>.
    Copyright&copy;2007 <a href="http://www.executionroom.com">DIE</a>.
    This site is valid <a href="http://validator.w3.org/check?uri=referer">XHTML1.1</a>
    and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS2.0</a>
  </div>
</div>
<?php if(strstr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) echo "</td></tr></table></center>"; ?>
<div>
<a href="?page=admin" class="forum_link"></a>
<a href="?page=admin" class="forum_link_text">Admin</a>
</div>
</body>
</html>