var nebrila = new Image(70,30); // Preload ruby light-up button.
var ekbrila = new Image(70,30);
nebrila.src = "./hejmenDark.gif";
ekbrila.src = "./hejmenLite.gif";

if (parent.frames.length == 3 ) // At 3-frame site like mine?
{ if (parent.frames[2].name == "DekstraKadro") // BLE right frame
  { // Inside BLE frameset, do nothing.
  }
  else
  {  if (parent.frames[2].name == "DekstraKadro") // BLE right frame
	 { // Inside esperanto.us frameset, do nothing.
	 }   
	 else
	 { invitu() // Show invitu button.
	 }
  }
}
else 
{ if (parent.frames.length == 1 ) // A totally foreign, 1-frame site!
  { top.location = self.location // Break out of single frame.
  }
  else
  { invitu() // Not 3 frames! Not my site.
  }
}

function invitu()
{ document.write("<p class=\"center\">")
  document.write("<a href=\"http://esperanto.us/budhana.html\" target=\"_self\" onmouseover=\"invitilo.src=ekbrila.src; return true;\" onmouseout=\"invitilo.src=nebrila.src; return true;\">")
  document.write("<img name=\"invitilo\" src=\"./hejmenDark.gif\" width=\"70\" height=\"30\" alt=\"Venu hejmen!\" border=\"0\" />")
  document.write("</a></p>")
}

