function removeOverlay() {
	document.body.removeChild($('overlay_dialog'));
	return true;
}
function removeOverlay2() {
	new Effect.Opacity($('overlay'), { duration: 0, from:0.7, to:1.0});
	$('overlay').hide();
	return true;
}
function showWindow(url, title) {
	document.body.appendChild(Builder.node('div',{id:'overlay_dialog', className: 'overlay', style: 'width: 200px; height: 200px;'}));
	$('overlay_dialog').style.width = $('outer1').getWidth()+'px'
	$('overlay_dialog').style.height = ($('outer1').getHeight()+200)+'px';
	win = new Window({className: "dialog", title: title, width:600, height:400, destroyOnClose: true, recenterAuto:false, minimizable: false, maximizable: false, resizable: false, showEffect: Element.show, hideEffect: Element.hide}); 
	win.setAjaxContent(url, {method: 'get'})
	win.showCenter();
	win.setCloseCallback(removeOverlay);
	win.setZIndex(1234);
}
function showMap(url, title) {
	//document.body.appendChild(Builder.node('div',{id:'overlay_dialog', className: 'overlay', style: 'width: 200px; height: 200px;'}));
	//$('overlay_dialog').style.width = $('outer').getWidth()+'px'
	$('overlay').style.height = ($('outer').getHeight()+200)+'px';
	$('overlay').show();
	new Effect.Opacity($('overlay'), { duration: 0, from:1.0, to:0.7});
	win = new Window({className: "dialog", title: title, width:600, height:400, destroyOnClose: true, recenterAuto:false, minimizable: false, maximizable: false, resizable: false, showEffect: Element.show, hideEffect: Element.hide}); 
	win.setHTMLContent('<iframe width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=d&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;saddr=50.066458,19.938823&amp;daddr=&amp;mra=dme&amp;mrcr=0&amp;mrsp=0&amp;sz=17&amp;sll=50.067029,19.941537&amp;sspn=0.004573,0.010042&amp;ie=UTF8&amp;om=1&amp;s=AARTsJrSckG-F7cpHDicHGTeaZkYWSCqig&amp;ll=50.066643,19.941473&amp;spn=0.011019,0.025749&amp;z=15&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=d&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;saddr=50.066458,19.938823&amp;daddr=&amp;mra=dme&amp;mrcr=0&amp;mrsp=0&amp;sz=17&amp;sll=50.067029,19.941537&amp;sspn=0.004573,0.010042&amp;ie=UTF8&amp;om=1&amp;ll=50.066643,19.941473&amp;spn=0.011019,0.025749&amp;z=15&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>');
	win.showCenter();
	win.setCloseCallback(removeOverlay2);
	win.setZIndex(1234);
}