<!--
// determine which index page we are on and if language id is set
//
var url = new String(window.location)
var len = url.length
if(url.indexOf(".htm") < 0) {					// dir without index filename?
	if(url.lastIndexOf("/") != len-1) url += "/"		// add "/" after dir name
	url += "index.html"					// add index.htm to URL
}

len = url.length
var posFragez = url.indexOf("?")
var indexPage = url.indexOf("index.htm")
var page = 1
var langID = ''
var langIDext = ''
var pf_left  = '<span class="titel3">&laquo</span>'
var pf_right = '<span class="titel3">&raquo</span>'

//try {
//   if (numPages>0) throw "err";
//}
//catch (e) {
//   if(e) numPages = 1
//}
//alert("numPages="+numPages)

if(url.indexOf("_e.html")  > 0) langID = "e"
if(url.indexOf("features") >0)  langID = "e"
if(url.indexOf("examples") >0)  langID = "e"

if(posFragez > 0)
{
	if(url.substring(len-1,len) == "e")
	{
		langID = "e"
		len -= 1
	}

	if(url.substring(len-1,len) != "?") {
		page = url.substring(posFragez + 1, len)
		if (page < 1) page = 1
		if (page > numPages) page = numPages
	}
}

if (langID == "e")
{
	_Page     = 'Page'
	_of       = ' of '
	_prevPage = 'Previous ' + _Page
	_nextPage = 'Next ' + _Page
	_prev     = 'Previous'
	_next     = 'Next' 
	_back2    = 'Back to ' 
	_largeVers= 'Click on any photo to see a larger version'
	_go2Cat   = 'Click on each photo to enter the categories'
	_allRights= 'All rights reserved.'
	_Galleries= 'Galleries'
	langIDpic = '?e'					// immer "?e"
	langIDfile= '_e'					// immer "_e"
	if(posFragez == len-1)	langIDext = '?e'		// zB "index.htm?e"
	else	       		langIDext = 'e'			// zB "index.htm?3e" (more pages)
	// link to other language of same page
	if(posFragez == len-1)	_otherLangURL = url.substring(0, len-1)		// delete "?e"
	else	       		_otherLangURL = url.substring(0, len)		// delete "e" (more pages)
	_otherLang= 'Diese Seite auf <a href="' + _otherLangURL + '">Deutsch</a>...'
}
else	// deutsch
{
	_Page     = 'Seite'
	_of       = ' von '
	_prevPage = 'Vorige ' + _Page
	_nextPage = 'N&auml;chste ' + _Page
	_prev     = 'Voriges'
	_next     = 'N&auml;chstes' 
	_back2    = 'Zur&uuml;ck zum ' 
	_largeVers= 'Klick auf ein Foto f&uuml;r eine gr&ouml;&szlig;ere Ansicht'
	_go2Cat   = 'Klick auf ein Foto um diese Kategorie anzusehen'
	_allRights= 'Alle Rechte vorbehalten.'
	_Galleries= 'Galerien'
	langIDpic = ''
	langIDfile= ''
	langIDext = ''
	// link to other language of same page
	if(posFragez < 0) {
		if(indexPage > 0)
			_otherLangURL = url + "?1e"				// add "?1e" (nur f. index)
		else	_otherLangURL = url + "?e"				// add "?e"
	}
	else		_otherLangURL = url + "e"				// add "e" (more pages)
	_otherLang= 'This page in <a href="' + _otherLangURL + '">English</a>...'
}
// -->