$(document).ready(function(){

		$("body.dc-home").animate( { backgroundColor:'#2a2a2a' }, 1000)
                         .animate( { backgroundColor:'#1f1f1f' }, 1000);




		$("#content-info h2").animate( { color:'#38BEF8' }, 1000)
                                  .animate( { color:'#CCC' }, 1000);

		$(".message").animate( { backgroundColor:'black',color:'#FFFFFF'  }, 4000)
                             .animate( { backgroundColor:'#7EDF7D',color:'#000'}, 2000)
                             .fadeOut("10000")
;

		$(".error").animate( { backgroundColor:'black',color:'#FFFFFF' }, 3000)
                           .animate( { backgroundColor:'red',color:'#000' }, 3000);

		$("body.dc-home #prelude").animate( { backgroundColor:'#DDD' }, 1000)
                           .animate( { backgroundColor:'#555' }, 3000);

		$("#sidebar ul").hide();
// 		$("#search h2").hide();
		$("#sidebar h2").click(function(){
			var target = $(this).next('#sidebar ul')
			$("#sidebar ul:visible").not(target).slideUp();
			target.slideToggle();
			$("#footer").blur();
     		});
		$("#search form").show();
 		$("#search input").show();
		$("#search p").prepend("<span title=\"Recherche\"></span>");
		$("#search span").mouseover(function () {
			$(this).css("cursor","pointer")
			            .animate( { color:'#CCFF37' }, 1500)
                 }).mouseout(function () {
			$(this).css("cursor","pointer")
			            .animate( { color:'#DDD' }, 1500)
                 });
		$("#search span").toggle(function(){
			$("#search input").fadeIn("8000");
     		},function(){
			$("#search input").fadeOut("8000");
                 });


		$("#sidebar h2").mouseover(function () {
			$(this).css("cursor","pointer")
                                  .animate( { color:'#CCFF37' }, 1500)})
                                                .mouseout(function () {
			$(this).animate( { color:'#444'}, 1500);
		});

		$("#search h2").click(function () {

		});

		$("#main div.post-follow:not(:first)").hide();
		$("body.dc-post #main div.post-follow").fadeIn("15000");
		$("#main h2.post-title").click(function(){
			var target = $(this).next('#main div.post-follow')
			$("#main div.post-follow:visible").not(target).slideUp();
			target.slideToggle();
		});
		$("#main h2.post-title").mouseover(function () {
			$(this).css("cursor","pointer")
                                    .animate( { color:'#008dd6' }, 500);
		}).mouseout(function () {
			$(this).css("cursor","pointer")
                                    .animate( {color:'#FFFFFF' }, 500);
		});




		$("#comments h3").click(function(){
			var target = $(this).next('#comments dl')
			$("#comments dl:visible").not(target).slideUp();
			target.slideToggle();
		});

		$("#comments h3").mouseover(function () {
			$(this).css("cursor","pointer")
                                    .animate( { color:'#008dd6' }, 500);
		})
                                                .mouseout(function () {
			$(this).css("cursor","pointer")
                                    .animate( { color:'#ccff42 '}, 500);
		});

;



		$("#top h1 a").mouseover(function () {
			$(this).css("cursor","pointer")
                                    .animate( { color:'#008dd6' }, 1000);
		})
                                  .mouseout(function () {
                                   $(this).css("cursor","pointer")
                                    .animate( { color:'#ccff42 '}, 1000);
		});

		$("#sidebar a").mouseover(function () {
			$(this).css("cursor","pointer")
                                    .animate( { color:'#fff'}, 500)
		})
                                                .mouseout(function () {
                                   $(this).css("cursor","pointer")
                                    .animate( { color:'#008dd6' }, 500);
		});

		$("body.dc-archive #content ul:not(:first)").hide();

		$("body.dc-archive #content h3").click(function(){
			var target = $(this).next('#content ul')
			$("#content ul").not(target).slideUp();
			target.slideToggle()
		});


		$("body.dc-archive #content h3").mouseover(function () {
			$(this).css("cursor","pointer")
                                    .animate( { color:'#008dd6' }, 1000);
		})
                                  .mouseout(function () {
                                   $(this).css("cursor","pointer")
                                    .animate( { color:'#ccff42 '}, 1000);
		});

	});
