if(location.pathname=="/") {
  path = "/"
} else {
  path = "../"
}

Image1= new Image(100,45)
Image1.src = path + "images/contact.gif"
Image2 = new Image(100,45)
Image2.src = path + "images/contact_over.gif"

function SwapOut() {
document.contact.src = Image2.src; return true;
}

function SwapBack() {
document.contact.src = Image1.src; return true;
}