
compat = false;
if( parseInt( navigator.appVersion ) >= 3 ) { compat = true; }
if( compat )

{
but_x = new Image;
but_x.src = "images/arrow_a.gif";
but_xx = new Image;
but_xx.src = "images/arrow_b.gif";
}


function over(topmenu) {
	if (topmenu.className=='menu_off') topmenu.className='menu_on';
}

function out(topmenu) {
	if (topmenu.className != 'menu_akt') topmenu.className = 'menu_off';
}

function subover(topmenu) {
	if (topmenu.className=='menu_sub_off') topmenu.className='menu_sub_on';
}

function subout(topmenu) {
	if (topmenu.className != 'menu_sub_akt') topmenu.className = 'menu_sub_off';
}

function onoff(topmenu, tabid, x, xx) {
	if(document.getElementById(tabid).style.display == 'none') {
		topmenu.className='menu_akt';
		if (tabid != "") document.getElementById(tabid).style.display = "block";
		while (x > 0) {
			menu = "submenu"+x;
			x--;
			if (tabid == menu) continue;
			document.getElementById(menu).style.display = "none";
		}
		while (xx > 0) {
			menu = "topmenu"+xx;
			xx--;
			if (topmenu.id == menu) continue;
			document.getElementById(menu).className='menu_off';
		}
	}
	else {
		document.getElementById(tabid).style.display = "none";
	}
}

function onoff2(topmenu, x, xx) {
	topmenu.className='menu_akt';
	while (x > 0) {
		menu = "submenu"+x;
		x--;
		document.getElementById(menu).style.display = "none";
	}
	while (xx > 0) {
		menu = "topmenu"+xx;
		xx--;
		if (topmenu.id == menu) continue;
		document.getElementById(menu).className='menu_off';
	}
}


function SelectMenu(nummer) {
	location = "index.php?sprache=" + document.suchform.sprache.value + "&id=" + nummer;
}
function drucken(id,sprache) {
	window.open("pdf.php?sprache=" + sprache + "&druck=1&id="+id, "print", "left=5000,width=900,height=700,scrollbars=yes,resizable=yes,location=no,status=no,toolbar=no");
}
function pdf(id,sprache) {
	window.open("pdf2.php?sprache=" + sprache + "&id="+id, "pdf", "left=0,width=900,height=700,scrollbars=YES,resizable=yes,location=no,status=no,toolbar=no");
}
function email(id,sprache) {
	window.open("email.php?sprache=" + sprache + "&id="+id, "pdf", "left=0,width=600,height=400,scrollbars=YES,resizable=yes,location=no,status=no,toolbar=no");
}

