<?=$this->doctype()?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?=$this->headTitle() . "\n" /* Newline for pretty source :) */ ?>
    <?=$this->headMeta() . "\n"  /* Newline for pretty source :) */ ?>
    <link rel="stylesheet" type="text/css" href="<?=$this->baseUrl()?>/css/reset.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?=$this->baseUrl()?>/css/default.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?=$this->baseUrl()?>/fancybox/jquery.fancybox-1.3.1.css" media="screen" />
    <?=$this->headScript() ?>
    <script type="text/javascript" src="<?=$this->baseUrl()?>/fancybox/jquery.fancybox-1.3.1.pack.js"></script>
    <?=$this->fancybox()->headScript() ?>
</head>
<body>
<div id="wrapper" class="small">

    <div id="header">
        <a href="<?=$this->baseUrl() ?>/"><span id="logo"></span></a>
    </div>

    <div id="nav"<?= ($this->renderMenu()->hasSubmenu()) ? ' class="wsub"' : '' ?>>
        <?=$this->renderMenu() ?>
        <span class="float-right">
            <?=$this->authLink() ?>
            |
            <a href="<?=$this->url(array('lang' => 'sv')) ?>">sv</a>
            <a href="<?=$this->url(array('lang' => 'en')) ?>">en</a>
        </span>
    </div>

    <?=$this->renderSubMenu() ?>

    <br/>
    <?=$this->layout()->content ?>
    
    <div id="footer">
        <span class="float-left">
            <a href="<?=$this->baseUrl() ?>/"><?=$this->app['name'] ?></a> v<?=$this->app['version'] ?> &copy; 2010-2013
        </span>

        <span class="float-right">
            <?=$this->BrowserString()?>
            <br />
            <a href="<?=$this->url(array('action' => 'about'),'default-default') ?>#cookies"><?=$this->translate('u:cookies')?></a> -
            <a href="<?=$this->url(array('action' => 'about'),'default-default') ?>#about"><?=$this->translate('uw:about')?></a>
        </span>
    </div>
</div>
</body>
</html>
