function getVideo(swWidth, swHeight, idx)
{
	var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+swWidth+'" height="'+swHeight+'">';
	str += ' <param name="movie" value="player/player.swf" /> ';
	str += ' <param name="flashvars" value="themes=player/themes.xml&settings=player_xml.php?v='+idx+'" /> ';
	str += ' <param name="quality" value="high" /> ';
	str += ' <param name="wmode" value="transparent" /> ';
	str += ' <param name="allowfullscreen" value="true" /> ';
	str += ' <embed src="player/player.swf" flashvars="themes=player/themes.xml&settings=player_xml.php?v='+idx+'" width="'+swWidth+'" height="'+swHeight+'" allowfullscreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> ';
	str += ' </object> ';
	document.write(str);
}

function changeMostlyRightNewsTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("right_news_1").style.display = 'block';
		document.getElementById("right_news_2").style.display = 'none';
		document.getElementById("right_news_3").style.display = 'none';
	}
	else if(idx == 2)
	{
		document.getElementById("right_news_1").style.display = 'none';
		document.getElementById("right_news_2").style.display = 'block';
		document.getElementById("right_news_3").style.display = 'none';
	}
	else
	{
		document.getElementById("right_news_1").style.display = 'none';
		document.getElementById("right_news_2").style.display = 'none';
		document.getElementById("right_news_3").style.display = 'block';
	}
}
function changeMostlyTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("mostly_readed").style.display = 'block';
		document.getElementById("mostly_commented").style.display = 'none';
	}
	else
	{
		document.getElementById("mostly_readed").style.display = 'none';
		document.getElementById("mostly_commented").style.display = 'block';
	}
}
function changeRadioTvMostlyTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("mostly_radio").style.display = 'block';
		document.getElementById("mostly_tv").style.display = 'none';
	}
	else
	{
		document.getElementById("mostly_radio").style.display = 'none';
		document.getElementById("mostly_tv").style.display = 'block';
	}
}
function heightOptimizer()
{
	var _height = document.getElementById('base_middle').offsetHeight;
	
	if(_height < document.getElementById('base_right').offsetHeight)
		_height = document.getElementById('base_right').offsetHeight;
	
	document.getElementById('base').style.height = _height + "px";
	document.getElementById('base_middle').style.height = _height + "px";
	document.getElementById('base_right').style.height = _height + "px";
}
function goRadio(href, target)
{
	window.open(href, target, 'width=483, height=300, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}
function goTV(href, target)
{
	window.open(href, target, 'width=504, height=410, top=0, toolbar=0, location=0, directories=0, status=1, menuBar=0, scrollBars=1, resizable=0');
	return false;
}