<!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" <?php language_attributes() ?>>
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php if (is_home()) {
	echo bloginfo('name');
} elseif (is_category()) {
	echo __('Category &raquo; ', 'blank'); wp_title('&laquo; @ ', TRUE, 'right');
	echo bloginfo('name');
} elseif (is_tag()) {
	echo __('Tag &raquo; ', 'blank'); wp_title('&laquo; @ ', TRUE, 'right');
	echo bloginfo('name');
} elseif (is_search()) {
	echo __('Search results &raquo; ', 'blank');
	echo the_search_query();
	echo '&laquo; - ';
	echo bloginfo('name');
} elseif (is_404()) {
	echo '404 '; wp_title(' &raquo; ', TRUE, 'right');
	echo bloginfo('name');
} else {
	echo wp_title(' &raquo; ', TRUE, 'right');
	echo bloginfo('name');
} ?></title>

<meta name="description" content="Inspiring people to lead healthy lives through the true life experiences of Pearl Naphassorn, a semi-retired youthful woman who is pursuing her life journey with a happy mind concept."> 

<link rel="Shortcut Icon" href="<?php echo bloginfo('template_url');?>/images/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <!-- enables nested comments in WP 2.7 -->
<?php wp_head(); //leave for plugins ?>

<a href="http://www.behappyandbehealthy.com">
  <!-- <p class="side_leff_home">
        Be Happy 
   </p>
   <p class="side_leff_home t_right">
      <span>Be Healthy</span>
   </p> -->
<div class="logo-log"><img src="http://www.behappyandbehealthy.com/wp-content/uploads/image/logo1.png"></div>
 </a>

</head>

<body>
<div id="wrapper"> <!-- #wrapper ends in footer.php -->

<div id="header">
<?php $args = array(
              'theme_location'  => '',
              'menu'            => 'TopNav', 
              'container'       => 'div', 
              'container_class' => 'menu-container-headmenu', 
              'container_id'    => '',
              'menu_class'      => 'menu-headmenu', 
              'menu_id'         => '',
              'echo'            => true,
              'fallback_cb'     => 'wp_page_menu',
              'before'          => '',
              'after'           => '',
              'link_before'     => '',
              'link_after'      => '',

              'depth'           => 0,
              'walker'          => '');
            ?>
            <?php wp_nav_menu($args); ?>
<?php /*
<a href="<?php echo get_option('home'); ?>"><img src="<?php bloginfo('template_url'); ?>images/smart-site-logo.jnp" title="<?php bloginfo('name'); ?>" /></a>
        */ ?>
        
        
<?php $args = array(
              'theme_location'  => '',
              'menu'            => 'NavMenu', 
              'container'       => 'div', 
              'container_class' => 'menu-container-NavMenu', 
              'container_id'    => '',
              'menu_class'      => 'menu-NavMenu', 
              'menu_id'         => '',
              'echo'            => true,
              'fallback_cb'     => 'wp_page_menu',
              'before'          => '',
              'after'           => '',
              'link_before'     => '<span>',
              'link_after'      => '</span>',

              'depth'           => 0,
              'walker'          => '');
            ?>
            <?php //wp_nav_menu($args); ?>      <br><br><br>
            <div class="header-top-g"></div>
            <div class="header-bg-g">
            <?php $image_main_slider =  get_post_meta($post->ID, "image_main",true);?>
              <?php if($image_main_slider){?>
                    <div id="slider">
                       <img src="<?php echo get_Image_url($post->ID,"m","image_main"); ?>" alt="" title=""/>
                       <?php if(get_post_meta($post->ID, "image1",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image1"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image2",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image2"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image3",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image3"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image4",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image4"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image5",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image_5"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image6",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image6"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image7",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image7"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image8",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image8"); ?>" alt="" title=""/> 
                       <?php } ?>
                       <?php if(get_post_meta($post->ID, "image9",true)){ ?>
                             <img src="<?php echo get_Image_url($post->ID,"m","image9"); ?>" alt="" title=""/> 
                       <?php } ?>
                    </div>
                                           
              <?php }else{?>
                     <?php if (function_exists('nivoslider4wp_show')) { nivoslider4wp_show(); } ?>  
              <?php } ?>
            </div>
            <div class="header-bottom-g"></div>
</div><!-- end #header -->

