 $(document).ready(function()
            {
                $(".grid_item_hover").mouseenter(
                function (e) {

                    $('.grid_overlay', this).stop(true, false).hide();
                    e.stopPropagation();
                }).mouseleave(
                function (e) {

                    $('.grid_overlay', this).stop(true, false).show();
                    e.stopPropagation();

                });

                $(".grid_item_hover").click(function(e)
                {
                    var link = $(this).find('var').html();

                        if($(this).find('var').hasClass('_blank'))
                        {
                            window.open(link, '_blank'); 
                        }
                        else
                        {
                            window.location = link;        
                        }

                    e.preventDefault();
                });

                $(".grid_item_special_hover").mouseover(
                function (e) {

                    $('.grid_overlay', this).stop(true, false).hide();
                    e.stopPropagation();
                }).mouseout(
                function (e) {

                    $('.grid_overlay', this).stop(true, false).show();
                    e.stopPropagation();

                });
                
                $('.grid_content_text_single').each(function()
                {
                    var height_parent = $(this).parent('.grid_content').height();
                    
                    var height_me = $(this).height();
                    
                    var offset = $(this).offset();
                    if((height_parent - height_me)>0)
                    {
                        offset.top  = offset.top + ((height_parent - height_me)/2);
                        $(this).offset(offset);
                    }
                    
                });
                
            });
