﻿ navHover = function() {
	var lis = document.getElementById("navi-main").getElementsByTagName("li");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
	var lis = document.getElementById("burda_search_pdown");
	lis.onmouseover=function() {
		this.className+=" iehover";
	}
	lis.onmouseout=function() {
		this.className=this.className.replace(new RegExp(" iehover\\b"), "");
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);

function chngFirstNav(id,active,language){
   //id ~ dom id
   //active true/false
  if (active) {
    if(language=='de') offset = '-19px'
    else offset = '-24px';
    $(id).style.backgroundPosition='0px '+offset;  
    }
  else {
    if(language=='de') offset = '5px'
    else offset = '0px';
    $(id).style.backgroundPosition='0px '+offset;
    }
  }
