
/* Script für den IE zum Auklappen der Navigation*/
sfHover = function() {
	var sfEls    = document.getElementById("hauptnavigation").getElementsByTagName("LI");

	//Navigation
  for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
      if(this.className != 'nohover'){
  			this.className+=" sfhover";
      }
		}
		sfEls[i].onmouseout=function() {
      if(this.className != 'nohover'){
  			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
      }
		}
	}
  if(document.getElementById("webBoxContentDiv")){
    //Submit Buttons
    var sfButton = document.getElementById("webBoxContentDiv").getElementsByTagName("INPUT");
    for (var i=0; i<sfButton.length; i++) {
      sfButton[i].onmouseover=function() {
        if(this.className != 'bnohover'){
          if(this.className == 'webFormButton'){
            this.className+=" bsfhover";
          }
        }
      }
      sfButton[i].onmouseout=function() {
        if(this.className != 'bnohover'){
          this.className=this.className.replace(new RegExp(" bsfhover\\b"), "");
        }
      }
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



function isUndefined(v) {
    var undef;
    return v===undef;
}

function rawPopup(url, target, features) {
    if (isUndefined(target)) {
        target = '_blank';
    }

    var newWindow = window.open(url, target, features);
    newWindow.focus();
    return newWindow;
}

function linkPopup(src, features) {
    return rawPopup(src.getAttribute('href'), src.getAttribute('target') || '_blank', features);
}
