function rollOver(_id,_imgName,_onof){
  if(document.getElementById)
	  document.getElementById(_id).src = _imgName + _onof;
}
function show(_id,_imgName,_onof){
  if(document.getElementById){
	  document.getElementById("menuProject").style.visibility = "visible";
	  if(_id != ''){rollOver(_id,_imgName,_onof);}
	}
}
function hide(_id,_imgName,_onof){
  if(document.getElementById){
	  document.getElementById("menuProject").style.visibility = "hidden";
	  if(_id != ''){rollOver(_id,_imgName,_onof);}
	}
}
function showUnderline(_id){
  if(document.getElementById)
	  document.getElementById(_id).style.textDecoration = "underline";
}
function hideUnderline(_id){
  if(document.getElementById)
	  document.getElementById(_id).style.textDecoration = "none";
}

if (document.getElementById){
	document.write('<style type="text/css">\n')
	document.write('.submenu{display: none;}\n')
	document.write('</style>\n')
}

var spanOpen = "";

function openMenu(obj,divName){
	if(document.getElementById){
		var el = document.getElementById(obj);
		var ar = document.getElementById(divName).getElementsByTagName("div");
		if(el.style.display != "block"){
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu")
				ar[i].style.display = "none";
			}
			// shows
			if(spanOpen != obj){
					el.style.display = "block";
					spanOpen = obj;
			}
		}
		else{
			// hides
			if(spanOpen != obj){
				el.style.display = "none";
			}
		}
	}
}

function openWindow(_url,_widht,_height){
	resx=screen.height;
	resy=screen.width;

	x=((resy/2)-(_widht/2))
	y=((resx/2)-(_height/2))

	texto="screenX="+x+",screenY="+y+",width="+_widht+",height="+_height+",left="+x+",top="+y;

	window.open(_url,'new_window',texto+'scrollbars=no,menubar=no,resizable=no,toolbar=no,location=no,status=no');
}