/*
Pausing updown message scroller- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
Terms Of Use, visit http://www.dynamicdrive.com
*/

		//configure the below five variables to change the style of the scroller
		var scrollerwidth='160px'
		var scrollerheight='93px'
		var scrollerbgcolor='#CDEDBF'
		//set below to '' if you don't wish to use a background image
		var scrollerbackground=''
		
		//configure the below variable to change the contents of the scroller
		var messages=new Array()
		
		messages[0]='<font  class=txt align=right><b><img src="./photos/basmallah.gif" border=0 width=152 height=27><br><center>Au Nom de DIEU Le Clément, Le Misericordieux.</b><br>Cheikh Salihou MBACKE yalla nafi yag lol té wër.</center>';
		messages[1]='<center><img src="./photos/khalif_moustapha_pm.gif" border=0 width=42 height=42><img src="./photos/khalif_fallou_pm.gif" border=0 width=42 height=42><img src="./photos/khalif_ahad_pm.gif" border=0 width=42 height=42><img src="./photos/khalif_khadre_pm.gif" border=0 width=42 height=42><img src="./photos/khalif_saliou_pm.gif" border=0 width=42 height=42></center>';
		messages[2]='<b><font class="suite2">Maouloud 2007/1428 H.</font></b><br>anniversaire de la naissance du Prophète Mouhammad (PSL) sera célébré dans la nuit du 11 au 12 éme Rabî ul Awwal (nuit du 31 Mars au 01 avril 2007) à TOUBA';
		messages[3]='<b><font class="suite2">Maouloud 2007/1428 H.</font></b><br>anniversaire de la naissance du Prophète Mouhammad (PSL) sera célébré dans la nuit du 11 au 12 éme Rabî ul Awwal (nuit du 31 Mars au 01 avril 2007) à TOUBA';
		//messages[3]='<b>MAGAL DE TOUBA<br> 18 Safar 1428 sera célébré le Jeudi 08 Mars 2007</b>';
		//messages[2]='<center><b>Fin du mois béni de Ramadan. La Korité, á Touba, sera célébrée le Lundi 23 Octobre 2006</b></center>';
		//messages[2]='Journée de prières (<b>Magal Sokhna Diarra</b>) à la mémoire de Seyyidatuna <b>Mariama BOUSSO</b> (vénérée mére de Cheikhoul Khadim) le 05 mai 2005 (25 Rabi_ul Awwal 1426H.) à Porokhane';
		//messages[3]='<center><a href="javascript:Playkhashome(29)" class="suite2"><b>Alocution Serigne Saliou du 20 Avril 2005</b>...écouter</a></center>';
		//messages[2]='<b>MAGAL DE TOUBA<br> 18 Safar 1427 sera célébré le Dimanche 19 Mars 2006</b>';
		//messages[5]='<center><a href="javascript:Playkhashome(28)" class="suite2"><img src="./images/home/appelmagal2005.gif" border=0 width=143 height=88></a></center>';
		//messages[3]='<a href="affiche_revue_de_presse.php3?page=article3" class="linktitre"><b>TOUBA - Réfection de la grande mosquée</b> : Le khalife annonce le début des travaux... </a>';
		//messages[8]='Journée de prières à la mémoire de <b>Serigne Modou Bousso Dieng</b> a éte célébrée le Vendredi 25 février 2005 à Touba Khaïra.';
		//messages[9]='<b>Magal de Serigne ABDOUL KHADRE MBACKE</b> quatrième Khalif Général des Mourides (1989-1990) le samedi 12 février 2005.';
		//messages[3]='La fête de la <b>Tabaski</b> a été célébrée à Touba le vendredi 11 janvier 2006 (10 Dhûl Hijjah 1425 H.)';
		//messages[8]='<a href="evenements.htm" class="suite2"><b>Communiqué fait par CHEIKH SALIOU MBACKE Khalife Général des Mourides.</b><br>TOUBA le mardi 22 Dhûl Qicda 1425 H. / 04 janvier 2005. </a>';
		//messages[12]='<b>Magal de Mame Cheikh Anta Mbacké</b><br>Il a été célébré le samedi premier janvier 2005.';
		//messages[4]='<Nécrologie : Rappel à DIEU de Serigne Mouhammadou Falilou FALL Khalife Général des Baye FALL. Petit-fils et sixième Khalife de Mame Cheikh Ibrahima FALL, Serigne Modou Aminata FALL est rappelé à DIEU le 16 janvier 2006';
				
function OpenWindow(url) {
   Fiche = window.open(url,"Important","width=530,height=600,menubar=no,toolbar=no, status=no, scrollbars=yes, resizable=no,left=0,top=0");
}

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById

if (messages.length>2)
i=2
else
i=0

function move1(whichlayer){
tlayer=eval(whichlayer)
if (tlayer.top>0&&tlayer.top<=5){
tlayer.top=0
setTimeout("move1(tlayer)",4000)
setTimeout("move2(document.main.document.second)",4000)
return
}
if (tlayer.top>=tlayer.document.height*-1){
tlayer.top-=5
setTimeout("move1(tlayer)",30)
}
else{
tlayer.top=parseInt(scrollerheight)
tlayer.document.write(messages[i])
tlayer.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move2(whichlayer){
tlayer2=eval(whichlayer)
if (tlayer2.top>0&&tlayer2.top<=5){
tlayer2.top=0
setTimeout("move2(tlayer2)",4000)
setTimeout("move1(document.main.document.first)",4000)
return
}
if (tlayer2.top>=tlayer2.document.height*-1){
tlayer2.top-=5
setTimeout("move2(tlayer2)",30)
}
else{
tlayer2.top=parseInt(scrollerheight)
tlayer2.document.write(messages[i])
tlayer2.document.close()
if (i==messages.length-1)
i=0
else
i++
}
}

function move3(whichdiv){
tdiv=eval(whichdiv)
if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
tdiv.style.top=0+"px"
setTimeout("move3(tdiv)",4000)
setTimeout("move4(second2_obj)",4000)
return
}
if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
setTimeout("move3(tdiv)",30)
}
else{
tdiv.style.top=parseInt(scrollerheight)
tdiv.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function move4(whichdiv){
tdiv2=eval(whichdiv)
if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
tdiv2.style.top=0+"px"
setTimeout("move4(tdiv2)",4000)
setTimeout("move3(first2_obj)",4000)
return
}
if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
setTimeout("move4(second2_obj)",30)
}
else{
tdiv2.style.top=parseInt(scrollerheight)
tdiv2.innerHTML=messages[i]
if (i==messages.length-1)
i=0
else
i++
}
}

function startscroll(){
if (ie||dom){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move3(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}
else if (document.layers){
document.main.visibility='show'
move1(document.main.document.first)
document.main.document.second.top=parseInt(scrollerheight)+5
document.main.document.second.visibility='show'
}
}

window.onload=startscroll



document.writeln('<ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; background=&{scrollerbackground}; visibility=hide>')
document.writeln('<layer id="first" left=0 top=1 width=&{scrollerwidth};>')
document.writeln('<script language="JavaScript1.2">')
document.writeln('if (document.layers)')
document.writeln('document.write(messages[0])')
document.writeln('</script>')
document.writeln('</layer>')
document.writeln('<layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>')

if (document.layers)
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])

document.writeln('</layer>')
document.writeln('</ilayer>')

if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}
