if (top !== self){ top.location.replace(self.location.href);}

function showHideLocator()
  {
    var hid;
    hid = document.getElementById("showDealerLocator");
    if (hid != null)
    {
                    if (hid.value=="0")
                    {
                                    toggleT('DealerLocator','h');
                    }
                    else 
                    {
                                    toggleT('DealerLocator','s');
                    }                                              
    }
  }

        function toggleT(_w, _h) {
            var div = document.getElementById(_w);
            if (div != null) {
                if (document.all) { // is IE
                    if (_h == 's') {
                        div.style.display = 'inline';
                        div.style.visibility = 'visible';
                    }
                    else {
                        div.style.display = 'none';
                        div.style.visibility = 'hidden';
                    }
                }
                else {
                    if (_h == 's') {
                        div.style.display = 'block';
                        div.style.visibility = 'visible';
                    }
                    else {
                        div.style.display = 'none';
                        div.style.visibility = 'none';
                    }
                }
            }
        }