<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?><?php if(th_theme_data('enable_rtl_layout') == true) { echo 'dir="rtl"'; } ?> > <!--<![endif]-->
    <head>
        <!-- Meta Tags -->        
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
        <!--[if IE]><meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'><![endif]-->
        <meta name="viewport" content="width=device-width, initial-scale=1">
		<title><?php wp_title('|', true, 'right'); ?></title>
		<link rel="profile" href="http://gmpg.org/xfn/11"/>
		<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <link rel="shortcut icon" href="<?php $favicon=th_theme_data('favicon'); echo esc_url($favicon['url']); ?>" type="image/x-icon">

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

        <?php if(th_theme_data('preloader') == 1): ?>
            <!--Start Preloader-->
            <div id="preloader">
                <div class="preloader-container">
                    <div class="spinner">
                        <div class="bounce1"></div>
                        <div class="bounce2"></div>
                        <div class="bounce3"></div>
                    </div>
                </div>
            </div>
            <!-- End Preloader-->
        <?php endif;?>

        <?php th_theme_nav() ?>