<br />
<b>Warning</b>:  include_once(../langue/IndexAAP_.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in <b>/home/aap/www/js/javascript.php</b> on line <b>11</b><br />
<br />
<b>Warning</b>:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '../langue/IndexAAP_.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in <b>/home/aap/www/js/javascript.php</b> on line <b>11</b><br />
	function modifierTailleCol_1()
	{
		document.onmousedown=null;
		arreterSelect();
		var colonne_1;
		var colonne_2;
		var colonne_3;
		var max;
		if (document.getElementById('colonne_1').style.width=='') colonne_1=;
		else colonne_1 = parseInt (document.getElementById('colonne_1').style.width.replace('%',''));
		if (document.getElementById('colonne_3').style.width=='') colonne_3=;
		else colonne_3 = parseInt (document.getElementById('colonne_3').style.width.replace('%',''));
		max = Math.round(100*(100-colonne_3-15))/100;
		document.onmousemove = function tailleColonneMouvement(e)
		{
			colonne_1 = calculerX(e);
			colonne_1 = Math.round(10000*(colonne_1/document.body.clientWidth)) / 100;
			if (colonne_1<=20) colonne_1 = 15; else if (colonne_1 > max) colonne_1 = max;
			colonne_2 = Math.round(100*(100-colonne_1-colonne_3)) / 100;
			document.getElementById('colonne_1').style.width=colonne_1+'%';
			document.getElementById('colonne_2').style.left=colonne_1+'%';
			document.getElementById('colonne_2').style.width=colonne_2+'%';
			document.getElementById('colonne_1_taille').style.left=colonne_1+'%';
			document.onmouseup = function()
			{
				document.onmousemove=null;
				setCookie('_Colonne_1',colonne_1);
				setCookie('_Colonne_3',colonne_3);
				reprendreSelect();			
			}
		}
	}	
	function modifierTailleCol_3()
	{
		document.onmousedown=null;
		arreterSelect();
		var colonne_1;
		var colonne_2;
		var colonne_3;
		var max;
		if (document.getElementById('colonne_1').style.width=='') colonne_1=;
		else colonne_1 = parseInt (document.getElementById('colonne_1').style.width.replace('%',''));
		if (document.getElementById('colonne_3').style.width=='') colonne_3=;
		else colonne_3 = parseInt (document.getElementById('colonne_3').style.width.replace('%',''));
		max = Math.round(100*(100-colonne_1-15))/100;
		document.onmousemove = function tailleColonneMouvement(e)
		{
			colonne_3 = calculerX(e);
			colonne_3 = Math.round(10000 - 10000*(colonne_3/document.body.clientWidth)) / 100;
			if (colonne_3<=20) colonne_3 = 15; else if (colonne_3 > max) colonne_3 = max;
			colonne_2 = Math.round(100*(100-colonne_1-colonne_3)) / 100;
			document.getElementById('colonne_2').style.width=colonne_2+'%';
			document.getElementById('colonne_3').style.width=colonne_3+'%';
			document.getElementById('colonne_3_taille').style.right=colonne_3+'%';
			document.onmouseup = function()
			{
				document.onmousemove=null;
				setCookie('_Colonne_1',colonne_1);
				setCookie('_Colonne_3',colonne_3);
				reprendreSelect();				
			}
		}
	}
	function calculerX(e)
	{
		var Mouse_X;
		var DocRef;
		if (navigator.appName.substring(0,3) == "Net") Mouse_X = e.pageX;
		else
		{
			Mouse_X = event.clientX;
			//-- Il faut traiter le CAS des DOCTYPE sous IE
			if( document.documentElement && document.documentElement.clientWidth) DocRef = document.documentElement; // Donc DOCTYPE
			else DocRef = document.body; // Dans ce cas c'est body qui est réfèrence
			Mouse_X += DocRef.scrollLeft; //-- On rajoute la position liée aux ScrollBars
		}
		return (Mouse_X);
	}
	function arreterSelect()
	{
		document.onselectstart=new Function ("return false");
		if (window.sidebar)
		{
			document.onmousedown= function() {return false};
			document.onclick= function() {return true};
		}
	}
	function reprendreSelect()
	{
		document.onselectstart=new Function ("return true");
		if (window.sidebar)
		{
			document.onmousedown= function() {return true};
		}
	}
	document.getElementById('colonne_1_taille').onmousedown = modifierTailleCol_1;
	document.getElementById('colonne_3_taille').onmousedown = modifierTailleCol_3;
	function setCookie(name,value)
	{
		
		date="Thu, 8-Jan-2009 13:05:44 GMT";
		path="";
		document.cookie=name+"="+value+"; expires="+date+" ; path="+path+"";
	}
	function verifierRadio(radio)
	{
		for (var i=0; i<radio.length;i++)
		{
			if (radio[i].checked)
			{
				return radio[i].value;
				break;
			}
		}
	}
	function coursRR(id)
	{
		var zone = document.getElementById('form'+id).zone.value;
		var cookie = LireCookie('');
		var ancienneZone = document.getElementById('cours'+id).parentNode.parentNode.childNodes[1].childNodes[3].innerHTML;
		document.getElementById('cours'+id).parentNode.parentNode.childNodes[1].childNodes[3].innerHTML = zone;
		cookie = cookie.replace('121##'+ancienneZone,'121##'+encodeURI(zone));
		setCookie ('',cookie);
		if (zone!='0') ahah('../coursRR/'+zone+'.html','cours'+id,this);
		else document.getElementById('cours'+id).innerHTML='';
	}
	function formOngletSubmit()
	{
		document.getElementById('formOnglet').submit();
	}
	function CreateBookmarkLink()
	{
		title = "News AAP";
		url = "http://aap.lesroyaumes.com/";
		if (window.sidebar) window.sidebar.addPanel(title, url,""); // FF
		else if ( window.external ) window.external.AddFavorite( url, title); // IE
		else if (window.opera && window.print) return true; // Opera
	}
	function afficherCategorieLiens(id)
	{
		tab = document.getElementById('listeLiens').getElementsByTagName('div');
		for (var i = 0; i < tab.length; i++)
		{ 
			tab[i].style.display='none';
	    }
		document.getElementById(id).style.display='inline';
	}
	function creerOnglet(obj)
	{
		obj.parentNode.className="unonglet actif";
		obj.parentNode.innerHTML='<input type="text" name="creerOnglet" value="" size="12" maxlength="12"> <input type="submit" value="ok">';
	}
	function editerOnglet(obj)
	{
		obj.parentNode.parentNode.innerHTML='<input type="text" name="editerOnglet" value="" size="12" maxlength="12"> <input type="submit" value="ok">';
	}
	function init()
	{
		if (confirm('Do you really want to reset your configuration?'))
		{
			document.location = "http://aap.lesroyaumes.com/IndexNews.php?action=init";
		}
	}
	function getCookieVal(offset)
	{
		var endstr=document.cookie.indexOf (";", offset);
		if (endstr==-1) endstr=document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}
	function LireCookie(nom)
	{
		var arg=nom+"=";
		var alen=arg.length;
		var clen=document.cookie.length;
		var i=0;
		while (i<clen)
		{
			var j=i+alen;
			if (document.cookie.substring(i, j)==arg) return getCookieVal(j);
			i=document.cookie.indexOf(" ",i)+1;
			if (i==0) break;
		}
		return null;
	}
	window.onload = function()
	{
	    accordeon(); 
	}

	var Utf8 = {
		// public method for url encoding : http://www.webtoolkit.info/demo/javascript/utf8/webtoolkit.utf8.js
		encode : function (string)
		{
			string = string.replace(/\r\n/g,"\n");
			var texte = "";
			for (var n = 0; n < string.length; n++)
			{
				var c = string.charCodeAt(n);
				if (c < 128)
				{
					texte += String.fromCharCode(c);
				}
				else if((c > 127) && (c < 2048))
				{
					texte += String.fromCharCode((c >> 6) | 192);
					texte += String.fromCharCode((c & 63) | 128);
				}
				else
				{
					texte += String.fromCharCode((c >> 12) | 224);
					texte += String.fromCharCode(((c >> 6) & 63) | 128);
					texte += String.fromCharCode((c & 63) | 128);
				}
			}
			return texte;
		}
	}

