<%@ Import Namespace="HTCOMNET.Main" %>
<%@ Page CodeBehind="main.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="HTCOMNET.main1" %>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=<%=Session(SK_CHARSET)%>">
<title>Web access to <%=Session(SK_ROOT_NAME)%>&nbsp;&nbsp;</title>
<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<SCRIPT language="JavaScript" src="Scripts<%=JS_CSS_VERSION%>/Main.js"></SCRIPT>
</head>
<%If Session(SK_ROOT) = "" Then Response.Redirect("logoff.aspx")%>

<%If request.querystring("showinsamewindow")="" then%>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="5" topmargin="0" marginwidth="0" marginheight="0">
<NOSCRIPT><font face="Arial" color="#000000" size="3"><b><%=Session(SK_LANGUAGE).GetText("REQUIRES_JAVASCRIPT")%></b></font></NOSCRIPT>
<script language="JavaScript">
		CheckBrowser()
		if(navigator.userAgent.toLowerCase().indexOf("opera")==-1)
		{
			<%if Session(SK_WINDOW_SETTINGS).ShowMenubar="yes" and Session(SK_WINDOW_SETTINGS).ShowToolbar="yes" and Session(SK_WINDOW_SETTINGS).ShowLocation="yes" and Session(SK_WINDOW_SETTINGS).ShowStatus="yes" then%>
				document.location="main.aspx?showinsamewindow=true" ;
			<%else%>
				var newwindow=window.open("main.aspx?showinsamewindow=true&width=" + screen.width + "&height=" + screen.height, 'mainwin','status=<%=Session(SK_WINDOW_SETTINGS).ShowStatus%>, menubar=<%=Session(SK_WINDOW_SETTINGS).ShowMenubar%>, toolbar=<%=Session(SK_WINDOW_SETTINGS).ShowToolbar%>, location=<%=Session(SK_WINDOW_SETTINGS).ShowLocation%>, scrollbars=yes, resizable=yes');
				newwindow.focus();
			<%end if%>
		}
		else
			document.location="main.aspx?showinsamewindow=true" ;
</script>
</body>
<%Else%>
<frameset rows="98,*" frameborder="NO" border="0" framespacing="0" cols="*"> 
	<frameset cols="1,*" frameborder="NO" border="0" framespacing="0"> 
		<frame frameborder="NO" name="leftFrame" scrolling="NO" noresize src="WhitePage.aspx" marginwidth="0" marginheight="0">
		<frame  frameborder="NO" name="topFrame" scrolling="NO" noresize src="Up.aspx" marginwidth="0" marginheight="0">
	</frameset>
	<%IF Session(SK_SHOW_FOLDERS_TREE) THEN%>
	<frameset  cols="300,*" framespacing="5"  frameborder="YES" border="2"> 
		<frame style="border-right: #000000 1px solid;"  name="Tree"   src="WhitePage.aspx" frameborder="NO"  scrolling="YES" >
		<frame style="border-left: #000000 1px solid;" name="List"  src="WhitePage.aspx" frameborder="NO" scrolling="YES" >
	</frameset>
	<%ELSE%>
		<frame name="List"  src="WhitePage.aspx" frameborder="NO" scrolling="YES" >
	<%END IF%>
</frameset>
<noframes><body>
<font face="Arial" color="#000000" size="3"><b><%=Session(SK_LANGUAGE).GetText("DONT_SUPPORT_FRAMES")%></b></font>
</body></noframes>
<%End if%>
</html>
