ie = document.all;
n4 = document.layers;
w3 = document.getElementById;

defaultStatus = 'Dr. Artz, Fuchs & López | Kanzlei für Rechts- und Steuerberatung in Deutschland und Spanien';

function info()
{defaultStatus = 'Dr. Artz, Fuchs & López | Kanzlei für Rechts- und Steuerberatung in Deutschland und Spanien';}

function bau(){
alert('Diese Seite befindet sich im Aufbau!');
}


function top(imgH,imgN,isOver)
{
alle = document.images.length;
topper = alle;
topper -=6;
	if(isOver)
		{document.images[topper].src   =  imgH;}
	else
		{document.images[topper].src   = imgN;}
}

function top2(imgIndex,imgH,imgN,isOver)
{
	if(isOver)
		{document.images[imgIndex].src   =  imgH;}
	else
		{document.images[imgIndex].src   = imgN;}
}






/*ROLLI fuer Layer-----------------------------------------------*/
function rolloverNav(pfad,NrLayer,LayerIndex,imgIndex,isOver)
{
		if(document.all)
			{
				if(isOver)
					{document.images[imgIndex].src = pfad + 'h.gif';}
				else
					{document.images[imgIndex].src = pfad + 'n.gif';}		
			}	
			
		if(document.layers)
				{
					if(isOver)
						{document.layers[NrLayer].document.images[LayerIndex].src = pfad + 'h.gif';}
					else
						{document.layers[NrLayer].document.images[LayerIndex].src = pfad + 'n.gif';}
				}

		if(document.getElementById)
				{
				if(isOver)
					{document.images[imgIndex].src = pfad + 'h.gif';}
				else
					{document.images[imgIndex].src = pfad + 'n.gif';}	
				}				
}

/*ROLLOVER oben----------------------------------------------------------------------------------------------------*/
function rolli1(index,imgN,imgH,isOver)
{
	if(isOver)
		{document.images[index].src = imgH;}
	else
		{document.images[index].src = imgN;}
}



/*LAYER Oeffnen-----------------------------------------------------------------------------------------------------------*/
function openLayer(MAZ,ALayer,hight,MoveA,MoveE)
{
closeAll(0,34,68,102,136,250,6);

if(document.getElementById)
{
	wert = hight;
	diff = wert-34;
	document.getElementById(ALayer).style.clip = 'rect(0px 131px ' + wert + 'px 0px)';
	for(Start=MoveA; Start<MoveE; Start++)
		{
			c = 'UM' + Start;
			d = parseFloat(document.getElementById(c).style.top);
			d += diff;							
			Layer = 'UM' + Start;
			document.getElementById(Layer).style.top = d;
		}
}
else
{		
	if(document.all)
	{
		wert = hight;
		diff = wert-34;
		document.all[ALayer].style.clip = 'rect(0px 131px ' + wert + 'px 0px)';
		for(Start=MoveA; Start<MoveE; Start++)
			{
				c = 'UM' + Start;
				d = parseFloat(document.all[c].style.top);
				d += diff;							
				Layer = 'UM' + Start;
				document.all[Layer].style.top = d;
			}
	}
	else
	{
		if(document.layers)
		{
			wert = hight;
			diff = wert-34;
			document.all[ALayer].style.clip = 'rect(0px 131px ' + wert + 'px 0px)';
			Start = MoveA;
			while(MoveA <= MoveE)
				{
					c = 'UM' + Start;
					c = parseFloat(document.all[c].style.top);
					c += diff;
					Layer = 'UM' + Start;
					document.all[Layer].style.top = c;
					Start +=1;
				}
		}
	}
}
	
}

/*LAYER Schließen-----------------------------------------------------------------------------------------------------------*/
function closeAll(Pos1,Pos2,Pos3,Pos4,Pos5,Pos6,MAZ)
{
a=1;
Position = a;
Position -=1;
Pos = arguments[Position];


if(document.layers)
	{
		while(a < MAZ)
			{
				b = 'UM' + a;
				Pos = arguments[Position];
				document.layers[b].clip.bottom = 34;
				document.layers[b].top = Pos;
				a +=1;
				Position +=1;
				
				if(a == MAZ)
					{
						b = 'UM' + a;
						document.layers[b].clip.bottom = 131;
						document.layers[b].top = PosBild;
					}

																									
			}
	}
	
if(document.all)
	{
		while(a < MAZ)
			{

				b = 'UM' + a;
				Pos = arguments[Position];
				document.all[b].style.clip = 'rect(0px 131px 34px 0px)';
				document.all[b].style.top = Pos;
				a +=1;
				Position +=1;
			}
	}
	
else
	{
		while(a < MAZ)
			{
				b = 'UM' + a;
				Pos = arguments[Position];
				document.getElementById(b).style.clip = 'rect(0px 131px 34px 0px)';
				document.getElementById(b).style.top = Pos;
				a +=1;
				Position +=1;
			}
	}
}

