// Blendet die Layer ein und aus

var dl = document.layers;
//show,hide
function gl(lay)
{return (dl ? document.layers[lay] : document.all[lay].style);}
function show(objekt)
{gl(objekt).visibility = dl ? "show" : "visible";}
function hide(objekt)
{gl(objekt).visibility = dl ? "hide" : "hidden";}

// Für Verweise aus Select-Boxen
   function Go(x)
   {
    if(x == "nothing")
    {
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
      return;
    }
    else if(x == "end") top.location.href = parent.frames[1].location;
    else
    {
      parent.location.href = x;
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
    }
  }

// Öffnet ein Fenster, welches sich genau in der Mitte des Bildschirms plaziert
function popUpCenteredWindow() {
        
		
		var iMyWidth;
        var iMyHeight;
        iMyWidth = (window.screen.width/2) - (375 + 10); 
        iMyHeight = (window.screen.height/2) - (275 + 30); 
        var win2 = window.open("inhalt.html","main","height=550,width=780,resizable=no,status=no,scrollbars=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight);
        win2.focus();
		
}

// Öffnet einen Verweis aus einem Popup heraus im Opener-Fenster
function jump(URL) {    
		window.opener.location.href = URL;
}

function popup(url, width, height) {
    var params = "width="+width+",height="+height;
	var newwin = window.open(url, 'popup', params);
	newwin.focus();
	
}

function popup_sb(url, width, height) {
    var params = "width="+width+",height="+height+",scrollbars=yes";
	var newwin = window.open(url, 'popup', params);
	newwin.focus();
	
}

function applet_popup(url, width, height) {
    var params = "width="+width+",height="+height;
	var newwin = window.open(url, 'applet_popup', params);
	newwin.focus();
	
}

function openPopup(url,windowName,params) { 
  window.open(url,windowName,params);
}

//Bewegt das Fenster auf den Nullpunkt
function move() {
if (self.moveTo) {
   	self.moveTo(0,0);
	}
}

// Schliesst ein Popup und öffnet einen beliebigen Verweis im opener-Fenster
function closeAndRedirect(url) {
	self.close();
	jump(url);
}

// Browserabfrage (Agent, Version) und führt einen Rollover durch.
// Läd die definierten Bilder vor
var appl=navigator.appName;
var art=parseInt(navigator.appVersion);
var scriptActive=false;
if (appl=="Netscape")
{
  if (art>=3)
    {scriptActive=true;}
}
else if (appl=="Microsoft Internet Explorer")
{
  if (art>=4)
  {scriptActive=true;}
}

if (scriptActive)
{

// preload     
var aimage,bimage,cimage,dimage,eimage,fimage,gimage,himage,kimage,timage,iimage,yimage,y1image,y2image,y3image,y3image,y4image,y5image,y6image,aaaimage,bbimage,ccimage,ddimage,eeimage,ffimage,ggimage,hhimage,kkimage,iiimage,jjimage,kkimage,llimage,mmimage,nnimage,ooimage,ppimage,qqimage,rrimage,ssimage,ttimage,uuimage,vvimage,wwimage,xximage,yyimage,zzimage;

aimage = new Image ();
aimage.src = "../img/b_zurueck_up.gif";
aaimage = new Image ();
aaimage.src = "../img/b_zurueck_down.gif";

bimage = new Image ();
bimage.src = "../img/b_index_up.gif";
baimage = new Image ();
baimage.src = "../img/b_index_down.gif";

cimage = new Image ();
cimage.src = "../img/b_inhalt_up.gif";
caimage = new Image ();
caimage.src = "../img/b_inhalt_down.gif";

dimage = new Image ();
dimage.src = "../img/b_ende_up.gif";
daimage = new Image ();
daimage.src = "../img/b_ende_down.gif";

eimage = new Image ();
eimage.src = "../img/b_weiter_up.gif";
eaimage = new Image ();
eaimage.src = "../img/b_weiter_down.gif";

fimage = new Image ();
fimage.src = "../img/auswahl.gif";
faimage = new Image ();
faimage.src = "../img/auswahlh.gif";

gimage = new Image ();
gimage.src = "../img/button_schliessen.gif";
gaimage = new Image ();
gaimage.src = "../img/button_schliessenh.gif";

himage = new Image ();
himage.src = "../img/button_weiter.gif";
haimage = new Image ();
haimage.src = "../img/button_weiterh.gif";

iimage = new Image ();
iimage.src = "../img/button_zurueck.gif";
iaimage = new Image ();
iaimage.src = "../img/button_zurueckh.gif";

kimage = new Image ();
kimage.src = "img/s_08.jpg";
kaimage = new Image ();
kaimage.src = "img/s_08h.gif";

timage = new Image ();
timage.src = "../img/b_drucken_up.gif";
taimage = new Image ();
taimage.src = "../img/b_drucken_down.gif";

iimage = new Image ();
iimage.src = "img/information_up.gif";
iaimage = new Image ();
iaimage.src = "img/information_down.gif";

yimage = new Image ();
yimage.src = "img/button_up.gif";
yaimage = new Image ();
yaimage.src = "img/button_down.gif";

y1image = new Image ();
y1image.src = "img/button_up.gif";
y1aimage = new Image ();
y1aimage.src = "img/button_down.gif";

y2image = new Image ();
y2image.src = "img/button_up.gif";
y2aimage = new Image ();
y2aimage.src = "img/button_down.gif";

y3image = new Image ();
y3image.src = "img/button_up.gif";
y3aimage = new Image ();
y3aimage.src = "img/button_down.gif";

y4image = new Image ();
y4image.src = "img/button_up.gif";
y4aimage = new Image ();
y4aimage.src = "img/button_down.gif";

y5image = new Image ();
y5image.src = "img/button_up.gif";
y5aimage = new Image ();
y5aimage.src = "img/button_down.gif";

y6image = new Image ();
y6image.src = "img/button_up.gif";
y6aimage = new Image ();
y6aimage.src = "img/button_down.gif";

aaaimage = new Image ();
aaaimage.src = "img/alphabet/ab.gif";
aaaaimage = new Image ();
aaaaimage.src = "img/alphabet/ar.gif";

bbimage = new Image ();
bbimage.src = "img/alphabet/bb.gif";
bbaimage = new Image ();
bbaimage.src = "img/alphabet/br.gif";

ccimage = new Image ();
ccimage.src = "img/alphabet/cb.gif";
ccaimage = new Image ();
ccaimage.src = "img/alphabet/cr.gif";

ddimage = new Image ();
ddimage.src = "img/alphabet/db.gif";
ddaimage = new Image ();
ddaimage.src = "img/alphabet/dr.gif";

eeimage = new Image ();
eeimage.src = "img/alphabet/eb.gif";
eeaimage = new Image ();
eeaimage.src = "img/alphabet/er.gif";

ffimage = new Image ();
ffimage.src = "img/alphabet/fb.gif";
ffaimage = new Image ();
ffaimage.src = "img/alphabet/fr.gif";

ggimage = new Image ();
ggimage.src = "img/alphabet/gb.gif";
ggaimage = new Image ();
ggaimage.src = "img/alphabet/gr.gif";

hhimage = new Image ();
hhimage.src = "img/alphabet/hb.gif";
hhaimage = new Image ();
hhaimage.src = "img/alphabet/hr.gif";

iiimage = new Image ();
iiimage.src = "img/alphabet/ib.gif";
iiaimage = new Image ();
iiaimage.src = "img/alphabet/ir.gif";

jjimage = new Image ();
jjimage.src = "img/alphabet/jb.gif";
jjaimage = new Image ();
jjaimage.src = "img/alphabet/jr.gif";

kkimage = new Image ();
kkimage.src = "img/alphabet/kb.gif";
kkaimage = new Image ();
kkaimage.src = "img/alphabet/kr.gif";

llimage = new Image ();
llimage.src = "img/alphabet/lb.gif";
llaimage = new Image ();
llaimage.src = "img/alphabet/lr.gif";

mmimage = new Image ();
mmimage.src = "img/alphabet/mb.gif";
mmaimage = new Image ();
mmaimage.src = "img/alphabet/mr.gif";

nnimage = new Image ();
nnimage.src = "img/alphabet/nb.gif";
nnaimage = new Image ();
nnaimage.src = "img/alphabet/nr.gif";

ooimage = new Image ();
ooimage.src = "img/alphabet/ob.gif";
ooaimage = new Image ();
ooaimage.src = "img/alphabet/or.gif";

ppimage = new Image ();
ppimage.src = "img/alphabet/pb.gif";
ppaimage = new Image ();
ppaimage.src = "img/alphabet/pr.gif";

qqimage = new Image ();
qqimage.src = "img/alphabet/qb.gif";
qqaimage = new Image ();
qqaimage.src = "img/alphabet/qr.gif";

rrimage = new Image ();
rrimage.src = "img/alphabet/rb.gif";
rraimage = new Image ();
rraimage.src = "img/alphabet/rr.gif";

ssimage = new Image ();
ssimage.src = "img/alphabet/sb.gif";
ssaimage = new Image ();
ssaimage.src = "img/alphabet/sr.gif";

ttimage = new Image ();
ttimage.src = "img/alphabet/tb.gif";
ttaimage = new Image ();
ttaimage.src = "img/alphabet/tr.gif";

uuimage = new Image ();
uuimage.src = "img/alphabet/ub.gif";
uuaimage = new Image ();
uuaimage.src = "img/alphabet/ur.gif";

vvimage = new Image ();
vvimage.src = "img/alphabet/vb.gif";
vvaimage = new Image ();
vvaimage.src = "img/alphabet/vr.gif";

wwimage = new Image ();
wwimage.src = "img/alphabet/wb.gif";
wwaimage = new Image ();
wwaimage.src = "img/alphabet/wr.gif";

xximage = new Image ();
xximage.src = "img/alphabet/xb.gif";
xxaimage = new Image ();
xxaimage.src = "img/alphabet/xr.gif";

yyimage = new Image ();
yyimage.src = "img/alphabet/yb.gif";
yyaimage = new Image ();
yyaimage.src = "img/alphabet/yr.gif";

zzimage = new Image ();
zzimage.src = "img/alphabet/zb.gif";
zzaimage = new Image ();
zzaimage.src = "img/alphabet/zr.gif";


 /*       function roll(bildName,bildQuelle)
        {
        document.images[bildName].src = bildQuelle.src;
        }*/
}

function roll(bildName,bildQuelle) {
	document.images[bildName].src = bildQuelle.src;
}

function Drucken()
{

 if (window.print) self.print();

 if(document.all && navigator.appVersion.substring(22,23)==4)
  {

  self.focus();
  var OLECMDID_PRINT = 6;
  var OLECMDEXECOPT_DONTPROMPTUSER = 2;
  var OLECMDEXECOPT_PROMPTUSER = 1;
  var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH="0" HEIGHT="0" CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
  document.body.insertAdjacentHTML('beforeEnd',WebBrowser);
  WebBrowser1.ExecWB(OLECMDID_PRINT,OLECMDEXECOPT_DONTPROMPTUSER);
  WebBrowser1.outerHTML = '';

  }
}

function hinweis()
{

alert ("Diese Funktion wird noch implementiert!");

}
