	// JavaScript Document

var result;

function languageDisplay(placeName) {
	$(document).ready(function() {
		$.ajax({
			type: "POST",
			url: "/phpInc/language_display.php",
			dataType: "html",
			async: false,
			success: function(data) {
				$("#"+placeName).html(data);
			}});
	});
}

function changeLanguage(choice) {
	$(document).ready(function() {
		$.ajax({
			type: "POST",
			url:  "/phpInc/language_change.php",
			async: false, 
			data: "language="+choice
			});
	});
	window.location="";
}

function setSessionValue(value) {
	$(document).ready(function() {
		value=value.split(/;/g);
		$.ajax({
			type: "POST",
			url:  "/phpInc/set_session_value.php",
			async: false,
			data: "_="+value[0]+"&__="+value[1]
			});
	});
}

function getSessionValue(value) {
	$(document).ready(function() {
		$.ajax({
			type: "POST",
			url:  "/phpInc/return_session_value.php",
			async: false,
			data: "_="+value,
			success: function(returnHTML) {
				sT=returnHTML;
				sT=sT.toString();
		}});
	});
	return(sT);
}

$(document).ready(function(){
	$("#horse_chat").css("cursor", "pointer");
	$("#horse_chat").click(function() {
		$('#horse_chat').html("<img src='/templates/common/pictures/hchat.gif' border='0'>");
		hchatIdOpen('');
	});
	$(".soonDiv").css({"margin-top":"2px", "margin-right":"6px", "cursor":"pointer"});
	$(".soonDiv").click(function() {
		alert("Disponible tres prochainement.\nAvailable very soon. \nVergugbar serh bald.");
	});
});

