function fixH(one,two){
	if (document.getElementById(one)) {
		var lh=document.getElementById(one).offsetHeight;
		var rh=document.getElementById(two).offsetHeight;
		var nh = Math.max(lh, rh);
		document.getElementById(one).style.height=nh+"px";
		document.getElementById(two).style.height=nh+"px";
	}
	// przy okazji obsluzymy input'y
	tab = document.getElementsByTagName('input');
	ForEach(tab,showVal);
}

window.onload=function(){
	fixH('left','right');
	var o = document.getElementById('left');
}

function ForEach(array, fn, objThis){
	objThis = objThis || this;
	var len = array.length;
	for(var n=0;n<len;n++){
		var r = fn.call(objThis,array[n],n);
		if(r!==undefined) return r;
	}
}

function showVal(x){
/*
	if(x.type == 'text' || x.type == 'password'){
		if(x.onfocus == undefined) x.onfocus = function(){this.value='';return true;}
		if(x.onblur == undefined) x.onblur = function(){showVal(this);return true;}
		switch(x.id){
			case 'user': tmp = 'login'; break;
			case 'pass': tmp = '******'; break;
			case 'search': tmp = 'wyszukaj...'; break;
			default: tmp = 'aa';
					
		}
		x.value = x.value || tmp;
		if(x.type == 'password') x.defaultValue = x.defaultValue || tmp;
	}
*/
}

navHover = function() {
	var lis = document.getElementById("flash_menu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++){
		lis[i].onmouseover=function(){
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", navHover);