function sound_ctrl(value)
{
	window.location="?MainPageID=828&s_off="+value;
}


function changeBicPicPos(s, pn)
{
	bigPicPos = pn;
	applyFilter();
	document.getElementById('bigPic').src = s;
	window.clearInterval(bint); // clear old interval 
	bint = window.setInterval(changeBigPic, 7000); // start new
}

function applyFilter()
{
	if(!fRunning && document.all) // Apply only 4 IE
	{
		fRunning = 1;
		document.getElementById('bigPic').filters[0].Apply()
		document.getElementById('bigPic').filters[0].Play()
		
		
	}
	fRunning = 0;
}

bigPicPos = 0;
function changeBigPic()
{
	
	bigPicPos++;
	if(bigPicPos >= MaxPos)
	{
		bigPicPos = 0;
	}
		applyFilter();
	document.getElementById('bigPic').src = ImagesPath[bigPicPos];
	}
	
var current_div;
function showHide_div(ind)
{
	var tmp = document.getElementById("top_search_div_"+ind);
	if (current_div)
		if (document.all) current_div.style.display = "none";
			else current_div.display = "none";
	current_div = tmp;

	if (tmp)
		if (document.all) tmp.style.display = "block";
			else tmp.display = "block";
	return false;
}
