
function wechsel (imageID,objectName) {
        if (version == "n3") {
	        document.images[imageID].src = eval(objectName + ".src");
        	}
	}

function kpInitialize () {

	window.onerror = null
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserVer >= 3) version = "n3";
	else version = "n2"
	if (version == "n3") { 
		DH         = new Image();
		DH.src     = "IMG/BLINK.GIF";
		DL         = new Image();
		DL.src     = "IMG/GRAU.GIF";
		DG         = new Image();
		DG.src     = "IMG/GRUEN.GIF";
		}

	MyAnzahl=31;

	MyPos = new Array (
		"400]295",
		"378]210",
		"335]198",
		"185]150",
		"195]120",
		"79]139",
		"95]179",
		"25]229",
		"715]170",
		"622]329",
		"600]290",
		"265]165",
		"545]323",
		"290]510",
		"210]413",
		"394]425",
		"413]457",
		"364]534",
		"190]418",
		"204]390",
		"76]333",
		"325]524",
		"607]278",
		"320]552",
		"330]542",
		"557]317",
		"403]392",
		"390]477",
		"350]530",
		"370]540",
		"338]502",
		"0]0"
		);


	MyOrte = new Array (
		"1 - Raxseilbahn",
		"2 - Bergasthof Raxalpe",
		"3 - Ottohaus",
		"4 - Neue Seehütte",
		"5 - Habsburghaus",
		"6 - Karl-Ludwig Haus",
		"7 - Waxriegelhaus",
		"8 - Edelweisshütte Preiner Gscheid",
		"9 - Kientaler Hütte",
		"10 - Friedrich-Haller Haus",
		"11 - Weichtalhaus",
		"12 - Raxalpe",
		"13 - Naturlehrpfad Kaiserbrunn",
		"14 - Freibad Reichenau",
		"15 - Strandbad Edlach",
		"16 - Reiten",
		"17 - Schwarzataler Radwanderweg",
		"18 - Tennisplatz im Kurpark",
		"19 - Tennisplatz Travnicek",
		"20 - Tennis Lindenhof",
		"21 - Tennis Hotel Raxalpenhof",
		"22 - Touristeninformation / Gemeindeamt",
		"23 - Wildwasserpaddeln",
		"24 - Festspiele Reichenau",
		"25 - Reichenauer Spaziergänge",
		"26 - Wasserleitungsmuseum",
		"27 - Volkskundliches Handwerksmuseum",
		"28 - Museumseisenbahn Höllental",
		"29 - Kurpark Reichenau",
		"30 - Bootfahren im Kurparkteich",
		"31 - Erlanger Platz",
		""
		);



	MyLinks = new Array (

		"http://www.raxalpe.com/home_1.htm",
		"http://www.raxalpe.com/Seiten/berggasthof.htm",
		"http://www.raxalpe.com/Seiten/ottohaus.htm",
		"http://www.seehuette.at",
		"http://www.alpenverein.at/huettenHome/DE/Home/index.php?huetteNr=0093&lang=de",
		"http://www.alpenverein.at/huettenHome/DE/Home/index.php?huetteNr=1342",
		"http://www.myspace.com/waxriegelhaus",
		"",
		"http://www.kienthaler.at/",
		"http://www.friedrich-hallerhaus.at",
		"http://www.weichtalhaus.at",
		"",
		"http://www.wien.gv.at/umwelt/wald/bildung/kaiserbrunn-pfad.html",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,RGN110620at,all,1,curr,EUR,folder,SPORTS,layoutElementId,LAY4612,letter,-,listLayoutElementId,LAY4645,objSort,1,objlst,true,objlstfp,true,page,1,pageSize,10,searchStr,-,season,at1,selectedEntry,sport,withAZ,1,withCat,0,withList,1,withPages,1,withSearch,1,withSort,1,classification,OUTDOORPOOL,category,-/sport.html",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,RGN110620at,all,1,curr,EUR,folder,SPORTS,layoutElementId,LAY4612,letter,-,listLayoutElementId,LAY4645,objSort,1,objlst,true,objlstfp,true,page,1,pageSize,10,searchStr,-,season,at1,selectedEntry,sport,withAZ,1,withCat,0,withList,1,withPages,1,withSearch,1,withSort,1,classification,OUTDOORPOOL,category,-/sport.html",
		"http://www.rsc-reichenau.at/",
		"http://www.reichenau.at/cgi-bin/ONLWYSIWYG/ONL.cgi?WHAT=INFOSHOW&INFONUMMER=6985323&ONLFA=REI",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,RGN110620at,all,1,curr,EUR,folder,SPORTS,layoutElementId,LAY4612,letter,-,listLayoutElementId,LAY4645,objSort,1,objlst,true,objlstfp,true,page,1,pageSize,10,searchStr,-,season,at1,selectedEntry,sport,withAZ,1,withCat,0,withList,1,withPages,1,withSearch,1,withSort,1,classification,TENNIS,category,-/sport.html",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,RGN110620at,all,1,curr,EUR,folder,SPORTS,layoutElementId,LAY4612,letter,-,listLayoutElementId,LAY4645,objSort,1,objlst,true,objlstfp,true,page,1,pageSize,10,searchStr,-,season,at1,selectedEntry,sport,withAZ,1,withCat,0,withList,1,withPages,1,withSearch,1,withSort,1,classification,TENNIS,category,-/sport.html",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,RGN110620at,all,1,curr,EUR,folder,SPORTS,layoutElementId,LAY4612,letter,-,listLayoutElementId,LAY4645,objSort,1,objlst,true,objlstfp,true,page,1,pageSize,10,searchStr,-,season,at1,selectedEntry,sport,withAZ,1,withCat,0,withList,1,withPages,1,withSearch,1,withSort,1,classification,TENNIS,category,-/sport.html",
		"http://www.raxalpenhof.com/",
		"http://www.reichenau.at",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,RGN182979at,season,at1,selectedEntry,pict/pict.html",
		"http://www.festspiele-reichenau.com/",
		"http://www.reichenau.at/spazierwege/",
		"http://www.wien.gv.at/wienwasser/aktiv/kaiser.html",
		"http://www.tiscover.at/at/guide/5,de,SCH1/objectId,SIG275643at,curr,EUR,parentId,RGN110620at,season,at2,selectedEntry,sights/intern.html",
		"http://www.erlebnisbahn.at/hoellentalbahn/",
		"http://www.reichenau.at/spazierwege/#start",
		"http://www.reichenau.at/spazierwege/#start",
		"http://www.reichenau.at/wanderwege/",
		""
		);






	MyActiveNumber= new Array (
		"",
		0,
		1
		);	

	document.F2.THEME2.value = MyOrte[0];
	
	
	showwechselOn (0); 
	verschieben (0)
	
	fillselect ();

	aktiv="";
	
	}


function fillselect () {


	for (i=0; i <= MyAnzahl -1; i++) {
		Teil = MyOrte[i].substring(0,35);
		NeuerEintrag = new Option(Teil);
 		document.FS.suchselect.options[document.FS.suchselect.length] = NeuerEintrag;
		}

	}


function verschieben (Nummer) {

	Zaehler=Nummer;

	document.F2.THEME2.value = MyOrte[Zaehler];
	MyActiveNumber[1] = Zaehler;
	
	//alert (browserName);
	
	//if (browserName.substr(0,1) == "M") {
	//	mytext="<center>";
	//	mytext=mytext.concat(MyOrte[Zaehler]);
	//	mytext=mytext.concat("</center>");
	//	}
	//else {
	//	mytext="<center><a class='LAP_KPKARTE' href='#start' onclick='openMyLink1()'>".concat(MyOrte[Zaehler]);
	//	mytext=mytext.concat("</a></center>");
	//	}

	document.all.TextOnKarte.innerHTML=MyOrte[Zaehler];

	var Position = MyPos[Zaehler].split("]");
	myfadenkreuzbild="IMG/".concat(Nummer+1);
	myfadenkreuzbild=myfadenkreuzbild.concat("_COL.GIF");
	
	myfadenkreuz="<input type=IMAGE src=";
	myfadenkreuz=myfadenkreuz.concat(myfadenkreuzbild);
	myfadenkreuz=myfadenkreuz.concat(" style='{position:absolute; top:");
	myfadenkreuz=myfadenkreuz.concat(Position[1]);

//	myfadenkreuz="<input type=IMAGE src=IMG/FADENKREUZ.GIF style='{position:absolute; top:".concat(Position[1]);

	myfadenkreuz=myfadenkreuz.concat("px; left:");
	myfadenkreuz=myfadenkreuz.concat(Position[0]);
	myfadenkreuz=myfadenkreuz.concat("px;' onclick='openMyLink(Zaehler)'>");

	document.all.fadenkreuz.innerHTML=myfadenkreuz;

	aktiv = window.setTimeout("Fadenkreuzweg()",10000);
	
	mybackground="IMG/KARTE";
	mybackground=mybackground.concat(Nummer);
	mybackground=mybackground.concat(".PNG");
//	document.getElementById("NAVIGATION").style.backgroundImage="url("+mybackground+")" 
//	document.getElementById("NAVIGATION").style="background:url(mybackground)";
//	document.getElementById("NAVIGATION").background=mybackground;

	}

function Fadenkreuzweg () {
	//document.all.fadenkreuz.innerHTML="";
	}



function tc (Richtung) {
	if (Richtung == "V") {
		Zaehler++;
		if ( Zaehler > MyAnzahl - 1 ) {
			Zaehler=0; 
			}
 //       	if ( Zaehler >=1 & Zaehler <= MyOrte.length - 1 ) {
			verschieben (Zaehler);
//			}
//		else {
//			Zaehler--;
//			}	
		}

	if (Richtung == "Z") {

		Zaehler--;

		if ( Zaehler < 0 ) {
			Zaehler=MyAnzahl - 1; 
			}


//        	if ( Zaehler >= 0 & Zaehler <= MyOrte.length + 1 ) {
			verschieben (Zaehler);
//			}				
//		else {
//			Zaehler++;
//			}	
		}
        }


function openMyLink1 () {
	testl=document.all.TextOnKarte.innerHTML;
	var Woerter = testl.split(">");
	var Zahlen = Woerter[2].split(" ");
	Zahlen[0]--;
	openMyLink(Zahlen[0]);
	
	}



function openMyLink (Nummer) {
	if (MyLinks[Nummer] != "") {
		myadress="".concat(MyLinks[Nummer]);
		ant = window.open(myadress,"UEBINFO","width=900,height=450,left=0,top=0,scrollbars=1,resizable=1");
		}
	}

function showwechselOn (Nummer) {
	
	for (i=1; i <= MyAnzahl; i++) {
		a="pic".concat(i);
		b="DL";
		wechsel(a,b);	
		}

	Nummer++;
	a="pic".concat(Nummer);
	b="DH";
	wechsel(a,b);	

	}

function showwechselOff (Nummer) {
	Nummer++;
	a="pic".concat(Nummer);
	b="D".concat(Nummer);
	b=b.concat("L");
	wechsel(a,b);	
	}





function verschiebenmitzahlen (Nummer) {

	Zaehler=Nummer;

       	if ( Zaehler >= 1) {
       		document.F1.THEME1.value = MyOrte[Zaehler-1];
       		MyActiveNumber[0] = Zaehler-1;
	        		}
       	else {
       		document.F1.THEME1.value = "";
       		MyActiveNumber[0] = "";
       		}	

	document.F2.THEME2.value = MyOrte[Zaehler];
	MyActiveNumber[1] = Zaehler;

      	if ( Zaehler <= MyOrte.length -2 ) {
       		document.F3.THEME3.value = MyOrte[Zaehler+1];
       		MyActiveNumber[2] = Zaehler+1;
       		}
	else {
       		document.F3.THEME3.value = "";
       		MyActiveNumber[2] = "";
		}
	}

function showwechselOnmitzahlen (Nummer) {
	Nummer++;
	a="pic".concat(Nummer);
	b="D".concat(Nummer);
	b=b.concat("H");
	wechsel(a,b);	
	}

function kpInitializemitzahlen () {

	window.onerror = null
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserVer >= 3) version = "n3";
	else version = "n2"
	if (version == "n3") { 
		D1H         = new Image();
		D1H.src     = "IMG/1_COL.GIF";
		D1L         = new Image();
		D1L.src     = "IMG/1_GRAU.GIF";
		D2H         = new Image();
		D2H.src     = "IMG/2_COL.GIF";
		D2L         = new Image();
		D2L.src     = "IMG/2_GRAU.GIF";
		D3H         = new Image();
		D3H.src     = "IMG/3_COL.GIF";
		D3L         = new Image();
		D3L.src     = "IMG/3_GRAU.GIF";
		D4H         = new Image();
		D4H.src     = "IMG/4_COL.GIF";
		D4L         = new Image();
		D4L.src     = "IMG/4_GRAU.GIF";
		D5H         = new Image();
		D5H.src     = "IMG/5_COL.GIF";
		D5L         = new Image();
		D5L.src     = "IMG/5_GRAU.GIF";
		D6H         = new Image();
		D6H.src     = "IMG/6_COL.GIF";
		D6L         = new Image();
		D6L.src     = "IMG/6_GRAU.GIF";
		D7H         = new Image();
		D7H.src     = "IMG/7_COL.GIF";
		D7L         = new Image();
		D7L.src     = "IMG/7_GRAU.GIF";
		D8H         = new Image();
		D8H.src     = "IMG/8_COL.GIF";
		D8L         = new Image();
		D8L.src     = "IMG/8_GRAU.GIF";
		D9H         = new Image();
		D9H.src     = "IMG/9_COL.GIF";
		D9L         = new Image();
		D9L.src     = "IMG/9_GRAU.GIF";

		D10H         = new Image();
		D10H.src     = "IMG/10_COL.GIF";
		D10L         = new Image();
		D10L.src     = "IMG/10_GRAU.GIF";
		D11H         = new Image();
		D11H.src     = "IMG/11_COL.GIF";
		D11L         = new Image();
		D11L.src     = "IMG/11_GRAU.GIF";
		D12H         = new Image();
		D12H.src     = "IMG/12_COL.GIF";
		D12L         = new Image();
		D12L.src     = "IMG/12_GRAU.GIF";
		D13H         = new Image();
		D13H.src     = "IMG/13_COL.GIF";
		D13L         = new Image();
		D13L.src     = "IMG/13_GRAU.GIF";
		D14H         = new Image();
		D14H.src     = "IMG/14_COL.GIF";
		D14L         = new Image();
		D14L.src     = "IMG/14_GRAU.GIF";
		D15H         = new Image();
		D15H.src     = "IMG/15_COL.GIF";
		D15L         = new Image();
		D15L.src     = "IMG/15_GRAU.GIF";
		D16H         = new Image();
		D16H.src     = "IMG/16_COL.GIF";
		D16L         = new Image();
		D16L.src     = "IMG/16_GRAU.GIF";
		D17H         = new Image();
		D17H.src     = "IMG/17_COL.GIF";
		D17L         = new Image();
		D17L.src     = "IMG/17_GRAU.GIF";
		D18H         = new Image();
		D18H.src     = "IMG/18_COL.GIF";
		D18L         = new Image();
		D18L.src     = "IMG/18_GRAU.GIF";
		D19H         = new Image();
		D19H.src     = "IMG/19_COL.GIF";
		D19L         = new Image();
		D19L.src     = "IMG/19_GRAU.GIF";
		
		D20H         = new Image();
		D20H.src     = "IMG/20_COL.GIF";
		D20L         = new Image();
		D20L.src     = "IMG/20_GRAU.GIF";
		D21H         = new Image();
		D21H.src     = "IMG/21_COL.GIF";
		D21L         = new Image();
		D21L.src     = "IMG/21_GRAU.GIF";
		D22H         = new Image();
		D22H.src     = "IMG/22_COL.GIF";
		D22L         = new Image();
		D22L.src     = "IMG/22_GRAU.GIF";
		D23H         = new Image();
		D23H.src     = "IMG/23_COL.GIF";
		D23L         = new Image();
		D23L.src     = "IMG/23_GRAU.GIF";
		D24H         = new Image();
		D24H.src     = "IMG/24_COL.GIF";
		D24L         = new Image();
		D24L.src     = "IMG/24_GRAU.GIF";
		D25H         = new Image();
		D25H.src     = "IMG/25_COL.GIF";
		D25L         = new Image();
		D25L.src     = "IMG/25_GRAU.GIF";
		D26H         = new Image();
		D26H.src     = "IMG/26_COL.GIF";
		D26L         = new Image();
		D26L.src     = "IMG/26_GRAU.GIF";
		D27H         = new Image();
		D27H.src     = "IMG/27_COL.GIF";
		D27L         = new Image();
		D27L.src     = "IMG/27_GRAU.GIF";
		D28H         = new Image();
		D28H.src     = "IMG/28_COL.GIF";
		D28L         = new Image();
		D28L.src     = "IMG/28_GRAU.GIF";
		D29H         = new Image();
		D29H.src     = "IMG/29_COL.GIF";
		D29L         = new Image();
		D29L.src     = "IMG/29_GRAU.GIF";

		D30H         = new Image();
		D30H.src     = "IMG/30_COL.GIF";
		D30L         = new Image();
		D30L.src     = "IMG/30_GRAU.GIF";
		D31H         = new Image();
		D31H.src     = "IMG/31_COL.GIF";
		D31L         = new Image();
		D31L.src     = "IMG/31_GRAU.GIF";
		D32H         = new Image();
		D32H.src     = "IMG/32_COL.GIF";
		D32L         = new Image();
		D32L.src     = "IMG/32_GRAU.GIF";
		D33H         = new Image();
		D33H.src     = "IMG/33_COL.GIF";
		D33L         = new Image();
		D33L.src     = "IMG/33_GRAU.GIF";
		D34H         = new Image();
		D34H.src     = "IMG/34_COL.GIF";
		D34L         = new Image();
		D34L.src     = "IMG/34_GRAU.GIF";
		D35H         = new Image();
		D35H.src     = "IMG/35_COL.GIF";
		D35L         = new Image();
		D35L.src     = "IMG/35_GRAU.GIF";
		D36H         = new Image();
		D36H.src     = "IMG/36_COL.GIF";
		D36L         = new Image();
		D36L.src     = "IMG/36_GRAU.GIF";
		D37H         = new Image();
		D37H.src     = "IMG/37_COL.GIF";
		D37L         = new Image();
		D37L.src     = "IMG/37_GRAU.GIF";
		D38H         = new Image();
		D38H.src     = "IMG/38_COL.GIF";
		D38L         = new Image();
		D38L.src     = "IMG/38_GRAU.GIF";
		D39H         = new Image();
		D39H.src     = "IMG/39_COL.GIF";
		D39L         = new Image();
		D39L.src     = "IMG/39_GRAU.GIF";

		D40H         = new Image();
		D40H.src     = "IMG/40_COL.GIF";
		D40L         = new Image();
		D40L.src     = "IMG/40_GRAU.GIF";
		D41H         = new Image();
		D41H.src     = "IMG/41_COL.GIF";
		D41L         = new Image();
		D41L.src     = "IMG/41_GRAU.GIF";
		D42H         = new Image();
		D42H.src     = "IMG/42_COL.GIF";
		D42L         = new Image();
		D42L.src     = "IMG/42_GRAU.GIF";
		D43H         = new Image();
		D43H.src     = "IMG/43_COL.GIF";
		D43L         = new Image();
		D43L.src     = "IMG/43_GRAU.GIF";
		D44H         = new Image();
		D44H.src     = "IMG/44_COL.GIF";
		D44L         = new Image();
		D44L.src     = "IMG/44_GRAU.GIF";
		D45H         = new Image();
		D45H.src     = "IMG/45_COL.GIF";
		D45L         = new Image();
		D45L.src     = "IMG/45_GRAU.GIF";
		D46H         = new Image();
		D46H.src     = "IMG/46_COL.GIF";
		D46L         = new Image();
		D46L.src     = "IMG/46_GRAU.GIF";
		D47H         = new Image();
		D47H.src     = "IMG/47_COL.GIF";
		D47L         = new Image();
		D47L.src     = "IMG/47_GRAU.GIF";
		D48H         = new Image();
		D48H.src     = "IMG/48_COL.GIF";
		D48L         = new Image();
		D48L.src     = "IMG/48_GRAU.GIF";
		D49H         = new Image();
		D49H.src     = "IMG/49_COL.GIF";
		D49L         = new Image();
		D49L.src     = "IMG/49_GRAU.GIF";

		D50H         = new Image();
		D50H.src     = "IMG/50_COL.GIF";
		D50L         = new Image();
		D50L.src     = "IMG/50_GRAU.GIF";



		}

	MyOrte = new Array (
		"1 - Pfarrkirche",
		"2 - Gärtnerhof",
		"3 - Blauer Hof",
		"4 - Passespielhaus linker Trakt",
		"5 - Passespielhaus rechter Trakt",
		"6 - Bereiterstöckl",
		"7 - Lacy-Haus",
		"8 - Klosterkirche",
		"9 - Kloster",
		"10 - Doktorhaus",
		"11 - Apothekerhaus",
		"12 - Alte Volksschule",
		"13 - Rathaus",
		"14 - Speisesaaltrakt",
		"15 - Schlüsselgebäude",
		"16 - Theater",
		"17 - Park",
		"18 - Altes Schloss",
		"19 - Haus Elisabeth",
		"20 - Rossschwemme",
		"21 - Ort der Mitte",
		"22 - Pferdestall und Wagenremise",
		"23 - Kleiner Reiherstadel",
		"24 - Haus Johannesplatz 4",
		"25 - Haus Johannesplatz 3 Nord-Süd-Trakt",
		"26 - Haus Johannesplatz 3 Ost-West-Trakt",
		"27 - Kaserne",
		"28 - Johannesplatz 1",
		"29 - Eisenbahnerpark",
		"30 - Markus-Löwe",
		"31 - Kaiserbahnhof",
		"32 - Grünne-Haus",
		"33 - Aphrodite-Brunnen",
		"34 - Hofstraße beim Rathauspark",
		"35 - Pfarrhof",
		"36 - Alte Feuerwehr und landwirtschaftl. Casino",
		"37 - Wiener Straße 2",
		"38 - Johannes Nepumuk-Kapelle",
		"39 - Bildstock",
		"40 - Wiener Strass 14-22",
		"41 - Posthof",
		"42 - Marienkapelle",
		"43 - Feuerwehr Museum",
		"44 - Friedhof",
		"45 - Dreifaltigkeits-Säule",
		"46 - Johannes Berl-Park",
		"47 - Erdäpfelkeller / Eiskeller",
		"48 - Falkeniergasse 10",
		"49 - Mariazellerkapelle",
		"50 - Neudorfer Straße 4/6"
		);

	MyLinks = new Array (
		"E1_1207.html",
		"E1_1208.html",
		"E1_1209.html",
		"E1_1210.html",
		"E1_1211.html",
		"E1_1212.html",
		"E1_1213.html",
		"E1_1214.html",
		"E1_1215.html",
		"E1_1216.html",
		"E1_1217.html",
		"E1_1218.html",
		"E1_1219.html",
		"E1_1220.html",
		"E1_1221.html",
		"E1_1222.html",
		"E1_1223.html",
		"E1_1224.html",
		"E1_1225.html",
		"E1_1226.html",
		"E1_1227.html",
		"E1_1228.html",
		"E1_1236.html",
		"E1_1237.html",
		"E1_1238.html",
		"E1_1239.html",
		"E1_1240.html",
		"E1_1241.html",
		"E1_1242.html",
		"E1_1243.html",
		"E1_1244.html",
		"E1_1245.html",
		"E1_1246.html",
		"E1_1247.html",
		"E1_1248.html",
		"E1_1249.html",
		"E1_1250.html",
		"E1_1251.html",
		"E1_1252.html",
		"E1_1253.html",
		"E1_1254.html",
		"E1_1255.html",
		"E1_1256.html",
		"E1_1257.html",
		"E1_1258.html",
		"E1_1259.html",
		"E1_1260.html",
		"E1_1261.html",
		"E1_1262.html",
		"E1_1263.html"
		);

	MyActiveNumber= new Array (
		"",
		0,
		1
		);	

	document.F1.THEME1.value = "";
	document.F2.THEME2.value = MyOrte[0];
	document.F3.THEME3.value = MyOrte[1];
	}

