// JavaScript Document
$(document).ready(function(){
		$('.company a')
			.css({backgroundPosition:"0px 0px"})
		 	.mouseover(function(){
				$(this).css({backgroundImage:"url('../common/img/gnav.gif')"});
				$(this).css({backgroundRepeat:"no-repeat"});
				$(this).css({backgroundPosition:"-2px -52px"});
		 		$(this).stop().animate({backgroundPosition:"(-2px -47px)"}, {duration:200});
		 	})
			.mouseout(function(){
		 		$(this).stop().animate(
					{backgroundPosition:"(-2px -52px)"},
					{duration:200,
					complete:function(){
						$(this).css({backgroundPosition:"-2px 0px"});
					}}
				)
			})
		$('.service a')
			.css({backgroundPosition:"0px 0px"})
		 	.mouseover(function(){
				$(this).css({backgroundImage:"url('../common/img/gnav.gif')"});
				$(this).css({backgroundRepeat:"no-repeat"});
				$(this).css({backgroundPosition:"-167px -52px"});
		 		$(this).stop().animate({backgroundPosition:"(-167px -47px)"}, {duration:200});
		 	})
			.mouseout(function(){
		 		$(this).stop().animate(
					{backgroundPosition:"(-167px -52px)"},
					{duration:200,
					complete:function(){
						$(this).css({backgroundPosition:"-167px 0px"});
					}}
				)
			})
		$('.env a')
			.css({backgroundPosition:"0px 0px"})
		 	.mouseover(function(){
				$(this).css({backgroundImage:"url('../common/img/gnav.gif')"});
				$(this).css({backgroundRepeat:"no-repeat"});
				$(this).css({backgroundPosition:"-335px -52px"});
		 		$(this).stop().animate({backgroundPosition:"(-335px -47px)"}, {duration:200});
		 	})
			.mouseout(function(){
		 		$(this).stop().animate(
					{backgroundPosition:"(-335px -52px)"},
					{duration:200,
					complete:function(){
						$(this).css({backgroundPosition:"-335px 0px"});
					}}
				)
			})
		$('.recruit a')
			.css({backgroundPosition:"0px 0px"})
		 	.mouseover(function(){
				$(this).css({backgroundImage:"url('../common/img/gnav.gif')"});
				$(this).css({backgroundRepeat:"no-repeat"});
				$(this).css({backgroundPosition:"-503px -52px"});
		 		$(this).stop().animate({backgroundPosition:"(-503px -47px)"}, {duration:200});
		 	})
			.mouseout(function(){
		 		$(this).stop().animate(
					{backgroundPosition:"(-503px -52px)"},
					{duration:200,
					complete:function(){
						$(this).css({backgroundPosition:"-503px 0px"});
					}}
				)
			})
		$('.contact a')
			.css({backgroundPosition:"0px 0px"})
		 	.mouseover(function(){
				$(this).css({backgroundImage:"url('../common/img/gnav.gif')"});
				$(this).css({backgroundRepeat:"no-repeat"});
				$(this).css({backgroundPosition:"-669px -52px"});
		 		$(this).stop().animate({backgroundPosition:"(-669px -47px)"}, {duration:200});
		 	})
			.mouseout(function(){
		 		$(this).stop().animate(
					{backgroundPosition:"(-669px -52px)"},
					{duration:200,
					complete:function(){
						$(this).css({backgroundPosition:"-669px 0px"});
					}}
				)
			})
		$('.gototop').click(function () {
            $(this).blur();

            $('html,body').animate({ scrollTop: 0 }, 'slow');

            return false;
        });

	});
