function setPixel(lItem){
	var texte = document.createTextNode(".");
	image = document.createElement('img');

	// Dfinition de l'attribut src
	image.src = '_stats/stats.php?item='+lItem;
	//alert(image.src);
	image.height=0;
	image.width=0;
	image.border=0;
	var ICI = document.getElementById("stats");
	ICI.appendChild(image);
	ICI.appendChild(texte);
}


function MM_preloadImages() {
  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 MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function showBox(ObjName)
{
// Reproduction interdite

Ecran_Largeur = document.body.clientWidth;
Ecran_Hauteur = document.body.clientHeight;
Scroll_Top = document.body.scrollTop;
Scroll_Left = document.body.scrollLeft;
Obj_Height = parseInt(document.getElementById(ObjName).style.height);
Obj_Width = parseInt(document.getElementById(ObjName).style.width);

//Affiche le fond
document.getElementById('objFond').style.left = 0;
document.getElementById('objFond').style.top = 0;
document.getElementById('objFond').style.width = document.body.scrollWidth;
document.getElementById('objFond').style.height = document.body.scrollHeight;
document.getElementById('objFond').style.display='inline';
document.getElementById('objFond').style.visibility='visible'

document.getElementById(ObjName).style.top = Scroll_Top + (Ecran_Hauteur - Obj_Height) /2;
document.getElementById(ObjName).style.left = Scroll_Left + (Ecran_Largeur - Obj_Width) /2;

document.getElementById(ObjName).style.display='inline';
document.getElementById(ObjName).style.visibility='visible'

}


function showBoxParent(ObjName)
{
// Reproduction interdite

Ecran_Largeur = window.parent.document.body.clientWidth;
Ecran_Hauteur = window.parent.document.body.clientHeight;
Scroll_Top = window.parent.document.body.scrollTop;
Scroll_Left = document.body.scrollLeft;
Obj_Height = parseInt(window.parent.document.getElementById(ObjName).style.height);
Obj_Width = parseInt(window.parent.document.getElementById(ObjName).style.width);

//Affiche le fond
window.parent.document.getElementById('objFond').style.left = 0;
window.parent.document.getElementById('objFond').style.top = 0;
window.parent.document.getElementById('objFond').style.width = window.parent.document.body.scrollWidth;
window.parent.document.getElementById('objFond').style.height = window.parent.document.body.scrollHeight;
window.parent.document.getElementById('objFond').style.display='inline';
window.parent.document.getElementById('objFond').style.visibility='visible'

window.parent.document.getElementById(ObjName).style.top = Scroll_Top + (Ecran_Hauteur - Obj_Height) /2;
window.parent.document.getElementById(ObjName).style.left = Scroll_Left + (Ecran_Largeur - Obj_Width) /2;

window.parent.document.getElementById(ObjName).style.display='inline';
window.parent.document.getElementById(ObjName).style.visibility='visible'

}

function showBoxURL(ObjName, Url)
{
// Reproduction interdite

//document.frames('frame').location.href = Url;
frame.location.href = Url;
showBox(ObjName);

}

function hideBoxURL(ObjName)
{
// Reproduction interdite

//window.parent.document.frames('frame').location.href = 'blank.html';
parent.frame.location.href = 'blank.html';
hideBox(ObjName);

}

function hideBoxURL2(ObjName)
{
// Reproduction interdite

//window.parent.document.frames('frame').location.href = 'blank.html';
parent.frame.location.href = 'blank.html';
hideBox(ObjName);

}

function hideBox(ObjName)
{
// Reproduction interdite
window.parent.document.getElementById('objFond').style.visibility='hidden';
window.parent.document.getElementById(ObjName).style.visibility='hidden';
}

function hideBox2(ObjName)
{

window.parent.document.getElementById('objFond').style.visibility='hidden';
window.parent.document.getElementById(ObjName).style.visibility='hidden';


//window.parent.document.getElementById(ObjName).style.visibility='hidden';
}

function Afficher(ObjetID) {
// Reproduction interdite
	if(document.getElementById(ObjetID).style.display==''){
	 document.getElementById(ObjetID).style.visibility='hidden';
	} else {
	 document.getElementById(ObjetID).style.display='';
	 document.getElementById(ObjetID).style.visibility='visible'
	}
}

function popup(page, largeur, hauteur) {
  window.open(page, "", "scrollbars=yes,menubar=no,toolbar=no,resizable=no,width=" + largeur + ",height=" + hauteur);
}