function lesen()
{
//if (navigator.appName=="Opera") {
//location.href="../Abfalltransporte/index.htm";
//}
if (navigator.platform=="WinCE") {
location.href="../Kies/pda.htm";
}
if (navigator.platform=="Palm OS") {
location.href="../Kies/pda.htm";
}
if (navigator.platform=="Symbian OS") {
location.href="../Kies/pda.htm";
}
}

function BilderVorladen()
{
    document.Vorladen = new Array();
 
    if(document.images)
    {
        for(var i = 0; i < BilderVorladen.arguments.length ; i++)
        {
            document.Vorladen[i] = new Image();
            document.Vorladen[i].src = BilderVorladen.arguments[i];
        }
    }
}
function RotatePic() { 
      // name des bildes was getauscht werden soll im html-code (img-tag-name) 
      var BildTDTagID = "bildbg";   
       
      // ordner, wo die bilder gespeichert wurden 
      var BildOrdner = "Bilder/Baustoffe/";     
       
      // dateiname der bilder ohne nummer 
      var BildName = "IMG_";           
       
      // Bildformat (.jpg, .gif, .png, etc.)   
      var BildFormat = ".gif";         
       
      // Anzahl der Bilder im Bildordner 
      var AnzahlBilder = 14;         
       
      // Zahlenwert, mit der die bildernummerierung beginnt 
      var StartCounter = 51;         

      // random zahl ermitteln 
      RandBild = Math.round(Math.random()*AnzahlBilder); 
      if( AnzahlBilder == RandBild ) RandBild = 0; 
      rb = BildOrdner + BildName + (RandBild + StartCounter) + BildFormat; 
       
      if (document.getElementById) { 
         document.getElementById(BildTDTagID).style.backgroundImage='url('+rb+')'; 
      } 
      if (document.all) { 
         document.all[BildTDTagID].style.backgroundImage="url("+rb+")"; 
      } 
   } 
function lesenVorladen()
 { 
lesen();
BilderVorladen('Schlammtransporte/Boden/autobahn_b0.jpg','Spedition/spedition_Leistung0.gif','Spedition/spedition_Referenzen0.gif', 'Spedition/spedition_Unternehmen0.gif', 'Spedition/speditionService0.gif', 'Spedition/spedition_Login0.gif', 'Spedition/spedition_Standort0.gif', 'Baustofflieferant/Kiestransporte.gif', 'Baustofflieferant/Kies.gif', 'Baustofflieferant/mail0.gif', 'Baustofflieferant/schuettgut_kies0.gif', 'Baustofflieferant/schuettgut_kies.gif', 'Baustofflieferant/support0.gif');
}
function Wochentagbild(DivId)
{
var jetzt = new Date();
var TagInWoche = jetzt.getDay();
var Wochentag = new Array("Baustofflieferant/4achser6.gif", "Baustofflieferant/4achser5.gif", "Baustofflieferant/4achser1.gif", "Baustofflieferant/4achser4.gif",
                          "Baustofflieferant/4achser3.gif", "Baustofflieferant/4achser2.gif", "Baustofflieferant/4achser.gif");
var myDivId = document.getElementById(DivId);
myDivId.style.backgroundImage= "url(" + Wochentag[TagInWoche] + ")";
}
function lesenwoche()
{
Wochentagbild('Div0'); 
lesen();
BilderVorladen('Schlammtransporte/Boden/autobahn_b0.jpg','Spedition/spedition_Leistung0.gif', 'Spedition/spedition_Unternehmen0.gif', 'Spedition/speditionService0.gif', 'Spedition/spedition_Login0.gif', 'Spedition/spedition_Standort0.gif', 'Baustofflieferant/Kiestransporte.gif', 'Baustofflieferant/Kies.gif', 'Baustofflieferant/mail0.gif');
RotatePic();
}
