function edLinkP() {
  var R,i;
  i=Math.floor(Math.random()*(25));

  // ------------------ Puzzles -------------------------------
  // crossword puzzles
  if (i==0) {
  R="<a href=\"http://www.edhelper.com/Spanish/crossword.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/puzzlecw.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/crossword.htm\"><FONT SIZE=\"2\">Crear crucigramas</A><BR></FONT><BR>";
  }

  // logic
  else if (i==1) {
  R="<a href=\"http://www.edhelper.com/Spanish/logic_puzzles.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/prev0214b.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/logic_puzzles.htm\"><FONT SIZE=\"2\">Rompecabezas de l&oacute;gico</A><BR></FONT><BR>";
  }

  // word walls
  else if (i<6) {
  R="<a href=\"http://www.edhelper.com/word_walls.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/wwallpreva.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/word_walls.htm\"><FONT SIZE=\"2\">Murales de palabras</A><BR></FONT><BR>";
  }

  // sudoku
  else if (i==6) {
    var S2,i2;
    i2=Math.floor(Math.random()*(2));
    S2="";
    if (i2==1) {
      S2="2";
    }
    R="<a href=\"http://www.edhelper.com/Spanish/sudoku.htm\"><img src=\"http://www.edhelperclipart.com/clipart/sudokuthemeprev"+S2+"\.gif\" border=0></a><BR>"+
      "<a href=\"http://www.edhelper.com/Spanish/sudoku.htm\"><FONT SIZE=\"2\">Rompecabezas de Sudoku</A><BR></FONT><BR>";
  }

  // kakuro
  else if (i==7) {
    R="<a href=\"http://www.edhelper.com/Spanish/kakuro.htm\"><img src=\"http://www.edhelperclipart.com/clipart/kakurothemeprev.gif\" border=0></a><BR>"+
      "<a href=\"http://www.edhelper.com/Spanish/kakuro.htm\"><FONT SIZE=\"2\">Rompecabezas de Kakuro</A><BR></FONT><BR>";
  }

  // logic
  else if (i<10) {
    R="<a href=\"http://www.edhelper.com/Spanish/Math_Logic_Puzzles.htm\"><img border=0 src=\"http://www.edhelperclipart.com/clipart/mathlogicpuzprev.gif\"></a><BR>"+
      "<a href=\"http://www.edhelper.com/Spanish/Math_Logic_Puzzles.htm\">Acertijos de L&oacute;gica (con gr&aacute;ficas y cuadr&iacute;culas)</a><BR><BR>";
  }

  // runaway math
  else if (i<14) {
    R="<a href=\"http://www.edhelper.com/Spanish/runaway_math_puzzle.htm\"><img src=\"http://www.edhelperclipart.com/clipart/runawaymathsmalllogo.gif\" border=0></a><BR>"+
      "<FONT color=#000099 face=\"Arial, Helvetica, sans-serif\" size=3><b><BR><a href=\"http://www.edhelper.com/runaway_math_puzzle.htm\">Crucigramas de Matem&aacute;ticas</a></b></font><BR><BR>";
  }

  // Hidato
  else if (i<18) {
    R="<a href=\"http://www.edhelper.com/Spanish/hidato_puzzle.htm\"><img border=0 src=\"http://www.edhelperclipart.com/clipart/hidatothemesmall.jpg\"></a><BR>"+
      "<a href=\"http://www.edhelper.com/Spanish/hidato_puzzle.htm\">Hidato Puzzles</a><BR><BR>";
  }

  // word searches
  else {
  R="<a href=\"http://www.edhelper.com/Spanish/wordfind.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/wordsearchthemesmall.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/wordfind.htm\"><FONT SIZE=\"2\">Crear b&uacute;squedas de palabras</A><BR></FONT><BR>";
  }

  return R;
}

function edLinkSS() {
  var R,i;
  i=Math.floor(Math.random()*(11));

  // ------------------ Social Studies -------------------------------
  if (i==0) {
  R="<a href=\"http://www.edhelper.com/Spanish/American_Government.htm\"><IMG src=\"http://www.edhelper.com/clipart/americangovprev.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/American_Government.htm\"><FONT SIZE=\"2\">Gobierno Estadounidense</A><BR></FONT><BR>";
  } else if (i==1) {
  R="<a href=\"http://www.edhelper.com/Spanish/geography/geography.htm\"><IMG src=\"http://www.edhelper.com/clipart/geography/geography.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/geography/geography.htm\"><FONT SIZE=\"2\">Geograf&iacute;a</A><BR></FONT><BR>";
  } else if (i==2) {
  R="<a href=\"http://www.edhelper.com/Spanish/math_history.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/historyofmathsmalla.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/math_history.htm\"><FONT SIZE=\"2\">Historia de las Matem&aacute;ticas</A><BR></FONT><BR>";
  } else if (i==3) {
  R="<a href=\"http://www.edhelper.com/Spanish/explorers.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/explorers.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/explorers.htm\"><FONT SIZE=\"2\">Exploradores</A><BR></FONT><BR>";
  } else if (i==4) {
  R="<a href=\"http://www.edhelper.com/Spanish/ancient_china.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/ancientchinathemesmall.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/ancient_china.htm\"><FONT SIZE=\"2\">Antigua China</A><BR></FONT><BR>";
  } else if (i==5) {
  R="<a href=\"http://www.edhelper.com/Spanish/world_religion.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/religionthemesmall.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/world_religion.htm\"><FONT SIZE=\"2\">Religi&oacute;n</A><BR></FONT><BR>";
  } else if (i==6) {
  R="<a href=\"http://www.edhelper.com/Spanish/inventors_and_inventions.htm\"><IMG src=\"http://www.edhelper.com/clipart/inventors.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/inventors_and_inventions.htm\"><FONT SIZE=\"2\">Los inventores</A><BR></FONT><BR>";
  } else if (i==7) {
  R="<a href=\"http://www.edhelper.com/Spanish/ancient_egypt.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/stories/egypt-ancientegypttheme.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/ancient_egypt.htm\"><FONT SIZE=\"2\">Antiguo Egipto</A><BR></FONT><BR>";
  } else if (i==8) {
  R="<a href=\"http://www.edhelper.com/Spanish/ancient_india.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/stories/india-ancientindiatheme.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/ancient_india.htm\"><FONT SIZE=\"2\">La India antigua</A><BR></FONT><BR>";
  } else if (i==9) {
  R="<a href=\"http://www.edhelper.com/Spanish/ancient_rome.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/rome-ancientrometheme.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/ancient_rome.htm\"><FONT SIZE=\"2\">Antigua Roma</A><BR></FONT><BR>";
  }
  else {
  R="<a href=\"http://www.edhelper.com/Spanish/a_history_of_books.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/stories/books-ahistoryofbookstheme.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/Spanish/a_history_of_books.htm\"><FONT SIZE=\"2\">Historia de los libros</A><BR></FONT><BR>";
  }
  return R;
}

