// *************************************************************************
// Java-Bibiotheksfunktionen - Content

// *************************************************************************

// -------------------------------------------------------------------------
// Variablen
// -------------------------------------------------------------------------

var JSVer     = "1.01 vom 08.08.00";


var TextBack  = "Zur vorherigen Seite";
var TextCopy  = "Copyright und technische Infos";
var TextMail  = "eMail/Kontakt " + HName;
var TextLeer  = "";
var tictex="Wir sind täglich von 10-12 Uhr und 15-18 Uhr für Sie da! +++ ";



var NewCookie = 0;
var TCookie1  = "";
var TCookie2  = "";
var TCookie3  = "";

// -------------------------------------------------------------------------
// Seitenkopf
// -------------------------------------------------------------------------

function Kopf()
{ 
   with(window.document)
   {
     write('<FONT FACE="Arial,Helvetica,Monaco">');
   }
}

// -------------------------------------------------------------------------
// Einfacher Passwortschutz für HTML-Dateien 
// -------------------------------------------------------------------------

function GetPwd(sPwd)
{
   aPwd = prompt("Bitte geben Sie Ihr Passwort ein:", "");

// Passworte vergleichen
   sHref = "";
   if (sPwd == "1")
      if (aPwd == "lcard")
         sHref = "folie001.htm";

// Zugriff freischalten/verweigern
   if (sHref == "")
      alert("Das eingegebene Passwort ist nicht korrekt!");
   else
      window.location.href = sHref;
}

// -------------------------------------------------------------------------
// Abspielen der Live-Dokumente Lokal/HTTP
// -------------------------------------------------------------------------

function PlayRM(HRefName)
{
   if (window.location.protocol == "file"  ||
       window.location.protocol == "file:" ||
       window.location.protocol == "File:" )
      window.location.href = ("../../video/" + HRefName + ".rm");
   else
      window.location.href = (HRefName + ".ram");
}

// -------------------------------------------------------------------------
// Seitenfuss
// -------------------------------------------------------------------------

function Fuss1()
{
   with(window.document)
   {
     write('<P ALIGN=CENTER>');
     if (HPage != HHome)
        write('<FONT SIZE=1>| </FONT><A HREF="javascript:window.history.back()" ONMOUSEOVER="window.status=TextBack; return true" ONMOUSEOUT="window.status=TextLeer; return true"><FONT SIZE=1>Vorherige Seite</FONT></A><FONT SIZE=1> |</FONT><BR><BR>');
   }
}

function Fuss2()
{
   with(window.document)
   {
     write('<FONT SIZE=1>&copy; </FONT><A HREF="' + HUrl + 'copyrig/cont.htm" TARGET="_self" ONMOUSEOVER="window.status=TextCopy; return true" ONMOUSEOUT="window.status=TextLeer; return true"><FONT SIZE=1>copyright</FONT></A><FONT SIZE=1> 2005-2010, </FONT>');
     write('<A HREF="' + HUrl + 'kontakt/index.htm" TARGET="_top" ONMOUSEOVER="window.status=TextMail; return true" ONMOUSEOUT="window.status=TextLeer; return true"><FONT SIZE=1>' + HName + '</FONT></A>');
      write('  <A HREF="mailto:webmaster@langeooger-reiterhof.de" TARGET="_top" ONMOUSEOVER="window.status=TextMail; return true" ONMOUSEOUT="window.status=TextLeer; return true"><FONT SIZE=1>[Webmaster]</FONT></A>'); 
     write('<FONT SIZE=1>. All rights reserved.</FONT></CENTER></P>');
     
	}
}


// -------------------------------------------------------------------------
// Allgemeine Funktionen
// -------------------------------------------------------------------------




// -------------------------------------------------------------------------
// Funktionen für Cookies
// -------------------------------------------------------------------------


function SetCookie(CName, CInhalt, CVerfall)
{
   var TimeAkt = new Date();
   var TimeExp = new Date(TimeAkt.getTime() + 5+1000*60*60*24*CVerfall);

   window.document.cookie = CName + '=' + CInhalt + '; expires=' + TimeExp.toGMTString() + ';';
   
}


function GetCookie(CName)
{
   var cinh = window.document.cookie;
   var cret = '';

   if (cinh != '')
      {
        cret=cinh.substring( cinh.indexOf(CName+'=')+CName.length+1, cinh.length );
        if (cret != '')
           {
             var ende=cret.indexOf(';');
             if (ende <= 0) ende=cret.length;
             cret=cret.substring(0, ende);
           }
      }
   return cret;
}

