        var x = 1
        var y = 1
		
		var op
		var arr_msn= new Array()
		arr_msn[0]= new Array("http://www.genesisdiscos.com.ar/images/RicardoArjona-Adentro.jpg","http://www.listatube.com/video/p4fpH06mcAU/ricardo+arjona+pinguinos+en+la+cama+video/","Pinguinos en la Cama<br />RICARDO ARJONA")
		//arr_msn[0]= new Array("http://img.youtube.com/vi/WR1ZO7PY0bE/2.jpg","http://www.listatube.com/video/WR1ZO7PY0bE/soda+stereo/","M&uacute;sica Ligera - Soda Stereo")
		
		function __init(){									
			clearInterval(popupWinHidden);
			op=parseInt(Math.random()*arr_msn.length)			
			
			startClock();			
		}
		function rand(){	
			//fondo="url("+ arr_msn[op][0] +") no-repeat"
			var ob=document.getElementById('vidimg')
			var oblnk1=document.getElementById('link1')
			var obtitulo=document.getElementById('titulo')
			
			
			if(ob)ob.src=arr_msn[op][0]
			if(oblnk1)oblnk1.href=arr_msn[op][1]						
			if(obtitulo)obtitulo.innerHTML=arr_msn[op][2]
			
		}
		function popupWindHidden(){
			document.getElementById('popupWin').style.display='none';
			clearInterval(popupWinHidden);
			
			popupWinHidden=setInterval(__init,960000);//
		}
        function startClock(){
				
				x = x-y				
				popupWintime=setTimeout("startClock()", 100) //1000
				if(x==0) {					
					document.getElementById('sonido').src="http://www.linkinicio.com/images/msn.wav"
					clearTimeout(popupWintime);
					x=1;y=1;
					popupWinespopup_winLoad();
				}

        }
		
		var popupWinHidden,popupWintime
        var popupWinoldonloadHndlr=window.onload, popupWinpopupHgt, popupWinactualHgt, popupWintmrId=-1, popupWinresetTimer;
        var popupWintitHgt, popupWincntDelta, popupWintmrHide=-1, popupWinhideAfter=-1, popupWinhideAlpha, popupWinhasFilters=true;
        var popupWinnWin, popupWinshowBy=null, popupWindxTimer=-1, popupWinpopupBottom;

        var popupWinnText,popupWinnMsg,popupWinnTitle,popupWinbChangeTexts=false;

        //window.onload=__init();

        function popupWinespopup_ShowPopup(show)
        {
          if (popupWindxTimer!=-1) { el.filters.blendTrans.stop(); }

          if ((popupWintmrHide!=-1) && ((show!=null) && (show==popupWinshowBy)))
          {
            clearInterval(popupWintmrHide);
            popupWintmrHide=setInterval(popupWinespopup_tmrHideTimer,popupWinhideAfter);
            return;
          }
          if (popupWintmrId!=-1) return;
          popupWinshowBy=show;

          elCnt=document.getElementById('popupWin_content')
          elTit=document.getElementById('popupWin_header');
          el=document.getElementById('popupWin');
          el.style.left='';
          el.style.top='';
          el.style.filter='';

          if (popupWintmrHide!=-1) clearInterval(popupWintmrHide); popupWintmrHide=-1;

          document.getElementById('popupWin_header').style.display='none';
          document.getElementById('popupWin_content').style.display='none';

          if (navigator.userAgent.indexOf('Opera')!=-1)
            el.style.bottom=(document.body.scrollHeight*1-document.body.scrollTop*1
                            -document.body.offsetHeight*1+1*popupWinpopupBottom)+'px';

          if (popupWinbChangeTexts)
          {
            popupWinbChangeTexts=false;
            document.getElementById('popupWinaCnt').innerHTML=popupWinnMsg;
            document.getElementById('popupWintitleEl').innerHTML=popupWinnTitle;
          }

          popupWinactualHgt=0; el.style.height=popupWinactualHgt+'px';
          el.style.visibility='';
          if (!popupWinresetTimer) el.style.display='';
          popupWintmrId=setInterval(popupWinespopup_tmrTimer,(popupWinresetTimer?1000:20));
        }

        function popupWinespopup_winLoad()
        { 
          if (popupWinoldonloadHndlr!=null) popupWinoldonloadHndlr();

          elCnt=document.getElementById('popupWin_content')
          elTit=document.getElementById('popupWin_header');
          el=document.getElementById('popupWin');
          popupWinpopupBottom=el.style.bottom.substr(0,el.style.bottom.length-2);

          popupWintitHgt=elTit.style.height.substr(0,elTit.style.height.length-2);
          popupWinpopupHgt=el.style.height;
          popupWinpopupHgt=popupWinpopupHgt.substr(0,popupWinpopupHgt.length-2); popupWinactualHgt=0;
          popupWincntDelta=popupWinpopupHgt-(elCnt.style.height.substr(0,elCnt.style.height.length-2));

          if (true)
          {
            popupWinresetTimer=true;
            popupWinespopup_ShowPopup(null);
          }
		  rand();
        }


        function popupWinespopup_tmrTimer()
        { 
          el=document.getElementById('popupWin');
          if (popupWinresetTimer)
          {
            el.style.display='';
            clearInterval(popupWintmrId); popupWinresetTimer=false;
            popupWintmrId=setInterval(popupWinespopup_tmrTimer,20);
          }
		  
          popupWinactualHgt+=5;
          if (popupWinactualHgt>=popupWinpopupHgt)
          { 
            popupWinactualHgt=popupWinpopupHgt; clearInterval(popupWintmrId); popupWintmrId=-1;
            document.getElementById('popupWin_content').style.display='';
            if (popupWinhideAfter!=-1) popupWintmrHide=setInterval(popupWinespopup_tmrHideTimer,popupWinhideAfter);
			
			popupWinHidden=setInterval(popupWindHidden,60000);//60 segundos close popup			
          }
          if (popupWintitHgt<popupWinactualHgt-6)
            document.getElementById('popupWin_header').style.display='';
          if ((popupWinactualHgt-popupWincntDelta)>0)
          {
            elCnt=document.getElementById('popupWin_content')
            elCnt.style.display='';
            elCnt.style.height=(popupWinactualHgt-popupWincntDelta)+'px';
          }
          el.style.height=popupWinactualHgt+'px';
        }

        function popupWinespopup_tmrHideTimer()
        {
          clearInterval(popupWintmrHide); popupWintmrHide=-1;
          el=document.getElementById('popupWin');
          if (popupWinhasFilters)
          {
            backCnt=document.getElementById('popupWin_content').innerHTML;
            backTit=document.getElementById('popupWin_header').innerHTML;
            document.getElementById('popupWin_content').innerHTML='';
            document.getElementById('popupWin_header').innerHTML='';
            el.style.filter='blendTrans(duration=1)';
            el.filters.blendTrans.apply();
            el.style.visibility='hidden';
            el.filters.blendTrans.play();
            document.getElementById('popupWin_content').innerHTML=backCnt;
            document.getElementById('popupWin_header').innerHTML=backTit;

            popupWindxTimer=setInterval(popupWinespopup_dxTimer,1000);
          }
          else el.style.visibility='hidden';
        }

        function popupWinespopup_dxTimer()
        {
          clearInterval(popupWindxTimer); popupWindxTimer=-1;
        }

        function popupWinespopup_Close()
        {
          if (popupWintmrId==-1)
          {
            el=document.getElementById('popupWin');
            el.style.filter='';
            el.style.display='none'			
            if (popupWintmrHide!=-1) clearInterval(popupWintmrHide); popupWintmrHide=-1;
			
			popupWindHidden();

          }
        }



        var popupWinmousemoveBack,popupWinmouseupBack;
        var popupWinofsX,popupWinofsY;
        function popupWinespopup_DragDrop(e)
        {
          popupWinmousemoveBack=document.body.onmousemove;
          popupWinmouseupBack=document.body.onmouseup;
          ox=(e.offsetX==null)?e.layerX:e.offsetX;
          oy=(e.offsetY==null)?e.layerY:e.offsetY;
          popupWinofsX=ox; popupWinofsY=oy;

          document.body.onmousemove=popupWinespopup_DragDropMove;
          document.body.onmouseup=popupWinespopup_DragDropStop;
          if (popupWintmrHide!=-1) clearInterval(popupWintmrHide);
        }

        function popupWinespopup_DragDropMove(e)
        {
          el=document.getElementById('popupWin');
          if (e==null&&event!=null)
          {
            el.style.left=(event.clientX*1+document.body.scrollLeft-popupWinofsX)+'px';
            el.style.top=(event.clientY*1+document.body.scrollTop-popupWinofsY)+'px';
            event.cancelBubble=true;
          }
          else
          {
            el.style.left=(e.pageX*1-popupWinofsX)+'px';
            el.style.top=(e.pageY*1-popupWinofsY)+'px';
            e.cancelBubble=true;
          }
          if ((event.button&1)==0) popupWinespopup_DragDropStop();
        }

        function popupWinespopup_DragDropStop()
        {
          document.body.onmousemove=popupWinmousemoveBack;
          document.body.onmouseup=popupWinmouseupBack;
        }
