// Copyright (c) 2006 Klever
// http://www.klever-design.nl/

function go(u) {
	document.location=u
}

function newWin(src, width, height) {
	w=window.open(src, "photo", "width="+width+",height="+height)
	w.focus()
	return false
}

function newWinEx(src, width, height) {
	return newWin(src, width, height + 40)
}

function closeWin(url) {
	if (wo = window.opener) {
		if (wo.closed)
			window.open(url,'_blank');
		else if (wo.location.href.search(url) == -1)
			wo.location.href = url;
		self.close()
		wo.focus()
		return false
	}
	window.open(url,'_blank')
	self.close()
	return false
}

function togglePanel(pname) {
	p = document.getElementById(pname);
	if (p) {
		if (p.style.display=='none')
			p.style.display='block'
		else
			p.style.display='none'
	}
}

function getEl(elId) {
	return document.getElementById(elId)
}

