// effect for menu-items in navigation 2
function fncNav2ShowLargeArrow(lEl) {
	if (lEl) {
		lEl.style.backgroundImage='url(images/global/navigation2/backgroundMenuItemSmall.gif)'
	}
}

// effect for SUBmenu-items in navigation 2
function fncNav2ShowSmallArrow(lEl) {
	if (lEl) {
		lEl.style.backgroundImage='url(images/global/navigation2/selection2.gif)'
	}
}

// remove background-image of element
function fncResetBg(lEl) {
	if (lEl) {
		lEl.style.backgroundImage=''
	}
}

// toggle visibility of a particular element
function fncToggleVis(lEl) {
	if (document.getElementById(lEl)) {
		if (document.getElementById(lEl).style.display == "" || document.getElementById(lEl).style.display == "block") {
			document.getElementById(lEl).style.display = "none"
		} else {
			document.getElementById(lEl).style.display = ""
		}
	}
}


// DETECT BROWSERS
function Browser(){
  var ua,s,i
  ua = navigator.userAgent
  this.isIE=false; this.isMacIE=false; this.isGecko=false; this.isSafari=false; this.version=null;
  s="MSIE"
  if ((i=ua.indexOf("MSIE"))>=0){
    this.isIE=true
	if ((i=ua.indexOf("MSIE"))>=0 && (ua.indexOf("Mac"))>=0)
		this.isMacIE=true
    this.version=parseFloat(ua.substr(i+s.length))
    return
  }
  s="Gecko/"
  if ((i=ua.indexOf(s))>=0){
    this.isGecko=true
    this.version=parseInt(ua.substr(i+s.length))
    return
  }
  s="Safari/"
  if ((i=ua.indexOf(s))>=0){
    this.isSafari=true
    this.version=parseFloat(ua.substr(i+s.length))
    return
  }
}
var browser=new Browser()


