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

<body>

{wrap_top}
		
{embed="includes/header"} 
		
		<!--  / CONTENT CONTAINER \ -->
		<div id="contentCntr">
        	<div id="inner-top">
            	<div id="bottom">
                
{embed="includes/breadcrumb"}

                    <!--  / LEFT CONTAINER \ -->
                    <div id="leftCntr">
        
                        <!--  / MENU BOX \ -->
                        <div class="menuBox">
        
                            <h2>{if segment_2!='' AND segment_3==''}<a href="{site_url}{segment_1}">{exp:structure:parent_title}</a>{if:elseif segment_3!=''}<a href="{site_url}{segment_1}">{exp:structure:top_level_title}</a>{if:else}<a href="{segment_2}">{exp:structure:top_level_title}</a>{/if}</h2>
                            
                            {exp:structure:nav_sub start_from="/{segment_1}" {if segment_2 !=''}limit_depth="2"{if:else}limit_depth="1"{/if} 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="news/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">
        
                 		{exp:channel:entries channel="news" limit="1"}
							{if hide_title!='Yes'}<h2>{title}</h2>{/if}

						{pages_copy}
						{/exp:channel:entries}
						
						
						{exp:channel:entries channel="blog" dynamic="on" limit="1"}
							<h2>{title}</h2>
							<h4><em>{author} | {entry_date format="%M %d, %Y"}</em></h4>
							{body}
						{/exp:channel:entries}
						

{exp:comment:entries channel="blog" limit="1"}
    {if total_results >0}
        <div class="info"><h3 style="margin-top: 25px;">Previous Comments</h3></div>
    {/if}
{/exp:comment:entries}

{exp:comment:entries channel="blog" limit="100"}
    <div class="comment_entry">
        <p class="date">#{count} from {name} on {comment_date format='%F %d, %Y'}</p>
        {comment}
    </div>
{/exp:comment:entries}

<div id="contact_form">
    {exp:comment:form preview="{segment_1}{segment_2}{segment_3}" url_title="{segment_4}"}
        <h3 style="margin-top: 25px;">Add Your Comment</h3>
	<fieldset>	

        {if logged_out}
		<label>Name &#42;</label><input type="text" name="name" value="{name}" class="field" />
		<label>Email &#42;</label><input type="text" name="email" value="{email}" class="field" />
        {/if}
        
		<label>Comments</label><textarea name="comments" cols="11" rows="3">{comment}</textarea>
		<label>&nbsp;</label><p>*Denotes a required field</p>


        {if logged_out}
        <p class="form"><label>&nbsp;</label><input type="checkbox" id="checkbox_1" class="check" name="save_info" value="yes" {save_info} />Remember me?</p> 
        {/if}

        <p class="form"><label>&nbsp;</label><input type="checkbox" id="checkbox_2" class="check" name="notify_me" value="yes" {notify_me} />&nbsp;Email me when someone responds.</p>

	{if captcha}
	<p class="form">
		<label>Please enter the word<br />you see below:</label><input type="text" name="captcha" class="field" />
	</p>
	<p class="form">
		<label>&nbsp;</label>{captcha}
	</p>
	{/if}	
	
	<p class="form"><input type="submit" name="submit" class="submit-button" value="Submit" /></p>
	</fieldset>

    {/exp:comment:form}
</div>
                            
                            <div class="clear"></div>
 
        
                        </div>
                        <!--  \ TEXT BOX / -->
                        
						{if segment_3 =='staff_blog' AND segment_4==''}{embed="news/blog_list"}{/if}
						

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

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