function emailReplace(){
    var anchor_elems = document.getElementsByTagName("a");
    var i = anchor_elems.length;
    var href;
    while(i--){
        href = anchor_elems[i].getAttribute("href");
        if (href && href.indexOf("mailto:") == 0){
            href = href.replace("(a)", "@");
            href = href.replace("'", ".");
            anchor_elems[i].setAttribute("href", href);
        }
    }
}

function CloseIframe() 
{
var Close = document.getElementById("Content")
Close.style.display="none";
}

function OpenIframe() 
{
var Open = document.getElementById("Content")
Open.style.display="";
}

function changeZ()
{
document.getElementById('Flash').style.zIndex=10;
}
function changeZback()
{
document.getElementById('Flash').style.zIndex=1;
}


// google analytics

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28220656-1']);
  _gaq.push(['_setDomainName', 'atomdesign.nl']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
