if(self.location.protocol=="http:") postfix = ""; else postfix = "index.html";

if(PageId=="main") {
if(self.name!="cpage") self.location.replace(postfix);
request = parent.location.search;
if(!request) request = parent.location.hash;
cur = request.substring(9);
arcur = cur.split("+"); cur = arcur[0];
if(arcur[1]) jcr = "#" + arcur[1]; else jcr = "";
}
else {
ppw = parent.parent;
if(self.name!="section") self.location.replace("../" + postfix + "?section=" + PageId);
if(PageId!="contents") parent.parent.document.title = "Правителі України >> " + document.title;
else parent.parent.document.title = "Правителі України";
}

function nvx(arg,jmp) {
switch(arg) {
case "contents": case "lib": case "archive": return(arg + "/" + postfix);
default: if(!jmp) jmp = ""; return("contents/" + arg + ".html" + jmp);
}
}