$(document).ready(function() {
resize_elements();
});

$(window).resize(function(){
resize_elements();
});
	
 function resize_elements(){
    var my_width  = 0;
    var my_height = 0;

    if ( typeof( window.innerWidth ) == 'number' ){
        my_width  = window.innerWidth;
        my_height = window.innerHeight;
    }else if ( document.documentElement  && 
             ( document.documentElement.clientWidth ||
               document.documentElement.clientHeight ) ){
        my_width  = document.documentElement.clientWidth;
        my_height = document.documentElement.clientHeight;
    }
    else if ( document.body  && 
            ( document.body.clientWidth || document.body.clientHeight ) ){
        my_width  = document.body.clientWidth;
        my_height = document.body.clientHeight;
    }



	

	my_width  = document.body.clientWidth;
	var sidebar=$("#sidebar");
	var cont=$("#cont");
	jQuery("#ledi").css({
		'width': Math.round(my_width - sidebar.width()-cont.width())+'px',
		'left': Math.round(sidebar.width()+cont.width())+'px'
	});

	

	

	
}

