<% @codepage="65001" @LANGUAGE="JScript" %> 
<!-- #include file "locals.inc" -->
<HTML DIR="<%= L_strBiDiMode_HTMLText %>">
<HEAD>
<META content=text/html;charset=utf-8 http-equiv=Content-Type>

<TITLE><%= L_HomePageTitle_HTMLText %></TITLE>

<SCRIPT LANGUAGE="JavaScript"><!--

var iPaneWidth = 250;

//--> 
</SCRIPT>

</HEAD>
<% 
    //---TOOLBAR_EXEMPT--- 

    //---------------------------------------------------------- 
    // Create parameters to be passed to frames: 
    //    sTopicUrl goes to fraTopic  
    //    sUrl goes to fraToc for syncing 
    //---------------------------------------------------------- 

    var sUrl        = String( Request.QueryString( "url" ) );
    var sTopicUrl   = sUrl;

    // Make sure there's no HTML in the URL and that 
    // the path is relative. 

    if ( "undefined" == sUrl || sUrl.match( /</i ) || sUrl.match( /javascript:/i ) || sUrl.match( /http:/i ) )
    {
        sTopicUrl = DefaultTopic;
        sUrl = "";
    }

    // Encode the URL 

    sTopicUrl = sTopicUrl.replace(/ /g,"+");

    var sTocPath = String( Request.QueryString( "tocPath" ) );
    if( "undefined" == sTocPath && sUrl ) sTocPath = "URL=" + sUrl;
    else if( sTocPath ) sTocPath = "tocPath=" + sTocPath;
    else sTocPath = "";


    var bShowPane = String(Request.QueryString("ShowPane")).toLowerCase();
    if ("undefined" == bShowPane) bShowPane = "true";


    // ----------------------------------------------------------------- 
    // Build the frameset 
    // ----------------------------------------------------------------- 


    var sBorderColor = "#6699CC";
    var bBorder = "0";

    var sScrolling = "no";

    var sTocFrame = '<FRAME NAME="fraToc" SRC="toc.asp?ShowPane=' + bShowPane + '&' + sTocPath + '"  STYLE="border-right: solid #99ccff 1px; border-top: solid #003366 1px;" SCROLLING="auto" TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" FRAMEBORDER="' + bBorder + '" BORDER="' + bBorder + '">'; 
    var sTopicFrame = '<FRAME NAME="fraTopic" SRC="' + sTopicUrl + '"  STYLE="border-left: groove #99ccff 2px; border-top: solid #003366 1px;" FRAMEBORDER="no" BORDER="0" BORDERCOLOR=' +'"' + sBorderColor + '" SCROLLING="YES">'; 

    // Set the columns, reverse them if text mode is RTL. 

    var sCols = "250";
    if( bShowPane == "false" ) sCols = "0";
    if( "LTR" == L_strBiDiMode_HTMLText ) sCols = sCols + ",*";
    else sCols = "*," + sCols;



%> 
<FRAMESET ID="fsTop" COLS="<%= sCols %>" BORDER="1" FRAMESPACING="0" TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">

<% 
    if( "RTL" == L_strBiDiMode_HTMLText ) Response.Write('   ' + sTopicFrame + '\n   ' + sTocFrame); 
    else Response.Write('   ' + sTocFrame + '\n   ' + sTopicFrame); 
%> 

</FRAMESET>
</HTML>