<!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">
<head profile="http://gmpg.org/xfn/11">
<title>
<?php if($_REQUEST['ptype']=='post_listing'){ echo HEADER_ADD_PLACE_SEO;?>&nbsp;|&nbsp;<?php bloginfo('name'); }else?>
<?php if($_REQUEST['ptype']=='post_event'){ echo HEADER_ADD_EVENT_SEO;?>&nbsp;|&nbsp;<?php bloginfo('name'); }else?>
<?php if($_REQUEST['ptype']=='preview'){ echo HEADER_ADD_PREVIEW_SEO;?>&nbsp;|&nbsp;<?php bloginfo('name'); }else?>
<?php if($_REQUEST['ptype'] == 'register' || $_REQUEST['ptype'] == 'login'){ echo HEADER_LOGIN_REGISTRATION_SEO;?>&nbsp;|&nbsp;<?php bloginfo('name'); }else?>
<?php if($_GET['ptype'] == 'return' || $_GET['ptype'] == 'payment_success'){ echo HEADER_SUCCESS_PAGE_SEO;?>&nbsp;|&nbsp;<?php bloginfo('name'); }else?>
<?php if ( is_home() ) { ?><?php bloginfo('description'); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_search() ) { ?>Search Results&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_author() ) { ?>Author Archives&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name');?><?php } ?>
<?php if ( is_page() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name');?><?php } ?>
<?php if ( is_archive() ) { ?>
<?php 
if(is_category())
{
	single_cat_title();
}else
{
	global $wp_query, $post;
	$current_term = $wp_query->get_queried_object();	
	echo $current_term->name;	
}
?>
&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if ( is_month() ) { ?><?php the_time('F'); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
<?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php //single_tag_title("", true); 
} } ?>
</title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<?php if (is_home()) { ?>
<?php if ( get_option('ptthemes_meta_description') <> "" ) { ?>
<meta name="description" content="<?php echo stripslashes(get_option('ptthemes_meta_description')); ?>" />
<?php } ?>
<?php if ( get_option('ptthemes_meta_keywords') <> "" ) { ?>
<meta name="keywords" content="<?php echo stripslashes(get_option('ptthemes_meta_keywords')); ?>" />
<?php } ?>
<?php if ( get_option('ptthemes_meta_author') <> "" ) { ?>
<meta name="author" content="<?php echo stripslashes(get_option('ptthemes_meta_author')); ?>" />
<?php } ?>
<?php } ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<?php if ( get_option('ptthemes_favicon') <> "" ) { ?>
<link rel="shortcut icon" type="image/png" href="<?php echo get_option('ptthemes_favicon'); ?>" />
<?php } ?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('ptthemes_feedburner_url') <> "" ) { echo get_option('ptthemes_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php if ( get_option('ptthemes_scripts_header') <> "" ) { echo stripslashes(get_option('ptthemes_scripts_header')); } ?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/library/css/print.css" media="print" />
<link href="<?php echo bloginfo('template_url'); ?>/library/js/swfupload/default.css" rel="stylesheet" type="text/css" />
<link href="<?php bloginfo('template_directory'); ?>/library/css/slimbox.css" rel="stylesheet" type="text/css" />
<script src="<?php bloginfo('template_directory'); ?>/library/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/library/js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<link href="<?php bloginfo('template_directory'); ?>/library/css/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css" />
<?php
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );
?>
<?php wp_head(); ?>
<?php if ( get_option('ptthemes_customcss') ) { ?>
<link href="<?php bloginfo('template_directory'); ?>/custom.css" rel="stylesheet" type="text/css" />
<?php } ?>
</head>
<body <?php // body_class(); ?> >

<div id="top_strip">
	<div id="top_strip_in">
    	 <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Top Navigation') ){}else{  ?>
        <ul>
        	<li class="hometab <?php if ( is_home() && $_REQUEST['page']=='' ) { ?> current_page_item <?php } ?>"><a href="<?php echo get_option('home'); ?>/"><?php _e('Home'); ?></a></li>
           <?php 
	if(get_option('ptthemes_top_strip_pages') )
	{
		$top_strip_pages = implode(',',get_option('ptthemes_top_strip_pages'));
		wp_list_pages('title_li=&depth=0&include=' . $top_strip_pages . '&sort_column=menu_order');
	}
 ?>
        </ul>
        <?php }?>
      
      <span class="social_icon">  
       <?php if ( get_option('ptthemes_facebook_id') != "") { ?>
       <a href="<?php echo stripslashes(get_option('ptthemes_facebook_id'));  ?>" ><img src="<?php bloginfo('template_directory'); ?>/images/i_facebook.png" alt=""  /></a>
       <?php } ?>
       
        <?php if ( get_option('ptthemes_twitter_id') != "") { ?>
       <a href="<?php echo stripslashes(get_option('ptthemes_twitter_id'));  ?>" ><img src="<?php bloginfo('template_directory'); ?>/images/i_twitter.png" alt=""  /></a>
        <?php } ?>
        
       <a href="<?php if( get_option('ptthemes_feedburner_url')){echo get_option('ptthemes_feedburner_url');}else{ echo bloginfo('rss_url');} ?>" > <img src="<?php bloginfo('template_directory'); ?>/images/i_rss.png" alt=""  /></a>
       </span>
        
    </div>
</div>
 
 
 <div  id="header">
 	
     <div class="header_left">
    <?php if ( get_option('ptthemes_show_blog_title') ) { ?>
       <div class="blog-title"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a> 
             <p class="blog-description"><?php bloginfo('description'); ?></p>
       </div> 
    <?php } else { ?>
    <div class="logo"> 
    <a href="<?php echo get_option('home'); ?>/">
    <img src="<?php if ( get_option('ptthemes_logo_url') <> "" ) { echo get_option('ptthemes_logo_url'); } else { echo get_bloginfo('template_directory').'/skins/'.str_replace('.css','',get_option('ptthemes_alt_stylesheet')).'/logo.png'; } ?>" alt="<?php bloginfo('name'); ?>"   /></a>
      <p class="blog-description"><?php bloginfo('description'); ?></p>
      </div>      
    <?php } ?>
    </div> <!-- header left #end -->
    
     <?php if(get_option('is_user_eventlist')){ ?>
     <a class="b_sbumit" href="<?php echo get_option('siteurl'); ?>/?ptype=post_event"><?php _e('Submit Event');?> </a>
     <?php }?>
    
    <?php $total_events = get_total_events_count();
	if($total_events)
	{
	?>
   	<p class="general_statics">  <?php _e('Total Events');?> : <span><?php echo $total_events;?></span></p>
    <?php }?>
 </div>
 
 
   <div id="main_navi">
   <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Main Navigation') ){}else{  ?>
     <ul>
    <?php 
	if(get_option('ptthemes_main_nav_pages') )
	{
		$ptthemes_main_nav_pages = implode(',',get_option('ptthemes_main_nav_pages'));
		wp_list_pages('title_li=&depth=0&include=' . $ptthemes_main_nav_pages . '&sort_column=menu_order');
	}
 ?>
    <?php if(get_option('is_user_eventlist')=='0'){}else{ ?>
     <li class="<?php if($_REQUEST['ptype']=='post_event') { ?>current_page_item<?php } ?>" ><a href="<?php echo get_option('siteurl'); ?>/?ptype=post_event"><?php _e('Add Event');?></a></li>
     <?php }?>
     <?php  if(is_array(get_option('ptthemes_blogcategory')))
      {
		 $cat_arr = get_option('ptthemes_blogcategory');
		 if(is_array(get_option('ptthemes_blogcategory')) && $cat_arr[0]!='')
		 {
			$blog_cat = implode(',',get_option('ptthemes_blogcategory')); 
			$catlist =  wp_list_categories('title_li=&include=' . $blog_cat .'&echo=0'); 
			if(!strstr($catlist,'No categories'))
			{
				echo $catlist;
			}
		 }
	  }
      ?>
       <?php  if(is_array(get_option('ptthemes_eventcategory')))
      {
		 $cat_arr = get_option('ptthemes_eventcategory');
		 if(is_array(get_option('ptthemes_eventcategory')) && $cat_arr[0]!='')
		 {
        $blog_cat = implode(',',get_option('ptthemes_eventcategory')); 
        $catlist =  wp_list_categories('title_li=&include=' . $blog_cat .'&echo=0&taxonomy='.CUSTOM_CATEGORY_TYPE1); 
			if(!strstr($catlist,'No categories'))
			{
				echo $catlist;
			}
		 }
	  }
      ?>
 	</ul>
    <?php }?>
     <span class="nav_left"></span>
    <span class="nav_right"></span>
 </div>