$(function(){
  $("a").bind("focus",function(){if(this.blur)this.blur();});
  $('#post_banner1 img,#rss img,#header_menu img,#footer_home img,#return_top img,#search_button,#side_home_button img,#side_map_button img').rollover();
  $(".side_contents ul li:last-child").addClass("last_list");
  $("#recent_post li:last-child").addClass("recent_last_list");
  $("#sitemap_list li:first-child").addClass("s_first");
  $("#sitemap_list li:last-child").addClass("s_last");
  $(".widget_contents li:last-child").addClass("w_last");


  $("#trackback_switch").click(function(){
    $("#comment_switch").removeClass("comment_switch_active");
    $(this).addClass("comment_switch_active");
    $("#comment_area").animate({opacity: 'hide'}, 0);
    $("#trackback_area").animate({opacity: 'show'}, 1000);
    return false;
  });

  $("#comment_switch").click(function(){
    $("#trackback_switch").removeClass("comment_switch_active");
    $(this).addClass("comment_switch_active");
    $("#trackback_area").animate({opacity: 'hide'}, 0);
    $("#comment_area").animate({opacity: 'show'}, 1000);
    return false;
  });
  $("#comment_area ol > li:even").addClass("even_comment");
  $("#comment_area ol > li:odd").addClass("odd_comment");
  $(".even_comment > .children > li").addClass("even_comment_children");
  $(".odd_comment > .children > li").addClass("odd_comment_children");
  $(".even_comment_children > .children > li").addClass("odd_comment_children");
  $(".odd_comment_children > .children > li").addClass("even_comment_children");
  $(".even_comment_children > .children > li").addClass("odd_comment_children");
  $(".odd_comment_children > .children > li").addClass("even_comment_children");

  $("#guest_info input,#comment_textarea textarea")
    .focus( function () { $(this).css({borderColor:"#33a8e5"}) } )
    .blur( function () { $(this).css({borderColor:"#ccc"}) } );

  $("blockquote").append('<div class="quote_bottom"></div>');
  $("pre").append('<div class="pre_bottom"></div>');

  $("a[href*='#']").easingScroll({ easing: "easeOutExpo", duration:1500 });

});
function changefc(color){
  document.getElementById("search_input").style.color=color;
};
