<?php include_once 'init.php'; ?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
	<meta name="fragment" content="!">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title><?php echo isset($i18n->web_title) ? $i18n->web_title : '' ?></title>
	<meta name="description" content="<?php echo isset($i18n->web_description) ? $i18n->web_description : '' ?>"/>
	<meta name="author" content="Etermax"/>
	<meta name="keywords" content="<?php echo isset($i18n->web_keywords) ? $i18n->web_keywords : '' ?>"/>

	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" >
	<link type="text/css" rel="stylesheet" href="<?php echo $config['static_content_url']; ?>styles/bootstrap.css" />
	<link href='http://fonts.googleapis.com/css?family=Ubuntu:300,500|PT+Sans:400,700' rel='stylesheet' type='text/css'>
	<?php $application->putCsss($config['static_content_url']); ?>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="format-detection" content="telephone=no">
	
	<?php 
		$web = '';
		if (isset($i18n->web)) {
			$web = !preg_match('/^http/', $i18n->web) ? 'http://' . $i18n->web : $i18n->web;
		}
	?>
	
	<meta property="og:url" content="<?php echo $web; ?>" />
	<meta property="og:title" content="<?php echo isset($i18n->web_title) ? $i18n->web_title : '' ?>" />
	<meta property="og:type" content="game" />
	<meta property="og:image" content="<?php echo isset($i18n->web_icon) ? $i18n->web_icon : '' ?>" />
	<meta property="og:site_name" content="<?php echo isset($i18n->web_title) ? $i18n->web_title : '' ?>" />
	<meta property="og:description" content="<?php echo isset($i18n->web_description) ? $i18n->web_description : '' ?>" />

	<link rel="shortcut icon" href="<?php echo $config['static_content_url']; ?>img/<?php echo $localization; ?>/favicon.ico" />

	<script> var app_config = <?php echo json_encode($config); ?>; </script>
	<script src="<?php echo $config['static_content_url']; ?>javascripts/vendor.js"></script>
</head>
<body>

	<div id='fb-root'></div>

	<div class="main-container"></div>

	<script src="<?php echo $config['static_content_url']; ?>javascripts/app.js"></script>

	<script type="text/javascript">
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', '<?php echo $gAnalytics; ?>']);
	_gaq.push(['_trackPageview']);

	(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
	</script>
</body>
</html>