// JavaScript Document
function oe(Fehler,Datei,Zeile){
	alert('Es ist der JS- Fehler: '+Fehler+', in der Datei: '+Datei+', in der Zeile: '+Zeile+'Aufgetreten.');
}
function oe2(){
	return true;	
}
window.onerror=oe;
window.opera=window.opera;
var $OBJ = function(Obj,Doc)
{
	return (Doc||document).getElementById(Obj);
}
var $TAG = function(Tag,Parent)
{
	Tag=Tag?Tag:'*';
	return ((document.getElementsByTagName('*').length == 0) && (Tag=='*'))?(Parent||document).all:(Parent||document).getElementsByTagName(Tag);
}
window.$GLOBALS = {};
$GLOBALS.IE = false;
$GLOBALS.IE7 = false;
if(navigator.appVersion.match(/MSIE/)&&!navigator.appVersion.match(/Macintosh/)&&!opera&&!navigator.appVersion.match(/Konqueror/)){
	if(!navigator.appVersion.match(/MSIE 7/)){
		$GLOBALS.IE=true;
	}
	else{
		$GLOBALS.IE7=true;	
	}
}
function init()
{
	var a=$TAG('a'), arr=[], inp = $TAG('input');

	for(var i=0;i<a.length;i++){
		arr[i] = a[i];
	}
	for(i=0;i<inp.length;i++){
		if(inp[i].type=='submit' || inp[i].type=='image' || inp[i].type=='reset' || inp[i].type=='button' || inp[i].type=='checkbox' || inp[i].type=='radio'){
			arr = arr.concat([inp[i]]);	
		}
	}
	
	inp = [];
	a = arr;
	
	for(i=0;i<a.length;i++){ // http://www.tomislav.net/gestrichelte-linie-um-link-verstecken.htm
		a[i].onmousedown	= function(){this.onfocus=function(){this.blur();}}
		a[i].onmouseup		= function(){this.onfocus=function(){}}
		a[i].onmouseout		= a[i].onmouseup;
	}
	
	if($OBJ('lang')){
		$OBJ('lang').style.width = '141px';
		$OBJ('lang').style.right = '12px';
		if($OBJ('lang_select')){
			$OBJ('lang_select').style.display = 'inline';
		}
		$OBJ('lang').form.reset();
		$OBJ('lang').onchange = function()
		{
			if($OBJ('lang_select')){
				$OBJ('lang_select').firstChild.data = this.options[this.selectedIndex].text;
			}
			if(this.options[this.selectedIndex].value !== '77'){
				this.form.submit();
			}
		};
	}
	$OBJ('lang_submit').style.display = 'none';
	
}
window.onload=init;