<?php

$favIco = $favIcon = "";
if (file_exists("./favicon.ico"))
	$favIco = "favicon.ico";
if (file_exists("./favicon.png"))
	$favIco = "favicon.png";
if (strlen($favIco) > 0)
$favIcon = '<link rel="shortcut icon" href="'.$_path['url'] . $favIco.'" />'."\n";
/*
 * TODO prisposobit lang element
 */
?>

<!DOCTYPE HTML>
<html lang="en">
	<head>
		<title><?=$_cfg['page_title']?></title>
		<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
		
		<?=$favIcon?>
		<?php if (!isset($this) || !$this->oSession->logged())  {?>
		<link rel="Stylesheet" type="text/css" media="screen" href="<?=$_path['styles']?>baseOut.css" />
		<link rel="Stylesheet" type="text/css" media='screen and (min-width: 601px)' href="<?=$_path['styles']?>styleOut.css" />
		<link rel="Stylesheet" type="text/css" media='screen  and (max-width: 600px)' href="<?=$_path['styles']?>styleOutMin.css" />
		<?php }else {?>
		<link rel="Stylesheet" type="text/css" media="screen" href="<?=$_path['styles']?>baseIn.css" />
		<link rel="Stylesheet" type="text/css" media='screen and (min-width: 601px)' href="<?=$_path['styles']?>styleIn.css" />
		<link rel="Stylesheet" type="text/css" media='screen  and (max-width: 600px)' href="<?=$_path['styles']?>styleInMin.css" />
		<?php }?>
		<link rel="Stylesheet" type="text/css" media="print" href="<?=$_path['styles']?>print.css" />
		<link rel="stylesheet" type="text/css"  href="<?=$_path['styles']?>font-awesome.min.css">
		<!--[if lt IE 7]>
			<link rel="stylesheet" type="text/css" href="<?=$_path['styles']?>font-awesome-ie7.min.css">
			<link rel="Stylesheet" type="text/css" media="screen" href="<?=$_path['styles']?>ie.css" />
			<style type="text/css" media="screen">
				body {
					behavior: url("<?=$_path['styles']?>csshover2.htc");
				}
				img {
					behavior: url("<?=$_path['styles']?>pngbehavior.htc");
				}
			</style>
		<![endif]-->
		<!--[if IE 7]>
			<link rel="Stylesheet" type="text/css" media="screen" href="<?=$_path['styles']?>ie7.css" />
		<![endif]-->
		<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
		<script src="/html/scripty.js"></script>
		<script src="/core/tmpl/jquery-ui-1.10.3.custom.min.js"></script>
		<link rel="Stylesheet" type="text/css" media="print" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
		
		
	</head>
	<body class="BODY_CLASS">
	
	<div id="page">
