
<!-- www.oleanderhof-nunsdorf.de-->

//::::::::1.     Zeit
//::::::::2.     popup1,2,3,4
//::::::::3.     blinkender Text im IE
//::::::::4.     Diashow Ingo Turski
//::::::::5:     Last Update
//::::::::6.     copyright





//:::::::::::::::::::::::::::2.


function popUp1(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=486,height=486,left=22,top=22, <html><body bgcolor="#003333">');
}

function popUp2(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=486,height=380,left=22,top=22, <html>body bgcolor="#003333"');
}

function popUp3(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=638,height=480,left=22,top=22, <html>body bgcolor="#003333"');
}

function popUp4(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=638,height=630,left=22,top=22, <html>body bgcolor="#003333"');
}

function popUp5(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=380,height=486,left=22,top=22, <html>body bgcolor="#003333"');
}

function popUp6(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=205,height=208,left=22,top=22, <html>body bgcolor="#003333"');
}

function popUp7(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=936,height=486,left=22,top=22, <html>body bgcolor="#003333"');
}

function popUp8(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=480,height=700,left=0,top=0, <html>body bgcolor="#003333"');

}
function popUp9(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=486,height=630,left=22,top=22, <html>body bgcolor="#003333"');

}
function popUp10(wintype)
{
popUp=window.open(wintype, 'NewWindows', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=325,height=630,left=22,top=22, <html>body bgcolor="#003333"');
}
//popup öffnen mit:   <a  href="javascript:popUp1('oleander/sorten/bilder/diashow.html')">hier</a>




//:::::::::::::::::::::::::::::::::::::::::3.

 <!--
blink(0.7);

function blink(speed)
{
if (speed) {
if (document.all)
setInterval("blink()", speed*1000)
return;
}
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

// -->





//::::::::::::::::::::::::::4.


var Galerie=self.location.href, vor, BildNr, nach, Startbild, Bilder;
var d=1, s=60, l=new Array(7);

function initDiashow(vor,Startbild,nach,Bilder) {
if(document.getElementById) {
var x = Galerie.lastIndexOf(".");
var dia = Galerie.substring(0,x) + "-dia" + Galerie.slice(x);
var Dias = document.getElementById("Dias");
var a = Dias.getElementsByTagName("a");
for (var i=0; i<a.length; i++) {
a[i].href = dia +"?"+encodeURIComponent(vor) +","+parseInt(Startbild+i);
a[i].href +=","+nach +","+Startbild +","+Bilder;
}
}
}

function initDia() {
var Param = self.location.search;
if(Param) {
var P1 = Param.indexOf(",",0); vor = decodeURIComponent(Param.slice(1,P1));
var P2 = Param.indexOf(",",P1+1); BildNr = parseInt(Param.slice(P1+1,P2));
var P3 = Param.indexOf(",",P2+1); nach = Param.slice(P2+1,P3);
var P4 = Param.indexOf(",",P3+1); Startbild = parseInt(Param.slice(P3+1,P4));
Bilder = parseInt(Param.slice(P4+1));
}
var x = Galerie.indexOf("?"); if(x != -1) Galerie = Galerie.substr(0,x);
x = Galerie.lastIndexOf(".");
Galerie = Galerie.substring(0,x-4) + Galerie.slice(x);
document.getElementById("Galerie").href = Galerie;
if(!Param || !Bilder) {
alert("Fehlerhafte Parameter!\n Rufen Sie ein Bild aus der Galerie auf.");
window.location.href = Galerie;
}
else {
l = document.getElementById("Intervall").getElementsByTagName("a");
l[6].style.borderColor = "#006600"; l[6].style.color = "#CC3366";
aktiv = window.setInterval("blaettern(1)",s*1000);
document.getElementById("Dia").src = BildName(BildNr);
if(window.opera) window.setInterval('document.getElementById("Dia").src = BildName(BildNr)',2000);
}
}

function BildName(BildNr) {
var Info = document.getElementsByTagName("var")[0].firstChild;
Info.data = "Bild "+BildNr+"/"+Bilder;
var nr = ("0"+BildNr.toString()).substr(BildNr>9);
return(vor+nr+nach);
}

function blaettern(d) {
if (s < 75) clearInterval(aktiv);
BildNr = BildNr + d;
if (BildNr > Bilder) BildNr = Startbild;
if (BildNr < Startbild) BildNr = Bilder;
document.getElementById("Dia").src = BildName(BildNr);
if (s < 75) aktiv = window.setInterval("blaettern(1)",s*1000);
}

function Diashow(d) {
var p = (s<30) ? s/5-1 : 2+s/15;
l[p].style.borderColor = ""; l[p].style.color = "";
s = d;
p = (s<30) ? s/5-1 : 2+s/15;
l[p].style.borderColor = "#006600"; l[p].style.color = "#CC3366"; l[p].blur();
if (s == 75) clearInterval(aktiv);
else blaettern(1);
}






//::::::::::::::::::::::::::::::::::::5.lastupdate




function lastupdate()
{
// wochentage
var wochentag = new
Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");

// monatsnamen
var monat = new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");

today = new Date()
modifiziert = new Date(document.lastModified)
tageher = Math.ceil( (today.getTime()- modifiziert.getTime())/(24*60*60*1000) )

if(tageher == 1) {
wtag = " Tag"
} else {
wtag = " Tagen"
}
var then = new Date(document.lastModified);
document.writeln("update: "+ wochentag[then.getDay()] + " " + then.getDate() + ". " + monat[then.getMonth()]  + ",  vor " + tageher +  wtag + "!")
return
}


//:::::::::::::::::::::::::::::::::::::::::::6.copyright


function click (e) {
  if (!e)
    e = window.event;
  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
    if (window.opera)
      window.alert("Sorry: Diese Funktion ist deaktiviert.");
    return false;
  }
}
if (document.layers)
  document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;