// JavaScript Document
var win = new Array();
var countWin = 0;

function showImg(img_,title_,selfdir_) {
	var path="../img/" + img_;
	
	// Bilder im eigen Verzeichnis
	if(selfdir_){
		path = img_;
	}
	
	winName = "Bild_" + countWin;
	win[countWin] = window.open("+title_+",winName,"scrollbars=1, resizable=1");
	with(win[countWin++]){
		resizeTo(screen.width,(screen.height-40));
		moveTo(0,0);
		with(document){
			open();
			write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
			write("<html><head><title>"+title_+"</title></head>\r\n<body>");
			write("<img src='"+path+"'><br>");
			write("<a style='font-family:verdana, sans-serif; font-size:12px; color:#006600;' href='javascript:opener.focus()'>Weitere Fotos &ouml;ffnen</a>&nbsp;&nbsp;<a style='font-family:verdana, sans-serif; font-size:12px; color:#006600;' href='javascript:self.close()'>Foto schlie&szlig;en</a>");
			write("</body></html>");
			close();
		}
	}
	return false;
}

function showPage(path_) {

	//winName = "Bild_" + countWin;
	popup = window.open(path_,"","scrollbars=1, resizable=1");
	with(popup){
		resizeTo(screen.width,(screen.height-40));
		moveTo(0,0);
		/*
		with(document){
			open();
			write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
			write("<html><head><title>"+title_+"</title></head>\r\n<body>");
			write("<img src='"+path+"'><br>");
			write("<a style='font-family:verdana, sans-serif; font-size:12px; color:#006600;' href='javascript:opener.focus()'>Weitere Fotos &ouml;ffnen</a>&nbsp;&nbsp;<a style='font-family:verdana, sans-serif; font-size:12px; color:#006600;' href='javascript:self.close()'>Foto schlie&szlig;en</a>");
			write("</body></html>");
			close();
		}
		*/
	}
	return false;
}

function Fb(o,w) {
if(w){o.style.backgroundColor = "#99cc99";}
else {o.style.backgroundColor = "#009966";}
return
}

dummy = new Array();
function preloadImagesNextpage(){

	for(i=0; i<preloadImagesNextpage.arguments.length; i++){
		dummy[i] = new Image();
		dummy[i].src = preloadImagesNextpage.arguments[i] + ".jpg";
		//alert(dummy[i].src);
	}
}
