$(function(){
	$('body :first-child').addClass('firstChild');
	$('body :last-child').addClass('lastChild');
	$('body :empty').addClass('empty');
	$('body :only-child').removeClass('firstChild');
	$('body :only-child').removeClass('lastChild');
	$('body :only-child').addClass('onlyChild');
	$('a img').hover(function(){
		$(this).attr('src', $(this).attr('src').replace('_ro', '_ro_f2'));
			}, function(){
				 if (!$(this).hasClass('currentPage')) {
				 $(this).attr('src', $(this).attr('src').replace('_ro_f2', '_ro'));
		}
	});
	$('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'},'normal','easeOutBounce');
		},
		function(){
			$(this).stop().animate({top : '-13px'},'normal','swing');
		}
	);
	$('#gNav li').append('<div class="tab"></div>');
	$('#gNav a').css('cursor','pointer').blend().mouseover(function() {
    	$(this).siblings('div.tab').stop(true,true).animate({top : '5px'},'fast','linear').animate({top : '0px'},'normal','easeOutBounce');
		});
	$('#index .parent4 a').css('cursor','pointer').blend();
	$('#pagetop a').hover(
		function(){
			$(this).stop().animate({top : '40px'},'normal','swing');
		},
		function(){
			$(this).stop().animate({top : '45px'},'normal','easeOutBounce');
		}
	);
	$('#breadcrumb li a').after('  >  ');
	$('#index .parent6 a img').hover(
		function(){
			$(this).stop().animate({marginLeft : '0px'},'fast','swing');
		},
		function(){
			$(this).stop().animate({marginLeft : '5px'},'fast','easeOutBounce');
		}
	);
});
