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

    File:               maximize.asp
    Description:
    Parameters:         allerlei custom parameters
    Context:            Vanuit ge
    Note:               De tekening staat in een andere directory (S("fg_vlucht_path")) maar moet dezelfde bestandsnaam hebben
                        als de gewone FG plattegrondtekening.
*/
 %>
<!--#include file="../Shared/common.inc" -->
<!--#include file="../slnkdwf/Slnk2IMG.inc" -->
<%
  FCLTHeader.Requires({ plugins: ["jQuery"],
                        js: ["jquery-ui.js"],
                        css: []});
%>
<html style="overflow: hidden">
<head>
    <% FCLTHeader.Generate(); %>
</head>

<script type="text/javascript">
function myRefresh()
{
    MMap.Reset();
    MMap.SetIMGGenerator("../CAD/mySlnk2IMG.asp");
    MMap.SetPaperColor(<%=S("fg_paperColor")%>);
    MMap.SetCustomParameters("<%=transitQS()%>")

    MMap.Refresh(true); // Do zoom extents
}

function resizeIframes()
{
    $('#MMap').height($(window).height());
};

function init()
{
    resizeIframes();
    myRefresh();
    var timerID=null;
    window.onresize = function()
    {
    	if (timerID) clearTimeout(timerID);
        timerID = setTimeout(resizeIframes, 100);// use a delay for IE because the resize event fires repeatly
    }
};

</script>

<body onload="init();" style="border:0;padding:0;margin:0;overflow: hidden">
<iframe id=MMap name=MMap src='../SlnkDWF/ToonIMG.asp?ShowButtons'
        frameborder='0' framespacing='0' scrolling='no' width='100%' height='100%' valign='center'>
</iframe>
</body>

</html>
