google.load("jquery", "1.4.2");

function load_anim(lang, page) {
	switch_lang(lang);
	init_category(page);
	$("#anim").animate({"width": "500%"}, 4800000, "linear");
}

function switch_lang(lang) {
	if (lang == "en") {
		$(".en").show();
		$(".fr").hide();
	}
	else {
		$(".fr").show();
		$(".en").hide();
	}
}

function switch_category(cat) {
	$("#about").hide(500);
	$("#designs").hide(500);
	$("#others").hide(500);
	$(cat).show(750);
}

function init_category(cat) {
	$("#others").hide();
	$("#designs").hide();
	$("#about").hide();
	var others = document.getElementById("others");
	var designs = document.getElementById("designs");
	others.style.visibility = "visible";
	designs.style.visibility = "visible";
	$(cat).show(750);
}
