(function ()
{
    YAHOO.util.Event.onContentReady( 'popular', function()
        {
            /** highlight function **/
            var fnHighlight = function(e, o)
            {
                if(o.sEvent === "mouseover")
                    document.body.style.cursor = 'pointer';
                else if( o.sEvent === "mouseout")
                    document.body.style.cursor = 'default';
                    
                switch(this.id)
                {
                    case 'bromfiets':
                        switch(o.sEvent)
                        {
                            case 'mouseover':
                                this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_bromfiets_hover.gif')";
                            break;
                            case 'mouseout':
                              this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_bromfiets.gif')";
                            break;
                            case 'click':
                                location.href = "/bromfietsverzekering/";
                            break;
                        }
                    break;
                
                    case 'uitvaart':
                        switch(o.sEvent)
                        {
                            case 'mouseover':
                                this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_uitvaart_hover.gif')";
                            break;
                            case 'mouseout':
                              this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_uitvaart.gif')";
                            break;
                            case 'click':
                                location.href = "/uitvaartverzekering/";
                            break;
                        }
                    break;
                
                    case 'auto':
                        switch(o.sEvent)
                        {
                            case 'mouseover':
                                this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_auto_hover.gif')";
                            break;
                            case 'mouseout':
                              this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_auto.gif')";
                            break;
                            case 'click':
                                location.href = "/autoverzekering/";
                            break;
                        }
                    break;
                
                    case 'inboedel':
                        switch(o.sEvent)
                        {
                            case 'mouseover':
                                this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_inboedel_hover.gif')";
                            break;
                            case 'mouseout':
                              this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_inboedel.gif')";
                            break;
                            case 'click':
                                location.href = "/inboedelverzekering/";
                            break;
                        }
                    break;
                
                    case 'rechtsbijstand':
                        switch(o.sEvent)
                        {
                            case 'mouseover':
                                this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_rechtsbijstand_hover.gif')";
                            break;
                            case 'mouseout':
                              this.style.backgroundImage = "url('/sites/geencentteveel/images/popular_rechtsbijstand.gif')";
                            break;
                            case 'click':
                                location.href = "/uitvaartverzekering/";
                            break;
                        }
                    break;
                            
                }
            }
            
            YAHOO.util.Event.addListener(['bromfiets', 'uitvaart', 'auto', 'inboedel', 'rechtsbijstand'], "mouseover", fnHighlight, {sEvent:"mouseover"} );
            YAHOO.util.Event.addListener(['bromfiets', 'uitvaart', 'auto', 'inboedel', 'rechtsbijstand'], "mouseout", fnHighlight, {sEvent:"mouseout"} );
            YAHOO.util.Event.addListener(['bromfiets', 'uitvaart', 'auto', 'inboedel', 'rechtsbijstand'], "click", fnHighlight, {sEvent:"click"} );
        
        }
    );
        
})();