var myrules = {
    '#btnSearch' : function(element){
        element.onmouseover = function(){
            this.style.background='url(fileadmin/templates/pics/btn_search_over.gif)';
        }
        element.onmousedown = function(){
            this.style.backgroundImage='url(fileadmin/templates/pics/btn_search_click.gif)';
        }
        element.onmouseup = function(){
            this.style.background='url(fileadmin/templates/pics/btn_search_over.gif)';
        }
        element.onmouseout = function(){
            this.style.background='url(fileadmin/templates/pics/btn_search.gif)';
        }
    },
    'input.button' : function(element){
        element.onmouseover = function(){
            setBtnImg(this,'over');
        }
        element.onmousedown = function(){
            setBtnImg(this,'click');
        }
        element.onmouseup = function(){
            setBtnImg(this,'over');
        }
        element.onmouseout = function(){
            setBtnImg(this,'');
        }
    },
    '#btnSend' : function(element){
        element.onclick = function(){
            sendingData();
        }
    },
    'a.btnDemo' : function(element){
        element.onmouseover = function(){
            setBtnImg(this,'over');
        }
        element.onmousedown = function(){
            setBtnImg(this,'click');
        }
        element.onmouseup = function(){
            setBtnImg(this,'over');
        }
        element.onmouseout = function(){
            setBtnImg(this,'');
        }
    }
};

Behaviour.register(myrules);

