// JavaScript Document
function populateSelect(selectobj){
for (var i=0; i<picsarray.length; i++)
selectobj.options[selectobj.options.length]=new Option(picsarray[i], picsarray[i])
if (selectobj.options.length>1){
selectobj.selectedIndex=0
showpicture(document.getElementById("picsform").picslist)
}
}

function showpicture(selectobj){
piccontainerobj=document.getElementById("picturearea")
//piccontainerobj.innerHTML='<img src="'+locationstring+selectobj.options[selectobj.selectedIndex].value+'">'
piccontainerobj.innerHTML='<object type="application/x-shockwave-flash" width="500" height="375" data="../data/player.swf"><param name="movie" value="../data/player.swf"/><param name="flashvars" value="file='+selectobj.options[selectobj.selectedIndex].value+'"/></object>'
}
var n = 1;
var max = 2; <!-- 4 -->
var vitesse = 150;
function flash()
{
if(n != max){n++}else{n = 1};
document.getElementById("bloc_texte").className = "c"+n;
setTimeout("flash()",vitesse)
}
window.onload=function(){
flash()
populateSelect(document.getElementById("picsform").picslist)
}
