/*
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(document).ready(function() {
 jQuery(".msgok").slideDown('slow',function(){
		jQuery(this).animate({backgroundColor:'#008CFF', color:'#EFF8FF', borderLeftColor:'#000'}, 2000);
	},function() {
		jQuery(this).animate({backgroundColor:'#fff', color:'#444', borderLeftColor:'yellow'}, 2000);
	});
 jQuery('a[rel*=facebox]').facebox({
 	opacity : 1,
 	overlay : true
 });
  jQuery('a[href*=#].scroll').click(function() {

	    if (location.pathname.replace(/^\//,''
	    ) == this.pathname.replace(/^\//,''
	    )

	    && location.hostname == this.hostname) {

	      var $target = jQuery(this.hash);

	      $target = $target.length && $target 

	      || jQuery('[name=' + this.hash.slice(1) +']');

	      if ($target.length) {

	        var targetOffset = $target.offset().top;

	        jQuery('html,body')

	        .animate({scrollTop: targetOffset}, 1000);

	       return false;

	      }

	    }

	  });
 jQuery("h2.showadd").addClass("hideul");
 jQuery("h2.showadd").click(function(){
 	 var answer = jQuery('#archives');
        if (answer.is(":visible")) {
            answer.slideUp("fast");
            jQuery(this).removeClass("showul");
			jQuery(this).addClass("hideul");
        } else {
            answer.slideDown("slow");
            jQuery(this).removeClass("hideul");
			jQuery(this).addClass("showul");
        }
 	});
});