<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!--#include file="Connections/connmvz2.asp" -->
<%
' *** Edit Operations: declare variables

Dim MM_editAction
Dim MM_abortEdit
Dim MM_editQuery
Dim MM_editCmd

Dim MM_editConnection
Dim MM_editTable
Dim MM_editRedirectUrl
Dim MM_editColumn
Dim MM_recordId

Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i

MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>
<%
' *** Insert Record: set variables

If (CStr(Request("MM_insert")) = "gravarlivro") Then

  MM_editConnection = MM_connmvz2_STRING
  MM_editTable = "livro"
  MM_editRedirectUrl = "livro.asp"
  MM_fieldsStr  = "txtnomewq|value|txtemailwq|value|txtcidadewq|value|txamensagemwq|value"
  MM_columnsStr = "nome|',none,''|email|',none,''|cidade|',none,''|texto|',none,''"

  ' create the MM_fields and MM_columns arrays
  MM_fields = Split(MM_fieldsStr, "|")
  MM_columns = Split(MM_columnsStr, "|")
  
  ' set the form values
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
  Next

  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If

End If
%>

<%
' *** Insert Record: construct a sql insert statement and execute it

Dim MM_tableValues
Dim MM_dbValues

If (CStr(Request("MM_insert")) <> "") Then

  ' create the sql insert statement
  MM_tableValues = ""
  MM_dbValues = ""
  For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_formVal = MM_fields(MM_i+1)
    MM_typeArray = Split(MM_columns(MM_i+1),",")
    MM_delim = MM_typeArray(0)
    If (MM_delim = "none") Then MM_delim = ""
    MM_altVal = MM_typeArray(1)
    If (MM_altVal = "none") Then MM_altVal = ""
    MM_emptyVal = MM_typeArray(2)
    If (MM_emptyVal = "none") Then MM_emptyVal = ""
    If (MM_formVal = "") Then
      MM_formVal = MM_emptyVal
    Else
      If (MM_altVal <> "") Then
        MM_formVal = MM_altVal
      ElseIf (MM_delim = "'") Then  ' escape quotes
        MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
      Else
        MM_formVal = MM_delim + MM_formVal + MM_delim
      End If
    End If
    If (MM_i <> LBound(MM_fields)) Then
      MM_tableValues = MM_tableValues & ","
      MM_dbValues = MM_dbValues & ","
    End If
    MM_tableValues = MM_tableValues & MM_columns(MM_i)
    MM_dbValues = MM_dbValues & MM_formVal
  Next
  MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & ") values (" & MM_dbValues & ")"

  If (Not MM_abortEdit) Then
    ' execute the insert
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    If (MM_editRedirectUrl <> "") Then
      Response.Redirect(MM_editRedirectUrl)
    End If
  End If

End If
%>
<%
Dim rsnews
Dim rsnews_numRows

Set rsnews = Server.CreateObject("ADODB.Recordset")
rsnews.ActiveConnection = MM_connmvz2_STRING
rsnews.Source = "SELECT * FROM news ORDER BY id DESC"
rsnews.CursorType = 0
rsnews.CursorLocation = 2
rsnews.LockType = 1
rsnews.Open()

rsnews_numRows = 0
%>
<%
Dim rssecao
Dim rssecao_numRows

Set rssecao = Server.CreateObject("ADODB.Recordset")
rssecao.ActiveConnection = MM_connmvz2_STRING
rssecao.Source = "SELECT * FROM cadastro"
rssecao.CursorType = 0
rssecao.CursorLocation = 2
rssecao.LockType = 1
rssecao.Open()

rssecao_numRows = 0
%>
<%
Dim rslivro
Dim rslivro_numRows

Set rslivro = Server.CreateObject("ADODB.Recordset")
rslivro.ActiveConnection = MM_connmvz2_STRING
rslivro.Source = "SELECT * FROM livro ORDER BY id DESC"
rslivro.CursorType = 0
rslivro.CursorLocation = 2
rslivro.LockType = 1
rslivro.Open()

rslivro_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 6
Repeat1__index = 0
rsnews_numRows = rsnews_numRows + Repeat1__numRows
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index

Repeat2__numRows = 10
Repeat2__index = 0
rslivro_numRows = rslivro_numRows + Repeat2__numRows
%>
<%
'  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

Dim rslivro_total
Dim rslivro_first
Dim rslivro_last

' set the record count
rslivro_total = rslivro.RecordCount

' set the number of rows displayed on this page
If (rslivro_numRows < 0) Then
  rslivro_numRows = rslivro_total
Elseif (rslivro_numRows = 0) Then
  rslivro_numRows = 1
End If

' set the first and last displayed record
rslivro_first = 1
rslivro_last  = rslivro_first + rslivro_numRows - 1

' if we have the correct record count, check the other stats
If (rslivro_total <> -1) Then
  If (rslivro_first > rslivro_total) Then
    rslivro_first = rslivro_total
  End If
  If (rslivro_last > rslivro_total) Then
    rslivro_last = rslivro_total
  End If
  If (rslivro_numRows > rslivro_total) Then
    rslivro_numRows = rslivro_total
  End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them

If (rslivro_total = -1) Then

  ' count the total records by iterating through the recordset
  rslivro_total=0
  While (Not rslivro.EOF)
    rslivro_total = rslivro_total + 1
    rslivro.MoveNext
  Wend

  ' reset the cursor to the beginning
  If (rslivro.CursorType > 0) Then
    rslivro.MoveFirst
  Else
    rslivro.Requery
  End If

  ' set the number of rows displayed on this page
  If (rslivro_numRows < 0 Or rslivro_numRows > rslivro_total) Then
    rslivro_numRows = rslivro_total
  End If

  ' set the first and last displayed record
  rslivro_first = 1
  rslivro_last = rslivro_first + rslivro_numRows - 1
  
  If (rslivro_first > rslivro_total) Then
    rslivro_first = rslivro_total
  End If
  If (rslivro_last > rslivro_total) Then
    rslivro_last = rslivro_total
  End If

End If
%>
<%
Dim MM_paramName 
%>
<%
' *** Move To Record and Go To Record: declare variables

Dim MM_rs
Dim MM_rsCount
Dim MM_size
Dim MM_uniqueCol
Dim MM_offset
Dim MM_atTotal
Dim MM_paramIsDefined

Dim MM_param
Dim MM_index

Set MM_rs    = rslivro
MM_rsCount   = rslivro_total
MM_size      = rslivro_numRows
MM_uniqueCol = ""
MM_paramName = ""
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> "") Then
  MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
End If
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("campo1"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization="nivel"
  MM_redirectLoginSuccess="livro.asp"
  MM_redirectLoginFailed="login_erro.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_connmvz2_STRING
  MM_rsUser.Source = "SELECT login, senha"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM cadastro WHERE login='" & Replace(MM_valUsername,"'","''") &"' AND senha='" & Replace(Request.Form("campo2"),"'","''") & "'"
  MM_rsUser.CursorType = 0
  MM_rsUser.CursorLocation = 2
  MM_rsUser.LockType = 3
  MM_rsUser.Open
  If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then 
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
      Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
    Else
      Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And false Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<%
' *** Move To Record: handle 'index' or 'offset' parameter

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

  ' use index parameter if defined, otherwise use offset parameter
  MM_param = Request.QueryString("index")
  If (MM_param = "") Then
    MM_param = Request.QueryString("offset")
  End If
  If (MM_param <> "") Then
    MM_offset = Int(MM_param)
  End If

  ' if we have a record count, check if we are past the end of the recordset
  If (MM_rsCount <> -1) Then
    If (MM_offset >= MM_rsCount Or MM_offset = -1) Then  ' past end or move last
      If ((MM_rsCount Mod MM_size) > 0) Then         ' last page not a full repeat region
        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
      Else
        MM_offset = MM_rsCount - MM_size
      End If
    End If
  End If

  ' move the cursor to the selected record
  MM_index = 0
  While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))
    MM_rs.MoveNext
    MM_index = MM_index + 1
  Wend
  If (MM_rs.EOF) Then 
    MM_offset = MM_index  ' set MM_offset to the last possible record
  End If

End If
%>

<%
' *** Move To Record: if we dont know the record count, check the display range

If (MM_rsCount = -1) Then

  ' walk to the end of the display range for this page
  MM_index = MM_offset
  While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))
    MM_rs.MoveNext
    MM_index = MM_index + 1
  Wend

  ' if we walked off the end of the recordset, set MM_rsCount and MM_size
  If (MM_rs.EOF) Then
    MM_rsCount = MM_index
    If (MM_size < 0 Or MM_size > MM_rsCount) Then
      MM_size = MM_rsCount
    End If
  End If

  ' if we walked off the end, set the offset based on page size
  If (MM_rs.EOF And Not MM_paramIsDefined) Then
    If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
      If ((MM_rsCount Mod MM_size) > 0) Then
        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
      Else
        MM_offset = MM_rsCount - MM_size
      End If
    End If
  End If

  ' reset the cursor to the beginning
  If (MM_rs.CursorType > 0) Then
    MM_rs.MoveFirst
  Else
    MM_rs.Requery
  End If

  ' move the cursor to the selected record
  MM_index = 0
  While (Not MM_rs.EOF And MM_index < MM_offset)
    MM_rs.MoveNext
    MM_index = MM_index + 1
  Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
rslivro_first = MM_offset + 1
rslivro_last  = MM_offset + MM_size

If (MM_rsCount <> -1) Then
  If (rslivro_first > MM_rsCount) Then
    rslivro_first = MM_rsCount
  End If
  If (rslivro_last > MM_rsCount) Then
    rslivro_last = MM_rsCount
  End If
End If

' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
  MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then 
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links

Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev

Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
  MM_moveParam = "offset"
  If (MM_keepMove <> "") Then
    MM_paramList = Split(MM_keepMove, "&")
    MM_keepMove = ""
    For MM_paramIndex = 0 To UBound(MM_paramList)
      MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
      If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
        MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
      End If
    Next
    If (MM_keepMove <> "") Then
      MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
    End If
  End If
End If

' set the strings for the move to links
If (MM_keepMove <> "") Then 
  MM_keepMove = MM_keepMove & "&"
End If

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

MM_moveFirst = MM_urlStr & "0"
MM_moveLast  = MM_urlStr & "-1"
MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
  MM_movePrev = MM_urlStr & "0"
Else
  MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MVZ Web Hosting, Hospedagem e desenvolvimento de site em Balsas Maranhão</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="stiles.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function tmt_compareField(f1,f2,rule,errorMsg){
	var myErr = "";
	if(eval("MM_findObj('"+f1+"').value"+rule+"MM_findObj('"+f2+"').value")){
		alert(unescape(errorMsg));myErr += 'errorMsg';}
	document.MM_returnValue = (myErr == "");
}

//-->
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('imagens2/icones/voltar_hover.gif')" "MM_preloadImages('imagens2/icones/voltar_hover.gif')">


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="mae">
  <tr> 
    <td height="572" valign="top">
<div align="center">
        <table width="778" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="574">
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="mae" dwcopytype="CopyTableRow">
                
                <tr> 
                  <td valign="top"> <div align="center"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td valign="top"><img src="images/top.gif" width="778" height="22" border="0" usemap="#Map" /></td>
                        </tr>
                        <tr> 
                          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr> 
                                <td width="49%"><img src="images/hand.jpg" width="452" height="155" /></td>
                                <td width="51%"><SCRIPT LANGUAGE="JavaScript" SRC="http://www.mvzweb.com/__wm__banner/0.js"> 
</SCRIPT> </td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr align="left" valign="top"> 
                                <td width="29%"><div align="left"><img src="images/modelo_04.gif" width="230" height="33" /><img src="images/espacador.jpg" width="9" height="33" /></div></td>
                                <td width="11%"> <div align="left"> 
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90" height="33">
                                      <param name="movie" value="imagens2/botao_Home.swf" />
                                      <param name="quality" value="high" />
                                      <embed src="imagens2/botao_Home.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="90" height="33"></embed></object>
                                  </div></td>
                                <td width="11%"> <div align="left"> 
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90" height="33">
                                      <param name="movie" value="imagens2/botao_painel.swf" />
                                      <param name="quality" value="high" />
                                      <embed src="imagens2/botao_painel.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="90" height="33"></embed></object>
                                  </div></td>
                                <td width="11%"> <div align="left"> 
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90" height="33">
                                      <param name="movie" value="imagens2/botao_Planos.swf" />
                                      <param name="quality" value="high" />
                                      <embed src="imagens2/botao_Planos.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="90" height="33"></embed></object>
                                  </div></td>
                                <td width="11%"><div align="left"> 
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90" height="33">
                                      <param name="movie" value="imagens2/botao_Servicos.swf" />
                                      <param name="quality" value="high" />
                                      <embed src="imagens2/botao_Servicos.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="90" height="33"></embed></object>
                                  </div></td>
                                <td width="6%"> <div align="left"> 
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90" height="33">
                                      <param name="movie" value="imagens2/botao_suporte.swf" />
                                      <param name="quality" value="high" />
                                      <embed src="imagens2/botao_suporte.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="90" height="33"></embed></object>
                                  </div></td>
                                <td width="21%"> <div align="left"> 
                                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="90" height="33">
                                      <param name="movie" value="imagens2/botao_Contato.swf" />
                                      <param name="quality" value="high" />
                                      <embed src="imagens2/botao_Contato.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="90" height="33"></embed></object>
                                  </div></td>
                              </tr>
                            </table></td>
                        </tr>
                      </table>
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr valign="top"> 
                                <td width="212" bgcolor="#F3F3F3"> 
                                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr> 
                                      <td valign="top"><img src="images/logo.jpg" width="212" height="55" /></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><img src="images/noticias.gif" width="212" height="32" /></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                          <% 
While ((Repeat1__numRows <> 0) AND (NOT rsnews.EOF)) 
%>
                                          <tr> 
                                            <td><img src="imagens2/marcador2.gif" width="14" height="12" /> 
                                              <a href="noticias.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "id=" & rsnews.Fields.Item("id").Value %>" class="link1p"><%=(rsnews.Fields.Item("titulo").Value)%></a></td>
                                          </tr>
                                          <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsnews.MoveNext()
Wend
%>
                                        </table></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><hr /></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><img src="images/titulo_menu_faq.gif" width="212" height="32" /></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="faq_hospedagem.asp" class="link1p">Hospedagem</a></td>
                                          </tr>
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="faq_desenvolvimento.asp" class="link1p">Desenvolvimento</a></td>
                                          </tr>
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="faq_registros.asp" class="link1p">Registro 
                                              de dom&iacute;nios</a></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><img src="images/titulo_menu_secoes.gif" width="212" height="32" /></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="inscricao.asp" class="link1p">Inscri&ccedil;&atilde;o</a></td>
                                          </tr>
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="livro.asp" class="link1p">livro 
                                              de visitas</a> <img src="imagens2/fogo.gif" width="15" height="15" alt="" /></td>
                                          </tr>
                                          <tr>
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="forum/default.asp" target="_blank" class="link1p">F&oacute;rum 
                                              </a></td>
                                          </tr>
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="chat_asp/chat.html" target="_blank" class="link1p">Chat</a></td>
                                          </tr>
                                          <tr> 
                                            <td><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="cronica.asp" class="link1p">Cr&ocirc;nica</a></td>
                                          </tr>
                                          <tr> 
                                            <td height="14"><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="imagens.asp" class="link1p">Imagens</a></td>
                                          </tr>
                                          <tr> 
                                            <td height="14"><img src="imagens2/marcador4.gif" width="5" height="5" /> 
                                              <a href="telebusca.asp" class="link1p">Tele 
                                              Busca</a></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <td valign="top">&nbsp;</td>
                                    </tr>
                                  </table></td>
                                <td width="462"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td background="images/titulos.gif" class="textopbranco"><div align="center"><br />
                                          Bem-vindo, hoje &eacute; 
                                          <% = date %> e agora s&atilde;o <% = time %>
                                          horas </div></td>
                                    </tr>
                                  </table>
                                  <% If (Session("MM_UserAuthorization")) = "user"  Then %>
                                  <span class="text3palert">Você est&aacute; logado 
                                  no sistema como </span><span class="texto1m"><%= Session("MM_username") %></span> 
                                  <% end if %>
                                  <% If (Session("MM_Username")) = ""  Then %>
                                  &nbsp;<span class="texto2p">Voc&ecirc; n&atilde;o 
                                  est&aacute; logado no sistema!</span> 
                                  <% end if %>
                                  <% If (Session("MM_UserAuthorization")) = "admin"  Then %>
                                  <span class="text3palert">Você est&aacute; logado 
                                  no sistema como </span><span class="texto1m"><%= Session("MM_username") %></span> 
                                  <% end if %>
                                  <br />
                                  <table width="100%" border="0" cellpadding="0" cellspacing="4" class="tabela1">
                                    <tr> 
                                      <td> <table width="100%" border="0" cellpadding="0" cellspacing="4" class="tabela1">
                                          <tr> 
                                            <td> <table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                <tr> 
                                                  <td width="60%" valign="top"> 
                                                    <div align="center" class="texto1p">
                                                      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="450" height="25">
                                                        <param name="movie" value="imagens2/banner_livro.swf" />
                                                        <param name="quality" value="high" />
                                                        <embed src="imagens2/banner_livro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="25"></embed></object>
                                                      <br />
                                                      <br />
                                                      Total de <span class="texto2m"><%=(rslivro_total)%></span> mensagens 
                                                      at&eacute; agora - 
                                                      <% = date %>
                                                      / 
                                                      <% = time %>
                                                      <br />
                                                      Esta p&aacute;gina exibe 
                                                      do <%=(rslivro_first)%>&ordm; ao <%=(rslivro_last)%>&ordm;</div></td>
                                                </tr>
                                                <tr> 
                                                  <td valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="0">
                                                      
                                                      
                                                      <tr> 
                                                        <td width="10%"><a href="#rodape"><img src="imagens2/icones/inserir_cronica.gif" width="35" height="27" border="0" /></a></td>
                                                        <td width="90%"><a href="#rodape" class="link2palert">CLIQUE AQUI PARA POSTAR SUA MENSAGEM.........</a></td>
                                                      </tr>
                                                    </table>
                                                    
                                                    <% 
While ((Repeat2__numRows <> 0) AND (NOT rslivro.EOF)) 
%>
                                                    <table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#FFF8E8">
                                                      <tr> 
                                                        <td colspan="2" class="texto1p"><div align="left">Data: 
                                                            <%=(rslivro.Fields.Item("data").Value)%>- Horas: 
                                                            <%=(rslivro.Fields.Item("hora").Value)%></div></td>
                                                      </tr>
                                                      <tr> 
                                                        <td width="24%" class="texto2m"><div align="left">Nome:</div></td>
                                                        <td width="76%" class="texto1m"><div align="left"><%=(rslivro.Fields.Item("nome").Value)%></div></td>
                                                      </tr>
                                                      <tr> 
                                                        <td class="texto2m"><div align="left">E-mail:</div></td>
                                                        <td class="texto1m"><div align="left"><%=(rslivro.Fields.Item("email").Value)%></div></td>
                                                      </tr>
                                                      <tr> 
                                                        <td class="texto2m"><div align="left">Cidade/Estado:</div></td>
                                                        <td class="texto1m"><div align="left"><%=(rslivro.Fields.Item("cidade").Value)%> </div></td>
                                                      </tr>
                                                      <tr> 
                                                        <td valign="top" class="texto2m"><div align="left">Recado:</div></td>
                                                        <td class="texto1m"><div align="left"><%=Replace(Server.HTMLEncode(rslivro("texto")),vbCrlf,"<br>")%><br />
                                                            <br />
                                                          </div></td>
                                                      </tr>
                                                      <tr> 
                                                        <td colspan="2"><div align="center"> 
                                                            <%
                                                        imagem = rslivro.Fields.Item("imagem").Value
                                                        if imagem = "" then
                                                        imagem = "nenhum.gif"
                                                        end if
                                                        %>
                                                            <img src="resize.asp?Path=upload/<%=imagem%>&width=400"> 
                                                          </div></td>
                                                      </tr>
                                                      <tr> 
                                                        <td><a href="admin/administracao.asp" class="link2palert"> 
                                                          </a> <a href="admin/administracao.asp" class="link2palert"> 
                                                          </a> <% If (Session("MM_UserAuthorization")) = "admin"  Then %> </a><a href="admin/editar_recado.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "id=" & rslivro.Fields.Item("id").Value %>"><img src="imagens2/icones/editar.gif" width="27" height="16" border="0" /></a> 
                                                          <% end if %></td>
                                                        <td><hr class="linha" /></td>
                                                      </tr>
                                                    </table>
                                                    <% 
  Repeat2__index=Repeat2__index+1
  Repeat2__numRows=Repeat2__numRows-1
  rslivro.MoveNext()
Wend
%> 
<table width="100%" border="0" cellspacing="2" cellpadding="0">
                                                      <tr> 
                                                        <td> <div align="center"> 
                                                            <% If MM_offset <> 0 Then %>
                                                            <p><A HREF="<%=MM_movePrev%>" class="link1p">P&aacute;gina 
                                                              anterior</A></p>
                                                            <% End If ' end MM_offset <> 0 %>
                                                          </div></td>
                                                        <td> <div align="center"> 
                                                            <% If MM_offset <> 0 Then %>
                                                            <A HREF="<%=MM_moveFirst%>" class="link1p">Primeira 
                                                            p&aacute;gina</A> 
                                                            <% End If ' end MM_offset <> 0 %>
                                                          </div></td>
                                                        <td> <div align="center"> 
                                                            <% If Not MM_atTotal Then %>
                                                            <A HREF="<%=MM_moveNext%>" class="link1p">Pr&oacute;xima 
                                                            p&aacute;gina</A> 
                                                            <% End If ' end Not MM_atTotal %>
                                                          </div></td>
                                                        <td> <div align="center"> 
                                                            <% If Not MM_atTotal Then %>
                                                            <A HREF="<%=MM_moveLast%>" class="link1p">&Uacute;ltima 
                                                            p&aacute;gina</A> 
                                                            <% End If ' end Not MM_atTotal %>
                                                          </div></td>
                                                      </tr>
                                                    </table>
                                                    <form name="form1" id="form1" method="POST" action="<%=MM_LoginAction%>">
                                                      <div align="center"><span class="texto1p">Clique 
                                                        em &quot;Liberar formul&aacute;rio&quot; 
                                                        para ter acesso ao formul&aacute;rio 
                                                        de inser&ccedil;&atilde;o 
                                                        de recados</span><br />
                                                        <input type="submit" name="Submit3" value="Liberar formul&aacute;rio" />
                                                        <input name="campo1" type="hidden" id="campo1" value="Visitante" />
                                                        <input name="campo2" type="hidden" id="campo2" value="Visitante" />
                                                      </div>
                                                    </form>
                                                    <p><a name="rodape" id="rodape"></a></p>
                                                    <p>&nbsp; </p>
                                                    
													<% If (Session("MM_UserAuthorization")) = "Visitante"  Then %>
                                                    <form ACTION="<%=MM_editAction%>" METHOD="POST" name="gravarlivro" id="gravarlivro">
                                                      <a href="#" onClick="javascript:history.go(-1)" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image221','','imagens2/icones/voltar_hover.gif',1)"><img src="imagens2/icones/voltar.gif" alt="Voltar para página anterior" name="Image221" width="24" height="24" border="0" id="Image22" /></a> 
                                                      <table width="100%" border="0" cellspacing="2" cellpadding="0">
                                                        <tr> 
                                                          <td colspan="2"> <div align="center" class="titulo1">Preencha 
                                                              este formul&aacute;rio 
                                                              para deixar sua 
                                                              mensagem</div></td>
                                                        </tr>
                                                        <tr> 
                                                          <td width="25%" class="texto1p"><div align="left">Nome:</div></td>
                                                          <td width="75%"> <div align="left"> 
                                                              <input name="txtnomewq" type="text" class="fom2p" id="txtnomewq" size="30" />
                                                            </div></td>
                                                        </tr>
                                                        <tr> 
                                                          <td class="texto1p"><div align="left">E-mail:</div></td>
                                                          <td> <div align="left"> 
                                                              <input name="txtemailwq" type="text" class="fom2p" id="txtemailwq" size="30" />
                                                            </div></td>
                                                        </tr>
                                                        <tr> 
                                                          <td class="texto1p"><div align="left">Cidade/Estado:</div></td>
                                                          <td> <div align="left"> 
                                                              <input name="txtcidadewq" type="text" class="fom2p" id="txtcidadewq" size="30" />
                                                            </div></td>
                                                        </tr>
                                                        <tr> 
                                                          <td valign="top" class="texto1p"><div align="left">Mensagem:</div></td>
                                                          <td> <div align="left"> 
                                                              <textarea name="txamensagemwq" cols="55" rows="7" class="fom2p" id="txamensagemwq"></textarea>
                                                            </div></td>
                                                        </tr>
                                                        <tr> 
                                                          <td class="texto1p"><div align="left"></div></td>
                                                          <td><div align="left"> 
                                                            </div></td>
                                                        </tr>
                                                        <tr> 
                                                          <td> <div align="left"></div></td>
                                                          <td> <div align="left"> 
                                                              <input name="Submit" type="submit" onClick="tmt_compareField('digiverifi','diginow','!=','O%20n%FAmero%20digitado%20n%E3o%20confere%20com%20o%20d%EDgito%20verificador!');return document.MM_returnValue" value="Enviar" onload="Inibe()" />
                                                              <input type="reset" name="Submit2" value="Redefinir" />
                                                            </div></td>
                                                        </tr>
                                                      </table>
                                                      <input type="hidden" name="MM_insert" value="gravarlivro">
                                                    </form><% end if %></p>
                                                    </tr>
                                              </table>
                                              <p>&nbsp;</p>
                                              <p align="justify">&nbsp;</p></td>
                                          </tr>
                                        </table>
                                        <p align="justify">&nbsp;</p></td>
                                    </tr>
                                  </table></td>
                                <td width="106" bgcolor="#F3F3F3"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr> 
                                      <td valign="top">&nbsp;</td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"><div align="center"><a href="admin/administracao.asp" class="link2palert">
                                          <% If (Session("MM_UserAuthorization")) = "admin"  Then %>
                                          Administra&ccedil;&atilde;o</a></div><% end if %>
                                        <hr /></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top"> 
                                        <div align="justify">
                                          <table width="100%" border="0" cellspacing="3" cellpadding="0">
                                            <tr>
                                              <td><div align="justify">
                                                  <p><a href="clientes.asp" class="link1p">Conhe&ccedil;a 
                                                    alguns de nossos principais 
                                                    clientes</a></p>
                                                  <p><a href="divulgue.asp" class="link1p">Divulgue 
                                                    seu site em mais de 200 sistemas 
                                                    de buscas nacionais.</a></p>
                                                  <p><a href="vantagens.asp" class="link1p">vantagens 
                                                    dos clientes MVZ Web Hosting</a></p>
                                                  <p><a href="http://www.mrterras.com.br" target="_blank" class="link1p">Visite 
                                                    o site destaque do m&ecirc;s 
                                                    </a></p>
                                                </div></td>
                                            </tr>
                                          </table>
                                        </div></td>
                                    </tr>
                                    <tr> 
                                      <td valign="top">&nbsp;</td>
                                    </tr>
                                  </table></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="31" valign="top" background="images/rodape2.jpg"> 
                            <div align="center"> 
                              <p><br />
                                <font color="#FFFFFF" size="1" face="Arial">Copyright 
                                &copy; 2005 MVZ WEB HOSTING - Todos os direitos 
                                reservados - Design e desenvolvimento:<a href="contato.asp" class="link1p"> 
                                MAURO V. ZANCHIN</a></font></p>
                              </div></td>
                        </tr>
                      </table>
                    </div></td>
                </tr>
              </table>
              
            </td>
          </tr>
        </table>
      </div></td>
  </tr>
</table>
<map name="Map" id="Map">
  <area shape="rect" coords="564,3,592,18" href="default.asp" alt="P&aacute;gina principal" />
  <area shape="rect" coords="660,3,693,19" href="contato.asp" />
</map>
</body>
</html>
<%
rsnews.Close()
Set rsnews = Nothing
%>
<%
rssecao.Close()
Set rssecao = Nothing
%>
<%
rslivro.Close()
Set rslivro = Nothing
%>

