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

    File:               maximize.asp
    Description:        Show the drawing full screen    
    Parameters:         allerlei custom parameters
    Context:            Maximize vanuit Graphics
*/
 %>
<!--#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(); %>
    <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>
</head>

<body onload="init();" style="border:0;padding:0;margin:0;overflow:hidden">
 <iframe id="MMap" name="MMap" src="../SlnkDWF/ToonIMG.asp?ShowButtons=1" width="100%" height="100%" title="<%=L('lcl_fg')%>"></iframe>
</body>
</html>
<% ASPPAGE_END(); %> 
