// new artlook js file with additional functions
addDOMLoadEvent(imageNameHover);

function imageNameHover()
{
    var x = $$('.gallery_thumb_container');

    for(var i=0; i < x.length; i++)
    {
        if($(x[i]).down("p")) {
            $(x[i]).down("p").hide();
            Event.observe($(x[i]).down("img"), 'mouseover', function(e)     {
                this.up("div").next("p").show();
            }, false);
            Event.observe($(x[i]).down("img"), 'mouseout', function(e)     {
                this.up("div").next("p").hide();
            }, false);
        }
    }
}
