// version 1.0 - (c) Copyright, Henrik Ryom - 2001
function bibelopslag(bog,kap,vers) {
	var hlocation = "http://www.bibelselskabet.dk/bibelen/"+bog+"/"+kap+"h.htm";
	var blocation = "http://www.bibelselskabet.dk/bibelen/"+bog+"/"+kap+"b.htm#v"+vers;
	var nlocation = "http://www.bibelselskabet.dk/bibelen/"+bog+"/ch"+kap+"/v1.htm";

	bibelopslagwin = window.open("", "bibelopslag", "menubar=1,status=1,width=640,height=480");
	bibelopslagwin.document.open();
	bibelopslagwin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">');
	bibelopslagwin.document.writeln('<HTML><HEAD><TITLE>Bibelen p&aring; Internet</TITLE>');
	bibelopslagwin.document.writeln('<BASE HREF="http://www.bibelselskabet.dk/bibelen/">');
	bibelopslagwin.document.writeln('<\SCRIPT LANGUAGE="JavaScript">');
	bibelopslagwin.document.writeln(' function skift_til(curdep,dir,hfil,bfil) {');
	bibelopslagwin.document.writeln('   var hlocation = "http://www.bibelselskabet.dk/bibelen/"+dir+"/"+hfil ;');
	bibelopslagwin.document.writeln('   var blocation = "http://www.bibelselskabet.dk/bibelen/"+dir+"/"+bfil ;');
	bibelopslagwin.document.writeln('   parent.BookTitle.location = hlocation ;');
	bibelopslagwin.document.writeln('   parent.Content.location = blocation ;');
	bibelopslagwin.document.writeln(' }');
	bibelopslagwin.document.writeln('</\SCRIPT></HEAD>');
	bibelopslagwin.document.writeln('<FRAMESET ROWS="80%,20%" framespacing="5" frameborder="0" border="0">');
	bibelopslagwin.document.writeln('<FRAMESET ROWS="30,*" framespacing="0" frameborder="0" border="0">');
	bibelopslagwin.document.writeln('<FRAME SRC="'+hlocation+'" name="BookTitle" scrolling="no" MARGINWIDTH=10 MARGINHEIGHT=2>');
	bibelopslagwin.document.writeln('<FRAME SRC="'+blocation+'" name="Content" scrolling="auto" MARGINWIDTH=14 MARGINHEIGHT=10>');
	bibelopslagwin.document.writeln('</FRAMESET>');
//	if (location.href(nlocation) == null) {
//		bibelopslagwin.document.writeln('<FRAME SRC="'+nlocation+'" name="Notes" scrolling="auto" MARGINWIDTH=14 MARGINHEIGHT=5 framespacing="5">');
//        } else {
//		bibelopslagwin.document.writeln('<FRAME SRC="notes.html" name="Notes" scrolling="auto" MARGINWIDTH=14 MARGINHEIGHT=5 framespacing="5">');
//	}
	bibelopslagwin.document.writeln('<FRAME SRC="http://www.bibelselskabet.dk/bibelen/1mos/ch1/v1.htm" name="Notes" scrolling="auto" MARGINWIDTH=14 MARGINHEIGHT=5 framespacing="5">');
	bibelopslagwin.document.writeln('</FRAMESET>');
	bibelopslagwin.document.writeln('</HTML>');
	bibelopslagwin.document.close();
	bibelopslagwin.focus();
}

function koncildokopslag(dok,kap) {
	klocation = "http://www.katolsk.dk/verdenskirken/vatican_2/"+dok+".htm";
	koncildokopslagwin = window.open(klocation, "koncildokopslag", "menubar=1,scrollbars=1,width=640,height=480");
	koncildokopslagwin.focus();
}   


