//chor_l.js API (cross-platform, global)
// Zmienne globalne
var isNav4, isIE4, lang = "p", menu = 1
var range = ""
var styleObj = ""
if (navigator.appVersion.charAt(0) >= "4") {
  if (navigator.appName == "Netscape") {
    isNav4 = true
  } else {
    isIE4 = true
    range = "all."
    styleObj = ".style"
  }
}
// Przeksztalcenie lancucha z nazwa obiektu (odwolaniem
// do obiektu) w pelnoprawne odwolanie do obiektu
function getObject(obj) {
  var theObj
  if (typeof obj == "string") {
	theObj = eval("top.main.document." + top.range + obj + top.styleObj)
  } else {
    	theObj = obj
  }
  return theObj
}

// Pokazywanie obiektu
function show(obj) {
  var theObj = getObject(obj)
  theObj.visibility = "visible"
}
// Ukrywanie obiektu
function hide(obj) {
  var theObj = getObject(obj)
  theObj.visibility = "hidden"
}
function display(text){
	if (text=="menu"){
		for (var i = 1; i < 12; i++) {
			parent.show("cap"+i)
		}
		parent.menu = 1
	}
	else{
		for (var i = 1; i < 12; i++) {
			parent.hide("cap"+i)
		}
		parent.sound.location="sound.htm"
		parent.menu = 2
	}
}
function p_menu(i){
		if (i==1){
      parent.main.location="his_p.htm"
		}
		if (i==2){
      parent.main.location="form_p.htm"
		}
		if (i==3){
      parent.main.location="photos_p.htm"
		}
		if (i==4){
      parent.main.location="sounds_p.htm"
		}
		if (i==5){
      parent.main.location="press_p.htm"
		}
		if (i==6){
      parent.main.location="mem_p.htm"
    		}
		if (i==8){
      parent.main.location="rep_p.htm"
    		}
		if (i==9){
      parent.main.location="who_p.htm"
    		}
		if (i==11){
      parent.main.location="cal_p.htm"
    		}
}

