+
+/*************************************************************************/
+#pragma mark -
+#pragma mark VANISH METHODS
+/*************************************************************************/
+
+- (void)performVanish
+{
+ __idle = NO;
+
+ [self setWindowVisibility:ITWindowVanishingState];
+ [self performVanishFromProgress:1.0 effectTime:_effectTime];
+}
+
+- (void)performVanishFromProgress:(float)progress effectTime:(float)time
+{
+ [_window setEffectProgress:progress];
+ _effectSpeed = (1.0 / (EFFECT_FPS * time));
+ if ( progress == 1.0 ) {
+ [_window setAlphaValue:1.0];
+ }
+
+ [_window orderFront:self];
+ _effectTimer = [NSTimer scheduledTimerWithTimeInterval:(1.0 / EFFECT_FPS)
+ target:self
+ selector:@selector(vanishStep)
+ userInfo:nil
+ repeats:YES];
+}
+
+- (void)vanishStep
+{
+ float interSlide = 1.0;
+ [_window setEffectProgress:([_window effectProgress] - _effectSpeed)];
+ [_window setEffectProgress:( ([_window effectProgress] > 0.0) ? [_window effectProgress] : 0.0)];
+ interSlide = (( sin(([_window effectProgress] * pi) - (pi / 2)) + 1 ) / 2);
+ [self setSlide:(interSlide * [_window frame].size.height)];
+ [_window setAlphaValue:interSlide];
+
+ if ( [_window effectProgress] <= 0.0 ) {
+ [self vanishFinish];
+ }
+}
+
+- (void)vanishFinish