<div class="sidebar-wrap-all left">


<div class="behappy">
    <h2><?php echo get_the_title(49); ?> </h2>
         <?php $args = array(
              'theme_location'  => '',
              'menu'            => 'Be Happy', 
              'container'       => 'div', 
              'container_class' => 'menu-container-behappy', 
              'container_id'    => '',
              'menu_class'      => 'menu-behappy', 
              'menu_id'         => '',
              'echo'            => true,
              'fallback_cb'     => 'wp_page_menu',
              'before'          => '',
              'after'           => '',
              'link_before'     => '',
              'link_after'      => '',

              'depth'           => 0,
              'walker'          => '');
            ?>
            <?php wp_nav_menu($args); ?>
</div>

<br>
<div class="behappy">
    <h2><?php echo get_the_title(51); ?> </h2>
         <?php $args = array(
              'theme_location'  => '',
              'menu'            => 'BE HEALTHY', 
              'container'       => 'div', 
              'container_class' => 'menu-container-behappy', 
              'container_id'    => '',
              'menu_class'      => 'menu-behappy', 
              'menu_id'         => '',
              'echo'            => true,
              'fallback_cb'     => 'wp_page_menu',
              'before'          => '',
              'after'           => '',
              'link_before'     => '',
              'link_after'      => '',

              'depth'           => 0,
              'walker'          => '');
            ?>
            <?php wp_nav_menu($args); ?>
</div>
<script type="">
<?php $args = array( 'numberposts' => 1,'cat'=>"5" );
$pageposts_menu = get_posts( $args );
//print_r($pageposts_menu);
?>
<?php if($pageposts_menu):?> 
jQuery("#menu-item-81 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ");
jQuery("#menu-item-32 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ");  
<?php endif; ?>

<?php $args = array( 'numberposts' => 1,'cat'=>"7" );
$pageposts_menu = get_posts( $args );?>
<?php if($pageposts_menu):?> 
jQuery("#menu-item-80 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ") 
jQuery("#menu-item-33 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ") 
<?php endif; ?>   
<?php $args = array( 'numberposts' => 1,'cat'=>"8" );
$pageposts_menu = get_posts( $args );?>
<?php if($pageposts_menu):?> 
jQuery("#menu-item-79 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ")
jQuery("#menu-item-37 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ")  
<?php endif; ?>   
<?php $args = array( 'numberposts' => 1,'cat'=>"9" );
$pageposts_menu = get_posts( $args );?>
<?php if($pageposts_menu):?> 
jQuery("#menu-item-211 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?>") 
jQuery("#menu-item-34 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?>")
<?php endif; ?>   
<?php $args = array( 'numberposts' => 1,'cat'=>"12" );
$pageposts_menu = get_posts( $args );?>
<?php if($pageposts_menu):?> 
jQuery("#menu-item-209 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ") 
jQuery("#menu-item-36 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ") 
<?php endif; ?>   
<?php $args = array( 'numberposts' => 1,'cat'=>"11" );
$pageposts_menu = get_posts( $args );?>
<?php if($pageposts_menu):?> 
jQuery("#menu-item-210 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ") 
jQuery("#menu-item-35 a").attr("href", "<?php echo get_permalink( $pageposts_menu[0]->ID ); ?> ") 
<?php endif; ?>   
 
</script>
<br>
<div class="fish_oil">
<h3>Why Omega  3 Fish Oil<br>
is Good for my Dog</h3>
<?php $args = array( 'numberposts' => 3,'cat'=>16  );
       $pageposts = get_posts( $args );
       global $post_id;
       ?>
<ul>
    <?php foreach ($pageposts as $post_left): ?>
    <?php if($post_id){$post_id = $post_id.','."$post_left->ID";}else{$post_id="$post_left->ID";}
    ?>
    <li><img src="<? echo get_Image_url($post_left->ID,'s','thumbnail');?>" alt=""> </li>
    <?php endforeach; ?>
</ul>
</div>
</div> <!-- end .sidebar-wrap -->
