var columnspan;
window.defaultStatus = "Schmuck aus Edelsteinen und Heilsteinen"

function DesignOfWebsite(textcolumns)
{ var type;
  if   (textcolumns == 2) { columnspan = ''; } else { columnspan = 'colspan=3'; }
  document.write('<body class="bgbody">');
  document.write('<a name="top"></a>');
  document.write('<table width="1004" height="100%" valign="top" cellpadding="0" cellspacing="0" border="0">');
  document.write('<colgroup> <col width="260"> <col width="744"> </colgroup>');

  // Show picture top-left
  document.write('<tr><td valign="top">');
  document.write('        <table width="260" valign="top" cellpadding="0" cellspacing="0" border="0">');
  document.write('        <colgroup> <col width="130"> <col width="130"> </colgroup>');
  document.write('        <tr><td colspan="2" height="170" width="260"><a href="index.html"><img src="schmuck_heilstein.jpg" width="260" height="170" alt="Schmuck Bild" border="0"></a></td></tr>');

  // Main menu items 
  document.write('        <tr><td class="bgmainmenu" height="302" align="right" valign="top">');
  if (locContains('edelsteine_heilwirkung_1')) type = "navimain1"; else type = "navimain";
  document.write('                <a href="edelsteine_heilwirkung_1.html" class="' + type + '" style="top:194px;">Steine von [A-C]</a><br>');
  if (locContains('edelsteine_heilwirkung_2')) type = "navimain1"; else type = "navimain";
  document.write('                <a href="edelsteine_heilwirkung_2.html" class="' + type + '" style="top:218px;">von [D-K]</a><br>');
  if (locContains('edelsteine_heilwirkung_3')) type = "navimain1"; else type = "navimain";
  document.write('                <a href="edelsteine_heilwirkung_3.html" class="' + type + '" style="top:242px;">von [L-P]</a><br>');
  if (locContains('edelsteine_heilwirkung_4')) type = "navimain1"; else type = "navimain";
  document.write('                <a href="edelsteine_heilwirkung_4.html" class="' + type + '" style="top:266px;">von [Q-Z]</a><br>');
  // Welcome grafic
  document.write('<div style="position:absolute; left:260px; top:117px; z-index:4"><img src="schmuck_welcome.gif" width="302" height="54" alt="Schmuck Grafik" border="0"></div>');
  document.write('            </td>');
  // Picture in Sub menu area
  document.write('            <td class="bgsubmenu" height="318" align="right" valign="top"><img src="schmuck_blank.gif" width="130" height="8" alt="" border="0"><br><img src="schmuck.gif" width="129" height="302" alt="" border="0"><br><img src="schmuck_blank.gif" width="130" height="8" alt="" border="0"></td>');
  document.write('        </tr>');

  // Navi sub area
  document.write('        <tr><td colspan="2" class="bghorizmenu" height="80" align="right" valign="bottom"><a href="http://www.balmy-noble.de/kontakt.html" class="normalblack" style="text-align:right; text-decoration:none;">impressum&nbsp;&nbsp;</a><br><img src="schmuck_blank.gif" width="10" height="7" alt="" border="0"></td>');
  document.write('        </tr>');
  document.write('        </table>');
  document.write('    </td>');

  // Main content area
  document.write('    <td valign="top">');
  document.write('        <table width="744" cellpadding="0" cellspacing="0" border="0">');
  document.write('        <colgroup> <col width="40"> <col width="480"> <col width="40"> <col width="184"> </colgroup>');
  document.write('        <tr><td colspan="4" valign="top"><img src="schmuck_logo.gif" width="744" height="170" alt="" border="0"></td></tr>');
  document.write('        <tr class="bgtextarea" height="478">');
  document.write('            <td width="40">&nbsp;</td>');
  if (textcolumns == 1)
  document.write('            <td ' + columnspan + ' width="744" height="100%" align="left" valign="top"><img src="schmuck_blank.gif" width="480" height="35" alt="" border="0"><br>');
  else 
  document.write('            <td ' + columnspan + ' width="520" height="100%" align="left" valign="top"><img src="schmuck_blank.gif" width="480" height="35" alt="" border="0"><br>');
}

function Footer(spacing)
{ if (spacing == 0) { spacing = "85"; }
  document.write('<p class="smallgray" style="line-height:2.0; margin-top:' + spacing + 'px; text-align:center"><a href="http://www.balmy-noble.de/copyright.html">Rechtliche Hinweise</a>');
}

function SmallColumn()
{ document.write('<br><br></p>');
  document.write('            </td>');
  if (columnspan == '') { 
  document.write('            <td width="40" height="100%" valign="top">&nbsp;</td>');
  document.write('            <td width="184" height="100%" valign="top"><img src="schmuck_blank.gif" width="184" height="49" alt="" border="0"><br>'); }
}

function EndOfWebsite()
{ if (columnspan == '') { 
  document.write('            </td>'); }
  document.write('        </tr>');
  document.write('        </table>');
  document.write('    </td>');
  document.write('<tr>');
  document.write('</table>');
  document.write('</body></html>');
}

// Does URL contains certain string (=strSubstr)?
function locContains(strSubstr)
{ var strHREF = new String(window.location.href);
  if   (strHREF.indexOf(strSubstr) != -1) { return true; }
  else { return false; }
}

// print mail address
function liame(address,re,content,tip)
{ var str = "<a href=\"mailto:";
  if (re!="") { var re1 = "?subject=" + re; } else { var re1 = ""; }
  if (content!="") { var content1 = "&body=" + content; } else { var content1 = ""; }
  if (tip!="") { var tip1 = " title=\"" + tip + "\""; } else { var tip1 = ""; }
  document.write(str + address + '@balmy-noble.de' + re1 + content1 + '"' + tip1 + '>' + address + '@balmy-noble.de</a>');
}

