// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

Event.observe(window, 'load', function() {
	
})

function columnise() {
	if ($('content').className != 'home') {
		var col = $('column1');
		$A($('contentBody').childNodes).each(function(item) {
			if ((item.nodeName != 'HR') && (item.nodeName != 'DIV') && (item.nodeName != 'UL')) {
				col.appendChild(item)
			} else if (item.nodeName == 'HR') {
				col = $('column2');
				item.parentNode.removeChild(item);
			}	
		});
	}
	
	$('contentBody').style.display = "block"
}