$("document").ready(function() {
	$("#addComment a").hide();
        $("#addComment").click(function() {
			$("#addComment a").show();
			$(this).animate({
                            backgroundColor: "#5a9abe",
                            width: "350px",
                            height: "450px"
                            }, 'fast');
		});
	$("#addComment a").click(function(){
			$("#addComment a").hide().removeAttr("href");
			$("#addComment").animate({
                            backgroundColor: "#95c5de",
                            width: "187px",
                            height: "30px"
                            }, 'fast');
			return false;
		});
	
        $(".content ol.timeline li:even").css("background", "#95c5de");
        $(".content ol.timeline li:even").css("border-bottom", "1px solid #999");
        
        $(".comment_button").click(function(){
		    var element = $(this);
			var I = element.attr("id");
			$("#slidepanel"+I).css("background", "#5a9abe");
			            
            var aText = $(this).text();
            if(aText == 'Odgovori'){
                $(this).text("Odustani");
                $(this).css("background", "#95c5de");
                $(this).css("color", "#222");
				$("#slidepanel"+I).slideToggle('fast').animate({height: "260px"}, 'normal');
            } else {
                $(this).text("Odgovori");
                $(this).css("background", "#5a9abe");
                $(this).css("color", "#fff");
				$("#slidepanel"+I).slideToggle('fast').animate({}, 'normal');
            }
	
	return false;});
});
