imgOn		= new Array();
imgOff		= new Array();	
imgLabel	= new Array();
imgAction	= new Array();
var imgLocation;
var imgGrp;
var quot;
var timerID = null;
var timer = 5; 		//Anzahl der Sekunden bevor die neuen Fenster geschlossen werden.

imgLabel[0] 	= "Back/Zur&uuml;ck";
imgLabel[1] 	= "Top/Seitenanfang";
imgLabel[2] 	= "Refresh/Aktualisieren";
imgLabel[3] 	= "Next/Weiter";
imgLabel[4]	= "Close/Schliessen";
imgLabel[5]	= "Resize/Größe anpassen";

imgAction[0] 	= "history.go(-1)"
imgAction[1] 	= "window.scroll(0,0)"
imgAction[2] 	= "location.reload()"
imgAction[3] 	= "history.go(+1)"
imgAction[4]	= "self.close()"
imgAction[5]	= ""

function PreLoadImages(grpLocation, grpName, grpCnt, dont)
{
	imgLocation 	= grpLocation;
	imgGrp 		= grpName;
	quot		= "'";

	for (i=0; i < grpCnt + 1; i++) 
	{
		imgOff[imgGrp + i] 		= new Image();
		if (i == dont) imgOff[imgGrp + i].src 	= grpLocation + grpName + i + "a.gif";
		else imgOff[imgGrp + i].src 	= grpLocation + grpName + i + ".gif";
		imgOn[imgGrp + i] 		= new Image();
		imgOn[imgGrp + i].src 		= grpLocation + grpName  + i + "a.gif";
	}
}

function TurnOff(imgName, OccurNo)
{
	img = eval("imgOff['" + imgName + "']");
	if (OccurNo == 0) document[imgName].src = img.src;
	else document[imgName + OccurNo].src = img.src;
}

function TurnOn(imgName, OccurNo)
{
	img = eval("imgOn['" + imgName + "']");
	if (OccurNo == 0) document[imgName].src = img.src;
	else document[imgName + OccurNo].src = img.src;
}

function PrintButton(ButtonNo, OccurNo, LinkLocation) 
{
	if (LinkLocation==99) LinkLocation = 'javascript:' + imgAction[ButtonNo]; 
	document.write('<a href=' + LinkLocation + ' onmouseover="TurnOn(' + quot + imgGrp + ButtonNo + quot + ', ' + OccurNo + ');window.status=' + quot + imgLabel[ButtonNo] + quot + ';return true;" onmouseout="TurnOff(' + quot + imgGrp + ButtonNo + quot + ', ' + OccurNo + ');window.status=' + quot + quot + ';return true;" ><img border="0" src="' + imgLocation + imgGrp + ButtonNo + '.gif" alt="' + imgLabel[ButtonNo] + '" align="absmiddle" name="' + imgGrp + ButtonNo + OccurNo + '" width="21" height="21"></a>');
}

function PrintPageURL() 
{
	document.write('Page URL: ' + window.location + '<br>');
}

function OpenPage(target, resize, full)
{
	var leftPos;	
	var screenHeight;
	screenHeight = screen.availHeight - 100; //0.8 * screen.height;
	leftPos = screen.availWidth - 640;
	if (resize=='yes');
	else {resize='no';}
	if (full=='yes') 
	;
	else {full='no';}
	NewWin = this.open("", target, 'left=' + leftPos + ',top=0,location=' + full + ',toolbar=' + full + ',directories=' + full + ',menubar=yes,scrollbars=yes,resizable=' + resize + ',width=' + 630 + ',height=' + screenHeight);
	NewWin.focus();
//	NewWin.ParentWin = this;
}

function openparentpage(target)
{
	this.ParentWin.location = target;
	this.ParentWin.location.reload();
	this.window.close();
}


function ClosePage()
{
//	this.focus();
	timerID = setTimeout("self.close();", (timer * 1000));
}

function StopClosePage()
{
	clearTimeout(timerID);
	timerID = null;
}

function mailto()
{
	window.status="mailto:webmaster@ingersoll.de";
}

function nomail()
{
	window.status="";
}

