    var handleNLInput = null;
    var closeNL = null;
    $(document).ready(function()
            {
                var el = $('#newsletter');
                var el2 = $('#blinds');
                if (el && el2)
                {
                    el.offset( {
                                    left: ($(window).width() - el.outerWidth()) / 2,
                                    top: - el.outerHeight() - 100
                                    });
                    
                    el2.show();
                    el2.delay(1000).fadeTo('slow',0.5 );
                    el.delay(2000).animate ( { top: ($(window).height() - el.outerHeight()) /2}, 'slow' );
                }
                
                handleNLInput = function(el)
                {
                    if ($(el).hasClass('blank') )
                    {
                        $(el).removeClass('blank');
                        el.value = '';                        
                    }
                }
                
                closeNL = function()
                {
                    var el = $('#newsletter');
                    var el2 = $('#blinds');
                    el2.fadeTo('slow', 0, function() {$('#blinds').hide();});
                    el.delay(500).animate ( { top: -el.outerHeight()-100 }, 'slow' );
                    return false;
                }
                
                
                function addglowfx(el,el1,el2,op1,op2,subel,delay,heights)
                {
                    el.css('background','none');
                    var menuoff = $(el1);
                    var menuon = $(el2);
                    var timeout = null;                    
                    el.before(menuoff);
                    el.before(menuon);
                    menuoff.css('opacity',op2);
                    menuon.css('opacity',0);
                    
                    el.parent().mouseenter(function()
                                 {
                                    window.clearTimeout(timeout);
                                    var f = function()
                                    {
                                        if (heights)
                                            el.parent().animate({height:heights[0]},500);
                                        menuon.fadeTo(500,op1);
                                    //menuoff.fadeTo(500,0);
                                        if (subel) subel.show(500);
                                    };
                                    timeout = window.setTimeout(f,delay);
                                 });
                    el.parent().mouseleave(function()
                                 {
                                    window.clearTimeout(timeout);
                                    var f = function()
                                    {
                                        if (heights)
                                            el.parent().animate({height:heights[1]},500);
                                        //menuoff.fadeTo(500,op2);
                                        menuon.fadeTo(500,0);
                                        if (subel) subel.hide(500);
                                    };
                                    timeout = window.setTimeout(f,delay);
                                 });
                };
                
                $('ul#menu li a').each(function()
                         {
                            var el = $(this);
                            addglowfx(el,'<div class="menuitem"></div>','<div class="menuitem menuitemglow"></div>',1,1,null,0);
                         });
                $('li#icon1').css('background','none');
                $('li#icon2').css('background','none');
                $('li#tab1').css('background','none');
                $('li#tab2').css('background','none');
                var el;
                el = $('#icon1 div.iconcontent');
                if (el.length)
                addglowfx(el,'<div id="icon1noglow"><div></div></div>','<div id="icon1glow"><div></div></div>',1,1,$('ul#iconlist1'),200);
                el = $('#icon2 div.iconcontent');
                if (el.length);
                addglowfx(el,'<div id="icon2noglow"><div></div></div>','<div id="icon2glow"><div></div></div>',1,1,$('ul#iconlist2'),200);

                
                var div = $.browser.msie ? '' : '<div></div>';
                el = $('#tab1 div.iconcontent');
                if (el.length)
                addglowfx(el,'<div id="icon1noglow"></div>','<div id="icon1glow">'+div+'</div>',1,el.parent().hasClass('active')?1:0.6,$('ul#iconlist1'),200,[496,97]);
                el = $('#tab2 div.iconcontent');
                if (el.length)
                addglowfx(el,'<div id="icon2noglow"></div>','<div id="icon2glow">'+div+'</div>',1,el.parent().hasClass('active')?1:0.6,$('ul#iconlist2'),200,[496,97]);
            });

