/*****************************************************
* Créer le 9 juin 2002,			 *
*   Javascript  pour les news                        *
*   de la page d'accueil d'Investim, modif: 20.02.06 *
*****************************************************/

//scroller width
var swidth=300

//scroller height
var sheight=100


//scroller's speed;
var sspeed=2

var wholemessage=''

//text: change to your own
wholemessage='<div align="center"><font face=Arial size=2 color="#ffffff"><strong>INVESTIM</strong></DIV><div align="center">Plus de 25 ans d´expériences</DIV><div align="center">Soyez en contact</DIV><div align="center">quotidien avec nous</DIV><div align="center"><font face=Arial size=3 color="#FF0303"><strong>* * * </strong></font></DIV><div align="center"><font face=Arial size=2 color="#ffffff"><strong>Nous vous offrons</strong></DIV><div align="center">des personnes compétentes</DIV><div align="center">pour vendre, chercher</DIV><div align="center">ou gérer vos locatifs</DIV><div align="center"><font face=Arial size=3 color="#FF0303"><strong>* * * * *</strong></font></DIV><div align="center"><font face=Arial size=3 color="#FF0303"><strong>* * * *</strong></font></DIV><div align="center"><font face=Arial size=3 color="#FF0303"><strong>* * * </strong></font></DIV><div align="center"><font face=Arial size=3 color="#FF0303"><strong>* *</strong></font></DIV><div align="center"><font face=Arial size=3 color="#FF0303"><strong>*</strong></font></DIV>'

function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
ns6marquee(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
ns4marquee(document.slider1.document.slider2)
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
ns4layer.document.write(wholemessage)
ns4layer.document.close()
sizeup=ns4layer.document.height
ns4layer.top-=sizeup
ns4slide()
}
function ns4slide(){
if (ns4layer.top>=sizeup*(-1)){
ns4layer.top-=sspeed
setTimeout("ns4slide()",100)
}
else{
ns4layer.top=sheight
ns4slide()
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
ns6div.innerHTML=wholemessage
ns6div.style.top=sheight
sizeup=sheight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6slide()",100)
}
else{
ns6div.style.top=sheight
ns6slide()
}
}
