// function GP_images_preload() {
	// var arg = GP_images_preload.arguments;
	// if (document.images)
		// for (var i=0; i<arg.length; i++) {
			// eval("var img" + i + " = new Image();");
			// eval("img" + i + ".src = \"" + arg[i] + "\";");
		// }
// }

// function GP_images_preload_array(a) {
	// if (document.images)
		// for (var i=0; i<a.length; i++) {
			// eval("var img" + i + " = new Image();");
			// eval("img" + i + ".src = "\"" + a[i] + "\";");
		// }
// }

// function GP_images_preload_array_return(a) {
	// var ret = new Array();
	// if (document.images)
		// for (var i=0; i<a.length; i++) {
			// eval("var img" + i + " = new Image();");
			// eval("img" +i + ".src = \"" +a.[i] + "\";");
			// ret[ret.length] = eval("img" + i);
		// }
	// return ret;
// }

// function GP_images_fortschritt() {
	// if (document.images){
		// var gesamt = document.images.length;
		// var geladen = 0;
		// for (var i = 0; i<gesamt; i++) 
			// if (document.images[i].complete)
				// geladen++;
			// if (gesamt > 0)
				// window.status = "Geladen: " + Math.round(100*geladen/gesamt) + "%";
			// if (gesamt > geladen)
				// setTimeout("GP_images_fortschritt()", 500);
		// }
// }

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

/*
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable, location, status, toolbar'
win = window.open(mypage,myname,settings)
}
*/

// Nachfolgendes Skript dient zur automatischen Zentrierung des neuen Fensters
var win= null;
function NewWindow(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
	  settings +='location=yes,';
	  settings +='status=yes,';
	  settings +='toolbar=yes,';
	  settings +='resizable=no';
	  
	  /*alert("Settings: "+settings);*/	
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}



function GP_images_swap() {
	var arg = GP_images_swap.arguments;
	if (document.images)
		for (var i = 0; i<Math.floor(arg.length / 2); i++)
			if (document.images[arg[2*i]])
				document.images[arg[2*i]].src = arg[2*i + 1];
}
