
main_init = function(mc){
 subs_done = true; mc.swapDepths(9);
 if (!out_effect) mc._alpha=0;
 for (i=0;i<3;i++){
  mc.duplicateMovieClip("bl"+i,8-i*2);
  mc.duplicateMovieClip("br"+i,7-i*2);
 }
}

// main_effect function

main_effect = function(mc,frame){
 perc = frame/lastsubframe; 
 if (!out_effect) perc = 1 - perc;

 mc._alpha = 100-Math.sin(deg90*perc)*100;
 mc._xscale = 100 + (max_xscale-100) * perc;

 for (i=0;i<3;i++){
  this["bl"+i]._x = -(i+1)/3*blur*perc;
  this["br"+i]._x =  (i+1)/3*blur*perc;
  this["bl"+i]._xscale = mc._xscale;
  this["br"+i]._xscale = mc._xscale;
  this["bl"+i]._alpha = mc._alpha * (3-i)/4;
  this["br"+i]._alpha = mc._alpha * (3-i)/4;
 }

 if (frame == lastsubframe){
  end_effect=true;
  for (i=0;i<3;i++){
   this["bl"+i].removeMovieClip();
   this["br"+i].removeMovieClip();
  }
 }
}

// sub_init function

sub_init = function(mc){
}

// sub_effect function

sub_effect = function(mc,frame){
}

