javascript raphael object function passing
===

I apologize for asking this question but I am just looking for a little guidance on this morning. I simply want to create a function so that way I can make a Raphael element glow by just passing in that element. Below is the code I have. Why does this not work?

    var paper = Raphael("playarea", 500, 500);

    var rectangle = paper.rect(100, 100, 200, 200, 4);
    
    function elemHover(var el)
    {

        el.hover(
        // When the mouse comes over the object //
        // Stock the created "glow" object in myCircle.g
       function() {
        this.g = this.glow({
            color: "#0000EE",
             width: 10,
             opacity: 0.8
         });
        },
        // When the mouse goes away //
        // this.g was already created. Destroy it!
        function() {
         this.g.remove();
        });
    }

    elemHover(rectangle);