<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?> class="no-js">
<head>
<meta charset=<?php bloginfo('charset'); ?> />
<title><?php bloginfo('name'); ?> | <?php is_home() || is_front_page() ? bloginfo('description') : wp_title(''); ?></title>

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

<?php wp_head(); ?>

<!--[if IE 7]><link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/lib/css/style-ie7.css" media="screen" /><![endif]-->
<!--[if lte IE 8 ]><link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/css/ie.css" /><![endif]-->

<?php require(ghostpool_scripts . 'custom.php'); ?>	
<?php require(ghostpool_inc . 'page-styling.php'); ?>

</head>					

<![if !IE]>
<body <?php body_class($gp_settings['browser'].' '.$gp_settings['layout'].' '.$gp_settings['skin']); ?>>
<![endif]>
<!--[if gt IE 8]>
<body <?php body_class('ie9 '.$gp_settings['browser'].' '.$gp_settings['layout'].' '.$gp_settings['skin']); ?>>
<![endif]-->
<!--[if lt IE 9]>
<body <?php body_class('ie8 '.$gp_settings['browser'].' '.$gp_settings['layout'].' '.$gp_settings['skin']); ?>>
<![endif]-->

<!--Begin Page Wrapper-->
<div id="page-wrapper">

	<!--Begin Page Shadow-->
	<div id="page-shadow">

		<!--Begin Header-->
		<div id="header">
                        <!--Begin Logo-->
                        <<?php if(is_home() OR is_front_page()) { ?>h1<?php } else { ?>div<?php } ?> id="logo" style="<?php if($theme_logo_top) { ?> margin-top: <?php echo $theme_logo_top; ?>px;<?php } ?><?php if($theme_logo_left) { ?> margin-left: <?php echo $theme_logo_left; ?>px;<?php } ?><?php if($theme_logo_bottom) { ?> margin-bottom: <?php echo $theme_logo_bottom; ?>px;<?php } ?>">

                                <div><?php bloginfo('name'); ?> | <?php is_home() || is_front_page() ? bloginfo('description') : wp_title(''); ?></div>

                                <?php if($theme_logo) { ?><a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"><img src="<?php echo($theme_logo); ?>" alt="<?php bloginfo('name'); ?>" /></a><?php } else { ?><a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>"><span></span></a><?php } ?>

                        </<?php if(is_home() OR is_front_page()) { ?>h1<?php } else { ?>div<?php } ?>>
                        <!--End Logo-->
        <?php if(is_user_logged_in()) { ?>
            <?php global $bp, $current_user; get_currentuserinfo(); ?>
            <div class="login-name"><?php echo $current_user->display_name; ?></div>
        <? } ?>
            
        <?php if ( is_user_logged_in() ) : ?>
            <?php if (0) { ?>
            <!--Begin Nav-->
            <div id="nav">
                    <?php /*wp_nav_menu('sort_column=menu_order&container=ul&theme_location=header-nav&fallback_cb=null');*/ ?>
            </div>                
            <!--End Nav-->   
            <?php } ?>
            <ul class="navmenu">
                <li><a class="friends" href="<?php echo bp_get_members_directory_permalink(); ?>"><span><?php __( 'Members', 'buddypress' ); ?></span></a></li>
                <li><a class="groups " href="<?php echo bp_get_groups_directory_permalink(); ?>"><span><?php __( 'Groups', 'buddypress' ); ?></span></a></li>
                <li><a class="dedications" href="<?php echo bp_loggedin_user_domain() . bp_get_dedication_slug() ?>"><span><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></span></a></li>
                <li><a class="profile" href="<?php if(function_exists('bp_is_active')) { echo $bp->loggedin_user->domain; } else { echo get_author_posts_url(get_the_author_id()); } ?>"><span><?php _e('Profile', 'gp_lang'); ?></span></a></li>
            </ul>
        <?php endif; ?>            
        
        <?php if ( is_user_logged_in() ) : ?>
            <?php if ( $bp->current_component == 'dedications' ) : ?>
                <div id="header-profile">
                <?php locate_template( array( 'members/single/small-member-header.php' ), true );  ?>
                </div>
            <?php endif; ?>
        <?php endif; ?>
            
        <!--Begin Header Bottom-->
        <div id="header-bottom">
                <?php if ( is_user_logged_in() ) : ?>
                    <?php if(1) { /*is_home() || is_front_page() || (is_single() && in_category('dedication'))) {*/ ?>
                        <div id="dedication-data-panel" class="columns twothirds first text-left"></div>	
                    <?php } ?>
                    <?php if($theme_search_form == "0") { ?>		
                            <div id="search-panel" class="columns onethird last">			
                                    <div id="search-box">
                                            <?php get_search_form(); ?>
                                    </div>
                            </div>	
                    <?php } ?>
                <?php endif; ?>

                <!--Begin Header Content-->
                <?php if($theme_header_content) { ?>
                        <div id="header-content">
                                <?php echo stripslashes(do_shortcode($theme_header_content)); ?>
                        </div>
                <?php } ?>
                <!--End Header Panel-->
                <div class="clear"></div>
        </div>
        <!--End Header Bottom-->
			
		</div>	
		<!--End Header-->
		
		<?php if(is_home() || is_front_page()) { ?>
                    <?php require('video-slider.php'); ?>
                    <div id="precontent-wrapper">
                        <div id="dedicationComments_container" class="columns two first text-left">&nbsp;</div>
                        <div id="sidebar-home" class="columns two last text-left">
                            <?php dynamic_sidebar('homepage-1'); ?>		                        
                        </div>	
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                    
                <?php } ?>
                    
                <?php /*if(is_home() && $theme_slider == "0") { require('slider.php'); }*/ ?>
                
                <?php /*require('social.php');*/ ?>

		<!--Begin Content Wrapper-->
		<div id="content-wrapper">