// JavaScript Document
function accPopup(theURL,winName,features) {
		newwindow=window.open(theURL,winName,features);
		if (window.focus) {newwindow.focus()}
		return false;
}

function setClass(theId,theClass) {
		if (document.getElementById) {
				var e = document.getElementById(theId);
				e.className = theClass;
		}
}

function accImgPopup(theURL,theW,theH) {
		if (typeof imgWin!='undefined') imgWin.close();
		//var theT = ',top='+(Math.floor((screen.availHeight-eval(theH)-10)/2));
		//var theL = ',left='+(Math.floor((screen.availWidth-eval(theW))/2));
		var features = 'width='+theW+',height='+theH+',top=20,left=20';
		newWindow=window.open(theURL,'imgWin',features);
		newWindow.document.open();
		newWindow.document.write('<html><head><title>webKatalog</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style>body{margin:0;padding:0;}</style></head><body onblur="self.close();">'); 
		newWindow.document.write('<a href="javascript:self.close();"><img src="'+theURL+'" width="'+theW+'" height="'+theH+'" galleryimg="no" id="theImg" border="0"></a>');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		if (window.focus) {newWindow.focus()}
		return false;
}

function showHideBio(targ) {
	if (document.getElementById) {
		targ = document.getElementById(targ);
		var l = document.getElementById('bioLink');
		var c = document.getElementById('wrapper_o');
		if (targ.className=='hidden') {
			l.title = 'Biografie verbergen';
			targ.className='shown';
			c.className = 'wrapper_o';
		} else {
			targ.className='hidden';
			l.title = 'Biografie zeigen';
			c.className = 'wrapper_o';
		}
		//return false;
	}
}



