<?php
if ($_GET ["lang"] == "en") {
	$class_eng = "sel";
	$class_rus = "";
	$class_est = "";
} else if ($_GET ["lang"] == "ru") {
	$class_eng = "";
	$class_rus = "sel";
	$class_est = "";
} else if ($_GET ["lang"] == "ee") {
	$class_eng = "";
	$class_rus = "";
	$class_est = "sel";
}
?>
<a class="<?php echo ($class_rus);?>" href="<?php substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/")+1); ?>?lang=ru" title="По-русски">Рус</a>
 | 
<a class="<?php	echo ($class_eng);?>" href="<?php substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/")+1); ?>?lang=en" title="In english">Eng</a>
 | 
<a class="<?php	echo ($class_est);?>" href="<?php substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/")+1); ?>?lang=ee" title="Eesti keeles">Est</a>
 