function toNewsletter() { mouseOutNewsletter(); window.location="newsletter.htm"; } function toContact() { mouseOutContact(); window.location="contact.htm"; } function toPortfolio() { mouseOutPortfolio(); window.location="pictures.htm"; } function toHome() { mouseOutHome(); window.location="index.htm"; } function mouseOverHome() { mouseOverTab('tabServicesLeft','tabHome','tabServicesRight','linkHome'); } function mouseOutHome() { mouseOutTab('tabServicesLeft','tabHome','tabServicesRight','linkHome'); } function toServices() { mouseOutServices(); window.location="services.htm"; } function mouseOverServices() { mouseOverTab('tabServicesLeft','tabServices','tabServicesRight','linkServices'); } function mouseOutServices() { mouseOutTab('tabServicesLeft','tabServices','tabServicesRight','linkServices'); } function mouseOverPortfolio() { mouseOverTab('tabPortfolioLeft','tabPortfolio','tabPortfolioRight','linkPortfolio'); } function mouseOutPortfolio() { mouseOutTab('tabPortfolioLeft','tabPortfolio','tabPortfolioRight','linkPortfolio'); } function mouseOverNewsletter() { mouseOverTab('tabServicesLeft','tabNewsletter','tabServicesRight','linkNewsletter'); } function mouseOutNewsletter() { mouseOutTab('tabServicesLeft','tabNewsletter','tabServicesRight','linkNewsletter'); } function mouseOverContact() { mouseOverTab('tabContactLeft','tabContact','tabContactRight','linkContact'); } function mouseOutContact() { mouseOutTab('tabContactLeft','tabContact','tabContactRight','linkContact'); } function mouseOverTab(left,tab,right,link) { document.getElementById(tab).style.backgroundColor = "rgb(51,51,122)"; document.getElementById(tab).style.borderTop = "1px solid rgb(51,51,122)"; document.getElementById(link).style.color = "white"; } function mouseOutTab(left,tab,right,link) { document.getElementById(tab).style.backgroundColor = "rgb(205,230,255)"; document.getElementById(link).style.color = "rgb(51,51,102)"; document.getElementById(tab).style.borderTop = "1px solid rgb(150,185,225)"; } function changePhoto(toShow) { document.getElementById("Photo1").style.display='none'; document.getElementById("Photo2").style.display='none'; document.getElementById("Photo3").style.display='none'; document.getElementById("Photo4").style.display='none'; document.getElementById(toShow).style.display='block'; }