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');
 
 if (jQuery(this).width() > 0) {
 	 //jQuery(this).css( 'left',( parseInt( jQuery(this).width() ) / 2 ) + 'px' );
 	 jQuery(this).css( 'left',( parseInt( (parseInt( 120-jQuery(this).width() ) ) / 2 ) ) + 'px' );
 } else {
   jQuery(this).css( 'left','-55px' );
 }
 
 if (jQuery(this).height() > 0) {
   //jQuery(this).css( 'top','-' + ( parseInt( jQuery(this).height() ) / 2 ) + 'px' );
   jQuery(this).css( 'top',( parseInt( (parseInt( 120-jQuery(this).height() ) ) / 2 ) ) + 'px' );
 } else {
   jQuery(this).css( 'top','-55px' );
 }
 
 /*jQuery(this).css('margin-left', '50%' );
 jQuery(this).css('margin-top', '50%' );*/
 }
 )
}
