//page buttons animation
function animateBtnIni(srcEl){
    if(srcEl.className!='imageInput'){
        var animatedButton=srcEl.getElementsByTagName('img')[0];
    }else{
        var animatedButton=srcEl;
    }
    attachEventListener(srcEl, "mouseout", animateBtnOut, false);
    btnAnimation = new Animator({onComplete:function(){},transition: Animator.makeEaseOut(1),duration: 500});
	btnAnimation.addSubject(new NumericalStyleSubject(animatedButton, 'opacity', 1, 0));
	animateBtnOn();
}

function animateBtnOn(){
    btnAnimation.seekTo(1);
}

function animateBtnOut(){
    btnAnimation.seekTo(0);
}