﻿$(function() {
    if ($.browser.msie && $.browser.version < 7) return;
// fade in/out for sponsor grayscale to color
    $('#sponsors li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function() {
                var $span = $('> span.hover', this).css('opacity', 0);
                $(this).hover(function() {
                    // on hover
                    $span.stop().fadeTo(500, 1);
                }, function() {
                    // off hover
                    $span.stop().fadeTo(500, 0);
                });
            });
            
    $('#navigate li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function() {
                var $span = $('> span.hover', this).css('opacity', 0);
                $(this).hover(function() {
                    // on hover
                    $span.stop().fadeTo(500, 1);
                }, function() {
                    // off hover
                    $span.stop().fadeTo(500, 0);
                });
            });
//slider for dalejr.com tab
    $('#dalejrcom a')
	    .css({ backgroundPosition: "10 0" })
	    .mouseover(function() {
	        $(this).stop().animate(
			    { backgroundPosition: "(0 0)" },
			    { duration: 500 })
	    })
	    .mouseout(function() {
	        $(this).stop().animate(
			    { backgroundPosition: "(10 0)" },
			    { duration: 500 })
	    })
	});
    
