/*******************************************************************************
Copyright (c) 2006 Peter Zottele

eXperience DHTML screenopt
Version Beta 1.0

*******************************************************************************/
function screenopt()
{
sW = screen.width;
sH = screen.height;
// Framesetbreite zB 80%
vP=0.8;
// Navigationsbreite
naviW=200;
// Breite der rechten und linken Tabellenspalte
tabColW=100;
// Breite der rechten und linken Tabellenspalte

/****************************************************************************/
theWp=sW*vP;
theHp=sH*vP;
tabTDwidth=Math.round(theWp)-naviW-tabColW-tabColW;
}
// variable Bilddateien als einfaches Hintergrundbild verwenden

function HG_uni()
{
thePic= new Image();

if (sW >= 800)
 {thePic.src="./images/Kirche_HGu_800.jpg";
        if (sW >= 1000)
         {thePic.src="./images/Kirche_HGu_1024.jpg";
                        if (sW >= 1100)
                 {thePic.src="./images/Kirche_HGu_1152.jpg";
                         if (sW >= 1200)
                         {thePic.src="./images/Kirche_HGu_1280.jpg";}
                 }
          }
 }
 }

// variable Bilddateien als doppeltes Hintergrundbild verwenden

function HG_dopio()
{
thePic= new Image();

if (sW >= 800)
 {thePic.src="./images/Kirche_HG_800.jpg";
        if (sW >= 1000)
         {thePic.src="./images/Kirche_HG_1024.jpg";
                        if (sW >= 1100)
                 {thePic.src="./images/Kirche_HG_1152.jpg";
                         if (sW >= 1200)
                         {thePic.src="./images/Kirche_HG_1280.jpg";}
                 }
          }
 }
 }


 // variable Bild im Klangkörper (oben und unten)

function chor_pic_01()
{
thePic01= new Image();
thePic02= new Image();

if (sW >= 800)
 {thePic01.src="./images/img_800x600/Chor_HG01.jpg";
  thePic02.src="./images/img_800x600/Chor_HG02.jpg";
        if (sW >= 1000)
         {thePic01.src="./images/img_1024x768/Chor_HG01.jpg";
          thePic02.src="./images/img_1024x768/Chor_HG02.jpg";
                        if (sW >= 1100)
                 {thePic01.src="./images/img_1152x864/Chor_HG01.jpg";
                  thePic02.src="./images/img_1152x864/Chor_HG02.jpg";
                         if (sW >= 1200)
                         {thePic01.src="./images/img_1280x960/Chor_HG01.jpg";
                          thePic02.src="./images/img_1280x960/Chor_HG02.jpg";}
                 }
          }
 }
 }

 // variable Bild Matthäuspassion

function chor_mat_01(bild1)
{
thePic01= new Image();
thePic02= new Image();

if (sW >= 800)
 {thePic01.src="./images/img_800x600/"+bild1;
          if (sW >= 1000)
         {thePic01.src="./images/img_1024x768/"+bild1;
                 if (sW >= 1100)
                 {thePic01.src="./images/img_1152x864/"+bild1;
                         if (sW >= 1200)
                         {thePic01.src="./images/img_1280x960/"+bild1;
                         }
                 }
          }
 }
 }

 // variable Bild im Probenplan (oben)

function proben_pic_01()
{
thePic01= new Image();
thePic02= new Image();
thePic03= new Image();

if (sW >= 800)
 {thePic01.src="./images/img_800x600/Probe_01.jpg";
  thePic02.src="./images/img_800x600/Probe_02.jpg";
  thePic03.src="./images/img_800x600/Probe_03.jpg";
        if (sW >= 1000)
         {thePic01.src="./images/img_1024x768/Probe_01.jpg";
           thePic02.src="./images/img_1024x768/Probe_02.jpg";
           thePic03.src="./images/img_1024x768/Probe_03.jpg";
                        if (sW >= 1100)
                 {thePic01.src="./images/img_1152x864/Probe_01.jpg";
                  thePic02.src="./images/img_1152x864/Probe_02.jpg";
                  thePic03.src="./images/img_1152x864/Probe_03.jpg";
                         if (sW >= 1200)
                         {thePic01.src="./images/img_1280x960/Probe_01.jpg";
                          thePic02.src="./images/img_1280x960/Probe_02.jpg";
                          thePic03.src="./images/img_1280x960/Probe_03.jpg";}
                 }
          }
 }
 }
