function animateMainImg(t1offset) {
  
  t1a = 180 + t1offset;
  t1b = 80 + t1offset;
  l1a = -400;
  l1b = -500;

  t2a = 250;
  t2b = 350;
  l2a = 200;
  l2b = 300;
  
  jQuery("#animtext1").css({ opacity: 0, top: t1a, left: l1a, bottom: 'auto', right: 'auto' });  
  jQuery("#animtext2").css({ opacity: 0, top: t2a, left: l2a, bottom: 'auto', right: 'auto' });
    
  jQuery("#main-img")
    .css({ opacity: 0, marginTop: 20 })
    .load(function(){
      jQuery(this).animate({ opacity: 1, marginTop: 30 }, 1000);
      jQuery("#animtext1").animate({ opacity: .8, top: t1b, left: l1b }, 1000);
      jQuery("#animtext2").animate({ opacity: .8, top: t2b, left: l2b }, 1000);
    });
}