
// Funktionen fuer Pfeil

var clicked='';
var ausnahme='';
var inOut='OUT';
function init_img() {

  p1_0 = new Image();
    p1_1 = new Image(); 
    p2_0 = new Image();
    p2_1 = new Image(); 
    p3_0 = new Image();
    p3_1 = new Image();
    p5_0 = new Image();
    p5_1 = new Image();
    p5_n = new Image();
    p5_h = new Image();
    
    p6_0 = new Image();
    p6_1 = new Image(); 
    
    n1_0 = new Image();
    n1_1 = new Image();
    n2_1 = new Image();
    n3_1 = new Image();
    n4_1 = new Image();
    n5_1 = new Image();
    n6_1 = new Image();
    n7_1 = new Image();
    n8_1 = new Image();
    n9_1 = new Image();
    n10_1 = new Image();
    n11_1 = new Image();
    
    
    p1_0.src   = "../pic/leer.gif";
    p1_1.src   = "../pic/roll_haupt.gif";
    p2_0.src   = "../pic/n5_0elektrosmog.gif";
    p2_1.src   = "../pic/n5_1elektrosmog.gif";
    p3_0.src   = "../pic/un1.gif";
    p3_1.src   = "../pic/un2.gif";
    p5_0.src   = "../pic/n5_1_0.gif";
    p5_1.src   = "../pic/n5_1_1.gif";
    p5_n.src   = "../pic/n5_nieder.gif";
    p5_h.src   = "../pic/n5_hoch.gif";
    
    p6_0.src   = "../pic/n_wohngift_0.gif";
    p6_1.src   = "../pic/n_wohngift_1.gif";
    
    n1_0.src   = "../pic/leer.gif";
    n11_1.src  = "../pic/leer.gif";
    n1_1.src   = "../pic/n1_unternavi.gif";
    n2_1.src   = "../pic/n2_unternavi.gif";
    n3_1.src   = "../pic/n3_unternavi.gif";
    n4_1.src   = "../pic/n4_unternavi.gif";
    n5_1.src   = "../pic/n5_unternavi.gif";
    n6_1.src   = "../pic/n6_unternavi.gif";
    n7_1.src   = "../pic/n7_unternavi.gif";
    n8_1.src   = "../pic/n8_unternavi.gif";
    n9_1.src   = "../pic/n9_unternavi.gif";
  n10_1.src   = "../pic/n10_unternavi.gif";
}





function hiLite (imgDocID,imgObjName) {
  if(clicked != imgDocID)
  {
     //if (imgDocID=='p_hoch'){document.p6.src=p3_1.src;} 
     //if (imgDocID=='p_hoch'){document.p6.src=p3_1.src;}
     document.images[imgDocID].src=eval(imgObjName + ".src");
  }

	if ((ausnahme=='niederfrequenz')&&(imgDocID=='p5')){
			if (inOut=='OUT'){document.p6.src=p3_1.src;}
			if (inOut=='IN'){document.p6.src=p3_0.src;}
			if (inOut=='OUT'){inOut='IN';}else{inOut='OUT';}
			//alert(inOut);

	} // MouseOver p6

	if ((ausnahme=='hochfrequenz')&&(imgDocID=='p5')){
			if (inOut=='OUT'){document.p6.src=p3_0.src;}
			if (inOut=='IN'){document.p6.src=p3_1.src;}
			if (inOut=='OUT'){inOut='IN';}else{inOut='OUT';}
			//alert(inOut);

	} 
}




//----------------------Für die Unterscheidung von Nieder und Hochspannung-----------------------------


function hiLite2 (imgDocID,imgObjName,vonwo) {

if(clicked != imgDocID)
  {
//alert('IN -->'+clicked+'vonwo-->'+vonwo);
     document.images[imgDocID].src=eval(imgObjName + ".src");
   
     if (vonwo == 'n'){
     document.p5.src=p5_1.src;
     //document.p6.src=p3_0.src;     
     }
     if (vonwo == 'h'){
     document.p5.src=p5_1.src;     
     //document.p6.src=p3_1.src;     
     }
if((ausnahme == 'niederfrequenz')|| (ausnahme == 'hochfrequenz')){   
     if (imgDocID == 'p5_nieder'){document.p6.src=p3_0.src;}
     if (imgDocID == 'p5_hoch'){document.p6.src=p3_1.src;}
     }
if(vonwo=='OUT'){document.p5.src=p5_0.src;}
}

if((ausnahme == 'niederfrequenz')&& (vonwo=='OUT')){document.p6.src=p3_0.src;document.p5.src=p5_1.src;}
if((ausnahme == 'hochfrequenz')&& (vonwo=='OUT')){document.p6.src=p3_1.src;document.p5.src=p5_1.src;}


}



//----------------------------------------------------------------------------------------------------------



function clickPfeil(imgDocID,imgObjName){
	var clickedObj7='';
	if (clicked==''){
		
			clicked = imgDocID;
		  clickedObj=imgObjName;
		
	
		
	}
	  
	//alert(clicked + ':' + clickedObj);
  //document.images[clicked].src = eval(clicked + ".src");
	//clicked = imgDocID;
  //clickedObj = imgObjName;
	document.images[imgDocID].src = eval(imgObjName + ".src");
}




//---für die unternavigation--------------

function hiLite_mitte (imgDocID,imgObjName) {
  if(clickedObj != imgObjName)
  {
     //if (imgDocID=='p_hoch'){document.p6.src=p3_1.src;} 
     //if (imgDocID=='p_hoch'){document.p6.src=p3_1.src;}
     document.images[imgDocID].src=eval(imgObjName + ".src");
  }

	if ((ausnahme=='niederfrequenz')&&(imgDocID=='p5')){
			if (inOut=='OUT'){document.p6.src=p3_1.src;}
			if (inOut=='IN'){document.p6.src=p3_0.src;}
			if (inOut=='OUT'){inOut='IN';}else{inOut='OUT';}
			//alert(inOut);

	} // MouseOver p6

	if ((ausnahme=='hochfrequenz')&&(imgDocID=='p5')){
			if (inOut=='OUT'){document.p6.src=p3_0.src;}
			if (inOut=='IN'){document.p6.src=p3_1.src;}
			if (inOut=='OUT'){inOut='IN';}else{inOut='OUT';}
			//alert(inOut);

	} 
}

function hiLite_mitte2 (imgDocID,imgObjName) {
  if(clickedObj != imgObjName)
  {
     //if (imgDocID=='p_hoch'){document.p6.src=p3_1.src;} 
     //if (imgDocID=='p_hoch'){document.p6.src=p3_1.src;}
     document.images[imgDocID].src=eval(clickedObj + ".src");
  }

	if ((ausnahme=='niederfrequenz')&&(imgDocID=='p5')){
			if (inOut=='OUT'){document.p6.src=p3_1.src;}
			if (inOut=='IN'){document.p6.src=p3_0.src;}
			if (inOut=='OUT'){inOut='IN';}else{inOut='OUT';}
			//alert(inOut);

	} // MouseOver p6

	if ((ausnahme=='hochfrequenz')&&(imgDocID=='p5')){
			if (inOut=='OUT'){document.p6.src=p3_0.src;}
			if (inOut=='IN'){document.p6.src=p3_1.src;}
			if (inOut=='OUT'){inOut='IN';}else{inOut='OUT';}
			//alert(inOut);

	} 
}



