col_resize = function(){
    var h= $('#rg_grid').outerHeight();
	console.log(h);
	$('#sk_content').height(h+100);
};

$(window).load(col_resize);
$(window).resize(col_resize);
@@ -23,12 +23,124 @@
 )%7B%0D%0A
-    
+%09var window_h = $(window).height();%0D%0A%09//console.log(window_h);%0D%0A%09%0D%0A    if($('#rg_grid').length) %7B //if it exists%0D%0A%09%09
 var 
@@ -177,25 +177,31 @@
 ;%0D%0A%09
-console.log(h);%0D%0A
+%09if(window_h %3C h) %7B%0D%0A%09%09
 %09$('
@@ -230,16 +230,45 @@
 +100);%0D%0A
+%09%09%09console.log(h);%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A
 %7D;%0D%0A%0D%0A$(

check if grid element exist