var map = null;
    var geocoder = null;

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(40.24, -111.64), 13);
        geocoder = new GClientGeocoder();
      }
    }

    function showAddress(address) {
      if (geocoder) {
        document.getElementById('mapbg').style.display='block';
        document.getElementById('map').style.display='block';
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              //(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }

    }

function _init2(){
        load();
        //showAddress(address);
}
function end2()
{
        GUnload();
}
function hidemap()
{
        document.getElementById('mapbg').style.display='none';
        document.getElementById('map').style.display='none';
}
function closeDiv()
{
        document.getElementById("disp").style.display="none";
}
function _init2(){
        load();
        //showAddress(address);
}
function end2()
{
        GUnload();
}
function checkWeather(zipcode)
{
                                var wx_locID = zipcode;
                                var wx_targetDiv = 'wx_module_614';
                                var wx_config='SZ=728x90*WX=FHW*LNK=SSNL*UNT=F*BGI=spring*MAP=null|null*DN=rockclimbingutah.com*TIER=0*PID=1016267283*MD5=ed127c9a42598434ee7bdf6fc7b10730';
                                document.getElementById('wx_module_614').innerHTML ='<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>';
                                document.getElementById('wx_module_614').style.display='block';
                                //document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');
}



window.onload = _init2;

window.onunload = end2;

