function authorChange(type, author_id, article_id, _title, _date, gazette, seo_title, seo_link)
{
	document.getElementById("author_img_" + type).src = 'http://www.polis.web.tr/pictures/authors/' + author_id + "";
	document.getElementById("author_article_title_" + type).innerHTML = '<a href="http://www.polis.web.tr/a_article_view.php?idx=' + article_id + '">' + _title + "</a>";
	document.getElementById("author_article_date_" + type).innerHTML = _date;
}
function changeMostlyTab(idx)
{
	if(idx == 1)
	{
		document.getElementById("mostly_caption").className = 'caption caption1';
		document.getElementById("last_minute").style.display = 'block';
		document.getElementById("mostly_readed").style.display = 'none';
		document.getElementById("mostly_commented").style.display = 'none';
	}
	else if(idx == 2)
	{
		document.getElementById("mostly_caption").className = 'caption caption2';
		document.getElementById("last_minute").style.display = 'none';
		document.getElementById("mostly_readed").style.display = 'block';
		document.getElementById("mostly_commented").style.display = 'none';
	}
	else
	{
		document.getElementById("mostly_caption").className = 'caption caption3';
		document.getElementById("last_minute").style.display = 'none';
		document.getElementById("mostly_readed").style.display = 'none';
		document.getElementById("mostly_commented").style.display = 'block';
	}
}
function heightOptimizer()
{
	var _height = document.getElementById('base_right').offsetHeight;
	
	if(_height < document.getElementById('base_middle').offsetHeight)
		_height = document.getElementById('base_middle').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 resizeIFrame(idx)
{
	var _height = document.getElementById(idx).contentWindow.document.body.scrollHeight;

	document.getElementById(idx).height = _height;
}
