function roundCorners(){var k=(navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1);var g=(navigator.userAgent.toLowerCase().indexOf("msie 7")!=-1);if(k){var r=$(".boxwidget");for(var m=0;m<r.length;m++){if($(r[m]).css("clear")=="both"){var e=$(r[m]).parent();var t=parseInt($(e).css("width"))-parseInt($(r[m]).css("padding-right"))-parseInt($(r[m]).css("padding-left"));if(t>0){$(r[m]).width(t)}}if($(r[m]).hasClass("rc_sideborders")){$(r[m]).css("background-image","url(/img/roundcorners/rc_sideborder_"+parseInt($(r[m]).css("width"))+".gif)")}}$("div.programlist_rc div.programlist_row:first-child").css("border-top","0 none")}if(k||g){$(".content_column1").css("padding-bottom","10px");var f=$(".content_column1");for(var m=0;m<f.length;m++){if(parseInt($(f[m]).height())>0){var o=$(f[m]).children();if($(o[o.length-1]).hasClass("boxwidget")){$(o[o.length-1]).css("margin-bottom","0px")}}}$(".content_column2_1_row").css("padding-bottom","10px");var f=$(".content_column2_1_row");for(var m=0;m<f.length;m++){if(parseInt($(f[m]).height())==0){$(f[m]).css("padding-bottom","0px")}else{var o=$(f[m]).children();if($(o[o.length-1]).hasClass("boxwidget")){$(o[o.length-1]).css("margin-bottom","0px");if((parseInt($(o[o.length-1]).width())<parseInt($(f[m]).width()))&&(o.length>1)){$(o[o.length-2]).css("margin-bottom","0px")}}}}$(".content_column2_1").css("padding-bottom","10px");var f=$(".content_column2_1");for(var m=0;m<f.length;m++){if(parseInt($(f[m]).height())>0){var o=$(f[m]).children();if($(o[o.length-1]).hasClass("boxwidget")){$(o[o.length-1]).css("margin-bottom","0px")}if($(o[o.length-1]).hasClass("content_column2_1_row")){$(o[o.length-1]).css("padding-bottom","0px")}}}$(".content_column2_2").css("padding-bottom","10px");var f=$(".content_column2_2");for(var m=0;m<f.length;m++){if(parseInt($(f[m]).height())>0){var o=$(f[m]).children();if($(o[o.length-1]).hasClass("boxwidget")){$(o[o.length-1]).css("margin-bottom","0px")}}}$(".content_column4").css("padding-bottom","10px");var f=$(".content_column4");for(var m=0;m<f.length;m++){var o=$(f[m]).children();if($(o[o.length-1]).hasClass("boxwidget")){$(o[o.length-1]).css("margin-bottom","0px")}}var b=$(".content_fontresize");for(var m=0;m<b.length;m++){var t=0;var a=$(b[m]).children();for(var u=0;u<a.length;u++){if($(a[u]).css("width")!="auto"){t+=parseInt($(a[u]).css("width"))}else{t+=parseInt($(a[u]).width())}if($(a[u]).css("margin-left")!="auto"){t+=parseInt($(a[u]).css("margin-left"))}if($(a[u]).css("margin-right")!="auto"){t+=parseInt($(a[u]).css("margin-right"))}}$(b[m]).width(t)}}var d=$(".round_corners_wg").after('<div class="boxwidget_part round_corners_bottom_wg rc_added"></div>');var l=$(".round_corners_ww").after('<div class="boxwidget_part round_corners_bottom_ww rc_added"></div>');var l=$(".round_corners_content_cover").after('<div class="boxwidget_part round_corners_bottom_wg rc_added"></div>');var r=$(".boxwidget");for(var m=0;m<r.length;m++){var o=r[m].childNodes;for(var h=0;h<o.length;h++){if($(o[h]).hasClass("boxwidget_part")){var t=$(r[m]).width()-parseInt($(o[h]).css("padding-right"))-parseInt($(o[h]).css("padding-left"));if(t>0){$(o[h]).width(t)}}}}$(".round_corners_button_gray").wrap('<div class="rc_but_g"></div>');$(".round_corners_button_orange").wrap('<div class="rc_but_o"></div>');$(".round_corners_input").wrap('<div class="rc_input_r"></div>');$(".round_corners_textarea").wrap('<div class="rc_textarea_r"></div>');$(".round_corners_top_sw_tab").wrapInner('<span class="rc_tab_l"></span>');$(".round_corners_top_ow_tab").wrapInner('<span class="rc_tab_l"></span>');if(k){var n=$(".topstory_text_top");if(n[0]!=null){var s=$(".top_story_photo");var q=0;for(var m=0;m<s.length;m++){if($(s[m]).width()>q){q=$(s[m]).width()}}var e=$(n[0]).parent();var t=$(e).width()-q-5;for(var m=0;m<n.length;m++){$(n[m]).css("width",t+"px")}var n=$(".topstory_text");for(var m=0;m<n.length;m++){$(n[m]).css("width",t+"px")}}}rcUserHeights()}function add_clear(a){}function rcUserHeights(){var a=$(".userheight");var d=(navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1);var b=(navigator.userAgent.toLowerCase().indexOf("Safari")!=-1);if(d||b){for(var c=0;c<a.length;c++){$(a[c]).height(Math.max(parseInt($(a[c]).css("min-height")),parseInt($(a[c]).height())))}}};