function handler_catalogue( guid )
{
    $('a.core_catalogue_link_' + guid).css
    ({
        color: '#808080'
    });

    jQuery.get
    (
        '/cgi-bin/catalogue/list' ,
        {
            status: guid
        }                         ,
        function( data )
        {
            core_catalogue_showcase_list(data, 'list');

        } ///;~
    );

} ///;~

function core_catalogue_showcase_list( data ,
                                       dvid )
{
    var size = $('item', data).size();
    var item = $('div.core_catalogue_showcase_' + dvid).find('div.core_catalogue_item:last');
    var head = $('div.core_catalogue_showcase_' + dvid).find('h3:last');

    if ( size == 0 )
    {
    }
    else
    {
    }

    $('div.core_catalogue_showcase_' + dvid).html(head);
    $('div.core_catalogue_showcase_' + dvid).append(item);
    $('item', data).each(function( position )
    {
        var guid      = $('guid'   , this).text();
        var noms      = $('noms'   , this).text();
        var thumbnail = $('image'  , this).text();
        var price     = $('price4' , this).text();
        var price     = Math.ceil(price) + ' руб';

        $('div.core_catalogue_showcase_' + dvid).find('div.core_catalogue_item:last')
                                                .find('div.core_catalogue_nomf')
                                                .text(noms);

        $('div.core_catalogue_showcase_' + dvid).find('div.core_catalogue_item:last')
                                                .find('div.core_catalogue_price')
                                                .find('div')
                                                .text(price);

        if ( thumbnail == ''
        ||   thumbnail == 'NULL' )
        {
            $('div.core_catalogue_showcase_' + dvid).find('div.core_catalogue_item:last')
                                                    .find('div.core_catalogue_thumbnail')
                                                    .find('img')
                                                    .attr
            ({
                src: '/libpixmap/thumbnail/catalogue/empty.png' ,
                title: noms                                     ,
                alt:   noms
            });
        }
        else
        {
            $('div.core_catalogue_showcase_' + dvid).find('div.core_catalogue_item:last')
                                                    .find('div.core_catalogue_thumbnail')
                                                    .find('img')
                                                    .attr
            ({
                src: '/libpixmap/catalogue/item/' + thumbnail ,
                title: noms                                   ,
                alt:   noms
            });
        }

        if ( (position + 1) != size )
        {
            $('div.core_catalogue_showcase_' + dvid).find('div.core_catalogue_item:last')
                                                    .clone()
                                                    .appendTo('div.core_catalogue_showcase_' + dvid);
        }
    });

    $('div.core_catalogue_showcase_' + dvid).show();

} ///;~
