var txt_defil_width = 200; //largeur
var txt_defil_height = 180; //hauteur
var txt_defil_bgcolor = ''; //couleur de fond
var txt_defil_background = ""; //image de fond
var txt_defil_pause = 2000; //Temps en milliemes de secondes 
var txt_defil_info = new Array;

txt_defil_info[0]='<p align=\"left\"><center><a href=\"http://www.pub.palfinger.extranet-gv.fr/doc/Documentations_Commerciales/Presentation_VICAN.pdf"  target=\"_blank\"><img src="../images/produits/Logo_VICAN.gif" border="0"></a><br><strong>Interface Homme <> Machine <br>Un écran intelligent</strong><center>';
//txt_defil_info[1]='<p align=\"left\"><center>Bennes VINCENT <br> Porte ouverte le <br>23 septembre 2011 <br><a href=\"http://www.bennes-vincent.fr"  target=\"_blank\"> www.bennes-vincent.fr</a></center></p>';
//txt_defil_info[2]='<p align=\"left\"><center><a href=\"http://www.badgeonline.fr/solutrans2011/default_fr.htm?codeinvit=PALF\" target=\"_blank\"><img src=\"../images/logo_solutrans_2011.gif\" border=\"0\"></a></center></p>';
//txt_defil_info[2]='<p align=\"left\"><center><a href=\"http://http://www.salon-funeraire.com/\" target=\"_blank\"><img src=\"../images/logo_Funeraire_2011.jpg\" border=\"0\"></a><br>17 au 19 nov.<br>Paris - Le Bourget</center></p>';
txt_defil_info[1]='<p align=\"left\"><font color=\"#FF0000\">MAJ</font><br><br><a href=\"../occasion/index.htm\"  target=\"_parent\">Rubrique - Matériels d\'occasions</FONT></a><br>- <strong>DAF CF85 6x2<br>Grue Palfinger PK 15500<br>Polybras Guima T20</strong>';
//txt_defil_info[2]='<p align=\"left\"><center><a href=\"http://www.lesjourneesdulevage.fr/\" target=\"_blank\"><img src=\"../images/logo_jdl_2011.jpg\" border=\"0\"></a><br>Les Journées Du Levage<br>les 23 et 24 juin<br>DisneyLand - PARIS</center></p>';
//txt_defil_info[2]='<p align=\"left\"><center><a href=\"http://http://www.batimat.com/\" target=\"_blank\"><img src=\"../images/logo_batimat_2011.jpg\" border=\"0\"><br></a>Salon international <br>de la construction<br>du 7 au 12 Novembre<br>PARIS Porte de Versaille</center></p>';
//txt_defil_info[2]='<p align=\"left\"><center><a href=\"../images/Grd_Px_Camions_Magny-Cours.pdf\" target=\"_blank\"><img src=\"../images/Affiche_A4_Magny-Cours.jpg\" border=\"0\"></a><br>8 et 9 octobre - Circuit du Mans</center></p>';

//PLF - http://www.jejavascript.net/
function writext(texdef)
	{
	document.write(texdef);
	}

writext('<DIV ID=txt_defil_relativ onMouseOver="txt_defil_stop()" onMouseOut="txt_defil_rstart()" STYLE="position:relative;width:'+txt_defil_width +';height:'+txt_defil_height+';background-color:'+txt_defil_bgcolor+';background-image:url('+txt_defil_background+')">');
writext('<DIV ID=txt_defil_cadre STYLE="position:absolute;width:'+(txt_defil_width -8)+';height:'+(txt_defil_height-8)+';top:4;left:4;clip:rect(0 '+(txt_defil_width -8)+' '+(txt_defil_height-8)+' 0)">');
writext('<div id=txt_defiler_1 style="position:absolute;width:'+(txt_defil_width -8)+';left:0;top:0;" CLASS=txt_defil >'+txt_defil_info[0]+'</DIV>');
writext('<div id=txt_defiler_2 style="position:absolute;width:'+(txt_defil_width -8)+';left:0;top:'+txt_defil_height+';" CLASS=txt_defil >'+txt_defil_info[1]+'</DIV>');
writext('</DIV></DIV>');

txt_defil_1 =1;
txt_defil_2 = 0;
stop_mouss=0;

function txt_defil_f1()
	{
	if(txt_defil_1 == 1)
		{
		txt_defiler_haut = "txt_defiler_1";
		txt_defiler_bas = "txt_defiler_2";
		txt_defil_1 = 0;
		}
	else
		{
		txt_defiler_bas = "txt_defiler_1";
		txt_defiler_haut = "txt_defiler_2";
		txt_defil_1 = 1;
		}
	txt_defil_nb_info = txt_defil_info.length-1;
	if(txt_defil_2 == txt_defil_nb_info)
		txt_defil_next = 0;
	else
		txt_defil_next = txt_defil_2+1;
	if(document.getElementById)
		document.getElementById(txt_defiler_bas).innerHTML = txt_defil_info[txt_defil_next];
	txt_defil_top = 0;
	if(document.getElementById)
	move1=setTimeout("txt_defil_f2 ()",txt_defil_pause)
	}

function txt_defil_f2 ()
	{
if (stop_mouss == 0)
{	
	txt_defil_top -= 1;
	document.getElementById(txt_defiler_haut).style.top = txt_defil_top;
	document.getElementById(txt_defiler_bas).style.top = txt_defil_top+txt_defil_height;
	if((txt_defil_top+txt_defil_height) > 0)
	move2=setTimeout("txt_defil_f2 ()",10)
	else
		txt_defil_f3()
}
else	move1=setTimeout("txt_defil_f2 ()",1000)	
	}

function txt_defil_f3()
	{
	txt_defil_2 = txt_defil_next;
	txt_defil_f1()
	}
function txt_defil_stop()
	{
	stop_mouss=1;
	}
function txt_defil_rstart()
	{
	stop_mouss=0;
	}	
window.onload = txt_defil_f1;



