/*
* @file
* @brief    sigplus Image Gallery Plus image captions overlay engine with jQuery
* @author   Levente Hunyadi
* @version  1.2
* @remarks  Copyright (C) 2009-2010 Levente Hunyadi
* @remarks  Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
* @see      http://hunyadi.info.hu/projects/sigplus
*/
(function(a){a.fn.imageCaptions=function(){var c=a("ul",this);var b=a("li img",c);b.each(function(){var h=a(this);var f=h.attr("alt");if(!f){return}var d=a('<div class="imageSliderCaptionContainer"></div>');d.css({display:"none",width:h.width(),height:h.height(),position:"absolute",marginLeft:h.css("margin-left").toInt()+h.css("border-left-width").toInt()+h.css("padding-left").toInt(),marginRight:h.css("margin-right").toInt()+h.css("border-right-width").toInt()+h.css("padding-right").toInt(),marginTop:h.css("margin-top").toInt()+h.css("border-top-width").toInt()+h.css("padding-top").toInt(),marginBottom:h.css("margin-bottom").toInt()+h.css("border-bottom-width").toInt()+h.css("padding-bottom").toInt(),padding:0});var e=a('<div class="imageSliderCaption"></div>');e.text(f);d.append(e);h.before(d);var g=h.parent();g.mouseenter(function(){d.css("display","block")});g.mouseleave(function(){d.css("display","none")})})}})(jQuery);
