function GetAllElements(node) {
	if (node.all) {
		return (node.all);
	}
	else if (node.layers) {
		return (node.layers);
	}	
	else {
		return (node.getElementsByTagName('*'));
	}
}

function align_columns() {
	var left_col = get_layer("left-column");
	var right_col = get_layer("right-column");
	if (left_col && right_col ) {
		var h_left = get_height(left_col.id);
		var h_right;
		if (is_ie6) {
			h_right = (get_height(right_col.id)+40);	
		} else {
			h_right = (get_height(right_col.id)+51);	
		}
		
		if (h_left > h_right) {
			set_height(right_col.id,h_left-40);	
		} else if (h_left < h_right ) {
			if (is_ie7) {
				set_height(left_col.id,h_right-11);	
			} else {
				set_height(left_col.id,h_right);	
			}
		}
		
		
		var h_right_2 = get_height(right_col.id);	
		
		var right_content = get_layer("right-content");
		var h_right_content = get_height(right_content.id);
		
		var new_h;
		
		if (is_ie) {
			new_h = h_right_2-119-11;
		} else {
			if (is_frontpage == 0) {
				new_h = h_right_2-119;
			} else {
				new_h = h_right_2-119-11;
			}
		}
		
		set_height(right_content.id,new_h);
		
		var marg =(new_h-h_right_content);
		
		var logo = get_layer("bf-logo");
		logo.style.marginTop = marg+'px' ;			
		
	}
}

window.onresize = function() {
	//show_layer("page");
	//align_columns();
	//hide_layer("page");
}

window.onload = function() {
		if (window.do_search_on_load) {
			do_ajax_search(window.search_string);
		} else {
			align_columns();
		}
}	