// width of the ticker
var tickerwidth=160

// height of the ticker
var tickerheight=50

// distance from the messagetext to the tickermarrgin (pixels)
var tickerpadding=5

// borderwidth of the ticker (pixels)
var borderwidth=1

// font-family
var fnt="Arial"

// font-size of the text
var fntsize=8

// font-size of the last letter of the ticker
var fntsizelastletter=8

// font-color of the text
var fntcolor="FFFFFF"

// font-color of the last letter of the ticker
var fntcolorlastletter="FFFFFF"

// font-weight. Set a value between 1 to 9 to adjust the boldness
var fntweight=3

// backgroundcolor
var backgroundcolor="9AA3AD"

// standstill between the messages (microseconds)
var standstill=300

// speed (a higher value will slow down the ticker)
var speed=1

// horizontal distance from the textlink to the popupbox (pixels)
var xdistance=5

// vertical distance from the textlink to the popupbox (pixels)
libDir="dhtml";
OBJLIB=1;
document.write('<script language="javascript" src="dhtml/launcher.js"></script>');

var ydistance=5

// Do not edit the variables below
var timer
var topposition=0
var leftposition=0
var x,y
var i_substring=0
var i_presubstring=0
var i_message=0
var message
var messagecontent=""
var messagebackground=""
var messagepresubstring=""
var messageaftersubstring=""
fntweight=fntweight*100

function getmessagebackground(w,h) {
                messagebackground="<table border="+borderwidth+" width="+tickerwidth+" height="+tickerheight+" cellspacing=0 cellpadding=0><tr><td valign=top bgcolor='"+backgroundcolor+"'>"
                messagebackground+="&nbsp;</td></tr></table>"
}

function getmessagecontent() {
                messagecontent="<table border=0 cellspacing=0 cellpadding="+tickerpadding+" width="+tickerwidth+" height="+tickerheight+"><tr><td valign=top>"
                messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsize+"pt;font-weight:"+fntweight+"'>"
                messagecontent+="<font color='"+fntcolor+"'>"
                messagecontent+=messagepresubstring
                messagecontent+="</font>"
                messagecontent+="</span>"
                messagecontent+="<span style='position:relative; font-family:"+fnt+";color:"+fntcolor+";font-size:"+fntsizelastletter+"pt;font-weight:900'>"
                messagecontent+="<font color='"+fntcolorlastletter+"'>"
                messagecontent+=messageaftersubstring
                messagecontent+="</font>"
                messagecontent+="</span>"
                messagecontent+="</td></tr></table>"
}

function handlerMM(e){
        x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX
        y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY
}
function ouvrirPopup(url, decalX, decalY)
    {
      // ouvre fenêtre dans une pop-up
      if( decalX == null ) decalX = 200;
      if( decalY == null ) decalY = 200;
      var width = Math.max(screen.availWidth-decalX, Math.min(screen.availWidth - 50,700));
      var height = Math.max(screen.availHeight-decalY, Math.min(screen.availHeight - 50,500));
      var left = (screen.availWidth - width) / 2;
      var top = (screen.availHeight - height) / 2;
      param="width="+width+",height="+height+",left="+left+",top="+top+",scrollbars=yes,resizable=yes";
      window.open(url,"",param);
 }


if (document.layers){
  document.captureEvents(Event.MOUSEMOVE);
}
if (document.layers){
document.onmousemove = handlerMM;
}


