// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function resizeCols (cols) {
	var maxColHeight = 0;
	var h = 0;
	var padding = 0;
	for(i = 0; i < cols.length; i++){
		if ($(cols[i]) != undefined) {
			h = $(cols[i]).getHeight();			
		}
		if(maxColHeight < h){
			maxColHeight = h;
		}
	}
	for(i = 0; i < cols.length; i++){
		if(cols[i]=='lefter'){
			padding = 0;
		}else {
			padding = -6;
		}
		if ($(cols[i]) != undefined) {
			$(cols[i]).style.height = (maxColHeight+padding)+'px';
		}
	}
}

function init() {
	resizeCols(Array('lefter', 'contener', 'righter1'));
	new MainMenu('mainMenu_ul');
}
Event.observe(window, 'load', init, false);