/*Messages arrays for the scroller*/
var pausecontent=new Array()
pausecontent[0]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">Europe Mob. <span class="quotes_sign_white">&#225;pd</span></span><span class="rates-price"><span class="quotes_sign_white">&#8364; </span><b>0,09</b></span></a>'
pausecontent[1]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">Europe</span><span class="rates-price"><b>0,025</b></span></a>'
pausecontent[2]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">Africa Mob. <span class="quotes_sign_white">&#225;pd</span></span><span class="rates-price"><span class="quotes_sign_white">&#8364; </span><b>0,08</b></span></a>'
pausecontent[3]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">Africa <span class="quotes_sign_white">&#225;pd</span></span><span class="rates-price"><span class="quotes_sign_white">&#8364; </span><b>0,03</b></span></a>'
pausecontent[4]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">Entre Nomado </span><span class="rates-price"><b>GRATUIT</b></span></a>'
pausecontent[5]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">France Mob. <span class="quotes_sign_white">&#225;pd</span></span><span class="rates-price"><span class="quotes_sign_white">&#8364; </span><b>0,13</b></span></a>'
pausecontent[6]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="defGauche">SMS</span><span class="rates-price"><span class="quotes_sign_white">&#8364; </span><b> 0,15</b></span></a>'

var pausecontent4=new Array()
pausecontent4[0]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">Europe Mob.   <span class="quotes_sign_blue">&#225;pd</span><span class="rates-price-blue"><span class="quotes_sign_blue">&#8364; </span><b>0,09</b></span></span></a>'
pausecontent4[1]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">Europe   <span class="rates-price-blue"><b>0,025</b></span></span></a>'
pausecontent4[2]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">Africa Mob.   <span class="quotes_sign_blue">&#225;pd</span><span class="rates-price-blue"><span class="quotes_sign_blue">&#8364; </span><b>0,08</b></span></span></a>'
pausecontent4[3]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">Africa    <span class="quotes_sign_blue">&#225;pd</span><span class="rates-price-blue"><span class="quotes_sign_blue">&#8364; </span><b>0,03</b></span></span></a>'
pausecontent4[4]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">Entre Nomado  <span class="rates-price-blue"><b>GRATUIT</b></span></span></a>'
pausecontent4[5]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">France Mob.    <span class="quotes_sign_blue">&#225;pd</span><span class="rates-price-blue"><span class="quotes_sign_blue">&#8364; </span><b>0,13</b></span></span></a>'
pausecontent4[6]='<a href="./?/Tarifs#rates" style="text-decoration:none"><span class="bleu">SMS    <span class="rates-price-blue"><span class="quotes_sign_blue">&#8364; </span><b> 0,15</b></span></span></a>'

var pausecontent2=new Array()
pausecontent2[0]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;Thanks to Nomado, we call unlimited, to many countries worldwide for a fraction of the price! It is a great saving ...&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>L.N. UNITED NATIONS Industrial Development Organisation,&nbsp;Brussels</i></span>'
pausecontent2[1]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;I cannot believe how commited the customer support is&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="highlight">&laquo;</span>&nbsp;&nbsp;Really good to see we europeans are up there on the technology&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>Anthony Merrett, Brookland, United Kingdom</i></span>'
pausecontent2[2]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;Tr&egrave;s satisfaite des services NOMADO, qui ont pu faire baisser mes factures de t&eacute;l&eacute;phone consid&eacute;rablement. Tr&egrave;s satisfaite aussi de l\'efficacit&eacute; de ses repr&eacute;sentants\!&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>Sophie A. Fran&ccedil;aise &agrave; Bruxelles</i></span>'
pausecontent2[3]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;sono un italiano e dovendo per lavoro fare uso quotidiano del&nbsp;telefono sono sempre stato alla ricerca di un operatore telefonico che mi potesse garantire :qualit&agrave; , economicit&agrave; , gentilezza ... &nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>Frassi Pierro, Chiomonte, Italia</i></span>'
pausecontent2[4]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;Service simple d&rsquo;utilisation, support technique tr&egrave;s bon et tr&egrave;s serviable&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>Abderraouf BOUCHERIF, &eacute;tudiant en doctorat de physique, Lyon</i></span>'
pausecontent2[5]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;J\'ai vu ma note de t&eacute;l&eacute;phone transfrontalier baisser significativement. Et mes enfants rest&eacute;s en France en profitent &eacute;galement&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>Alain L. (Fran&ccedil;ais install&eacute; &agrave; Bruxelles)</i></span>'
pausecontent2[6]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;Plus que facile, qualit&eacute; du son et de la voix, du haut de gamme&nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>BENARBA Tarik, cadre commercial, Alger</i></span>'
pausecontent2[7]='<span class="highlight">&laquo;</span>&nbsp;&nbsp;GRATULACJE! Trudno jest znale&#378;&#263; dobrego operatora telekomunikacji. Popierani&nbsp;reklam&#261;, obiecuj&#261; dobre korzystne warunki,ale nie do ko&#324;ca z nich si&#281; wywi&#261;zuj&#261;. ... &nbsp;&nbsp;<span class="highlight">&raquo;</span><br /><span class="orange"><i>Janina Wr&oacute;blewska, Warsaw, Poland</i></span>'


/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
***********************************************/

function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}