text: $(document).ready(function(){var selector=".daily_best_posts";if($(".corporate_blog").length){selector=".corporate_blog"}if($(selector).length){show_float_block(selector)}});function show_float_block(selector){$.browser.isMobileDevice=/android|webos|iphone|ipad|ipod|blackberry/i.test(navigator.userAgent.toLowerCase());if($.browser.isMobileDevice||$(window).width()<1024||$(window).height()<500||screen.width<1024){return}if($(".content_left").outerHeight()<$(".sidebar_right").outerHeight())return false;var float_block=$(selector);if(!float_block.size())return;var float_block_width=float_block.width();var sidebar=$(".sidebar_right");if(!sidebar.size())return;var show_float_block=false;var content_left=$(".content_left");var setFloatBlockPosition=function(){if(show_float_block==false){var last_sidebar_item_bottom=sidebar.offset().top+sidebar.outerHeight()}else{var last_sidebar_item_bottom=sidebar.offset().top+sidebar.outerHeight()+float_block.outerHeight()+20}if($(window).width()<1024||$(window).height()<500||screen.width<1024){return}if(float_block.outerHeight()+this.pageYOffset>content_left.offset().top+content_left.outerHeight()){if(show_float_block===true){float_block.removeClass("float_block").css("width","auto")}show_float_block=false}else{if(this.pageYOffset>last_sidebar_item_bottom){if(show_float_block===false){float_block.addClass("float_block").css("width",float_block_width+"px");if($(window).height()>float_block.outerHeight(true)){float_block.animate({opacity:0},0,function(){float_block.animate({opacity:1},500)})}else{float_block.removeClass("float_block").css("width","auto")}}show_float_block=true}else{if(show_float_block===true){float_block.removeClass("float_block").css("width","auto")}show_float_block=false}}};$(window).bind("scroll resize",setFloatBlockPosition);setFloatBlockPosition()}