

sfHover = function() {
	var sfEls = document.getElementById("navCountry").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
//if (window.attachEvent) window.attachEvent("onload", sfHover);




sfHover2 = function() {
	var sfEls = document.getElementById("navMain").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover2";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover2\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover2);


sfHover3 = function() {
	var sfEls = document.getElementById("navProdukte").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover3";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover3\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover3);


sfHover4 = function() {
	var sfEls = document.getElementById("navCorporate").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover4";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover4\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover4);



	
	
	function focusPlzSearch(id,area)
	{
		if(document.forms[id][area].value=='Postleitzahl')
		{
			document.forms[id][area].value='';
		}
	}
	
	function defocusPlzSearch(id,area)
	{
		
		if(document.forms[id][area].value=='')
		{
			document.forms[id][area].value='Postleitzahl';
		}
	}	
	
	
	function toggle(what)
        {
     	  current=(document.getElementById(what).style.display == 'none') ? 'block' : 'none';
      	  document.getElementById(what).style.display = current;
        }
	

function start() {
//objectInfo(window.start);
  if (window.setupTabform) {
    setupTabform();
  }
  if (window.setSliderUrl) {
    // set the active slider to the one wich is specified by the url parameter
    setSliderUrl("action");
  }
  // restore the recent user selected slider
  if (document.getElementById("activeTabId")) {
    setSelectedString(getURLParamValue("activeTabId"));
  }
}
	
	/* target="_blank" replacement */
/*	
  function init() {
	
		// Fetch all the a elements in the document.
		var links = document.getElementsByTagName('a');

		// Loop through the a elements in reverse order
		// for speed.
		for (var i = links.length; i != 0; i--) {
			
			// Pull out the element for this iteration.
			var a = links[i-1];
			
			// If the element doesn't have an href, skip it.
			if (!a.href) continue;

			// If the element has a className that contains
			// 'external' attach the onclick handler.
			if (a.className && a.className.indexOf('external') != -1) a.onclick = PopWin;
		}
	}
	
	function PopWin(e) {
	
		// Accommodate IE's non-standard event handling.
		if (!e) var e = window.event;
		var a = e.target ? e.target : e.srcElement;

		// Open a new window with the link's href.
		var newwin = window.open(a.href);

		// The thought is that if the new window didn't
		// (popups blocked or whatever) we want to return
		// true so the link is follow normally. Not sure
		// if this works, but it doesn't seem to hinder.
		return !newwin;                               
	}
	
//	onload = init;	
	*/
	
	/* target="_blank" replacement end */

