document.write ("<link href=\"estilos.css\" rel=\"stylesheet\" type=\"text/css\">");
document.write ("<div id=\"popupWin\" valign=\"middle\" style=\"display:none; background:#ebf5f7; border-right:1px solid #455690; border-bottom:1px solid #455690; border-left:1px solid #707070; border-top:1px solid #707070; position:absolute; z-index:9999;  width:296px; height:130px; right:0px; bottom:0px;\" onselectstart=\"return false;\"  onmousedown=\"return popupWinespopup_DragDrop(event);\" >");
document.write ("<div valign=\"middle\" id=\"popupWin_header\" style=\"cursor:default; display:none; position:absolute; left:2px; width:290px; top:2px; height:23px; filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#66a6c1', EndColorStr='#66a6c1');font:12px arial,sans-serif; color:#3c4749; text-decoration:none; padding:5 5 5 5;\"><span id=\"popupWintitleEl\">&nbsp;</span><b>Receba as notícias por email.</b><span style=\"position:absolute; right:0px; top:0px; cursor:pointer; color:#728EB8; font:bold 12px arial,sans-serif; position:absolute; top:2px; right:3px;\" onclick=\"popupWinespopup_Close()\" onmousedown=\"event.cancelBubble=true;\" onmouseover=\"style.color='#455690';\"onmouseout=\"style.color='#728EB8';\"><img src=\"images/form-news/popup_close.gif\" border=\"0\" alt=\"Clique para fechar\"></span></div>");
document.write ("<div id=\"popupWin_content\" onmousedown=\"event.cancelBubble=true;\" style=\"display:none; background:#66a6c1; padding:0px; overflow:hidden; text-align:center;filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#FF66a6c1', EndColorStr='#FFFFFFFF');position:absolute; left:2px; width:290px; top:25px; height:100px;\">");
document.write ("<font face=\"Arial, Helvetica, sans-serif\" color=\"#006699\">");

document.write ("<form onSubmit=\"return validaEnvio();\" action=\"contato/index.php#cadastro\" target=\"_self\" method=\"post\" name=\"form\" id=\"form\" style=\"display:inline;\">");
document.write ("<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">");
                      document.write ("<tr>");
                        document.write ("<td height=\"40\" colspan=\"5\"><div align=\"center\">Assine a Newsletter Gokite e fique sabendo todas as novidades do KiteSurf.</div></td>");
                      document.write ("</tr>");
                      
                      document.write ("<tr>");
                        document.write ("<td width=\"26\">&nbsp;</td>");
                        document.write ("<td width=\"26\">Nome:</td>");
                        document.write ("<td width=\"30\"><input name=\"Nome\" type=\"text\" class=\"forms10\" id=\"Nome\" size=\"25\"></td>");
                        document.write ("<td>&nbsp;</td>");
                        document.write ("<td>&nbsp;</td>");
                      document.write ("</tr>");
                      
                      document.write ("<tr>");
                        document.write ("<td width=\"26\">&nbsp;</td>");
                        document.write ("<td width=\"26\">Email:</td>");
                        document.write ("<td width=\"30\"><input name=\"Email\" type=\"text\" class=\"forms10\" id=\"Email\" size=\"25\"></td>");
                        document.write ("<td align=\"center\" valign=\"middle\">");
                          document.write ("<input name=\"Submit\" type=\"submit\" class=\"borda\" value=\"Continuar\">");
						  //document.write ("<input name=\"Submit\" type=\"submit\" class=\"borda\" value=\"Continuar\" onclick=\"popupWinespopup_Close()\">");
                          //document.write ("<input name=\"assunto\" type=\"hidden\" id=\"assunto\" value=\"Cadastro - www.gokite.com.br\">");
                          //document.write ("<input name=\"eDestino\" type=\"hidden\" id=\"eDestino\" value=\"contato@gokite.com.br\">");
                          //document.write ("<input name=\"redirect\" type=\"hidden\" id=\"redirect\" value=\"contato/ok.php\"></td>");
                        document.write ("<td align=\"center\" valign=\"middle\">&nbsp;</td>");
                      document.write ("</tr>");
                      document.write ("<tr>");
                        document.write ("<td>&nbsp;</td>");
                        document.write ("<td>&nbsp;</td>");
                        document.write ("<td>&nbsp;</td>");
                        document.write ("<td align=\"center\" valign=\"middle\">&nbsp;</td>");
                        document.write ("<td align=\"center\" valign=\"middle\">&nbsp;</td>");
                      document.write ("</tr>");
                    document.write ("</table>");
                    document.write ("</form>");

document.write ("</font>");
document.write ("</div>");
document.write ("</div>");

 var x = 3

        var y = 1

        function startClock(){

			if(document.cookie != 'email=yes')

			{

				x = x-y

				setTimeout("startClock()", 1000)

				if(x==0) {

					popupWinespopup_winLoad();

				}

			}

        }



		function SetCookie(cookieName,cookieValue,nDays)

		{

			 var today = new Date();

			 var expire = new Date();

			 if (nDays==null || nDays==0) nDays=1;

			 expire.setTime(today.getTime() + 3600000*24*nDays);

			 document.cookie = cookieName+"="+escape(cookieValue)

							 + ";expires="+expire.toGMTString();

		}



        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=popupWinespopup_winLoad;



        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);

          }

        }





        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);

          }

          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;



          }

        }







        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;

        }