// JavaScript Document

window.onresize = render;

$(document).ready(function(){

	render(); 

});

function render(){

	/*if($("body").width()<892){

		$("div#block1 .section_title a").css("line-height", "16px");

	}

	else{

		$("div#block1 .section_title a").css("line-height", "16px");

	}*/

//

	/*$(".block").each(function(){

		$(".submenu", this).css("width", $(this).width()-6+"px");

		$(this).mouseover(function(){

			$(".submenu.shown").hide().removeClass("shown");

			$(".submenu", this).show().addClass("shown");

													 });

		$(this).mouseout(function(){

			$(".submenu.shown").hide().removeClass("shown");

													 });

		

							  });*/

	/*$("body").mouseup(function(){

			$(".submenu.shown").hide().removeClass("shown");

								 });

	$(".block").mouseup(function(){

			$(".submenu", this).show();

								 });*/

	//

	/*$("#topmenu a").mouseup(function(){

		$("#topmenu .active").removeClass("active");

		$(this).parents("li").addClass("active");

									 });*/


	//if(($("#content").width()+10) > ($("#block3").get()[0].offsetLeft+$("#block3").get()[0].offsetWidth))

	//	$("#content").width($("#content").width() - (($("#content").width()+10)-($("#block3").get()[0].offsetLeft+$("#block3").get()[0].offsetWidth)));

	

	if($("div#leftcolumn div#corner2").get()[0].offsetHeight<$("div#rightcolumn div#corner4").get()[0].offsetHeight)

		$("div#leftcolumn div#corner2").css("height", ($("div#rightcolumn div#corner4").get()[0].offsetHeight+20)+"px");

	if($("div#leftcolumn div#corner2").get()[0].offsetHeight>$("div#rightcolumn div#corner4").get()[0].offsetHeight)

		$("div#rightcolumn div#corner4").css("height", ($("div#leftcolumn div#corner2").get()[0].offsetHeight-20)+"px");



	//


}
