	self.resizeColumns = function() {
		var container = $$('#left div.twoColumns div.container');
		for(var i=0; i < container.length; i++) {
			var firstCell = container[i];
			if(i+1<=container.length) {
				var secondCell =  container[++i];
	
				if(secondCell) {
					var offset = 2;
					if(firstCell.offsetHeight<secondCell.offsetHeight) {
						firstCell.style.height = (secondCell.offsetHeight-offset)+"px";
					} else if(firstCell.offsetHeight>secondCell.offsetHeight) {
						secondCell.style.height = (firstCell.offsetHeight-offset)+"px";
					}
				}
			}
		}
	}
	
	self.initScrollbars = function() {
		var scrollbar = $$('div.scrollbar');
		for(var i=0; i < scrollbar.length; i++) {
			var childs = $(scrollbar[i]).childElements();
			if(childs.length == 2) {
				new Control.ScrollBar(childs[1],childs[0]);
			}
		}
	}

	self.initMMI = function() {
		var mmi = $('mmi');
		mmi.observe('mouseover', function(event) {
			if(Event.element(event).tagName.toLowerCase() == 'a') {
				//alert(Event.element(event).parentNode.parentNode.inspect())
				var parent = Event.element(event).parentNode.parentNode;
				parent.addClassName('eyecatcher_on');
			}
		});
		
		mmi.observe('mouseout' , function(event) {
			var divs = $$('div.eyecatcher_on');
			for(var i=0; i<divs.length; i++) {
				divs[i].removeClassName('eyecatcher_on');
			}
		});
	}
	
	self.autorun = function() {
		positionSideMenu(); 
		resizeColumns();
		initScrollbars();
		new at.bartelme.newsticker("newsticker");
		new at.bartelme.newsticker("advertiseticker", "slide", 10000);
		
		loadingCacheOff(); 
		//initMMI();
	}
	
