//when the dom is ready...
window.addEvent('domready', function() {
	//time to implement basic show / hide
	Element.implement({
		//implement show
		show: function() {
			this.setStyle('display','');
		},
		//implement hide
		hide: function() {
			this.setStyle('display','none');
		}
	});
});

//popup windows
var mailwindow;
function popup(url)	{
	mailwindow=window.open(url,'more_pd','height=450,width=500,left=400,top=100,resizable=false,scrollbars=yes,toolbar=false,menubar=false,location=false,directories=false');
	if (window.focus) {mailwindow.focus()}
}
var mapwindow;
function mappop(url)	{
	mapwindow=window.open(url,'map_pd','height=400,width=450,left=400,top=100,resizable=true,scrollbars=yes,toolbar=false,menubar=false,location=false,directories=false');
	if (window.focus) {mapwindow.focus()}
}

//show/hide
function showElement(layer){
	var myLayer = document.getElementById(layer);
	if(myLayer.style.display=="none"){
		myLayer.style.display="block";
		myLayer.backgroundPosition="top";
	} else {
		myLayer.style.display="none";
	}
}
