var oe=function(Fehler,Datei,Zeile){alert('Es ist der JS- Fehler: '+Fehler+', in der Datei: '+Datei+', in der Zeile: '+Zeile+'Aufgetreten.');};var oe2=function(){return true;};
window.onerror=oe;
var tmp = null,$GLOBALS = {};
window.opera = window.opera;
$GLOBALS.hiddens = [];
$GLOBALS.IE = false;
$GLOBALS.IE6 = false;
$GLOBALS.IE7 = false;
$GLOBALS.IE8 = false;
if(navigator.appVersion.match(/MSIE/)&&!navigator.appVersion.match(/Macintosh/)&&!opera&&!navigator.appVersion.match(/Konqueror/)){
	$GLOBALS.IE=true;
	if(navigator.appVersion.match(/MSIE 6/))$GLOBALS.IE6 = true;
	if(navigator.appVersion.match(/MSIE 7/))$GLOBALS.IE7 = true;
	if(navigator.appVersion.match(/MSIE 8/))$GLOBALS.IE8 = true;
}
var $ = function(Obj,Doc)
{
	return (Doc||document).getElementById(Obj);
}
var $T = function(Tag,Parent)
{
	Tag=Tag?Tag:'*';
	return ((Tag=='*') && !document.getElementsByTagName('*').length)?(Parent||document).all:(Parent||document).getElementsByTagName(Tag);
}
var $C = function(className, Tag) {
    var muster = new RegExp("(^| )" + className + "($| )");
    var alles = $T();
    var gefunden = [];
	for(i=0;i<alles.length;i++){
		if (alles[i].tagName && (alles[i].tagName.toLowerCase() == Tag) && alles[i].className && (alles[i].className != "")) {
            if (alles[i].className.match(muster)) {
                gefunden[gefunden.length] = alles[i];
			}
        }
	}
    return gefunden;
};
String.prototype.trim = function()
{
	return this.replace(/\s+$/,'').replace(/^\s+/,'');
}
function init()
{
	if($GLOBALS.IE && !$GLOBALS.IE7 && !$GLOBALS.IE8){
		document.body.style.behavior = 'url(/js/csshover3.htc);';
		for(var i=0;i<$C('png','img').length;i++){
			$C('png','img')[i].style.behavior = 'url(/js/iepngfix.htc);';
		}
		for(var i=0;i<$C('png','input').length;i++){
			$C('png','img')[i].style.behavior = 'url(/js/iepngfix.htc);';
		}
	}
	var a=$T('a');
	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].onmouseout = function()
		{
			this.onfocus = function(){}
		};
		a[i].onmousemove = a[i].onmouseout;
	}
}
window.onload = init;