$(document).ready(function() {
   // generate markup
   var ch = $('#content').height();
   var sh = $('#sidebar').height();
   //var loc = window.location;
 
   //alert(ih);
   if(ch > sh)
   	$('#sidebar').css('height', ch+40);
   else
  	$('#content').css('height', sh-40);
  
});
