
 $(document).ready(function() {

	//When page loads...
	$("#zouz").fadeIn(1000); //Hide all content
$("#log").hide();
});

$(window).scroll(function(){  
    posScroll = $(document).scrollTop();  
    if(posScroll >=700)  
        $("#log").fadeIn(3000);
    else  
        $('#log').fadeOut(200); 
		 if(posScroll >=200)  
        $("#zouz").fadeOut(300);
    else  
        $('#zouz').fadeIn(2000);  
}); 


           $(function() {
                $(window).scroll(function(){
					var scrollTop = $(window).scrollTop();
					if(scrollTop != 0)
						$('#nav').stop().animate({'opacity':'0.8'},400);
					else	
						$('#nav').stop().animate({'opacity':'1'},400);
				});
				
				$('#nav').hover(
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#nav').stop().animate({'opacity':'1'},400);
						}
					},
					
					function (e) {
						var scrollTop = $(window).scrollTop();
						if(scrollTop != 0){
							$('#nav').stop().animate({'opacity':'0.8'},400);
						}
					}
				);
				
            });	
			
//animate page
function Animate2id(id2Animate){
	var animSpeed=2500; //animation speed
    var easeType="easeOutCubic"; //easing type
    if($.browser.webkit){ //webkit browsers do not support animate-html
        $("body").stop().animate({scrollTop: $(id2Animate).offset().top}, animSpeed, easeType);
    } else {
        $("html").stop().animate({scrollTop: $(id2Animate).offset().top}, animSpeed, easeType);
    }
}

/*
* Author:      Marco Kuiper (http://www.marcofolio.net/)
*/

$(function()
{
	// Hide all the tooltips
	$("#jquery li").each(function() {
		$("a strong", this).css("opacity", "0");
	});
	
	$("#jquery li").hover(function() { // Mouse over
		$(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 0.2);
			
		$("a strong", this)
			.stop()
			.animate({
				opacity: 0,
				top: "-22px"
			}, 300);
		
	}, function() { // Mouse out
		$(this)
			.stop().fadeTo(500, 1)
			.siblings().stop().fadeTo(500, 1);
			
		$("a strong", this)
			.stop()
			.animate({
				opacity: 0,
				top: "-10px"
			}, 300);
	});
	
});
