$(function(){
	$('img.fade,a.fade img,.fade a img').hover(function() {
			$(this).stop().fadeTo(500,0.7);
	}, function() {
			$(this).stop().fadeTo(500,1);
	});
	$('#headerTab').hover(
		function(){
			$(this).stop().animate({top : "0px"},"swing");
		},
		function(){
			$(this).stop().animate({top : "-5px"},"swing");
		}
	);
	$('#footer>div.wrapInner>ul>li,#footer>div.wrapInner>ul>li>a').addClass('child');
	$('#splash').prependTo('#header').css('display','block');
	$('#iNav').prependTo('#header').css('display','block');
	$('#index .parent2 .lightBox').children().hover(function() {
			$(this).siblings().stop().fadeTo(500,0.3);
	}, function() {
			$(this).siblings().stop().fadeTo(500,1);
	});
	$('.breadcrumb li:not(:last-child)').append('&nbsp;&nbsp;&gt;&nbsp;&nbsp;');
	$('#gNav>li>a').addClass('gNavAnchor');
	$('#gNav a.gNavAnchor,.blend a').css('cursor','pointer').blend();
	$('#gNav>li').hover(function() {	//remove stop(true,true) if problem has occured.
			$(this).children('ul').stop(true,true).slideDown('normal','easeOutBounce');
	}, function() {
			$(this).children('ul').stop(true,true).slideUp('normal','easeInOutBack');
	});
	$('#sports div.container h2').next().css('display','none');
	$('#sports div.container h2')
		.css('cursor','pointer')
		.click(function(){
			$(this).next().slideToggle('slow');
		});
	$('#sports .parent23 ul').wrap('<div class="wrap"></div>');
	$('#font,#mark,#embroidery,#rubber,#faq').addClass('hasToggle');
	$('#faq #content h2').prepend('<span class="insertQ">Q.</span>');
	$('.hasToggle #content h2').next().css('display','none');
	$('.hasToggle #content h2')
		.css('cursor','pointer')
		.click(function(){
			$(this).next().slideToggle('slow');
		});
	$('#embroidery #content ul.clearfix li:nth-child(5n)').css({'margin-right':'0','padding-left':'2px'});
	$('#rubber #content ul.clearfix li:nth-child(5n)').css({'margin-right':'0','padding-left':'2px'});
	$('#links .noBanner').each(function(){
		$('dt',this).css('lineHeight',$('dd',this).height()+'px');
	});
	$('#sports .parent22 .child2 ul li img').each(function(){
		$(this).wrap('<a href="' + $(this).attr('src') + '"></a>');
	}).hover(function() {
			$(this).stop().fadeTo(500,0.7);
	}, function() {
			$(this).stop().fadeTo(500,1);
	});
});
$(window).load(function(){
    $('#jCarouselLite div.wrapInner div')
		.jCarouselLite({
        auto:3000,
        speed:1000,
        visible : 8,
        btnNext: ".next",
        btnPrev: ".prev"
    })
		.css('left','32px')
		.children('ul').children('li').children('a').children('img').hover(function() {
			$(this).stop().fadeTo(500,0.5);
			}, function() {
			$(this).stop().fadeTo(500,1);
		});
		$('#splash').jCarouselLite({
        auto:3000,
        speed:1000,
        visible : 1
    })
});
function ShowNowYear() {
   var now = new Date();
   var year = now.getFullYear();
   document.write(year);
}

