
window.addEvent('domready',function(){columnsplit();});function columnsplit(){var children=$('content-body').getChildren();onethird=Math.floor((children.length-1)/3);twothird=onethird+onethird;if(onethird>1){var firstCol=new Element('div',{id:'firstCol'});$('content-body').adopt(firstCol);var secondCol=new Element('div',{id:'secondCol'});$('content-body').adopt(secondCol);var thirdCol=new Element('div',{id:'thirdCol'});$('content-body').adopt(thirdCol);hstop=false;mstop=false;j=0;children.each(function(plus){if(j>0){if(hstop===false){firstCol.adopt(plus);if(j==onethird){hstop=true;}}else{if(mstop===false){secondCol.adopt(plus);if(j==twothird){mstop=true;}}else{thirdCol.adopt(plus);}}}
j++;});}}