div = {
	modifieVisibilite: function(elem, visibility, zIndex) {
		document.getElementById(elem).style.visibility = visibility;
		document.getElementById(elem).style.zIndex = zIndex;
	},
	modifiePosition: function(elem, position, top, left) {
		document.getElementById(elem).style.position = position;
		document.getElementById(elem).style.top = top + "px";
		document.getElementById(elem).style.left = left + "px";
	},
	showCenter: function(elem, width, height) {
		var larg = 1000;
		var haut = 600;
		var correction = 0;
		if(navigator.appName == 'Microsoft Internet Explorer') {
			if(document.body) {
				larg = (document.body.clientWidth);
				//haut = (document.body.clientHeight);
			}
		}
		else
		{
			larg = (window.innerWidth);
			haut = (window.innerHeight);
		}
		larg = Math.round((larg - width) / 2);
		haut = Math.round(((haut - height) / 2));
		div.modifiePosition(elem, "absolute", haut, larg);
		div.modifieVisibilite(elem, "visible", "100");
	}
}
input = {
	arrive: function(valeurParDefaut, elem) {
		inputElement = document.getElementById(elem);
		if(inputElement.value == valeurParDefaut) {
			inputElement.value = '';
		}	
	},
	quitte: function(valeurParDefaut, elem, container) {
		if(inputElement.value == '') {
			inputElement.value = valeurParDefaut;
		}
		document.getElementById(container).style.visibility = 'hidden';
	}
}
body = {
	changerMenu: function(menuMasque, menuAffiche, afficherMetro) {
		div.modifieVisibilite(menuAffiche, 'visible', '100');
		if(afficherMetro == 1) {
			div.showCenter('planMetro', 890, 252);
		}
	}
}
function getDescription(chaine, div) {
	$.ajax({
		type : "GET",
		data : chaine + "&div=" + div,
		url : "http://www.zerotieme.fr/ajax.php",
		success : function(retour) {
			$("#" + div).html(retour);
		}
	});
}