startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("menuheadblock");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="DIV") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;


function changeimage(im)
{
  if (document.images)
  {
    document[im].src = eval(im + ".src");
  }
}

function open_page(url) 
{
  document.location.href = url;
}

function addto()
{
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) 
    window.external.AddFavorite("http://www.4dwebdesigns.co.uk", "4D Web Designs");
  else
  {
    var msg = "Sorry we could not bookmark 4d Web Designs automatically.";
    if(navigator.appName == "Netscape") msg += " [Please press CTRL+D]";
    javascript:alert(msg);
  }
} 

function mess() // Scramble email address
    {
      var a,b,c,d,e
 
      a='<a hr'
      a+='ef=\"mai'
      b='4'
      b+='d'
      b+=''       
      b+=''
      c='\">'
      a+='lto:'
      b+='@'
      e='</' + 'a>'
      d='4'
      d+='d@4dweb'
      d+='designs.c'
      d+='o.uk'
      b+='4dwebdesigns.co.uk'

      document.write(a+b+c+d+e)
    }



function verifyClearMessage()
    {
      msg = "Are you sure that you want to erase this message?";
      return confirm(msg);
    }

function whatisflash()
     {
       window.open("flash.html", 'NewWindow1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width = 300,height = 400')
     }

function complexity()
     {
       window.open("complexity.html", 'NewWindow1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width = 300,height = 400')
     }