function vle_showheader($sel)
{
    echo "<script type=\"text/javascript\" src=\"/includes/header.js\"></script>\r\n";
    echo "<script type=\"text/javascript\" src=\"/includes/ioemenu.js\"></script>\r\n";
    echo "<div id=\"ou-topbars\">";
    echo "<div id=\"ou-lhs2\"><a href=\"http://www.open.ac.uk/\"><img src=\"/includes/oulogo_hor.gif\" alt=\"The Open University\" width=\"53\" height=\"38\" /></a><a id=\"ou-skip5\" href=\"#ou-content\">Skip to content</a></div>\r\n";
    echo "<div id=\"ou-rhs\">\r\n";
    echo "<div id=\"ou-row1a\"><ul><li><a id=\"ou-ouhome\" href=\"http://www.open.ac.uk/\">OU Home</a></li><li><a id=\"ou-study\" href=\"http://www3.open.ac.uk/study/\">Study at the OU</a></li><li><a id=\"ou-about\" href=\"http://www3.open.ac.uk/about/\">About the OU</a></li><li><a id=\"ou-research\" href=\"http://www.open.ac.uk/research/\">Research at the OU</a></li><li><a id=\"ou-search\" href=\"http://www.open.ac.uk/search\">Search</a></li><li><a id=\"ou-contact\" href=\"http://www3.open.ac.uk/contact/\">Contact the OU</a></li></ul></div>\r\n";
    echo "<div id=\"ou-row3a\"><div id=\"ou-row3b\"></div> &nbsp; <a href=\"http://www.open.ac.uk/accessibility/\" id=\"ou-access\">Accessibility</a></div>\r\n";
    echo "</div><div id=\"ou-row5\"></div></div><div id=\"tsxcontent\">\r\n";
    // We only display the menu if a student, or the P14MENU cookie is present (in which case all links go to alias site)
    $e = error_reporting(E_ERROR);
    $fm = $_COOKIE["P14MENU"];
    error_reporting($e);
    if ($fm != "Y" && getenv("HTTP_SAMS_STUDENTPI") == "00000000") {
        return;
    }
    $urlhead = "https://msds";
    if ($fm == "Y") {
        $urlhead = "http://csintra1";
    }
    echo "<script type=\"text/javascript\">//<![CDATA[\r\n";
    vle_createmenuvariables();
    echo "//]]></script>\r\n";
    echo "<div id=\"ioemenu\">";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/index.aspx\" id=\"ioem1\" ";
    if ($sel == 1) {
        echo "class=\"selected\" ";
    }
    echo "onmouseover=\"ioe_showmenu(-1)\" onclick=\"ioe_click()\">Home</a><img src=\"/includes/ioemenu_div.jpg\" style=\"vertical-align:top\" alt=\"\" />";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/personal.aspx\" id=\"ioem2\" ";
    if ($sel == 2) {
        echo "class=\"selected\" ";
    }
    echo "onmouseover=\"ioe_showmenu(-1)\" onclick=\"ioe_click()\">Profile</a><img src=\"/includes/ioemenu_div.jpg\" style=\"vertical-align:top\" alt=\"\" />";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/courselist.aspx\" id=\"ioem3\" ";
    if ($sel == 3) {
        echo "class=\"selected\" ";
    }
    echo "onmouseover=\"ioe_showmenu(1)\" onmouseout=\"ioe_hidemenu()\" onclick=\"ioe_click()\">Courses</a><img src=\"/includes/ioemenu_div.jpg\" style=\"vertical-align:top\" alt=\"\" />";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/quallist.aspx\" id=\"ioem4\" ";
    if ($sel == 5) {
        echo " class=\"selected\"";
    }
    echo "onmouseover=\"ioe_showmenu(2)\" onmouseout=\"ioe_hidemenu()\" onclick=\"ioe_click()\">Qualifications</a><img src=\"/includes/ioemenu_div.jpg\" style=\"vertical-align:top\" alt=\"\" />";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/resources.aspx\" id=\"ioem5\" ";
    if ($sel == 6) {
        echo " class=\"selected\"";
    }
    echo "onmouseover=\"ioe_showmenu(3)\" onclick=\"ioe_click()\">Study support</a><img src=\"/includes/ioemenu_div.jpg\" style=\"vertical-align:top\" alt=\"\" />";
    echo "</div><div id=\"ioemenu2\"></div><script type=\"text/javascript\">//<![CDATA[\nioe_createmenus();\r\n//]]></script>";
}
function vle_showheader($sel)
{
    echo "<script type=\"text/javascript\" src=\"/includes/header.js\"></script>\r\n";
    echo "<script type=\"text/javascript\" src=\"/includes/ioemenu2.js\"></script>\r\n";
    echo "<div id=\"ou-topbar\">";
    echo "<div id=\"ou-lhs\"><a href=\"http://www.open.ac.uk/\"><img src=\"/includes/oulogo_hor.gif\" alt=\"The Open University\" width=\"53\" height=\"38\" /></a><a id=\"ou-skip2\" href=\"#ou-content\">Skip to content</a></div>";
    echo "<div id=\"ou-rhs\">";
    echo "<div id=\"ou-row1\"><ul><li><a id=\"ou-ouhome\" href=\"http://www.open.ac.uk/\">OU Home</a></li><li><a id=\"ou-study\" href=\"http://www3.open.ac.uk/study/\">Study at the OU</a></li><li><a id=\"ou-about\" href=\"http://www3.open.ac.uk/about/\">About the OU</a></li><li><a id=\"ou-research\" href=\"http://www.open.ac.uk/research/\">Research at the OU</a></li><li><a id=\"ou-search\" href=\"http://www.open.ac.uk/search\">Search</a></li><li><a id=\"ou-contact\" href=\"http://www3.open.ac.uk/contact/\">Contact the OU</a></li></ul></div>";
    echo "<div id=\"ou-row2\">&nbsp;</div>";
    echo "<div id=\"ou-row3\"><img src=\"/includes/img/audio-left.gif\" width=\"7\" height=\"11\" alt=\"\" id=\"ou-audiol\" /><a href=\"http://www.open.ac.uk/browsealoud/\" id=\"ou-listen\">Listen to this page</a><img src=\"/includes/img/audio-right.gif\" width=\"7\" height=\"11\" alt=\"\" id=\"ou-audior\" /> <a href=\"http://www.open.ac.uk/accessibility/\" id=\"ou-access\">Accessibility</a></div>";
    echo "</div><div id=\"ou-row5\"></div></div><div id=\"tsxcontent\">";
    // We only display the menu if a student, or the P14MENU cookie is present (in which case all links go to alias site)
    $e = error_reporting(E_ERROR);
    $fm = $_COOKIE["P14MENU"];
    error_reporting($e);
    if ($fm != "Y" && getenv("HTTP_SAMS_STUDENTPI") == "00000000") {
        return;
    }
    $urlhead = "https://msds";
    if ($fm == "Y") {
        $urlhead = "http://csintra1";
    }
    echo "<div id=\"ioemenu\">";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/index.aspx\" class=\"ioem1\">Home</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/profile.aspx\" class=\"ioem2";
    if ($sel == 2) {
        echo " ioes2";
    }
    echo "\">Profile</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/courselist.aspx\" class=\"ioem2";
    if ($sel == 3) {
        echo " ioes2";
    }
    echo "\" onmouseover=\"ioe_showmenu(3)\" onmouseout=\"ioe_hidemenu()\" onclick=\"ioe_hidemenu()\">Courses</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/quallist.aspx\" class=\"ioem2";
    if ($sel == 4) {
        echo " ioes2";
    }
    echo "\" onmouseover=\"ioe_showmenu(4)\" onmouseout=\"ioe_hidemenu()\" onclick=\"ioe_hidemenu()\">Qualifications</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/studysupport.aspx\" class=\"ioem2\">OU Life</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/resources.aspx\" class=\"ioem3\">Study support</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/faq.aspx\" class=\"ioem4\">FAQs</a>";
    echo "</div><div id=\"ioemenu2\"></div><div style=\"clear:both;\"></div><script type=\"text/javascript\">//<![CDATA[\n";
    vle_createmenuvariables();
    echo "\nioe_createmenus();\r\n//]]></script>";
}
function vle_showheader($sel)
{
    echo "<script type=\"text/javascript\" src=\"/includes/header-vle.js\"></script>\r\n";
    echo "<script type=\"text/javascript\">if (typeof window.ou_sitestat=='function')ou_sitestat();</script>";
    echo "<script type=\"text/javascript\" src=\"/includes/ioxmenu-vle.js\"></script>\r\n";
    echo "<div id=\"ouskip\"><a id=\"ou-skip5\" href=\"#ou-content\">Skip to content</a></div><div id=\"ouheader\" class=\"wide\">\r\n";
    echo "<a href=\"http://www.open.ac.uk/\"><img src=\"/includes/headers-footers/oulogo-56.jpg\" alt=\"The Open University\" width=\"83\" height=\"56\" id=\"ounewlogo\" /></a>\r\n";
    echo "<ul id=\"ouheader1\"><li class=\"first\"><a href=\"http://www.open.ac.uk/browsealoud/\">Listen to this page</a></li><li><a href=\"http://www.open.ac.uk/accessibility/\">Accessibility</a></li><li id=\"ou-person\" class=\"hide\"></li><li id=\"ou-studenthome\" class=\"hide\"><a href=\"https://msds.open.ac.uk/students/\">StudentHome</a></li><li id=\"ou-tutorhome\" class=\"hide\"><a href=\"https://msds.open.ac.uk/tutorhome/\">TutorHome</a></li><li id=\"ou-intranet\" class=\"hide\"><a href=\"http://intranet.open.ac.uk/oulife-home/\">IntranetHome</a></li><li id=\"ou-signout\" class=\"hide\"><a class=\"ou-key\" href=\"https://msds.open.ac.uk/signon/samsoff.aspx\">Sign out</a></li><li id=\"ou-signin1\"><a class=\"ou-key\" id=\"ou-signin2\" href=\"https://msds.open.ac.uk/signon/sams001.aspx\">Sign in</a></li><li><a href=\"http://www3.open.ac.uk/contact/\">Contact us</a></li></ul>\r\n";
    echo "<ul id=\"ouheader2\"><li class=\"first\"><a href=\"http://www.open.ac.uk/\">The Open University</a></li><li><a href=\"http://www3.open.ac.uk/study/\">Study at the OU</a></li><li><a href=\"http://www3.open.ac.uk/about/\">About the OU</a></li><li><a href=\"http://www.open.ac.uk/research/\">Research at the OU</a></li><li><a href=\"http://www.open.ac.uk/search\">Search the OU</a></li></ul>\r\n";
    echo "</div><div style=\"clear:both\"></div><div>\r\n";
    // We only display the menu if a student, or the P14MENU cookie is present (in which case all links go to alias site)
    $e = error_reporting(E_ERROR);
    $fm = $_COOKIE["P14MENU"];
    $sc = $_COOKIE["SAMS2session"];
    error_reporting($e);
    if ($fm != "Y" && strpos($sc, "samsStudentPI=") == FALSE) {
        vle_showtutorhomeheader();
        return;
    }
    $urlhead = "https://msds";
    if ($fm == "Y") {
        $urlhead = "http://csintra1";
    }
    echo "<div id=\"fsvlemenu\">";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/index.aspx\" class=\"fsvlem1\">StudentHome</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/profile.aspx\" class=\"fsvlem2";
    if ($sel == 2) {
        echo " fsvles2";
    }
    echo "\">Profile</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/courselist.aspx\" class=\"fsvlem3";
    if ($sel == 3) {
        echo " fsvles3";
    }
    echo "\" onmouseover=\"ioe_showmenu(3)\" onmouseout=\"ioe_hidemenu()\" onclick=\"ioe_hidemenu()\">Modules</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/quallist.aspx\" class=\"fsvlem4";
    if ($sel == 4) {
        echo " fsvles4";
    }
    echo "\" onmouseover=\"ioe_showmenu(4)\" onmouseout=\"ioe_hidemenu()\" onclick=\"ioe_hidemenu()\">Qualifications</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/studysupport.aspx\" class=\"fsvlem3\">OU Life</a>";
    echo "<a href=\"" . $urlhead . ".open.ac.uk/students/help.aspx\" class=\"fsvlem5\">Help</a>";
    echo "</div><div id=\"fsvlemenu2\"></div><div style=\"clear:both;\"></div><script type=\"text/javascript\">//<![CDATA[\n";
    vle_createmenuvariables();
    echo "\nioe_createmenus();\r\n//]]></script>";
}