/*
 * jQuery.AlertOnImg
 *  от WebMast (evgen.pm@gmail.com)
 *  v10.05.14
 *  
 *  $(function(){
 *    $('Блок в котором используются картинки').AlertOnImg();
 *    или
 *    $('Блок в котором используются картинки').AlertOnImg({
 *      speed:200, // Скорость анимации появления всплывающего блока
 *      text:'text' // Текст, который выводится внтури всплывающего блока
 *    });
 *  });
 *
 *  Используются следующие елементы:
 *  - .outofimg   - блок в который оборачиваются картинки.
 *  - .alertonimg - блок всплывающей подсказки.
 */

jQuery.fn.AlertOnImg=function(options){var options=jQuery.extend({speed:200,text:'text'},options);return this.each(function(){jQuery(this).find('img').wrap('<div class="outofimg"></div>').parent().append('<div class="alertonimg">'+options.text+'</div>').hover(function(){$(this).find('.alertonimg').animate({opacity:'show'},options.speed);},function(){$(this).find('.alertonimg').animate({opacity:'hide'},options.speed);}).end();});};
