function fadeinit() { 
		$("li.hover a").css("opacity","0");
		$("li.hover a.selected").parent().stop().animate({backgroundPosition:"(0 0px)"}, {duration:0});
		$("li.hover a:not(.selected)").hover(
			function () {
				$(this).stop().animate({opacity: 1}, 'normal');},
			function () {
				$(this).stop().animate({opacity: 0}, 'normal');}
		)
		.parent().stop().animate({backgroundPosition:"(0 -47px)"}, {duration:0});
};

$(document).ready(function(){
	fadeinit();
	var Brz = navigator.userAgent.toUpperCase();
	if(Brz.indexOf("MAC") >= 0) {
		$("#contents").css("font-size","12px");
		$("#news_inner dd").css("padding-left","95px");
	}

	$(function() { 
		$("a.fadeimg img").css("opacity","1")
		.hover(
			function () {
				$(this).stop().animate({opacity: 0}, 'normal');},
			function () {
				$(this).stop().animate({opacity: 1}, 'normal');}
		);
	});
	$("div#comment_container a.colorbox").colorbox({opacity:0.7});
});


$(function(){
    $("li.hover a").click(function(){
		$(this).parent().stop().animate({backgroundPosition:"(0 0px)"}, {duration:0});
		fadeinit();
        return false;
    });
});
