  <?php get_template_part('header');?>
  <body id="home" <?php body_class();?>>
 	<?php get_template_part('topbar');?>
    <div class="wrapper" id="topcontent">
    	<div class="container">
        
        	<div id="header">
            	<?php if ( function_exists( 'ot_get_option' ) && ot_get_option( 'logo_image' ) ){ 
				$logo = ot_get_option( 'logo_image' ); 
				$size = getimagesize($logo);
				?>
				<div class="logo"><a href="#" style="background:url(<?php echo esc_url($logo); ?>); padding-left:<?php echo esc_html($size[0]); ?>px; height:<?php echo esc_html($size[1]); ?>px"><?php echo esc_html(get_bloginfo( "name" ));?></a></div>
				<?php }else{?>
                <div class="logo"><a href="#"><?php echo esc_html(get_bloginfo( "name" ));?></a></div>
                <?php } ?>
             	<div class="phonemenu"><span class="glyphicon glyphicon-align-justify"></span></div>
                <?php wp_nav_menu( array('container' => '','theme_location' => 'main-menu' )); ?>
            </div>
            
        </div>
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="100000">
            <div id="plancarousel" class="carousel-inner" role="listbox">
            
            	<div class="row-fluid item active">
					<?php while ( have_posts() ) : the_post();?>
                    <?php the_content();?>
                    <?php endwhile;?>
                </div>
                
            </div>
             <!-- Controls -->
              <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left"></span>
                <span class="sr-only">Previous</span>
              </a>
              <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right"></span>
                <span class="sr-only">Next</span>
              </a>

        </div>

    </div>
 <?php get_template_part('footer');?>