<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php bloginfo('name'); ?> <?php wp_title(' | ', true, 'left'); ?></title>
 
<?php if(get_option('reedwan_feedburner')): ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo get_option('reedwan_feedburner'); ?>" /> 
<?php endif; ?>

<?php if(get_option('reedwan_favicon')): ?>
<link rel="shortcut icon" href="<?php echo get_option('reedwan_favicon'); ?>" />
<?php endif; ?>
<!--Stylesheets-->
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/reset.css" type="text/css" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/text.css" type="text/css" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/960.css" type="text/css" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/js/colorbox/colorbox.css" type="text/css" />
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/style.css" type="text/css" />
<?php if(get_option('reedwan_style_color') == 'dark'): ?>
	<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/dark.css" type="text/css" />
<?php endif; ?>
<link rel="stylesheet" href="<?php echo get_template_directory_uri();?>/css/nivo-slider.css" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=<?php echo str_replace(' ', '+', get_option('reedwan_heading_font')); ?>|<?php echo str_replace(' ', '+', get_option('reedwan_navigation_font')); ?>|<?php echo str_replace(' ', '+', get_option('reedwan_tabs_font')); ?>" rel="stylesheet" type="text/css" />

<!--Jquery-->
<?php wp_enqueue_script('jquery'); ?>
<?php wp_enqueue_script('jCarouselLite', get_template_directory_uri(). '/js/jcarousellite_1.0.1.pack.js'); ?>
<?php wp_enqueue_script('TiktakCustom', get_template_directory_uri(). '/js/custom.js'); ?>
<?php wp_enqueue_script('nivo', get_template_directory_uri(). '/js/jquery.nivo.slider.pack.js'); ?>
<?php wp_enqueue_script('jquery.colorbox', get_template_directory_uri(). '/js/colorbox/jquery.colorbox-min.js'); ?>
<?php wp_enqueue_script('scrollTop', get_template_directory_uri(). '/js/scrolltopcontrol.js'); ?>
<?php wp_enqueue_script('Ticker', get_template_directory_uri(). '/js/jquery.li-scroller.1.0.js'); ?>

<!--CSS Options-->
<style type="text/css" media="screen">
	body, .magazine-widget .block-small h3, .block-tabs .description h3, .magazine-widget .block-small-noimage h3, .related-post h6, .postForm textarea { font-family: '<?php echo get_option('reedwan_general_font'); ?>'; }
	ul.tabs-sidebar li a, ul.tabs li a, .postForm .submit, .nav-left, .nav-right, .button a, .pagination, .nivoSlider a, .nivo-caption .date-info, .nivo-caption a, .comment-submit, .title-social, .commenters, .widget-footer-title, .single-title h1, .comment-author .name, .author-title a, .content-title p, .bottomNav a, .title-404 span, h1, h2, h3, h4, h5, h6 {
	font-family: '<?php echo get_option('reedwan_heading_font'); ?>';
	}
	.mainNav a, .bottomNav a { font-family: '<?php echo get_option('reedwan_navigation_font'); ?>'; }
    html {
        background-color:#<?php echo get_option('reedwan_bg_color'); ?>;
		<?php if (get_option('reedwan_pattern')!='none') {?>
		background-image:url('<?php bloginfo('template_directory'); ?>/images/patterns/<?php echo get_option('reedwan_pattern'); ?>.png');
		background-repeat:repeat;
		<?php }?>
    }
	 body {
	 	<?php if (get_option('reedwan_bg_image')) {?>
		background-color:transparent;
		background-image:url('<?php echo get_option('reedwan_bg_image'); ?>');
		background-repeat:no-repeat;
        background-attachment:fixed;
        background-position:<?php echo get_option('reedwan_img_position'); ?>;
		<?php }?>
		
    }
	.current-menu-parent a, .current-menu-item a  { color:#777; }
	.mainNav li  > ul li a:hover, .error_msg, readmore, a:hover, .single-content ul.tabs li a:hover, .single-content ul.tabs li a.active, h5.toggle a:hover, .nivo-caption a:hover{
	 	color:#<?php echo get_option('reedwan_color'); ?>;
	}
	.nivo-prevNav:hover { background:#<?php echo get_option('reedwan_color') ; ?> url('<?php bloginfo('template_directory'); ?>/images/nivo-left-arrow.png') no-repeat 50% 50%; }
	.nivo-nextNav:hover { background:#<?php echo get_option('reedwan_color'); ?> url('<?php bloginfo('template_directory'); ?>/images/nivo-right-arrow.png') no-repeat 50% 50%; }
	.tagcloud a:hover, .reply-comment:hover, .comment-submit:hover, .pagination a:hover, .pagination span.current, .postForm .submit:hover  { background:#<?php echo get_option('reedwan_color'); ?>; }
	.postForm .error { border: 1px solid #<?php echo get_option('reedwan_color'); ?>; }
	.header { position:relative; height:<?php echo get_option('reedwan_header_height'); ?>px; }
	.top { background:#<?php echo get_option('reedwan_color_top_bg'); ?>; }
	<?php if(get_option('reedwan_style_color') == 'dark'): ?>
		.spotlight-title { background:#<?php echo get_option('reedwan_spotlight_title_bg'); ?> url('<?php bloginfo('template_directory'); ?>/images/dark/side-title-spotlight.png') no-repeat right; }
	<?php endif; ?>
	<?php if(get_option('reedwan_style_color') == 'light'): ?>
		.spotlight-title { background:#<?php echo get_option('reedwan_spotlight_title_bg'); ?> url('<?php bloginfo('template_directory'); ?>/images/side-title-spotlight.png') no-repeat right; }
	<?php endif; ?>

</style>

<?php
wp_localize_script('ReedwanStyle', 'ReedwanVars', array(
	'ajaxUrl' => admin_url('admin-ajax.php'),
));
?>
<?php if(is_singular()) { wp_enqueue_script('comment-reply'); } ?>
<?php wp_head(); ?>

<script type='text/javascript'>
jQuery(window).load(function() {
	// Implementation of Nivo Slider
    jQuery('#slider').nivoSlider({
		effect: '<?php echo get_option('reedwan_slider_effect'); ?>',
		pauseTime: <?php echo get_option('reedwan_slider_speed'); ?>,
		controlNav: true,
        directionNav: true,
        directionNavHide: true,
		captionOpacity: <?php echo get_option('reedwan_slider_caption'); ?>
	});
	<?php if(get_option('reedwan_adds_toggle') == 'On'): ?>
	// Header Adds Toggle
	jQuery('.header-adds').hide();
	jQuery(".header-adds-toggle").click(function(){
	  jQuery(".header-adds").slideToggle("slow");
	  jQuery(this).toggleClass("active");
	});
	<?php endif; ?>
});
</script>

</head>

<body <?php body_class(); ?>>
<?php if(get_option('reedwan_show_top_container') == 'On'): ?>
<!-- Begin Top -->
<div class="top">
	<div class="top-wrap">
		<!-- Begin Top Navigation -->
		<div class="top-nav-wrapper">
			<?php wp_nav_menu(array('theme_location' => 'topNav', 'depth' => 1, 'fallback_cb' => false, 'menu_class' => 'topNav')); ?>
		</div>
		<!-- End Top Navigation -->
		<?php if(get_option('reedwan_show_date_time') == 'On'): ?>
		<!-- Begin Date -->
		<div class="datetime">
			<?php echo date('l dS F Y, '); ?>
			<span id="theTime"></span>
		</div>
		<!-- End Date -->
		<?php endif; ?>
	</div>
</div>
<!-- End Top -->
<?php endif; ?>
<!-- Begin General -->
<div class="general">
<div class="header-adds">
<a href='<?php echo get_option('reedwan_adds_url');?>'><img src="<?php echo get_option('reedwan_adds_image');?>" title="<?php echo get_option('reedwan_adds_title');?>" /></a>
<?php echo get_option('reedwan_adds_text');?>
</div>
<?php if(get_option('reedwan_adds_toggle') == 'On'): ?>
<a class="header-adds-toggle" href="#"></a>
<?php endif; ?>
<!-- Begin Container -->
<div class="container">
	<!-- Begin Top Container 960 gs -->
	<div class="header container_12">
			<!-- Begin Logo Header -->
			<div class="grid_4 logo-header">
				<?php
					if(get_option('reedwan_logo')) {
						$logo = get_option('reedwan_logo');
					}
					else if(get_option('reedwan_style_color')=='dark') {
						$logo = get_template_directory_uri() . '/images/dark/header-logo.png';
					}
					else if(get_option('reedwan_style_color')=='light')
					{
						$logo = get_template_directory_uri() . '/images/header-logo.png';	
					}								
				?>
				<a href='<?php echo home_url(); ?>'><img src="<?php echo $logo; ?>" alt="<?php bloginfo('name'); ?>" /></a>
			</div>
			<!-- End Logo Header -->	
			<!-- Begin Header Content -->
			<div class="grid_8 prefix_4 header-content">
				<?php if(get_option('reedwan_show_search_header') == 'On'): ?>
				<!-- Begin Search Header -->
				<div class="search-header">
					<form method="get" id="search" action="<?php echo home_url(); ?>/">
						<div><input type="text" name="s" id="s" value="<?php _e('Search the site ...','Backstreet'); ?>" onfocus='if (this.value == "<?php _e('Search the site ...', 'Backstreet'); ?>") { this.value = ""; }' onblur='if (this.value == "") { this.value = "<?php _e('Search the site ...', 'Backstreet'); ?>"; }' /></div>
						<div><button type="submit" id="searchbutton">Go</button></div>
					</form>
				</div>
				<!-- End Search Header -->
				<?php endif; ?>	
				
				<?php if(get_option('reedwan_show_social_header') == 'On'): ?>
				<!-- Begin Social Header -->
				<div class="social-header">
					<ul>
						<?php if(get_option('reedwan_feedburner')): ?>
							<li class="rss"><a href="<?php echo get_option('reedwan_feedburner'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_twitter_id')): ?>
							<li class="twitter"><a href="http://www.twitter.com/<?php echo get_option('reedwan_twitter_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_facebook_id')): ?>
							<li class="facebook"><a href="http://www.facebook.com/<?php echo get_option('reedwan_facebook_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_google_id')): ?>
							<li class="google"><a href="http://www.plus.google.com/<?php echo get_option('reedwan_facebook_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_vimeo_id')): ?>
							<li class="vimeo"><a href="http://www.vimeo.com/<?php echo get_option('reedwan_vimeo_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_youtube_id')): ?>
							<li class="youtube"><a href="http://www.youtube.com/<?php echo get_option('reedwan_youtube_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_flickr_id')): ?>
							<li class="flickr"><a href="http://www.flickr.com/<?php echo get_option('reedwan_flickr_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_deviantart_id')): ?>
							<li class="deviantart"><a href="http://www.deviantart.com/<?php echo get_option('reedwan_deviantart_id'); ?>"></a></li>
						<?php endif; ?>
						<?php if(get_option('reedwan_linkedin_id')): ?>
							<li class="linkedin"><a href="http://www.linkedin.com/<?php echo get_option('reedwan_linkedin_id'); ?>"></a></li>
						<?php endif; ?>
					</ul>
				</div>
				<!-- End Social Header -->
				<?php endif; ?>	
			</div>
			<!-- End Header Content -->
	</div>
	<!-- End Top Container 960 gs -->
	<div class="container_12">
		<!-- Begin Main Navigation -->
		<div class="grid_12 main-nav-wrapper">
			<?php wp_nav_menu(array('theme_location' => 'mainNav', 'depth' => 3, 'fallback_cb' => false, 'menu_class' => 'mainNav')); ?>
		</div>
		<!-- End Main Navigation -->
	</div>
	<div class="clear"></div>
	<div class="line-head"></div>
	<div class="clear"></div>
	<?php if(get_option('reedwan_show_spotlight') == 'On' && get_option('reedwan_spotlight_tags')): ?>
		<!-- Begin Spotlight -->
		<div class="side-corner">
			<div class="spotlight">
				<?php get_template_part('includes/spotlight'); ?>
			</div>
		</div>
		<!--End Spotlight -->
	<?php endif; ?>	
	<?php get_template_part('includes/full-featured'); ?>
	<div class="clear"></div>
	<!-- Begin Bottom Container 960 gs -->
	<div class="container_12 wrapper">
	
	
	
			
			
			
			
			
			
				
				
	
		
			