


  //s Cufon.replace('#menu-left li a, .oneNews p, .products h2, .cufon, .list-1 li a', {fontFamily: 'Arial Narrow', hover: false});

    /* jQuery
    ``````````````````````````````````````````````````````````````````````````` */

        $(document).ready(function() {

            $("#menu-top li").hover( makeTall, makeShort);
            var config = {
                 over: makeTall2, // function = onMouseOver callback (REQUIRED)
                 timeout: 500, // number = milliseconds delay before onMouseOut
                 out: makeShort, // function = onMouseOut callback (REQUIRED),
                 interval: 300
            };

            //$("#menu-left li").hover( makeTall2, makeShort);
            //$("#menu-left li ul li").hover( makeTall, makeShort);

            $("#menu-left li").hoverIntent( config );

/*
            widthAll = $(window).width();
  
            if(widthAll > 1250)
            {
                w = widthAll - 535;
                $('#wrapper').css({
                    'width': w + 'px'
                });
            }
            $(window).resize(function() {
                widthAll = $(window).width();
                if(widthAll > 1250)
                {
                    w = widthAll - 535;
                    $('#wrapper').css({
                        'width': w + 'px'
                    });
                }
                else
                    {
                    $('#wrapper').css({
                        'width': '730px'
                    });
                    }
            });
*/

        });

        function makeTall2() {
            $(this).addClass('parent');
            $('div',this).eq(0).css('display', 'block');

                $(this).mouseover(function(e)
                {
                    //alert(e.pageY);
                    hei = $('div', this).eq(0).height();
                    windowt = $(window).height();

                    scroll = $('body').scrollTop();

                    if(scroll > 0) {
                        pos = e.pageY - scroll;
                    } else {
                        pos = e.pageY;
                    }

                    h = windowt - pos;
                    hr = pos + hei;

                    pr = $('div', this).eq(0).position();
                    //alert(pr.top);

                    if(hr >= windowt) {
                      // if(hei < windowt) {
                        minus = hei - h;
                       // alert(minus);
                        $('div', this).eq(0).css('top', '-'+minus+'px');
                        $('div ul', this).eq(0).css('top', '-'+minus+'px');
                       // }
                       //alert('ss');
                    }

                });

        }
        function makeTall() {
            $(this).addClass('parent');
            $('div',this).eq(0).css('display', 'block');
        }
        function makeShort(){
            $(this).removeClass('parent');
            $('div',this).eq(0).css('display', 'none');
        }

        function mouse(t) {
            $(t).mousemove(function(e) {
                   return e.pageY;
                });
        }
