//<script language="javascript" type="text/javascript">

function showSearch(activeSearch) {
    if (document.getElementById && document.getElementsByTagName) {
        searches = document.getElementById('search').getElementsByTagName('div');
        for (var i=0; i<searches.length; i++) {
            searches[i].className = (i == activeSearch ? 'active' : 'inactive');
        }
        links = document.getElementsByTagName('a');
        for (var j=0; j<links.length; j++) {
            if (links[j].getAttribute('rel') == 'external') {
                links[j].onclick = function() {
                    window.open(this.href,'','width=400,height=600,resizable,scrollbars');
                    return false;
                }
            } else if (links[j].getAttribute('rel') == 'popup') {
                links[j].onclick = function() {
                    howitworks = document.getElementById('howwork').style;
                    howitworks.display = (howitworks.display == 'none' ? 'block' : 'none');
                    return false;
                }
            }
        }
    }
}

function saveMapPosition() {
		var point = GM.getCenter();
	document.getElementById('lat').value = point.lat();
	document.getElementById('lng').value = point.lng();
	document.getElementById('zoom').value = GM.getZoom();
}

//</script>
