onerror = stopError;
function stopError()
{
return true;
}

function initialize() {
	stopError();
	}


// openWin

function openWin(theURL,winName,features) { //v2.0
	Funkt = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,' + features;
	window.open(theURL,winName,Funkt);
}

function openWin2(theURL,winName,features) { //v2.0
	Funkt = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,' + features;
	window.open(theURL,winName,Funkt);
}



// swapLayers

// resize fix for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}


function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  // doLinkClass(lnk);
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}


// get reference to nested layer for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getLyrRef(lyr,doc) {
	if (document.layers) {
		var theLyr;
		for (var i=0; i<doc.layers.length; i++) {
	  	theLyr = doc.layers[i];
			if (theLyr.name == lyr) return theLyr;
			else if (theLyr.document.layers.length > 0) 
	    	if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
					return theLyr;
	  }
		return null;
  }
}

function init(id) {
  var lyr = getElemRefs(id);
  swapLayers(lyr);
}


// BOX

// resize fix for ns4
var origWidth, origHeight;
if (document.Boxes) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}


function showBox(id) {
  var box = getElemRefs(id);
  if (box && box.css) box.css.display = "block";
}

function hideBox(id) {
  var box = getElemRefs(id);
  if (box && box.css) box.css.display = "none";
}

var cur_box;	// holds id of currently block Box
function swapBoxes(id) {
  // doLinkClass(lnk);
  if (cur_box) hideBox(cur_box);
  showBox(id);
  cur_box = id;
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.Boxes)? getboxRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested Box for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getboxRef(box,doc) {
	if (document.Boxes) {
		var thebox;
		for (var i=0; i<doc.Boxes.length; i++) {
	  	thebox = doc.Boxes[i];
			if (thebox.name == box) return thebox;
			else if (thebox.document.Boxes.length > 0) 
	    	if ((thebox = getboxRef(box,thebox.document)) != null)
					return thebox;
	  }
		return null;
  }
}

function boxinit(id) {
  var box = getElemRefs(id);
  swapBoxes(box);
}


// TABS

// resize fix for ns4
var origWidth, origHeight;
if (document.Tabs) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

function showTab(id) {
  var tab = getElemRefs(id);
  if (tab && tab.css) tab.className = "current";
}

function hideTab(id) {
  var tab = getElemRefs(id);
  if (tab && tab.css) tab.className = "norm";
}

var cur_tab;	// holds id of currently block Tab
function swapTabs(id) {
  // doLinkClass(lnk);
  if (cur_tab) hideTab(cur_tab);
  showTab(id);
  cur_tab = id;
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.Tabs)? gettabRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested Tab for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function gettabRef(tab,doc) {
	if (document.Tabs) {
		var thetab;
		for (var i=0; i<doc.Tabs.length; i++) {
	  	thetab = doc.Tabs[i];
			if (thetab.name == tab) return thetab;
			else if (thetab.document.Tabs.length > 0) 
	    	if ((thetab = gettabRef(tab,thetab.document)) != null)
					return thetab;
	  }
		return null;
  }
}

function tabinit(id) {
  var tab = getElemRefs(id);
  swapTabs(tab);
}



// REFBOX

// resize fix for ns4
var origWidth, origHeight;
if (document.refbes) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}


function showrefb(id) {
  var refb = getElemRefs(id);
  if (refb && refb.css) refb.css.display = "block";
}

function hiderefb(id) {
  var refb = getElemRefs(id);
  if (refb && refb.css) refb.css.display = "none";
}

var cur_refb;	// holds id of currently block refb
function swapRefBox(id) {
  // doLinkClass(lnk);
  if (cur_refb) hiderefb(cur_refb);
  showrefb(id);
  cur_refb = id;
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.refbes)? getrefbRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested refb for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getrefbRef(refb,doc) {
	if (document.refbes) {
		var therefb;
		for (var i=0; i<doc.refbes.length; i++) {
	  	therefb = doc.refbes[i];
			if (therefb.name == refb) return therefb;
			else if (therefb.document.refbes.length > 0) 
	    	if ((therefb = getrefbRef(refb,therefb.document)) != null)
					return therefb;
	  }
		return null;
  }
}

function refbinit(id) {
  var refb = getElemRefs(id);
  swapRefBox(refb);
}



// PersonS

// resize fix for ns4
var origWidth, origHeight;
if (document.Persons) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

function showPerson(id) {
  var Person = getElemRefs(id);
  if (Person && Person.css) Person.css.display = "block";
}

function hidePerson(id) {
  var Person = getElemRefs(id);
  if (Person && Person.css) Person.css.display = "none";
}

var cur_Person;	// holds id of currently block Person
function swapPersons(id) {
  // doLinkClass(lnk);
  if (cur_Person) hidePerson(cur_Person);
  showPerson(id);
  cur_Person = id;
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.Persons)? getPersonRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested Person for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getPersonRef(Person,doc) {
	if (document.Persons) {
		var thePerson;
		for (var i=0; i<doc.Persons.length; i++) {
	  	thePerson = doc.Persons[i];
			if (thePerson.name == Person) return thePerson;
			else if (thePerson.document.Persons.length > 0) 
	    	if ((thePerson = getPersonRef(Person,thePerson.document)) != null)
					return thePerson;
	  }
		return null;
  }
}

function Personinit(id) {
  var Person = getElemRefs(id);
  swapPersons(Person);
}