/*
	Datei       : gestaltung_einfach.js
	Autor       : Andreas Zierhut
	E-Mail      : Andreas.Zierhut@t-online.de
	Datum       : 25.01.2000
	Version     : 1.00
	Beschreibung: Gestaltungsdatei für die Suchmaschine III, Methoden und Konfiguration.
	              Diese Datei darf angepaßt/verändert werden.
	              Der Kommentar muß in der Datei verbleiben.

	&copy;Copyright 2000 by Andreas Zierhut. Alle Rechte vorbehalten.
*/

// -------------- Beginn der Konfiguration -------------- //

var Felder = new Array('Autor', 'Beschreibung', 'Stichw&ouml;rter', 'Titel', 'URL');
var Kuerzel = new Array('author', 'desc', 'kw', 'title', 'url');

var Kategorien = new Array('Allgemein', 'DHTML', 'HTA', 'JavaScript', 'Tools');

var CTexte = new Array('Nicht ber&uuml;cksichtigen', 'Ber&uuml;cksichtigen');
var STexte = new Array('Wortanfang', 'Wortende', 'Wortanfang/-ende', 'Beliebiger Stelle', 'Ganzes Wort');
var VTexte = new Array('UND - Alle Begriffe finden', 'ODER - Einen Begriff finden', 'NICHT UND - Umkehrung zu UND', 'NICHT ODER - Umkehrung zu ODER');
var TTexte = new Array(10, 20, 30, 50, 75, 100);

var UseAnchor = false;
var Optionen = false;

function Gestaltung()
{
  this.UeberFont       = new Font('#E0E0E0', 'Arial,Helvetica,Sans-Serif', '80%', '600', 'normal', 'none');
  this.OptionenFont    = new Font('#B00000', 'Arial,Helvetica,Sans-Serif', '80%', '600', 'normal', 'none');
  this.TextFont        = new Font('#404040', 'Arial,Helvetica,Sans-Serif', '80%', '600', 'normal', 'none');
  this.LinkFont        = new Font('#000080', 'Arial,Helvetica,Sans-Serif', '80%', '600', 'normal', 'underline');
  this.SelectFont      = new Font('#000000', 'Arial,Helvetica,Sans-Serif', '80%', 'normal', 'normal', 'none');
  this.InputFont       = new Font('#000000', 'Arial,Helvetica,Sans-Serif', '80%', 'normal', 'normal', 'none');
  this.ButtonFont      = new Font('#000000', 'Arial,Helvetica,Sans-Serif', '80%', 'normal', 'normal', 'none');

  this.TextFieldSize   = ie ? 20 : 10;

  this.BgColor         = '#E0E0E0';
  this.UeberBgColor    = '#000080';
  this.BorderColor     = '#000000';
}

// --------------- Ende der Konfiguration --------------- //

var ns = document.layers ? true : false;
var ie = document.all ? true : false;

var g = new Gestaltung();

function Font(Color, fontFamily, fontSize, fontWeight, fontStyle, textDecoration)
{ this.Color = Color; this.fontFamily = fontFamily; this.fontSize = fontSize; this.fontWeight = fontWeight; this.fontStyle = fontStyle; this.textDecoration = textDecoration; this.getStyle = getStyle; }

function getStyle()
{ return('color: '+this.Color+'; font-family: '+this.fontFamily+'; font-size: '+this.fontSize+'; font-weight: '+this.fontWeight+'; font-style: '+this.fontStyle+'; text-decoration: '+this.textDecoration+';'); }

function getCSS()
{
  return('<style type="text/css">\n' +
         '  .Ueber     { '+g.UeberFont.getStyle()+' }\n' +
         '  .Option    { '+g.OptionenFont.getStyle()+' }\n' +
         '  .Text      { '+g.TextFont.getStyle()+' }\n' +
         '  A          { '+g.LinkFont.getStyle()+' }\n' +
         '  .Select    { '+g.SelectFont.getStyle()+' }\n' +
         '  .Input     { '+g.InputFont.getStyle()+' }\n' +
         '  .Button    { '+g.ButtonFont.getStyle()+' }\n' +
         '<\/style>');
}

function getTextField()
{
  var Ergebnis = (ns ? '<span class="Input">' : '') +
                 '<input type="text" name="eingabe" size=' + g.TextFieldSize + (ie ? ' class="Input"' : '') + '>' +
                 (ns ? '</span>\n' : '\n');

  return Ergebnis;
}

function getSuchButton()
{
  var Ergebnis = (ns ? '<span class="Button">' : '') +
                 '<input type="button" value="Go!" onClick="suche(document.formular.eingabe.value,0,true)"' + (ie ? ' class="Button"' : '') + '>' +
                 (ns ? '</span>\n' : '\n');

  return Ergebnis;
}

function getSuchformular()
{
  var Erg = '<center><MAP NAME="suche"><AREA SHAPE="RECT" COORDS="513,107,588,129" HREF="http://www.altavista.de/doc/help/index.html"><AREA SHAPE="RECT" COORDS="329,108,513,129" HREF="http://www.altavista.de"><AREA SHAPE="RECT" COORDS="172,109,329,129" HREF="http://hammer.prohosting.com/~censere/profi.html"><AREA SHAPE="RECT" COORDS="110,108,172,129" HREF="http://hammer.prohosting.com/~censere/index.html"></MAP><img src="such3.jpg" width=700 height=130 alt="Suchmaschine III" usemap="#suche" border=0></center>\n\n' +
            '<form name="formular" onSubmit="suche(document.formular.eingabe.value,0,true);return false;">\n\n' +
            '<center><table border=0 cellspacing=0 cellpadding=1><tr><td bgColor="'+g.BorderColor+'"><table border=0 cellspacing=0 cellpadding=0><tr><td bgColor="'+g.BgColor+'">\n' +
            '<table border=0 cellspacing=0 cellpadding=5>\n' +
            '  <tr>\n' +
            '    <td class="Text">Suchbegriff eingeben:</td>\n' +
            '  </tr>\n' +
            '  <tr>\n' +
            '    <td>\n' +
            getTextField() + getSuchButton() +
            '    </td>\n' +
            '  </tr>\n' +
            '</table>\n' +
            '</td></tr></table></td></tr></table></center>\n\n' +
            '</form>\n';

  return Erg;
}