/*
	Cette bibliothèque de fonctions est sous la license WTFPL
	Plus d'infos : http://sam.zoy.org/wtfpl/
*/

var debugDateStart = new Date();


//Par défaut, browsers en false
ielte6 = false;

//Chargement des bibliothèques
var jsLibrary = [
"prototype", "Array", "Date", "Function", "Math", "Mouse", "Object", "String",
"Debug", "Element", "Event", "OnLoad", "Page", "XMLRequest", "Calendar",
"initSpecial",
"initGeneral"
];
for (var i = 0, length = jsLibrary.length;i!=length;i++) document.write('<script type="text/javascript" language="javascript" src="Share/js/'+jsLibrary[i]+'.js"></script>');
//On va devoir charger la fonction onLoad une fois que tout le DOM est chargé
if (document.addEventListener)  document.addEventListener("DOMContentLoaded", onLoad, false);
//Pour IE, l'appel à la fonction est dans le fichier ieLaunch.js qui est executé en tout dernier
//Par défaut je mets quand même dans le window.onload, si aucun des deux autres ne prends la précédence
window.onload = onLoad;


function onLoad() {
	//On ne fait jouer cette fonction qu'une seule fois, on la marque comme "allreadyLaunched" au premier loading
	if (arguments.callee.allreadyLaunched) return;
	arguments.callee.allreadyLaunched = true;
	
	OnLoad.addInit("form.label_cell", initForm); //fonctions sur formulaire
	OnLoad.addInit("#cp", initGetVilleList); //Affichage automatique des villes en fonction du cp
	
	
	$("ligne_villeEtranger").hide();
		
	
	
	OnLoad.launch();	
	var debugDateEnd = new Date();
	
	
	//vd(Math.roundAt((debugDateEnd - debugDateStart)/1000,2));
}





















