﻿function spamprotect() {	
	var re = /\sat\s(2ia)\sdot\s/;
    var links = document.links;
    for (var i = 0; link = links[i]; i++) {
        if (link.protocol == "mailto:") {
            var href = unescape(link.href);
            var text = unescape(link.firstChild.nodeValue);
            link.href = href.replace(re, "@$1\.");
            link.firstChild.nodeValue = text.replace(re, "@$1\.");            
        }    
    }
}

function positionBackground() {
	if (document.body.clientWidth > 980) {
		document.body.style.backgroundPosition = "50% 50%";
	} else {
		document.body.style.backgroundPosition = "-1010px 50%";
	}
}

window.onresize = positionBackground;
