function initSplitNews(k){var d=$(".splitnewscontainer1",k),j=$(".splitnewscontainer2",k),e=$(k).parents(".content_column4"),a=$(".splitnews",k),c=$(".splitnewscontainer1 > *:eq(1), .splitnewscontainer2 > *:eq(1)",k),h=$(".splitnews_top",d).outerHeight(k),i=j.outerHeight(k),g=d.outerHeight(k),f=$(".breaking_news",k).outerHeight(k),b=e.length>0?$(".content_column3",e).outerHeight():i>g?i+h+f:null;d.addClass("splitnewscontainer_active");j.addClass("splitnewscontainer_hidden");b&&c.css("height",b-f-h-j.outerHeight(true)-d.outerHeight(true)+d.height()-c.outerHeight(true)+c.height()+"px");a.css("height",a.innerHeight());$(document).ready(function(){hideOverflowingContent($(c[0]))})}function switchSplitNews(c){var b=$(c).parents(".splitnewscontainer_hidden");if(b.length>0){var a=$(".splitnewscontainer_active",b.parents(".w_SN1, .w_SN2, .w_SN3"));b.animate({height:a.height()+"px"},400);b.removeClass("splitnewscontainer_hidden");b.addClass("splitnewscontainer_active");a.animate({height:b.height()+"px"},400,function(){a.removeClass("splitnewscontainer_active");a.addClass("splitnewscontainer_hidden");hideOverflowingContent($("> *:eq(1)",b))})}}function hideOverflowingContent(g){var h=g.innerHeight(),l=g.children(),k=$(".link_more",g).outerHeight(true);if(l.outerHeight(true)+k>h){var f=function(){return d.length>1?a.find(".news_datecolumn:visible, .news_textcolumn:visible, .boxwidget_part:visible"):a.find("li:visible")},a=l.find(".splitNewsInner"),d=a.find(".news_datecolumn, .news_textcolumn, .boxwidget_part"),j=d.length>1?d:a.find("li"),b=f();while(l.outerHeight(true)+k>h&&b.length>0){var i=b.length-1,e=Math.max(b.length-2,0),c=d.length>1?$([j[i],j[e]]):$(j[i]);if(d.length>1&&c.hasClass("boxwidget_part")){c=$(j[i])}c.hide();b=f()}}};;
