﻿//alert('js included');
//alert(location.href);  //temp

if(location.href.indexOf('http://www.')==0){
  //alert('changing www - REMOVE THIS AFTER TESTING');  
      
  var sNo3wURL = location.href.replace(/http:\/\/www./, 'http://');
  //alert(sNo3wURL);
  location.href=sNo3wURL;
}

if(location.href.indexOf('http://mapthislist.')==0){
  //alert('changing mapthelist - REMOVE THIS AFTER TESTING');  
      
  var sNoMapTheListURL = location.href.replace(/http:\/\/mapthislist./, 'http://mapalist.');
  //alert(sNoMapTheListURL);
  location.href=sNoMapTheListURL;
}

if(location.href.indexOf('http://mapthelist.')==0){
  //alert('changing mapthelist - REMOVE THIS AFTER TESTING');  
      
  var sNoMapTheListURL = location.href.replace(/http:\/\/mapthelist./, 'http://mapalist.');
  //alert(sNoMapTheListURL);
  location.href=sNoMapTheListURL;
}

if(location.href.indexOf('http://mapmypeeps.')==0){
  //alert('changing mapmypeeps - REMOVE THIS AFTER TESTING');  
      
  var sNoMapTheListURL = location.href.replace(/http:\/\/mapmypeeps./, 'http://mapalist.');
  //alert(sNoMapTheListURL);
  location.href=sNoMapTheListURL;
}

function HideElement(sName) {
  //alert("HideElement: " + sName);
  if (document.getElementById(sName) != null) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
      //ie
      document.getElementById(sName).style.visibility = "hidden";
    } else {
      //firefox
      document.getElementById(sName).setAttribute('class', 'invisible');
    }  
  }
}

function SetElementWidthToZero(sName) {
  //alert("SetElementWidthToZero: " + sName);
  if (document.getElementById(sName) != null) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
      //ie
      document.getElementById(sName).style.width = 0;
    } else {
      //firefox
      document.getElementById(sName).setAttribute('style', 'width:0px;');
    }
  }
}

function UnHideElement(sName) {
  //alert("UnHideElement: " + sName);
  if (document.getElementById(sName) != null) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
      //ie
      document.getElementById(sName).style.visibility = "visible";
    } else {
      //firefox
      document.getElementById(sName).setAttribute('class', 'visible');
    } 
  }
}