if (top.frames.length!=0) top.location=self.document.location;
// 1. Window Name
window.name = 'wlpage';
function onerror() {
	document.location.href = "javascript:";
}
// eMail
var mail_anrede		= "";
var mail_nname		= "";
var mail_vorname	= "";
var mail_email 	= "";
var mail_str		= "";
var mail_ort 		= "";
var mail_telefon	= "";
var mail_land		= "Deutschland";
var mail_betreff = ""
var mail_text  = ""
var quittung  = "";
var heute = new Date();
var ok = "true";
var geladen = "false";
function Fokus_Anfang()	{
    child.window.brief.anrede.focus();
    child.window.brief.anrede.select();	// Ggf. eingegebenen Text markieren
    return;
}
var feld = "leer";
function Fokus_Setzen(feld)	{
  	feld.focus();
    feld.select();	// Ggf. eingegebenen Text markieren
}
function Pruefe_Text(feld)	{
  var Text_Check = feld.value;
	Zahl_Check = parseInt(Text_Check, 10);
	if (Zahl_Check)	{
		alert("Nanu, was sollen denn die Zahlen?");
    	Fokus_Setzen(feld);
		}
	else if (Text_Check.length == 0) {}
	else if (Text_Check.length < 2 || Text_Check == " ")	{
		alert("Hoppla, diese Eingabe ist ein bischen kurz geraten");
    	Fokus_Setzen(feld);
		}
	else {Pruefe_Umlaut(feld)
	if ( feld.name == "nname")
		mail_nname = Text_Check;
	else if ( feld.name == "vorname")
		mail_vorname = Text_Check;
	else if ( feld.name == "str")
		mail_str = Text_Check;
	else if ( feld.name == "vorname")
		mail_vorname = Text_Check;
	else if ( feld.name == "land")
		mail_land = Text_Check;
	else if ( feld.name == "anrede")
		mail_anrede = Text_Check;
	else
		alert("Dieses Feld kenne ich nicht.");
	} 
}
function Pruefe_Telefon(feld)	{
	var Text_Check = feld.value;
	Zahl_Check = parseInt(Text_Check, 10);
	if (4 <= Text_Check.indexOf('/', 0) <= 6) { var flag = 0; }
	else if (4 <= Text_Check.indexOf('-', 0) <= 6) { var flag = 0; }
	else { var flag = 1; }
	if (!Zahl_Check)	{
		alert("Bitte Zahlen eingeben!");
		Fokus_Setzen(feld);
		}
	else if (Text_Check.length == 0) {}
	else if (Text_Check.length < 10 || flag )	{
		alert("Könnten Sie bitte Ihre Telefonnummer mit Vorwahl (z.B. 0123/45678) eingeben");
    	Fokus_Setzen(feld);
		}
	else {
	if ( feld.name == "telefon")
		mail_telefon = Text_Check;
	else
		alert("Dieses Feld kenne ich nicht.");
	} 
}
function Pruefe_Plz(feld)	{
	var Text_Check = feld.value
	Zahl_Check = parseInt(Text_Check, 10);
	if (Text_Check.length == 0) {}
	else if (Zahl_Check <= 1000 || Zahl_Check > 99999 || isNaN(Zahl_Check))	{
		alert("Hoppla, die Postleitzahl vor dem Ortsnamen ist nicht 5-stellig oder fehlt ");
        Fokus_Setzen(feld);
	  	}
	else {
	if ( feld.name == "ort")
		mail_ort = Text_Check;
	else
		alert("Dieses Feld kenne ich nicht.");
	} 
}
function Pruefe_Email(email){
 var Reason = "Nanu,\n an diese eMail-Adresse kann keine Antwort zutück geschickt werden.\n\nBitte berichtigen Sie die Adresse."
 var Success = ""
 var Text_Check = email.value;
 var ix = (Text_Check.length - 4);
 var RC = true;
 var x = AtSignValid = DoublePeriod = PeriodValid = SpaceValid = ExtValid = RL = 0;
 for (i = 0; i < Text_Check.length; i++)
 {  if (Text_Check.charAt(i) == '@')
   AtSignValid++;  else if (Text_Check.charAt(i) == '.')
  {
   if (x == (i-1))    DoublePeriod++;
   else
   {    x = i;
    PeriodValid++;
   }
  }
  else if (Text_Check.charAt(i) == ' ')
   SpaceValid ++;
 }
 if (Text_Check.indexOf(".com", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".net", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".de", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".ch", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".at", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".dk", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".fr", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".be", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".nl", ix) > -1)  ExtValid++;
 else if (Text_Check.indexOf(".org", ix) > -1)  ExtValid++;
 RL = Reason.length;
 if (Text_Check.length < 9)
  RC = false;
 if (AtSignValid != 1)
  RC = false;
 if (PeriodValid == 0)
  RC = false;
 if (SpaceValid > 0)
  RC = false;
	if (ExtValid == 0)
		RC = false;
	if (Text_Check.length > 120)
		RC = false;
 if (RC == false)
 {
  if (alert(Reason))
  {
   email.focus();
   RC = false;
  }
  else   RC = true;
 }
 else  RC = true;
 if (RC == true) mail_email = Text_Check
 else alert(Reason);
 return (RC);}
function Pruefe_Umlaut(feld)	{
	var Text_Check = feld.value
	if (Text_Check.length == 0) {}
	else if (Text_Check.length < 3 )	{
		alert("Bitte mindestens 3 Zeichen eingeben!");
        Fokus_Setzen(feld);
	  	}
	else if (Text_Check.indexOf('Ä', 0) >= 0	|| Text_Check.indexOf('Ö', 0) >= 0 || Text_Check.indexOf('Ü', 0) >= 0)			 
   {
		alert("Um eMail-Fehler zu vermeiden, ist es besser keine deutschen Umlaute zu verwenden. Setzen Sie für Ä = Ae, Ö = Oe und Ü = Ue");
        Fokus_Setzen(feld);
		}

	else if (Text_Check.indexOf('ä', 0) >= 0 ||	Text_Check.indexOf('ö', 0) >= 0 ||	Text_Check.indexOf('ü', 0) >= 0 ||	Text_Check.indexOf('ß', 0) >= 0)	
   {
		alert("Um eMail-Fehler zu vermeiden, ist es besser keine deutschen Umlaute zu verwenden. Setzen Sie für ä = ae, ö = oe, ü = ue und ß = ss oder sz");
        Fokus_Setzen(feld);
		}
}
function alles_da()
{
 var Reason = "Damit wir Ihnen ggf. antworten können,\n geben Sie bitte noch folgendes ein:"
 var Success = ""
 var RC = true;
 if (mail_anrede.length == 0) {
  Reason += "\n- Ihre Anrede";
  RC = false;
  }
 if (mail_vorname.length == 0) {
  Reason += "\n- Ihren Vornamen";
  RC = false;
  }
 if (mail_nname.length == 0) {
  Reason += "\n- Ihren Familiennamen";
  RC = false;
  }
 if (mail_email.length == 0) {
  Reason += "\n- Ihre EMail-Adresse";
  RC = false;
  }
 if (mail_text.length == 0) {
  Reason += "\n- Ihre Zeilen an uns";
  RC = false;
  }
 if (RC == false) alert(Reason);
 return (RC);
 }
function gen_brief()
{
 if (alles_da()) {
    var zaehler = 1;
	mail_betreff = betreff
	wind = window.open("", "wind", "toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=640,height=400")
	wind.document.open();
	wind.document.writeln("<HTML><HEAD><TITLE>eMail an www.goldenretriever.de</TITLE><base target='_blank'></HEAD>");
	wind.document.writeln("<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#FFFF00 VLINK=#FFFF00 ALINK=#EEFF00 BACKGROUND=images/bgmail.jpg>");
	wind.document.writeln("<embed SRC='sounds/song2.mid' autostart='true' loop='true' volume='100' width='0' height='0'>");
	wind.document.writeln("<BR><TABLE BORDER=0 CELLPADING=1 WIDTH='600' ALIGN=CENTER>");
	wind.document.writeln("<TR><TD COLSPAN=6><H3 ALIGN=CENTER>eMail an goldenretriever.de</H3></TD></TR>");
	wind.document.write("<TR><TD COLSPAN=6 ALIGN=middle><FORM method='POST' name='mail'");
	wind.document.write(" ACTION='mailto:webmaster@goldenretriever.de?subject=");
	wind.document.write(mail_betreff," an Golden Retriever ... vom Westerlueck' ENCTYPE=text/plain>");
	wind.document.writeln("Hallo ",mail_anrede," ",mail_nname,"<p><img src='images/comic.gif' width='60' height='60' alt='Danke'>Wir bedanken uns für Ihre Zeilen und werden ggf. gerne darauf antworten.</p><p>Bitte haben Sie etwas Geduld, da wir die Post erst am Wochenende bearbeiten können.</p></TD></TR><TR><TD COLSPAN=6 ALIGN=middle><STRONG>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Anrede_____ VALUE=' ",mail_anrede,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Name_______ VALUE=' ",mail_nname,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Vorname____ VALUE=' ",mail_vorname,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Telefon____ VALUE=' ",mail_telefon,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-E-Mail_____ VALUE=' ",mail_email,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Strasse____ VALUE=' ",mail_str,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Ort________ VALUE=' ",mail_ort,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Absender-Land_______ VALUE=' ",mail_land,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Betreff_____________ VALUE=' ",mail_betreff,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Datum_______________ VALUE=' ",heute,"'>");
	wind.document.writeln("<INPUT TYPE=HIDDEN NAME=Nachricht___________ VALUE=' ",mail_text,"'>");
	wind.document.writeln("<p>Bitte starten Sie nach der Bestätigung Ihr eMail-Programm, damit die Post auch wirklich zu uns gelangt.</p><BR>");
	wind.document.writeln("<TR><TD COLSPAN=6 ALIGN=middle><INPUT TYPE=button onClick=\"submit();\" VALUE=\"Ich m&ouml;chte diese Nachricht abschicken\" ></CENTER></FORM></TD></TR></TABLE></BODY></HTML>");
	wind.document.close();
    return true; 
  }
 else {
  return false;
 }
}

var gast = "";
var sonst = "";
var welp = "";
var frage = "";
var betreff = "Nachricht";
function Merke_Betreff(feld)
{
	if ( feld.name == 'C1'){
		if (gast == ""){
			gast = feld.value}
		else{gast = ""
		}
	}
	if ( feld.name == 'C2'){
		if (sonst == ""){
			sonst = feld.value}
		else{sonst = ""
		}
	}
	if ( feld.name == 'C3'){
		if (welp == ""){
			welp = feld.value}
		else{welp = ""
		}
	}
	if ( feld.name == 'C4'){
		if (frage == ""){
			frage = feld.value}
		else{frage = ""
		}
	}
	betreff = (gast + ", " + sonst + ", " + welp + ", " + frage)

}
function merkeText(feld)
{
	mail_text = feld.value
}
// 2. BROWSER SNIFFER
function bye() {
	if (geladen == "true") {
	window.open('content/wlbye.htm','460x460','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=450,height=420, screenX=100, screenY=30')
	}
}
function Is() {
  var agent = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);
  this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
  this.ns2 = (this.ns && (this.major == 2));
  this.ns3 = (this.ns && (this.major == 3));
  this.ns4b = (this.ns && (this.major == 4) && (this.minor <= 4.03));
  this.ns4 = (this.ns && (this.major >= 4));
  this.ie  = (agent.indexOf("msie") != -1);
  this.ie3 = (this.ie && (this.major == 2));
  this.ie4 = (this.ie && (this.major >= 4));
  this.op3 = (agent.indexOf("opera") != -1);
}
var is = new Is()
// 3. DOCUMENT OBJECT SWITCH
if(is.ns4) {
  doc = "document";
  sty = "";
  htm = ".document"
  img = ".document";
  xpos = "e.pageX";
  ypos = "e.pageY";
} else if(is.ie4) {
  doc = "document.all";
  sty = ".style";
  htm = "";
  img = ".document";
  xpos = "event.x";
  ypos = "event.y";
}
// 4. OBJECT CONSTRUCTORS
function imageObject(image_url) {
	this.obj = new Image()
	this.obj.onload = (is.ns4b) ? loadCheck() : loadCheck;
	this.obj.src = image_url;
	return this.obj;
}
function layerObject(name,left,top) {
	this.obj = eval(doc + '[name]' + sty);
	this.obj.left = left;
	this.obj.top = top;
	return this.obj;
}
function htmlObject(name) {
	this.obj = eval(doc + '[name]' + htm);
	return this.obj;
}
function imgObject(name) {
	this.obj = eval(doc + '[name]' + img);
	return this.obj;
}
function arrayObject(text,child,image,url) {
  this.text = text;
  this.child = child;
  this.image = image;
  this.url = url;
}
function menuSetup(common_name) {
  var array = eval(common_name + "Array");
  var layerHTML = eval(doc + '[common_name + "Layer"]' + htm);
  var menu = '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>';
    menu += '<TR><TD COLSPAN=3><IMG SRC="images/top.gif" BORDER="0" WIDTH="220" HEIGHT="2"></TD></TR>';
    for(var i = 1; i <= array.length-1; i++) {
      menu += '<TR><TD WIDTH="30"><IMG NAME="'+ common_name + "_" + i +'" SRC="images/'+ array[i].image +'.gif" BORDER="0" WIDTH="30" HEIGHT="22"></A></TD><TD BACKGROUND="images/screen.gif" WIDTH="181" HEIGHT="22">';
      if(array[i].image == "start_up") {
        menu += '<A HREF="javascript:toggleStart(\''+ common_name +'\','+ i +')">';
      } else if(array[i].image == "folder_closed") {
        menu += '<A HREF="javascript://" onmouseover="toggleMenu(\''+ common_name +'\','+ i +')">';
      } else if(array[i].image == "link_dn") {
        menu += '<A HREF="javascript:loadPage(\''+ array[i].url +'\')"';
        menu += 'onmouseover="linkUp(\''+ common_name +'\','+ i +')"';
        menu += 'onmouseout="linkDn(\''+ common_name +'\','+ i +')">';
      }
      if(array[i].text == "line") {
        menu += '<HR></TD>';
      } else {
        menu += '<FONT CLASS=menu>'+ array[i].text +'</FONT></A></TD>';
      }
        menu += '<TD WIDTH="9" HEIGHT="22"><IMG SRC="images/right.gif" BORDER="0" WIDTH="9" HEIGHT="22"></TD>';
    }
    menu += '<TR><TD COLSPAN=3><IMG SRC="images/bottom.gif" BORDER="0" WIDTH="220" HEIGHT="2"></TD></TR></TABLE>';
    choreographer('displayHTML',layerHTML,menu);
}
var drag = false;
var page_height = 0;
function mouseMove(e) {
	mouse_y = eval(ypos);
	if(drag) {
		if(mouse_y > 10 && mouse_y < available_height-10) {
	    contentLyr.top = page_height * -(mouse_y/available_height)+40;
	    dragmeLyr.top = mouse_y - 10;
	    choreographer('parallax',null);
	  }
	}
}
function mouseDown(e) {
	if(!toggle) {
		toggleStart();
	}
  if(mouse_y > parseInt(dragmeLyr.top) && mouse_y < parseInt(dragmeLyr.top)+30) {
  	page_height = (is.ns4) ? contentHTML.height : document.all.contentLayer.document.spacer.height;
		dragmeLyr.left = available_width-140;
  	clipLayer(dragmeLyr,0,120,30,60);
    drag = true;
  }
}
function mouseUp(e) {
	dragmeLyr.left = available_width-80;
  	clipLayer(dragmeLyr,0,60,30,0);
  drag = false;
}
function clipLayer() {
	var arg = clipLayer.arguments;
	var layer = arg[0];
	if(is.ns4) {
		layer.clip.top = arg[1];
		layer.clip.right = arg[2];
		layer.clip.bottom = arg[3];
		layer.clip.left = arg[4];
	} else {
		layer.clip = 'rect(' + arg[1] + ' ' + arg[2] + ' ' + arg[3] + ' ' + arg[4] + ')';
	}
}
var toggle = true
var prev_name = "";
var prev_index = "";
function toggleStart() {
	if(toggle) {
		contentLyr.top = 170;
		startArray[1].child.visibility = 'visible';
		startIMG['start_1'].src = start_dn.src;
		toggle = false;
	} else {
		contentLyr.top = 40;
	  if(prev_index != "") {
			parentIMG[prev_name + "_" + prev_index].src = folder_closed.src;
			parentArray[prev_index].child.visibility = 'hidden';
	  }
		startArray[1].child.visibility = 'hidden';
		startIMG['start_1'].src = start_up.src;
		toggle = true;
	}
}
function toggleMenu(name,index) {
	if(prev_name != "") {
		parentIMG[prev_name + "_" + prev_index].src = folder_closed.src;
		parentArray[prev_index].child.visibility = "hidden";
	}
	parentIMG[name + "_" + index].src = folder_open.src;
	parentArray[index].child.visibility = "visible";
	prev_name = name;
	prev_index = index;
}
function linkUp(name,image) {
	linkIMG = eval(doc + '[name + "Layer"]' + '.document');
	linkIMG[name + "_" + image].src = link_up.src;
}
function linkDn(name,image) {
	linkIMG = eval(doc + '[name + "Layer"]' + '.document');
	linkIMG[name + "_" + image].src = link_dn.src;
}
function loadPage(url) {
	selected_url = url;
	page_width = available_width - 120;
	choreographer('displayHTML',contentHTML,'<FONT CLASS=loading>Die Seiten werden angefordert, bitte haben Sie einen Augenblick Geduld</FONT>');
	geladen = "true";
	if(is.ie4) {
		contentLyr.width = page_width;
		document.all.ieContent.document.frames["ieframe"].document.location.href = selected_url;
	} else if(is.ns4) {
		contentLyr.load(selected_url,page_width);
	}
}
var count = 0;
function loadCheck() {
  count++;
  if(count == 8) {
    choreographer('layerSetup');
  }
}
// 5. CHOREOGRAPHER FUNCTION
var contentHTML = "";
function choreographer() {
	var arg = choreographer.arguments;	
  switch(arg[0]) {
    case 'preLoad' :
		  folder_closed = new imageObject('images/folder_closed.gif');
		  folder_open = new imageObject('images/folder_open.gif');
		  link_up = new imageObject('images/link_up.gif');
		  link_dn = new imageObject('images/link_dn.gif');
		  left = new imageObject('images/left.gif');
		  right = new imageObject('images/right.gif');
		  start_dn = new imageObject('images/start_dn.gif');
		  start_up = new imageObject('images/start_up.gif');
		break;		
    case 'layerSetup' :
		  cloudsLyr = new layerObject('cloudsLayer',0,0);
		  sunLyr = new layerObject('sunLayer',available_width-150,available_height-265);
		  fogLyr = new layerObject('fogLayer',0,available_height-165);
		  archLyr = new layerObject('archLayer',0,available_height-199);
		  haystackLyr = new layerObject('haystackLayer',580,available_height-152);
		  contentLyr = new layerObject('contentLayer',20,40);
		  dragmeLyr = new layerObject('dragmeLayer',available_width-80,40);
		  eventLyr = new layerObject('eventLayer',available_width-100,0);
		  startLyr = new layerObject('startLayer',6,6);
		  parentLyr = new layerObject('parentLayer',parseInt(startLyr.left),parseInt(startLyr.top)+26);
		  child1Lyr = new layerObject('child1Layer',parseInt(parentLyr.left)+210,parseInt(parentLyr.top));
		  child2Lyr = new layerObject('child2Layer',parseInt(parentLyr.left)+210,parseInt(parentLyr.top)+44);
		  child3Lyr = new layerObject('child3Layer',parseInt(parentLyr.left)+210,parseInt(parentLyr.top)+66);
		  child4Lyr = new layerObject('child4Layer',parseInt(parentLyr.left)+210,parseInt(parentLyr.top)+88);
		  child5Lyr = new layerObject('child5Layer',parseInt(parentLyr.left)+210,parseInt(parentLyr.top)+110);
		  child6Lyr = new layerObject('child6Layer',parseInt(parentLyr.left)+210,parseInt(parentLyr.top)+132);
		  choreographer('arraySetup');
		break;
    case 'arraySetup' :
	// Array parameters for the Start Button
		  startArray = new Array();
		  startArray[1] = new arrayObject("Inhaltsverzeichnis",parentLyr,"start_up",null);
	// Array parameters for the Parent Menu
		  parentArray = new Array();
		  parentArray[1] = new arrayObject("unsere Zucht",child1Lyr,"folder_closed",null);
  		  parentArray[2] = new arrayObject("line",null,"left",null);
		  parentArray[3] = new arrayObject("alles &uuml;ber Welpen",child2Lyr,"folder_closed",null);
		  parentArray[4] = new arrayObject("noch mehr Informationen",child3Lyr,"folder_closed",null);
		  parentArray[5] = new arrayObject("Kinder und Hunde",child4Lyr,"folder_closed",null);
		  parentArray[6] = new arrayObject("Schreiben Sie uns",child5Lyr,"folder_closed",null);
		  parentArray[7] = new arrayObject("Andere Links",child6Lyr,"folder_closed",null);
	// Array parameters for the Child1 Menu
		  child1Array = new Array();
		  child1Array[1] = new arrayObject("Willkommen",null,"link_dn","content/wlwilkom.htm");
		  child1Array[2] = new arrayObject("Wir &uuml;ber uns ...",null,"link_dn","content/wlwir.htm");
		  child1Array[3] = new arrayObject("Ein Blick in unsere Kinderstube",null,"link_dn","content/wlzucht.htm");
		  child1Array[4] = new arrayObject("Der Weg zu uns",null,"link_dn","content/wladr.htm");
	// Array parameters for the Child2 Menu
		  child2Array = new Array();
		  child2Array[1] = new arrayObject("Welpen ...",null,"link_dn","content/wlwelpen.htm");
		  child2Array[2] = new arrayObject("Ein Welpe kommt ins Haus",null,"link_dn","content/inarbeit.htm");
	// Array parameters for the Child3 Menu
		  child3Array = new Array();
		  child3Array[1] = new arrayObject("Vorwort",null,"link_dn","content/wlfaq1.htm");
		  child3Array[2] = new arrayObject("Allgemeine Fragen",null,"link_dn","content/wlfaq2.htm");
		  child3Array[3] = new arrayObject("... zum Welpenkauf",null,"link_dn","content/wlfaq3.htm");
		  child3Array[4] = new arrayObject("... zur Verhaltensweise",null,"link_dn","content/wlfaq4.htm");
		  child3Array[5] = new arrayObject("Bei der Jagd",null,"link_dn","content/wlfaq5.htm");
		  child3Array[6] = new arrayObject("... wird erweitert",null,"link_dn","content/inarbeit.htm");
	// Array parameters for the Child4 Menu
		  child4Array = new Array();
		  child4Array[1] = new arrayObject("... ein paar Tips",null,"link_dn","content/wlkinder.htm");
		  child4Array[2] = new arrayObject("F&uuml;r Erwachsene verboten",null,"link_dn","content/wlclub.htm");
	// Array parameters for the Child5 Menu
		  child5Array = new Array();
		  child5Array[1] = new arrayObject("Unser G&auml;stebuch",null,"link_dn","content/wlmail.htm");
	// Array parameters for the Child6 Menu
		  child6Array = new Array();
		  child6Array[1] = new arrayObject("Zuchtverb&auml;nde",null,"link_dn","content/wllinks.htm");
		choreographer('htmlSetup');
		break;
	case 'htmlSetup' :
		menuSetup('start');
		menuSetup('parent');
		menuSetup('child1');
		menuSetup('child2');
		menuSetup('child3');
		menuSetup('child4');
		menuSetup('child5');
		menuSetup('child6');
		startIMG = new imgObject('startLayer');
		parentIMG = new imgObject('parentLayer');
		eventArea = new htmlObject('eventLayer');
		contentHTML = new htmlObject('contentLayer');
		choreographer('eventSetup');
		break;
    case 'eventSetup' :
			if(is.ns4) {
				eventArea.captureEvents(Event.MOUSEMOVE || Event.MOUSEDOWN || Event.MOUSEUP);
			}
			eventArea.onmousemove = mouseMove;
			eventArea.onmousedown = mouseDown;
			eventArea.onmouseup = mouseUp;
			choreographer('clippingSetup');
		break;
    case 'clippingSetup' :
			clipLayer(cloudsLyr,0,available_width,144,0);
			clipLayer(fogLyr,0,available_width,165,0);
			choreographer('visibilitySetup');
		break;
    case 'visibilitySetup' :
			cloudsLyr.visibility = 'visible';
			sunLyr.visibility = 'visible';
			fogLyr.visibility = 'visible';
			archLyr.visibility = 'visible';
			haystackLyr.visibility = 'visible';
			startLyr.visibility = 'visible';
			dragmeLyr.visibility = 'visible';
			eventLyr.visibility = 'visible';
			contentLyr.visibility = 'visible';
			choreographer('start');
		break;
	case 'start' :
			setTimeout('toggleStart()',1000);
			setTimeout('toggleMenu("parent",1)',2000);
			setTimeout('linkUp("child1",1)',3000);
			setTimeout('loadPage("content/wlwilkom.htm")',4000);
			setTimeout('toggleStart()',5000);
		break;
	case 'parallax' :
			if(sunLyr.left < -99) {
				sunLyr.left = available_width;
			}
			var pos0 = parseInt(sunLyr.left);
			sunLyr.left = pos0 -3;
		break;
	case 'setHeight' :
			if(is.ie4) {
				choreographer('displayHTML',contentHTML,document.all.ieContent.document.frames['ieframe'].document.body.innerHTML);
			}
		break;

	case 'displayHTML' :
			if(is.ns4) {
				arg[1].write(arg[2]);
				arg[1].close();
			} else {
				arg[1].innerHTML = arg[2];
			}
		break;
	}
}
var Message="     +++ Neu im Web +++ Golden Retriever ... vom Westerlueck +++ Mit Kinder-Seite +++";
var place=1;
function scrollIn() {
	window.status=Message.substring(0, place);
	if (place >= Message.length) {
	place=1;
	window.setTimeout("scrollOut()",300); 
	} else {
	place++;
	window.setTimeout("scrollIn()",50); 
	} 
}
function scrollOut() {
	window.status=Message.substring(place, Message.length);
	if (place >= Message.length) {
	place=1;
	window.setTimeout("scrollIn()", 100);
	} else {
	place++;
	window.setTimeout("scrollOut()", 50);
	}
}
