// Grand River Glass 2011
$(document).ready(function() {	

	$("#back2Top").hide();
	
	$(function () {
		$(window).scroll(function () {
			if ($(this).scrollTop() > 100) {
				$('#back2Top').fadeIn();
			} else {
				$('#back2Top').fadeOut();
			}
		});
		$('#back2Top').click(function () {
			$('body,html').animate({
				scrollTop: 0
			}, 800);
			return false;
		});
	});
	
if (($.browser.msie) && (parseInt($.browser.version, 10) <= 7)) {
               
            }
	
else {

$('nav ul li').hover( function(){
	$(this).find('.megaMenu').toggle();
	$(this).find('.menuBlueArrow').toggle();
	$(this).addClass('hovering');
}, function(){
	$(this).find('.megaMenu').toggle();
	$(this).find('.menuBlueArrow').toggle();
	$(this).removeClass('hovering');
});
}

$('.smallQuestionSearch').live('focus', function() {
 $(this).css('background-image','none');
});

/*$('.smallMainAnswer').hide();
$('.smallMainQuestion').mouseenter( function() {
	$(this).parent().find('.smallMainAnswer').delay('600').slideDown('1000').css('display', 'block');
});
$('.smallQuestions').mouseleave( function() {
	$(this).find('.smallMainAnswer').delay('600').slideUp('1000').css('display', 'none');
});*/
});

