/* Verschiedene JavaScript Funktionen */

var BildNr = 1;

		function changeColor(bild) {
			document.getElementById('produktbild').src = "assets/images/produkte/farben/" + prodfarbe[bild];
		}
		

            function changeDisplay(bMakeVisible, sId)
            {
                obj = document.getElementById(sId);


					if (obj != null)
					{
					
						if(document.forms['add'].elements['land'].value == "US")
						{
							obj.style.display = (true) ? 'block' : 'none';
							return true;
						}						
						
						else
						{
							obj.style.display = (bMakeVisible) ? 'block' : 'none';
							return true;
						}
					}
					else
						return false;
            }
				
 sfHover = function() {
	var sfEls = document.getElementById("nav").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);



