function estado(){
   defaultStatus="Queremos Futuro - Coordinadora vecinal"
   setTimeout("estado()",300);
}

function rowSeparator(hh) {
  document.writeLn("<tr>");
  document.writeLn("  <td height='" + hh + "'>");
  document.writeLn("    &nbsp;");
  document.writeLn("  </td>");
  document.writeLn("</tr>");
}

function header(img) {
  document.writeln("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");
  document.writeln("  <tr>");
  document.writeln("    <td width='218' height='120' align='left' valign='middle'>");
  document.writeln("      <img src='images/lnk.gif' border='0' usemap='#Map'>");
  document.writeln("    </td>");
  document.writeln("    <td width='100%' height='120' align='right' valign='middle'>");
  document.writeln("      <table width='100%' border='0' cellpadding='0' cellspacing='0'>");
  document.writeln("        <tr>");
  document.writeln("          <td align='right'>");
  document.writeln("            <img src='images/" + img + "'>");
  document.writeln("          </td>");
  document.writeln("        <tr>");
  document.writeln("          <td align='center' style='padding:0 0 0 130px'");
  document.writeln("            <br><br><a class='aviso' href='doc_public/TRIPTICOCoordinadora.pdf'><img src='images/aviso.gif' border='0'>&nbsp;&nbsp;DESDE 2005 TRABAJANDO POR LA COMARCA DE MOLINA</a>");
  document.writeln("            <br><a class='aviso' href='img_plan.htm'><img src='images/aviso.gif' border='0'>&nbsp;&nbsp;PLAN DE ACTUACIÓN INTEGRAL EN IMÁGENES</a>");
  document.writeln("                <a class='aviso' href='ruta2010fin.htm'><img src='images/aviso2.gif' border='0'>&nbsp;&nbsp;*** IV RUTA CICLISTA por los pueblos del incendio ***</a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("      </table>");
  document.writeln("    </td>");
  document.writeln("  </tr>");
  document.writeln("</table>");
  
  document.writeln("<map name='Map'>");
  document.writeln("  <area shape='rect' coords='0,0,218,100' href='index.htm'>");
  document.writeln("</map>");  

  document.writeln("<table width='100%' border='0' cellpadding='0' cellspacing='0'>");  
  document.writeln("  <tr>");
  document.writeln("  <table width='100%' border='0' cellpadding='0' cellspacing='0'>");
  document.writeln("   <tr>");
  document.writeln("    <td width='100' align='left' valign='top'>");
  document.writeln("      <br>");
  document.writeln("      <table width='133' border='0' cellspacing='0' cellpading='0'>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'> ");
  document.writeln("      	 <a href='manifiesto.htm'><img src='images/btn_manifiesto.gif' border='0'></a> ");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='nosotros.htm'><img src='images/btn_nosotros.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='planes.htm'><img src='images/btn_planes.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='seguimiento.htm'><img src='images/btn_seguimiento.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='tecnica_prev.htm'><img src='images/btn_tecnica.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='prensa_prev.htm'><img src='images/btn_prensa.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='imagenes.htm'><img src='images/btn_img.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <a href='mascomarca.htm'><img src='images/btn_comarca.gif' border='0'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("        <tr>");
  document.writeln("          <td width='10'>&nbsp;</td> ");
  document.writeln("          <td width='93' align='center'>");
  document.writeln("            <br><a href='mailto:contacto@queremosfuturo.org'><img src='images/mail.gif' border='0' alt='contacto@queremosfuturo.org'></a>");
  document.writeln("          </td>");
  document.writeln("        </tr>");
  document.writeln("      </table>");
  document.writeln("     </tr>");
  document.writeln("	</td>");
  document.writeln("	<td width='100%' align='left' valign='top'>");
}

function bottom() {
  document.writeln("	</td>");
  document.writeln("   </tr>");
  document.writeln("  </table>");
}

function writeAddress() {

  /*document.writeln("<STYLE type=text/css>");
  document.writeln("<!--");
  document.writeln("A:link  { text-decoration: none; COLOR: Black; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10px;}");
  document.writeln("A:visited  { text-decoration: none; COLOR: Black; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px;}");
  document.writeln("A:hover { text-decoration: none; COLOR: Black; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px;}");
  document.writeln("-->");
  document.writeln("</STYLE>");  */

  document.writeln("<div id='divAddress'>"); 
  document.writeln("  <table width='450' border='0' cellpadding='0' cellspacing='0'>");
  document.writeln("    <tr>");
  document.writeln("      <td align='center'>");
  document.writeln("        <img src='images/hr1.gif' width='450' height='1'>");
  document.writeln("      </td>");
  document.writeln("    </tr>");
  document.writeln("    <tr>");
  document.writeln("      <td align='center' class='texto'>");
  document.writeln("        <br>Paseo de los Yeseros 1  - Pol. Ind. Valmor<br>");
  document.writeln("        28340 - Valdemoro (Madrid)<br>");
  document.writeln("        <b>Teléfono: </b>91 809 44 31<br>");
  document.writeln("        <a href='mailto:kino@kinomarcosmolduras.com'>kino@kinomarcosmolduras.com</a>");
  document.writeln("      </td>");
  document.writeln("    </tr>");
  document.writeln("  </table>");
  document.writeln("</div>"); 
  
  
}

function showImage(url, img) {
  document.all["imageBig"].src = url + img;
}

function divScrollImages(url, prefImg, numImg) {
  document.writeln("<div id='divScroll'>");
  document.writeln("  <table width='430' border='0' cellspacing='0' cellpadding='0'>");
  document.writeln("    <tr id='rowScroll'>");
  for (i=1; i<=numImg; i++) {
    var before;
    if (i==1) {
      before = "";
    } else {
      before = "&nbsp;";
    }
    var ind = (new String("00" + i));
    ind = ind.substring(ind.length-2, ind.length);
    document.writeln("      <td>");
    document.writeln("        " + before + "<a href=\"javascript:showImage('" + url + "', '" + prefImg + ind + ".jpg');\"><img src='" + url + prefImg + ind + "_.jpg' border='0'></a>");
    document.writeln("      </td>");
  }
  document.writeln("    </tr>");
  document.writeln("  </table>");
  document.writeln("</div>");
}

function resizeLayerScroll() {
	document.all["divMain"].style.height =
		document.body.clientHeight - 100;
}

function menuProp(opt) {
  var class1 = 'menu';
  var class2 = 'menu';
  var class3 = 'menu';
  
  if (opt == '1')
    class1 = 'menuselected';
  if (opt == '2')
    class2 = 'menuselected';
  if (opt == '3')
    class3 = 'menuselected';	

  document.writeln("<STYLE type=text/css>");
  document.writeln("<!--");
  document.writeln("A.menutit:link  { text-decoration: none; COLOR: white; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px;}");
  document.writeln("A.menutit:visited  { text-decoration: none; COLOR: white; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px;}");
  document.writeln("A.menutit:hover { text-decoration: none; COLOR: white; FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 12px;}");
  document.writeln("-->");
  document.writeln("</STYLE>");
  document.writeln("<table width='100%' border='0' cellspacing='2' cellpadding='0'>");
  document.writeln("  <tr>");
  document.writeln("    <td class='"+class1+"' align='center'>");
  document.writeln("	  <a class='menutit' href='propuestas_coordinadora.htm'>Propuestas Coordinadora</a>");
  document.writeln("	</td>");
  document.writeln("	<td class='"+class2+"' align='center'>");
  document.writeln("	  <a class='menutit' href='propuestas_alcaldes.htm'>Propuestas Alcaldes</a>");
  document.writeln("	</td>");
  document.writeln("	<td class='"+class3+"' align='center'>");
  document.writeln("	  <a class='menutit' href='propuestas_junta.htm'>Propuestas Junta</a>");
  document.writeln("	</td>");
  document.writeln("	<td class='texto_menu'>");
  document.writeln("	  &nbsp;");
  document.writeln("	</td>");
  document.writeln("  </tr>");
  document.writeln("</table>");
}

function linkWWW(www) {
    if (www != null && www != "") {
      window.open(www);
    }
  }

function showImage(url, img) {
  document.all["imageBig"].src = url + img;
}

function divScrollImages(url, prefImg, numImg) {
  document.writeln("<div id='divScroll'>");
  document.writeln("  <table width='100%' border='0' cellspacing='0' cellpadding='0'>");
  document.writeln("    <tr id='rowScroll'>");
  for (i=1; i<=numImg; i++) {
    var before;
    if (i==1) {
      before = "";
    } else {
      before = "&nbsp;";
    }
    var ind = (new String("00" + i));
    ind = ind.substring(ind.length-2, ind.length);
    document.writeln("      <td>");
    document.writeln("        " + before + "<a href=\"javascript:showImage('" + url + "', '" + prefImg + ind + ".jpg');\"><img src='" + url + prefImg + ind + "_.jpg' border='0'></a>");
    document.writeln("      </td>");
  }
  document.writeln("    </tr>");
  document.writeln("  </table>");
  document.writeln("</div>");
}

function resizeLayerScroll() {
	document.all["divMain"].style.height =
		document.body.clientHeight - 360;
}

function showImages(pref, num, tit, numImg, urlret, txtcab, desph) {
   var html = "<br><a href='" + urlret + "' class='texto'><- Volver</a><p class='titulo' align='center'>" + tit + "</p>" + 
              "<p class='texto' align='center'>" + txtcab + "</p>" + 
			  "<p class='texto' align='center'>";
   var des = "";
   for (i=1; i<=numImg; i++) {
      html += "<img src='" + pref + completeNum(num+1) + "/" + completeNum(i) + ".jpg'>";
	  des = getDesPhoto(i, desph);
	  if (des != "") {
	    html += "<br>" + des + "<br><br>";
	  }
   }
   html += "</p>";
   document.getElementById('divMain').innerHTML = html;
}

function completeNum(nn) {
   var res = '000000' + nn;
   return res.substr(res.length-2, res.length);
}

function getDesPhoto(num, desph) {

   var res = "";

   var ini = '<' + num + '>';
   var last = '</' + num + '>';
   if (desph.indexOf(ini,0) != -1) {
     res = desph.substring(desph.indexOf(ini,0)+ini.length, desph.indexOf(last,0));
   }
   
   return res;
}