<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> class="no-js">
<head>
<meta charset=<?php bloginfo('charset'); ?> />
<title><?php wp_title('&laquo; ', true, 'right'); ?><?php bloginfo('name'); ?></title>

<?php require(ghostpool_inc . 'options.php'); ?>

<meta name="description" content="<?php if(is_single()) { ?><?php single_post_title(); ?><?php } elseif(is_page()) { ?><?php wp_title('&laquo; ', true, 'right'); ?><?php bloginfo('name'); ?><?php } else { bloginfo('name'); ?> - <?php bloginfo('description'); ?><?php } ?>" /> 

<?php if(is_singular()) wp_enqueue_script('comment-reply'); ?>
<?php wp_enqueue_script("jquery"); ?>
<?php wp_head(); ?>

<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/reset.css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" media="screen" />

<?php require(ghostpool_inc . 'skins.php'); ?>

<?php require(ghostpool_inc . 'styling.php'); ?>

<!--[if lt IE 8]><link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style-ie7.css" media="screen" /><![endif]-->

<?php if($theme_favicon_ico) { ?><link rel="icon" href="<?php echo($theme_favicon_ico); ?>" type="image/vnd.microsoft.icon" />
<link rel="SHORTCUT ICON" href="<?php echo($theme_favicon_ico); ?>" /><?php } ?>
<?php if($theme_favicon_png) { ?><link rel="icon" type="image/png" href="<?php echo($theme_favicon_png); ?>" /><?php } ?>
<?php if($theme_apple_icon) { ?><link rel="apple-touch-icon" href="<?php echo($theme_apple_icon); ?>" /><?php } ?>

<?php if($theme_custom_css) { ?><style><?php echo stripslashes($theme_custom_css); ?></style><?php } ?>

<script src="<?php echo get_template_directory_uri(); ?>/lib/scripts/mediaplayer/jwplayer.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.cycle.all.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.prettyPhoto.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.masonry.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.jqtransform.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/custom.js"></script>

<script>var rootFolder='<?php echo get_template_directory_uri(); ?>';</script>

<?php echo stripslashes($theme_scripts); ?>

</head>					
<body <?php body_class(); ?>>

<script>
	var el = document.getElementsByTagName("html")[0];
	el.className = "";
</script>

<!--Begin Header-->
<div id="header">
	
	<!--Begin Logo-->
	<div id="logo">
		<?php if($theme_logo_text) { ?><h1><a href="<?php echo home_url(); ?>"><?php echo stripslashes($theme_logo_text); ?></a></h1><?php } else { ?><?php if($theme_logo) { ?><a href="<?php echo home_url(); ?>"><img src="<?php echo($theme_logo); ?>"></a><?php } else { ?><a href="<?php echo home_url(); ?>"><span></span></a><?php } ?><?php } ?>			
	</div>
	<!--End Logo-->

	<!--Begin Tagline-->
	<?php if($theme_tagline) { ?>
		<div id="tagline">
			<?php echo stripslashes(do_shortcode($theme_tagline)); ?>
		</div>
	<?php } ?>
	<!--End Tagline-->

	<?php get_search_form(); ?>
	
</div>	
<!--End Header-->

<!--Begin Header Content-->
<?php if($theme_header_content) { ?>
	<div id="header-content">
		<?php echo stripslashes(do_shortcode($theme_header_content)); ?>
	</div>
<?php } ?>
<!--End Header Content-->