jQuery.fn.thumbs = function()
{
 return this.wrap('<div class="thumb-img"><div class="thumb-inner">' + '</div><div>');
}

jQuery.fn.thumbsImg = function()
{
return this.each(
 function()
 {
 jQuery(this).css('position','absolute');
 jQuery(this).css('left', '-' + Math.round( parseInt( $(this).width() ) / 2 ) + 'px' );
 jQuery(this).css('top', '-' + Math.round( parseInt( $(this).height() ) / 2 ) + 'px' );
 jQuery(this).css('margin-left', '50%' );
 jQuery(this).css('margin-top', '50%' );
 }
 )
}

