
// Alpha Rollover

$(document).ready(function(){
    $("a:not(.sliderContent a)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});

$(document).ready(function(){
    $(".link-ph").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).find("img").fadeTo(80, 0);
        },
        function(){// mouse_out
            $(this).find("img").fadeTo(100, 1);
        }
    );
});


$(document).ready(function(){
    $("#index-qh li:not(#index-qh li.cs)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});


$(document).ready(function(){
    $("#index-interview ul li:not(#index-interview ul li.cs)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});


$(document).ready(function(){
    $("#index-column ul li:not(#index-column ul li.cs)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});

$(document).ready(function(){
    $("#interview-index ul li:not(#interview-index ul li.cs)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});

$(document).ready(function(){
    $("#qh-index ul li:not(#qh-index ul li.cs)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});

$(document).ready(function(){
    $("#column-index ul li:not(#column-index ul li.cs)").fadeTo(1,1)
    .hover( 
        function(){// mouse_over
            $(this).fadeTo(80, 0.5);
        },
        function(){// mouse_out
            $(this).fadeTo(100, 1);
        }
    );
});


// Smooth Scroll

$(document).ready(function(){
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var sclpos = 30;
				var scldurat = 1200;
				var targetOffset = target.offset().top - sclpos;
				$('html,body')
					.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		}
	});
});
