function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
function openMenu(obj)
{
	var el = document.getElementById(obj);
	document.onLoad = el.style.display = "block";
}

function o(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no, left=5,top=40' );
}

function ramki(URL1, URL2) {
      parent.frames[1].location=URL1;
      parent.frames[2].location=URL2;
  }

function sierota() { if (parent == self) { var url = escape(location.href); for (var i = 0, str = ''; i < url.length; i++) { if (url.charAt(i) == '/') str += '%2F'; else str += url.charAt(i); } location.href = 'index1.htm?' + str; } }

function sierotad() { if (parent == self) { var url = escape(location.href); for (var i = 0, str = ''; i < url.length; i++) { if (url.charAt(i) == '/') str += '%2F'; else str += url.charAt(i); } location.href = 'index1d.htm?' + str; } }

function sierotae() { if (parent == self) { var url = escape(location.href); for (var i = 0, str = ''; i < url.length; i++) { if (url.charAt(i) == '/') str += '%2F'; else str += url.charAt(i); } location.href = 'index1e.htm?' + str; } }

function polsierota()  { if (self == parent) location.href = 'index1.htm';  }
function polsierotad() { if (self == parent) location.href = 'index1d.htm'; }
function polsierotae() { if (self == parent) location.href = 'index1e.htm'; }
