function fixPNG(myImage) 
{
	 
	    if (isMinIE6) 
	    {
	   var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
	             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
	                  + " style=\"" + "width:" + myImage.width 
	                  + "px; height:" + myImage.height 
	                  + "px;" + imgStyle + ";"
	                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
	                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML   
	}
    
}

/** banner rotator **/
function bannerRotateGroot() {

	if(myCountGroot > bannerArrayGroot.length-1){myCountGroot=0;}
	
	// Write out rotation
	document.getElementById('banners_groot').innerHTML = bannerArrayGroot[myCountGroot];
	
	setTimeout("bannerRotateGroot('banners_groot')", 9000);
	myCountGroot++;
}

function bannerRotateKlein1() {
	
	if(myCountKlein1 > bannerArrayKlein1.length-1){myCountKlein1=0;}
	
	// Write out rotation
	document.getElementById('banners_klein1').innerHTML = bannerArrayKlein1[myCountKlein1];
	
	setTimeout("bannerRotateKlein1('banners_klein1')", 7000);
	myCountKlein1++;
}

function bannerRotateKlein2() {
	
	if(myCountKlein2 > bannerArrayKlein2.length-1){myCountKlein2=0;}
	
	// Write out rotation
	document.getElementById('banners_klein2').innerHTML = bannerArrayKlein2[myCountKlein2];
	
	setTimeout("bannerRotateKlein2('banners_klein2')", 7000);
	myCountKlein2++;
}

function bannerRotateKlein3() {
	
	if(myCountKlein3 > bannerArrayKlein3.length-1){myCountKlein3=0;}
	
	// Write out rotation
	document.getElementById('banners_klein3').innerHTML = bannerArrayKlein3[myCountKlein3];
	
	setTimeout("bannerRotateKlein3('banners_klein3')", 7000);
	myCountKlein3++;
}

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);
