
  
// Petite horloge
  function tick() {
	
	var seconds, hours, minutes, day,numJour;
	var intSeconds, intHours, intMinutes, intJour, jour, month, year;
	var today;
	var tabJour = new Array("Dimanche", "Lundi", "Mardi", "Mercredi","Jeudi", "Vendredi", "Samedi");
	today = new Date();
	var tabMois = new Array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");

	intHours = today.getHours();
	intMinutes = today.getMinutes();
	intSeconds = today.getSeconds();
	intJour = today.getDay();
	numJour=today.getDate();
	month = today.getMonth();
	year = today.getYear();

	if (intHours < 10) {
	     hours = "0"+intHours+":";}
	else {
	     hours = intHours+":";}

	if (intMinutes < 10) {
	     minutes = "0"+intMinutes+":";
	} else {
	     minutes = intMinutes+":";
	  }

	if (intSeconds < 10) {
	     seconds = "0"+intSeconds;
	} else {
	     seconds = intSeconds;
	  }

	jour = tabJour[intJour];
	month = tabMois[month];

	timeString = jour+", "+numJour+" "+month+" "+year+" <br> "+hours+minutes+seconds;
	Clock.innerHTML = timeString;
	window.setTimeout("tick();", 1000 - today.getTime() % 1000);
  }
  
  function msg(string){
	window.status=string;
  }
 
  function dmsg() {
	window.status="1TiG1, le site qu'il est bien pour surfer !!";
  }

  function transition(duree) {
        hdiv.style.visibility = "hidden"
	mdiv.filters.item(0).apply()
	mdiv.filters.item(0).transition = 23
	hdiv.style.visibility = "visible"
	mdiv.filters(0).play(duree)
  }
  
  var i = 0;
  var chaine = "";
  var today = new Date;
   
  function titre() {
     texte = ".: www.1tig1.fr.st :: Le site ouaibe officiel :.";
     chaine = "";
   	
   	if ( i + 30 > texte.length ) {
   	  chaine = texte.substring(i, texte.length) + " " + texte.substring(0, ( 30 - ( texte.length - i ) ) );
   	}
   	else {
   	  chaine = texte.substring(i, i + 30);
   	}
   	
   	if ( i > texte.length ) {
   	  i = 0;
   	}
   	
	document.title = chaine;
	i = i + 1;
	window.setTimeout("titre();", 800 - today.getTime() % 1000);
  }
 
