//////////////////////////////////////////////////////////////// 
//	Scriptname:		index.js
//////////////////////////////////////////////////////////////// 
/**
 *	Vielleicht wird das hier überflüssig
if (top.location != self.location)
	top.location.href = self.location;
 **/
window.name = "aconti_top";
attachEvent("onload", pageLoad);
var statusText = "aconti.netService - Weil Online-Payment Vertrauenssache ist";
var statusInterval = null;
var statusStepCount = 0
MM_reloadPage(true);
//////////////////////////////////////////////////////////////// 
//	Funktion:		pageLoad()
//	Beschreibung:	Statusanimation beim Laden der Seite starten
//////////////////////////////////////////////////////////////// 
function pageLoad() {
	window.status = statusText;
	setTimeout("startAnimation()", 200);
}
//////////////////////////////////////////////////////////////// 
//	Funktion:		pageLoad()
//	Beschreibung:	Startet die Statusleistenanimation
//////////////////////////////////////////////////////////////// 
function startAnimation() {
	if (statusInterval == null)
		statusInterval = window.setInterval("animateStatus()", 200);
}
//////////////////////////////////////////////////////////////// 
//	Funktion:		stopAnimation()
//	Beschreibung:	Stoppt die Statusleistenanimation
//////////////////////////////////////////////////////////////// 
function stopAnimation() {
	if (statusInterval != null) {
		window.clearInterval(statusInterval);
		statusInterval = null;
	}
}
//////////////////////////////////////////////////////////////// 
//	Funktion:		animateStatus()
//	Beschreibung:	Animiert den Statusleistentext
//////////////////////////////////////////////////////////////// 
function animateStatus() {
	statusStepCount++;
	if (statusStepCount==6) statusStepCount = 1;
	if (statusStepCount==1) window.status = '>==== ' + statusText + ' ====<';
	if (statusStepCount==2) window.status = '=>=== ' + statusText + ' ===<=';
	if (statusStepCount==3) window.status = '==>== ' + statusText + ' ==<==';
	if (statusStepCount==4) window.status = '===>= ' + statusText + ' =<===';
	if (statusStepCount==5) window.status = '====> ' + statusText + ' <====';
}
//////////////////////////////////////////////////////////////// 
//	Funktion:		MM_reloadPage()
//	Beschreibung:	Läd den Inhalt der Seite neu wenn das
//					Browserfenster die Größe ändert (Netscape).
//////////////////////////////////////////////////////////////// 
function MM_reloadPage(init) {
	if (init==true)
		with (navigator) {
			if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
				document.MM_pgW=innerWidth;
				document.MM_pgH=innerHeight;
				onresize=MM_reloadPage;
			}
		}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
		location.reload();
}
