function $(el){ return document.getElementById(el); }
function style_change(){
	if (window.innerHeight <= 680 && window.innerWidth <= 960)
	{
		$('logo').style.position = 'inherit';
		$('lang_rss').style.position = 'inherit';
		$('content').style.margin = '0';
		$('sidebar').style.position = 'relative';
		$('sidebar').style.top = '0';
		$('sidebar2').style.position = 'relative';
		$('sidebar2').style.margin = '30px 0 0 0';
	}
	if (window.innerHeight <= 680 && window.innerWidth > 960)
	{
		$('logo').style.position = 'inherit';
		$('lang_rss').style.position = 'inherit';
		$('content').style.margin = '0';
		$('sidebar').style.position = 'relative';
		$('sidebar').style.top = '0';
		$('sidebar2').style.position = 'relative';
		$('sidebar2').style.margin = '30px 0 0 0';
	}
	if (window.innerHeight > 680 && window.innerWidth <= 960)
	{
		$('logo').style.position = 'inherit';
		$('lang_rss').style.position = 'inherit';
		$('content').style.margin = '0';
		$('sidebar').style.position = 'relative';
		$('sidebar').style.top = '0';
		$('sidebar2').style.position = 'relative';
		$('sidebar2').style.margin = '30px 0 0 0';
	}
	if (window.innerHeight > 680 && window.innerWidth > 960)
	{
		$('logo').style.position = 'fixed';
		$('lang_rss').style.position = 'fixed';
		$('content').style.margin = '0 0 0 210px';
		$('sidebar').style.position = 'fixed';
		$('sidebar').style.top = '210px';
		$('sidebar2').style.position = 'fixed';
		$('sidebar2').style.margin = '30px 0 0 810px';
	}
}
window.onresize = function() { style_change(); }
window.onload = function() { style_change(); }

