
 $(function() {
        $("ul.gameList li").dEllipsis({
            overflowElement:'a span.overflowElement',
            textElement:'a span.gameTitle',
            shortSteps: true,
            wrapInWidth: true
        });
        $('.gameList li.ttR').dTooltip({
            eventHandler:'a',
            displayDiv: 'tltright',
            content:'.tltcontent',
            track:true,
            position:'right',
            x: -216,
            y: 5,
            drawItemCallback: 'drawNeboxItem'
        });

        $('.gameList li.ttL').dTooltip({
            eventHandler:'a',
            displayDiv: 'tltleft',
            content:'.tltcontent',
            track:true,
            position:'left',
            x: 10,
            y: 5,
            drawItemCallback: 'drawNeboxItem'
        });
        $('.gameList li img').attr('alt','').attr('title','');
        $('.gameList li a').attr('alt','').attr('title','');
    });
    
    $(function() {
        $('.popularbox ul').dTooltip({
            drawItemCallback: 'drawPopularItem',
            y:-10,
            ellipsis:{
                     overflowElement:'span.tooltipOverflow',
                     textElement:'span.dtooltip',
                     shortSteps: true,
                     textEnd: '... )'
              }
        });
    });

    $(function() {
        $('.tipsbox ul').dTooltip({
            drawItemCallback: 'drawPopularItem',
            y:-10,
            ellipsis:{
                     overflowElement:'span.tooltipOverflow',
                     textElement:'span.dtooltip',
                     shortSteps: true,
                     textEnd: '... )'
              }
        });
    });

    $(function() {
        //Popular and tips
        $("ul.BoxList li").dEllipsis({
            overflowElement:'div.overflowElement',
            textElement:'div.overflowElement a',
            shortSteps: true
        });
    });

    $(function() {
        $('.virtualbox ul li').slice(2).dTooltip({
            eventHandler:'a',
            displayDiv: 'tltright',
            content:'.tltcontent',
            track:true,
            position:'right',
            x: -216,
            y: 5,
            drawItemCallback: 'drawVirtualItem'
        });

        $('.virtualbox ul li').slice(0,2).dTooltip({
            eventHandler:'a',
            displayDiv: 'tltleft',
            content:'.tltcontent',
            track:true,
            position:'left',
            x: 8,
            y: 5,
            drawItemCallback: 'drawVirtualItem'
        });
        $('.virtualbox ul li img').attr('alt','').attr('title','');
        $('.virtualbox ul li a').attr('alt','').attr('title','');
        $("div.virtualbox ul li").dEllipsis({
            overflowElement:'span.overflowElement',
            textElement:'a span.overflowElement span',
            shortSteps: true
        });
    });
