var oPopNews;
var NNav=navigator.appName;
var VNav=parseFloat(navigator.appVersion);
function OpenPop(a1,a2,a3){
	if (a2=='pnews') { a3='status=0,scrollbars=1,resizable=1,width=720,height=760,top=0,left=0'; }
	if (a2=='pmail') { a3='status=0,scrollbars=1,resizable=1,width=720,height=600,top=0,left=0'; }
	oPopNews=window.open(a1,a2,a3);
	window.cancelBubble=true;
	oPopNews.focus();
	return false;
}
function mfmel(a1,a2){
	a1.href='ma'+'il'+'to'+':'+a2.replace(/\#/g,'\x40');
	return false;
}
function newajx(func1) {
	var ajx=null;
	if (window.XMLHttpRequest) { ajx=new XMLHttpRequest(); }
	else if (window.ActiveXObject) {
		try { ajx=new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e) { ajx=new ActiveXObject("Microsoft.XMLHTTP"); }
	}
	if (ajx) {
		if (func1!='') {
			ajx.onreadystatechange = function(){
				if (ajx.readyState==4 && ajx.status==200) { eval(func1+'(ajx);'); }
			}
		}
		return ajx;
	}
	return false;
}

function add2fav() {
if (NNav!='Microsoft Internet Explorer') { window.sidebar.addPanel('Maxifoot','http://www.maxifoot.fr/',''); }
else { window.external.AddFavorite('http://www.maxifoot.fr/','Maxifoot'); }
}

function largec() { if (document.all) { return document.body.offsetWidth; } else { return window.innerWidth; } }

function myResize() {
	if ((NNav=='Microsoft Internet Explorer') && (VNav=="ie6")) { return false; }
	document.getElementById('pubL1').style.display='none';
	l1=largec();
	if (l1<1350) {
		document.getElementById('pubL1').style.top='';
		document.getElementById('pubL1').style.right='';
		if (document.getElementById('pubL1img')) { document.getElementById('pubL1img').height=800; }
	} else {
		document.getElementById('pubL1').style.top='120px';
		document.getElementById('pubL1').style.right=Math.max(0,Math.floor((l1-990)/2-136))+'px';
		if (document.getElementById('pubL1img')) { document.getElementById('pubL1img').height=10; }
	}
	document.getElementById('pubL1').style.display='block';
}
