// JavaScript Document
var N4 = false; 
var IE = false; 
var W3C = false;
var init = false;

var prevStat = 'dmx';

BrName = navigator.appName;
BrNumb = navigator.appVersion.split(';');
BrPlat = navigator.platform;
BrInt = BrNumb[1].split(".");

if(document.layers) {
	N4=true;
	//writetext="";
}
if(document.all){
	IE=true;
}
if(document.getElementById){
	W3C=true;
}
if(IE && W3C && !document.getElementById("content")){
	W3C = false;
}


function box(v)
	{
	i=0;
	cl_arr = new Array("info_neu","info_offen");
	img_arr = new Array("ico","ico_offen");
	
	if(W3C)
		{
		if(document.getElementById("box_" + v).className == cl_arr[0]) i++;
		
		document.getElementById("box_" + v).className = cl_arr[i];
		document.getElementById("pic_" + v).className = img_arr[i];
		//document["pic_"+v].src = 
		}
	if(IE)
		{
		if(document.all["box_" + v].className == cl_arr[0]) i++;
		document.all["box_" + v].className = cl_arr[i];
		document.all["pic_" + v].className = img_arr[i];
		}
	}

function cont_box(v)
	{
	i=0;
	cl_arr = new Array("cont_neu","cont_offen");
	img_arr = new Array("ico","ico_offen");
	
	if(W3C)
		{
		if(document.getElementById("box_" + v).className == cl_arr[0]) i++;
	
		document.getElementById("box_" + v).className = cl_arr[i];
		document.getElementById("pic_" + v).className = img_arr[i];
		}
	else
		{
		if(document.all["box_" + v].className == cl_arr[0]) i++;
	
		document.all["box_" + v].className = cl_arr[i];
		document.all["pic_" + v].className = img_arr[i]
		
		}
	}

