	var xmlHttp;
	
	function createXMLHttpRequest() {
		if ( window.ActiveXObject ) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} else if ( window.XMLHttpRequest ) {
			xmlHttp = new XMLHttpRequest();
		}
	}
	
	function changeIndex(lang) {
		createXMLHttpRequest();
		xmlHttp.onreadystatechange = outputIndex;
		xmlHttp.open("GET","ajax/ajax_index.php?lang=" + lang, true);
		xmlHttp.send(null);
	}
	
	function outputIndex() {
		if ( xmlHttp.readyState == 4 ) {
			if ( xmlHttp.status == 200 ) {
				document.getElementById("slogan").innerHTML = xmlHttp.responseText;
			}
		}
	}