<?php
/**
 * The Header template for our theme
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package CMSSuperHeroes
 * @subpackage CMS Theme
 * @since 1.0.0
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
<?php 
	$userAgent = $_SERVER['HTTP_USER_AGENT'];
	
	$isFirefox = (strstr($userAgent, 'Firefox')) ? 1 : 0 ;
	$isSafari  = (strstr($userAgent, 'Safari')) ? 1 : 0 ;
	$isOpera   = (strstr($userAgent, 'Opera')) ? 1 : 0 ;
	$isMsie	= (strstr($userAgent, 'MSIE')) ? 1 : 0 ;
	$isMsie6   = (strstr($userAgent, 'MSIE 6.0'))? 1 : 0; # IE 6
	$isMsie7   = (strstr($userAgent, 'MSIE 7.0'))? 1 : 0; # IE 7
	$isMsie8   = (strstr($userAgent, 'MSIE 8.0'))? 1 : 0; # IE 8
	$isMsie9   = (strstr($userAgent, 'MSIE 9.0'))? 1 : 0; # IE 9
	$isChrome  = (strstr($userAgent, 'Chrome'))? 1 : 0;
	
	if($isSafari){
	?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title, .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isOpera){
	 ?>
	 <style>
		#nav-wrap ul a, *, html, body, div, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isMsie){
	 ?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div, 
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isMsie6){
	 ?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isMsie7){
	 ?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isMsie8){
	 ?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isMsie9){
	 ?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}
	 </style>
	 <?php } 
	 if($isChrome){
	 ?>
	 <style>
		#nav-wrap ul a, h1, h2, h3, h4, h5, h6, div,
		span, a, p, strong, ul, li, .title .widget-container a, .widget-container, .tabs-widget li a {
			font-family: 'Zawgyi-One-20071230' !important;
		}	 
	 </style>
 <?php } ?><!--#pyaeshin-->
</head>
<body id="cms-theme" <?php body_class('header-'.wp_yellow_hats_header_class() .' '. wp_yellow_hats_body_class() . ' ' . wp_yellow_hats_body_border_class() . ' '); ?>>
<?php 
	wp_yellow_hats_get_page_loading(); 
	wp_yellow_hats_body_border();
?>
<div id="page-wrapper" class="<?php wp_yellow_hats_page_class(); ?>">
	<header id="masthead" class="site-header">
		<?php wp_yellow_hats_header(); ?>
	</header><!-- #masthead -->
    <?php wp_yellow_hats_page_title(); ?>
	<div id="main">