// =========================================================================================*
//   Globale Variablen
// =========================================================================================*
  var vNavOld = "0";
  var vNavVers  =  navigator.appVersion;
  var vNavVers0 = (navigator.appVersion.substr(0,1) + navigator.appVersion.substr(2,1));
  var vNavVers1 = navigator.appVersion.substr(0,1);
  var vNavVers2 = navigator.appVersion.substr(2,1);
  var vNavVers3 = navigator.appVersion.substr(3);
  var vNavName = navigator.appName;
  var vNavNam0 = "XX";
  var vNavNam1 = (vNavName + " " +  vNavVers1 + "." + vNavVers2);
  var vDomNS = "0";
  var vDomIE = "0";
  var vDomW3C = "0";
  var vPwd = "XXXXXXX";
  var vUnlock = "n";
  var  vCookie = "";
  var  vCookVal1 = "";
  var  vCookVal2 = "";
  var  vCookVal3 = "";
  var  vCookVal4 = "";
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Browsernamen festlegen - alte Browserversion erkennen
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if (vNavName == "Microsoft Internet Explorer") { vNavNam0 = "IE"; }
  if (vNavName == "Opera") { vNavNam0 = "OP"; }
  if ((vNavName == "Netscape") && (vNavVers1 == "5")) { vNavNam0 = "FF"; }
  if ((vNavName == "Netscape") && (vNavVers1 != "5"))  { vNavNam0 = "NS"; }
  if (vNavVers1 < "4") { vNavOld = "1"; }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Objektmodell ermitteln
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if (document.layers)  vDomNS = "1"; 
  if (document.all)  vDomIE = "1";
  if (document.getElementByID)  vDomW3C = "1"; 
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Netscape 4.x
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if ((document.layers) && (vNavNam0 == "NS") && (vNavVers1 == "4"))
      { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=rightClick; }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Netscape ab Version 6.x
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if ((document.getElementByID) && (vNavNam0 == "NS"))
     { if (vNavVers0 == "60") { document.addEventListener("mouseup",rightClick,false); } 
       if (vNavVers0 >= "61") { document.addEventListener("click",rightClick,false); }  }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Firefox 1.5 ( intern Netscape 5.0)
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if (vNavNam0 == "FF")  { document.oncontextmenu=rightClick; } 
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Opera
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if (vNavNam0 == "OP")  { document.onmousedown=rightClick; } 
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//   Micosoft Internet Explorer ab Version 4.x
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
  if ((document.all) && (vNavNam0 == "IE"))
     { if (vNavVers1 == "4") { document.onmousedown=rightClick; }
       if (vNavVers1 > "4")   { document.oncontextmenu=rightClick; }  }

// =========================================================================================*
//   Funktion - Rechtsklicksperre
// =========================================================================================*
  function rightClick(e)
     {  var vClick = true;
              vUnlock = "n"; 
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//      Alte Browserversion
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------* 
        if (vNavOld == "1")
           { if (vNavNam0 == "NS")
                {alert(vNavNam1 + "\nBitte neue Browserversion installieren !"); return false; }
             else
                {alert(vNavNam1 + "\nBitte neue Browserversion installieren !"); location.href = "http://www.microsoft.de"; }
           }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//      Microsoft Internet Explorer
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*   
        if ((vNavNam0 == "IE") && (event.button == 2 || event.button == 3)) 
             { Unlock();
               if (vUnlock == "j")  { return; }
               vClick = false;
               ShowInfo(); }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//      Firefox
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*   
        if ((vNavNam0 == "FF") && (e.which == 2 || e.which == 3))
             { Unlock();
               if (vUnlock == "j")  { return; } 
               vClick = false;
               e.preventDefault(); 
               InfoKlick(); }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//     Opera
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*   
        if (vNavNam0 == "OP") 
           { if (e.button == 2)  
                 { Unlock();
                   if (vUnlock == "j")  { return; }  
                   vClick = false; 
                   InfoKlick();  }
           }    
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//      Netscape 
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------* 
        if (vNavNam0 == "NS")
           { if ((vNavVers0 == "60") && (e.button == 2 || e.button == 3))
                   { Unlock(); 
                      if (vUnlock == "j")  { return; }
                      vClick = false; 
                      e.preventDefault();
                      InfoKlick();  }
                   
             if ((vNavVers0 >= "61") && (e.button == 1 || e.button == 2)) 
                  { Unlock();
                    if (vUnlock == "j")  { return; } 
                    vClick = false; 
                    e.preventDefault();
                    InfoKlick(); } 
           }
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
//      Kein Rechtsklick oder unbekannter Browser
// ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*
        if (vClick) { return true; } else { return false; }
    }
// =========================================================================================*
//   Funktion - Prüfung ob Passwort vorhanden
// =========================================================================================*
  function Unlock()

     {    vUnlock = "n";
          if (document.cookie)
             { vCookie = document.cookie;
               vPwd = vCookie.substr(vCookie.indexOf("d=")+2,7);
               if (vPwd == "bKf@omU")  {  vUnlock = "j"; }
             } 
     }
// =========================================================================================*
//   Funktion - Browserinfo und CSS Logo anzeigen
// =========================================================================================*
  function ShowInfo()
     { Q = confirm ("Kopierhinweis anzeigen?"); if (Q) { InfoKlick(); } }

  function InfoKlick()
   { PopUp(0,"css2info.html","IK00",410,270,0,0,0); }
// =========================================================================================*
//   Funktion - Passwortprüfung
// =========================================================================================*
  function Inside()
     { vPwdEin = document.getElementById('InsideCode').value;

       CookieControl(vPwdEin); CookieText();
 
       return;   
     }   
// =========================================================================================*
//   Funktion - Focus-Umrandung unterdrücken
// =========================================================================================*
function LinkOnblur()
   { vAlinks = document.getElementsByTagName("A");
     for (i = 0; i < vAlinks.length; i++)
          { vAlinks[i].onfocus = new Function("if (this.blur) this.blur()"); }
   }
//========== Ende JavaScripts ==================================================================*
