<!DOCTYPE html><!-- HTML 5 -->
<html <?php language_attributes(); ?>>

<head>
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<link href='http://fonts.googleapis.com/css?family=Cantarell' rel='stylesheet' type='text/css'>

	<title><?php bloginfo('name'); if(is_home() || is_front_page()) { echo ' - '; bloginfo('description'); } else { wp_title(); } ?></title>

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<div id="wrapper">
	<div id="header">
	
		<div id="topnavi">
			<?php 
			// Get Top Navigation out of Theme Options
				wp_nav_menu(array('theme_location' => 'top_navi', 'container' => false, 'echo' => true, 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0));
			?>
			<div id="topnavi_icons">
				<?php locate_template('/includes/plugins/socialmedia_icons.php', true); ?>
				<div class="clear"></div>
			</div>
			
		</div>

		<div id="head">
			<div id="head_left">
				<?php 
				$options = get_option('themezee_options');
				if ( isset($options['themeZee_logo']) and $options['themeZee_logo'] <> "" ) { ?>
					<a href="<?php echo home_url(); ?>"><img src="<?php echo esc_url($options['themeZee_logo']); ?>" alt="Logo" /></a>
				<?php } else { ?>
					<a href="<?php echo home_url(); ?>/"><h1><?php bloginfo('name'); ?></h1></a>
				<?php } ?>
			</div>
			<div id="head_right">
				<?php 
				$options = get_option('themezee_options');
				if ( isset($options['themeZee_ad_big_url']) and $options['themeZee_ad_big_url'] <> "" ) { ?>
					<a href="<?php echo esc_url($options['themeZee_ad_big_url']); ?>"><img src="<?php echo esc_url($options['themeZee_ad_big_image']); ?>" alt="banner" /></a>
				<?php } ?>
			</div>
			<div class="clear"></div>
		</div>

		<div id="navi">
			<?php 
			// Get Main Navigation out of Theme Options
				wp_nav_menu(array('theme_location' => 'main_navi', 'container' => false, 'echo' => true, 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0));
			?>
		</div>
		<div class="clear"></div>

	</div>		
	
		<?php if( get_header_image() != '' ) : ?>
			<div id="custom_header">
				<img src="<?php echo get_header_image(); ?>" />
			</div>
		<?php endif; ?>

