var fenPopup = null;
var timeoutref = null;
var doccharge = false;
var divref=(document.all)?"":"document.";
var stlref=(document.all)?"style.":"";
var montre=(document.all)?"'visible'":"'show'";

function poppub () {
	var page;
	windowprops="location=no,width=400,height=460,scrollbars=no,menubars=no,toolbars=no,resizable=yes";
	page=window.open("news.htm","Popup",windowprops);
	page.moveTo(100,150);
	
}

function creerFen(lien) {
	 if (fenPopup != null) {
		if (!fenPopup.closed) {
			fenPopup.close()
		}
     	 fenPopup = null;
  }
  fenPopup = window.open (lien,"visu","width=800,height=600,resizable=yes,toolbar=no,location=no,directories=no,status=no,scrollbars=yes")
  fenPopup.moveTo(50,50); 
  fenPopup.focus();
  fenPopup.document.close();
  return false;
}

if(document.layers)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=track;

function cacheTout(){
if (doccharge!=false){
	var i = 1
		while (i<= 6) {
			if (eval(divref+"men"+i+"."+stlref+"visibility=="+montre)){
			eval(divref+"men"+i+"."+stlref+"visibility='hidden'");}
		i = i + 1
	}
	if (timeoutref != null){
		clearTimeout(timeoutref);
		timeoutref = null;
	}
}
}

function track(e){
var x=(document.all)?event.x:e.pageX;
var y=(document.all)?event.y:e.pageY;
if(x<210||x>605||y<100||y>620)cacheTout();    
}

function reveal(menu){
 if (doccharge!=false)
	{cacheTout();
	eval(divref+"men"+menu+"."+stlref+"visibility='visible'");
	timeoutref=setTimeout("cacheTout()",7000);
	}
}

function charge () {
doccharge=true;
}