function updateLayout()
{
	window.scrollTo(0, 1);
}

function switch_menu()
{
	switch_menu_pro();
	switch_menu_par();
}


function switch_menu_pro()
{
	var img = document.getElementById('tab_pro_on');
	var tab = document.getElementById('div_pro');
	var div = document.getElementById('rch_pro');

	if(img != null)
	{
		img.setAttribute('src', 'images/1_off.png');
		img.setAttribute('id', 'tab_pro_off');
		tab.setAttribute('onclick', 'switch_menu()');
		div.style.display = "none";
		//div.style.height = "0px";
	}
	else
	{
		img = document.getElementById('tab_pro_off');
		if(img != null)
		{
			img.setAttribute('src', 'images/1_on.png');
			img.setAttribute('id', 'tab_pro_on');
			tab.setAttribute('onclick', '');
			div.style.display = "";
			//div.style.height = "";
		}
	}
}

function switch_menu_par()
{
	var img = document.getElementById('tab_par_on');
	var tab = document.getElementById('div_par');
	var div = document.getElementById('rch_par');

	if(img != null)
	{
		img.setAttribute('src', 'images/2_off.png');
		img.setAttribute('id', 'tab_par_off');
		tab.setAttribute('onclick', 'switch_menu()');
		div.style.display = "none";
		//div.style.height = "Opx";
	}
	else
	{
		img = document.getElementById('tab_par_off');
		if(img != null)
		{
			img.setAttribute('src', 'images/2_on.png');
			img.setAttribute('id', 'tab_par_on');
			tab.setAttribute('onclick', '');
			div.style.display = "";
			//div.style.height = "";
		}
	}
}
