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

$(document).ready(function() {
    $('.visuals .images').cycle({
        fx:     'fade',
        speed:   2000,
        timeout: 5000
    });
    $('textarea.expanding').autogrow();
    $(document).pngFix();

    $('.productgroups h4 a').click(function(e){

        e.preventDefault();
        var t = $(this).attr('rel');

        $('#'+t).slideToggle();
    })
});
