<?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml_1.2.xml">
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-35336766-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
      <wml>
        <card id="HTML" title="CinesUnidos.com">
          <p>
            <img src="/Picfiles/TopLogo.wbmp" alt="CinesUnidos.com" />
          </p>
         <p><small>No te quedes sin entradas, reserva o compra ya por el 0-500-PELICULA, (0212) 6207777 o *CINES desde tu teléfono móvil.</small><br /></p>
          <p>
Bienvenido, selecciona una ciudad:
            <br />
            <%
Set CityXml = Server.CreateObject("MSXML2.DOMDocument")
CityXml.Load(Application("CityXmlFile"))

function ForHTML(Str)

	Str=Replace(Str,"ñ","&ntilde;")
	Str=Replace(Str,"á","&aacute;")
	Str=Replace(Str,"é","&eacute;")
	Str=Replace(Str,"í","&iacute;")
	Str=Replace(Str,"ó","&oacute;")
	Str=Replace(Str,"ú","&uacute;")
	Str=Replace(Str,"¡","&iexcl;")

ForHTML=Str

end function
%>
          </p>
          <p>
            <%for each CityNode in CityXml.SelectNodes("//City")
				cityid=CityNode.GetAttribute("Id")
            	Set VenueFullXml = Server.CreateObject("MSXML2.DOMDocument")
				VenueFullXml.Load(Application("VenueFullXmlFile"))
				totalVenues=VenueFullXml.selectNodes("//VenueList/Venue[@CityId="&cityid&"]").length
				if totalVenues=1 then
					venueid=VenueFullXml.selectSingleNode("//VenueList/Venue[@CityId="&cityid&"]").GetAttribute("Id")%>
					<a href="buscar.wml?cineId=<%=venueid%>"><%=CityNode.text%></a>
				<%else%>	
					<a href="busqueda.wml?Id=<%=CityNode.GetAttribute("Id")%>"><%=CityNode.text%></a>
				<%end if%>
            <br />
            <%next%>
          </p>
          <p>
            <br />
            <small>
              © 
              CopyRight 2007. CinesUnidos. Todos los derechos reservados.
              <br />
             Compañía Anónima Empresa Cines Unidos RIF-J00012651-8
            </small>
          </p>
          
        </card>
      </wml>
