document.write("</td></tr>");
document.write("<tr><td>");

//Backslash any apostrophes within your text (ie: I\'m the king of the world!)
var tickercontents=new Array();
tickercontents[0]='Version 2.12 de <a href="pocketcontact.htm">Pocket CONTACT</a> - Communiquez sans limite avec vos contacts';
tickercontents[1]='Version 4.31 de <a href="balicompta.htm">Bali COMPTA / Pocket COMPTA</a> - La gestion intégrale de vos finances';
tickercontents[2]='Version 3.21 de <a href="pocketinsight.htm">Pocket INSIGHT</a> - Structurez vos notes sur Pocket PC et PC';
tickercontents[3]='Reportage ULM sur le <a href="http://www.grandsudevasion.com/" target="_blank">MAROC Atlantique Evasion 2006</a> et <a href="http://ultralight.free.fr/video/maroc.wmv">Vidéo</a> complète en ligne !';
tickercontents[4]='Reportage ULM sur le <a href="http://www.grandsudevasion.com/" target="_blank">Chott Evasion Tunisie 2005</a> et <a href="http://ultralight.free.fr/video/chott.wmv">Vidéo</a> complète en ligne !';
tickercontents[5]='Participation au <a href="http://www.hexagonevents.org/index-1.html" target="_blank">French Technologies Showcase</a> à San Francisco les 24 et 25 mai 2005';
tickercontents[6]='Version 6.03 de <a href="baliplan.htm">Bali PLANNING</a> - La gestion réseau de votre emploi du temps';
tickercontents[7]='<a href="pocketastro.htm">Pocket ASTRO</a> Version 1.3 pour Pocket PC 2002/2003';
tickercontents[8]='<a href="http://ulm.baliciel.com/" target="_blank">ULM sur le Net</a> : découvrez le portail ULM francophone';

var persistlastviewedmsg=1;
var persistmsgbehavior="onload";
var tickdelay=5000;
var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : '';
var currentmessage=0;

function changetickercontent()
{
  if (crosstick.filters && crosstick.filters.length>0) crosstick.filters[0].Apply();
  crosstick.innerHTML=tickercontents[currentmessage];
  if (crosstick.filters && crosstick.filters.length>0) crosstick.filters[0].Play();
  currentmessage=(currentmessage==tickercontents.length-1)? currentmessage=0 : currentmessage+1;
  var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0;
  setTimeout("changetickercontent()",tickdelay+filterduration);
}

function beginticker()
{
  if (persistlastviewedmsg && get_cookie("lastmsgnum")!="") revivelastmsg();
  crosstick=document.getElementById? document.getElementById("memoryticker") : document.all.memoryticker;
  changetickercontent();
}

function get_cookie(Name)
{
  var search = Name + "=";
  var returnvalue = "";
  if (document.cookie.length > 0) 
  {
    offset = document.cookie.indexOf(search);
    if (offset != -1) 
    {
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end));
    }
  }
  return returnvalue;
}

function savelastmsg() { document.cookie="lastmsgnum="+currentmessage; }

function revivelastmsg()
{
  currentmessage=parseInt(get_cookie("lastmsgnum"));
  currentmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1;
}

if (persistlastviewedmsg && persistmsgbehavior=="onload") window.onunload=savelastmsg;
if (document.all||document.getElementById) document.write('<div id="memoryticker" '+divonclick+'></div>');
if (window.addEventListener) window.addEventListener("load", beginticker, false);
else if (window.attachEvent) window.attachEvent("onload", beginticker);
else if (document.all || document.getElementById) window.onload=beginticker;

document.write("</td></tr>");
document.write("<tr height=20><td background='../images/pagemenu.jpg'>");
document.write("<table border=0 cellspacing=0 cellpadding=0 width='100%'><tr>");
document.write("<td align='left' width='33%'>&nbsp;&nbsp;&nbsp;<span class='BAL0'>Création © 2008 Baliciel</span></td>");
document.write("<td align='center' width='34%'><img src='../cgi-local/compteur.php?cpt=counter1.txt'></td>");
document.write("<td align='right' width='33%'><a href='http://www.baliciel.com/BALICIEL_WEB/FR/Contact.php'>Contact</a>&nbsp;&nbsp;&nbsp;</td>");
document.write("</tr></table>");
document.write("</td></tr>");
document.write("</table>");

