/*############## AUTO HEIGHT IN SUB PAGES ##################*/


$(document).ready(function() {
	
	var leftcol;
	var rightcol;
	var normalHeight = $("#content-row").height();
	var leftcol = normalHeight + 40;
	//alert(leftcol);
  
	$("#left-col").height(leftcol);
	//$("#normal-col").height(normalHeight);
	//$("#right-col").height(normalHeight);
	//$("#content-row").height(normalHeight);
	
	//$("#left-col").height(normalHeight);

	/*if (normalcol > rightcol) {
		normalcol += 40;
		$("#left-col").height(normalcol);
		}
	else {
		rightcol += 40;
		$("#left-col").height(rightcol);
		}*/
	
	});
	
	

$(document).ready(function() {
	var d = new Date();
	var t_hour = d.getHours();
	
	if (t_hour >= 18 || t_hour < 6) {
		$("#banner-img img").removeAttr("src");
		$("#banner-img img").attr({ src: "fileadmin/templates/images/nightbanner.gif"});
		}
	
	if (t_hour >= 6 && t_hour < 18) {
		$("#banner-img img").removeAttr("src");
		$("#banner-img img").attr({ src: "fileadmin/templates/images/daybanner.gif"});
		}
	
	});



$(document).ready(function() {
	
	var twoCleft = $(".twoCleft").attr('width');
	$("input#leftflexwidth").val(twoCleft);

	var twoCright = $(".twoCright").attr('width');
	$("input#rightflexwidth").val(twoCright);
	
	$(".twoCleft").removeAttr('width');
	$(".twoCleft").css("width", twoCleft);

	$(".twoCright").removeAttr('width');
	$(".twoCright").css("width", twoCright);

	});
