//Script Dernieres Nouvelles
//Style Telex sophistique. Style machine a ecrire qui autorise textes et liens !

//<!-- arrays of text or links -->
var myTickerText = new Array();
var myTickerLinks = new Array();
//EDITEZ CES TEXTES ET CES LIENS
myTickerText[0]  = "Trasformez 200€ en 288€ dans 18 jours !";
myTickerLinks[0] = "http://www.managesurf.com/fr/?ri=2645";

myTickerText[1] = "5500$ DE PRODUIT WEBMASTER POUR SEULEMENT 37$ SATISFAIT AU REMBOURSER!";
myTickerLinks[1] = "http://www.france-giveaway.com/dir/pdtscdx/sorcone.htm";

myTickerText[2] = "GENEREZ QUELQUES MILLIERS DE € PAR MOIS ";
myTickerLinks[2] = "http://www.theritchierich.com/?id=eaa7b303 ";

myTickerText[3] = "DECOUVREZ LES MEILLEURES SYSTEME POUR GAGNER AVEC LES AFFILIATIONS";
myTickerLinks[3] = "http://www.affiliationxpert.com/?a_aid=9a61b2fd";

myTickerText[4] = "VENEZ VITE A VOUS INSCRIRE A LA GRANDE FOIRE AU CADEAU";
myTickerLinks[4] = "http://www.france-giveaway.com/go/4581";

//vous en voulez plus. Ajoutez simplement 2 lignes avec le numéro suivant entre les crochets et sans les 2 slash devant.

myTickerText[5] = "AFFILIEZ VOUS A NOTRE PROGRAMME ET GAGNEZ 70% DE COMMISSION";
myTickerLinks[5] = "http://www.1tpe.com/index-pro.php?p=gagneur";

myTickerText[6] = "NOUVEAUTE 2009: Revenu partagé !";
myTickerLinks[6] = "http://serve.affutd.com/promoRedirect?member=FRSoreste&campaign=DEFAULT&channel=DEFAULT&zone=215269145&lp=215257115";

myTickerText[7] = "VOTRE SITE ICI ? cliquez ici";
myTickerLinks[7] = "annonceur.php";



var Inc = new Number(0);      // used to itterate through array
var theCharacterTimeout = 80; //pause tween chars
var theStoryTimeout = 6000;   //pause at end of line
var theEnumerator = 0;        //used to iterate through the individual strings


// --- Run the ticker
function start()
{
doTheTicker();
}



function doTheTicker()
{
if(Inc > (myTickerText.length - 1)){Inc=0;}

   if((theEnumerator % 2) == 1)
   {
      writeTicker("_",Inc);
   }
   else
   {
      writeTicker("*",Inc);
   }

   theEnumerator++;
	
   if(theEnumerator == myTickerText[(Inc)].length+1)
   {
      writeTicker("",Inc);
      theEnumerator = 0;
      Inc++;
      setTimeout('doTheTicker()', theStoryTimeout); 
          
   }
   else
   {
      setTimeout('doTheTicker((Inc))', theCharacterTimeout);
   }
}

function writeTicker(aWidget,vn)
{
   
   var hrefstr = new String();
   var endhrefstr = new String();
   
   hrefstr = "<a href='" + myTickerLinks[vn] + "' target='_blank'>";
   endhrefstr = "</a>";
   document.all.hottext.innerHTML = hrefstr + myTickerText[vn].substring(0,theEnumerator) + aWidget + endhrefstr;
}