// JavaScript Document
var iRec = 0;
var aktiv;
var bilderliste = new Array();
var bilderidx = 0;
var pnlcanvas = "";
var weisstimerpause = 500;
var weisspause = 1;

var timerin = 100;
var timerpause = 1000;
var timerout = 100;
var replay = "stop";

var introobjekte = new Array();
var introtimer = 500;
var introhgpnl = "";
var intropnl1 = "";
var intropnl2 = "";
var intromode = "stop";
var introimg1 = "";
var introimg2 = "";
var introimg3 = "";
var introbild2loaded = "n";
var tmpimg ="";

function SetBitmap()
{

	s = bilderliste[iRec];
	alert(s);
	pa = s.split(";");

	fly = document.getElementById(pnlcanvas);
	if(fly)
	{

		window.clearTimeout(aktiv);

		fly.style.left = pa[1] + "px";
		fly.style.top = pa[2] + "px";
		fly.style.width = pa[3] + "px";
		fly.style.height = pa[4] + "px";

		s = '<img src="' + pa[0] + '" border="0">';
//		alert(s);
		fly.innerHTML = s;

	}

	iRec++;
	
  if (iRec < bilderliste.length)
	{
		aktiv = window.setTimeout("SetBitmap()", pa[5]);
	}

}

function ShowBilder(ABilder, AImgPanel)
{
	bilderliste = ABilder;
	pnlcanvas = AImgPanel;
	aktiv = window.setTimeout("SetBitmap()", 10);
}

// ----------------------------------------------------------------------------------------------------------------

function fade(ADivOrg, AImgOrg, ADivTmp, AImgTmp, AUrl, AXPos, AYPos, atimer, step) 
{
	//var imgs = document.getElementsByTagName("img");

	step = step || 0;
	stepr = 100 - step;	

	AImgTmp.style.opacity = step/100;
	AImgTmp.style.filter = "alpha(opacity=" + step + ")"; // IE

	AImgOrg.style.opacity = stepr/100;
	AImgOrg.style.filter = "alpha(opacity=" + stepr + ")"; // IE

	step = step + 2;
	
	if (step <= 100) 
	{
		window.setTimeout(function () { fade(ADivOrg, AImgOrg, ADivTmp, AImgTmp, AUrl, AXPos, AYPos, atimer, step); }, atimer);
	}
	else
	{
		AImgOrg.src = AUrl;
		ADivOrg.style.left = AXPos + "px";
		ADivOrg.style.top = AYPos + "px";
		ADivOrg.style.width = AImgOrg.width + "px";
		ADivOrg.style.height = AImgOrg.height + "px";
		AImgOrg.style.opacity = 100 ;
		AImgOrg.style.filter = "alpha(opacity=100)"; // IE
		
		//alert(ADivOrg.style.top + " = " + AYPos);
		
		ADivTmp.style.left = -5000 + "px";
	}
	
	
}


function FadeInOut(AOrgDivName, AOrgImgName, ATmpDivName, ATmpImgName, ANewUrl, AXPos, AYPos, atimer)
{

	var imgorg = document.images[AOrgImgName];
	var imgtmp = document.images[ATmpImgName];

	imgtmp.style.opacity = 0;
	imgtmp.style.filter = "alpha(opacity=0)";
	imgtmp.src = ANewUrl;

	divorg = document.getElementById(AOrgDivName);
	divtmp = document.getElementById(ATmpDivName);
	divtmp.style.left = AXPos + "px";
	divtmp.style.top = AYPos + "px";
	
	fade(divorg, imgorg, divtmp, imgtmp, ANewUrl, AXPos, AYPos, atimer, 0);
}

// ----------------------------------------------------------------------------------------------------------------

function FadeInTimer(AImg, atimer, step)
{

	step = step || 0;

	AImg.style.opacity = step/100;
	AImg.style.filter = "alpha(opacity=" + step + ")"; // IE

	step = step + 2;
	
	if (step <= 100) 
	{
		window.setTimeout(function () { FadeInTimer(AImg, atimer, step); }, atimer);
	}
}


function FadeIn(AImgName, AUrl, atimer)
{
	var img1 = document.images[AImgName];
	
	img1.style.opacity = 0;
	img1.style.filter = "alpha(opacity=0)";
	img1.src = AUrl;
	
	FadeInTimer(img1, atimer, 0);
}

// ----------------------------------------------------------------------------------------------------------------


function MoveLeftTimer(adiv, axpos, atimer, astopxpos)
{
	axpos = axpos - 5;
	adiv.style.left = axpos + "px";

	if (axpos >= astopxpos) 
	{
		window.setTimeout(function () { MoveLeftTimer(adiv, axpos, atimer, astopxpos); }, atimer);
	}

}


function MoveLeft(ADivName, ATimer, AStartPos, AStopPos)
{
	var div1 = document.getElementById(ADivName);
	
	if (div1)
	{
		div1.style.left = AStartPos + "px";		
		MoveLeftTimer(div1, AStartPos, ATimer, AStopPos);
	}

}

// ----------------------------------------------------------------------------------------------------------------


function MoveLeftTimer2(adiv, aimg, axpos, atimer, astopxpos, astep, astepval)
{
	axpos = axpos - 5;
	adiv.style.left = axpos + "px";
	astep = astep + astepval;
	asv = Math.floor(astep);
	
	if (axpos > -25)
	{
		alert(aimg.width);
	}
	aimg.style.opacity = asv;
	aimg.style.filter = "alpha(opacity=" + asv + ")"; // IE

	if (axpos >= astopxpos) 
	{
		window.setTimeout(function () { MoveLeftTimer2(adiv, aimg, axpos, atimer, astopxpos, astep, astepval); }, atimer);
	}
	else
	{
//		aimg.style.opacity = 100;
//		aimg.style.filter = "alpha(opacity=100)"; // IE
	}

}


function MoveLeft2(ADivName, AImgName, ATimer, AStartPos, AStopPos)
{
	var div1 = document.getElementById(ADivName);
	var img1 = document.images[AImgName];
	
	var stepval = 100 / (Math.floor((Math.abs(AStopPos - AStartPos)) / 5));
	
	if (div1)
	{
		img1.style.opacity = 0;
		img1.style.filter = "alpha(opacity=0)"; // IE
		
		div1.style.left = AStartPos + "px";		
		div1.style.left = AStartPos + "px";		
		
		MoveLeftTimer2(div1, img1, AStartPos, ATimer, AStopPos, 0.00, stepval);
	}

}

// ----------------------------------------------------------------------------------------------------------------

function FadeInListeTimer(AImg, atimer, step)
{
	step = step || 0;

	AImg.style.opacity = step/100;
	AImg.style.filter = "alpha(opacity=" + step + ")"; // IE

	step = step + 2;
	
	if (step <= 100) 
	{
		window.setTimeout(function () { FadeInListeTimer(AImg, atimer, step); }, atimer);
	}
	else
	{
		if (bilderidx < (bilderliste.length - 1))
		{
			window.setTimeout(function () { NextImg(AImg, atimer); }, timerpause);
		}
	}
	
}

function NextImg(AImg, atimer)
{
	if (weisspause == 0)
	{
		weisspause = 1;
		AImg.src = "";
		AImg.style.opacity = 0;
		AImg.style.filter = "alpha(opacity=0)";
		window.setTimeout(function () { NextImg(AImg, atimer); }, weisstimerpause);
	}
	else
	{
		bilderidx++;
		if (bilderidx < bilderliste.length)
		{
				weisspause = 0;
//			AImg.style.opacity = 0;
//			AImg.style.filter = "alpha(opacity=0)";
			AImg.src = bilderliste[bilderidx];
		
			FadeInListeTimer(AImg, atimer, 0);
		}
	}
	
}

function FadeInListe(AImgName, AListe, atimer, atimerpause, aweisstimerpause)
{
	weisspause = 0;
	weisstimerpause = aweisstimerpause;
	timerpause = atimerpause;
	bilderidx = 0;
	bilderliste = AListe;
//	alert(bilderliste.length);
	if (bilderliste.length > 0)
	{
		var img1 = document.images[AImgName];

		img1.style.opacity = 0;
		img1.style.filter = "alpha(opacity=0)";
		img1.src = bilderliste[bilderidx];
	
		FadeInListeTimer(img1, atimer, 0);
	}
}

// ----------------------------------------------------------------------------------------------------------------

function FadeInOutListeTimer(AMode, AImg, step)
{
	step = step || 0;

	AImg.style.opacity = step/100;
	AImg.style.filter = "alpha(opacity=" + step + ")"; // IE

	if (AMode == "in")
	{
		step = step + 2;
		
		if (step <= 100) 
		{
			window.setTimeout(function () { FadeInOutListeTimer("in", AImg, step); }, timerin);
		}
		else
		{
			
			if ((replay == "endlos") && (bilderidx >= (bilderliste.length - 1)))
			{
				bilderidx = -1;
			}
			
			if (bilderidx < (bilderliste.length - 1))
			{
				step = 100;
				window.setTimeout(function () { FadeInOutListeTimer("out", AImg, step); }, timerpause);
			}
		}
	}
	if (AMode == "out")
	{
		step = step -2;
		
		if (step > 0) 
		{
			window.setTimeout(function () { FadeInOutListeTimer("out", AImg, step); }, timerout);
		}
		else
		{
			AImg.src = "";
			AImg.style.opacity = 0;
			AImg.style.filter = "alpha(opacity=0)";

			bilderidx++;
			if (bilderidx < bilderliste.length)
			{
				
				AImg.src = bilderliste[bilderidx];

				if ((bilderidx + 1) < bilderliste.length)
				{
					tmpimg.src = bilderliste[bilderidx + 1];
				}
				
				FadeInOutListeTimer("in", AImg, 0);
			}
		}
	}

}

function FadeInOutListe(AImgName, AListe, atimerin, atimerpause, atimerout, areplay)
{
	timerin = atimerin;
	timerout = atimerout;
	timerpause = atimerpause;
	bilderidx = 0;
	bilderliste = AListe;
	replay = areplay;
//	alert(bilderliste.length);
	if (bilderliste.length > 0)
	{
		var img1 = document.images[AImgName];

		img1.style.opacity = 0;
		img1.style.filter = "alpha(opacity=0)";
		img1.src = bilderliste[bilderidx];
		tmpimg = new Image();

		if ((bilderidx + 1) < bilderliste.length)
		{
			tmpimg.src = bilderliste[bilderidx + 1];
		}

		FadeInOutListeTimer("in", img1, 0);
	}
}

// ----------------------------------------------------------------------------------------------------------------

function RunIntroTimer(step)
{
	step = step || 0;
	if (step == 0)
	{
		intropnl1.style.left = "340px";
		intropnl1.style.width = introobjekte[step]["width"];
		s = '<img src="' + introobjekte[step]["bild"] + '" border="0px" id="introbild1" name="introbild1">';
		intropnl1.innerHTML = s;
		s = '<img src="' + introobjekte[step + 1]["bild"] + '" border="0px" id="introbild2" name="introbild2">';
		intropnl2.innerHTML = s;
	}
	else
	{
		if ((step % 2) == 0)
		{
			intropnl2.style.left = "0px";
			intropnl1.style.left = "-10000px";
			intropnl1.style.width = introobjekte[step]["width"];
			s = '<img src="' + introobjekte[step]["bild"] + '" border="0px">';
//			intropnl1.innerHTML = s;
			document.images["introbild1"].src = introobjekte[step]["bild"];
			intropnl1.style.left = intropnl2.style.width;
		}
		else
		{
			intropnl1.style.left = "0px";
			intropnl2.style.left = "-10000px";
			intropnl2.style.width = introobjekte[step]["width"];
			s = '<img src="' + introobjekte[step]["bild"] + '" border="0px">';
//			intropnl2.innerHTML = s;
			document.images["introbild2"].src = introobjekte[step]["bild"];
			intropnl2.style.left = intropnl1.style.width;
		}
	}
	
	step++;

	if ((intromode == "endlos") && (introobjekte.length <= step))
	{
		step = 0;
	}

	if (introobjekte.length > step)
	{
		window.setTimeout(function () { RunIntroTimer(step); }, introtimer);
	}
}

function RunIntro(apnl1, apnl2, abilder, atimer, amode)
{
	introobjekte = abilder;
	introtimer = atimer;
	intropnl1 = document.getElementById(apnl1);
	intropnl2 = document.getElementById(apnl2);
	intromode = amode;
	
	if (introobjekte.length > 0)
	{
		RunIntroTimer(0);
	}
}

// ----------------------------------------------------------------------------------------------------------------

function RunIntroTimer2(idx, step, amode)
{
	
	step = step || 0;
	
	if (amode == "in")
	{
		if ((idx % 2) == 0)
		{
			introimg1.style.opacity = step/100;
			introimg1.style.filter = "alpha(opacity=" + step + ")"; // IE
		}
		else
		{
			introimg2.style.opacity = step/100;
			introimg2.style.filter = "alpha(opacity=" + step + ")"; // IE
		}

		step = step + 2;
	
		if (step <= 100) 
		{
			window.setTimeout(function () { RunIntroTimer2(idx, step, "in"); }, timerin);
		}
		else
		{
			idx ++;

			if ((intromode == "endlos") && (bilderliste.length <= idx))
			{
				idx = 0;
			}
			
			if (bilderliste.length > idx)
			{
				if (introbild2loaded == "n")
				{
					introimg2.src = bilderliste[idx];
					introbild2loaded = "j"
					window.setTimeout(function () { RunIntroTimer2(idx, 0, "in"); }, timerpause);
				}
				else
				{
					window.setTimeout(function () { RunIntroTimer2(idx, 100, "out"); }, timerpause);
				}
			}
		}
	}
	if (amode == "out")
	{
		if ((idx % 2) == 0)
		{
			introimg1.style.opacity = step/100;
			introimg1.style.filter = "alpha(opacity=" + step + ")"; // IE
		}
		else
		{
			introimg2.style.opacity = step/100;
			introimg2.style.filter = "alpha(opacity=" + step + ")"; // IE
		}

		step = step - 2;
	
		if (step > 0) 
		{
			window.setTimeout(function () { RunIntroTimer2(idx, step, "out"); }, timerout);
		}
		else
		{
			if ((idx % 2) == 0)
			{
				introimg1.src = bilderliste[idx];
			}
			else
			{
				introimg2.src = bilderliste[idx];
			}
			window.setTimeout(function () { RunIntroTimer2(idx, 0, "in"); }, timerin);
		}
	}
	
}

function RunIntro2(aimg1, aimg2, abilder, atimerin, atimerout, atimerpause, amode)
{
	bilderliste = abilder;
	timerin = atimerin;
	timerout = atimerout;
	timerpause = atimerpause;
	intromode = amode;
	introbild2loaded = "n";

	introimg1 = document.images[aimg1];
	introimg2 = document.images[aimg2];

	if (bilderliste.length > 0)
	{
		RunIntroTimer2(0, 0, "in");
	}

}

// ----------------------------------------------------------------------------------------------------------------

function RunIntro3Timer(AImg, atimer, atimerout, step, AFolgeUrl, AMode)
{

	step = step || 0;

	AImg.style.opacity = step/100;
	AImg.style.filter = "alpha(opacity=" + step + ")"; // IE

	if (AMode == "in")
	{
		step = step + 2;
		
		if (step <= 100) 
		{
			window.setTimeout(function () { RunIntro3Timer(AImg, atimer, atimerout, step, AFolgeUrl, AMode); }, atimer);
		}
		else
		{
			window.setTimeout(function () { RunIntro3Timer(AImg, atimer, atimerout, 100, AFolgeUrl, "out"); }, atimerout);
		}
	}
	else if (AMode == "out")
	{
		step = step - 2;
		
		if (step >= 2) 
		{
			window.setTimeout(function () { RunIntro3Timer(AImg, atimer, atimerout, step, AFolgeUrl, AMode); }, atimerout);
		}
		else
		{
			self.location.href = AFolgeUrl;
		}
	}
	
}


function RunIntro3(AImgName, AUrl, atimer, atimerout, AFolgeUrl)
{
	var img1 = document.images[AImgName];
	
	img1.style.opacity = 0;
	img1.style.filter = "alpha(opacity=0)";
	img1.src = AUrl;
	
	RunIntro3Timer(img1, atimer, atimerout, 0, AFolgeUrl, "in");
}

// ----------------------------------------------------------------------------------------------------------------

function RunIntro4Timer(step, amode)
{
	if (amode == "firstin")
	{
		introimg2.style.opacity = step/100;
		introimg2.style.filter = "alpha(opacity=" + step + ")"; // IE

		step = step + 2;
		
		if (step <= 100) 
		{
			window.setTimeout(function () { RunIntro4Timer(step, "firstin"); }, timerin);
		}
		else
		{
			if (introobjekte.length > bilderidx)
			{
				introimg1.style.opacity = 0;
				introimg1.style.filter = "alpha(opacity=0)"; // IE
				intropnl1.style.left = intropnl2.style.left;
				intropnl1.style.top = intropnl2.style.top;
				intropnl1.style.width = intropnl2.style.width;
				intropnl1.style.height = intropnl2.style.height;
				introimg1.src = introobjekte[bilderidx]["bild"];
				introimg1.style.opacity = 100;
				introimg1.style.filter = "alpha(opacity=100)"; // IE

				bilderidx++;
				if ((intromode == "endlos") && (introobjekte.length <= bilderidx))
				{
					bilderidx = 0;
				}
				//parent.document.getElementById("pnlLogo").innerHTML = bilderidx;
				
				introimg2.style.opacity = 0;
				introimg2.style.filter = "alpha(opacity=0)"; // IE
				pa = introobjekte[bilderidx]["coords"].split(",");
				intropnl2.style.left = pa[0] + "px";
				intropnl2.style.top = pa[1] + "px";
				intropnl2.style.width = pa[2] + "px";
				intropnl2.style.height = pa[3] + "px";
				introimg2.src = introobjekte[bilderidx]["bild"];

				if ((bilderidx + 1) < introobjekte.length)
				{
					introimg3.src = introobjekte[bilderidx + 1]["bild"];
				}

				window.setTimeout(function () { RunIntro4Timer(0, "in"); }, timerpause);
				
			}
			
		}
	}
	
	else if (amode == "in")
	{
		introimg2.style.opacity = step/100;
		introimg2.style.filter = "alpha(opacity=" + step + ")"; // IE

		step2 = 100 - step;
		introimg1.style.opacity = step2/100;
		introimg1.style.filter = "alpha(opacity=" + step2 + ")"; // IE

		step = step + 2;

		if (step <= 100) 
		{
			window.setTimeout(function () { RunIntro4Timer(step, "in"); }, timerin);
		}
		else
		{
		
			if (introobjekte.length >= bilderidx)
			{

				introimg1.style.opacity = 0;
				introimg1.style.filter = "alpha(opacity=0)"; // IE
				intropnl1.style.left = intropnl2.style.left;
				intropnl1.style.top = intropnl2.style.top;
				intropnl1.style.width = intropnl2.style.width;
				intropnl1.style.height = intropnl2.style.height;
				introimg1.src = introobjekte[bilderidx]["bild"];
				introimg1.style.opacity = 100;
				introimg1.style.filter = "alpha(opacity=100)"; // IE
				
				bilderidx++;
				if ((intromode == "endlos") && (introobjekte.length <= bilderidx))
				{
					bilderidx = 0;
				}
				
				//parent.document.getElementById("pnlLogo").innerHTML = bilderidx;
				
				introimg2.style.opacity = 0;
				introimg2.style.filter = "alpha(opacity=0)"; // IE
				pa = introobjekte[bilderidx]["coords"].split(",");
				intropnl2.style.left = pa[0] + "px";
				intropnl2.style.top = pa[1] + "px";
				intropnl2.style.width = pa[2] + "px";
				intropnl2.style.height = pa[3] + "px";
				introimg2.src = introobjekte[bilderidx]["bild"];

				if ((bilderidx + 1) < introobjekte.length)
				{
					introimg3.src = introobjekte[bilderidx + 1]["bild"];
				}

				window.setTimeout(function () { RunIntro4Timer(0, "in"); }, timerpause);

			}
				
		}
				
	}
}

function RunIntro4(aDiv1, aDiv2, aImg1, aImg2, aImg3, aIntros, aTimerIn, aTimerOut, aTimerBreak, aMode)
{
	intropnl1 = document.getElementById(aDiv1);
	intropnl2 = document.getElementById(aDiv2);
	introimg1 = document.images[aImg1];
	introimg2 = document.images[aImg2];
	introimg3 = document.images[aImg3];
	intromode = aMode;
	timerin = aTimerIn;
	timerout = aTimerOut;
	timerpause = aTimerBreak;
	introobjekte = aIntros;
	bilderidx = 0;
	pa = introobjekte[0]["coords"].split(",");
	intropnl2.style.left = pa[0] + "px";
	intropnl2.style.top = pa[1] + "px";
	intropnl2.style.width = pa[2] + "px";
	intropnl2.style.height = pa[3] + "px";
	introimg2.src = introobjekte[0]["bild"];
	
	if ((bilderidx + 1) < introobjekte.length)
	{
		introimg3.src = introobjekte[bilderidx + 1]["bild"];
	}
	//parent.document.getElementById("pnlLogo").innerHTML = bilderidx;
	
	RunIntro4Timer(0, 'firstin');	
}

// ----------------------------------------------------------------------------------------------------------------

function RunIntro5Timer2(AImg, atimer, atimerout, step, APnlIntroHG, AMode)
{

	step = step || 0;

	APnlIntroHG.style.opacity = step/100;
	APnlIntroHG.style.filter = "alpha(opacity=" + step + ")"; // IE

	if (AMode == "out2")
	{
		step = step - 2;
		
		if (step >= 2) 
		{
			window.setTimeout(function () { RunIntro5Timer2(AImg, atimer, atimerout, step, APnlIntroHG, AMode); }, atimerout);
		}
		else
		{
			APnlIntroHG.style.left = -10000 + "px";
			starthomebwechsel();
		}
	}

}

function RunIntro5Timer(AImg, atimer, atimerout, step, APnlIntroHG, AMode)
{

	step = step || 0;

	AImg.style.opacity = step/100;
	AImg.style.filter = "alpha(opacity=" + step + ")"; // IE

	if (AMode == "in")
	{
		step = step + 2;
		
		if (step <= 100) 
		{
			window.setTimeout(function () { RunIntro5Timer(AImg, atimer, atimerout, step, APnlIntroHG, AMode); }, atimer);
		}
		else
		{
			window.setTimeout(function () { RunIntro5Timer(AImg, atimer, atimerout, 100, APnlIntroHG, "out"); }, atimerout);
		}
	}
	else if (AMode == "out")
	{
		step = step - 2;
		
		if (step >= 2) 
		{
			window.setTimeout(function () { RunIntro5Timer(AImg, atimer, atimerout, step, APnlIntroHG, AMode); }, atimerout);
		}
		else
		{
			window.setTimeout(function () { RunIntro5Timer2(AImg, atimer, atimerout, 100, APnlIntroHG, "out2"); }, 200);
//			APnlIntroHG.style.left = -10000 + "px";
//			self.location.href = AFolgeUrl;
		}
	}

}


function RunIntro5(AImgName, AUrl, atimer, atimerout, APnlIntro)
{
	var img1 = document.images[AImgName];
	
	img1.style.opacity = 0;
	img1.style.filter = "alpha(opacity=0)";
	img1.src = AUrl;
	introhgpnl = document.getElementById(APnlIntro);
	
	RunIntro5Timer(img1, atimer, atimerout, 0, introhgpnl, "in");
}

// ----------------------------------------------------------------------------------------------------------------


function RunIntro6Timer2(AImg, atimer, atimerout, step, APnlIntroHG, AMode)
{

	step = step || 0;

	APnlIntroHG.style.opacity = step/100;
	APnlIntroHG.style.filter = "alpha(opacity=" + step + ")"; // IE

	if (AMode == "out2")
	{
		step = step - 2;
		
		if (step >= 2) 
		{
			window.setTimeout(function () { RunIntro6Timer2(AImg, atimer, atimerout, step, APnlIntroHG, AMode); }, atimerout);
		}
		else
		{
			APnlIntroHG.style.left = -10000 + "px";
			starthomebwechsel();
		}
	}

}


function RunIntro6Timer(AImg, atimer, atimerout, step, APnlIntroHG, AMode)
{

	step = step || 0;

	AImg.style.opacity = step/100;
	AImg.style.filter = "alpha(opacity=" + step + ")"; // IE

	if (AMode == "in")
	{
		step = step + 2;
		
		if (step <= 100) 
		{
			window.setTimeout(function () { RunIntro6Timer(AImg, atimer, atimerout, step, APnlIntroHG, AMode); }, atimer);
		}
		else
		{
			window.setTimeout(function () { RunIntro6Timer(AImg, atimer, atimerout, 100, APnlIntroHG, "out"); }, timerpause);
		}
	}
	else if (AMode == "out")
	{
		step = step - 2;
		
		if (step >= 2) 
		{
			window.setTimeout(function () { RunIntro6Timer(AImg, atimer, atimerout, step, APnlIntroHG, AMode); }, atimerout);
		}
		else
		{
			window.setTimeout(function () { RunIntro6Timer2(AImg, atimer, atimerout, 100, APnlIntroHG, "out2"); }, 200);
//			APnlIntroHG.style.left = -10000 + "px";
//			self.location.href = AFolgeUrl;
		}
	}

}

function RunIntro6(AImgName, AUrl, atimer, apause, atimerout, APnlIntro)
{
	var img1 = document.images[AImgName];
	
	timerpause = apause;
	img1.style.opacity = 0;
	img1.style.filter = "alpha(opacity=0)";
	img1.src = AUrl;
	introhgpnl = document.getElementById(APnlIntro);
	
	RunIntro6Timer(img1, atimer, atimerout, 0, introhgpnl, "in");
}

