// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Variablendefinitionen = Speicher für OnlineBibel
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  var Versin	= new Array(0,0,0);	// gewählte Bibelversion
  var Buch	= new Array(0,0,0);	// gewähltes BibelBuch
  var Kapitel	= new Array(0,0,0);     // gewähltes Kapitel
  var rahmen	= 0;			// 1 = an, 0 = aus
  var Frames	= 0;			// 0 = nein, 1 = ja
  var SpaltenNr	= 1;			// Aktuelle Frame/Spaltennummer
  var Firsttime	= new Array(0,0,0);	// Zum ersten Mal?
  var aktw	= 0;			// Nr der aktuellen Wahl (Array topmlink)
  var Sprache	= 0;			// 0 = deu | 1 = eng;
  var firsteng	= 0;			// Zum ersten Mal Sprachumschaltung? (fuer welcome.html)

  // +++ Variablen für Optionen/Setup und Cookie-Handling
  var expires	= 365;			// Anzahl der Tage Cookie-Gültigkeit
  var cook_anf	= 'dieBIBELV1=';	// Das ist der Cookie-Anfang, der gespeichert wird
  var loadall	= false;		// Beim Start von dieBibel.de Cookie laden?
  var saveall	= false;		// Beim Verlassen von dieBibel.de Cookie speichern?
  var loadextra	= false;		// Wenn HIGH, dann kommt vor dem Laden des Cookie eine Sicherheitsabfrage
  var loadextratext = new Array(
	  'Die letzten Einstellungen werden wiederhergestellt.\n'
	+ 'Das ersetzt die aktuellen Einstellungen.\nMöchten Sie fortfahren?',
	  'You are going to restore your last preferences.\n'
	+ 'This will replace the current setting.\nDo you want to precede?');
  var loadnotext = new Array('Es ist kein Cookie für eine\nWiederherstellung vorhanden!',
	  'No cookie found\nto restore your last preferences.');

  // +++ Daten zum Speichern der Suche
  var sbegriff='', stype='AND', siversion=0, sistart=0, siende=0;
  var swholewords = false, saslink = false, suchecid='';

  var sucheselect=0; // Auswahlnummer für die Suche/Quelle

  // Unbound-Suche-Speicherung
  var ubsbg='', undoder=0, aoubsbg='', ubsvers=0, ubsbook=0;

  // MF-Suche-Speicherung
  var mfsbg='', mfsvers=0, mfsta=0, mfend=0, mfws=false, mfcs=false;

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// +++++ Speichern der Daten in einem Cookie
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function savecookie() {
  var cookie = '';
  var date = new Date();

  cookie = loadall + "|" + Versin[0] + "|" + Versin[1] + "|" + Versin[2] + "|"
	 + Buch[0] + "|" + Buch[1] + "|" + Buch[2] + "|" + Kapitel[0] + "|"
	 + Kapitel[1] + "|" + Kapitel[2] + "|" + rahmen + "|" + Frames + "|"
	 + SpaltenNr + "|" + Firsttime[0] + "|" + Firsttime[1] + "|" + Firsttime[2] + "|"
	 + aktw + "|" + Sprache + "|" + firsteng + "|" + sbegriff + "|" + stype + "|"
	 + siversion + "|" + sistart + "|" + siende + "|" + swholewords + "|" + saslink + "|"
	 + suchecid + "|" + sucheselect + "|" + ubsbg + "|" + undoder + "|" + aoubsbg + "|"
	 + ubsvers + "|" + ubsbook + "|" + mfsbg + "|" + mfsvers + "|" + mfsta + "|"
	 + mfend + "|" + mfws + "|" + mfcs + "|" + saveall + "|";

  //Verfallsdatum bzw. Gültigkeit
  date.setTime(date.getTime() + (1000 * 60 * 60 * 24 * expires));

  // +++ Cookie wird geschrieben
  document.cookie = cook_anf + cookie + "; expires=" + date.toGMTString();
//  alert("Einstellungen wurden erfolgreich gespeichert!");
} // of function savecookie

function loadcookie() {
//Variablendeklaration Lokal
  var cookie = '', zei = '', st = 0, lpos = 0, chk = false;

//Cookie einlesen
  cookie = document.cookie;
//  alert(cookie);

//wichtigen Cookie-Teil herausfiltern und zuweisen
  for (var i = 0; i < (cookie.length - cook_anf.length); i++) {
    if (cookie.substr(i, cook_anf.length) == cook_anf) {
      cookie = cookie.substring(i+cook_anf.length, cookie.length);
      break;
    } // of if
  } // of for (i)
//alert("Das ist der Keks: " + cookie);

  for (var i=0; i<=cookie.length; i++) {
    zei = cookie.substr(i, 1);
    if (zei=='|') {
      zei = cookie.substring(lpos, i);
      switch(st) {
	case  0: loadall = (zei=="true"?true:false); break;
	case  1: Versin[0] = eval(zei); break;
	case  2: Versin[1] = eval(zei); break;
	case  3: Versin[2] = eval(zei); break;
	case  4: Buch[0] = eval(zei); break;
	case  5: Buch[1] = eval(zei); break;
	case  6: Buch[2] = eval(zei); break;
	case  7: Kapitel[0] = eval(zei); break;
	case  8: Kapitel[1] = eval(zei); break;
	case  9: Kapitel[2] = eval(zei); break;
	case 10: rahmen = eval(zei); break;
	case 11: Frames = eval(zei); break;
	case 12: SpaltenNr = eval(zei); break;
	case 13: Firsttime[0] = eval(zei); break;
	case 14: Firsttime[1] = eval(zei); break;
	case 15: Firsttime[2] = eval(zei); break;
	case 16: aktw  = 0; break;
	case 17: Sprache = eval(zei); break;
	case 18: firsteng = eval(zei); break;
	case 19: sbegriff = zei; break;
	case 20: stype = zei; break;
	case 21: siversion = eval(zei); break;
	case 22: sistart = eval(zei); break;
	case 23: siende = eval(zei); break;
	case 24: swholewords = (zei=="true"?true:false); break;
	case 25: saslink = (zei=="true"?true:false); break;
	case 26: suchecid = zei; break;
	case 27: sucheselect = eval(zei); break;
	case 28: ubsbg = zei; break;
	case 29: undoder = eval(zei); break;
	case 30: aoubsbg = zei; break;
	case 31: ubsvers = eval(zei); break;
	case 32: ubsbook = eval (zei); break;
	case 33: mfsbg = zei; break;
	case 34: mfsvers = eval(zei); break;
	case 35: mfsta = eval(zei); break;
	case 36: mfend = eval(zei); break;
	case 37: mfws = (zei=="true"?true:false); break;
	case 38: mfcs = (zei=="true"?true:false); break;
	case 39: saveall = (zei=="true"?true:false); break;
      }
      if (loadextra) {
	chk = window.confirm(loadextratext[Sprache]);
	loadextra = false;
      } // of if (loadextra)
      if ((!loadall) && (!chk)) break;
      lpos = i+1;	//An dieser Position wird fortgesetzt
      st++;		//Diese Nummer bestimmt die Variable
    } // of if (zei='|') als Trennungszeichen
    if (zei==';') break;
  } // of for i

  if (chk) {
    top.topmenue.location.href = 'topmenue.html';	//Aktualisierung des Menüs
    chtmlink(0);	//Jetzt wird die Startseite aufgerufen...
  }
  if (!document.cookie) alert(loadnotext[Sprache]);

//  if (loadall) alert("Der Keks wurde geladen!");
} // of function loadcookie

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// +++++ Hier das Laden des Cookies angefordert + Aufruf TopMenü
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

  if (document.cookie && (document.cookie.indexOf(cook_anf)!=-1)) loadcookie();

  // +++ Variablen für Menü
  var topmlink = new Array('start.html', 'suchen.html', 'inhalt.html',
        'setup.html', 'infos.html', 'hilfe.html', 'impress.html',
	'gastbook.html');
  top.topmenue.location.href = "topmenue.html";

// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// +++++ DATEN zur BIBEL: Bücher/Versionen/Quellen, etc.
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function book(bookname, bookeng, kapitel) {
  this.buch = bookname; // Buchname
  this.engl  = bookeng; // Englisches Buch
  this.kap = kapitel;   // Anzahl der Kapitel
} // of function book()

//Sprachen: Deutsch, Englisch
var bibel = new Array(
  new book('1. Mose', 'Genesis', 50),
  new book('2. Mose', 'Exodus', 40),
  new book('3. Mose', 'Leviticus', 27),
  new book('4. Mose', 'Numbers', 36),
  new book('5. Mose', 'Deuteronomy', 34),
  new book('Josua', 'Joshua', 24),
  new book('Richter', 'Judges', 21),
  new book('Ruth', 'Ruth', 4),
  new book('1. Samuel', '1 Samuel', 31),
  new book('2. Samuel', '2 Samuel', 24),
  new book('1. Könige', '1 Kings', 22),
  new book('2. Könige', '2 Kings', 25),
  new book('1. Chronik', '1 Chronicles',29),
  new book('2. Chronik', '2 Chronicles', 36),
  new book('Esra', 'Ezra', 10),
  new book('Nehemia', 'Nehemiah', 13),
  new book('Esther', 'Esther', 10),
  new book('Hiob (Ijob)', 'Job', 42),
  new book('Die Psalmen', 'Psalms', 150),
  new book('Sprüche Salomo', 'Proverbs', 31),
  new book('Prediger Salomo', 'Ecclesiastes', 12),
  new book('Hohelied', 'Song of Solomon', 8),
  new book('Jesaja', 'Isaiah', 66),
  new book('Jeremia', 'Jeremiah', 52),
  new book('Klagelieder', 'Lamentations', 5),
  new book('Hesekiel', 'Ezekiel', 48),
  new book('Daniel', 'Daniel', 12),
  new book('Hosea', 'Hosea', 14),
  new book('Joel', 'Joel', 4),
  new book('Amos', 'Amos', 9),
  new book('Obadja', 'Obadiah', 1),
  new book('Jona', 'Jonah', 4),
  new book('Micha', 'Micah', 7),
  new book('Nahum', 'Nahum', 3),
  new book('Habakuk', 'Habakkuk', 3),
  new book('Zefanja', 'Zephaniah', 3),
  new book('Haggai', 'Haggai', 2),
  new book('Sacharja', 'Zechariah', 14),
  new book('Maleachi', 'Malachi', 3),
  new book('-- Matthäus', '-- Matthew', 28),
  new book('Markus', 'Mark', 16),
  new book('Lukas', 'Luke', 24),
  new book('Johannes', 'John', 21),
  new book('Apostelgeschichte', 'Acts', 28),
  new book('Römer', 'Romans', 16),
  new book('1.Korinther', '1 Corinthians', 16),
  new book('2.Korinther', '2 Corinthians', 13),
  new book('Galater', 'Galatians', 6),
  new book('Epheser', 'Ephesians', 6),
  new book('Philipper', 'Philippians', 4),
  new book('Kolosser', 'Colossians', 4),
  new book('1.Thessalonicher', '1 Thessalonians', 5),
  new book('2.Thessalonicher', '2 Thessalonians', 3),
  new book('1.Timotheus', '1 Timothy', 6),
  new book('2.Timotheus', '2 Timothy', 4),
  new book('Titus', 'Titus', 3),
  new book('Philemon', 'Philemon', 1),
  new book('Hebräer', 'Hebrews', 13),
  new book('Jakobus', 'James', 5),
  new book('1.Petrus', '1 Peter', 5),
  new book('2.Petrus', '2 Peter', 3),
  new book('1.Johannes', '1 John', 5),
  new book('2.Johannes', '2 John', 1),
  new book('3.Johannes', '3 John', 1),
  new book('Judas', 'Jude', 1),
  new book('Offenbarung', 'Revelation', 22)
);

var lut84 = new Array('01.1-mose','02.2-mose','03.3-mose','04.4-mose','05.5-mose',
        '06.josua','07.richter','08.rut','09.1-samuel','10.2-samuel',
        '11.1-koenige','12.2-koenige','13.1-chronik','14.2-chronik',
        '15.esra','16.nehemia','17.ester','18.hiob','19.psalmen',
        '20.sprueche','21.prediger','22.hohelied','23.jesaja','24.jeremia',
        '25.klagelieder','26.hesekiel','27.daniel','28.hosea','29.joel',
        '30.amos','31.obadja','32.jona','33.micha','34.nahum','35.habakuk',
        '36.zephanja','37.haggai','38.sacharja','39.maleachi',
        '40.matthaeus','41.markus','42.lukas','43.johannes','44.apostel',
        '45.roemer','46.1-korinther','47.2-korinther','48.galater',
        '49.epheser','50.philipper','51.kolosser','52.1-thessalonicher',
        '53.2-thessalonicher','54.1-timotheus','55.2-timotheus','56.titus',
        '57.philemon','58.hebraeer','59.jakobus','60.1-petrus','61.2-petrus',
        '62.1-johannes','63.2-johannes','64.3-johannes','65.judas','66.offenbarung');

var menfak = new Array('1MO','2MO','3MO','4MO','5MO','JOS','JUD','RTS','1SA','2SA',
        '1KG','2KG','1KR','2KR','ESR','NEH','EST','JBS','SLM','OSP','FRK',
        'HSA','JES','JER','KLA','ESK','DNL','HSE','JOE','AMO','OBA','JON',
        'MIK','NAH','HAB','SEF','HAG','SKR','MLK',
        'MTT','MRK','LUK','JOH','APO','RMR','1KO','2KO','GLT','EFE','FIL',
        'KOL','1TE','2TE','1TI','2TI','TIT','FLM','HEB','JAK','1PE','2PE',
        '1JO','2JO','3JO','judas','APE');

// BibleGateway.com
var mgosp = new Array('GEN','EXOD','LEV','NUM','DEUT','JOSH','JUDG','RUTH',
        '1SAM','2SAM','1KGS','2KGS','1CHRON','2CHRON','EZRA','NEH','ESTH',
        'JOB','PS','PROV','ECC','SONG','ISA','JER','LAM','EZEK','DAN','HOSEA','JOEL',
        'AMOS','OBAD','JONAH','MICAH','NAHUM','HAB','ZEPH','HAG','ZECH','MAL',
        'MATT','MARK','LUKE','JOHN','ACTS',
        'ROM','1COR','2COR','GAL','EPH','PHIL','COL','1THES','2THES','1TIM','2TIM','TIT','PHILEM',
        'HEB','JAS','1PET','2PET','1JOHN','2JOHN','3JOHN','JUDE','REV');

var africa = new Array('Ge','Ex','Le','Nu','De','jos','Jud','Ru',
        '1sa','2sa','1ki','2ki','1ch','2ch','Ezr','Ne','Es',
        'Job','Ps','Pr','Ec','So','Isa','Jer','La','Eze',
        'Da','Ho','Joe','Am','Ob','Jon','Mic','Na','Hab',
        'Zep','Hag','Zec','Mal',
        'Mt','Mr','Lu','Joh','Ac','Ro','1co','2co','Ga','Eph',
        'Php','Col','1th','2th','1ti','2ti','Tit','Phm','Heb',
        'Jas','1pe','2pe','1jo','2jo','3jo','Jude','Re'); //Africaans

var wts_blb = new Array('ge','ex','le','nu','de','jos','jg','ru',
        '1sa','2sa','1ki','2ki','1ch','2ch','ezr','ne','es',
        'job','ps','pr','ec','ca','isa','jer','la','eze',
        'da','ho','joe','am','ob','jon','mic','na','hab',
        'zep','hag','zec','mal',
        'mt','mr','lu','joh','ac','ro','1co','2co','ga','eph',
        'php','col','1th','2th','1ti','2ti','tit','phm','heb',
        'jas','1pe','2pe','1jo','2jo','3jo','jude','re'); //Africaans

var pismo = new Array('Gen','Ex','Lev','Nu','Deu','Joz','Sdz','Rut',
        '1Sam','2Sam','1Krl','2Krl','1Krn','2Krn','Ezd','Neh','Est',
        'Hi','Ps','Prz','Koh','Pnp','Iz','Jer','Lam','Ez',
        'Dan','Oz','Joel','Am','Ab','Jon','Mi','Na','Hab',
        'Sof','Ag','Zach','Mal',
        'Mt','Mk','Lu','J','Dz','Rz','1Kor','2Kor','Ga','Ef',
        'Fil','Kol','1Tes','2Tes','1Tym','2Tym','Tyt','Flm','Heb',
        'Jak','1P','2P','1J','2J','3J','Jud','Ap'); //Polnische Bibel

var tamil = new Array('Genesis','Exodus','Leviticus','Numbers','Deuteronomy',
        'Joshua','Judges','Ruth','I_Samuel','II_Samuel','I_Kings','II_Kings',
        'I_Chronicles','II_Chronicles','Ezra','Nehemiah','Esther','Job','Psalms',
        'Proverbs','Ecclesiastes','Song_of_Solomon','Isaiah','Jeremiah','Lamentations',
        'Ezekiel','Daniel','Hosea','Joel','Amos','Obadiah','Jonah','Micah',
        'Nahum','Habakkuk','Zephaniah','Haggai','Zechariah','Malachi',
        'Matthew','Mark','Luke','John','Acts','Romans','I_Corinthians','II_Corinthians',
        'Galatians','Ephesians','Philippians','Colossians','I_Thessalonians',
        'II_Thessalonians','I_Timothy','II_Timothy','Titus','Philemon','Hebrews',
        'James','I_Peter','II_Peter','I_John','II_John','III_John','Jude','Revelation'); //Tamil Bible

var espera = new Array('genezo','eliro','levidoj','nombroj','readmono',
        'josuo','jugxisto','rut','1samuel','2samuel','1regxoj','2regxoj',
        '1kroniko','2kroniko','ezra','nehxemja','ester','ijob','psalmaro',
        'sentenco','predikan','altakant','jesaja','jeremia','plorkant',
        'jehxezke','daniel','hosxea','joel','amos','obadja','jona','mihxa',
        'nahxum','hxabakuk','cefanja','hxagaj','zehxarja','malahxi',
        'mateo','marko','luko','johano','agoj','romanoj','1korinta','2korinta',
        'galatoj','efesanoj','filipian','kolosean','1tesalon',
        '2tesalon','1timoteo','2timoteo','tito','filemon','hebreoj',
        'jakobo','1petro','2petro','1johano','2johano','3johano','judas','apokalip'); // Esperanto

var farsi = new Array();
  for (var ict=0; ict<66; ict++) farsi[ict]='matthew/matt';
  farsi[40]='mark/mark'; farsi[41]='luke/luke';
  farsi[42]='john/john'; farsi[61]='1john/1john'; // Farsi-(Persian)-Bible

var lifemore = new Array('1-mose', '2-mose', '3-mose', '4-mose', '5-mose', 'josua',
	'richter', 'ruth', '1-samuel', '2-samuel', '1-koenige', '2-koenige', '1-chronik', '2-chronik',
	'esra', 'nehemia', 'ester', 'hiob', 'psalmen', 'sprueche', 'prediger', 'hohelied',
	'jesaja', 'jeremia', 'klagelieder', 'hesekiel', 'daniel', 'hosea', 'joel',
	'amos', 'obadja', 'jona', 'micha', 'nahum', 'habakuk', 'zephanja', 'haggai',
	'sacharja', 'maleachi', 'matthaeus', 'markus', 'lukas', 'johannes',
	'apostelgeschichte', 'roemer', '1-korinther', '2-korinther', 'galater',
	'epheser', 'philipper', 'kolosser', '1-thessalonicher', '2-thessalonicher',
	'1-timotheus', '2-timotheus', 'titus', 'philemon', 'hebraeer', 'jakobus',
	'1-petrus', '2-petrus', '1-johannes', '2-johannes', '3-johannes',
	'judas', 'offenbarung');

var bwk_feld = new Array('mos1', 'mos2', 'mos3', 'mos4', 'mos5', 'josu', 'rich', 'rut0',
	'sam1', 'sam2', 'koe1', 'koe2', 'chr1', 'chr2', 'esra', 'nehe', 'este', 'ijob',
         'psal', 'spri', 'kohe', 'hohe', 'jesa', 'jere', 'klag', 'ezec', 'dani', 'hose',
         'joel', 'amos', 'obad', 'jona', 'mich', 'nahu', 'haba', 'zefa', 'hagg', 'sach', 'male',
         'matt', 'mark', 'luka', 'joha', 'apos', 'roem', 'kor1', 'kor2', 'gala', 'ephe',
         'phip', 'kolo', 'the1', 'the2', 'tim1', 'tim2', 'titu', 'phil', 'hebr', 'jako',
         'pet1', 'pet2', 'joh1', 'joh2', 'joh3', 'juda', 'offe');

var neue = new Array('1mo','2mo','3mo','4mo','5mo','jos','ri','rut','1sam','2sam',
        '1koe','2koe','1chr','2chr','esra','neh','est','hi','ps','spr','pre','hoh',
        'jes','jer','kla','hes','dan','hos','joel','amos','ob','jona','mi','nah','hab','zef','hag','sach','mal',
        'mt','mk','lk','jo','apg','roe','1kor','2kor','gal','eph','phil','kol','1thes','2thes',
        '1tim','2tim','tit','phm','hebr','jak','1pt','2pt','1jo','2jo','3jo','jud','off');
        
var biwi = neue;
  biwi[20] = 'pred'; biwi[21] = 'hld'; biwi[42] = 'joh'; biwi[44] = 'R%C3%B6m';
  biwi[51] = '1th'; biwi[52] = '2th'; biwi[59] = '1petr'; biwi[60] = '2petr';
  biwi[61] = '1joh'; biwi[62] = '2joh'; biwi[63] = '3joh'; biwi[65] = 'offb';   

var w2gl = lifemore;

/*
new Array('1_mose', '2_mose', '3_mose', '4_mose', '5_mose', 'josua',
	'richter', 'ruth', '1_samuel', '2_samuel', '1_koenige', '2_koenige', '1_chronik', '2_chronik',
	'esra', 'nehemia', 'ester', 'hiob', 'psalm', 'sprueche', 'prediger', 'hoheslied',
	'jesaja', 'jeremia', 'klagelieder', 'hesekiel', 'daniel', 'hosea', 'joel',
	'amos', 'obadja', 'jona', 'micha', 'nahum', 'habakuk', 'zephanja', 'haggai',
	'sacharja', 'maleachi', 'matthaeus', 'markus', 'lukas', 'johannes',
	'apostelgeschichte', 'roemer', '1_korinther', '2_korinther', 'galater',
	'epheser', 'philipper', 'kolosser', '1_thessalonicher', '2_thessalonicher',
	'1_timotheus', '2_timotheus', 'titus', 'philemon', 'hebraeer', 'jakobus',
	'1_petrus', '2_petrus', '1_johannes', '2_johannes', '3_johannes',
	'judas', 'offenbarung');

/* war Einheitsübersetzung - alt!
var uibk = new Array('gen', 'ex', 'lev', 'num', 'dtn', 'jos', 'ri', 'rut', '1sam',
	'2sam', '1koen', '2koen', '1chr', '2chr', 'esra', 'neh', 'est',
	'ijob', 'ps', 'spr', 'koh', 'hld', 'jes', 'jer', 'klgl', 'ez',
	'dan', 'hos', 'joel', 'am', 'obd', 'jona', 'mi', 'nah', 'hab',
	'zef', 'hag', 'sach', 'mal', 'mt', 'mk', 'lk', 'joh', 'apg',
	'roem', '1kor', '2kor', 'gal', 'eph', 'phil', 'kol', '1thess',
	'2thess', '1tim', '2tim', 'tit', 'phlm', 'hebr', 'jak', '1petr',
	'2petr', '1joh', '2joh', '3joh', 'jud', 'offb');

/*
Das hat nie so richtig funktioniert
var gotjesus = mgosp;
  new uquell('gJs', 'bible.gotjesus.org', '/cgi-bin/diatheke.pl?verse=', '+', '', '&locale=de', gotjesus)
// Es geht noch nicht: 1.Könige, 2.Könige, Sprüche, Matth, Römer, Hebräer
*/


//  new uquell('onBI', 'www.online-bibel.de', '/gateway.php?INPUT=', '+', '', '&TRL=', onbi)

// ++++++ Aufbau einer QuellEinheit:
// 'Name', 'URL-ohne http://', 'CGI-String-ohne http:// und anfang', 'Zusatz1', 'Zusatz2', 'Zusatz3', Array
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function uquell(name, nurl, cgiurl, zu1, zu2, zu3, feld) {
  this.name   = name;
  this.nurl   = nurl;
  this.cgiurl = cgiurl;
  this.zu1    = zu1;
  this.zu2    = zu2;
  this.zu3    = zu3;
  this.feld   = feld;
} // of function uquell()

/*
 * Die Reihenfolge dieser Quellen ist sehr wichtig.
 * ...wird in versionen.html und start.html benötigt...
 */

var quelle = new Array(
//BibleGateway - viele Sprachen und Versionen
  new uquell('Gspl', 'www.biblegateway.com', '/passage/?search=', '%20', '', '&interface=print&version=', mgosp),
//Norwegen ... katholische theologische Universität
  new uquell('MF', 'www.mf.no/bibel', 'prog/mb.cgi?', '+', '&nomb&nomo&nomd', '&bi=', menfak),
//UnoundBible - viele Sprachen und Versionen
  new uquell('Biola', 'www.unboundbible.org', '/index.cfm?method=searchResults.doSearch&version=', '&Book=', '&from_chap=', '&to_chap=', 1),
//Lutherbibel 1984
  new uquell('LT84', 'www.bibel-online.net', '/buch/', '/', '.html', '', lut84),
//New World Translation of the Holy Scriptures, Neue Welt Übersetzung -> Zeugen Jehovas
  new uquell('NWT', 'watchtower.org', '/', '', '/chapter_', '.htm', wts_blb),
//nur für Afrikaans
  new uquell('Afri', 'www.bybel.co.za', '/boek2.asp?boek=', '&hoofstuk=', '', '&vertaling=', africa),
//nur für Polnisch
  new uquell('Pln', 'www.pik-net.pl', '/bib-cgi/biblia?', '', '1-999', '', pismo),
//nur die Tamil-Bibel
  new uquell('Tmil', 'www.tamil-bible.com', '/lookup.php?Book=', '&Chapter=', '', '', tamil),
//nur Esperanto
  new uquell('esp', 'www.geocities.com/kalblando/biblio', '/', '.htm#', '', '', espera),   //Esperanto
//nur Farsi
  new uquell('Farsi', 'www.farsinet.com/bible', '/', '', '.html', '', farsi),              // Farsi
//nur Einheitsübersetzung
//alt:  new uquell('uibk', 'theol.uibk.ac.at/leseraum/bibel', '/', '', '.html#1', '', uibk),      // Einheitsübersetzung
  new uquell('bwk', 'alt.bibelwerk.de/bibel/', '', '.htm', '', '', bwk_feld),
//nur Schlachter 2000
//  new uquell('w2g', 'www.way2god.org/de/', 'bibel/', '', '/', '', w2gl),      // Schlachter 2000
  new uquell('2jesus', 'www.2jesus.de/', 'online-bibel/', '', '-', '.html', w2gl),      // Schlachter 2000
//nur für NeÜ = Neue evangelistische Übersetzung (bzw. Übertragung)
  new uquell('NeÜ', 'www.kh-vanheiden.de/NeUe/Bibeltexte/', '', '.html#', '', '', neue),
//nur für bibelwissenschaft ... einige neue Bibeln
  new uquell('DBG', 'www.die-bibel.de/', 'online-bibeln/', '/bibeltext/bibelstelle/', '%20', '/?print=1', biwi),
  new uquell('WiBi', 'www.bibelwissenschaft.de/print/nc/', 'online-bibeln/', '/lesen-im-bibeltext/bibelstelle/', '%20', '/', biwi)
//nur für bibelserver.com  
//  new uquell('BS', 'www.bibelserver.com/', 'act.php?', 'lang=de', '&bible=', '&ref=', 1)
  );

// hier standen die Versionen

function chsprache() {
  if (Sprache==0) Sprache = 1; else Sprache = 0;
  top.topmenue.location.href = 'topmenue.html';
  top.rahmen.mainframe.location.href = topmlink[aktw];
} // of function chsprache()

function chtmlink(nm) {
  aktw = nm;
  top.rahmen.mainframe.location.href = topmlink[aktw];
} // of function chtmlink(num)

