<%@ language = "JavaScript" %>
<% /*
     $Revision$
     $Id$

     File:    pda/facilitor.asp
              The content panel of the Facilitor Mobile portal page
     Status:  Gereed
     Context: redirected from /default.asp if mobile device is detected.
     Parameters: -

     - het menu toont die opties waarvoor user_key geautoriseerd is.

*/

var orghome = Session("ORGHOME");
if (orghome) // Share and meet
{
    //Session.Contents.Remove("ORGHOME"); gewoon laten staan voor als iemand 'back' drukt
    Response.Redirect(orghome);
}

%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/login.inc" -->
<!-- #include file="../FAC/fac.inc" -->
<!-- #include file="../FAC/fac_menu.inc" -->
<!-- #include file="../prs/prs.inc" -->
<!-- #include file="./mobile.inc" -->
<!-- #include file="./iface.inc" -->
<html>
<head>
<%
if (user.isGroupedUser() || Session("login_by_fallback"))
{
    doLogoff(); // Niets te zoeken hier
    shared.simpel_page(L("lcl_no_auth"));
}

if (!CurrentPosition && S("mobile_position_required") == 1)
{
    // Eerst de huidige locatie aangeven voordat het menu getoond wordt.
    Response.Redirect('setlocation.asp');
}

FCLTMHeader.Generate({title: L("lcl_mobile_title") });
var thisUser = prs.prs_perslid(user_key, { withPhoto: true });
%>
    <link rel="SHORTCUT ICON" href="<%= rooturl + "/" + S("fac_favicon_folder") %>/favicon.ico">
    <link rel="apple-touch-icon"                 href="<%= rooturl + "/" + S("fac_favicon_folder") %>/Icon-60@2x.png" />
    <link rel="apple-touch-icon" sizes="180x180" href="<%= rooturl + "/" + S("fac_favicon_folder") %>/Icon-60@3x.png" />
    <link rel="apple-touch-icon" sizes="152x152" href="<%= rooturl + "/" + S("fac_favicon_folder") %>/Icon-76@2x.png" />
</head>
<body>
<%
    PAGE_START()
    HEADER ({nohome: true, search:true, location: (S("mobile_position_required") == 1)});
    CONTENT_START();

    generateMenu(4);
    mobile.locationnews();

    CONTENT_END();
    FOOTER({mswitch: true, banner: true, nousername:true, thisuser:thisUser});
    PAGE_END()
%>
</body>
</html>