<!--
var dictLangList = ['ec','dj'];
function HeightFit(dictsHeight) {
	dictsHeight = false;
	if (!dictsHeight) dictsHeight = $('dicts').offsetHeight ? $('dicts').offsetHeight : $('dicts').style.height;
	alert(dictsHeight)
	var fitHeight = ($('sidebar').offsetHeight < 850) ? 850 : $('sidebar').offsetHeight;
	fitHeight = ($('sidebar').offsetHeight > dictsHeight) ? $('sidebar').offsetHeight : dictsHeight;
	$('sidebar').style.height = fitHeight+'px';
	$('dicts').style.height = fitHeight+'px';
	$('sidebarToggleC').style.height = fitHeight+'px';
}
function DictLangSwitch(dictLang) {
	if (0 == dictLangList.length) {
		//HeightFit();
		return;
	}
	var dictLangConfig = '';
	if (!dictLang) {
		var dictLangFound = false;
		for(var ldli=0; ldli<dictLangList.length; ldli++) {
			if (dictLangConfig == dictLangList[ldli]) {
				dictLangFound = true;
				break;
			}
		}
		if (!dictLangFound) dictLangConfig = dictLangList[0];
	} else {
		dictLangConfig = dictLang;
		if (!dictLangConfig) dictLangConfig = dictLangList[0];
	}
	$(dictLangConfig).className = 'v_';
	$('dictlangc_'+dictLangConfig).style.display = 'block';
	for(var ldi=0; ldi<dictLangList.length; ldi++) {
		if (dictLangConfig != dictLangList[ldi]) {
			$(dictLangList[ldi]).className = '';
			$('dictlangc_'+dictLangList[ldi]).style.display = 'none';
		}
	}
	$('dictlangc_'+dictLangConfig).style.display = 'block';
};

