It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
Untitled
var TimeToFade = 2500.0;
function fade(eid)
[
var element = document.get(eid);
if(element == null)
return;
if(element.FadeState == null)
[
if(element.style.opacity == null
|| element.style.opacity == ''
|| element.style.opacity == '1')
[
element.FadeState = 2;
]
else
[
element.FadeState = -2;
]
]
if(element.FadeState == 1 || element.FadeState == -1)
[
element.FadeState = element.FadeState == 1 ? -1 : 1;
element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
]
else
[
element.FadeState = element.FadeState == 2 ? -1 : 1;
element.FadeTimeLeft = TimeToFade;
setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
]
]
function animateFade(lastTick, eid)
[
var curTick = new Date().getTime();
var elapsedTicks = curTick - lastTick;
var element = document.get(eid);
if(element.FadeTimeLeft