<?
session_start();
$selelag = $HTTP_SESSION_VARS["SelLanguage"];
if (empty($selelag)) header("location:../break.php");
$S_id = session_id();
require_once("../config/".$selelag);
require_once("../_image.php");
require_once("../_ConnectString.php");
require_once("../_switch.php");

$DIR_IMAGE = "Display/image/";

if(show_lang()) require("../config_file/lang_config");
else require("../config_file/lang_eng");

print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
print "<MenuBar>";

if ((fn_normal())||(fn_client())){
	// Item MAIL
	print "<Menu background=\"#FFFFFF\" icon=\"$TOP_IMAGE$TOPP_MAIL\"	 focusIcon=\"$TOP_IMAGE$TOPP_MAIL_C\" tip=\"$TOP_MAIL\">";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_POP3\" label=\"$TOP_POP3_SHOW\" tip=\"$TOP_POP3\" url=\"../mail/pop3.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_IMAP\" label=\"$TOP_IMAP_SHOW\" tip=\"$TOP_IMAP\" url=\"../mail/imap.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_SMTP\" label=\"$TOP_SMTP_SHOW\" tip=\"$TOP_SMTP\" url=\"../mail/smtp.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_MAILR\" label=\"$TOP_WEBMAILR_SHOW\" tip=\"$TOP_WEBMAILR\" url=\"../mail/webmailr.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_MAILS\" label=\"$TOP_WEBMAILS_SHOW\" tip=\"$TOP_WEBMAILS\" url=\"../mail/webmails.php\" target=\"mainFrame\" />";
	print "</Menu>";

	// Item CHAT
	print "<Menu background=\"#FFFFFF\" icon=\"$TOP_IMAGE$TOPP_CHAT\" focusIcon=\"$TOP_IMAGE$TOPP_CHAT_C\" tip=\"$TOP_CHAT\">";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_MSN\" label=\"$TOP_MSN_SHOW\" tip=\"$TOP_MSN\" url=\"../msn/msn.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_ICQ\" label=\"$TOP_ICQ_SHOW\" tip=\"$TOP_ICQ\" url=\"../icq/icq.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_YAHOO\" label=\"$TOP_YAHOO_SHOW\" tip=\"$TOP_YAHOO\" url=\"../yahoo/yahoo.php\" target=\"mainFrame\" />";
	print " <MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$QQP_QQ\" label=\"$TOP_QQ_SHOW\" tip=\"$TOP_QQ\" url=\"../qq/qq.php\" target=\"mainFrame\" />";
	print "</Menu>";

	// Item FTP
	print "<Menu background=\"#FFFFFF\" icon=\"$TOP_IMAGE$TOPP_FTP\" focusIcon=\"$TOP_IMAGE$TOPP_FTP_C\" tip=\"$TOP_FT\" >";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_FTP\" label=\"$TOP_FTP_SHOW\" tip=\"$TOP_FTP\" url=\"../ftp/ftp.php\"  target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_P2P\" label=\"$TOP_P2P_SHOW\" tip=\"$TOP_P2P\" url=\"../p2p/p2p.php\"  target=\"mainFrame\" />";
	print "</Menu>";


	// Item WEB
	print "<Menu background=\"#FFFFFF\" icon=\"$TOP_IMAGE$TOPP_WEB\" focusIcon=\"$TOP_IMAGE$TOPP_WEB_C\" tip=\"$TOP_WEB\">";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_HTTP\" label=\"$TOP_HTTP_SHOW\" tip=\"$TOP_HTTP\" url=\"../http/http.php\" target=\"mainFrame\" />";
	print "	<MenuItem background=\"#F2FBFF\" icon=\"$DIR_IMAGE$TOPI_DYNAMIC\" label=\"$TOP_DYNAMIC_SHOW\" tip=\"$TOP_DYNAMIC\" url=\"../http/dynamic.php\" target=\"mainFrame\" />";
	print "</Menu>";

	// Item TELNET
	print "<Menu background=\"#FFFFFF\" icon=\"$TOP_IMAGE$TOPP_TELNET\" focusIcon=\"$TOP_IMAGE$TOPP_TELNET_C\" tip=\"$TOP_TELNET\" url=\"../telnet/telnet.php\" target=\"mainFrame\">";
	print "</Menu>";

}


// Item LOGOUT
print "<Menu background=\"#FFFFFF\" icon=\"$TOP_IMAGE$TOPP_LOGOUT\" focusIcon=\"$TOP_IMAGE$TOPP_LOGOUT_C\" tip=\"$TOP_LOGOUT\" url=\"../logout.php\" target=\"mainFrame\">";
print "</Menu>";
print "</MenuBar>";

?>

