{embed="includes/document_head" entry_title="{exp:channel:entries channel="pages" limit="1"}{title}{/exp:channel:entries}"}

<body>

{wrap_top}
		
{embed="includes/header"} 
		
		<!--  / CONTENT CONTAINER \ -->
		<div id="contentCntr">
        	<div id="inner-top">
            	<div id="bottom">
                
                	<!--  / NP BOX \ --> 
                    <div class="npBox"> 
    
                        <h2>Locations</h2> 
                        <ul> 
                        <li><a href="{site_url}">Home</a></li><li><a href="{site_url}news_and_events/">News and Events</a></li><li><a href="{site_url}news_and_events/blogs/">Blogs</a></li><li>Staff Blog</li> 
                        </ul> 
    
                    </div> 
                    <!--  \ NP BOX / --> 

                    <!--  / LEFT CONTAINER \ -->
                    <div id="leftCntr">
        
                        <!--  / MENU BOX \ -->
                        <div class="menuBox">
        
                            <h2><a href="{site_url}news_and_events/">News and Events</a></h2>

                            
                            {exp:structure:nav_sub start_from="/news_and_events" show_depth="2" current_class="active"}
        
                        </div>
                        <!--  \ MENU BOX / -->
                        
                        {!-- ad goes here<a href="#"><img src="-/images/ad-img.jpg" alt="" /></a>--}
                        
        				<!--  / CATEGORIES BOX \ --> 
                        <div class="categoriesBox"> 
        
                            <h3>Categories</h3> 
                            <ul> 
                            {exp:channel:category_archive channel="blog" show_empty="no" style="linear"}
         					{categories}
            					<li><a href="{path=blog-category/category/}">{category_name}</a></li>
         					{/categories}
      						{/exp:channel:category_archive}
                            </ul> 
                            
                            <h3>Authors</h3> 
                            <ul>
                            {exp:query sql='SELECT count(t1.entry_id) AS total_posts, t2.screen_name, t2.member_id FROM exp_channel_titles AS t1 LEFT JOIN exp_members AS t2 ON (t2.member_id = t1.author_id) WHERE channel_id = 6 AND status != "closed" GROUP BY t2.screen_name, t2.member_id HAVING count(t1.entry_id > 0) ORDER BY count(t1.entry_id) DESC'}
								<li><a href="{path="blog/author/{member_id}"}">{screen_name} ({total_posts})</a></li>
							{/exp:query}
							</ul>


                            <h3>Archives</h3> 
                            <ul> 
							{exp:channel:month_links channel="blog" limit="50"}
								
									<li><a 
										 {!--This conditional will cause the link to the currently-viewed archive choice to be highlighted --}
										{if segment_4==year AND segment_5==month_num}
											class="active"
										{/if}
										href="{path=blog-archive}"> {month} {year}
									</a></li>
								
							{/exp:channel:month_links}
                            </ul> 
        
                        </div> 
                        <!--  \ CATEGORIES BOX / --> 
        
        
        
                    </div>
                    <!--  \ LEFT CONTAINER / -->
                    
                    <!--  / RIGHT CONTAINER \ -->
                    <div id="rightCntr">
        
                        <!--  / TEXT BOX \ -->
                        <div class="textBox">
        
                 		
                 		
                 		{if segment_2=="category" AND segment_3!=''}
<h2>Category Archive</h2>

				{exp:channel:category_heading channel="blog"}
					<div id="category_header">
						<h3>{category_name}</h3>
						{if category_description}
							<p>{category_description}</p>
						{/if}
					</div>
				{/exp:channel:category_heading}
<ul>
{exp:channel:entries channel="blog"}
<li><a href="{url_title_path=news_and_events/blogs/staff_blog/}">{title}</a></li>
{/exp:channel:entries}
</ul>
{/if}

{if segment_2=='category' AND segment_3==''}
<h2>Category Archive</h2>
{exp:channel:category_archive channel="blog"}

{categories}<h3>{category_name}</h3>{/categories}

{entry_titles}<a href="{path=news_and_events/blogs/staff_blog/}">{title}</a>{/entry_titles}

{/exp:channel:category_archive}

<p><a href="news_and_events/blogs/staff_blog/" class="red-button"><span>&lt; Back to Blog</span></a></p>
{/if}

                 		
                 		
                 				
                            
                            <div class="clear"></div>
 
        
                        </div>
                        <!--  \ TEXT BOX / -->
                        
						{if segment_3 =='staff_blog' AND segment_4==''}{embed="blog/blog_list"}{/if}
						

						
        
                    </div>
                    <!--  \ RIGHT CONTAINER / -->
                    
                    <div class="clear"></div>

				</div>
            </div>
        </div>
		<!--  \ CONTENT CONTAINER / -->
		
{embed="includes/footer"}
		
{wrap_bottom}