function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function transfert_t(){
        var v = document.title;
        var s='';       //converted string will be stored in this variable
	s = escape(v);

	return s;
}

function popAnim()
{
	var windowWidth = 950;
	var windowHeight = 482;
	var position = "";

	if (screen)
	{
		var left = Math.max(Math.round((screen.width - windowWidth)  / 2), 0);
		var top = Math.max(Math.round((screen.height - windowHeight)  / 2), 0);;
		position = ",left=" + left + ",top=" + top;
	}
	
	var nuWin = window.open("prechargement.php", "anim", "titlebar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight + position);
	nuWin.blur();
	window.focus();
}
