var winObj = null;


function inline(id) {
	$('#'+id).toggle();
}

function show(name) {
	inline(name);
}

function show1(name) {
	inline(name);
}

function anzeig(daUrl,daWin,wW,wH) { // URL, Fensterbreite, -
	var xPos = Math.floor((screen.availWidth  - wW) / 2);
	var yPos = Math.floor((screen.availHeight - wH) / 2);
	if (winObj != null && !winObj.closed) winObj.close();
	winObj = window.open(daUrl, daWin, 'width=' + wW + ', height=' + wH
							+ 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,'
							+ 'screenX=' + xPos + ', screenY='
							+ yPos + ', left=' + xPos + ', top=' + yPos)
	winObj.focus()
}


function onFocusClearDefault(thisValue, defaultValue) {
	if (thisValue == defaultValue) {
		return '';
	}
	return thisValue;
}

$(document).ready(function(){
	$('a.lightbox').colorbox({
		current: '{current} von {total}',
		previous: 'vorheriges',
		next: 'nächstes',
		close: 'schließen'
	});
});

