
var scrollerwidth=170
var scrollerheight=70
var scrollerbgcolor=''


var scrollerbackground=''

var messages=new Array()

messages[0]="<font color='##000000'><b>13ème Forum de la Chimie<br>LA CHIMIE, UN POTENTIEL DE DEVELOPPEMENT POUR UN MAROC EN MARCHE<br><br>30 Octobre 2008 à Casablanca</font>"
 
messages[1]="<font color='##000000'><b><br>The 2008 Responsible Care Leadership Group Meeting <br><br> du 08 au 10 Octobre 2008 à Marrakech </font>"

messages[2]="<font color='##256507'><b><br>Assemblée Générale Constitutive du Centre des Services de la Chimie <br><br>25 Septembre 2008 au siège de la Fédération </font>"

if (messages.length>2)
	{
		i=2;
	}
else
	{
		i=0;
	}

function move3(whichdiv)
	{
	tdiv=eval(whichdiv)
	if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5)
		{
			tdiv.style.pixelTop=0
			setTimeout("move3(tdiv)",5000)
			setTimeout("move4(second2)",5000)
			return
		}
	if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1)
		{
			tdiv.style.pixelTop-=5
			setTimeout("move3(tdiv)",200)
		}
	else
		{
			tdiv.style.pixelTop=scrollerheight
			tdiv.innerHTML=messages[i]
			
			if (i>=messages.length-1)
			i=0
			else
			i++
		}
}

function move4(whichdiv)
{
	tdiv2=eval(whichdiv)
	if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5)
		{
			tdiv2.style.pixelTop=0
			setTimeout("move4(tdiv2)",4000)
			setTimeout("move3(first2)",4000)
			return
		}
	if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1)
		{
			tdiv2.style.pixelTop-=4
			setTimeout("move4(second2)",100)
		}
	else
		{
			tdiv2.style.pixelTop=scrollerheight
			tdiv2.innerHTML=messages[i]
			
			if (i>=messages.length-1)
			i=0
			else
			i++
		}
}

//

function startscroll()
{
	if (document.all)
		{
			move3(first2)
			second2.style.top=scrollerheight
			second2.style.visibility='visible'
		}
	else if (document.layers)
		{
			document.main.visibility='show'
			move1(document.main.document.first)
			document.main.document.second.top=scrollerheight+5
			document.main.document.second.visibility='show'
		}

}

window.onload=startscroll
//window.onresize=startscroll
