

/**
 *
 */
firstRandom = -1;
secondRandom = -1;
/**
 *
 */
function ShowHide() {
  if (firstRandom == -1) { StartShowHide(); }
  else { EndShowHide(); }
}
/**
 *
 */
function show(x,y) {
  document.getElementById(x).style.display = 'block';
  document.getElementById(y).style.display = 'none';
  return false;
}
/**
 *
 */
function hide(x,y) {
  document.getElementById(x).style.display = 'block';
  document.getElementById(y).style.display = 'none';
  return false;
}
/**
 *
 */
function StartShowHide() {
  firstRandom = getRan();
  secondRandom = getRan();
  s = "<div class=\"trigger\" id=\""+firstRandom+"\">" +
      "<img src='wp-content/uploads/buttons/show.gif' onClick=\"show('"+secondRandom+"','"+firstRandom+"');\">" +
      "</div>" +
      "<div class=\"show_hide\" style=\"display: none;\" id=\""+secondRandom+"\">" +
      "<table border='0'><tr><td>";
  document.write(s);
}
/**
 *
 */
function EndShowHide() {
  s =
     "</td></tr>"+
     "<tr><td align='right'>"+
     "<div class=\"trigger\">" +
     "<img src='wp-content/uploads/buttons/hide.gif' onClick=\"hide('"+firstRandom+"','"+secondRandom+"');\">" +
     "</div>" +
     "</td></tr></table>"+
     "</div>";
  document.write(s);
  firstRandom = -1;
  secondRandom = -1;
}
/**
 *
 */
function getRan() { return Math.floor(Math.random()*10000); }



