function fade(element) {
    var op = 1;  // initial opacity
    var timer = setInterval(function () {
        if (op <= 0.1){
            clearInterval(timer);
            // element.style.display = 'none';
        }
        element.style.opacity = op;
        element.style.filter = 'alpha(opacity=' + op * 100 + ")";
        op -= op * 0.1;
    }, 20);
}
//fades out the element that is passed as an argument to the function

fades out the element that is passed as an argument to the function
fades out the element that is passed as an argument to the function
function fade(element) {
    var op = 1;  
    var timer = setInterval(function () {
        if (op <= 0.1){
            clearInterval(timer);
        }
        element.style.opacity = op;
        element.style.filter = 'alpha(opacity=' + op * 100 + ")";
        op -= op * 0.1;
    }, 20);
}
function fade ( element ) { var op = 1 ; var timer = setInterval ( function ( ) { if ( op <= 0.1 ) { clearInterval ( timer ) ; } element . style . opacity = op ; element . style . filter = 'alpha(opacity=' + op * 100 + ")" ; op -= op * 0.1 ; } , 20 ) ; }
fades out the element that is passed as an argument to the function
fades out the element that is passed as an argument to the function
// initial opacity
 // element.style.display = 'none';
