
var msgs = new Array("Un homme jugé pour avoir \'\'violé\'\' une femme par téléphone","Une vérité qui dérange encore","47% des employés sont fatigués","Un libraire chrétien arrêté par les autorités de Pékin","Protestantisme : histoire d\'une doctrine spirituelle née à la Renaissance","Quelles relations plus justes entre le Sud et le Nord ?","La carte « famille nombreuse » est rétablie","L’Amérique fait toujours rêver la banlieue française","Hausse des prix alimentaires: « un tsunami silencieux »","Les ADD, premier mouvement évangélique de France");
var msg_url = new Array("http://www.topchretien.com/topinfo/?/35677/","http://www.topchretien.com/topinfo/?/35625/","http://www.topchretien.com/topinfo/?/35627/","http://www.topchretien.com/topinfo/?/35626/","http://www.topchretien.com/topinfo/?/35668/","http://www.topchretien.com/topinfo/?/35610/","http://www.topchretien.com/topinfo/?/35549/","http://www.topchretien.com/topinfo/?/35548/","http://www.topchretien.com/topinfo/?/35528/","http://www.topchretien.com/topinfo/?/35547/");

var barwidth=400 //Enter main bar width in px or %
var setdelay=3000 //Enter delay between msgs, in mili-seconds
var mouseover_color='#FFFFCC' //Specify highlight color
var mouseout_color='#FFFFFF' //Specify default color
/////////////////////////////////////////////////////////////////////

var count=0;
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||ns6){
document.write('<form name="news_bar"><input type="button" value="3" onclick="moveit(0)" class="scrollerstyle" style="width:22; height:22; border-right-width:0px;" name="prev" title="Info précédente"><input type="button" title="les dernières infos du Top Info" name="news_bar_but" onclick="goURL();" style="color:#000000;background:#FFFFFF; width:'+barwidth+'; height:22; border-width:1; border-color:#000000; cursor:hand" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"><input type="button" value="4" onclick="moveit(1)" class="scrollerstyle" style="width:22; height:22; border-left-width:0px;" name="next" title="Info suivante"></form>');
}
else{
document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)">')
if (navigator.userAgent.indexOf("Opera")!=-1)
document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'" border="0">')
else
document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0">')
document.write('<input type="button" value="Next" onclick="moveit(1)"></form>')
}

function init_news_bar(){
  document.news_bar.news_bar_but.value=msgs[count];
}
//moveit function by Dynamicdrive.com
function moveit(how){
if (how==1){ //cycle foward
if (count<msgs.length-1)
count++
else
count=0
}
else{ //cycle backward
if (count==0)
count=msgs.length-1
else
count--
}
document.news_bar.news_bar_but.value=msgs[count];
}

setInterval("moveit(1)",setdelay)

function goURL(){
 window.open(msg_url[count]);
}

init_news_bar();

