var paysvis = -1;
var timerv;
var chf;

function init(){
	// Mantis 1108 (for(var i=0; i<16; i++){)
	for(var i=0; i<15; i++){
		eval('DPays'+i+' = new DynLayer("Pays'+i+'");');
	}
}

function lienLang(id,vis){
	clearTimeout(timerv);
	if(vis){
		if(paysvis >= 0) eval('DPays'+ paysvis +'.hide()');
		eval('DPays'+ id +'.show()');
		paysvis = id;
	} else {
		chf = 'DPays'+ id +'.hide()';
		timerv = setTimeout("eval(chf);",500);
	}
}

function attente(){
	clearTimeout(timerv);
}

var theImages = new Array()
theImages[0] = 'cita_01.gif'
theImages[1] = 'cita_02.gif'
theImages[2] = 'cita_03.gif'
theImages[3] = 'cita_04.gif'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="static/img/'+theImages[whichImage]+'">');
}
