/*
This sheet of Javascript effect is to write by clashdesign and cannot be sold.
Read our conditions of use with a creative licence commons
*/
jQuery.noConflict();
//The 1st line is most important, 
//if you do not hold with step to have conflict between Jquery and of another library to remove it not.
jQuery.fn.resizehandle = function() {
  return this.each(function() {
    var me = jQuery(this);
    me.after(
      jQuery('<div class="resizehandle"></div>')
      .bind('mousedown', function(e) {
        var h = me.height();
        var y = e.clientY;
        var moveHandler = function(e) {
          me
          .height(Math.max(20, e.clientY + h - y));
        };
        var upHandler = function(e) {
          jQuery('html')
          .unbind('mousemove',moveHandler)
          .unbind('mouseup',upHandler);
        };
        jQuery('html')
        .bind('mousemove', moveHandler)
        .bind('mouseup', upHandler);
      })
    );
  });
}
jQuery(document).ready(function() {
		jQuery("#sidebar").slideDown(600)
		.find("h3").hide().end().find("h2").click(function(){
		var answer = jQuery(this).next();
			if (answer.is(':visible')){
			answer.toggle(400);//animate({opacity: 'toggle'}, 600, "easein");
				}else{answer.animate({opacity: 'show'}, 600);
			}
		});
jQuery("#sidebar ul,#content .post,#content .content-inner ul, body.dc-archive-month .content-inner, body.dc-tags ul.tags").curvy("10px");
jQuery("textarea").resizehandle();
	});