bunBbcodeWrapperCheckIndex = 100;
function checkForPunBbcodeWrapper() {
  if(bunBbcodeWrapperCheckIndex-- < 0) {
    return;
  }
  if(document.getElementById("pun_bbcode_wrapper") == null) {
    setTimeout('checkForPunBbcodeWrapper()',100);
    return;
  }
  else {
    divCards = document.createElement('div');
    divCards.id = "pun_bbcode_cards";
    document.getElementById("pun_bbcode_wrapper").appendChild(divCards);
    document.getElementById("pun_bbcode_cards").innerHTML =
      "<img src=\"extensions/pun_bbcode_bar_poker_addon/img/club.png\" width=\"15\" height=\"15\" alt=\":card_club\" onclick=\"insert_text(' :card_club ', '');\" tabindex=\"24\" />" +
      "<img src=\"extensions/pun_bbcode_bar_poker_addon/img/spade.png\" width=\"15\" height=\"15\" alt=\":card_spade\" onclick=\"insert_text(' :card_spade ', '');\" tabindex=\"25\" />" +
      "<img src=\"extensions/pun_bbcode_bar_poker_addon/img/diamond.png\" width=\"15\" height=\"15\" alt=\":card_diamond\" onclick=\"insert_text(' :card_diamond ', '');\" tabindex=\"26\" />" +
      "<img src=\"extensions/pun_bbcode_bar_poker_addon/img/heart.png\" width=\"15\" height=\"15\" alt=\":card_heart\" onclick=\"insert_text(' :card_heart ', '');\" tabindex=\"27\" />";
  }
}
