//==============================================//
// JS Entwicklung durch Ebers Datentechnik GbR  //
// by Uwe Ebers 11.01.2003						//
//==============================================//


ns4 = (document.layers) ? 1:0
ns6 = (document.getElementById) ? 1:0;
ie = (document.all) ? 1:0

var toppos3 = 101            // Position des Bubles Entwicklungen
var toppos2 = 131            // Position des Bubles Schulungen
var toppos1 = 170            // Position des Bubles Projekte
var toppos4 = 210            // Position des Bubles Kontakte
var toppos5 = 250            // Position des Bubles AGB
var toppos6 = 290            // Position des Bubles IMPRESSUM
var toppos7 = 330            // Position des Bubles Start

//Entwicklungen
function moving3(){

if (ie){
	//alert(document.getElementById("dot3").style.pixelTop);
	//alert(toppos3);
	if (dot3.style.pixelTop>toppos3)
		dot3.style.pixelTop-=20
		moveid3=setTimeout("moving3()",5);
	if (dot3.style.pixelTop<toppos3)
		ebene3.style.visibility="visible";
	} else if (ns4){ // Ab hier nur noch Netscape
	if (document.dot3.top>toppos3)
		document.dot3.top-=20
		moveid3=setTimeout("moving3()",5);
	if (document.dot3.top<toppos3)
		document.ebene3.visibility="show";
	}else{	
	if (parseInt(document.getElementById("dot3").style.top)>toppos3) {
		z = parseInt(document.getElementById("dot3").style.top)-20
		document.getElementById("dot3").style.top = z+"px"
		moveid3=setTimeout("moving3()",5);
	if (parseInt(document.getElementById("dot3").style.top)<toppos3)
		document.getElementById(ebene3).style.visibility = "visible";
	
	}
	
	
		
	}
	
}

//Schulungen
function moving2(){

if (ie){
	if (dot2.style.pixelTop<toppos2)
		dot2.style.pixelTop+=10
		moveid2=setTimeout("moving2()",5)
	if (dot2.style.pixelTop>toppos2)
		ebene2.style.visibility="visible";
	} else if (ns4) { // Ab hier nur noch Netscape
	if (document.dot2.top<toppos2)
		document.dot2.top+=10
		moveid2=setTimeout("moving2()",5);
	if (document.dot2.top>toppos2)
		document.ebene2.visibility="show";
	}else{
	if (parseInt(document.getElementById("dot2").style.top)<toppos2) {
		z = parseInt(document.getElementById("dot2").style.top)+10
		document.getElementById("dot2").style.top = z+"px"
		moveid2=setTimeout("moving2()",5);
	if (parseInt(document.getElementById("dot2").style.top)>toppos2)
		document.getElementById(ebene2).style.visibility = "visible";
	
	}
	}
}
	
//Projekte
function moving1(){

if (ie){
	if (dot1.style.pixelTop<toppos1)
		dot1.style.pixelTop+=20
		moveid1=setTimeout("moving1()",5)
	if (dot1.style.pixelTop>toppos1)
		ebene1.style.visibility="visible";
		} else if (ns4){ // Ab hier nur noch Netscape
		if (document.dot1.top<toppos1)
			document.dot1.top+=20
			moveid1=setTimeout("moving1()",5);
		if (document.dot1.top>toppos1)
			document.ebene1.visibility="show";
		}else{
	if (parseInt(document.getElementById("dot1").style.top)<toppos1) {
		z = parseInt(document.getElementById("dot1").style.top)+20
		document.getElementById("dot1").style.top = z+"px"
		moveid1=setTimeout("moving1()",5);
	if (parseInt(document.getElementById("dot1").style.top)>toppos1)
		document.getElementById(ebene1).style.visibility = "visible";
		}
	}
} 
			
//AGB & Impressum
function moving4(){

if (ie){
	if (dot4.style.pixelTop<toppos4)
		dot4.style.pixelTop+=20
		moveid4=setTimeout("moving4()",5)
	if (dot4.style.pixelTop>toppos4)
		ebene4.style.visibility="visible";
	} else if (ns4) { // Ab hier nur noch Netscape
	if (document.dot4.top<toppos4)
		document.dot4.top+=20
		moveid4=setTimeout("moving4()",5);
	if (document.dot4.top>toppos4)
		document.ebene4.visibility="show";
	}else{
	if (parseInt(document.getElementById("dot4").style.top)<toppos4) {
		z = parseInt(document.getElementById("dot4").style.top)+20
		document.getElementById("dot4").style.top = z+"px"
		moveid4=setTimeout("moving4()",5);
	if (parseInt(document.getElementById("dot4").style.top)>toppos4)
		document.getElementById(ebene4).style.visibility = "visible";
		}
	}
}
		
//Kontakt
function moving5(){

if (ie){
	if (dot5.style.pixelTop<toppos5)
		dot5.style.pixelTop+=20
		moveid5=setTimeout("moving5()",5)
	if (dot5.style.pixelTop>toppos5)
		ebene5.style.visibility="visible";
	} else if (ns4){ // Ab hier nur noch Netscape
	if (document.dot5.top<toppos5)
		document.dot5.top+=20
		moveid5=setTimeout("moving5()",5);
	if (document.dot5.top>toppos5)
		document.ebene5.visibility="show";
	}else{
	if (parseInt(document.getElementById("dot5").style.top)<toppos5) {
		z = parseInt(document.getElementById("dot5").style.top)+20
		document.getElementById("dot5").style.top = z+"px"
		moveid5=setTimeout("moving5()",5);
	if (parseInt(document.getElementById("dot5").style.top)>toppos5)
		document.getElementById(ebene5).style.visibility = "visible";
		}
	}
}
	
//Start
function moving6(){

if (ie){
	if (dot6.style.pixelTop<toppos6)
		dot6.style.pixelTop+=20
		moveid6=setTimeout("moving6()",5)
	if (dot6.style.pixelTop>toppos6)
		ebene6.style.visibility="visible";
	} else if (ns4){ // Ab hier nur noch Netscape
	if (document.dot6.top<toppos6)
		document.dot6.top+=20
		moveid6=setTimeout("moving6()",5);
	if (document.dot6.top>toppos6)
		document.ebene6.visibility="show";
	}else{
	if (parseInt(document.getElementById("dot6").style.top)<toppos6) {
		z = parseInt(document.getElementById("dot6").style.top)+20
		document.getElementById("dot6").style.top = z+"px"
		moveid6=setTimeout("moving6()",5);
	if (parseInt(document.getElementById("dot6").style.top)>toppos6)
		document.getElementById(ebene6).style.visibility = "visible";
		}
	}
}

//Start
function moving7(){

if (ie){
	if (dot7.style.pixelTop<toppos7)
		dot7.style.pixelTop+=20
		moveid7=setTimeout("moving7()",5)
	if (dot7.style.pixelTop>toppos7)
		ebene7.style.visibility="visible";
	} else if (ns4){ // Ab hier nur noch Netscape
	if (document.dot7.top<toppos7)
		document.dot7.top+=20
		moveid7=setTimeout("moving7()",5);
	if (document.dot7.top>toppos7)
		document.ebene7.visibility="show";
	}else{
	if (parseInt(document.getElementById("dot7").style.top)<toppos7) {
		z = parseInt(document.getElementById("dot7").style.top)+20
		document.getElementById("dot7").style.top = z+"px"
		moveid7=setTimeout("moving7()",5);
	if (parseInt(document.getElementById("dot7").style.top)>toppos7)
		document.getElementById(ebene7).style.visibility = "visible";
		}
	}
}


function init(){
	moving1();
	moving2();
	moving3();
	moving4();
	moving5();
	moving6();
	//moving7();
	
}

function clearall(){
	if (ie){
	  entwicklungen.style.visibility="hidden";
	  mylayout.style.visibility="hidden";
	  myhtml.style.visibility="hidden";
	  mysql.style.visibility="hidden";
	  myjavascript.style.visibility="hidden";
	  mymiddleware.style.visibility="hidden";
	}else if (ns4){
	  document.mylayout.visibility="hide";
	  document.myhtml.visibility="hide";
	  document.mysql.visibility="hide";
	  document.myjavascript.visibility="hide";
	  document.mymiddleware.visibility="hide";
	  document.entwicklungen.visibility="hide";
	} else {
	  document.getElementById("mylayout").visibility="hidden";
	  document.getElementById("myhtml").visibility="hidden";
	  document.getElementById("mysql").visibility="hidden";
	  document.getElementById("myjavascript").visibility="hidden";
	  document.getElementById("mymiddleware").visibility="hidden";
	  document.getElementById("entwicklungen").visibility="hidden";
	}
}

var i = 1;
var area = "earea";
function showarea(area_nr){
    verbergen(eval('"' + area + i +'"'));
    zeigen(eval('"' + area + area_nr +'"'));
    i = area_nr; 
    }
	


function zeigen(name) {
if (ns4) {
    document.layers[''+name].visibility = "show";		
    }
    else if (ie){
    document.all[''+name].style.visibility = "visible"
    } else {
	document.getElementById(name).style.visibility = "visible";
	}
}

function verbergen(name) {
if (ns4){
    document.layers[''+name].visibility = "hide"
    }
    else if (ie){
    document.all[''+name].style.visibility = "hidden"
    } else {
    	document.getElementById(name).style.visibility = "hidden";
    }
}


function openWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ; 
	} 
