var myMethod ="m"+"a"+"i"+"l"+"t"+"o"+":";
var mySite = "@"+"harel-moradi"+"."+"com";
function doar(correspondent){
   location = myMethod + correspondent + mySite + "?subject=harel-moradi.com - From [Please add your name here]" ;
}

function init() {
	var tagline;
	if (document.getElementById('tagline')) {
		tagline = document.getElementById('tagline');
	}
	else {
		tagline = document.getElementById('contentTagline');
	}
	tagline.onmouseover = function() {
		this.src = 'Images/taglineOver.gif';
	}
	tagline.onmouseout = function() {
		this.src = 'Images/tagline.gif';
	}
	document.getElementById('logo').onmouseover = function() {
		this.src = 'Images/HM_logo.gif';
	}
	document.getElementById('logo').onmouseout = function() {
		this.src = 'Images/bw_logo.gif';
	}
	var taglines = document.getElementsByTagName('p');
	for (var i = 0;i < taglines.length;i++) {
		if (taglines[i].parentNode.className == 'ImageMenuItem') {
			taglines[i].style.display = 'none';
		}
	}
	var imgs = document.getElementsByTagName('img');
	for (var i = 0;i < imgs.length;i++) {
		if (imgs[i].parentNode.parentNode.className == 'ImageMenuItem') {
			imgs[i].onmouseover = function () {
				this.src = this.src.replace(/.gif/,'_over.gif');
				this.parentNode.nextSibling.style.display = 'block';
			}
			imgs[i].onmouseout = function () {
				this.src = this.src.replace(/_over.gif/,'.gif');
				this.parentNode.nextSibling.style.display = 'none';
			}
		}
	}
}
window.onload = init;
