jQuery.noConflict();
jQuery(document).ready(function($){




if ($("div").hasClass("asmiletext")) {



     $.fn.wait = function(time, type) {
        time = time || 1000;
        type = type || "fx";
        return this.queue(type, function() {
            var self = this;
            setTimeout(function() {
                $(self).dequeue();
            }, time);
        });
    };

    function runAnim() {
       $(".animtxt").wait()
       .fadeOut(2000, function () {
          $(".animimg").fadeIn(2000);

       $(".animimg").wait()
       .fadeOut(2000, function () {
          $(".asmiletext").fadeIn(1000);
        });
         });
      return false;

    }


    runAnim();

     }





  });
