$(function () {
    if ($.browser.msie && $.browser.version < 7) return;
    
    //Nav fading     
    $('#navigation li')
        .removeClass('highlight')
        .find('a span').each(function () {
        	$(this).addClass('hover').css('opacity', 0);
			$(this).hover(function () {
			    // on hover
			    $(this).stop().fadeTo(300, 1);
			}, function () {
			    // off hover
			    $(this).stop().fadeTo(500, 0);
			});
		});
		
	//Header Logo Move
	$('.logos')
		.find ('#bump')
		.each(function () {
			var myMargin = $(this).css("margin-top");
			var myMargNum = parseFloat(myMargin, 10); //removes 'px' from returned value
			
			$(this).hover(function () {
				//alert(myMargNum);
				//alert("Bump Me");
				$(this).filter(':not(:animated)').animate({
	 				marginTop: (myMargNum -= 10) +'px' 
				}, 200, "easeOutCubic")
			}, function () {
				$(this).animate({
					marginTop: (myMargNum += 10) +'px'
				}, 200, "easeOutBounce");
			});
		});
});