// JavaScript Document
var IE = false;
var NS = false;
var browser_version = parseInt(navigator.appVersion);
var browser_type = navigator.appName;
if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4)) { IE = true; } 
else if (browser_type == "Netscape" && (browser_version >= 4) && (browser_version < 5)) { NS = true; }
else if (browser_type == "Netscape" && (browser_version >= 5)) { NS = true; }


function FensterOeffnen (Adresse) {
  MeinFenster = window.open(Adresse, "Zweitfenster", "width=690,height=354,location=no,menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no");
  MeinFenster.focus();
}

function subnaviOver(el, container)
{ 
  document.getElementById(container).style.display = "block";
  //document.getElementById(container).style.zIndex = "100";
	el.style.backgroundImage = "url(images/bg_list_tabs.gif)";
  el.style.backgroundPosition = "100% -780px";
  el.style.backgroundRepeat = "no-repeat";
	el.firstChild.style.backgroundImage = "url(images/bg_list_tabs.gif)";
  el.firstChild.style.paddingTop = "9px";
	if (el.id == 'themenLoesungen'){
		el.firstChild.style.backgroundPosition = "-296px -730px";	
	}
  else {
		el.firstChild.style.backgroundPosition = "0 -730px";
	}
  el.firstChild.style.backgroundRepeat = "no-repeat";
  el.style.marginTop = "0";
  el.style.position = "relative";
  el.style.color = "#000000";
  el.style.zIndex = "1";
  el.onmouseout = function(){subnaviOut(el, container);};
}

function subnaviOut(el, container)
{
  el.style.backgroundImage = "none";
	if (el.id == 'software'){
		el.firstChild.style.backgroundPosition = "-100px -640px";	
	}
	else {
		el.firstChild.style.backgroundImage = "none";
	}
  el.firstChild.style.paddingTop = "5px";
  el.style.marginTop = "4px";
  el.style.color = "#2c6fca";
  //el.style.zIndex = "0";
  document.getElementById(container).style.display = "none";
	
}

function flyoutOver(el, btn)
{
	btn = document.getElementById(btn);
	btn.style.backgroundImage = "url(images/bg_list_tabs.gif)";
  btn.style.backgroundPosition = "100% -780px";
  btn.style.backgroundRepeat = "no-repeat";
  btn.firstChild.style.backgroundImage = "url(images/bg_list_tabs.gif)";
  btn.firstChild.style.paddingTop = "9px";
	if (btn.id == 'themenLoesungen'){
		btn.firstChild.style.backgroundPosition = "-296px -730px";	
	}
  else {
		btn.firstChild.style.backgroundPosition = "0 -730px";
	}
  btn.firstChild.style.backgroundRepeat = "no-repeat";
  btn.style.marginTop = "0";
  btn.style.position = "relative";
  btn.style.color = "#000000";
  el.style.display = "block";
  //el.style.zIndex = "1";
	el.style.zIndex =  btn.style.zIndex -1;
  //btn.style.zIndex = "200";
}

function flyoutOut(el, btn)
{
	btn = document.getElementById(btn);
  btn.style.backgroundImage = "none";
	if (btn.id == 'software'){
		btn.firstChild.style.backgroundPosition = "-100px -640px";	
	}
	else {
		btn.firstChild.style.backgroundImage = "none";
	}
  btn.firstChild.style.paddingTop = "5px";
  btn.style.marginTop = "4px";
  btn.style.color = "#2c6fca";
  //btn.style.zIndex = "0";
  el.style.display = "none";
}

function flyoutClose(el)
{
	el = document.getElementById(el);
  el.style.display = "none";
}



//Ersetzt den Value Wert eines Inputs durch einen anderen Wert
function replaceInputValueById( id, value )
{
	document.getElementById(id).value = value;
	
};