<!--
var mer, condition;
function about_us(status)
{
	if (status == 0)
		document.getElementById('about_us').style.zIndex = -1;
	else
		{
			w_scr = document.getElementById('layout').clientWidth > 780 ? document.getElementById('layout').clientWidth : getClientWidth();
			w_mnu = document.getElementById('about_us').clientWidth;
			o_lft = Math.floor((w_scr-780)/2) > 0 ? Math.floor((w_scr-780)/2) : 0;
			o_me1 = o_lft+(186-Math.floor(w_mnu/2));
			document.getElementById('about_us').style.left = o_me1;
			document.getElementById('about_us').style.top = 190;
			document.getElementById('about_us').style.zIndex= 101;
		}
}
function activities(status)
{
	if (status == 0)
		document.getElementById('activities').style.zIndex = -1;
	else
		{
			w_scr = document.getElementById('layout').clientWidth > 780 ? document.getElementById('layout').clientWidth : getClientWidth();
			w_mnu = document.getElementById('activities').clientWidth;
			o_lft = Math.floor((w_scr-780)/2) > 0 ? Math.floor((w_scr-780)/2) : 0;
			o_me2 = o_lft+(332-Math.floor(w_mnu/2));
			document.getElementById('activities').style.left = o_me2;
			document.getElementById('activities').style.top = 190;
			document.getElementById('activities').style.zIndex= 101;
		}
}
function projects(status)
{
	if (status == 0)
		document.getElementById('projects').style.zIndex = -1;
	else
		{
			w_scr = document.getElementById('layout').clientWidth > 780 ? document.getElementById('layout').clientWidth : getClientWidth();
			w_mnu = document.getElementById('projects').clientWidth;
			o_lft = Math.floor((w_scr-780)/2) > 0 ? Math.floor((w_scr-780)/2) : 0;
			o_me1 = o_lft+(470-Math.floor(w_mnu/2));
			document.getElementById('projects').style.left = o_me1;
			document.getElementById('projects').style.top = 190;
			document.getElementById('projects').style.zIndex= 101;
		}
}
function getClientWidth()
{
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}
function showWarning(num) 
{
	var j_wid = 600;
	var j_hei = 70;
	var lang;
	
	if (num == 1) lang = 'de';
	if (num == 2) lang = 'ru';
	
	if (navigator.appName.indexOf('Microsoft Internet Explorer') != -1)
		condition = (mer && !mer.closed);
	else
		condition = (mer && !mer.closed && mer.closed != undefined);
	if (condition) mer.close();
	
	mer = window.open("_popup_"+lang+".html", "winbox", "toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, width="+ j_wid +", height="+ j_hei +", left="+(screen.width-j_wid)/2+", top="+(screen.height-j_hei)/2);
}
-->
