 /* header */
$(function() {
                $(window).scroll(function(){
					var scrollTop = $(window).scrollTop();
					if(scrollTop != 0)
						$('#header').stop().animate({'opacity':'0.5'},400);
					else	
						$('#header').stop().animate({'opacity':'1'},0);
				});
				
				$('#header').hover(
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#header').stop().animate({'opacity':'1'},0);
						}
					},
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#header').stop().animate({'opacity':'0.5'},400);
						}
					}
				);
            });
			
$(function(){
	$("li.btn_content").mouseover(function(){
		$("this").css("color","#000");
	});
});
			
 /* scroll */			
$(function() {
			$('li.btn_content').click(function () {
				var i = $('li.btn_content').index(this)
				var p = $('.content').eq(i).offset().top;
			$('html,body').animate({ scrollTop: p }, "slow");
				return false;
			});
			$('.mj').click(function () {
			$('html,body').animate({ scrollTop: 0 }, "slow");
				return false;
				});
			});
			
/* mause over */
jQuery(function(){

        $('#flow h1').hover(
                function(){
                        $(this).fadeTo(0, 0.7).fadeTo('slow', 1);
                },
                function(){
                        $(this).fadeTo('fast', 1);
                }
        );

});	

jQuery(function(){

        $('img.fade').hover(
                function(){
                        $(this).fadeTo(0, 0.5).fadeTo('slow', 1);
                },
                function(){
                        $(this).fadeTo('fast', 1);
                }
        );

});				
/* schllol parallax */
$(document).ready(function() {
		$(window).scroll(function(){
		var y = $(this).scrollTop();
			$('#s2_top1').css('background-position', '50% ' + parseInt( y / 4 - 1820 ) + 'px');
		});
	});

$(document).ready(function() {
		$(window).scroll(function(){
		var y = $(this).scrollTop();
			$('#s3_top3').css('background-position', '50% ' + parseInt( y / 2 - 6500 ) + 'px');
			$('#s3_top2').css('background-position', '50% ' + parseInt( y / 3 - 4200 ) + 'px');
		});
	});
	
$(document).ready(function() {
		$(window).scroll(function(){
		var y = $(this).scrollTop();
			$('#s4_top').css('background-position', '50% ' + parseInt( -y / 2 + 8000 ) + 'px');
		});
	});
// JavaScript Document
