{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_modules.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<font style="display:table;" class=red_header>{$lang.settings.flashcoms}</font>
<div class="cr">&nbsp;</div>
<div style="display:block;" class="help_text">
	<div class="close_help">
		<img src="{$site_root}{$template_root}/images/close_help.png" alt="">
	</div>
	<div class="help_body">
		<span class="help_title">{$lang.help}:</span>{$lang.admin_help.chat}
	</div>
</div>
<div class="cr">&nbsp;</div>
	<ul class="tabs">
		<li>
			<a {if $par eq '0'}class="current"{else}href="{$site_url}{$site_root}/admin/{$file_name_root}"{/if}>{$lang.admin_menu.settings}</a>
		</li>
		<li>
			<a {if $par eq 1}class="current"{else}href="{$site_url}{$site_root}/topcmm_123flashchat/admin/basicsetting.php"{/if}>{$lang.settings.123flashchat}</a>
		</li>
		<li>
			<a {if $par eq 2}class="current"{else}href="{$site_url}{$site_root}/admin/admin_chat7.php"{/if}>{$lang.settings.flashcoms}</a>
		</li>
		{*<li>
			<a {if $par eq 3}class="current"{else}href="{$site_url}{$site_root}/admin/admin_toksta.php?app=chat"{/if}>{$lang.settings.toksta}</a>
		</li>*}
		<li>
			<a {if $par eq 4}class="current"{else}href="{$site_url}{$site_root}/admin/webmessenger/connlist.php"{/if}>{$lang.settings.userplane}</a>
		</li>
		<li>
            <a {if $par eq 5}class="current"{else}href="{$site_url}{$site_root}/admin/admin_av_module.php?sel=cometchat"{/if}>Cometchat</a>
        </li>
		<!--{$site_url}{$site_root}/admin/{$file_name}?par=4-->
	</ul>
	<div class="user_operation_line" style="height:4px;font-size:0px;">&nbsp;</div>
</div>

<div class="cr">&nbsp;</div>

<div id="ajax_load">

<!--div>
	<table id="user_types_match">
		<tr>
			<th colspan="2">{if $lang.settings.user_types_match}{$lang.settings.user_types_match}{else}User types match for chat & messenger{/if}</th>
		</tr>
		{foreach from=$user_types item=item name=ut}
			<tr>
				<td><b>{$item.name}</b></td>
				<td>
					<input type="radio" id_type="{$item.id}" name="user_type[{$item.id}]" value="0" {if $item.id_fc_type == 0}checked{/if} /> {if $lang.settings.male}{$lang.settings.male}{else}Male{/if}
					<input type="radio" id_type="{$item.id}" name="user_type[{$item.id}]" value="1" {if $item.id_fc_type == 1}checked{/if} /> {if $lang.settings.female}{$lang.settings.female}{else}Female{/if}
					{*<input type="radio" id_type="{$item.id}" name="user_type[{$item.id}]" value="2" {if $item.id_fc_type == 2}checked{/if} /> {if $lang.settings.couple}{$lang.settings.couple}{else}Couple{/if}*}
				</td>
			</tr>
		{/foreach}
	</table>
</div-->

<div id="user_status_line" class="user_status_line" style="margin-bottom:-2px;float:none;overflow:hidden;">
	<div id="tab_chat" class="user_status_elem{if $subtabs eq 'chat'}_active{/if}" width="80px" onclick="location.href='{$site_url}{$site_root}/admin/admin_chat7.php'"><a>{$lang.av_module.chat}</a></div>
	<div id="tab_" class="user_status_elem{if $subtabs eq 'mess'}_active{/if}" width="80px"onclick="location.href='{$site_url}{$site_root}/admin/admin_messenger7.php'" >{$lang.av_module.messenger}</div>
	<!--onclick="List('chat')"  onclick="List('')"-->
</div>
<script src="{$server}{$template_root}/messenger7/swfobject.js" type="text/javascript"></script>
	<script type="text/javascript">
		{literal}
			var flashvars = { };
			var params = { allowscriptaccess:'always' };
			var attributes = {};
			swfobject.embedSWF("{/literal}{$server}{$template_root}{literal}/messenger7/admintool.swf?build=8918",
				"admin_swf", "100%", "600px", "9.0.124", null, flashvars, params, attributes);
		
		
		$('#user_types_match').find('input').bind('change', function(){
			var id_type = $(this).attr('id_type');
			var id_fc_type = $(this).val();
			var param = 'user_type['+id_type+']='+id_fc_type;
			$.post(
				'{/literal}{$site_url}{$site_root}{literal}/admin/admin_chat7.php',
				{
					sel: 'save_types',
					id_type: id_type,
					id_fc_type: id_fc_type
				},
				function(data){
					ShowAjaxError(data.msg, '', data.status);
				},
				'json'
			);
		});

		{/literal}
	</script>
	
<table width="100%" cellpadding="0" cellspacing="0">
	<tr class="table_header">
		<td></td>
	</tr>
	<tr>
		<td>
			<div id="admin_swf" style="width:100%; height:100%">
			<p>You need to install or upgrade Adobe Flash Player.</p>
			<p>Version 9 or higher is required.</p>
			<p><a href="http://get.adobe.com/flashplayer/">Get Adobe Flash player</a></p>
			</div>
		</td>
	</tr>
	<tr class="table_header">
		<td></td>
	</tr>
</table>	
</div>
{include file="$admingentemplates/admin_bottom.tpl"}