<?php $elegantwhite_options = get_option('elegantwhite_options'); ?>
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head profile="http://gmpg.org/xfn/11">
<link rel="profile" href="http://gmpg.org/xfn/11" />
<meta name="viewport" content="width=device-width">
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>;chartset=<?php bloginfo('charset'); ?>" />
<meta charset="<?php bloginfo('charset'); ?>">
<title><?php wp_title(); ?></title>

<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>

<div id="line"></div>
<div id="container">

	<?php if ( isset($elegantwhite_options['search_ac']) and esc_attr( $elegantwhite_options['search_ac'] ) == "1" ) : ?>
  <div id="search"><?php get_search_form(); ?></div>
  <?php endif; ?>

	
	<div id="blogtitle"><a class="heading" href="<?php echo esc_url( home_url() ); ?>"><?php echo bloginfo('name'); ?></a></div>
	<div id="blogdescription"><?php echo bloginfo('description'); ?></div>
	
	<div id="button">Show Menu</div>
	
	<?php if ( isset($elegantwhite_options['lines_ac']) && $elegantwhite_options['lines_ac'] == "1" ) : ?><div class="naviline-one"></div><?php endif; ?>
	<div id="nav">
	<ul class="nav">
	<?php wp_nav_menu( array('theme_location' => 'header-nav', 'depth' => -1, 'menu_class' => 'nav' )); ?>
	</ul>
	</div><div id="clear"></div>
	<?php if ( isset($elegantwhite_options['lines_ac']) && esc_attr( $elegantwhite_options['lines_ac'] ) == "1" ) : ?><div class="naviline-two"></div><?php endif; ?>


	<div id="clear"></div>
	


	
	<div id="header-settings"><?php $header_image = get_header_image();
				if ( $header_image ) : ?>
	<img class="header" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt=""><?php if ( isset( $elegantwhite_options['bild_text'] ) && ! empty($elegantwhite_options['bild_text']) ) { echo '<div id="slogan">'; echo esc_html( $elegantwhite_options['bild_text'] ); echo '</div><div class="space"></div>'; } else { echo '<div class="space2"></div>'; } ?>
	</div><?php endif; ?>