function noerror(){
   return true
}
// window.onerror = noerror;

var ic1=new Image();
ic1.src="images/submenue/icon1.jpg";

kn_spacer = new Image();
kn_spacer.src = "images/spacer.gif";
kn_pfeil_o = new Image();
kn_pfeil_o .src = "images/menue/pfeil.gif";


function mover(ziel,bild)
{
document.images[ziel].src = eval(bild+".src");
}


function linkto(verweis)
{
	window.location.href(verweis);
}



function popit(x)
{
newwin = window.open(x,"PopUp","width=272,height=321,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=yes,top=185,left=230"); }










var ie4=document.all
var ie5=document.getElementById&&document.all&&!(navigator.appVersion.indexOf("MSIE 5.5")!=-1)
var ie5_5=document.getElementById&&document.all&&(navigator.appVersion.indexOf("MSIE 5.5")!=-1)
var ie6=document.getElementById&&document.all&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)

var ns4=document.layers
var ns6=document.getElementById&&!document.all

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}



var clipTop = 0;
var clipWidth = 240;
var clipBottom = 207;
var topper = 0;
var lyrheight = 0;
var time,amount,theTime,theHeight,DHTML;

function prepLyr()
{
	
	
	
	
	DHTML = (document.getElementById || document.all || document.layers)
	if (!DHTML) return;
	var x = new getObj('example');
	if (document.layers)
	{
		lyrheight = x.style.clip.bottom;
		lyrheight += 20;
		x.style.clip.top = clipTop;
		x.style.clip.left = 0;
		x.style.clip.right = clipWidth;
		x.style.clip.bottom = clipBottom;
	}
	else if (document.getElementById || document.all)
	{
		lyrheight = x.obj.offsetHeight;
		x.style.clip = 'rect('+clipTop+' '+clipWidth+' '+clipBottom+' 0)'
	}
}

function scrollayer(layername,amt,tim)
{
	if (!DHTML) return;
	thelayer = new getObj(layername);
	if (!thelayer) return;
	amount = amt;
	theTime = tim;
	realscroll();
}

function stopScroll()
{
	if (time) clearTimeout(time);
}

function realscroll()
{
	if (!DHTML) return;
	clipTop += amount;
	clipBottom += amount;
	topper -= amount;
	if (clipTop < 0 || clipBottom > lyrheight)
	{
		clipTop -= amount;
		clipBottom -= amount;
		topper += amount;
		return;
	}
	if (document.getElementById || document.all)
	{
		clipstring = 'rect('+clipTop+' '+clipWidth+' '+clipBottom+' 0)'
		thelayer.style.clip = clipstring;
		thelayer.style.top = topper;
	}
	else if (document.layers)
	{
		thelayer.style.clip.top = clipTop;
		thelayer.style.clip.bottom = clipBottom;
		thelayer.style.top = topper;
	}
	time = setTimeout('realscroll()',theTime);
}



function getObj(name)
{
  if (document.getElementById)
  {
    this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
    this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function vis(val)
{
	if (!DHTML) return;
	var t = new getObj('test');
	t.style.visibility = val;
	var f = new getObj('example');
	f.style.visibility = val;
}
