﻿function showPopup(id){$find(id).show();if(document.getElementById('google_map')){$('iframeShim').show();}
$$('div.popupBg').each(function(s){s.onclick=function(){$find(id).hide();if(document.getElementById('google_map')){$('iframeShim').hide();}
if(document.getElementById('map')){$get('map').style.visibility='visible';}};});return false;}
function hidePopup(id){$find(id).hide();if(document.getElementById('google_map')){$('iframeShim').hide();}}
function switchToLoginPopup(){if($find('ctl00_RegisterMain_ModalPopupExtenderRegister')!=undefined){hidePopup('ctl00_RegisterMain_ModalPopupExtenderRegister');return showPopup('ctl00_LoginMain_ModalPopupExtenderLogin');}
else{hidePopup('RegisterMain_ModalPopupExtenderRegister');return showPopup('LoginMain_ModalPopupExtenderLogin');}}
function switchToRegisterPopup(){if($find('ctl00_RegisterMain_ModalPopupExtenderRegister')!=undefined){hidePopup('ctl00_LoginMain_ModalPopupExtenderLogin');return showPopup('ctl00_RegisterMain_ModalPopupExtenderRegister');}
else{hidePopup('LoginMain_ModalPopupExtenderLogin');return showPopup('RegisterMain_ModalPopupExtenderRegister');}}
