// © copyright i (france) - tous droits réservés

tmps = 70
identif = 'ncfm'

codeq = ''
contobj = 0

function constobj(phobj,wxobj,hyobj,nimobj,incobj,armobj)
{
	this.phobj = phobj
	this.wxobj = wxobj
	this.hyobj = hyobj
	this.nimobj = nimobj
	this.incobj = incobj
	this.armobj = armobj
}

tabobj = new Array()

inobj = 0


function initobj()
{
	if(nn4)
	{
		lwind = window.innerWidth
		hwind = window.innerHeight
	}
	if(ie4)
	{
		lwind = document.body.clientWidth
		hwind = document.body.clientHeight
	}
	tabobj[inobj++] = new constobj(Math.floor(lwind/30),9,24,'note1',10,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/4.2),15,30,'note2',20,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/13),9,30,'note3',15,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/7),8,28,'note4',30,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/3.7),11,8,'note5',25,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/2),9,28,'note6',20,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/1.4),9,24,'note7',13,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/1.6),9,27,'note8',25,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/1.1),8,27,'note9',35,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/15),9,27,'note10',25,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/2.5),12,8,'note11',15,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/5),9,24,'note1',11,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/11),15,30,'note2',50,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/1.3),9,30,'note3',12,1)
	tabobj[inobj++] = new constobj(Math.floor(lwind/3.3),9,24,'note1',35,1)
	calque()
}


function calque()
{
	for(i=0; i<tabobj.length; i++)
	{
		hdim = tabobj[i].wxobj
		vdim = tabobj[i].hyobj
		contenu = '<img src="icono_pluie/'+tabobj[i].nimobj+'.gif" width="'+hdim+'" height="'+vdim+'" border="0">'
		codeq += '<div id="'+identif+i+'" style="position: absolute; left: '+tabobj[i].phobj+'px; top: -30px; width: '+hdim+'px; height: '+vdim+'px;">'+contenu+'</div>'
	}
	document.write(codeq)
}

function empl()
{
	for(j=0; j<tabobj.length; j++)
	{
		if(tabobj[j].armobj != 0)
		{
			rempl(identif+j,"")
			rcv += tabobj[j].incobj
			wempl(identif+j,"",tabobj[j].phobj,rcv)
			if(rcv > hwind)
			{
				tabobj[j].armobj = 0
				montr(identif+j,"",0)
				contobj++
			}
		}
	}
	if(contobj != tabobj.length)
	{
		setTimeout("empl()",tmps)
	}
}
