<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type"     content="text/html; charset=ISO-8859-1"/>
    <meta http-equiv="Content-Language" content="de"/>
    <meta http-equiv="Cache-Control"    content="no-cache"/>
    <meta http-equiv="Cache-Control"    content="post-check=0"/>
    <meta http-equiv="Cache-Control"    content="pre-check=0"/>
    <meta http-equiv="Pragma"           content="no-cache"/>
    <meta http-equiv="Expires"          content="0"/>

    <meta name="Robots"     content="index,follow"/>
    <meta name="Copyright"  content="www.WatchMyCam.de"/>
    <meta name="Author"     content="www.WatchMyCam.de"/>
    <meta name="Publisher"  content="www.WatchMyCam.de"/>
    <link rel="Copyright"   title="www.WatchMyCam.de"  href="mailto:info%40watchmycam.de?subject=WatchMyCam%20Homepage"/>
    <link rel="Author"      title="www.WatchMyCam.de"  href="mailto:info%40watchmycam.de?subject=WatchMyCam%20Homepage"/>
    <link rel="Publisher"   title="www.WatchMyCam.de"  href="mailto:info%40watchmycam.de?subject=WatchMyCam%20Homepage"/>

    <title>WatchMyCam - Meine Homepage</title>

    <script language="JavaScript" type="text/JavaScript">
    //<!--



      ////////////////// AB HIER ANPASSEN //////////////////////////////////////

      // bitte hier die Internet-Adresse des PC und den Port angeben!
      // (z.B. "http://watchmycam.dyndns.net:37211" oder "http://84.184.84.184:37211")
      var URLmeinWebcamPC    = "";

      // bitte kopiere diese beiden statischen Bilder aus dem Template-Verzeichnis
      // der Software auf den Webspace Deiner Homepage und gib hier die URLs dazu an

      var URLofflineImage    = "http://www.WatchMyCam.de/images/offline.jpg";
      var URLconnectingImage = "http://www.WatchMyCam.de/images/connecting.jpg";

      ////////////////// ENDE DER ANPASSUNGEN //////////////////////////////////




      var ImageCounter = 0;
      var cookieName   = 'WatchMyCam_Homepage';
      var cookieValue  = '';


      function StartImage()
      {
        document.images.webcam.onload  = LoadImage;
        document.images.webcam.onerror = LoadImage;
        document.images.webcam.src     = URLconnectingImage;
      }

      function LoadImage()
      {
        ImageCounter++;
        document.images.webcam.onerror = LoadError;
        document.images.webcam.src     = URLmeinWebcamPC + "/GetImage?width=0&height=0&nickname=- Homepage-Besucher -&thumbnail=N&nochat=Y&uniqueid="+cookieValue+"&unique="+ImageCounter;
      }

      function LoadError()
      {
        document.images.webcam.onload  = "";
        document.images.webcam.onerror = "";
        document.images.webcam.src     = URLofflineImage;
      }

      if (window.addEventListener)
      {
        window.addEventListener('load', StartImage, false);
      }
      else
        if (window.attachEvent)
        {
          window.attachEvent('onload', StartImage);
        }

      if (document.cookie)
      {
        var pos = 0;

        cookieValue = document.cookie;

        pos = cookieValue.indexOf(cookieName+'=');
        if (pos >= 0)
        {
          cookieValue = cookieValue.substr(pos + cookieName.length + 1, cookieValue.length);

          pos = cookieValue.indexOf(';');
          if (pos < 0)
            pos = cookieValue.length;

          cookieValue = cookieValue.substr(0, pos);
        }
        else
          cookieValue = '';
      }

      if (cookieValue.length == 0)
      {
        cookieValue = (new Date).valueOf() * Math.random();
        document.cookie = cookieName + '=' + cookieValue + '; expires=0;';
      }

    //-->
    </script>

    <style type="text/css">
      *, body   {margin: 0px; padding: 0px; border: none;}
      body      {background-color: #ffe;}
      body div  {margin: 20px; padding: 20px; border: 1px solid #aaf; background-color: #eef;}
      div div   {margin: 10px; padding: 0px; border: none;}
    </style>
  </head>

  <!--          WEBCAM-IMAGE BELIEBIG IN DIE WEBSEITE INTEGRIEREN            -->

  <body>
    <center>
      <div>
        <div><b>WatchMyCam</b></div>
        <div><img name="webcam" src="." alt="mein Webcambild" /></div>
        <div><a href="http://www.WatchMyCam.de" target="_blank">www.WatchMyCam.de</a></div>
      </div>
    </center>
  </body>

</html>
