if (document.images) {
  image1on = new Image();
  image1on.src = "http://www.gamespalace.com/images/gp-home-on.gif";

  image2on = new Image();
  image2on.src = "http://www.gamespalace.com/images/gp-join-on.gif";

  image3on = new Image();
  image3on.src = "http://www.gamespalace.com/images/gp-profile-on.gif";

  image4on = new Image();
  image4on.src = "http://www.gamespalace.com/images/gp-taf-on.gif";

  image5on = new Image();
  image5on.src = "http://www.gamespalace.com/images/gp-help-on.gif";

  image6on = new Image();
  image6on.src = "http://www.gamespalace.com/images/gp-contact-on.gif";


  image1off = new Image();
  image1off.src = "http://www.gamespalace.com/images/gp-home-off.gif";

  image2off = new Image();
  image2off.src = "http://www.gamespalace.com/images/gp-join-off.gif";

  image3off = new Image();
  image3off.src = "http://www.gamespalace.com/images/gp-profile-off.gif";

  image4off = new Image();
  image4off.src = "http://www.gamespalace.com/images/gp-taf-off.gif";

  image5off = new Image();
  image5off.src = "http://www.gamespalace.com/images/gp-help-off.gif";

  image6off = new Image();
  image6off.src = "http://www.gamespalace.com/images/gp-contact-off.gif";

}

function turnOn(imageName) {

  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}

function popUp(URL){
winpops=window.open(URL,"","width=200,height=125,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}

function popUp2(URL){
winpops=window.open(URL,"","width=200,height =450,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}

function popUpFavorite(URL){
winpops=window.open(URL,"","width=200,height=100,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}

function popComments(URL){
winpops=window.open(URL,"","width=440,height=400,left=100,top=100,status=0,scrollbars=1,resizable=1,menubar=0,location=0,toolbar=0")
}

function popRecoverPassword(URL){
winpops=window.open(URL,"","width=440,height=200,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
}