var t_height,t_gap=0, container_height=0,padding=0;
jQuery(document).ready(
function(){
	if(jQuery("#container").height()<550) jQuery("#content").height(550);
	jQuery(window).resize();
	checkheight();
	setInterval("checkheight()",1000);			
});
		
jQuery(window).resize(
function(){
	if(jQuery.browser.safari || jQuery.browser.mozilla){
		if(jQuery("body").width()%2 ==1){
			jQuery("body").css("margin-left","-1px");
		}else{
			jQuery("body").css("margin-left","0px");
		};
	}
});

function checkheight(){
	if(container_height!=jQuery("#container").height()){
		t_height=jQuery("#container").height();
		t_gap=Math.ceil(t_height/21)*21-t_height;
		padding=jQuery("#container").height()-jQuery("#sidebar").height()+t_gap;
		jQuery("#sidebar_bg").css({"padding-bottom":padding+"px"});
	}
}