$(document).ready(function(){
// Initialize

	
	$("#page").fadeIn(500);
	
	$('.post').css({"display" : "none" });
	$('.navigation').css({"display" : "none" });
	
	setTimeout(function(){ 
		$('.post').slideDown(1000);
		$('.navigation').fadeIn(500);
    }, 1000);
    
	$('#post-137').slideDown(1000);
	
	$('#post-253').slideDown(1000);
	
	$('#content').css({"display" : "none" }).fadeIn(500);
	
//authorlist
	$('.authors').css('paddingTop', '900px');

	$('.authors .Konst').css('position', 'absolute');
	$('.authors .Konst').css('left', '0px');
	$('.authors .Konst:gt(0)').find('p').css('display', 'none');
	$('.authors .Konst:eq(0)').css('top', '0px');
	$('.authors .Konst:eq(1)').css('top', '75px');
	$('.authors .Konst:eq(2)').css('top', '150px');
	$('.authors .Konst:eq(3)').css('top', '225px');
	$('.authors .Konst:eq(4)').css('top', '300px');
	$('.authors .Konst:eq(5)').css('top', '375px');
	
	$('.authors .Ord').css('position', 'absolute');
	$('.authors .Ord').css('left', '0px');
	$('.authors .Ord:gt(0)').find('p').css('display', 'none');
	$('.authors .Ord:eq(0)').css('top', '450px');
	$('.authors .Ord:eq(1)').css('top', '525px');
	$('.authors .Ord:eq(2)').css('top', '600px');

	$('.authors .Multimedia').css('position', 'absolute');
	$('.authors .Multimedia').css('left', '0px');
	$('.authors .Multimedia:gt(0)').find('p').css('display', 'none');
	$('.authors .Multimedia:eq(0)').css('top', '675px');
	$('.authors .Multimedia:eq(1)').css('top', '750px');
	$('.authors .Multimedia:eq(2)').css('top', '825px');
	$('.authors .Multimedia:eq(3)').css('top', '900px');
			
//header
	$("#headerimg").hover(function () {
     $(this).animate({
     	opacity: 0.75
     	}, 200 );
     $('.logo').animate({
     	opacity: 0.75
     	}, 200 );
    },
	function () {
     $(this).animate({
     	opacity: 1
     	}, 200 );
     $('.logo').animate({
     	opacity: 1
     	}, 200 );
    });
    
    $(".logo").hover(function () {
     $('#headerimg').animate({
     	opacity: 0.75
     	}, 200 );
     $('.logo').animate({
     	opacity: 0.75
     	}, 200 );
    },
	function () {
     $('#headerimg').animate({
     	opacity: 1
     	}, 200 );
     $('.logo').animate({
     	opacity: 1
     	}, 200 );
    });
    
  
	
//Post gul
//	$(".post").hover(function () {
//     $(this).animate({
//     	backgroundColor: "#ffc000"
//     	}, 200 );
//     $(this).find("h2").animate({
//     	backgroundColor: "#ffffff"
//     	}, 200 );
//    },
//	function () {
//     $(this).animate({
//     	backgroundColor: "#ffffff"
//     	}, 200 );
//     $(this).find("h2").animate({
//     	backgroundColor: "#ffc000"
//     	}, 200 );
//    });
//    
	
//sidebar
	$(".widget_authors").find("li").hover(function () {
     $(this).animate({
     	backgroundColor: "#fdf796"
     	}, 200 );
    },
	function () {
     $(this).animate({
     	backgroundColor: "#ffffff"
     	}, 200 );
    });
    
    
    $(".widget_pages").find("li").hover(function () {
     $(this).animate({
     	backgroundColor: "#fdf796"
     	}, 200 );
    },
	function () {
     $(this).animate({
     	backgroundColor: "#ffffff"
     	}, 200 );
    });

	
//nextprev
//	$(".navigation").find("a").hover(function () {
//     $(this).animate({
//     	backgroundColor: "#fdf796"
//     	}, 200 );
//    },
//	function () {
//     $(this).animate({
//     	backgroundColor: "#eee"
//     	}, 200 );
//    });
    
//Show Comments
    $("#respond").find("h3").click(function(event){
   	 $("#commentform").fadeIn(750);
    });
	
	$("#respond").find("h3").hover(function () {
     $(this).animate({
     	backgroundColor: "#fdf796"
     	}, 200 );
    },
	function () {
     $(this).animate({
     	backgroundColor: "#ffffff"
     	}, 200 );
    });

 });