if(navigator.appName == 'Netscape') {
	if(navigator.appVersion.substring(0,1) == "4") {
		nav = 1;
	} else if(navigator.appVersion.substring(0,1) != "4"){
		nav = 2;
	}
} else if(navigator.appName.indexOf('Microsoft') !=-1) {
	nav=2;
} else if(navigator.appName == 'Opera') {
	nav=2;
}
/* alert(navigator.appName);*/

function show(idname) {
	if(document.getElementById) {
    	document.getElementById(idname).style.visibility = "visible";
        document.getElementById(idname).style.width = "400";
        document.getElementById(idname).style.height = "400";
    }
}
function hide(idname) {
	if(document.getElementById) {
    	document.getElementById(idname).style.visibility = "hidden";
        document.getElementById(idname).style.width = "0";
        document.getElementById(idname).style.height = "0";
    }
}

function checkframe_tanzen() {
	if(window==window.top) {
    	top.location.href='../index.html';
    } else {
    	top.mitte.rechts.location.href = "rechts_tanzen.html";
	}
}

function bildergalerie(name) {
	window.open(name,"Bilder","width=400,height=500,status=no,menubar=no,locationbar=no");
}
function gaestebuch(name) {
	window.open(name,"Bilder","width=600,height=500,status=no,menubar=no,locationbar=no,scrollbars=yes");
}

function gohref(name) {
	window.location.href = name;
}

function donav(pfad,name,nr,nrs) {
	var erg = window.location.href.search("eng");
	if(erg!=-1)
		var lang = "eng";
	else
		var lang = "deu";
	var navstr;

	var temp = "<ul>";

	switch(lang) {
		case("deu"):	
    temp+="<li><a ";if(nr==0){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/index.html\">Home</a></li>";
    temp+="<li><a ";if(nr==1){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/uebermich/cont.html\">Über mich</a></li>";
    temp+="<li><a ";if(nr==2){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/idee/cont.html\">Freedom of movement</a></li>";
		temp+="<li><a ";if(nr==3){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/tanzen/cont.html\">Tanzen</a></li>";
		temp+="<li><a ";if(nr==4){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/feldenkrais/cont.html\">Feldenkrais</a></li>";
		temp+="<li><a ";if(nr==5){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/termine/cont.html\">Termine</a></li>";
		temp+="<li><a ";if(nr==6){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/kontakt.html\">Kontakt/Impressum</a></li>";
		temp+="<li><a ";if(nr==7){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/links.html\">Links</a></li>";
		temp+="<li><a ";if(nr==8){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/papers/cont.html\">Medien/CDs & DVDs/Videos</a></li>";
    break;
   case("eng"):
    temp+="<li><a ";if(nr==0){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/index.html\">Home</a></li>";
    temp+="<li><a ";if(nr==1){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/uebermich/cont.html\">About me</a></li>";
    temp+="<li><a ";if(nr==2){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/idee/cont.html\">Freedom of movement</a></li>";
		temp+="<li><a ";if(nr==3){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/tanzen/cont.html\">Dancing</a></li>";
		temp+="<li><a ";if(nr==4){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/feldenkrais/cont.html\">Feldenkrais</a></li>";
		temp+="<li><a ";if(nr==5){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/termine/cont.html\">Events</a></li>";
		temp+="<li><a ";if(nr==6){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/kontakt.html\">Contact/Impressum</a></li>";
		temp+="<li><a ";if(nr==7){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/links.html\">Links</a></li>";
		temp+="<li><a ";if(nr==8){temp+="class=\"act\" ";};temp+="href=\"" + pfad + lang + "/papers/cont.html\">Medien/CDs & DVDs/Videos</a></li>";
   	break;
  }
    
    temp+="<li>&nbsp;<br>&nbsp;<br></li>";

     //temp+="<li><a style=\"border:solid 1px black;padding:4px;\" href=\"javascript:gohref(window.location.href.replace('deu','eng'));\">Eng.</a>&nbsp;<a style=\"border:solid 1px black;padding:4px;\" href=\"javascript:gohref(window.location.href.replace('eng','deu'));\">Deu</a></li>";
     //temp+="<li><a href=\"javascript:gohref(window.location.href.replace('deu','eng'));\"><img src=\"" + pfad + "pics/01_usauk.gif\" border=\"0\"></a>&nbsp;<a href=\"javascript:gohref(window.location.href.replace('eng','deu'));\"><img src=\"" + pfad + "pics/01_deutschland.gif\" border=\"0\"></a></li>";
     //temp+="<li><a href=\""+ pfad + "index.html\"><img src=\"" + pfad + "pics/01_usauk.gif\" border=\"0\"></a>&nbsp;<a href=\""+ pfad + "index.html\"><img src=\"" + pfad + "pics/01_deutschland.gif\" border=\"0\"></a></li>";
    
    temp+="</ul>";

	if(nav==1) {
		document.navigation.document.open();
   		document.navigation.document.write(temp);
   		document.navigation.document.close();
    }
	else if(nav==2) {
		document.getElementById("navigation").innerHTML=temp;
    }

	temp = "";
	temp += name;
	//temp += "<div class=\"impressum\"><a href=\"" + pfad + "hochzeit/impressum.html\">Impressum</a></div></p>";
	if(nav==1){
		document.wobinich.document.open();
   		document.wobinich.document.write(temp);
   		document.wobinich.document.close();
	} else if(nav==2){
		document.getElementById("wobinich").innerHTML=temp;
	}
    dosubnav(pfad,nr,nrs,lang);
}
function dosubnav(pfad,nr,nrs,lang) {
	var temp = "";
		temp+="<ul>";
		switch(lang) {
			case("deu"): 
		    switch(nr) {
		    	case 0:
		        	temp ="";
		            break;
		    	case 1:
		          temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/uebermich/cont.html\">Über mich</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/uebermich/werdegang.html\">Mein Werdegang</a></li>";
		          temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/aloevera.html\">Aloe Vera</a></li>";
		        	break;
		        case 2:
		          temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/idee/cont.html\">Freedom of Movement</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/idee/weg_feldenkrais.html\">Mein Weg</a></li>";
		        	temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/idee/dancesmart.html\">Dance Smart</a></li>";
		        	break;
		        case 3:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/tanzen/cont.html\">Tanzen</a></li>";
		        	temp+="<li>Qualitätsmerkmale&nbsp;<a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/tanzen/qumerkmale.html\">Latein</a>";
		        	temp+="&nbsp;-&nbsp;";
		        	temp+="<a ";if(nrs==3){temp+="class=\"act\" "};temp+=" href=\"qumerkmale2.html\">Standard</a></li>";
		        	break;
						case 4:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/feldenkrais/cont.html\">Feldenkrais</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/feldenkrais/moshe_feldenkrais.html\">Moshe Feldenkrais</a></li>";
		        	temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/feldenkrais/impr_atm.html\">Impressionen</a></li>";
		        	break;
		        case 5:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/termine/cont.html\">Aktuelle Termine</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/termine/cont_bisher.html\">Bisherige Veranstaltungen</a></li>";
		        	temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/termine/bildergalerien.html\">Bildergalerien</a></li>";
		        	break;
		        case 6:
		        	break;
		        case 7:
		        	break;
		        case 8:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/papers/cont.html\">Veröffentlichungen</a></li>";
		          temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/papers/cds.html\">CDs & DVDs</a></li>";
		          temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/papers/videos.html\">Videos</a></li>";
		        	break;
		        default: break;
		    }
		    break;
		  case("eng"):
		    switch(nr) {
		    	case 0:
		        	temp ="";
		            break;
		    	case 1:
		          temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/uebermich/cont.html\">About me</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/uebermich/werdegang.html\">Mein Werdegang</a></li>";
		          temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/aloevera.html\">Aloe Vera</a></li>";
		        	break;
		        case 2:
		          temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/idee/cont.html\">Freedom of Movement</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/idee/weg_feldenkrais.html\">My way</a></li>";
		        	temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/idee/dancesmart.html\">Dance Smart</a></li>";
		        	break;
		        case 3:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/tanzen/cont.html\">Dancing</a></li>";
		        	temp+="<li>Qualitätsmerkmale&nbsp;<a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/tanzen/qumerkmale.html\">Latin</a>";
		        	temp+="&nbsp;-&nbsp;";
		        	temp+="<a ";if(nrs==3){temp+="class=\"act\" "};temp+=" href=\"qumerkmale2.html\">Ballroom</a></li>";
		        	break;
						case 4:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/feldenkrais/cont.html\">Feldenkrais</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/feldenkrais/moshe_feldenkrais.html\">Moshe Feldenkrais</a></li>";
		        	temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/feldenkrais/impr_atm.html\">Impressions</a></li>";
		        	break;
		        case 5:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/termine/cont.html\">Actual events</a></li>";
		        	temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/termine/cont_bisher.html\">Past events</a></li>";
		        	temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/termine/bildergalerien.html\">Galery</a></li>";
		        	break;
		        case 6:
		        	break;
		        case 7:
		        	break;
		        case 8:
		        	temp+="<li><a ";if(nrs==1){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/papers/cont.html\">Publications</a></li>";
		          temp+="<li><a ";if(nrs==2){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/papers/cds.html\">CDs & DVDs</a></li>";
		          temp+="<li><a ";if(nrs==3){temp+="class=\"act\" "};temp+="href=\"" + pfad + lang + "/papers/videos.html\">Videos</a></li>";
		        	break;
		        default: break;
		    	}
		  	break;
		  }
    temp+="</ul>";

	if(nav==1) {
		document.subnavigation.document.open();
   		document.subnavigation.document.write(temp);
   		document.subnavigation.document.close();
    }
	else if(nav==2) {
		document.getElementById("subnavigation").innerHTML=temp;
    }
}
