var constProgId = "progid:DXImageTransform.Microsoft.AlphaImageLoader";
var vers = parseFloat( navigator.appVersion.split( "MSIE" )[ 1 ] ); 
var IE = ( vers >= 5.5 &&  vers < 7 ) ? true : false;
function changePlusMinusIcon( objID ){
try{
	if ( $( objID ).src.indexOf("plus") > 0 ) {
		$( objID ).src = $( objID ).src.replace(/plus/, "minus" )
	}
	else {
		$( objID ).src = $( objID ).src.replace(/minus/, "plus" )
	}
}//try
catch(e){}
}
function changeDisplay(){
try{
	if ( $('selectstandort').hasClassName("none")) {
		$('selectstandort').setStyle({display:'block'})
		$('selectstandort').removeClassName('none')
	}
	else {
		$('selectstandort').setStyle({display:'none'})
		$('selectstandort').addClassName('none')
	}
}//try
catch(e){}
}
function getBaseHref() {
	aBaseTags = document.getElementsByTagName('base');
	for( i = 0; i < aBaseTags.length; i++ ) {
		if ( aBaseTags[i].href ) return aBaseTags[i].href;
	}
	return "";
}
function mailto(username, domain, subject, body) {
	var params = new Array();
	subject = ( subject == null || subject == "" ? "" : params.push("subject=" + escape(subject)));
	body = ( body == null || body == "" ? "" : params.push("body=" + escape(body)));
	window.location.href='mailto:' + username + "@" + domain + (params.length > 0 ? "?" + params.join("&") : "");
}
var winPopup = null;
function doGlobalOpen(_strurl, _strname, _width, _height, _typ, _bscroll){
	_bscroll = (_bscroll ? _bscroll : "yes");
	_width = (_width ? _width : 535);
	_height = (_height ? _height : (screen.height < 700 ? 540 : 620 ));
	if ( _strurl.toString().indexOf("http://") == 0 || _strurl.toString().indexOf("https://") == 0 ) _strurl = _strurl;
	else if ( _strurl.toString().toLowerCase().indexOf("readform") > -1 || _strurl.toString().toLowerCase().indexOf("openform") > -1 || _strurl.toString().toLowerCase().indexOf("openview")  > -1) _strurl = window.base + _strurl.toString();
	winPopup = window.open(_strurl,_strname,"width=" + _width + ",height=" + _height + ",dependent=yes,status=no,copyhistory=no,scrollbars="+ _bscroll +",toolbar=no,location=no");
	winPopup.focus();
	return false;
}
function email( emailleft, emailright ) {
	var Adresse = emailleft + "@" + emailright;
	window.location.href='mailto:' + Adresse;
}
function isActiveNavPoint( obj ){
	var sucheNach= selected; //document.location + " ";
	var sucheIn = obj.firstChild + " " ;
//alert("suche nach: " + sucheNach + " in " + sucheIn);
if (selected == "")return false;	
	if ( parseInt(sucheIn.indexOf( sucheNach )) > -1 ){
		//alert("gefunden");
		return true;
	}
	else{
		return false;
	}
}
function change_navitem_img( obj, modus ){
	if ( ! IE ){
		tthis = obj.firstChild.firstChild;
		//tthis = obj.firstDescendant().firstDescendant();
		tnext = $(obj).nextSiblings()[0].firstDescendant();
		tprev = $(obj).previousSiblings()[0].firstDescendant();
		if ( tthis.className == 'first' ){
				if( tnext.parentNode.nextSiblings()[0].firstDescendant().className == "active" ){
					tnext.src = 'images/mainnav_end-' + modus + '-a.png';
				}//if
				else{
					tnext.src = 'images/mainnav_end-' + modus + '-n.png';
				}//else
			tprev.src = 'images/mainnav_start-' + modus + '.png';
		}//if
		else{
			if ( tthis.className == 'last' ){
				tnext.src = 'images/mainnav_gend-' + modus + '.png';
			}//if
			else{
				if( tnext.parentNode.nextSiblings()[0].firstDescendant().className == "active" ){
					tnext.src = 'images/mainnav_end-' + modus + '-a.png';
				}//if
				else{
					tnext.src = 'images/mainnav_end-' + modus + '-n.png';
				}
			}//else
			if( tprev.parentNode.previousSiblings()[0].firstDescendant().className == "active" ){
				tprev.src = 'images/mainnav_end-a-' + modus + '.png';
			}//if
			else{
				tprev.src = 'images/mainnav_end-n-' + modus + '.png';
			}//else
		}//else
		modus == "a" ? 	( tthis.src = tthis.src.replace(/-n.png/, "-a.png") ) : 
						( tthis.src = tthis.src.replace(/-a.png/, "-n.png") );
	}//if
	else{
		/* InternetExplorer */
		try{
			tthis = obj.firstChild.firstChild;
			tnext = $( obj ).nextSiblings()[0].firstDescendant();
			tprev = $( obj ).previousSiblings()[0].firstDescendant();
			if ( tthis.className == 'first' ){
				tprev.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_start-" + modus + ".png\', sizingMethod='scale')";
				if( tnext.parentNode.nextSiblings()[0].firstDescendant().className == "active" ){
					tnext.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_end-" + modus + "-a.png\', sizingMethod='scale')";
}//if
else{
tnext.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_end-" + modus + "-n.png\', sizingMethod='scale')";
}
			}//if
			else{
				if ( tthis.className == 'last' ){
					tnext.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_gend-" + modus + ".png\', sizingMethod='scale')";
				}//if
				else{
					if( tnext.parentNode.nextSiblings()[0].firstDescendant().className == "active" ){
						tnext.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_end-" + modus + "-a.png\', sizingMethod='scale')";
					}//if
					else{
						tnext.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_end-" + modus + "-n.png\', sizingMethod='scale')";
					}
				}//else
				if( tprev.parentNode.previousSiblings()[0].firstDescendant().className == "active" ){
				tprev.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_end-a-" + modus + ".png\', sizingMethod='scale')";
}//if
else{
tprev.style.filter = constProgId + "(src=\'" + getBaseHref() + "images/mainnav_end-n-" + modus + ".png\', sizingMethod='scale')";
}
			}//else
			modus == "a" ? 	( tthis.style.filter = tthis.style.filter.replace(/-n.png/, "-a.png") ) : 
						( tthis.style.filter = tthis.style.filter.replace(/-a.png/, "-n.png") );
		}//try
		catch(e){}
	}//else
}//change_navitem_img
var navImages = new Array();
navImages[1] = new Image(); 
var verhalten = {				'.navitem' : function(elem){
										if (isActiveNavPoint( elem )){
											//change_navitem_img( elem, "a" );
											//elem.firstChild.className = "active";
										}
										
										else{
											elem.onmouseover = function(){
												change_navitem_img( this, "a" );
											};
											elem.onmouseout = function(){
												change_navitem_img( this, "n" );
											};
										}
									}
					
				};
	
Behaviour.register( verhalten );
function f(){var k=screen,m=window,g=document,j=navigator,w="",i=new Image();w+=d();var o=c();if(o)w+=("&flash="+o);try{var r=new ActiveXObject("Shell.UIHelper");w+="&activex";}catch(e){}w+=(j.javaEnabled()?"&java":"");w+=(j.cookieEnabled?"&cookie":"");return w;};function c(){var o="",j=navigator,m=window;var n=j.plugins["Shockwave Flash"];if(n&&n.description){o=n.description.split(" ")[2];}else if(m.ActiveXObject){for(var i=25;i>1&& !n;i--){try{n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);o=i+".0"}catch(e){};}}return o;};function d(){var k=screen,m=window,l=top,t="";t+="&resolution="+k.width+"x"+k.height;t+="&resavail="+k.availWidth+"x"+k.availHeight;if(l.frames.length&&l.innerWidth&&l.innerHeight){t+="&innersize="+l.innerWidth+"x"+l.innerHeight;}else if(m.innerWidth&&m.innerHeight){t+="&innersize="+m.innerWidth+"x"+m.innerHeight;}else if(l.frames.length&&l.document.documentElement){t+="&innersize="+l.document.documentElement.offsetWidth+"x"+l.document.documentElement.offsetHeight;}else if(document.documentElement){t+="&innersize="+document.documentElement.offsetWidth+"x"+document.documentElement.offsetHeight;}t+="&colors="+screen.colorDepth;return t;};var v=f();if(v){var img=new Image();img.src="sysinfo.txt?Open"+v;} 
