var constProgId = "progid:DXImageTransform.Microsoft.AlphaImageLoader";
var vers = parseFloat( navigator.appVersion.split( "MSIE" )[ 1 ] ); 
var IE = ( vers >= 5.5 &&  vers < 7 ) ? true : false;
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("&") : "");
}
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' ){
			tprev.src = imgPath + 'mainnav_'+geschaeftsfeld+'_start-' + modus + '.png';
			tnext.src = imgPath + 'mainnav_'+geschaeftsfeld+'_end-' + modus + '-n.png';
		}//if
		else{
			if ( tthis.className == 'last' ){
				tnext.src = imgPath + 'mainnav_'+geschaeftsfeld+'_gend-' + modus + '.png';
			}//if
			else{
				tnext.src = imgPath + 'mainnav_'+geschaeftsfeld+'_end-' + modus + '-n.png';
			}//else
			tprev.src = imgPath + 'mainnav_'+geschaeftsfeld+'_end-n-' + modus + '.png';
		}//else
		modus == "a" ? 
								( tthis.src = tthis.src.replace(/-n/, "-a") ) : 
								( tthis.src = tthis.src.replace(/-a/, "-n") );
	}//if
	else{
		/* InternetExplorer */
		tthis = obj.firstChild.firstChild;
		tnext = $( obj ).nextSiblings()[0].firstDescendant();
		tprev = $( obj ).previousSiblings()[0].firstDescendant();
		
		
		if ( tthis.className == 'first' ){
			tprev.style.filter = constProgId + "(src=\'	"+imgPath+"mainnav_"+geschaeftsfeld+"_start-" + modus + ".png\', sizingMethod='scale')";
			tnext.style.filter = constProgId + "(src=\'	"+imgPath+"mainnav_"+geschaeftsfeld+"_end-" + modus + "-n.png\', sizingMethod='scale')";
		}//if
		else{
			if ( tthis.className == 'last' ){
				tnext.style.filter = constProgId + "(src=\'	"+imgPath+"mainnav_"+geschaeftsfeld+"_gend-" + modus + ".png\', sizingMethod='scale')";
			}//if
			else{
				tnext.style.filter = constProgId + "(src=\'	"+imgPath+"mainnav_"+geschaeftsfeld+"_end-" + modus + "-n.png\', sizingMethod='scale')";
			}//else
			tprev.style.filter = constProgId + "(src=\'	"+imgPath+"mainnav_"+geschaeftsfeld+"_end-n-" + modus + ".png\', sizingMethod='scale')";
		}//else
		modus == "a" ? 
							( tthis.style.filter = tthis.style.filter.replace(/-n/, "-a") ) : 
							( tthis.style.filter = tthis.style.filter.replace(/-a/, "-n") );
	}//else
}//change_navitem_img
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;} 
var zustaende = 4 ;
function showme( zus ){;
	for( var i = 0; i <= zustaende; i++  ){
		if (i == zus){
			$( "z" + i ).show();	
		}
		else{
			$( "z" + i ).hide();
		}
	}
}
