window.addEvent('load', function()	{
    var toolTips = new Tips($$('.toolTips'), {
            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);
        },
        className: 'toolTips'
    });

    var experienceTips = new Tips($$('.experienceTips'), {
        initialize:function(){
          this.fxC = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
        },
        onShow: function(toolTip) {
          this.fxC.start(1);
        },
        onHide: function(toolTip) {
          this.fxC.start(0);
        },
        className: 'experienceTips'
    });
    
    var categoryTips = new Tips($$('.categories a.categoryTips', '.categories a.selected'), {
            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);
        },
        className: 'categoryTips'
    });

    $$('.inputTips').each(function(e) {
        e.addEvent('focus', function(event)	{
            if (this.getAttribute('tips') == this.value)	{
                this.value = '' ;
            }
        }) ;

        e.addEvent('blur', function(event) {
            if (this.value == '')  {
                this.value = this.getAttribute('tips') ;
            }
        }) ;
    }) ;

    //new SmoothScroll() ;

});