<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>The Orchard &#124; Artist &amp; Label Workstation &#124; Dashboard</title>
    <?php
    echo $this->headMeta();
    $this->loadcss();
    $this->loadjs();
    $script = 'DD_roundies.addRule("#modalTrackDetails #content", "20px", true);
               DD_roundies.addRule("#modalWindow", "20px", true);
               DD_roundies.addRule(".ui-widget-content", "20px", true);
               DD_roundies.addRule(".divider", "20px", true);
               startList = function() {
                   if (document.all&&document.getElementById) {
                        navRoot = document.getElementById("nav");
                        for (i=0; i<navRoot.childNodes.length; i++) {
                            node = navRoot.childNodes[i];
                            if (node.nodeName=="LI") {
                                node.onmouseover=function() {
                                    this.className+=" over";
                                }
                                node.onmouseout=function() {
                                    this.className=this.className.replace(" over", "");
                                }
                            }
                        }
                    }
                }';
    $this->inlineScript()->appendScript($script);
    echo $this->headTitle("Artist & Label Workstation");
    echo $this->headLink();
    echo $this->headStyle();
    echo $this->headScript();
    echo $this->inlineScript();
    $useragent = $_SERVER['HTTP_USER_AGENT'];
    if (preg_match('|MSIE ([0-9].[0-9]{1,2})|', $useragent, $matched)) {
        $browser_version=$matched[1];
        $browser = 'IE';
    } elseif (preg_match('|Opera ([0-9].[0-9]{1,2})|', $useragent, $matched)) {
        $browser_version=$matched[1];
        $browser = 'Opera';
    } elseif (preg_match('|Firefox/([0-9\.]+)|', $useragent, $matched)) {
        $browser_version=$matched[1];
        $browser = 'Firefox';
    } elseif (preg_match('|Safari/([0-9\.]+)|', $useragent, $matched)) {
        $browser_version=$matched[1];
        $browser = 'Safari';
    } else {
        // browser not recognized!
        $browser_version = 0;
        $browser= 'other';
    }
    $this->browser = $browser;
    $translate = Zend_Registry::get("Zend_Translate");
    ?>
    <!--[if lte IE 8]>
        <link href="/alw/styles/ie.css" media="screen" rel="stylesheet" type="text/css" >
    <![endif]-->
</head>
<!-- end head -->
<body id="mainBody">
    <?= $this->render('_header_redesign.phtml') ?> 
    <div class="container">
        <div class="row text-center">    
            <div class="main-content">
                <div class="row"></div>
                <?= $this->layout()->content ?>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <?php
    echo $this->render('_footer_redesign.phtml');
    echo $this->bottomScripts();
    ?>
</body>
</html>
