{if $ajax eq 0}
{include file="$admingentemplates/admin_top.tpl"}
<script type="text/javascript">
{literal}
function notuse(modules){
	ajaxLoadingImage(1, 'sg_section');
	$.post('admin_modules.php', {sel:'notuse_module', ajax:'1', module: modules}, function(data){
		ajaxLoadingImage(0, 'sg_section');
		$('#sg_section').html(data);
	});
}
function use(modules){
	ajaxLoadingImage(1, 'sg_section');
	$.post('admin_modules.php', {sel:'use_module', ajax:'1', module:modules}, function(data){
		ajaxLoadingImage(0, 'sg_section');
		$('#sg_section').html(data);
	});
}
{/literal}
</script>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$lang.chats.modules}</div>
<div class="cr">&nbsp;</div>
<div id="tooltip" onclick="hideToolTip()" style="text-align:center; background-color: #FFFFFF; border: 1px dotted; text-align: {$default_left}; position:absolute; display:none; padding:5px;"></div>
{literal}
<script type="text/javascript">
$(function() {
$('#tool_tip_4 *').tooltip();
});
</script>
{/literal}
    <div class="sg_section" id="sg_section">{/if}
		{if $settings.install_pilot_module_affiliate eq '1'}
        <div class="sg_settings_box sg_settings_module"><!--affiliate/aff_stats.php-->
            <div class="sg_box_title" onclick="document.location.href='?sel=affiliate'">
                {$lang.admin_menu.affiliate}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=affiliate'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_affiliate eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('affiliate');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('affiliate');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_blog eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=blog'">
                {$lang.admin_menu.blog}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=blog'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_blog eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('blog');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('blog');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_classified eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=marketplace'">
                {$lang.modules.classified.name}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=marketplace'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_classified eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('classified');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('classified');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_club eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=groups'">
                {$lang.section.clubs}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=groups'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_club eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('club');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('club');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_events eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=events'">
                {$lang.admin_menu.events}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=events'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_events eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('events');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('events');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_forum eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=forum'">
                {$lang.admin_menu.forum}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=forum'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_forum eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('forum');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('forum');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_newsletter eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=alerts'">
                {$lang.admin_menu.newsletter}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=alerts'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_newsletter eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('newsletter');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('newsletter');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_poll eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=poll'">
                {$lang.admin_menu.poll}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=poll'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_poll eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('poll');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('poll');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=voip'">
                {$lang.admin_menu.voip}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=voip'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_voip eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('voip');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('voip');">&nbsp;</a>
				{/if}
            </div>
        </div>
		
		{if $settings.install_pilot_module_flashchat eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=flash_chat'">
                {$lang.admin_menu.flashchat}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=flash_chat'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_flashchat eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('flashchat');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('flashchat');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_games eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=games'">
                {$lang.admin_menu.games}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=games'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_games eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('games');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('games');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_giftshop eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=giftshop'">
                {$lang.section.giftshop}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=giftshop'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_giftshop eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('giftshop');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('giftshop');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_smspayments eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=sms_payments_module'">
                {$lang.admin_menu.payment_module}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=sms_payments_module'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_smspayments eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('smspayments');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('smspayments');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_videodate eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=videodate'">
                {$lang.admin_menu.videodate}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=videodate'">
				
            </div>
            <div style="position:absolute;bottom:10px;right:10px;">
            	{if $settings.use_pilot_module_videodate eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('videodate');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('videodate');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_sms_notifications eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=sms_notifications'">
                {$lang.admin_menu.notifications}
            </div>
            <div class="sg_box_text" onclick="document.location.href='?sel=sms_notifications'">&nbsp;</div>
            <div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_sms_notifications eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('sms_notifications');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('sms_notifications');">&nbsp;</a>
				{/if}
            </div>
        </div>
		{/if}
		{if $settings.install_pilot_module_mobile_module eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=mobile_module'">
                {$lang.admin_menu.mobile_module}
            </div>
            <div class="sg_box_text" onclick="document.location.href='?sel=mobile_module'">&nbsp;</div>
			<div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_mobile eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('mobile');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('mobile');">&nbsp;</a>
				{/if}
			</div>
        </div>
		{/if}
        {if $settings.install_pilot_module_multidomainV1 eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=multidomainV1'">
                {$lang.settings.section_name.16}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=multidomainV1'">
				
			</div>
			<div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_multidomainV1 eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('multidomainV1');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('multidomainV1');">&nbsp;</a>
				{/if}
			</div>
        </div>
		{/if}
		{if $settings.install_pilot_module_av eq '1'}
        <div class="sg_settings_box sg_settings_module">
            <div class="sg_box_title" onclick="document.location.href='?sel=av_module'">
                {$lang.admin_menu.av}
            </div>
            <div class="sg_box_text" style="height: 45px;" onclick="document.location.href='?sel=av_module'">
				
			</div>
			<div style="position:absolute;bottom:10px;right:10px;">
				{if $settings.use_pilot_module_av eq '1'}
					<a class="notuse_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_inactive}');return false" onclick="javascript:notuse('av');">&nbsp;</a>
				{else}
					<a class="use_module_icon" onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.button.make_active}');return false" onclick="javascript:use('av');">&nbsp;</a>
				{/if}
			</div>
        </div>
		{/if}
{if $ajax eq 0}	</div>
<script type="text/javascript">
{literal}
		function showToolTip(e,text){
			if(document.all)e = event;
			var obj = document.getElementById('tooltip');
			obj.innerHTML = text;
			obj.style.display = 'block';
			var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
			if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0;
			var leftPos = e.clientX - $('#tooltip').width()-10;
			if(leftPos<0)leftPos = 0;
			obj.style.left = leftPos + 'px';
			obj.style.top = e.clientY - obj.offsetHeight -10 + st + 'px';
		}
		function hideToolTip(){
			document.getElementById('tooltip').style.display = 'none';
		}
{/literal}		
</script>

{*<script type="text/javascript">
{literal}
$('.sg_box_text').mouseover(function (e) {
    $(this).find(".sgs_action_edit").show();
});
$('.sg_box_text').mouseout(function (e) {
    $(this).find(".sgs_action_edit").hide();
});
{/literal}
</script>*}
	{literal}
	<script type="text/javascript">
		$(document).ready(function() {
			if (screen.width <= '1024'){
				$('.sg_section').css('width', '600px');
			}else{
				$('.sg_section').css('width', '99%');
			}
		});
	</script>
	{/literal}

{include file="$admingentemplates/admin_bottom.tpl"}{/if}