var DM_Widget_PageItem_SoltLists_Home_Playlists =
{
    rules:
    {
        'div.dmpi_slotlists_home_playlists div.preview_box' : function(element)
        {
            element.onclick = function()
            {
                document.location.href = element.down('a.preview_link').readAttribute('href');
            };
        },

        'div.dmpi_slotlists_home_playlists a.preview_link' : function(element)
        {
            element.onclick = function()
            {
                // we desactivate the link function to put the action on the div
                // because of the png filter the link ins not clickable on ie6
                return false;
            };
        }
    },

    initialize: function ()
    {
        Event.onDOMReady(
            function()
            {
                EventSelectors.start(DM_Widget_PageItem_SoltLists_Home_Playlists.rules);
            }
        );
    }
};
DM_Widget_PageItem_SoltLists_Home_Playlists.initialize();
