
function fade(hElement,bIn,iOpacity)
{iSpeed=3;if(typeof iOpacity=='undefined')
iOpacity=bIn?0:100;else
bIn?iOpacity+=iSpeed:iOpacity-=iSpeed;hElement.style.filter="alpha(opacity:"+iOpacity+")";hElement.style.KHTMLOpacity=iOpacity/100;;hElement.style.MozOpacity=iOpacity/100;hElement.style.opacity=iOpacity/100;if(bIn&&iOpacity<100||!bIn&&iOpacity>0)
window.setTimeout(function(){fade(hElement,bIn,iOpacity);},50);}
function init()
{var re=new RegExp('\\b'+'fade'+'\\b');var els=document.getElementsByTagName("body")[0].getElementsByTagName("*");for(var i=0,j=els.length;i<j;i++)
if(re.test(els[i].className))
fade(els[i],true);}