// JavaScript Document

function showSub(subMenuId)
{
	oSubMenu = document.getElementById("subMenu"+subMenuId);
	oArrow = document.getElementById("arrow"+subMenuId);
	
	if (oSubMenu.style.display != "block"){
	   oSubMenu.style.display = "block";
		if (subMenuId == '13') document.location = "index.php?workspace=fooldal&id=13";
		else if (subMenuId == '12') document.location = "index.php?workspace=fundictionary&id=12";
		else document.location = "index.php?workspace=fooldal&id="+subMenuId;
	}
	 else{
	   oSubMenu.style.display = "none";
	 }
}

function showSubIMG(subMenuId, link)
{
	oSubMenu = document.getElementById("subMenu"+subMenuId);
	oArrow = document.getElementById("arrow"+subMenuId);
	
	if (oSubMenu.style.display != "block"){
	   oSubMenu.style.display = "block";
	   oArrow.style.height = "49px";
		oArrow.style.paddingTop = "5px";
	   if (subMenuId != '4') document.location= link;
	   //oArrow.style.paddingBottom = "0px";
	   //oArrow.style.backgroundimage = "url(../images/subsMenu"+subMenuId+".gif";
	}
	 else{
	   oSubMenu.style.display = "none";
	   oArrow.style.height = "62px";
	   oArrow.style.paddingTop = "0px";
	   //oArrow.style.backgroundimage = "url(../images/menu"+subMenuId+".png";
	 }
}


