function DisplayOriginal (vic,kat,picid) {
	fenster = ShowPopUpWnd (vic + "/photoalbum/" + kat + "/" + picid + "/" ,640,480,1,'yes');
	fenster.focus();
}

function DisplayOriginalWWW (picid) {
	fenster = ShowPopUpWnd (picid, 640, 480 ,1, 'yes');
	fenster.focus();
}

function DisplayOriginalPic (picid) {
	fenster = ShowPopUpWnd ("/photoalbum/" + picid, 640, 480, 1, 'yes');
	fenster.focus();
}

function zeige_originalbild(pfad) {
	fenster = ShowPopUpWnd (pfad, 1024, 768, 1, 'yes');
	fenster.focus();    
}


function ShowPopUpWnd (url, width, height, scrollbar, resizeable) {
	if (scrollbar == 1) {
		scrollbar = "yes";
	} else if (scrollbar == 0) {
		scrollbar = "no";
	} else if (scrollbar == 2) {
		fenster;
	}
	var links=screen.width/2-width/2;
	var oben=screen.height/2-height/2;
	
	definition = "status=no,toolbar=no, width="+width+", height="+height+", top="+oben+" ,left="+links+", scrollbars="+scrollbar+", resizable="+resizeable;
	return open(url,"fenster",definition);
}

function fenster(winname, wintitel, breite, hoehe) {
	var linkeseite=screen.width/2-breite/2;
 	var oben=screen.height/2-hoehe/2;
 	NewWin = window.open(winname, wintitel, "width="+breite+",height="+hoehe+",top="+oben+",left="+linkeseite+",toolbar=0,location=0,resizable=yes");
}




