function edLinkP() {
  var R,i;
  i=Math.floor(Math.random()*(25));

  // ------------------ Puzzles -------------------------------
  // crossword puzzles
  if (i==0) {
  R="<a href=\"http://www.edhelper.com/German/crossword.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/puzzlecw.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/crossword.htm\"><FONT SIZE=\"2\">Entwerfen Sie Kreuzwortr&auml;tsel</A><BR></FONT><BR>";
  }

  // logic
  else if (i==1) {
  R="<a href=\"http://www.edhelper.com/German/logic_puzzles.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/prev0214b.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/logic_puzzles.htm\"><FONT SIZE=\"2\">Logikr&auml;tsel</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\">Wortkarten</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/German/sudoku.htm\"><img src=\"http://www.edhelperclipart.com/clipart/sudokuthemeprev"+S2+"\.gif\" border=0></a><BR>"+
      "<a href=\"http://www.edhelper.com/German/sudoku.htm\"><FONT SIZE=\"2\">Sudoku R&auml;tsel</A><BR></FONT><BR>";
  }

  // kakuro
  else if (i==7) {
    R="<a href=\"http://www.edhelper.com/German/kakuro.htm\"><img src=\"http://www.edhelperclipart.com/clipart/kakurothemeprev.gif\" border=0></a><BR>"+
      "<a href=\"http://www.edhelper.com/German/kakuro.htm\"><FONT SIZE=\"2\">Kakuro R&auml;tsel</A><BR></FONT><BR>";
  }

  // logic
  else if (i<10) {
    R="<a href=\"http://www.edhelper.com/German/Math_Logic_Puzzles.htm\"><img border=0 src=\"http://www.edhelperclipart.com/clipart/mathlogicpuzprev.gif\"></a><BR>"+
      "<a href=\"http://www.edhelper.com/German/Math_Logic_Puzzles.htm\">Logikr&auml;tsel (mit Bildern und Raster)</a><BR><BR>";
  }

  // runaway math
  else if (i<14) {
    R="<a href=\"http://www.edhelper.com/German/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\">Mathematik zum Knobeln und Weglaufen</a></b></font><BR><BR>";
  }

  // Hidato
  else if (i<18) {
    R="<a href=\"http://www.edhelper.com/German/hidato_puzzle.htm\"><img border=0 src=\"http://www.edhelperclipart.com/clipart/hidatothemesmall.jpg\"></a><BR>"+
      "<a href=\"http://www.edhelper.com/German/hidato_puzzle.htm\">Hidato Puzzles</a><BR><BR>";
  }

  // word searches
  else {
  R="<a href=\"http://www.edhelper.com/German/wordfind.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/wordsearchthemesmall.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/wordfind.htm\"><FONT SIZE=\"2\">Entwerfen Sie Wortsuchr&auml;tsel</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/German/American_Government.htm\"><IMG src=\"http://www.edhelper.com/clipart/americangovprev.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/American_Government.htm\"><FONT SIZE=\"2\">Die amerikanische Regierung</A><BR></FONT><BR>";
  } else if (i==1) {
  R="<a href=\"http://www.edhelper.com/German/geography/geography.htm\"><IMG src=\"http://www.edhelper.com/clipart/geography/geography.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/geography/geography.htm\"><FONT SIZE=\"2\">Geographie</A><BR></FONT><BR>";
  } else if (i==2) {
  R="<a href=\"http://www.edhelper.com/German/math_history.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/historyofmathsmalla.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/math_history.htm\"><FONT SIZE=\"2\">Die Geschichte der Mathematik</A><BR></FONT><BR>";
  } else if (i==3) {
  R="<a href=\"http://www.edhelper.com/German/explorers.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/explorers.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/explorers.htm\"><FONT SIZE=\"2\">Entdecker</A><BR></FONT><BR>";
  } else if (i==4) {
  R="<a href=\"http://www.edhelper.com/German/ancient_china.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/ancientchinathemesmall.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/ancient_china.htm\"><FONT SIZE=\"2\">Das alte China</A><BR></FONT><BR>";
  } else if (i==5) {
  R="<a href=\"http://www.edhelper.com/German/world_religion.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/religionthemesmall.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/world_religion.htm\"><FONT SIZE=\"2\">Religion</A><BR></FONT><BR>";
  } else if (i==6) {
  R="<a href=\"http://www.edhelper.com/German/inventors_and_inventions.htm\"><IMG src=\"http://www.edhelper.com/clipart/inventors.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/inventors_and_inventions.htm\"><FONT SIZE=\"2\">Erfinder</A><BR></FONT><BR>";
  } else if (i==7) {
  R="<a href=\"http://www.edhelper.com/German/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/German/ancient_egypt.htm\"><FONT SIZE=\"2\">Das antike &Auml;gypten</A><BR></FONT><BR>";
  } else if (i==8) {
  R="<a href=\"http://www.edhelper.com/German/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/German/ancient_india.htm\"><FONT SIZE=\"2\">Das alte Indien</A><BR></FONT><BR>";
  } else if (i==9) {
  R="<a href=\"http://www.edhelper.com/German/ancient_rome.htm\"><IMG src=\"http://www.edhelperclipart.com/clipart/rome-ancientrometheme.jpg\" alt=\"\" border=\"0\"></a><BR>"+
    "<a href=\"http://www.edhelper.com/German/ancient_rome.htm\"><FONT SIZE=\"2\">Das antike Rom</A><BR></FONT><BR>";
  }
  else {
  R="<a href=\"http://www.edhelper.com/German/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/German/a_history_of_books.htm\"><FONT SIZE=\"2\">Die Geschichte der B&uuml;cher</A><BR></FONT><BR>";
  }
  return R;
}

