window.addEvent('domready', function(){


<!--smoth scroll-->
new SmoothScroll({duration: 1000});	
<!--end sm scroll-->

   var youjoomlaTip = new Tips($$('.youjoomla2'), {
      className: 'youjoomla2', //this is the prefix for the CSS class
      initialize:function(){
         this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
      },
      onShow: function(toolTip) {
         this.fx.start(1);
      },
      onHide: function(toolTip) {
         this.fx.start(0);
      }
   });
		

});

<!-- show -->
      var show_hide_flag;
      show_hide_flag=false;

      function Hide_Fade(content)
      {
          var fade = new Fx.Style($(content),'opacity',{duration: 600});
          fade.start(1,0.01);
      }

      function Show_Fade(content)
      {
          var fade = new Fx.Style($(content),'opacity',{duration: 600});
          fade.start(0.01,1);
      }

      function ShowHide(content)
      {
        if (show_hide_flag)
        {
          Hide_Fade(content);
        }else
        {
          Show_Fade(content);
        }
        show_hide_flag=!show_hide_flag;
      }



