titlelist = Array(0, 1, 'The Real Devil',
	-1, 2, 'Chapter 1: The History Of An Idea',
	2, 3, '1-1 A History Of The Devil And Satan In Old Testament Times',
	3, 3, '1-1-1 Israel In Exile: The Babylonian / Persian Influence',
	4, 3, '1-1-2 Greek Influence',
	5, 3, '1-2 The Devil After The New Testament',
	6, 3, '1-2-1 Satan In The Thought Of Justin Martyr',
	7, 3, '1-2-2 Satan In The Thought Of Irenaeus And Tertullian',
	8, 3, '1-2-3 Satan In The Thought Of Clement And Origen',
	9, 3, '1-2-4 Satan In The Thought Of Lactantius And Athanasius',
	10, 3, '1-2-5 Satan In The Thought Of Augustine',
	11, 3, '1-3 Satan In The Middle Ages',
	12, 3, '1-4 Satan From The Reformation Onwards',
	13, 3, '1-4-1 Satan In Paradise Lost',
	14, 3, '1-5 The Protestors: Resistance To The Popular Concept Of The Devil',
	15, 3, '1-6 The Devil And Satan In Recent Thought',
	-1, 2, 'Chapter 2: Some Basics Bible Teaching',
	16, 3, '2-1 Angels',
	17, 3, '2-2 The Origin Of Sin And Evil',
	18, 3, 'Digression 2: Romans And The Wisdom Of Solomon',
	19, 3, 'Digression 3 The Intention And Context Of Genesis 1-3',
	20, 3, '2-3 Satan And The Devil',
	21, 3, '2-4  The Jewish Satan',
	22, 3, '2-5 Hell',
	23, 3, 'Digression 4 "The spirits in prison"',
	-1, 2, 'Chapter 3: Practical Implications',
	24, 3, '3-1 Some Practical Implications',
	25, 3, '3-1-1 "To be spiritually minded": The Essence Of Christianity',
	26, 3, '3-2 The Devil And Satan: The Hard Questions',
	-1, 2, 'Chapter 4: Demons',
	27, 3, '4-1 The Devil, Satan And Demons',
	28, 3, '4-2 Demons And Idols',
	29, 3, '4-3 Demons And Sickness',
	30, 3, '4-4 The Language Of The Day',
	31, 3, '4-5 God Adopts A Human Perspective',
	32, 3, 'Digression 5 The Teaching Style Of Jesus',
	33, 3, '4-6 Demons: Why Didn’t Jesus Correct People?',
	34, 3, '4-7 The Psychology Of Belief In Demons',
	39, 3, '4-8 Demons: A Summary',
	-1, 2, 'Chapter 5: Some Wrested Scriptures',
	40, 3, 'Chapter 5 An Examination Of The Specific Bible Passages Which Mention The Devil And Satan',
	41, 3, '5-2 The Serpent In Eden',
	42, 3, '5-3 Sons of God and Daughters of Men',
	43, 3, '5-4 Job’s Satan',
	44, 3, '5-4-1 The Satan In Job: A Fellow Worshipper?',
	45, 3, '5-4-2 Job\'s Satan: An Angel-Satan?',
	46, 3, '5-4-3 The Deconstruction Of The ‘Satan’ Myth In Job',
	47, 3, '5-5 Lucifer King Of Babylon',
	48, 3, '5-6 The Anointed Cherub',
	49, 3, '5-7 Satan In Zechariah 3',
	50, 3, '5-8 The Temptation Of Jesus',
	51, 3, '5-8-1 Jesus In The Wilderness: A Study In The Language And Nature Of Temptation',
	52, 3, '5-8-2 The Wilderness Temptations: A Window Into The Mind Of Jesus',
	53, 3, '5-9 Unclean Spirits',
	54, 3, '5-10 The Devil And His Angels',
	55, 3, '5-11 Satan Takes Away The Word',
	56, 3, '5-12 Satan As Lightning',
	57, 3, '5-13 Satan Entered Judas',
	58, 3, '5-14 Peter And Satan',
	59, 3, '5-15 Your Father The Devil',
	60, 3, '5-16 Oppressed Of The Devil',
	61, 3, '5-17 Child Of The Devil',
	62, 3, '5-18 The Power Of Satan',
	63, 3, '5-19 Delivering Unto Satan',
	64, 3, '5-20 The God / Prince Of This World',
	65, 3, '5-21 An Angel Of Light',
	66, 3, '5-22 The Messenger Of Satan',
	67, 3, '5-23 The Prince Of The Air',
	68, 3, '5-24 Giving Place To The Devil',
	69, 3, '5-25 The Wiles Of The Devil',
	70, 3, '5-26 The Snare Of The Devil',
	71, 3, '5-27 Turned Aside After Satan',
	72, 3, '5-28 Resist The Devil',
	73, 3, '5-29 Chains Of Darkness',
	74, 3, '5-30 The Body Of Moses',
	75, 3, '5-31 The Synagogue Of Satan',
	76, 3, '5-32 Michael And The Great Dragon',
	77, 3, '5-33 Devil And Satan Bound',
	78, 3, 'Digression 6: "The man of sin" (2 Thess. 2)',
	-1, 2, 'Chapter 6: Some Conclusions',
	79, 3, '6-1 The Real Devil: Some Conclusions',
	80, 3, 'Legion And The Gadarene Pigs');

function _onchange(selobj) {
	var m = selobj.selectedIndex;
	var v = selobj.options[m].value;
	if (v == '0') {
		document.location.href="/doc/realdevil-en";
	} else if (v != '-1') {
		document.location.href="/doc/realdevil-en/" + v;
	}
}

function AttachList(selobj) {
  selobj.options.length = 0;
  var cv = MM_findObj('current');
  if (cv) cv = cv.value;
  var m, j;
  var k=0;
  for(var i=0;i<titlelist.length;i+=3) {
  	m = titlelist[i+2];
  	for(j=1;j<titlelist[i+1];j++) {
  		m = '  ' + m;
  	}
  	selobj.options[k] = new Option(m, titlelist[i]);
  	selobj.options[k].className = 'sel' + titlelist[i+1];
  	if (cv == titlelist[i]) selobj.selectedIndex = k;
  	k++;
  }
}

function attachnavigation() {
  var sel = MM_findObj('topnav');
  if (sel) AttachList(sel);
  sel = MM_findObj('lownav');
  if (sel) AttachList(sel);
}

addLoadEvent(attachnavigation);