/* site.webmaster */
	function ajaxSiteWmRecUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var q 			= $('q').value;
			var pg_cour 	= $('pg_cour').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResSiteWmRec',
								"ajax.site.webmaster.rec.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&q='+q
												+'&pg_cour='+pg_cour,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function addSiteWmRec(title){
		newPopup({	'url':'ajax.site.webmaster.rec.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':400,
					'height':300,
					'id':'popupAddSiteWmRec',
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxSiteWmRecUpdateDatas();}
				});
	}
	function submitSiteWmAddRec(F){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupAddSiteWmRec_content',
								'ajax.site.webmaster.rec.add.php',
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function showSiteWmRec(id, title){
		newPopup({	'url':'ajax.site.webmaster.rec.show.php?id='+id,
					'title':'<img src=\'img/icons/application_form_magnify.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':400,
					'height':300,
					'id':'popupShowSiteWmRec'+id,
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxSiteWmRecUpdateDatas();}
				});
	}
	function delSiteWmRec(id){
		new Ajax.Request('ajax.site.webmaster.rec.del.php?id='+id, 	{
			method:'post',
			asynchronous:true,
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxSiteWmRecUpdateDatas();
			},
			evalScripts:true
		});
		return false;
	}
	function ajaxSiteWmEnvoiUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var q 			= $('q').value;
			var pg_cour 	= $('pg_cour').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResSiteWmEnvoi',
								"ajax.site.webmaster.envoi.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&q='+q
												+'&pg_cour='+pg_cour,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {alert(e);}
		return false;
	}
	function addSiteWmEnvoi(title){
		newPopup({	'url':'ajax.site.webmaster.envoi.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':600,
					'height':400,
					'id':'popupAddSiteWmEnvoi',
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxSiteWmEnvoiUpdateDatas();}
				});
	}
	function submitSiteWmAddEnvoi(F){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupAddSiteWmEnvoi_content',
								'ajax.site.webmaster.envoi.add.php',
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function showSiteWmEnvoi(id, title){
		newPopup({	'url':'ajax.site.webmaster.envoi.show.php?id='+id,
					'title':'<img src=\'img/icons/application_form_magnify.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':600,
					'height':300,
					'id':'popupShowSiteWmEnvoi'+id,
					'showCenter':true,
					'iframe':false
				});
	}
	function delSiteWmEnvoi(id){
		new Ajax.Request('ajax.site.webmaster.envoi.del.php?id='+id, 	{
			method:'post',
			asynchronous:true,
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxSiteWmEnvoiUpdateDatas();
			},
			evalScripts:true
		});
		return false;
	}
/* site.webmaster (fin) */
/* site.conf */
	function submitSiteConfForm(F){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'ajaxContentIndex',
								'ajax.site.conf.php',
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
/* site.conf (fin) */
/* user.cmd */
	function ajaxUserCmdUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var pg_cour 	= $('pg_cour').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResUserCmd',
								"ajax.user.cmd.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&pg_cour='+pg_cour,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function modUserCmd(id, title){
		newPopup({	'url':'ajax.user.cmd.mod.php?id='+id,
					'title':'<img src=\'img/icons/application_form_edit.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':400,
					'height':300,
					'id':'popupModUserCmd'+id,
					'showCenter':true,
					'iframe':true,
					'close_callback':function(){ajaxUserCmdUpdateDatas();}
				});
	}
	function addUserCmd(title){
		newPopup({	'url':'ajax.user.cmd.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':400,
					'height':300,
					'id':'popupAddUserCmd',
					'showCenter':true,
					'iframe':true,
					'close_callback':function(){ajaxUserCmdUpdateDatas();}
				});
	}
/* user.cmd (fin) */
/* site.stats */
	function ajaxSiteStatsUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var pg_cour 	= $('pg_cour').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResSiteStats',
								"ajax.site.stats.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&pg_cour='+pg_cour,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function addSiteStats(title){
		newPopup({	'url':'ajax.site.stats.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':400,
					'height':260,
					'id':'popupAddSiteStats',
					'showCenter':true,
					'iframe':true,
					'close_callback':function(){ajaxSiteStatsUpdateDatas();}
				});
	}
/* site.stats (fin) */
/* bo.users */
	function ajaxUsersUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var pg_cour 	= $('pg_cour').value;
			var q 			= $('q').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResBoUsers',
								"ajax.bo.users.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&pg_cour='+pg_cour
												+'&q='+q,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function addUserResetPict(){
		$$('#users_pict2 div.item').each(function(item) {item.style.backgroundColor="#fff";});
		$('pict2').value = '';
	}
	function addUserSelectPict(selectItem, file){
		if($('pict2').value == file) addUserResetPict();
		else {
			$$('#users_pict2 div.item').each(function(item) {item.style.backgroundColor="#fff";});
			selectItem.style.backgroundColor="#ff9900";
			$('pict2').value = file;
			$('pict').value = '';
		}
	}
	function addUserResetBck(){
		$$('#users_bck2 div.item').each(function(item) {item.style.backgroundColor="#fff";});
		$('pict2').value = '';
		$('dft').checked=false;
		if($('current')) $('current').checked=false;
	}
	function addUserSelectBck(selectItem, file){
		if($('pict2').value == file) {
			addUserResetBck();
			$('dft').checked=true;
		} else {
			$$('#users_bck2 div.item').each(function(item) {item.style.backgroundColor="#fff";});
			selectItem.style.backgroundColor="#ff9900";
			$('pict2').value = file;
			$('pict').value = '';
			$('dft').checked=false;
		}
		if($('current')) $('current').checked=false;
	}
	function selectedUserBckDefault(){
		addUserResetBck();
		$('pict').value = '';
		$('dft').checked=true;
		if($('current')) $('current').checked=false;
	}
	function selectedUserBckCurrent(){
		addUserResetBck();
		$('pict').value = '';
		$('dft').checked=false;
		if($('current')) $('current').checked=true;
	}
	function showUser(uid, title){
		return newPopup({	'url':'ajax.bo.users.show.php?uid='+uid,
							'title':'<img src=\'img/icons/application_form_magnify.png\' align=\'absmiddle\' />&nbsp;'+title,
							'width':800,
							'height':475,
							'id':'popupShowUser'+uid,
							'showCenter':true,
							'iframe':true
						});
	}
	function modUser(uid, title){
		return newPopup({	'url':'ajax.bo.users.mod.php?uid='+uid,
							'title':'<img src=\'img/icons/application_form_edit.png\' align=\'absmiddle\' />&nbsp;'+title,
							'width':800,
							'height':475,
							'id':'popupModUser'+uid,
							'showCenter':true,
							'iframe':true,
							'close_callback':function(){ajaxUsersUpdateDatas();}
						});
	}
	function addUser(title){
		newPopup({	'url':'ajax.bo.users.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':800,
					'height':475,
					'id':'popupAddUser',
					'showCenter':true,
					'iframe':true,
					'close_callback':function(){ajaxUsersUpdateDatas();}
				});
	}
	function delUser(id){
		new Ajax.Request('ajax.bo.users.del.php?id='+id, 	{
			method:'post',
			asynchronous:true,
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxUsersUpdateDatas();
			},
			evalScripts:true
		});
		return false;
	}
/* bo.users (fin) */
/* bo.log */
	function ajaxBoLogUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var pg_cour 	= $('pg_cour').value;
			var q 			= $('q').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResBoLog',
								"ajax.bo.log.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&pg_cour='+pg_cour
												+'&q='+q,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
/* bo.log (fin) */
/* bo.lng */
	function ajaxBoLngUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var pg_cour 	= $('pg_cour').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResBoLng',
								"ajax.bo.lng.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&pg_cour='+pg_cour,
									asynchronous:true,
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function ajaxBoLngModWordUpdateDatas(){
		try{
			var pg_cour 	= $('pg_cour').value;
			var page	 	= $('select_page')? $('select_page').value : "";
			var idlng 		= $('idlng').value;
			document.body.style.cursor = 'wait';
			new Ajax.Updater(	'tabResBoLngMod',
								"ajax.bo.lng.mod.word.php",
								{	method:'get',
									parameters:'id='+idlng
												+'&pg_cour='+pg_cour
												+'&page='+page,
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function addBoLngWord(id, title){
		newPopup({	'url':'ajax.bo.lng.add.word.php?id='+id,
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':800,
					'height':450,
					'id':'popupAddBoLngWord'+id,
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxBoLngModWordUpdateDatas();}
				});
		return false;
	}
	function addBoLng(title){
		newPopup({	'url':'ajax.bo.lng.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':450,
					'height':180,
					'id':'popupAddBoLng',
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxBoLngUpdateDatas();}
				});
		return false;
	}
	function modBoLng(id, title){
		Windows.closeAll();
		newPopup({	'url':'ajax.bo.lng.mod.php?id='+id,
					'title':'<img src=\'img/icons/application_form_edit.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':700,
					'height':475,
					'id':'popupModBoLng_'+id,
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxBoLngUpdateDatas();}
				});
		return false;
	}
	function refreshBoLng(id){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupModBoLng_'+id+'_content',
								'ajax.bo.lng.mod.php?id='+id,
								{	method:'post',
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function submitBoLngAddWordForm(F, id){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupAddBoLngWord'+id+'_content',
								'ajax.bo.lng.add.word.php?id='+id,
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function submitBoLngAddForm(F){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupAddBoLng_content',
								'ajax.bo.lng.add.php',
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function ajaxBoDelWord(F){
		new Ajax.Request('ajax.bo.lng.del.word.submit.php', 	{
			method:'post',
			asynchronous:true,
			parameters:Form.serialize(F),
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxBoLngModWordUpdateDatas();
				ajaxBoLngExport();
			},
			onComplete: function(){},
			evalScripts:true
		});
		return false;
	}
	function ajaxBoLngDel(id){
		new Ajax.Request('ajax.bo.lng.del.submit.php?id='+id, 	{
			method:'post',
			asynchronous:true,
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxBoLngUpdateDatas();
				ajaxBoLngExport();
			},
			onComplete: function(){},
			evalScripts:true
		});
		return false;
	}
	function ajaxBoModWordSubmit(F){
		new Ajax.Request('ajax.bo.lng.mod.word.submit.php', 	{
			method:'post',
			asynchronous:true,
			parameters:Form.serialize(F),
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxBoLngExport();
			},
			onComplete: function(){},
			evalScripts:true
		});
		return false;
	}
	function ajaxBoLngExport(){
		new Ajax.Request('ajax.bo.lng.export.php', 	{
			method:'post',
			asynchronous:true,
			evalScripts:true
		});
		return false;
	}
/* bo.lng (fin) */
/* user.emails */
	function ajaxUserEmailsUpdateDatas(){
		try{
			var ct 			= $('ct').value;
			var st 			= $('st').value;
			var pg_cour 	= $('pg_cour').value;
			var q 			= $('q').value;

			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Ajax.Updater(	'tabResUserEmails',
								"ajax.user.emails.lst.php",
								{	method:'get',
									parameters:'ct='+ct
												+'&st='+st
												+'&pg_cour='+pg_cour
												+'&q='+q,
									asynchronous:true,
									onSuccess: function(t) { },
									onComplete: function(){
										document.body.style.cursor = 'default';
										Windows.closeAll();
										$('ajaxContentIndexLoading').style.display="none";
									},
									evalScripts:true
								}
							);
		} catch (e) {}
		return false;
	}
	function submitUserEmailsModForm(F, id){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupModUserEmails'+id+'_content',
								'ajax.user.emails.mod.php?id='+id,
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function submitUserEmailsAddForm(F){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'popupAddUserEmails_content',
								'ajax.user.emails.add.php',
								{	method:'post',
									parameters:Form.serialize(F),
									asynchronous:true,
									onComplete: function(){document.body.style.cursor = 'default';},
									evalScripts:true
								}
							);
		return false;
	}
	function modUserEmails(id, title){
		return newPopup({	'url':'ajax.user.emails.mod.php?id='+id,
							'title':'<img src=\'img/icons/application_form_edit.png\' align=\'absmiddle\' />&nbsp;'+title,
							'width':600,
							'height':250,
							'id':'popupModUserEmails'+id,
							'showCenter':true,
							'iframe':false,
							'close_callback':function(){ajaxUserEmailsUpdateDatas();}
						});
	}
	function addUserEmails(title){
		newPopup({	'url':'ajax.user.emails.add.php',
					'title':'<img src=\'img/icons/application_form_add.png\' align=\'absmiddle\' />&nbsp;'+title,
					'width':600,
					'height':220,
					'id':'popupAddUserEmails',
					'showCenter':true,
					'iframe':false,
					'close_callback':function(){ajaxUserEmailsUpdateDatas();}
				});
	}
	function delUserEmails(id){
		new Ajax.Request('ajax.user.emails.del.php?id='+id, 	{
			method:'post',
			asynchronous:true,
			onSuccess: function(t) {
				alert(t.responseText);
				ajaxUserEmailsUpdateDatas();
			},
			evalScripts:true
		});
		return false;
	}
/* user.emails (fin) */
/* Bck */
	function setBck(id){
		var duration = ($('bck').src.indexOf('img/blank.gif') == -1) ? 2.0 : 0.0;
		var date = new Date();
		var time = date.getTime();
		var iframeOnload = function() {
						new Effect.Fade('bck',{duration:duration, afterFinish:function(){
							$('bck').src = 'files/user_bck/'+id+'.jpg?u='+time;
							$('bck2').src = (id==0) ? 'files/user_bck/0b.png' : 'img/blank.gif';
							refreshBck();
							Effect.Appear('bck', {duration:duration});
						}});
						Event.stopObserving($('iframe'), 'load', iframeOnload);
					};
		if($('bck').src.indexOf('files/user_bck/'+id+'.jpg') == -1){
			Event.observe($('iframe'), 'load', iframeOnload );
			$('iframe').src='iframe.load.pict.php?file=files/user_bck/'+id+'.jpg?u='+time;
		}
	}
	function refreshBck(){
		var arrayPageSize = new Array();
		arrayPageSize[0] = document.viewport.getWidth();
		arrayPageSize[1] = document.viewport.getHeight();
		new Effect.Morph('bck', {style:{width:arrayPageSize[0]+"px", height:arrayPageSize[1]+"px"}});
	}
/* Bck (fin) */
/* Login */
	function ajaxLoginSubmit(F, id){
		new Ajax.Request('ajax.login.submit.php', 	{
			method:'post',
			asynchronous:true,
			parameters:Form.serialize(F),
			onSuccess: function(t) {
				if(t.responseText != ""){
					$('errorLogin'+id).innerHTML = t.responseText;
					$('passwd'+id).value = '';
					$('passwd'+id).focus();
				} else {
					ajaxLoadLoginWelcome(id);
					window.setTimeout(function(){ajaxLoadContentGlobal('ajax.index.php');},2000);
					if (window.addEventListener)
						window.removeEventListener('DOMMouseScroll', wheelLogin, false);
					window.onmousewheel = document.onmousewheel = null;

				}
			},
			evalScripts:true
		});
		return false;
	}
	function ajaxLoadLoginUnset(){
		document.body.style.cursor = 'wait';
		new Ajax.Request(	"ajax.login.unset.php",
							{	method:'post',
								asynchronous:true,
								onComplete: function(){
									document.body.style.cursor = 'default';
									return ajaxLoadContentGlobal("ajax.login.php");
								},
								evalScripts:true
							}
						);
	}
	function ajaxLoadTmp(img){
		new Ajax.Updater(	'tmp',
							'ajax.tmp.php?img='+img,
							{	method:'post',
								asynchronous:true,
								evalScripts:true
							}
						);
		return false;
	}
	function ajaxLoadLogin(id, url){
		document.body.style.cursor = 'wait';
		new Ajax.Updater(	'user'+id,
							url+"?id="+id,
							{	method:'post',
								asynchronous:true,
								onComplete: function(){document.body.style.cursor = 'default';},
								evalScripts:true
							}
						);
		return false;
	}
	function ajaxLoadLoginForm(id){		return ajaxLoadLogin(id, "ajax.login.form.php"); }
	function ajaxLoadLoginWelcome(id){	return ajaxLoadLogin(id, "ajax.login.welcome.php");}
	function ajaxLoadLoginInfo(id){		return ajaxLoadLogin(id, "ajax.login.info.php");}
/* Login (fin) */
/* LoadContent */
	function ajaxLoadContentGlobal(url){
		document.body.style.cursor = 'wait';
		new Effect.Fade('ajaxContentGlobal',{duration:2.0, afterFinish:function(){
			new Effect.Appear('ajaxContentGlobal',{duration:2.0, afterFinish:function(){}});
			$('ajaxContentGlobal').innerHTML = "";
			new Ajax.Updater(	'ajaxContentGlobal',
								url,
								{	method:'post',
									asynchronous:true,
									onComplete: function(){	Windows.closeAll(); document.body.style.cursor = 'default';	},
									evalScripts:true
								}
							);
		}});
		return false;
	}
	function ajaxLoadContentIndex(url, duration){
		duration = duration == undefined ? .5 : duration;
		try{
			document.body.style.cursor = 'wait';
			$('ajaxContentIndexLoading').style.display="block";
			new Effect.Fade('ajaxContentIndex',{duration:duration, afterFinish:function(){
				new Effect.Appear('ajaxContentIndex',{duration:duration, afterFinish:function(){
					$('ajaxContentIndexLoading').style.display="none";
				}});
				$('ajaxContentIndex').innerHTML = "";
				new Ajax.Updater(	'ajaxContentIndex',
									url,
									{	method:'post',
										asynchronous:true,
										onComplete: function(){
											setLinkTitle();
											setBtn();
											Windows.closeAll();
											document.body.style.cursor = 'default';
										},
										evalScripts:true
									}
								);
			}});
		} catch(e){parent.ajaxLoadContentIndex(url);}
		return false;
	}
	function ajaxLoadContent(url){
		document.body.style.cursor = 'wait';
			new Ajax.Updater(	'ajaxContent',
								url,
								{	method:'post',
									asynchronous:true,
									onComplete: function(){	document.body.style.cursor = 'default';	},
									evalScripts:true
								}
							);
		return false;
	}
/* LoadContent (fin) */
/* Help */
	function showHelp(title){
		var popupHelp = newPopup({	'url':'ajax.help.php',
									'title':'<img src=\'img/icons/help.png\' align=\'absmiddle\' />&nbsp;'+title,
									'width':800,
									'height':470,
									'id':'popupHelp',
									'showCenter':true,
									'onMaximize':function(){
										window.setTimeout(function(){
											$('tableHelp').style.height=(popupHelp.height - 50)+"px";
											$$('table#tableHelp td').each(function(item){ item.style.height=(popupHelp.height - 50)+"px";});
										},1000);
									},
									'onResize':function(){
										$('tableHelp').style.height=(popupHelp.height - 50)+"px";
										$$('table#tableHelp td').each(function(item){ item.style.height=(popupHelp.height - 50)+"px";});
									}
							});

	}
	function ajaxLoadHelpContent(url){
		document.body.style.cursor = 'wait';
		new Effect.Fade('ajaxHelpContent',{duration:0.2, afterFinish:function(){
			new Effect.Appear('ajaxHelpContent',{duration:0.2, afterFinish:function(){
				$('ajaxContentIndexLoading').style.display="none";
			}});
			new Ajax.Updater(	'ajaxHelpContent',
				url,
				{	method:'post',
					asynchronous:true,
					onComplete: function(){	document.body.style.cursor = 'default';	},
					evalScripts:true
				}
			);
		}});
		return false;
	}
/* Help (fin) */
/* Index */
	function addIndexBubble(id){ajaxRequest('ajax.index.menu.add.php?id='+id);}
	function rmIndexBubble(id){ajaxRequest('ajax.index.menu.rm.php?id='+id);}
/* Index (fin) */
