{if $action == ''}
  <html>
  <head>
  <meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'>

  <title>{$bib_popup_titel}</title>
  <link rel='stylesheet' href='biblepopup.css' type='text/css'>

  <style type='text/css'>
  {literal}
    div input{
    margin:0;
    color:#6487DC;
    font-weight:bold;
    border:1px solid #6487DC;
    cursor:pointer;
    padding:2px 8px;
    text-decoration:none;
    text-shadow:rgba(255,255,255,1) 0 1px 0;
    border-radius:5px;
    -moz-border-radius:5px;
    -khtml-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
    -moz-box-sizing:content-box;
    -webkit-box-sizing:content-box;
    -khtml-box-sizing:content-box;
    box-sizing:content-box;
    }

    /* Big box with list of options */
    #ajax_listOfOptions{
            position:absolute;        /* Never change this one */
            width:250px;        /* Width of box */
            height:200px;        /* Height of box */
            overflow:auto;        /* Scrolling features */
            border:1px solid #6487DC;        /* Dark blue border */
            background-color:#FFF;        /* White background color */
            text-align:left;
            font-family                :        verdana, arial;
            z-index:10000;
    }
    #ajax_listOfOptions div{        /* General rule for both .optionDiv and .optionDivSelected */
            margin:1px;
            padding:1px;
            cursor:pointer;
            font-size:0.9em;
    }
    #ajax_listOfOptions .optionDiv{        /* Div for each item in list */

    }
    #ajax_listOfOptions .optionDivSelected{ /* Selected item in the list */
            background-color:#D6DFF7;
            color:#002276;
            font-family                :        verdana, arial;
            font-weight                :        bold;
    }
    #ajax_listOfOptions_iframe{
            background-color:#F00;
            position:absolute;
            z-index:500;
    }

    form{
            display:inline;
    }
  {/literal}
  </style>
  {literal}
  <script type="text/javascript" src="livesearch/ajax.js"></script>
  <script type="text/javascript" src="livesearch/ajax-dynamic-list.js">
  /************************************************************************************************************
  (C) www.dhtmlgoodies.com, April 2006

  This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.

  Terms of use:
  You are free to use this script as long as the copyright message is kept intact. However, you may not
  redistribute, sell or repost it without our permission.

  Thank you!

  www.dhtmlgoodies.com
  Alf Magne Kalleland

  ************************************************************************************************************/
  </script
  {/literal}
  </head>
  <body style='margin: 0px; padding: 0px;' onload="document.searchform.search_bibel.value ='{$bib_popup_search_text}'">
  <table height='100%' width='100%'>

  <!-- Header -->
  <tr>
    <td height='5%'>
      <table height='100%' width='100%' cellpadding='0' cellspacing='0'>
        <tbody><tr>
          <td class='headline' style='border-bottom: 2px solid #6487DC; padding-top: 3px;' valign='middle' align='center'>

          <form action=?action=suche id="searchform" method="POST" name="searchform">

          <table width='100%'>
           <tr>
             <td width='33%' 'padding-top: 13px;' valign='middle' align='left'>

              <div>
                <input type="text" id="search_bibel" name="search_bibel" value="{$bib_popup_search_text}" onclick="{literal}if(document.searchform.search_bibel.value =='{/literal}{$bib_popup_search_text}{literal}'){document.searchform.search_bibel.value ='';}{/literal}" onkeyup="ajax_showOptions(this,'getWord',event)" size="30">
                <input type="hidden" id="search_bibel_hidden" name="search_bibel_ID"><!-- THE ID OF the textstelle will be inserted into this hidden input -->
             </div>

             </td>
             <td width='33%'  'padding-top: 3px;' valign='middle' align='center'>
               <strong>{$bib_popup_anz_buch} {$bib_popup_buch} {$bib_popup_kapitel}</strong>
             </td>
             <td width='33%'>
             </td>
           </tr>
          </table

          </form>

          </td>
        </tr>
      </tbody>
      </table>

    </td>
  </tr>


  <!-- BODY -->
  <tr>
    <td height='90%' valign='top'>
      <iframe src="bib_popup_body_1984.php?anz_buch={$bib_popup_anz_buch}&buch={$bib_popup_buch}&kapitel={$bib_popup_kapitel}&vers_anf={$bib_popup_vers_anf}&vers_trenner={$bib_popup_vers_trenner}&vers_ende={$bib_popup_vers_ende}&vers_select={$bib_popup_vers_select}&stopmark={$bib_popup_stopmark}#stopmark" style="border:0px #FFFFFF none;" name="body" scrolling="auto" frameborder="0" align=aus marginheight="0px" marginwidth="0px" height="100%" width="100%"></iframe>
    </td>
  </tr>


  <!-- FOOTER -->
  <tr>
    <td height='5%'>

      <table valign='middle' style='border-top: 2px solid #6487DC;' width='99%' align='center' border='0' cellpadding='0' cellspacing='0'>
        <tbody>
        <tr>

          {if $bib_popup_prev == '1'}
            <td style='padding-right: 1px; vertical-align: top;' width='50%'>
            <a target='_top' href="?wort={$bib_popup_prev_buch}&vers_select=N" class='nextprev'><font size=3>&larr;</font> {$bib_popup_prev_buch}</a>
            </td>
          {/if}

          {if $bib_popup_next == '1'}
            <td style='vertical-align: top;' width='50%'>
            <a target='_top' href="?wort={$bib_popup_next_buch}&vers_select=N" class='nextprev'>{$bib_popup_next_buch} <font size=3>&rarr;</font></a>
            </td>
          {/if}

        </tr>
        </tbody>
      </table>

    </td>
  </tr>
  </body>
  </html>
{/if}

{if $action == 'suche'}
  {if $bib_popup_nohit == '1'}
    <html>
        <head>
        <meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'>
        <link rel="stylesheet" href="../templates/{$global_template}/css/styles_pc.php" type="text/css">
        <title>{$bib_popup_nomatch_titel}</title>
        </head>
        <body>
        <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
           <tr>
               <td>
               <div align="center">
                   <table cellspacing="0" cellpadding="0" width="550" border="0">
                       <tr>
                           <td width="10" background="../templates/{$global_template}/images/box_e1.gif">
                           <img height="40" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                           <td nowrap="nowrap" align="left" width="3%" background="../templates/{$global_template}/images/box_top.gif" valign="top"></td>
                           <td width="95%" background="../templates/{$global_template}/images/box_top.gif">
                           <img height="10" src="../templates/{$global_template}/images/blank.gif" width="1"><br>
                           <span class="sh">{$bib_popup_nomatch_titel}</span><br>
                           <img height="5" src="../templates/{$global_template}/images/blank.gif" width="1"></td>
                           <td nowrap="nowrap" align="right" width="1%" background="../templates/{$global_template}/images/box_e2.gif">
                           <img height="40" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                       </tr>
                       <tr>
                           <td width="1%" background="../templates/{$global_template}/images/box_l.gif">
                           <img height="1" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                           <td colspan="2"><br>
                           <p align="center"><b>{$bib_popup_nomatch_text}</b>
                           <p align="center"><a href='?wort=1. Mose 1&vers_select=N'>
                           <img border="0" src="../templates/{$global_template}/images/zurueck.gif"></a>
                           </p>
                           <p></p>
                           <p></p>
                           <p></p>
                           <p></p>
                           <p><br>
                           </p>
                           </td>
                           <td width="1%" background="../templates/{$global_template}/images/box_r.gif">
                           <img height="1" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                       </tr>
                       <tr>
                           <td nowrap="nowrap" align="left" width="1%" background="../templates/{$global_template}/images/box_e3.gif">
                           <img height="16" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                           <td nowrap="nowrap" align="left" width="98%" background="../templates/{$global_template}/images/box_bottom.gif" colspan="2">
                           <img height="16" src="../templates/{$global_template}/images/blank.gif" width="8"></td>
                           <td nowrap="nowrap" align="right" width="1%" background="../templates/{$global_template}/images/box_e4.gif">
                           <img height="16" src="../templates/{$global_template}/images/blank.gif" width="22"> </td>
                       </tr>
                   </table>
               </div>
               </td>
           </tr>
        </table>
        </body>
    </html>
  {/if}
{/if}

{if $action == 'suche2'}
  {if $bib_popup_nohit == '1'}
    <html>
        <head>
        <meta http-equiv='content-type' content='text/html; charset=ISO-8859-1'>
        <link rel="stylesheet" href="../templates/{$global_template}/css/styles_pc.php" type="text/css">
        <title>{$bib_popup_nomatch_titel}</title>
        </head>
        <body>
        <table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
           <tr>
               <td>
               <div align="center">
                   <table cellspacing="0" cellpadding="0" width="550" border="0">
                       <tr>
                           <td width="10" background="../templates/{$global_template}/images/box_e1.gif">
                           <img height="40" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                           <td nowrap="nowrap" align="left" width="3%" background="../templates/{$global_template}/images/box_top.gif" valign="top"></td>
                           <td width="95%" background="../templates/{$global_template}/images/box_top.gif">
                           <img height="10" src="../templates/{$global_template}/images/blank.gif" width="1"><br>
                           <span class="sh">{$bib_popup_nomatch_titel}</span><br>
                           <img height="5" src="../templates/{$global_template}/images/blank.gif" width="1"></td>
                           <td nowrap="nowrap" align="right" width="1%" background="../templates/{$global_template}/images/box_e2.gif">
                           <img height="40" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                       </tr>
                       <tr>
                           <td width="1%" background="../templates/{$global_template}/images/box_l.gif">
                           <img height="1" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                           <td colspan="2"><br>
                           <p align="center"><b>{$bib_popup_nomatch_text}</b>
                           <p align="center"><a href='?wort=1. Mose 1&vers_select=N'>
                           <img border="0" src="../templates/{$global_template}/images/zurueck.gif"></a>
                           </p>
                           <p></p>
                           <p></p>
                           <p></p>
                           <p></p>
                           <p><br>
                           </p>
                           </td>
                           <td width="1%" background="../templates/{$global_template}/images/box_r.gif">
                           <img height="1" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                       </tr>
                       <tr>
                           <td nowrap="nowrap" align="left" width="1%" background="../templates/{$global_template}/images/box_e3.gif">
                           <img height="16" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                           <td nowrap="nowrap" align="left" width="98%" background="../templates/{$global_template}/images/box_bottom.gif" colspan="2">
                           <img height="16" src="../templates/{$global_template}/images/blank.gif" width="8"></td>
                           <td nowrap="nowrap" align="right" width="1%" background="../templates/{$global_template}/images/box_e4.gif">
                           <img height="16" src="../templates/{$global_template}/images/blank.gif" width="22"> </td>
                       </tr>
                   </table>
               </div>
               </td>
           </tr>
        </table>
        </body>
    </html>
  {/if}

  {if $bib_popup_hit == '1'}
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="../templates/{$global_template}/css/styles_pc.php" type="text/css">
    <title>Suchergebnisse</title>
    <style>
    {literal}
    <!--
    .sl,.r{font-weight:normal;margin:0;display:inline}
    .r{font-size:1em}
    .g{margin-top:1em;margin-bottom:1em}
    .a,.a:link{color:green}
    body,td,div,.p,a{font-family:arial,sans-serif}
    -->
    {/literal}
    </style>
    </head>

    <body>
    <table align="center" border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="95%" id="table1">
        <tr>
            <td>
            <div align="center">
                <table valign="top" cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td width="10" background="../templates/{$global_template}/images/box_e1.gif">
                        <img height="40" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td nowrap="nowrap" align="left" width="98%" background="../templates/{$global_template}/images/box_top.gif" valign="top">
                        <img height="10" src="../templates/{$global_template}/images/blank.gif" width="1"><br>
                        <font class="hd">{$bib_popup_match_titel}</font><br>
                        <span class="sh">Treffer: {$bib_popup_anz_treffer}</span><br>
                        <img height="5" src="../templates/{$global_template}/images/blank.gif" width="1"></td>
                        <td nowrap="nowrap" align="right" width="1%" background="../templates/{$global_template}/images/box_e2.gif">
                        <img height="40" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                    </tr>
                    <tr>
                        <td width="1%" background="../templates/{$global_template}/images/box_l.gif">
                        <img height="1" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td>
                        <table valign="top" border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#E7E8ED" width="60%" id="AutoNumber1">

                            {section name=table_data loop=$table_data}
                             <tr>
                              <td>
                                <h2 class=r><a class=l href="?vers_select=Y&stopmark={$table_data[table_data].stopmark}&wort={$table_data[table_data].bibelstelle}"><b>{$table_data[table_data].bibelstelle}</b></a></h2><br>
                                {$table_data[table_data].preview}<br>
                                <p>
                                <p>
                              </td>
                             </tr>
                            {/section}



                         </table>
                        </td>
                        <td width="1%" background="../templates/{$global_template}/images/box_r.gif">
                        <img height="1" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap" align="left" width="1%" background="../templates/{$global_template}/images/box_e3.gif">
                        <img height="16" src="../templates/{$global_template}/images/blank.gif" width="22"></td>
                        <td nowrap="nowrap" align="left" width="98%" background="../templates/{$global_template}/images/box_bottom.gif">
                        <img height="16" src="../templates/{$global_template}/images/blank.gif" width="8"></td>
                        <td nowrap="nowrap" align="right" width="1%" background="../templates/{$global_template}/images/box_e4.gif">
                        <img height="16" src="../templates/{$global_template}/images/blank.gif" width="22"> </td>
                    </tr>
                </table>
            </div>
            </td>
        </tr>
    </table>

    <div align=center>

      {if $bib_popup_start0 == '1'}
        <a href=?action=suche2&start=0><img border="0" src="../templates/{$global_template}/images/left_first.gif"></a>
	    <a href=?action=suche2&start={$bib_popup_start_newstart}><img border="0" src="../templates/{$global_template}/images/left.gif"></a>
      {/if}

      {if $bib_popup_start0 == '2'}
        <img border="0" src="../templates/{$global_template}/images/left_first_grey.gif">
        <img border="0" src="../templates/{$global_template}/images/left_grey.gif">
      {/if}

      {$bib_popup_currpage} / {$bib_popup_pagecount}

      {if $bib_popup_end0 == '1'}
        <a href=?action=suche2&start={$bib_popup_end_newstart}><img border="0" src="../templates/{$global_template}/images/right.gif"></a>
		<a href=?action=suche2&start={$bib_popup_end_last}><img border="0" src="../templates/{$global_template}/images/right_last.gif"></a>
      {/if}

      {if $bib_popup_end0 == '2'}
        <img border="0" src="../templates/{$global_template}/images/right_grey.gif">
        <img border="0" src="../templates/{$global_template}/images/right_last_grey.gif">
      {/if}


    </div>

    </body>
    </html>
  {/if}
{/if}