<!--

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

var extPreloadArr = new Array ();

if (document.images)
{
	SrcArr = new Array ("mn1_o_ru","mn2_o_ru","mn3_o_ru","mn4_o_ru","mn5_o_ru","i_home_v","i_site_map_v","i_mail_v","i_lang_de","i_lang_fr","i_lang_en","i_lang_ru_v");
	ImgArr = new Array ();
	j = 0;

	for (i in extPreloadArr)	
	{
		ImgArr[j] = new Image ();
		ImgArr[j].src = "/pic/" + extPreloadArr[i] + ".gif";
		j++;
	}

	for (i in SrcArr)
	{
		ImgArr[j] = new Image ();
		ImgArr[j].src = "/pic/" + SrcArr[i] + ".gif";
		j++;
	}
}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
//
// @function: setInit
//
// @description: initializes page defaults
//

function setInit ()
{
	return true;
}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
//
// @function: setVoting
//
// @description: initializes voting iframe height
//

function setVoting (id)
{
	if ((document.getElementById (id) || parent.window.document.getElementById (id)) && parent.window.voting.window.document.getElementById (id + "_content"))
	{
		var ifHeight = parent.window.voting.window.document.getElementById (id + "_content").offsetHeight;

		if (document.getElementById (id))
		{
			document.getElementById (id).style.height = ifHeight + "px";
		}
		else
		{
			parent.window.document.getElementById (id).style.height = ifHeight + "px";
		}
	}

	return true;
}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
//
// @function: ChgImg
//
// @description: flips element's image
//

function ChgImg (ImNm, Pic)
{
	if (document.images)
	{
		document.images[ImNm].src = "/pic/" + Pic + ".gif";
	}

	return true;
}

//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////
//
// @function: ChgStyle
//
// @description: flips element's style
//

function ChgStyle (Id, Style)
{
	document.getElementById(Id).className = Style;

	return true;
}

//-->
function BSBWinOpen(url)
{
	var win;
	win=window.open(url,"","width=558,height=254,screenX=50,screenY=50,dependent=yes,scrollbars=yes");
}

function show_contact(s,c,d){
	s.innerHTML = '<a href="mai' + 'lto:'+ c + '@' + d + '">' + c + '@' + d + '</a>';
}

function show_phone(s){
	s.innerHTML = s.contact;
}