//<![CDATA[



function init(){
schrittweite=35;
i = new Array();
maxbreite =770;
timeout = new Array;
//Fenster= window.open("js/test.html", "neuesFenster", "height=830, width=200, screenx=1500, screeny=100");
}
function aufklapp(x){
	try {
for (j = 0; typeof document.getElementById("ausklapp"+x) != "undefined"; j++) {
if (j != x ) closeithelp(j);
//Fenster.document.writeln(j+"|"+document.getElementById("ausklapp"+j).toString());
}
	}
	catch (e) {}
if(i[x]!=0){i[x]=0;}
document.getElementById("ausklapp"+x).style.display="block";
klapp(x);
}
function klapp(x){
var max =maxbreite-schrittweite;
if(i[x] <= (max)){
document.getElementById("ausklapp"+x).style.width=i[x]+"px";
i[x]=i[x]+ schrittweite;
window.setTimeout("klapp("+x+")",10);
}else{
document.getElementById("links_ausklapp"+x).style.display="block";
document.getElementById("ausklapp"+x).style.width=maxbreite+"px";}
}
function letopen(x){
//Fenster.document.writeln("offenlassen von "+x+"<br \/>"); 
 window.clearTimeout(timeout[x]);
 i[x]=maxbreite;
 document.getElementById("links_ausklapp"+x).style.display="block";
 document.getElementById("ausklapp"+x).style.display="block";
 document.getElementById("ausklapp"+x).style.width=i[x]+"px";
}

function closeit(x) {
    closeit(x, true);
}

function closeit(x, delay){
//Fenster.document.writeln("schlie&szlig;en von "+x+"<br \/>"); 
    if ( delay == 0) {
		timeout[x] = window.setTimeout("closeithelp(" + x + ")", 2000);
//Fenster.document.writeln("mit delay <br \/>"); 
	}
    else {
		if ( typeof timeout[x] == "undefined" ) closeithelp(x);
//		Fenster.document.writeln("ohne delay, timeout = "+timeout[x]+"<br \/>");
	}
}

function closeithelp(x) {
 i[x]=0;
 document.getElementById("ausklapp"+x).style.display="none";
 document.getElementById("links_ausklapp"+x).style.display="none";
}
// Ab hier kommt Mousover vom menu

function changeClass(id,klasse){
if(klasse != ''){
klass1='alt_clr_'+klasse;
if (klasse=='beruf over'|| klasse=='beruf')
{klass1='alt_clr_beruf marginTop';}
id.className=klass1;
klasse=klasse;
id.firstChild.className="bclr_"+klasse;
}
}

function changeClassBack(id,klasse){
if(klasse != ""){
klass1='bclr_'+klasse;
if (klasse=='beruf')
{klass1='bclr_beruf marginTop';}
id.className=klass1;
id.firstChild.className="alt_clr_"+klasse;
}
}

function clearV(id){
id.value="";
}


//]]>


