$(document).ready(function(){
	$('#selLang').change( function() { window.location=url_base+$(this).val()+url_req.substr(2); });
	
	if($('#container').length) $('#container').corner();
});

function autoexpandh() {
	var winHeight = $(window).height();
	var bodyHeight = document.documentElement.scrollHeight;
	
	//fixhcont
	//hexpand
	
	if (bodyHeight <= winHeight) {
		
		var header_height = parseInt($("#cg_head").css("height"));
		var autoexpand_height = winHeight - header_height;
		
		$(".fixhcont").each(function(){
			autoexpand_height = autoexpand_height - parseInt($(this).css("height"));
			if(this.id=='container'){
				autoexpand_height = autoexpand_height - 40;
			}
		});
		
		$(".hexpand").css("height", autoexpand_height + "px");
	}
}