function MSN_WinShow(show)
        {
          if (MSN_Timer!=-1) { el.filters.blendTrans.stop(); }

          if ((MSN_TimerHide!=-1) && (show!=null))
          {
            clearInterval(MSN_TimerHide);
            MSN_TimerHide=setInterval(MSN_WinHideTimer,MSN_TimerHideAfter);
            return;
          }

          elCnt=document.getElementById('MSN_Content')
          elTit=document.getElementById('MSN_Header');
          el=document.getElementById('MSN');
          el.style.filter='';

          if (MSN_TimerId!=-1) clearInterval(MSN_TimerId); MSN_TimerId=-1;
          if (MSN_TimerHide!=-1) clearInterval(MSN_TimerHide); MSN_TimerHide=-1;

          document.getElementById('MSN_Header').style.display='none';
          document.getElementById('MSN_Content').style.display='none';

          document.getElementById('MSN_Title').innerHTML=MSN_Title;
          document.getElementById('MSN_Content').innerHTML=MSN_Content;

          MSN_ActualHeight=0; el.style.height=MSN_ActualHeight+'px';
          el.style.visibility='';
          if (!MSN_ResetTimer) el.style.display='';
          MSN_TimerId=setInterval(MSN_WinTimer,(MSN_ResetTimer?1000:20));
        }

        function MSN_WinLoad()
        {
          if (MSN_onLoadHandler!=null) MSN_onLoadHandler();
          
          elCnt=document.getElementById('MSN_Content')
          elTit=document.getElementById('MSN_Header');
          el=document.getElementById('MSN');
          
          MSN_TitleHeight=elTit.style.height.substr(0,elTit.style.height.length-2);
          MSN_Height=el.style.height;
          MSN_Height=MSN_Height.substr(0,MSN_Height.length-2); MSN_ActualHeight=0;
          MSN_TimerDelta=MSN_Height-(elCnt.style.height.substr(0,elCnt.style.height.length-2));
          
          if (true)
          {
            MSN_ResetTimer=true;
            MSN_WinShow(null);
          }
        }


        function MSN_WinTimer()
        {
          el=document.getElementById('MSN');
          if (MSN_ResetTimer)
          {
            el.style.display='';
            clearInterval(MSN_TimerId); MSN_ResetTimer=false;
            MSN_TimerId=setInterval(MSN_WinTimer,20);
          }
          MSN_ActualHeight+=5;
          if (MSN_ActualHeight>=MSN_Height)
          {
            MSN_ActualHeight=MSN_Height; clearInterval(MSN_TimerId); MSN_TimerId=-1;
            document.getElementById('MSN_Content').style.display='';
            if (MSN_TimerHideAfter!=-1) MSN_TimerHide=setInterval(MSN_WinHideTimer,MSN_TimerHideAfter);
          }
          if (MSN_TitleHeight<MSN_ActualHeight-6)
            document.getElementById('MSN_Header').style.display='';
          if ((MSN_ActualHeight-MSN_TimerDelta)>0)
          {
            elCnt=document.getElementById('MSN_Content')
            elCnt.style.display='';
            elCnt.style.height=(MSN_ActualHeight-MSN_TimerDelta)+'px';
          }
          el.style.height=MSN_ActualHeight+'px';
        }

        function MSN_WinHideTimer()
        {
          clearInterval(MSN_TimerHide); MSN_TimerHide=-1;
          el=document.getElementById('MSN');
          if (MSN_Gradient)
          {
          
            backCnt=document.getElementById('MSN_Content').innerHTML;
            backTit=document.getElementById('MSN_Header').innerHTML;
            document.getElementById('MSN_Content').innerHTML='';
            document.getElementById('MSN_Header').innerHTML='';
            el.style.filter='blendTrans(duration=1)';
            el.filters.blendTrans.apply();
            el.style.visibility='hidden';
            el.filters.blendTrans.play();
            document.getElementById('MSN_Content').innerHTML=backCnt;
            document.getElementById('MSN_Header').innerHTML=backTit;

            MSN_Timer=setInterval(MSN_WinStopTimer,1000);
          }
          else el.style.visibility='hidden';
        }

        function MSN_WinStopTimer()
        {
          clearInterval(MSN_Timer); MSN_Timer=-1;
        }

        function MSN_Close()
        {
          if (MSN_TimerId==-1)
          {
            el=document.getElementById('MSN');
            el.style.filter='';
            el.style.display='none';
            if (MSN_TimerHide!=-1) clearInterval(MSN_TimerHide); MSN_TimerHide=-1;

          }
        }