var last_show = 1;

function show( which)
{

	if (!loaded) {return;}
	
	if (browser.indexOf("Microsoft") > -1) {
		if (last_show) {last_doc = 'document.all["text0'+last_show+'DIV"].style.visibility';}
		acti_doc = 'document.all["text0'+which+'DIV"].style.visibility';
	} else {
		if (last_show) {last_doc = 'document.layers["text0'+last_show+'DIV"].visibility';}
		acti_doc = 'document.layers["text0'+which+'DIV"].visibility';
	} 

	if (document.getElementById) {
		if (last_show) {last_doc = 'document.getElementById("text0'+last_show+'DIV").style.visibility';}
		acti_doc = 'document.getElementById("text0'+which+'DIV").style.visibility';
	}

	if (last_show) {
		eval(last_doc+'= "hidden"');
		if (location.href.indexOf("dienstleistungen.php") > -1) {
			swapIMG('dl/dienstl_0'+last_show);
		} else {
			swapIMG('quali/quali_0'+last_show);
		}
	}
	
	eval(acti_doc+'= "visible"');
	last_show = which;

}



var last_reiter = 1;
function reiter( which)
{

	if (!loaded) {return;}

	if (browser.indexOf("Microsoft") > -1) {
		if (last_reiter) {last_doc = 'document.all["reiter'+last_reiter+'DIV"].style.visibility';}
		acti_doc = 'document.all["reiter'+which+'DIV"].style.visibility';
	} else {
		if (last_reiter) {last_doc = 'document.layers["reiter'+last_reiter+'DIV"].visibility';}
		acti_doc = 'document.layers["reiter'+which+'DIV"].visibility';
	} 

	if (document.getElementById) {
		if (last_reiter) {last_doc = 'document.getElementById("reiter'+last_reiter+'DIV").style.visibility';}
		acti_doc = 'document.getElementById("reiter'+which+'DIV").style.visibility';
	}

	if (last_reiter) {
		eval(last_doc+'= "hidden"');
		swapIMG('quali/reiter/reiter_'+last_reiter);
	}
	
	if (last_reiter == 2) {
		for (i=1;i<=5;i++) {
			if (document.all) {
				document.all["text0"+i+"DIV"].style.visibility = "hidden";
			} else {
				if (document.getElementById) {
					document.getElementById("text0"+i+"DIV").style.visibility = "hidden";
				} else {
					document.layers["text0"+i+"DIV"].visibility = "hidden";}
			}
		}
	}
	
	if (which == 2) {
		if (document.all) {
				document.all["text01DIV"].style.visibility = "visible";
			} else {
				if (document.getElementById) {
					document.getElementById("text01DIV").style.visibility = "visible";
				} else {
					document.layers["text01DIV"].visibility = "visible";}
			}
	}
	
	
	eval(acti_doc+'= "visible"');
	document.images["reiter_"+which+"IMG"].src = "/images/"+lang+"/quali/reiter/reiter_"+which+"_hi.gif";
	last_reiter = which;
}
