<!-- Fichier javascripts.js -->
//script envoi contact
// D'autres scripts sur http://www.toutjavascript.com
	function Envoyer(f) {
			f.submit();
	}
//script ajout favori
nav = navigator.appName.substring(0,3); ver = navigator.appVersion.substring(0,1) 
function addFav() 
 { if (nav == "Mic" && ver >= 4)  {  url_site="http://philshito.annucartes.com/";  titre_site = "Shito Ryu Karate Do"; 
  document.write('<A HREF="#" onClick="window.external.AddFavorite(url_site, titre_site);return(false);">')   } 
 else   { document.write('Faites CTRL+D pour ajouter ce site &agrave; vos favoris!')   }  }
 
//script page de démarrage
 /*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
function AfficheHomePage()
	{
	if (document.all && document.getElementById)
		{
		document.write('<A HREF="#" onClick="HomePage(this);return(false);"><font size="1" color="#FFFFFF" face="Verdana"><span style="text-decoration: none">DEMARRAGE</span></font></A>');
		}
	}
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://philshito.annucartes.com/');
	}
	
//script défilement barre statut
var msg="MESSAGE";
var index=0;
var delay=200

function defil() {
	// Fonction récursive pour le décalage du texte du message
	var nb_char=msg.length;
	index++;
	if (index>nb_char) index=0;
	window.status=msg.substring(index)+msg;
	setTimeout("defil()",delay);
}

function defiler(txt,tps) {
	//Cette fonction est appelée pour déclencher le défilement.
	msg=txt + "   -   " + txt + "   -   " ;
	delay=tps;
	defil();
}