  //$(document).ready(function() {
  $(window).load(function () {
     var leftsidebarheight = $('#left-sidebar');
	 var categoryboxheight = $('#CategoryBox');
	 var midcontentheight  = $('#midcontent');
	 var heightdeduct = (midcontentheight.height()) - (categoryboxheight.height());
	 var rightsidebarheight = $('#right-sidebar'); 
	 
	 if(leftsidebarheight.height() < midcontentheight.height()) {
	   leftsidebarheight.css('height', midcontentheight.height());
	   //$('#google-ad').css('height', heightdeduct);
	 } else {
	    leftsidebarheight.css({'height': midcontentheight.height(), 'overflow': 'hidden', 'border-bottom': '1px solid #cccccc'});
     }
	 
	 if(rightsidebarheight.height() < midcontentheight.height()) {
	    rightsidebarheight.css('height', midcontentheight.height()); 
	 } else {
        rightsidebarheight.css({'height': midcontentheight.height(), 'overflow': 'hidden', 'border-bottom': '1px solid #cccccc'});	    
	 }
      
	 //alert('left:' + leftsidebarheight.height() + 'mid: ' + midcontentheight.height() );
	 
  });
