if(document.all && !document.getElementById) {
    alert("here");
    document.getElementById = function(id) {
         return document.all[id];
    }
}

function antispamtxt(ext,domain,name,text) {
  document.write('<a href=\"mailto:' + name + '@' + domain + '.' + ext + '\">');
  document.write(text + '</a>');
}

function antispam(ext,domain,name) {
  document.write('<a href=\"mailto:' + name + '@' + domain + '.' + ext + '\">');
  document.write(name + '@' + domain + '.' + ext + '</a>');
}

/* home = new Image;
home.src = "images/home.jpg";
home_alt = new Image;
home_alt.src = "images/home_alt.jpg";

services = new Image;
services.src = "images/services.jpg";
services_alt = new Image;
services_alt.src = "images/services_alt.jpg";

portfolio = new Image;
portfolio.src = "images/portfolio.jpg";
portfolio_alt = new Image;
portfolio_alt.src = "images/portfolio_alt.jpg";

about = new Image;
about.src = "images/about.jpg";
about_alt = new Image;
about_alt.src = "images/about_alt.jpg";

contact = new Image;
contact.src = "images/contact.jpg";
contact_alt = new Image;
contact_alt.src = "images/contact_alt.jpg"; */

function do_menu(item) {
  pages = new Array('home','services','portfolio','about','contact');
  for (i in pages) {
    td = document.getElementById(pages[i]);
    if(item == pages[i]) {
      td.style.color='white';
	} else {
	  //
	}
  }
}
	   

function swap_in(item) {
  img_name = eval(item + "_alt");
  image = document.getElementById(item);
  image.src = img_name.src;
}

function swap_out(item) {
  img_name = eval(item);
  image = document.getElementById(item);
  image.src = img_name.src;
}